/* OCCAM BAS — shared styles (AUTON design system) */
:root {
  --white: #faf9f7;
  --off: #f2f0eb;
  --stone: #e0ddd7;
  --mid: #5e5a58;
  --ink: #1c1b19;
  --deep: #141312;
  --gold: #a8936a;
  --f-disp: 'Cormorant Garamond', serif;
  --f-body: 'Tenor Sans', sans-serif;
  --pad: 3.5rem;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.4rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .5s, padding .4s, border-color .5s;
}
nav.scrolled {
  background: rgba(250,249,247,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.6rem var(--pad);
  border-bottom-color: var(--stone);
}
.nav-logo {
  font-size: .72rem; letter-spacing: .4em; text-transform: uppercase;
  color: rgba(250,249,247,.9); text-decoration: none; transition: color .5s;
  white-space: nowrap;
}
.nav-logo span { color: var(--gold); }
nav.scrolled .nav-logo { color: var(--ink); }
.nav-links { display: flex; gap: 2.6rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: .64rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(250,249,247,.6); text-decoration: none; transition: color .4s;
}
.nav-links a:hover { color: var(--white); }
nav.scrolled .nav-links a { color: var(--mid); }
nav.scrolled .nav-links a:hover { color: var(--ink); }
.nav-links a.nav-cta, nav.scrolled .nav-links a.nav-cta {
  color: var(--gold); border-bottom: 1px solid rgba(168,147,106,.4); padding-bottom: .2rem;
}
.nav-links a.nav-cta:hover { opacity: .7; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; z-index: 1200; }
.nav-burger span { display: block; width: 24px; height: 1px; background: rgba(250,249,247,.85); transition: background .5s, transform .3s, opacity .3s; }
nav.scrolled .nav-burger span, .nav-burger.open span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--white); z-index: 1100; transform: translateX(100%);
  transition: transform .45s cubic-bezier(.16,1,.3,1);
  display: flex; flex-direction: column; padding: 6rem 2.5rem 2.5rem;
}
.nav-drawer.open { transform: none; box-shadow: -8px 0 40px rgba(0,0,0,.15); }
.nav-drawer ul { list-style: none; }
.nav-drawer li { border-bottom: 1px solid var(--stone); }
.nav-drawer a { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 1.3rem 0; }
.nav-drawer a:hover { color: var(--gold); }
.nav-drawer-foot { margin-top: auto; font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }
.nav-overlay { position: fixed; inset: 0; background: rgba(20,19,18,.4); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(4px); }
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* ── HERO ── */
.hero { min-height: 100vh; min-height: 100svh; position: relative; display: flex; align-items: flex-end; overflow: hidden; background: var(--deep); }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1568430462989-44163eb1752f?w=1800&q=85&fit=crop&crop=center');
  background-size: cover; background-position: center 45%;
  filter: brightness(.42) saturate(.7);
  transform: scale(1.04);
  animation: settle 2.4s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,19,18,.35) 0%, transparent 40%, rgba(20,19,18,.85) 100%); }
.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 0 var(--pad) 6rem;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem;
}
.hero-label { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; opacity: 0; animation: rise 1s cubic-bezier(.16,1,.3,1) .1s forwards; }
.hero-title {
  font-family: var(--f-disp); font-weight: 300;
  font-size: clamp(3.6rem, 8vw, 8.5rem); line-height: .92; letter-spacing: -.01em;
  color: var(--white);
  opacity: 0; animation: rise 1.2s cubic-bezier(.16,1,.3,1) .3s forwards;
}
.hero-title em { font-style: italic; color: rgba(250,249,247,.55); }
.hero-sub { font-size: .88rem; color: rgba(250,249,247,.62); line-height: 1.85; max-width: 520px; margin-top: 2.2rem; opacity: 0; animation: rise 1s cubic-bezier(.16,1,.3,1) .6s forwards; }
.hero-right { text-align: right; flex-shrink: 0; opacity: 0; animation: rise 1s cubic-bezier(.16,1,.3,1) .7s forwards; }
.hero-tagline { display: block; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(250,249,247,.8); margin-bottom: 1.8rem; line-height: 1.9; }
.hero-cta {
  display: inline-block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--white); text-decoration: none; background: none; border: none; font-family: inherit;
  border-bottom: 1px solid rgba(250,249,247,.35); padding-bottom: .35rem;
  transition: border-color .3s, color .3s;
}
.hero-cta:hover { color: var(--gold); border-color: var(--gold); }
.hero-cta.gold { color: var(--gold); border-color: rgba(168,147,106,.5); }
.hero-cta.gold:hover { color: var(--white); border-color: var(--white); }
.hero-note { display: block; margin-top: 1.1rem; font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,249,247,.45); }
.hero-scroll { position: absolute; bottom: 2.4rem; left: 50%; transform: translateX(-50%); z-index: 3; opacity: 0; animation: fadein 1s ease 1.8s forwards; }
.hero-scroll-line { width: 1px; height: 48px; background: linear-gradient(180deg, transparent, rgba(250,249,247,.4)); animation: pulse-line 2.5s ease-in-out infinite; }

