:root{
  --ink: #0A1F44;
  --ink-2: #142B54;
  --ink-deep: #071630;
  --gold: #C9992B;
  --gold-light: #E4C77A;
  --paper: #F7F4EC;
  --paper-2: #EFEADC;
  --slate: #2B2F38;
  --slate-soft: #5B6270;
  --white: #FFFFFF;
  --line: rgba(10,31,68,0.12);
  --line-on-ink: rgba(247,244,236,0.16);
  --radius: 14px;
  --serif: 'Fraunces', serif;
  --sans: 'Inter', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--slate);
  background:
    radial-gradient(circle at 1px 1px, rgba(10,31,68,0.05) 1px, transparent 0) 0 0/22px 22px,
    var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 820px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1){transition-delay:0ms} .stagger > *:nth-child(2){transition-delay:60ms}
.stagger > *:nth-child(3){transition-delay:120ms} .stagger > *:nth-child(4){transition-delay:180ms}
.stagger > *:nth-child(5){transition-delay:240ms} .stagger > *:nth-child(6){transition-delay:300ms}
.stagger > *:nth-child(7){transition-delay:360ms} .stagger > *:nth-child(8){transition-delay:420ms}
.stagger > *:nth-child(9){transition-delay:480ms}

/* ---------- Stitch divider (signature motif) ---------- */
.stitch {
  height: 2px; width: 100%;
  background-image: radial-gradient(circle, var(--gold) 1.4px, transparent 1.6px);
  background-size: 16px 2px; background-repeat: repeat-x;
  opacity: .55;
}

/* ---------- Nav ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,236,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display:flex; align-items:center; justify-content:space-between; padding: 16px 28px; max-width: 1180px; margin: 0 auto; }
.brand { display:flex; align-items:center; gap:10px; font-family: var(--serif); font-weight:600; font-size:1.28rem; color: var(--ink); text-decoration:none; letter-spacing: -0.01em;}
.brand .seal { width: 30px; height:30px; }
.nav-links { display:flex; align-items:center; gap: 30px; list-style:none; margin:0; padding:0; }
.nav-links a:not(.btn) { text-decoration:none; font-size:0.92rem; color: var(--ink); font-weight:500; position:relative; padding-bottom:2px; }
.nav-links a:not(.btn)::after {
  content:""; position:absolute; left:0; bottom:-2px; width:0; height:1.5px; background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a.current::after { width: 100%; }
.nav-links a.current { color: var(--gold); }
.btn {
  display:inline-flex; align-items:center; gap:8px;
  background: var(--ink); color: var(--paper);
  padding: 12px 22px; border-radius: 100px;
  font-weight:600; font-size:0.92rem; text-decoration:none;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink-deep); }
.btn.gold:hover { background: var(--gold-light); box-shadow: 0 8px 20px -8px rgba(201,153,43,0.6); }
.btn.ghost { background: transparent; color: var(--paper); border: 1px solid var(--line-on-ink); }
.btn.ghost:hover { background: rgba(247,244,236,0.08); }
.btn.ghost.on-light { color: var(--ink); border-color: var(--line); }
.menu-toggle { display:none; background:none; border:none; cursor:pointer; }

@media (max-width: 900px){
  .nav-links { position:fixed; inset: 62px 0 auto 0; background: var(--paper); flex-direction:column; align-items:flex-start; padding: 20px 28px 28px; gap:18px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: transform .25s ease; }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display:block; }
}

/* ---------- Hero (dark, seal watermark) ---------- */
.hero {
  position:relative; overflow:hidden;
  background: linear-gradient(160deg, var(--ink-deep) 0%, var(--ink) 62%, var(--ink-2) 100%);
  padding: 88px 0 76px;
}
.hero.page { padding: 68px 0 60px; }
.hero-watermark { position:absolute; top:-140px; right:-160px; width:640px; height:640px; opacity:.5; pointer-events:none; }
.hero-watermark circle { fill:none; stroke: var(--gold); }
.hero .wrap { position:relative; z-index:2; display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items:center; }
.hero.page .wrap { grid-template-columns: 1fr; max-width: 760px; }
.file-tag {
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform:uppercase;
  color: var(--gold-light); border: 1px solid rgba(201,153,43,0.4); border-radius: 100px;
  padding: 7px 16px; margin-bottom: 26px;
}
.file-tag .dotlive { width:6px; height:6px; border-radius:50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(201,153,43,0.25); }
h1.hero-head {
  font-family: var(--serif); font-weight:600; font-size: clamp(2.5rem, 4.8vw, 3.85rem);
  line-height: 1.05; color: var(--paper); letter-spacing:-0.015em; margin: 0 0 22px;
}
.hero.page h1.hero-head { font-size: clamp(2.1rem, 3.8vw, 3rem); }
h1.hero-head em { font-style: italic; font-weight:500; color: var(--gold-light); }
.hero p.lead { font-size: 1.12rem; color: rgba(247,244,236,0.68); max-width: 46ch; line-height:1.65; margin: 0 0 32px; }
.hero.page p.lead { max-width: 60ch; }
.hero-ctas { display:flex; gap:16px; flex-wrap:wrap; margin-bottom: 44px; }
.hero-stats { display:flex; gap: 0; flex-wrap:wrap; border-top: 1px solid var(--line-on-ink); padding-top: 26px; }
.stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line-on-ink); }
.stat:last-child { border-right:none; margin-right:0; padding-right:0; }
.stat b { display:block; font-family: var(--serif); font-size:1.7rem; color: var(--gold-light); }
.stat span { font-size:0.8rem; color: rgba(247,244,236,0.55); }

