/* =====================================================================
   Start Your Case — public site (intake home, practice-area landing
   pages, terms). Look inspired by "The Luxury" theme: espresso darks,
   copper accent, tracked uppercase sans labels, a refined display serif,
   full-bleed photo hero with a crossfade slider, parallax bands and
   scroll reveals. Dark by default with a light (cream) version.
   Fonts are self-hosted (CSP: font-src 'self').
   ===================================================================== */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-garamond-italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost.woff") format("woff"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/assets/fonts/jost-italic.woff") format("woff"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #14110f;
  --bg-2: #1b1714;
  --surface: #211c18;
  --surface-2: #2a241f;
  --line: rgba(201, 151, 107, .16);
  --line-2: rgba(237, 230, 221, .14);
  --text: #ede6dd;
  --text-2: #b9ad9f;
  --text-3: #8a7e72;
  --copper: #c9976b;
  --copper-2: #ddb38c;
  --copper-ink: #1a120b;
  --copper-soft: rgba(201, 151, 107, .12);
  --overlay: linear-gradient(90deg, #0e0b09 34%, rgba(14, 11, 9, .78) 48%, rgba(14, 11, 9, .25) 75%, rgba(14, 11, 9, .15) 100%);
  --header-bg: rgba(20, 17, 15, .86);
  --ok: #7fbf8e;
  --err: #e58a7a;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --track: .22em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1200px;
  --header-h: 84px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f1ea;
  --bg-2: #efe8de;
  --surface: #ffffff;
  --surface-2: #f8f4ee;
  --line: rgba(122, 82, 51, .18);
  --line-2: rgba(36, 28, 21, .12);
  --text: #241c15;
  --text-2: #5e5146;
  --text-3: #8b7d70;
  --copper: #9a6537;
  --copper-2: #7d4f29;
  --copper-ink: #ffffff;
  --copper-soft: rgba(154, 101, 55, .09);
  --header-bg: rgba(246, 241, 234, .9);
  --ok: #2f7a45;
  --err: #b23b2a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; transition: background .4s, color .4s;
}
img { max-width: 100%; display: block; }
a { color: var(--copper); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: var(--copper); color: var(--copper-ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

/* type */
.eyebrow, .section-eyebrow, .kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: var(--track); text-transform: uppercase; color: var(--copper); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before, .section-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.center .section-eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .005em; line-height: 1.08; margin: 0; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--copper); }
.rule-copper { display: block; width: 64px; height: 2px; background: var(--copper); margin: 24px 0; border: 0; }
.center { text-align: center; }
.center .rule-copper { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------------------ buttons */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  height: 54px; padding: 0 30px; border-radius: 0; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: color .35s var(--ease), border-color .35s, background .35s; isolation: isolate; white-space: nowrap;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn .arr { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--copper); color: var(--copper-ink); }
.btn-primary::before { background: var(--copper-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost::before { background: var(--copper-soft); }
.btn-ghost:hover { border-color: var(--copper); }
.btn-light { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-light::before { background: rgba(255, 255, 255, .12); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled::before { display: none; }
.btn-sm { height: 42px; padding: 0 20px; font-size: 11.5px; }

/* ------------------------------------------------------------ header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s, height .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent; color: #f3ece3;
}
.site-header .wrap { width: 100%; max-width: 1400px; display: flex; align-items: center; gap: 28px; }
.site-header.is-solid, .no-hero .site-header {
  background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); color: var(--text); height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }
.brand .dot { color: var(--copper); font-size: 14px; letter-spacing: 0; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid currentColor; transform: rotate(45deg); }
.brand .dot span { transform: rotate(-45deg); }
.brand .brand-sub { color: var(--copper); font-size: 10.5px; letter-spacing: .22em; margin-left: 4px; }
.site-nav { display: flex; gap: 34px; margin-left: auto; }
.site-nav a { color: inherit; text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; position: relative; padding: 8px 0; opacity: .88; transition: opacity .3s, color .3s; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.site-nav a:hover { opacity: 1; color: var(--copper); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-nav + .header-actions { margin-left: 8px; }
.theme-toggle, .menu-toggle {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent);
  background: transparent; color: inherit; cursor: pointer; transition: border-color .3s, color .3s;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--copper); color: var(--copper); }
.theme-toggle svg, .menu-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: block; }
:root[data-theme="light"] .theme-toggle .moon { display: none; }
.menu-toggle { display: none; }
.header-cta { height: 44px; padding: 0 22px; font-size: 11.5px; }
.docket { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--copper); white-space: nowrap; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 100px 32px 40px;
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.mobile-menu a { font-family: var(--serif); font-size: 40px; color: var(--text); text-decoration: none; line-height: 1.3; transform: translateY(14px); opacity: 0; transition: transform .5s var(--ease), opacity .5s, color .3s; }
.mobile-menu a:hover { color: var(--copper); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; } .menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; } .menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; } .menu-open .mobile-menu a:nth-child(5) { transition-delay: .2s; }
.menu-open .site-header { background: var(--bg); color: var(--text); }
.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ hero slider */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #f3ece3; background: #0e0b09;
}
.hero-slides { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 24%; transform: scale(1) translate(-1.5%, 1%); }
.hero-slide.on img { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1) translate(-1.5%, 1%); } }
.hero::after { content: ""; position: absolute; inset: 0; background: var(--overlay); pointer-events: none; }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(0deg, rgba(14, 11, 9, .7), transparent); z-index: 1; pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 30px); padding-bottom: 100px; }
.hero-content { max-width: 720px; }
.hero .eyebrow { color: var(--copper-2); }
:root[data-theme="light"] .hero .eyebrow { color: #ddb38c; }
.hero-title { font-size: clamp(42px, 5.6vw, 80px); font-weight: 300; line-height: 1.02; color: #f6efe6; }
.hero-title em { color: #ddb38c; font-weight: 400; }
.hero-sub { font-size: 18px; line-height: 1.7; color: rgba(243, 236, 227, .82); max-width: 560px; margin: 0 0 28px; font-weight: 300; }
.hero .rule-copper { background: #c9976b; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 236, 227, .7); }
.hero-note li { display: inline-flex; align-items: center; gap: 9px; }
.hero-note svg { width: 14px; height: 14px; stroke: #c9976b; fill: none; stroke-width: 1.6; }
.free-badge { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; padding: 10px 18px 10px 14px; border: 1px solid rgba(201, 151, 107, .45); background: rgba(201, 151, 107, .1); font-size: 13px; letter-spacing: .06em; color: #f3ece3; }
.free-badge svg { width: 18px; height: 18px; stroke: #ddb38c; fill: none; stroke-width: 1.6; flex: none; }
.hero-dots { position: absolute; z-index: 3; right: 40px; bottom: 50px; display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: .2em; color: rgba(243, 236, 227, .7); }
.hero-dots button { width: 34px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.hero-dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(243, 236, 227, .4); }
.hero-dots button::after { content: ""; position: absolute; left: 0; top: 50%; height: 1px; width: 0; background: #c9976b; }
.hero-dots button.on::after { width: 100%; transition: width 6s linear; }
.hero-dots .count b { color: #fff; font-weight: 500; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 236, 227, .6); text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(#c9976b, transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* typewriter (intake hero) */
.tw-char { opacity: 0; transition: opacity .25s; }
.tw-char.on { opacity: 1; }
.tw-char.cur { box-shadow: 2px 0 0 0 #c9976b; }

/* ------------------------------------------------------------ sections */
.section { padding: 130px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-title { font-size: clamp(36px, 4.4vw, 58px); font-weight: 300; }
.section-desc { font-size: 17px; color: var(--text-2); margin: 22px 0 0; font-weight: 300; max-width: 620px; }
.center .section-desc { margin-left: auto; margin-right: auto; }

/* intro split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 90px; align-items: center; }
.split-photo { position: relative; }
.split-photo .frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.split-photo img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.split-photo::before { content: ""; position: absolute; top: -26px; left: -26px; width: 60%; height: 60%; border: 1px solid var(--copper); z-index: 0; }
.split-photo .frame { z-index: 1; }
.split-photo .tag { position: absolute; z-index: 2; right: -24px; bottom: 40px; background: var(--copper); color: var(--copper-ink); padding: 24px 28px; max-width: 230px; }
.split-photo .tag b { display: block; font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1; }
.split-photo .tag span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.lead-text { font-size: 19px; line-height: 1.8; color: var(--text-2); font-weight: 300; margin: 0 0 24px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--copper); margin-top: 30px; }

/* benefits — numbered columns */
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.benefit-card { padding: 52px 42px 50px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .5s; overflow: hidden; }
.benefit-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.benefit-card:hover { background: var(--surface); }
.benefit-card:hover::after { transform: scaleX(1); }
.benefit-no { font-family: var(--serif); font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--copper); margin-bottom: 30px; font-weight: 300; }
.benefit-icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); margin-bottom: 26px; }
.benefit-icon svg { width: 20px; height: 20px; stroke: var(--copper); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.benefit-title { font-family: var(--serif); font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
.benefit-desc { color: var(--text-2); margin: 0; font-weight: 300; }

/* practice-area tiles */
.area-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-tile {
  appearance: none; border: 0; text-align: left; cursor: pointer; background: var(--bg); color: var(--text); padding: 58px 32px 34px; min-height: 260px;
  display: flex; flex-direction: column; position: relative; overflow: hidden; transition: background .5s; text-decoration: none; font: inherit;
}
.section.alt .area-tile { background: var(--bg-2); }
.area-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--copper-soft), transparent 60%); opacity: 0; transition: opacity .5s; }
.area-tile:hover { background: var(--surface); }
.area-tile:hover::before { opacity: 1; }
.area-tile > * { position: relative; }
.area-tile .ico { width: 54px; height: 54px; margin-bottom: 24px; }
.area-tile .ico svg { width: 100%; height: 100%; stroke: var(--copper); fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease); }
.area-tile:hover .ico svg { transform: scale(1.08) rotate(-3deg); }
.area-tile .name { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin-bottom: 10px; }
.area-tile .desc { color: var(--text-2); font-size: 14.5px; font-weight: 300; line-height: 1.6; }
.area-tile .go { margin-top: auto; padding-top: 22px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 10px; transition: color .3s, gap .3s; }
.area-tile:hover .go { color: var(--copper); gap: 16px; }

/* matters list (landing pages) */
.matter-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.matter-grid li { background: var(--bg); padding: 30px 30px; display: flex; align-items: center; gap: 18px; font-family: var(--serif); font-size: 24px; transition: background .4s, padding-left .4s var(--ease); }
.section.alt .matter-grid li { background: var(--bg-2); }
.matter-grid li:hover { background: var(--surface); padding-left: 38px; }
.matter-grid .tick { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border: 1px solid var(--copper); color: var(--copper); font-family: var(--sans); font-size: 13px; transform: rotate(45deg); }
.matter-grid .tick span { transform: rotate(-45deg); }

/* parallax band + stats */
.band { position: relative; overflow: hidden; color: #f3ece3; padding: 150px 0; background: #0e0b09; }
.band-bg { position: absolute; inset: -20% 0; }
.band-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; will-change: transform; filter: saturate(.85); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 11, 9, .82), rgba(14, 11, 9, .7)); }
.band .wrap { position: relative; z-index: 1; }
.band-quote { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.3; max-width: 900px; margin: 0 auto; text-align: center; color: #f6efe6; }
.band-quote::before { content: "\201C"; display: block; font-size: 110px; line-height: .6; color: #c9976b; font-style: normal; margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 90px; border-top: 1px solid rgba(201, 151, 107, .3); }
.stat { padding: 40px 20px 0; text-align: center; border-right: 1px solid rgba(201, 151, 107, .2); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: #ddb38c; }
.stat span { display: block; margin-top: 14px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243, 236, 227, .7); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--copper) 0 6px, transparent 6px 14px); opacity: .5; }
.step { position: relative; text-align: center; }
.step-no { width: 92px; height: 92px; margin: 0 auto 30px; display: grid; place-items: center; border: 1px solid var(--copper); border-radius: 50%; background: var(--bg); font-family: var(--serif); font-size: 34px; color: var(--copper); position: relative; transition: background .5s, color .5s; }
.section.alt .step-no { background: var(--bg-2); }
.step:hover .step-no { background: var(--copper); color: var(--copper-ink); }
.step-title { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; line-height: 1.2; }
.step-desc { color: var(--text-2); font-weight: 300; margin: 0 auto; max-width: 320px; }

/* CTA band */
.cta-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cta-photo { position: relative; min-height: 440px; overflow: hidden; }
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cta-band:hover .cta-photo img { transform: scale(1.04); }
.cta-body { padding: 70px 64px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.cta-body h2 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 300; }
.cta-body p { color: var(--text-2); font-size: 17px; font-weight: 300; margin: 0 0 32px; }
.cta-body strong { color: var(--text); font-weight: 500; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 28px 50px 28px 0; position: relative; font-family: var(--serif); font-size: 25px; line-height: 1.3; transition: color .3s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before, .faq-item summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1px; background: var(--copper); transition: transform .4s var(--ease); }
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0); }
.faq-item summary:hover { color: var(--copper); }
.faq-item p { margin: 0; padding: 0 50px 30px 0; color: var(--text-2); font-weight: 300; animation: faqIn .5s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

.disclosure { font-size: 13px; line-height: 1.75; color: var(--text-3); border-left: 2px solid var(--copper); padding: 4px 0 4px 22px; margin: 70px 0 0; max-width: 900px; }
.disclosure a { color: var(--text-2); }

/* footer */
.site-footer { background: #0e0b09; color: rgba(243, 236, 227, .72); padding: 90px 0 40px; margin-top: 0; }
:root[data-theme="light"] .site-footer { background: #241c15; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 50px; padding-bottom: 60px; border-bottom: 1px solid rgba(201, 151, 107, .2); }
.site-footer .brand { color: #f3ece3; margin-bottom: 22px; }
.site-footer p { font-size: 14.5px; font-weight: 300; margin: 0; max-width: 340px; }
.site-footer h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: #c9976b; margin: 8px 0 22px; font-weight: 500; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: rgba(243, 236, 227, .78); text-decoration: none; font-size: 14.5px; transition: color .3s; }
.site-footer a:hover { color: #ddb38c; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 30px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243, 236, 227, .5); }

/* sticky mobile CTA (landing pages) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: none; transform: translateY(110%); transition: transform .45s var(--ease); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { width: 100%; }

/* back to top */
.to-top { position: fixed; right: 26px; bottom: 26px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--copper); background: var(--bg); color: var(--copper); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s, visibility .4s, transform .4s, background .3s, color .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--copper); color: var(--copper-ink); }
.to-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* page intro (terms, intake steps) */
.page-hero { padding: calc(72px + 90px) 0 70px; background: var(--bg-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid var(--line); transform: rotate(45deg); }
.page-hero h1 { font-size: clamp(42px, 5.5vw, 76px); font-weight: 300; }
.page-hero .updated { margin: 20px 0 0; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }

/* ------------------------------------------------------------ intake (index.html) */
.intake { min-height: 100vh; padding: calc(72px + 70px) 0 120px; position: relative; }
.intake::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; background: radial-gradient(ellipse at 15% 0%, var(--copper-soft), transparent 60%); pointer-events: none; }
.intake .wrap { max-width: 900px; position: relative; }
.app-anim { animation: stepIn .7s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); } }
.rail { position: fixed; top: 72px; left: 0; right: 0; z-index: 45; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.rail-track { max-width: 900px; margin: 0 auto; padding: 14px 32px; position: relative; }
.rail-line, .rail-fill { position: absolute; left: 46px; right: 46px; top: 50%; height: 1px; background: var(--line-2); }
.rail-fill { right: auto; background: var(--copper); transition: width .6s var(--ease); }
.rail-nodes { position: relative; display: flex; justify-content: space-between; }
.rail-node { width: 28px; height: 28px; display: grid; place-items: center; font-size: 11px; font-weight: 500; background: var(--bg); border: 1px solid var(--line-2); color: var(--text-3); transform: rotate(45deg); transition: all .4s; }
.rail-node > * , .rail-node { line-height: 1; }
.rail-node.done { background: var(--copper); border-color: var(--copper); color: var(--copper-ink); }
.rail-node.current { border-color: var(--copper); color: var(--copper); box-shadow: 0 0 0 5px var(--copper-soft); }
.rail-node span { transform: rotate(-45deg); }
.has-rail .intake { padding-top: calc(72px + 57px + 60px); }

.step-head { margin-bottom: 44px; }
.step-num { font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; color: var(--copper); margin: 0 0 18px; display: flex; align-items: center; gap: 14px; }
.step-num::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.step-head .step-title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.1; margin: 0 0 14px; }
.step-head .step-title .clause-no { color: var(--copper); font-style: italic; margin-right: 14px; }
.step-head .step-desc { color: var(--text-2); font-weight: 300; font-size: 17px; margin: 0; max-width: none; }
.area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area-grid .card { appearance: none; border: 0; cursor: pointer; text-align: left; background: var(--bg); padding: 44px 30px 28px; position: relative; transition: background .4s; font: inherit; color: var(--text); }
.area-grid .card::after { content: "\2192"; position: absolute; right: 28px; top: 50%; transform: translate(-8px, -50%); opacity: 0; color: var(--copper); font-size: 20px; transition: transform .4s var(--ease), opacity .4s; }
.area-grid .card:hover { background: var(--surface); }
.area-grid .card:hover::after { transform: translate(0, -50%); opacity: 1; }
.card-label { font-family: var(--serif); font-size: 28px; line-height: 1.15; }
.card-desc { color: var(--text-2); font-size: 14.5px; font-weight: 300; margin-top: 6px; }
.field { margin-bottom: 26px; }
label.q { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.intake input[type=text], .intake input[type=email], .intake input[type=tel], .intake textarea {
  width: 100%; height: 60px; padding: 0 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 0; font-size: 17px; color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.intake textarea { height: 180px; padding: 18px 20px; resize: vertical; line-height: 1.6; }
.intake input:focus, .intake textarea:focus { outline: none; border-color: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }
.intake ::placeholder { color: var(--text-3); }
.hint { font-size: 13px; color: var(--text-3); margin: 10px 0 0; }
.opts { display: flex; flex-wrap: wrap; gap: 12px; }
.opt {
  appearance: none; cursor: pointer; background: var(--surface); border: 1px solid var(--line-2); color: var(--text); padding: 16px 22px; font-size: 15.5px; text-align: left;
  display: inline-flex; align-items: center; gap: 12px; transition: border-color .3s, background .3s, color .3s;
}
.opt::before { content: ""; width: 10px; height: 10px; border: 1px solid var(--text-3); transform: rotate(45deg); flex: none; transition: background .3s, border-color .3s; }
.opt:hover { border-color: var(--copper); }
.opt.sel { border-color: var(--copper); background: var(--copper-soft); color: var(--text); }
.opt.sel::before { background: var(--copper); border-color: var(--copper); }
.step-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.review-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.review-list li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-list .rk { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); line-height: 1.6; }
.review-list .rv { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.terms-row { display: flex; gap: 14px; align-items: flex-start; margin-top: 34px; font-size: 14.5px; color: var(--text-2); font-weight: 300; }
.terms-row input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--copper); flex: none; }
.filing { min-height: 50vh; display: grid; place-items: center; text-align: center; color: var(--text-2); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; }
.stamp-spin { width: 70px; height: 70px; margin: 0 auto 24px; border: 1px solid var(--line-2); border-top-color: var(--copper); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result { text-align: center; max-width: 640px; margin: 0 auto; padding-top: 20px; }
.stamp { width: 170px; height: 170px; margin: 0 auto 40px; border: 1px solid var(--copper); border-radius: 50%; display: grid; place-content: center; position: relative; animation: stampIn .9s var(--ease) both; }
.stamp::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--copper); border-radius: 50%; animation: spin 30s linear infinite; }
.stamp .check { font-size: 40px; color: var(--copper); line-height: 1; }
.stamp .grade { font-size: 12px; letter-spacing: .4em; color: var(--copper); margin-top: 8px; padding-left: .4em; }
@keyframes stampIn { from { opacity: 0; transform: scale(1.3) rotate(-12deg); } }
.result-summary { font-family: var(--serif); font-size: 30px; font-weight: 300; line-height: 1.35; margin: 0 0 30px; }
.result .disclosure { text-align: left; margin: 0 0 40px; }

/* ------------------------------------------------------------ terms page */
.legal { padding: 80px 0 120px; }
.legal .wrap { max-width: 860px; }
.toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 60px; }
.toc a { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--text); border: 1px solid var(--line-2); padding: 12px 18px; transition: border-color .3s, color .3s, background .3s; }
.toc a:hover { border-color: var(--copper); color: var(--copper); background: var(--copper-soft); }
.legal h2 { font-size: clamp(34px, 3.6vw, 46px); font-weight: 300; margin: 80px 0 10px; scroll-margin-top: 100px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 26px; font-weight: 400; margin: 44px 0 12px; scroll-margin-top: 100px; color: var(--text); }
.legal p { font-size: 16px; line-height: 1.85; color: var(--text-2); font-weight: 300; margin: 0 0 18px; }
.legal strong { color: var(--text); font-weight: 500; }
.legal .part-intro { font-size: 18px; color: var(--text-2); margin-bottom: 30px; }
.legal .allcaps { font-size: 13.5px; line-height: 1.8; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--copper); }
.legal .placeholder { background: var(--copper-soft); border-bottom: 1px dashed var(--copper); padding: 0 3px; color: var(--text); }
.legal hr { border: 0; height: 1px; background: var(--line); margin: 80px 0; }
.legal .back-top { display: inline-flex; margin-top: 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); text-decoration: none; }
.legal .back-top:hover { color: var(--copper); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .area-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 60px; }
  .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --header-h: 70px; }
  .wrap { padding: 0 22px; }
  .section { padding: 90px 0; }
  .split, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .split-photo { max-width: 520px; }
  .split-photo .tag { right: 12px; }
  .benefit-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 50px; }
  .steps::before { display: none; }
  .matter-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { padding-bottom: 30px; }
  .cta-photo { min-height: 280px; }
  .cta-body { padding: 46px 30px; }
  .header-cta { display: none; }
  .hero-dots { right: 22px; bottom: 30px; }
  .hero-slides { left: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 11, 9, .55) 0%, rgba(14, 11, 9, .82) 55%, #0e0b09 100%); }
  .scroll-cue { display: none; }
  .sticky-cta { display: block; }
  .has-sticky .to-top { bottom: 96px; }
  .review-list li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .area-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .area-tiles { grid-template-columns: minmax(0, 1fr); }
  .area-tile { min-height: 0; padding: 30px 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-sub { font-size: 16.5px; }
  .hero-inner { padding-bottom: 100px; }
  .btn { height: 52px; padding: 0 22px; }
  .hero-cta .btn { width: 100%; }
  .brand { font-size: 11.5px; letter-spacing: .2em; }
  .brand .brand-sub { display: none; }
  .docket { display: none; }
  .step-actions .btn { padding: 0 18px; }
  .benefit-card { padding: 40px 26px; }
  .faq-item summary { font-size: 22px; }
  .rail-node { width: 22px; height: 22px; font-size: 10px; }
  .rail-line, .rail-fill { left: 40px; right: 40px; }
  .to-top { right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
.no-hero .page-hero .wrap { max-width: 860px; }