/* ── STATS BAR ── */
.stats { background: var(--deep); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid rgba(255,255,255,.06); }
.stat { padding: 3rem 2.5rem; border-right: 1px solid rgba(255,255,255,.06); }
.stat:last-child { border-right: none; }
.stat-n { font-family: var(--f-disp); font-size: 3.2rem; font-weight: 300; color: rgba(250,249,247,.92); line-height: 1; margin-bottom: .7rem; }
.stat-n em { font-style: italic; color: var(--gold); }
.stat-label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); line-height: 1.7; }
.stat-sub { font-size: .7rem; color: rgba(250,249,247,.45); line-height: 1.6; margin-top: .4rem; }

/* ── STATEMENT ── */
.statement { padding: 9rem var(--pad); max-width: 980px; }
.statement-label, .label {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 2.2rem; display: flex; align-items: center; gap: 1.2rem;
}
.statement-label::before, .label.line::before { content: ''; display: block; width: 28px; height: 1px; background: var(--gold); }
.statement-body { font-family: var(--f-disp); font-size: clamp(1.9rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; }
.statement-body em { font-style: italic; color: var(--mid); }
.divider { height: 1px; background: var(--stone); margin: 0 var(--pad); }

/* ── SECTIONS ── */
.section { padding: 8rem var(--pad); scroll-margin-top: 70px; }
.section.off { background: var(--off); }
.section-inner { max-width: 1140px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; }
.title { font-family: var(--f-disp); font-weight: 300; font-size: clamp(2.3rem, 3.6vw, 3.6rem); line-height: 1.05; margin-bottom: 2rem; }
.title em { font-style: italic; color: var(--mid); }
.body { font-size: .88rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.3rem; max-width: 470px; }
.body strong { color: var(--ink); font-weight: 400; }
.kicker { font-family: var(--f-disp); font-style: italic; font-size: 1.5rem; font-weight: 300; color: var(--ink); margin-top: 2.2rem; }
.source { font-size: .68rem; color: var(--mid); opacity: .7; line-height: 1.7; margin-top: 1.5rem; }

/* ── CARDS ── */
.cards { display: flex; flex-direction: column; gap: 1px; background: var(--stone); }
.cards.row { display: grid; grid-template-columns: repeat(4, 1fr); }
.card { padding: 2.2rem 2.2rem; background: var(--white); }
.card.light { background: var(--off); }
.card.mid { background: var(--stone); }
.card.dark { background: var(--deep); }
.card-label { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.card-title { font-family: var(--f-disp); font-size: 1.6rem; font-weight: 300; line-height: 1.15; margin-bottom: .7rem; }
.card-body { font-size: .78rem; color: var(--mid); line-height: 1.75; }
.card.dark .card-title { color: rgba(250,249,247,.92); }
.card.dark .card-body { color: rgba(250,249,247,.55); }

/* ── DARK SECTION ── */
.dark { background: var(--deep); color: rgba(250,249,247,.9); }
.dark .title { color: rgba(250,249,247,.92); }
.dark .title em { color: rgba(250,249,247,.55); }
.dark .body { color: rgba(250,249,247,.6); }
.dark .body strong { color: rgba(250,249,247,.95); }
.dark .kicker { color: rgba(250,249,247,.85); }

/* Flow diagram (shipyard → broker → owner) */
.flow { display: flex; flex-direction: column; align-items: stretch; max-width: 380px; margin-left: auto; }
.flow-box { border: 1px solid rgba(250,249,247,.14); padding: 1.3rem; text-align: center; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(250,249,247,.85); }
.flow-box.warn { border-color: rgba(168,147,106,.6); color: var(--gold); }
.flow-arrow { text-align: center; font-size: .7rem; color: rgba(250,249,247,.45); padding: .8rem 0; letter-spacing: .06em; }

/* Price bars */
.bars { display: flex; flex-direction: column; gap: 2.4rem; }
.bar-label { font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mid); margin-bottom: .8rem; }
.bar { height: 46px; display: flex; }
.bar-main { background: var(--deep); flex: 95; }
.bar-comm { background: var(--gold); flex: 5; }
.bar.clean .bar-main { background: var(--stone); border: 1px solid var(--mid); }
.bar-note { font-size: .7rem; color: var(--mid); margin-top: .6rem; }
.bar-note b { color: var(--gold); font-weight: 400; }

/* Numbered steps (vertical) */
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 64px 1fr; padding: 1.8rem 0; border-bottom: 1px solid var(--stone); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: none; }
.step-n { font-family: var(--f-disp); font-size: 2.2rem; font-weight: 300; font-style: italic; color: var(--gold); line-height: 1; }
.step-title { font-family: var(--f-disp); font-size: 1.35rem; font-weight: 300; margin-bottom: .35rem; }
.step-body { font-size: .8rem; color: var(--mid); line-height: 1.75; }