/* Hero/mock visual: verification card */
.doc-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(4,10,24,0.55);
  padding: 26px 26px 22px; position:relative;
  transform: rotate(1.2deg);
}
.doc-card .doc-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:18px;}
.doc-card .doc-head .tag { font-family: var(--mono); font-size:0.7rem; color: var(--slate-soft); letter-spacing:0.06em;}
.doc-line { height:10px; background: var(--paper-2); border-radius:4px; margin-bottom:10px; }
.doc-line.w80{width:80%;} .doc-line.w95{width:95%;} .doc-line.w60{width:60%;} .doc-line.w70{width:70%;} .doc-line.w40{width:40%;}
.citation-block {
  margin-top:18px; padding: 14px 16px; border-radius:10px;
  background: var(--paper); border: 1px dashed var(--line);
  display:flex; align-items:flex-start; gap: 14px;
}
.citation-block .txt { font-size:0.86rem; color: var(--slate); line-height:1.5; }
.citation-block .txt small { display:block; font-family: var(--mono); font-size:0.72rem; color: var(--slate-soft); margin-top:6px; }
.seal-stamp {
  flex-shrink:0; width:52px; height:52px; border-radius:50%;
  border: 2px solid var(--gold); color: var(--gold);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--serif); font-size:0.62rem; font-weight:700; text-align:center; line-height:1.1;
  transform: rotate(-8deg) scale(0.6); opacity:0;
  animation: stampIn 0.5s cubic-bezier(.2,1.4,.4,1) 0.7s forwards;
}
@keyframes stampIn { to { transform: rotate(-8deg) scale(1); opacity:1; } }