/* Governance grid */
.gov { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stone); }
.gov > div { background: var(--white); padding: 2.4rem; }

/* Horizontal timeline */
.timeline-h { position: relative; padding-top: 1rem; }
.timeline-h .line { position: absolute; top: 1.6rem; left: 10%; right: 10%; height: 1px; background: var(--stone); }
.timeline-h .row { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.tl { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem; }
.tl-dot { width: 20px; height: 20px; border: 1px solid var(--gold); background: var(--white); border-radius: 50%; margin-bottom: 1.5rem; }
.tl:first-child .tl-dot { background: var(--gold); }
.tl-n { font-size: .72rem; letter-spacing: .22em; color: var(--gold); margin-bottom: .6rem; }
.tl-title { font-family: var(--f-disp); font-size: 1.2rem; font-weight: 300; line-height: 1.15; margin-bottom: .6rem; }
.tl-body { font-size: .72rem; color: var(--mid); line-height: 1.7; }
.timeline-foot { text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--stone); font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; }
.compare th { font-weight: 400; font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mid); text-align: right; padding: 0 0 1.2rem 1rem; }
.compare th.us { color: var(--gold); }
.compare td { padding: 1.5rem 0 1.5rem 1rem; border-top: 1px solid var(--stone); font-size: .82rem; color: var(--mid); text-align: right; vertical-align: top; line-height: 1.6; }
.compare td:first-child { text-align: left; padding-left: 0; color: var(--ink); }
.compare td small { display: block; font-size: .7rem; opacity: .8; }
.compare tr.total td { font-family: var(--f-disp); font-size: 2rem; font-weight: 300; color: var(--ink); border-top: 1px solid var(--ink); }
.compare tr.total td:first-child { font-family: var(--f-body); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; padding-top: 2.1rem; }
.compare tr.total td.us { color: var(--gold); }
.compare-note { font-size: .74rem; color: var(--mid); font-style: italic; margin-top: 1.5rem; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.07); }
.case { background: var(--deep); padding: 2.6rem 2.2rem; }
.case-h { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: rgba(250,249,247,.85); margin-bottom: 2rem; }
.case-row { display: flex; justify-content: space-between; font-size: .78rem; color: rgba(250,249,247,.55); padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.case-row b { font-weight: 400; color: rgba(250,249,247,.9); }
.case-row.trad b { color: rgba(250,249,247,.55); text-decoration: line-through; text-decoration-color: rgba(168,147,106,.6); }
.case-save { margin-top: 2rem; font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.case-save-n { font-family: var(--f-disp); font-size: 3.4rem; font-weight: 300; color: rgba(250,249,247,.95); line-height: 1.1; }
.yards { text-align: center; margin-top: 3rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,249,247,.45); line-height: 2.2; }

/* Ticks list */
.ticks { list-style: none; }
.ticks li { position: relative; padding: 1.1rem 0 1.1rem 2.2rem; border-bottom: 1px solid var(--stone); font-size: .86rem; color: var(--ink); line-height: 1.6; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1.75rem; width: 14px; height: 1px; background: var(--gold); }

/* ── PARTNERSHIP PROGRAMME ── */
.notice { font-size: .74rem; color: var(--mid); line-height: 1.75; padding: 1.2rem 1.5rem; background: var(--off); border-left: 2px solid var(--gold); margin-bottom: 2.5rem; }
.placeholder-tag { display: inline-block; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; background: #b4533c; color: #fff; padding: .35rem .7rem; margin-bottom: 1.5rem; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stone); margin-bottom: 1px; }
.ledger > div { background: var(--white); padding: 2.2rem; }
.ledger > div:nth-child(2) { background: var(--off); }
.ledger-h { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.ledger-sub { font-size: .72rem; color: var(--mid); line-height: 1.7; margin-bottom: 1.2rem; }
.li { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--stone); font-size: .78rem; color: var(--mid); }
.li > span:last-child { font-family: var(--f-disp); font-size: 1.1rem; color: var(--ink); white-space: nowrap; }
.li.hi span { color: var(--gold) !important; }
.li.total { border-bottom: none; padding-top: 1rem; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.li.total > span:last-child { font-size: 1.35rem; }
.band { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.8rem 2.2rem; margin-bottom: 1px; }
.band.dark { background: var(--deep); }
.band-l { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.band-s { font-size: .72rem; color: rgba(250,249,247,.45); margin-top: .3rem; }
.band-n { font-family: var(--f-disp); font-size: 2.3rem; font-weight: 300; color: rgba(250,249,247,.92); white-space: nowrap; }
.sched-h { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin: 3rem 0 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--stone); }
.sched { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--stone); }
.sched > div { background: var(--white); padding: 1.4rem 1.5rem; }
.sched > div:nth-child(2) { background: var(--off); }
.sched-st { font-size: .62rem; color: var(--gold); letter-spacing: .1em; }
.sched-d { font-size: .74rem; color: var(--mid); margin: .3rem 0 .6rem; line-height: 1.5; }
.sched-v { font-family: var(--f-disp); font-size: 1.3rem; color: var(--ink); }
.sched-v small { font-family: var(--f-body); font-size: .66rem; color: var(--mid); }
.scale { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.07); margin-top: 2.5rem; }
.scale > div { background: var(--deep); padding: 2rem; }
.scale-k { font-size: .62rem; color: rgba(250,249,247,.5); margin-bottom: .4rem; letter-spacing: .1em; }
.scale-v { font-family: var(--f-disp); font-size: 1.9rem; font-weight: 300; color: var(--gold); }
.scale-s { font-size: .64rem; color: rgba(250,249,247,.35); margin-top: .2rem; }
.principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.07); margin-top: 4rem; }
.principles > div { background: var(--deep); padding: 2.2rem; }
.principles .card-title { color: rgba(250,249,247,.92); font-size: 1.4rem; }
.principles .card-body { color: rgba(250,249,247,.55); }

.btn-gold {
  display: inline-block; font-family: var(--f-body); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); background: var(--gold); padding: 1rem 2.4rem; text-decoration: none; border: none; transition: opacity .3s;
}
.btn-gold:hover { opacity: .82; }
.btn-line { display: inline-block; font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(168,147,106,.4); padding-bottom: .3rem; }

/* ── CONTACT ── */
.contact { background: var(--off); padding: 9rem var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: 7rem; align-items: start; scroll-margin-top: 70px; }
.contact-big { font-family: var(--f-disp); font-size: clamp(2.6rem, 4.6vw, 5rem); font-weight: 300; line-height: .98; letter-spacing: -.01em; margin-bottom: 2rem; }
.contact-big em { font-style: italic; color: var(--mid); }
.person { padding: 1.6rem 0; border-bottom: 1px solid var(--stone); }
.person:first-of-type { padding-top: 0; }
.person-name { font-family: var(--f-disp); font-size: 1.6rem; font-weight: 300; }
.person-role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: .3rem 0 .8rem; }
.person a { display: block; font-size: .8rem; color: var(--mid); text-decoration: none; padding: .15rem 0; transition: color .3s; }
.person a:hover { color: var(--ink); }
.office { margin-top: 2.5rem; font-size: .68rem; color: var(--mid); line-height: 2; }
.office-h { font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }

/* ── FOOTER ── */
footer { background: var(--deep); padding: 3rem var(--pad); display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.ft-logo { font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: rgba(250,249,247,.6); text-decoration: none; }
.ft-copy, .ft-right { font-size: .58rem; letter-spacing: .12em; color: rgba(250,249,247,.45); }
.ft-copy a, .ft-right a { color: inherit; text-decoration: none; }
.ft-copy a:hover, .ft-right a:hover { color: rgba(250,249,247,.85); }
.ft-right { text-transform: uppercase; letter-spacing: .3em; }

/* ── ACCESS MODAL ── */
.gate { display: none; position: fixed; inset: 0; z-index: 9000; background: var(--deep); align-items: center; justify-content: center; padding: 2rem 1.5rem; overflow-y: auto; }
.gate.show { display: flex; animation: fadein .4s ease; }
.gate-inner { width: 100%; max-width: 380px; text-align: center; }
.gate-close { position: absolute; top: 2rem; right: 2rem; font-family: var(--f-body); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(250,249,247,.45); background: none; border: none; transition: color .2s; }
.gate-close:hover { color: rgba(250,249,247,.9); }
.gate-logo { font-size: .72rem; letter-spacing: .45em; text-transform: uppercase; color: rgba(250,249,247,.55); margin-bottom: 3.5rem; }
.gate-title { font-family: var(--f-disp); font-size: 2.6rem; font-weight: 300; color: rgba(250,249,247,.9); margin-bottom: .8rem; line-height: 1.1; }
.gate-sub { font-size: .76rem; color: rgba(250,249,247,.5); margin-bottom: 2.6rem; line-height: 1.8; }
.gate-field { text-align: left; margin-bottom: 1.6rem; }
.gate-field label { display: block; font-size: .56rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(250,249,247,.5); margin-bottom: .5rem; }
.gate-field input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(168,147,106,.45);
  color: rgba(250,249,247,.92); font-family: var(--f-body); font-size: .95rem; letter-spacing: .04em;
  padding: .7rem 0; outline: none; border-radius: 0; -webkit-appearance: none; transition: border-color .3s;
}
.gate-field input:focus { border-bottom-color: var(--gold); }
.gate-field input::placeholder { color: rgba(250,249,247,.22); }
.gate-btn { width: 100%; margin-top: 1rem; font-family: var(--f-body); font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; background: var(--gold); color: var(--ink); border: none; padding: 1.05rem; transition: opacity .3s; }
.gate-btn:hover { opacity: .82; }
.gate-btn[disabled] { opacity: .5; }
.gate-msg { font-size: .7rem; line-height: 1.7; margin-top: 1.2rem; min-height: 1.2em; color: rgba(220,140,120,.9); }
.gate-legal { font-size: .62rem; color: rgba(250,249,247,.32); line-height: 1.8; margin-top: 2.4rem; }
.gate-legal a { color: rgba(250,249,247,.55); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── REVEAL & MOTION ── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.js .rv.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s !important; } .d2 { transition-delay: .2s !important; } .d3 { transition-delay: .3s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { to { transform: scale(1); } }
@keyframes pulse-line { 0%,100% { opacity: .2; } 50% { opacity: .7; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ── LEGAL PAGE ── */
.legal { max-width: 760px; margin: 0 auto; padding: 10rem 1.5rem 6rem; }
.legal h1 { font-family: var(--f-disp); font-weight: 300; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin-bottom: 2.5rem; }
.legal h2 { font-family: var(--f-disp); font-weight: 400; font-size: 1.4rem; margin: 2.5rem 0 .8rem; }
.legal p, .legal li { font-size: .86rem; color: var(--mid); line-height: 1.9; margin-bottom: .9rem; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--ink); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .cards.row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --pad: 1.6rem; }
  nav, nav.scrolled { padding: 1.3rem var(--pad); }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-content { flex-direction: column; align-items: flex-start; padding-bottom: 5.5rem; gap: 2.2rem; }
  .hero-right { text-align: left; }
  .hero-scroll { display: none; }
  .hero-title { font-size: clamp(3rem, 13vw, 4.6rem); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 2.2rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .stat:nth-child(2) { border-right: none; }
  .stat-n { font-size: 2.4rem; }
  .statement { padding: 5.5rem var(--pad); }
  .section { padding: 5rem var(--pad); }
  .two-col, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .contact { padding: 5.5rem var(--pad); }
  .flow { margin: 0; max-width: none; }
  .gov, .ledger, .cases, .scale, .principles { grid-template-columns: 1fr; }
  .cards.row { grid-template-columns: 1fr; }
  .timeline-h .line { display: none; }
  .timeline-h .row { grid-template-columns: 1fr; gap: 0; }
  .tl { flex-direction: row; align-items: flex-start; text-align: left; gap: 1.2rem; padding: 0 0 2rem; }
  .tl-dot { flex-shrink: 0; width: 14px; height: 14px; margin: .2rem 0 0; }
  .sched { grid-template-columns: 1fr; }
  .band { padding: 1.5rem; }
  .band-n { font-size: 1.8rem; }
  .compare th, .compare td { padding-left: .6rem; }
  .compare td { font-size: .74rem; }
  .compare tr.total td { font-size: 1.6rem; }
  footer { flex-direction: column; text-align: center; padding: 2.5rem var(--pad); }
}

/* ── PARTNER FEE CALCULATOR ── */
.subhero { background: var(--deep); padding: 11rem var(--pad) 5.5rem; }
.subhero .title { color: rgba(250,249,247,.94); font-size: clamp(2.8rem, 5.5vw, 5.2rem); line-height: .98; margin-bottom: 1.8rem; }
.subhero .title em { color: rgba(250,249,247,.55); }
.subhero .body { color: rgba(250,249,247,.62); max-width: 560px; }
.role-list { counter-reset: r; list-style: none; }
.role-list li { counter-increment: r; display: grid; grid-template-columns: 52px 1fr; padding: 1.5rem 0; border-bottom: 1px solid var(--stone); }
.role-list li:first-child { padding-top: 0; }
.role-list li::before { content: counter(r, decimal-leading-zero); font-family: var(--f-disp); font-style: italic; font-size: 1.5rem; color: var(--gold); line-height: 1.2; }
.role-list b { display: block; font-family: var(--f-disp); font-weight: 400; font-size: 1.3rem; margin-bottom: .3rem; color: var(--ink); }
.role-list span { font-size: .82rem; color: var(--mid); line-height: 1.75; }

.calc { background: var(--white); border: 1px solid var(--stone); }
.calc-in { padding: 2.6rem 2.6rem 2.2rem; background: var(--off); border-bottom: 1px solid var(--stone); }
.calc-in label { display: block; font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--mid); margin-bottom: .9rem; }
.calc-field { display: flex; align-items: baseline; gap: .6rem; border-bottom: 1px solid var(--ink); padding-bottom: .4rem; }
.calc-field span { font-family: var(--f-disp); font-size: 2.6rem; font-weight: 300; color: var(--mid); }
.calc-field input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font-family: var(--f-disp); font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 300; color: var(--ink); padding: 0; border-radius: 0; }
.calc-presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.calc-presets button { font-family: var(--f-body); font-size: .62rem; letter-spacing: .14em; background: transparent; border: 1px solid var(--stone); color: var(--mid); padding: .55rem 1rem; transition: all .2s; }
.calc-presets button:hover, .calc-presets button.on { border-color: var(--gold); color: var(--ink); background: var(--white); }
.calc-err { font-size: .72rem; color: #b4533c; margin-top: .8rem; min-height: 1.1em; }
.calc-out { padding: 2.4rem 2.6rem; }
.calc-stage { padding-bottom: 1.8rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--stone); }
.calc-stage-h { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.calc-stage-h small { font-size: .58rem; letter-spacing: .1em; color: var(--mid); text-transform: none; }
.calc .li > span:last-child { font-variant-numeric: tabular-nums; }
.calc .li.pf span { color: var(--ink); }
.calc .li.pf > span:last-child { font-size: 1.45rem; color: var(--gold); }
.calc-total { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--deep); padding: 2rem 2.6rem; }
.calc-total .band-n { font-variant-numeric: tabular-nums; }
.formula { margin-top: 1.6rem; font-size: .76rem; color: var(--mid); line-height: 1.9; }
.formula code { font-family: var(--f-body); color: var(--ink); background: var(--off); padding: .15rem .45rem; }
.timing { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--stone); margin-top: 1px; }
.timing > div { background: var(--white); padding: 1.6rem 2rem; }
.timing > div:nth-child(2) { background: var(--off); }