/* ---------- Section shells ---------- */
section { padding: 100px 0; }
section.tight { padding: 72px 0; }
section.alt { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { max-width: 700px; margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow { justify-content:center; }
.section-head.center .eyebrow::before { display:none; }
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; color: var(--gold); font-weight:500;
  display:flex; align-items:center; gap:10px; margin-bottom: 18px;
}
.eyebrow::before { content:""; width: 26px; height:1px; background: var(--gold); }
h2.section-title { font-family: var(--serif); font-weight:600; font-size: clamp(1.9rem, 3.2vw, 2.5rem); color: var(--ink); letter-spacing:-0.01em; margin: 0 0 16px; }
.section-head p { color: var(--slate-soft); font-size:1.04rem; line-height:1.6; margin:0; }

/* ---------- Breadcrumb ---------- */
.crumb { font-family: var(--mono); font-size:0.75rem; color: rgba(247,244,236,0.5); margin-bottom:18px; }
.crumb a { text-decoration:none; color: rgba(247,244,236,0.7); }
.crumb a:hover { color: var(--gold-light); }

/* ---------- Feature dossier grid ---------- */
.dossier { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.file {
  background: var(--white); padding: 34px 28px; position:relative;
  transition: background .2s ease, transform .2s ease;
}
.file::before {
  content:""; position:absolute; top:0; left:0; right:0; height:3px; background: var(--gold);
  transform: scaleX(0); transform-origin:left; transition: transform .3s ease;
}
.file:hover { background: var(--paper); transform: translateY(-3px); }
.file:hover::before { transform: scaleX(1); }
.file .icon { width:30px; height:30px; margin-bottom:18px; color: var(--gold); }
.file .tab {
  font-family: var(--mono); font-size:0.66rem; letter-spacing:0.08em; color: var(--slate-soft);
  text-transform:uppercase; margin-bottom:10px; display:block;
}
.file h3 { font-family: var(--serif); font-size:1.18rem; font-weight:600; color: var(--ink); margin:0 0 10px; }
.file p { font-size:0.92rem; color: var(--slate-soft); line-height:1.55; margin:0; }
.file a.jump { display:inline-block; margin-top:14px; font-size:0.82rem; font-weight:600; color: var(--gold); text-decoration:none; }
.file a.jump:hover { text-decoration:underline; }
@media (max-width: 900px){ .dossier { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .dossier { grid-template-columns: 1fr; } }

/* ---------- Feature detail rows (features.html) ---------- */
.feature-row { display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items:center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom:none; }
.feature-row.reverse .f-copy { order:2; }
.feature-row.reverse .f-visual { order:1; }
.f-copy .pillar-tag { font-family: var(--mono); font-size:0.7rem; letter-spacing:0.08em; text-transform:uppercase; color: var(--gold); margin-bottom:14px; display:flex; align-items:center; gap:10px; }
.f-copy .pillar-tag .icon { width:22px; height:22px; color: var(--gold); }
.f-copy h3 { font-family: var(--serif); font-size:1.7rem; color: var(--ink); margin:0 0 14px; }
.f-copy p.desc { color: var(--slate-soft); font-size:1rem; line-height:1.65; margin:0 0 20px; }
.f-copy ul { list-style:none; padding:0; margin:0; }
.f-copy li { padding-left:24px; position:relative; margin-bottom:10px; font-size:0.94rem; color: var(--slate); line-height:1.5; }
.f-copy li::before { content:"—"; position:absolute; left:0; color: var(--gold); font-weight:600; }
@media (max-width: 900px){ .feature-row, .feature-row.reverse { grid-template-columns: 1fr; }
  .feature-row.reverse .f-copy, .feature-row.reverse .f-visual { order: initial; } }

/* Mini mock visuals reused across feature rows */
.mock-chat { background: var(--white); border-radius: var(--radius); border:1px solid var(--line); padding: 22px; box-shadow: 0 24px 50px -28px rgba(10,31,68,0.3); }
.mock-chat .bubble { border-radius: 10px; padding: 12px 14px; font-size: 0.85rem; line-height:1.5; margin-bottom: 10px; max-width: 85%; }
.mock-chat .bubble.in { background: var(--paper); color: var(--slate); }
.mock-chat .bubble.out { background: var(--ink); color: var(--paper); margin-left:auto; }
.mock-chat .meta { font-family: var(--mono); font-size:0.68rem; color: var(--slate-soft); margin-bottom:14px; }

.mock-timeline { background: var(--white); border-radius: var(--radius); border:1px solid var(--line); padding: 26px; box-shadow: 0 24px 50px -28px rgba(10,31,68,0.3); }
.mock-timeline .t-item { display:flex; gap:14px; padding: 12px 0; border-left: 2px solid var(--line); padding-left:18px; margin-left:6px; position:relative; }
.mock-timeline .t-item::before { content:""; position:absolute; left:-7px; top:16px; width:10px; height:10px; border-radius:50%; background: var(--gold); }
.mock-timeline .t-date { font-family: var(--mono); font-size:0.7rem; color: var(--slate-soft); min-width:70px; }
.mock-timeline .t-text { font-size:0.86rem; color: var(--slate); }

.mock-table { background: var(--white); border-radius: var(--radius); border:1px solid var(--line); overflow:hidden; box-shadow: 0 24px 50px -28px rgba(10,31,68,0.3); }
.mock-table .t-row { display:grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap:10px; padding: 14px 18px; font-size:0.82rem; border-bottom:1px solid var(--line); align-items:center; }
.mock-table .t-row.head { background: var(--paper); font-family: var(--mono); font-size:0.68rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--slate-soft); }
.mock-table .t-row:last-child { border-bottom:none; }
.pill { display:inline-block; padding: 3px 10px; border-radius:100px; font-size:0.72rem; font-weight:600; }
.pill.due { background: rgba(201,153,43,0.15); color:#8A6A1E; }
.pill.review { background: rgba(217,128,82,0.15); color:#A6522A; }
.pill.done { background: rgba(127,191,143,0.18); color:#3D7A4D; }

/* ---------- Trust / verification section ---------- */
.trust-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items:center; }
.verify-steps { list-style:none; margin:0; padding:0; position:relative; }
.verify-steps::before { content:""; position:absolute; left:16px; top:8px; bottom:8px; width:1px; background: var(--line); }
.verify-steps li { display:flex; gap:22px; padding: 22px 0; position:relative; }
.verify-steps .num {
  font-family: var(--serif); font-size:1rem; color: var(--gold); font-weight:600; flex-shrink:0;
  width: 34px; height:34px; border-radius:50%; background: var(--white); border: 1.5px solid var(--gold);
  display:flex; align-items:center; justify-content:center; position:relative; z-index:1;
}
.verify-steps h4 { margin:0 0 6px; font-family: var(--serif); font-size:1.06rem; color: var(--ink); }
.verify-steps p { margin:0; font-size:0.92rem; color: var(--slate-soft); line-height:1.55; }
@media (max-width: 900px){ .trust-grid { grid-template-columns: 1fr; gap:36px; } }

.verify-card { background: var(--ink); border-radius: var(--radius); padding: 30px 28px; color: var(--paper); box-shadow: 0 30px 60px -30px rgba(10,31,68,0.5); }
.verify-card .vc-head { font-family: var(--mono); font-size:0.68rem; letter-spacing:0.1em; text-transform:uppercase; color: rgba(247,244,236,0.5); margin-bottom:16px; }
.verify-card .row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding: 14px 0; border-bottom: 1px solid rgba(247,244,236,0.12); font-family: var(--mono); font-size:0.8rem; }
.verify-card .row:last-child { border-bottom:none; }
.verify-card .row span:first-child { color: rgba(247,244,236,0.85); }
.verify-card .status { display:flex; align-items:center; gap:8px; flex-shrink:0; font-size:0.74rem; }
.dot { width:8px; height:8px; border-radius:50%; background: #7FBF8F; }
.dot.flag { background: #D98052; }

/* ---------- Solutions tabs ---------- */
.tabs-nav { display:flex; gap:10px; margin-bottom: 40px; flex-wrap:wrap; }
.tab-btn {
  padding: 11px 20px; border-radius: 100px; border:1px solid var(--line); background: var(--white);
  font-weight:600; font-size:0.88rem; cursor:pointer; color: var(--slate-soft);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab-panel { display:none; }
.tab-panel.active { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items:start; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(10px);} to { opacity:1; transform:none; } }
.tab-panel h3 { font-family: var(--serif); font-size:1.5rem; color: var(--ink); margin:0 0 14px; }
.tab-panel p.desc { color: var(--slate-soft); line-height:1.6; margin: 0 0 20px; }
.tab-panel ul { padding-left: 0; margin:0; color: var(--slate); list-style:none; }
.tab-panel li { margin-bottom: 12px; line-height:1.5; font-size:0.95rem; padding-left:24px; position:relative; }
.tab-panel li::before { content:"—"; position:absolute; left:0; color: var(--gold); font-weight:600; }
@media (max-width:900px){ .tab-panel.active { grid-template-columns:1fr; } }

/* ---------- Stat band ---------- */
.stat-band { display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; }
.stat-band .cell { background: var(--white); padding: 28px 22px; text-align:center; }
.stat-band .cell b { display:block; font-family: var(--serif); font-size:1.9rem; color: var(--ink); margin-bottom:6px; }
.stat-band .cell span { font-size:0.82rem; color: var(--slate-soft); }
@media (max-width:900px){ .stat-band { grid-template-columns: 1fr 1fr; } }

/* ---------- Info grid (security items, values, etc.) ---------- */
.info-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.info-item { text-align:left; padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: border-color .2s ease, transform .2s ease; }
.info-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.info-item .icon { width:26px; height:26px; color: var(--gold); margin-bottom:16px; }
.info-item h4 { margin:0 0 8px; font-size:0.98rem; color: var(--ink); font-family: var(--serif); }
.info-item p { margin:0; font-size:0.85rem; color: var(--slate-soft); line-height:1.5; }
@media (max-width:900px){ .info-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:600px){ .info-grid { grid-template-columns: 1fr; } }

/* Wide 3-col info grid variant */
.info-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
@media (max-width:900px){ .info-grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width:600px){ .info-grid.cols-3 { grid-template-columns: 1fr; } }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary {
  cursor:pointer; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-family: var(--serif); font-size:1.06rem; color: var(--ink); font-weight:600;
}
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family: var(--sans); font-size:1.3rem; color: var(--gold); flex-shrink:0; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { margin: 14px 0 0; color: var(--slate-soft); font-size:0.95rem; line-height:1.65; max-width: 68ch; }

/* ---------- About / story ---------- */
.about-wrap { display:grid; grid-template-columns: 1fr; gap: 60px; }
.about-copy p { line-height:1.75; color: var(--slate); font-size:1.05rem; }
.about-copy p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.2rem; float:left; line-height:0.8; padding: 6px 8px 0 0;
  color: var(--gold); font-weight:600;
}
.timeline-h { display:flex; flex-direction:column; gap:0; border-left: 2px solid var(--line); margin-left:8px; }
.timeline-h .th-item { padding: 0 0 34px 26px; position:relative; }
.timeline-h .th-item:last-child { padding-bottom:0; }
.timeline-h .th-item::before { content:""; position:absolute; left:-7px; top:2px; width:12px; height:12px; border-radius:50%; background: var(--gold); border: 2px solid var(--paper); }
.timeline-h .th-year { font-family: var(--mono); font-size:0.75rem; color: var(--gold); letter-spacing:0.06em; margin-bottom:6px; display:block; }
.timeline-h h4 { margin:0 0 6px; font-family: var(--serif); color: var(--ink); font-size:1.1rem; }
.timeline-h p { margin:0; color: var(--slate-soft); font-size:0.92rem; line-height:1.55; max-width: 56ch; }

/* ---------- Contact page ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { font-family: var(--serif); color: var(--ink); margin:0 0 10px; font-size:1.3rem; }
.contact-card p { color: var(--slate-soft); font-size:0.95rem; line-height:1.6; margin: 0 0 20px; }
.contact-row { display:flex; align-items:center; gap:14px; padding: 16px 0; border-top:1px solid var(--line); }
.contact-row:first-of-type { border-top:none; }
.contact-row .icon { width:20px; height:20px; color: var(--gold); flex-shrink:0; }
.contact-row a { font-family: var(--mono); font-size:0.92rem; text-decoration:none; color: var(--ink); }
.contact-row a:hover { color: var(--gold); }
@media (max-width:900px){ .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(150deg, var(--ink-deep), var(--ink) 60%, var(--ink-2));
  border-radius: 24px; padding: 68px 48px; text-align:center; margin: 0 28px; position:relative; overflow:hidden;
}
.cta-band::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 20%, rgba(201,153,43,0.18), transparent 55%);
}
.cta-band > * { position:relative; z-index:1; }
.cta-band h2 { color: var(--paper); font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.4rem); margin: 0 0 16px; }
.cta-band p { color: rgba(247,244,236,0.65); margin:0 0 32px; }
.cta-band .btn.gold { padding: 14px 30px; }

/* ---------- Footer ---------- */
footer { padding: 60px 0 34px; background: var(--white); }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { color: var(--slate-soft); font-size:0.88rem; max-width: 30ch; line-height:1.55; margin-top:14px;}
footer h5 { font-family: var(--mono); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; color: var(--slate-soft); margin: 0 0 16px; }
footer ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
footer a { text-decoration:none; font-size:0.9rem; color: var(--slate); }
footer a:hover { color: var(--gold); }
.foot-bottom { border-top:1px solid var(--line); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:0.8rem; color: var(--slate-soft); }
@media (max-width:900px){ .foot-grid { grid-template-columns: 1fr 1fr; } }

/* ================= World-class polish layer ================= */

/* Custom scrollbar */
::selection { background: var(--gold); color: var(--ink-deep); }
html { scrollbar-width: thin; scrollbar-color: var(--gold) var(--paper); }
::-webkit-scrollbar { width: 10px; height:10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 100px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

/* Richer reveal: blur-to-focus + translate, slightly springy */
.reveal {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .8s cubic-bezier(.16,.84,.44,1), transform .8s cubic-bezier(.16,.84,.44,1), filter .8s cubic-bezier(.16,.84,.44,1);
  will-change: opacity, transform, filter;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Nav gains presence once you scroll */
header.site { transition: box-shadow .3s ease, background .3s ease; }
header.site.scrolled { box-shadow: 0 8px 30px -18px rgba(10,31,68,0.35); background: rgba(247,244,236,0.96); }

/* Hero cursor-glow ambience */
.hero { --mx: 50%; --my: 30%; }
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201,153,43,0.14), transparent 60%);
  transition: opacity .3s ease;
}
.hero-watermark {
  animation: slowSpin 90s linear infinite;
  transform-origin: 320px 320px;
}
@keyframes slowSpin { to { transform: rotate(360deg); } }

/* Hero content entrance (on load, not scroll) */
.hero .file-tag, .hero h1.hero-head, .hero p.tagline, .hero p.lead, .hero .hero-ctas, .hero .hero-stats {
  opacity: 0; transform: translateY(18px);
  animation: heroIn .8s cubic-bezier(.16,.84,.44,1) forwards;
}
.hero .file-tag { animation-delay: .05s; }
.hero h1.hero-head { animation-delay: .15s; }
.hero p.tagline { animation-delay: .26s; }
.hero p.lead { animation-delay: .36s; }
.hero .hero-ctas { animation-delay: .48s; }
.hero .hero-stats { animation-delay: .6s; }
.hero .doc-card { opacity:0; transform: rotate(1.2deg) translateY(24px) scale(.97); animation: docIn .9s cubic-bezier(.16,.84,.44,1) .3s forwards; }
@keyframes heroIn { to { opacity:1; transform: translateY(0); } }
@keyframes docIn { to { opacity:1; transform: rotate(1.2deg) translateY(0) scale(1); } }

/* Tilt-ready cards (JS sets rotation via inline transform on mousemove) */
[data-tilt], .mock-chat, .mock-table, .mock-timeline, .contact-card, .team-card { transition: transform .25s ease, box-shadow .25s ease; transform-style: preserve-3d; }

/* Magnetic buttons get a soft glow while tracked */
.btn.gold { position:relative; }
.btn.gold::before {
  content:""; position:absolute; inset:-6px; border-radius:inherit; z-index:-1;
  background: radial-gradient(circle, rgba(201,153,43,0.35), transparent 70%);
  opacity:0; transition: opacity .25s ease;
}
.btn.gold:hover::before { opacity:1; }

/* Animated stitch divider: dots sweep in left-to-right */
.stitch { clip-path: inset(0 100% 0 0); transition: clip-path 1s cubic-bezier(.16,.84,.44,1); }
.stitch.in { clip-path: inset(0 0 0 0); }

/* Icon pop on card reveal */
.file .icon, .info-item .icon, .f-copy .pillar-tag .icon {
  transform: scale(.4) rotate(-12deg); opacity:0;
  transition: transform .5s cubic-bezier(.2,1.6,.4,1), opacity .4s ease;
  transition-delay: .15s;
}
.reveal.in .icon { transform: scale(1) rotate(0deg); opacity:1; }

/* Verify-card status pulse */
.dot { position:relative; }
.dot::after {
  content:""; position:absolute; inset:-4px; border-radius:50%; border: 1px solid currentColor; color:#7FBF8F;
  opacity:0; animation: pulseRing 2.4s ease-out infinite;
}
.dot.flag::after { color:#D98052; animation-duration: 1.4s; }
@keyframes pulseRing { 0% { opacity:.55; transform:scale(.6);} 100% { opacity:0; transform:scale(1.9);} }

/* Stat number container for count-up */
.stat b, .stat-band .cell b { font-variant-numeric: tabular-nums; }

/* Back-to-top */
#backToTop {
  position:fixed; right:24px; bottom:24px; z-index:60;
  width:46px; height:46px; border-radius:50%;
  background: var(--ink); color: var(--gold-light); border:1px solid var(--line-on-ink);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  opacity:0; transform: translateY(12px) scale(.9); pointer-events:none;
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  box-shadow: 0 14px 30px -12px rgba(10,31,68,0.5);
}
#backToTop.show { opacity:1; transform: translateY(0) scale(1); pointer-events:auto; }
#backToTop:hover { background: var(--ink-2); }

/* Underline sweep for inline gold text links used across pages */
a.inline-gold { position:relative; color: var(--gold); font-weight:600; text-decoration:none; }
a.inline-gold::after { content:""; position:absolute; left:0; right:0; bottom:-2px; height:1px; background: var(--gold); transform: scaleX(0); transform-origin:left; transition: transform .25s ease; }
a.inline-gold:hover::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .hero .file-tag, .hero h1.hero-head, .hero p.tagline, .hero p.lead, .hero .hero-ctas, .hero .hero-stats, .hero .doc-card,
  .hero-watermark { animation: none !important; opacity:1 !important; transform:none !important; }
  .stitch { clip-path: inset(0 0 0 0) !important; }
  .dot::after { display:none; }
}

/* ================= Logo wordmark, tagline, team ================= */
.brand-word .bw-gold { color: var(--gold); }
.tagline { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 0.85rem; margin: 8px 0 4px; letter-spacing: 0.01em; }
.hero .tagline { color: var(--gold-light); font-size: 1rem; margin: 0 0 18px; }

/* Team cards */
.team-grid { display:flex; flex-direction:column; gap: 18px; }
.team-card { display:flex; gap:20px; padding: 26px; background: var(--white); border:1px solid var(--line); border-radius: var(--radius); align-items:flex-start; transition: border-color .2s ease, transform .2s ease; }
.team-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.team-card .avatar {
  width:58px; height:58px; border-radius:50%; background: var(--ink); color: var(--gold-light);
  display:flex; align-items:center; justify-content:center; font-family: var(--serif); font-weight:600;
  flex-shrink:0; font-size:1.25rem; border: 2px solid var(--gold);
}
.team-card h4 { margin:0 0 2px; font-family: var(--serif); color: var(--ink); font-size:1.12rem; }
.team-card .role { font-family: var(--mono); font-size:0.72rem; color: var(--gold); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; display:block; }
.team-card p.bio { margin:0; font-size:0.92rem; color: var(--slate-soft); line-height:1.55; }
@media (min-width: 720px){
  .team-grid { flex-direction: row; flex-wrap: wrap; }
  .team-card { flex: 1 1 calc(50% - 9px); }
}