/* ── TERMS ── */
.terms { max-width: 820px; margin: 0 auto; padding: 5rem var(--pad) 7rem; }
.terms .draft { font-size: .74rem; color: #7a3a2a; background: #f6ece7; border-left: 2px solid #b4533c; padding: 1.1rem 1.4rem; line-height: 1.75; margin-bottom: 3rem; }
.terms-toc { columns: 2; column-gap: 2.5rem; list-style: none; margin: 0 0 3.5rem; padding: 1.8rem 0; border-top: 1px solid var(--stone); border-bottom: 1px solid var(--stone); }
.terms-toc li { font-size: .74rem; padding: .3rem 0; break-inside: avoid; }
.terms-toc a { color: var(--mid); text-decoration: none; }
.terms-toc a:hover { color: var(--gold); }
.terms h2 { font-family: var(--f-disp); font-weight: 400; font-size: 1.6rem; margin: 3rem 0 1rem; scroll-margin-top: 90px; }
.terms h2 span { color: var(--gold); font-style: italic; margin-right: .6rem; }
.terms p, .terms li { font-size: .84rem; color: var(--mid); line-height: 1.9; }
.terms ol { padding-left: 0; list-style: none; }
.terms ol > li { display: grid; grid-template-columns: 3.2rem 1fr; margin-bottom: .75rem; }
.terms ol > li > i { font-style: normal; color: var(--ink); }
.terms ul { padding-left: 1.2rem; margin: .4rem 0 .4rem; }
.terms ul li { margin-bottom: .3rem; }
.terms strong { color: var(--ink); font-weight: 400; }
.terms dl { display: grid; grid-template-columns: 11rem 1fr; gap: .2rem 1.5rem; }
.terms dt { font-size: .84rem; color: var(--ink); line-height: 1.9; }
.terms dd { font-size: .84rem; color: var(--mid); line-height: 1.9; margin-bottom: .6rem; }
.terms .box { background: var(--off); border: 1px solid var(--stone); padding: 2rem 2.2rem; margin-top: 1rem; }
.terms .box p { font-size: .8rem; }
.terms .meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-top: 3.5rem; }

@media (max-width: 900px) {
  .subhero { padding: 8.5rem var(--pad) 4rem; }
  .calc-in, .calc-out { padding: 1.8rem 1.4rem; }
  .calc-total { padding: 1.6rem 1.4rem; }
  .timing { grid-template-columns: 1fr; }
  .terms-toc { columns: 1; }
  .terms dl { grid-template-columns: 1fr; }
  .terms dd { margin-left: 0; }
  .terms ol > li { grid-template-columns: 2.6rem 1fr; }
}
@media print {
  nav, .nav-drawer, .nav-overlay, footer, #cur, #cur-r { display: none !important; }
  .subhero { background: none; padding: 1rem 0; }
  .subhero .title, .subhero .body { color: #000; }
  .terms { padding: 0; max-width: none; }
}
.calc-stage .li:last-child { border-bottom: none; }
.pct-wrap { white-space: nowrap; }
.pct-in { width: 3.6em; font-family: var(--f-body); font-size: .82rem; color: var(--ink); background: var(--white); border: 1px solid var(--stone); border-bottom-color: var(--gold); padding: .2rem .35rem; margin-right: .15rem; text-align: right; border-radius: 0; -webkit-appearance: none; outline: none; }
.pct-in:focus { border-color: var(--gold); }
.pct-in.bad { border-color: #b4533c; background: #f6ece7; }
.calc-rates { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; margin-top: 1.6rem; font-size: .72rem; color: var(--mid); }
.calc-rates button { font-family: var(--f-body); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; background: none; border: none; border-bottom: 1px solid var(--gold); color: var(--ink); padding: 0 0 .2rem; }
.calc-rates button[hidden] { display: none; }
.calc.custom #rates-note { color: #b4533c; }
.pct-wrap { font-size: .78rem; color: var(--mid); font-family: var(--f-body); }
.gate-rule { width: 48px; height: 1px; background: var(--gold); opacity: .7; margin: 0 auto 2rem; }
.gate-signin { font-size: .7rem; color: rgba(250,249,247,.5); margin-top: 1.8rem; }
.gate-signin a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(168,147,106,.4); }
[hidden] { display: none !important; }


/* Hero sign-in link for approved partners */
.hero-right .hero-signin-line { display: block; width: fit-content; margin: 1.4rem 0 0 auto; font-size: .76rem; letter-spacing: .04em; text-transform: none; color: rgba(250,249,247,.6); border-bottom-color: rgba(250,249,247,.2); }
.hero-right .hero-cta.gold { font-size: .74rem; }
.hero-right .hero-signin-line:hover { color: var(--white); border-color: var(--white); }

/* Sign-in option inside the Partner Access panel */
.gate-or { display: flex; align-items: center; gap: 1rem; margin: 2.4rem 0 1.4rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(250,249,247,.5); }
.gate-or::before, .gate-or::after { content: ''; flex: 1; height: 1px; background: rgba(250,249,247,.15); }
.gate-btn-line { display: block; text-align: center; font-size: .62rem; letter-spacing: .25em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(168,147,106,.6); padding: 1rem; text-decoration: none; transition: background .3s, color .3s; }
.gate-btn-line:hover { background: var(--gold); color: var(--ink); }
.gate-hint { font-size: .66rem; color: rgba(250,249,247,.38); margin-top: .8rem; line-height: 1.7; }

@media (max-width: 900px) {
  .hero-right .hero-signin-line { margin-left: 0; }
}

/* Partner briefing: simple two-link nav, plain hero */
.hero-plain { background: var(--deep); }


/* Diagrams */
.diagram { margin: 0; }
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.dg-node { fill: rgba(250,249,247,.03); stroke: rgba(250,249,247,.22); stroke-width: 1; }
.dg-node.warn { stroke: #a8936a; fill: rgba(168,147,106,.08); }
.dg-n { font-family: var(--f-body); font-size: 12px; letter-spacing: .3em; fill: rgba(250,249,247,.9); }
.dg-k { font-family: var(--f-body); font-size: 12px; fill: rgba(250,249,247,.85); }
.dg-s { font-family: var(--f-body); font-size: 11px; fill: rgba(250,249,247,.5); }
.dg-n.gold, .dg-k.gold, .dg-s.gold { fill: #a8936a; }
.dg-q { font-family: var(--f-disp); font-style: italic; font-size: 64px; fill: rgba(168,147,106,.55); }
.dg-n2 { font-family: var(--f-body); font-size: 12px; fill: var(--ink); }
.dg-num { font-family: var(--f-disp); font-style: italic; font-size: 17px; fill: var(--gold); }
.dg-s2 { font-family: var(--f-body); font-size: 11px; fill: var(--mid); }
.dg-s2.gold { fill: #8a7550; }
.hero { padding-top: 7.5rem; }
@media (max-width: 900px) { .hero { padding-top: 6.5rem; } }

/* ── MOBILE MENU (all pages) ── */
.nav-drawer { z-index: 990; }
.nav-overlay { z-index: 980; }
.nav-drawer-links { list-style: none; }
.nav-drawer-links li { border-bottom: 1px solid var(--stone); }
.nav-drawer-links a { display: block; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding: 1.25rem 0; }
.nav-drawer-links a:hover, .nav-drawer-links a:focus-visible { color: var(--gold); }
.nav-burger { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin-right: -10px; cursor: pointer; }
nav.menu-open .nav-burger span { background: var(--ink); }
@media (max-width: 900px) {
  nav .nav-links { display: none !important; }
  nav .nav-burger { display: flex; }
}

/* ── MOBILE AUDIT FIXES ── */
.gate { align-items: flex-start; }
.gate-inner { margin: auto; padding: 3.5rem 0 2rem; }
@media (max-width: 900px) {
  /* full-width menu so the logo is never cut off */
  .nav-drawer { width: 100%; padding: 6.5rem var(--pad) 2.5rem; }
  nav.menu-open .nav-logo { color: var(--ink); }
  nav.menu-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

  /* readable small text (min ~11px) */
  .hero-note, .ft-copy, .ft-right, .ft-logo, .office, .office-h, .gate-legal, .gate-hint, .notice,
  .compare th, .case-h, .calc-presets button, .calc-stage-h small, .calc-in label,
  .btn-gold, .btn-line, .hero-cta, .stat-label, .card-label, .tl-n, .source, .nav-drawer-foot { font-size: .72rem !important; }
  .hero-right .hero-signin-line { font-size: .82rem; }
  .compare tr.total td:first-child { font-size: .72rem; }
  .dg-s, .dg-s2 { font-size: 13px; }
  .dg-k, .dg-n { font-size: 13.5px; }
  .dg-n2 { font-size: 14px; }

  /* comfortable tap targets (~44px) */
  .hero-cta, .btn-line, .hero-right .hero-signin-line { padding-top: .9rem; padding-bottom: .7rem; }
  .btn-gold { padding: 1.1rem 2rem; }
  .person a { padding: .7rem 0; }
  .terms-toc li { padding: 0; }
  .terms-toc a { display: block; padding: .7rem 0; }
  .calc-presets button { min-height: 44px; padding: .6rem 1rem; }
  footer a, .ft-copy a { display: inline-block; padding: .8rem .2rem; }
  .gate-close { padding: .8rem; top: 1rem; right: 1rem; }
}
@media (max-width: 900px) { .nav-logo { display: inline-block; padding: .8rem 0; } }

/* Merged Partners page — terms section */
.terms-section { border-top: 1px solid var(--stone); scroll-margin-top: 70px; }
.terms-section .terms { padding-top: 7rem; }
.terms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.terms-head .body { margin-bottom: 0; }
.terms-print { background: none; border: none; border-bottom: 1px solid rgba(168,147,106,.4); font-family: var(--f-body); cursor: pointer; padding: .4rem 0 .3rem; }
@media print {
  body.print-terms .subhero, body.print-terms section:not(#terms), body.print-terms .terms-print { display: none !important; }
  body.print-terms .terms-section { border: none; }
  body.print-terms .terms-section .terms { padding-top: 0; }
}
.dg-pie { font-family: var(--f-disp); font-size: 34px; font-weight: 300; fill: rgba(250,249,247,.92); }
.dg-n2.goldt { fill: #8a7550; }
.terms .terms-head h2.title { font-family: var(--f-disp); font-size: clamp(2.3rem, 3.6vw, 3.6rem); font-weight: 300; line-height: 1.05; margin: 0 0 2rem; }
.pf-pct { font-size: .74rem; color: var(--mid); white-space: nowrap; }
