/* =============================================================
   1. Tokens — single dark, warm-gold identity
   ============================================================= */
:root {
  color-scheme: dark;
  --bg: #100C08;
  --bg-2: #17120C;
  --bg-3: #1F1811;
  --ink: #F3ECDF;
  --ink-soft: #BCAE94;
  --ink-faint: #8C7E65;
  --gold: #CBA463;
  --gold-bright: #E4C286;
  --gold-glow: rgba(203,164,99,0.16);
  --line: rgba(243,236,223,0.13);
  --line-soft: rgba(243,236,223,0.07);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 10px);
  overflow-x: clip;
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -0.01em; text-wrap: balance; }
em { font-style: italic; color: var(--gold); }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 4px; }

/* subtle film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 200; background: var(--gold); color: var(--bg); padding: 10px 16px; }
.skip-link:focus { top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out);
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-solid { background: var(--gold); border-color: var(--gold); color: #17110A; }
.btn-solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line); color: var(--gold);
  background: rgba(203,164,99,0.04);
}

/* =============================================================
   5. Header + rail
   ============================================================= */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  transition: background-color .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
header.site.is-scrolled {
  background: rgba(16,12,8,0.86);
  border-bottom-color: var(--line-soft);
}
@supports (backdrop-filter: blur(10px)) {
  header.site.is-scrolled { background: rgba(16,12,8,0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 40px; width: auto; transition: transform .5s var(--ease-out); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-name {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft);
  padding-left: 14px; border-left: 1px solid var(--line);
}
.navlinks { display: flex; gap: 34px; }
.navlinks a { position: relative; font-size: 0.84rem; letter-spacing: 0.04em; color: var(--ink-soft); transition: color .3s; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.navlinks a:hover, .navlinks a.is-active { color: var(--ink); }
.navlinks a:hover::after, .navlinks a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 10px 18px; }

.menu-btn { display: none; width: 40px; height: 40px; position: relative; }
.menu-btn span { position: absolute; left: 9px; right: 9px; height: 1px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); background: rgba(16,12,8,0.97); }
.mobile-panel > .wrap { overflow: hidden; }
.mobile-panel.open { grid-template-rows: 1fr; border-bottom: 1px solid var(--line-soft); }
.mobile-panel a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 1.6rem; border-top: 1px solid var(--line-soft); }
.mobile-panel a:last-child { margin-bottom: 18px; }

.rail {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40;
  display: none; flex-direction: column; gap: 16px; align-items: flex-end;
}
.rail a { position: relative; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); opacity: .5; transition: all .4s var(--ease-out); }
.rail a::before {
  content: attr(data-label); position: absolute; right: 18px; top: 50%; transform: translate(6px, -50%);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink-soft); opacity: 0; transition: all .4s var(--ease-out); pointer-events: none;
}
.rail a:hover { opacity: 1; }
.rail a:hover::before, .rail a.is-active::before { opacity: 1; transform: translate(0, -50%); }
.rail a.is-active { background: var(--gold); opacity: 1; box-shadow: 0 0 0 4px var(--gold-glow); }

/* =============================================================
   6. Sections
   ============================================================= */
section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
section + section { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(44px, 6vw, 72px); max-width: 640px; }
.section-head h2, .contact-info h2, .about-copy h2 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.lede { color: var(--ink-soft); max-width: 54ch; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 80px) clamp(90px, 10vw, 130px); min-height: min(calc(100svh - var(--nav-h)), 900px); display: flex; align-items: center; margin-top: calc(var(--nav-h) * -1); padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 70px)); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 55% 60% at 74% 46%, rgba(203,164,99,0.17), transparent 70%),
    radial-gradient(ellipse 40% 45% at 12% 90%, rgba(160,104,52,0.10), transparent 70%);
}
.hero-glow::before {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: 45%; top: -10%;
  background: radial-gradient(circle, rgba(228,194,134,0.08), transparent 60%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-12%, 14%); } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; width: 100%; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero-title { font-size: clamp(3.4rem, 9.5vw, 7.4rem); line-height: 0.92; letter-spacing: -0.02em; }
.hero-title em { color: var(--gold); padding-left: 0.04em; }
.hero-sub { color: var(--ink-soft); max-width: 48ch; font-size: 1.05rem; }

.hero-roles { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 24px; border-top: 1px solid var(--line-soft); width: 100%; max-width: 520px; }
.hero-roles li { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.hero-roles svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Tax calendar card (hero) */
.cal-card {
  position: relative; display: grid; gap: 22px; width: 100%; max-width: 420px;
  padding: clamp(26px, 3.4vw, 36px); border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(36,28,19,0.92), rgba(16,12,8,0.92));
  box-shadow: 0 40px 100px -40px rgba(203,164,99,0.35);
}
.cal-card::before, .cal-card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); }
.cal-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cal-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-today { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.cal-today b { font-weight: 500; color: var(--ink); }
.cal-kicker, .cal-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.cal-next { display: grid; gap: 6px; }
.cal-date { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 6vw, 4.4rem); line-height: 1; color: var(--gold); }
.cal-what { font-size: 0.95rem; }
.cal-count {
  justify-self: start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright);
}
.cal-count::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 0 rgba(228,194,134,0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(228,194,134,0); } 100% { box-shadow: 0 0 0 0 rgba(228,194,134,0); } }
.cal-list { display: grid; border-top: 1px solid var(--line-soft); }
.cal-list li {
  display: grid; grid-template-columns: 66px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft);
  font-size: 0.86rem; color: var(--ink-soft); transition: color .4s;
}
.cal-list li span:first-child { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; padding-top: 2px; }
.cal-list li.is-past { color: var(--ink-faint); opacity: .55; }
.cal-list li.is-past span:last-child { text-decoration: line-through; text-decoration-color: var(--line); }
.cal-list li.is-next { color: var(--ink); }
.cal-list li.is-next span:first-child { color: var(--gold-bright); }
.cal-foot { font-size: 0.8rem; color: var(--ink-faint); line-height: 1.55; }
.cal-foot strong { color: var(--ink); font-weight: 500; }

/* Illustrative savings card */
.case-card {
  position: relative; display: grid; gap: 24px; width: 100%; max-width: 440px;
  padding: clamp(26px, 3.4vw, 38px); border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(36,28,19,0.92), rgba(16,12,8,0.92));
  box-shadow: 0 40px 100px -40px rgba(203,164,99,0.35);
}
.case-card::before, .case-card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 1px solid var(--gold); }
.case-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.case-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.case-head { display: flex; justify-content: space-between; align-items: center; }
.case-head img { width: 22px; height: auto; opacity: .85; }
.case-kicker { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }
.case-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1; }
.bars { display: grid; gap: 18px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.bar-row { display: grid; gap: 8px; }
.bar-label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.bar { height: 8px; background: rgba(243,236,223,0.05); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(243,236,223,0.28); transform-origin: left; }
.bar-row.is-gold .bar-label span:last-child { color: var(--gold-bright); }
.bar-row.is-gold .bar i { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
/* bars grow when their card scrolls into view */
.reveal.pre .bar i { transform: scaleX(0); }
.reveal.in .bar i { animation: grow 1.6s var(--ease-out) .4s both; }
.reveal.in .bar-row.is-gold .bar i { animation-delay: .75s; }
@keyframes grow { from { transform: scaleX(0); } }
.case-result { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.case-result strong { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 5vw, 3.8rem); line-height: 1; color: var(--gold); }
.case-result span { font-size: 0.92rem; color: var(--ink); max-width: 30ch; }
.case-card figcaption { font-size: 0.78rem; color: var(--ink-faint); line-height: 1.5; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Facts ---------- */
.facts { padding-block: 0; background: var(--bg-2); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fact { display: grid; gap: 8px; padding: 40px 22px; border-left: 1px solid var(--line-soft); }
.fact:nth-child(odd) { border-left: 0; padding-left: 0; }
.fact:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.fact svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-bottom: 10px; }
.fact strong { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.fact > span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Services ---------- */
.service-grid { display: grid; gap: 18px; }
.service {
  --mx: 50%; --my: 0%;
  position: relative; display: grid; gap: 20px; align-content: start;
  padding: 34px 30px 32px; border: 1px solid var(--line-soft);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(203,164,99,0.10), transparent 60%),
    linear-gradient(170deg, var(--bg-3), var(--bg) 75%);
  transition: border-color .5s var(--ease-out), transform .5s var(--ease-out);
}
.service:hover { border-color: rgba(203,164,99,0.35); transform: translateY(-4px); }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.service-for { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); padding-top: 6px; }
.service-icon { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1; opacity: .85; flex-shrink: 0; }
.service h3 { font-size: clamp(1.9rem, 3vw, 2.3rem); line-height: 1; }
.service p { color: var(--ink-soft); font-size: 0.95rem; }
.service-list { display: grid; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.service-list li { position: relative; padding-left: 20px; font-size: 0.9rem; color: var(--ink); }
.service-list li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1px; background: var(--gold); }
.service-feature { gap: 36px; margin-top: 18px; }
.service-feature .case-card { max-width: none; }
.feature-copy { display: grid; gap: 20px; align-content: start; }
.service-feature h3 { font-size: clamp(2.2rem, 4vw, 3rem); }
.service-feature p { max-width: 56ch; font-size: 1rem; }
.phases { display: grid; }
.phases li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-soft); }
.phases li:last-child { padding-bottom: 0; }
.phase-when { font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--gold); line-height: 1.2; }
.phases h5 { font-family: var(--mono); font-weight: 500; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.phases p { font-size: 0.92rem; }
.services-note { margin-top: 40px; color: var(--ink-soft); }
.services-note a { color: var(--gold-bright); border-bottom: 1px solid rgba(228,194,134,0.4); transition: border-color .3s; }
.services-note a:hover { border-color: var(--gold-bright); }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.steps { display: grid; gap: 0; counter-reset: s; }
.step { display: grid; gap: 12px; padding: 34px 0; border-top: 1px solid var(--line); position: relative; }
.step-num { font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--gold); }
.step h3 { font-size: 1.7rem; }
.step p { color: var(--ink-soft); font-size: 0.95rem; max-width: 40ch; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 56px; align-items: start; }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 { margin-bottom: 8px; }
.about-copy p { color: var(--ink-soft); max-width: 58ch; }

.signature { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.signature img {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  filter: saturate(0.7) sepia(0.12) contrast(1.02);
  box-shadow: 0 0 0 1px rgba(203,164,99,0.55), 0 0 0 5px var(--bg), 0 0 0 6px var(--line-soft);
}
.signature > div { display: grid; gap: 2px; }
.sig-name { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.1; }
.sig-role { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }

.about-figures { display: grid; margin: 0; }
.about-figures > div { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.about-figures > div:last-child { border-bottom: 1px solid var(--line-soft); }
.about-figures dt { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--gold); font-variant-numeric: lining-nums tabular-nums; }
.about-figures small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-left: 8px; }
.about-figures dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.principles { display: grid; gap: 1px; margin-top: clamp(56px, 7vw, 88px); background: var(--line-soft); border: 1px solid var(--line-soft); }
.principles li { display: grid; gap: 10px; padding: 30px 28px; background: var(--bg); }
.principles svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.4; margin-bottom: 6px; }
.principles h3 { font-size: 1.7rem; }
.principles p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Insights ---------- */
.notes { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.note { display: grid; gap: 18px; align-content: space-between; min-height: 200px; padding: 28px 26px; background: var(--bg); transition: background-color .4s var(--ease-out); }
.note:hover { background: var(--bg-3); }
.note-tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.note h3 { font-size: 1.55rem; line-height: 1.08; }
.note-soon { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }
.note-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink-faint); }

/* published insight card */
a.note { color: inherit; }
.note.is-live { background: linear-gradient(170deg, var(--bg-3), var(--bg) 80%); }
.note.is-live:hover { background: var(--bg-3); }
.note-excerpt { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.note-read { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-bright); display: flex; justify-content: space-between; gap: 12px; }
.note-read b { font-weight: 500; transition: transform .35s var(--ease-out); }
.note.is-live:hover .note-read b { transform: translateX(4px); }
.note.is-live h3 { transition: color .3s; }
.note.is-live:hover h3 { color: var(--gold-bright); }

/* ---------- Contact ---------- */
.contact { overflow: clip; }
.contact-glow { background: radial-gradient(ellipse 50% 60% at 15% 30%, rgba(203,164,99,0.12), transparent 70%); }
.contact-glow::before { display: none; }
.contact-grid { display: grid; gap: 56px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-info p { color: var(--ink-soft); max-width: 42ch; }
.wa-btn {
  display: flex; align-items: center; gap: 16px; max-width: 380px; margin-top: 10px;
  padding: 16px 20px; border: 1px solid rgba(203,164,99,0.45);
  background: linear-gradient(120deg, rgba(203,164,99,0.14), rgba(203,164,99,0.03));
  transition: border-color .35s var(--ease-out), background-color .35s var(--ease-out), transform .35s var(--ease-out);
}
.wa-btn:hover { border-color: var(--gold); transform: translateY(-2px); }
.wa-btn svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-bright); stroke-width: 1.3; flex-shrink: 0; }
.wa-btn span { display: grid; gap: 2px; }
.wa-btn { position: relative; }
.wa-avatar { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.7) sepia(0.12); box-shadow: 0 0 0 1px rgba(203,164,99,0.55); }
.wa-avatar + svg { position: absolute; left: 50px; top: 46px; width: 20px !important; height: 20px !important; padding: 3px; border-radius: 50%; background: var(--bg); box-sizing: content-box; }
.wa-btn strong { font-weight: 500; font-size: 1rem; }
.wa-btn small { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.direct { display: grid; gap: 10px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.direct-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.direct-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.direct-mail { font-family: var(--serif); font-size: 1.6rem; user-select: all; overflow-wrap: anywhere; }
.copy-btn { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 7px 12px; transition: border-color .3s; }
.copy-btn:hover { border-color: var(--gold); }

.contact-form { display: grid; gap: 22px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-soft); background: rgba(23,18,12,0.6); }
.topic { border: 0; padding: 0; display: grid; gap: 12px; }
.topic legend, .field label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line); font-size: 0.84rem; color: var(--ink-soft); transition: all .3s var(--ease-out); }
.chips label:hover span { border-color: rgba(203,164,99,0.5); color: var(--ink); }
.chips input:checked + span { border-color: var(--gold); color: var(--bg); background: var(--gold); }
.chips input:focus-visible + span { outline: 1px solid var(--gold-bright); outline-offset: 3px; }
.field-row { display: grid; gap: 22px; }
.field { display: grid; }
.field label { margin-bottom: 8px; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: .7; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #D9826B; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-family: var(--sans) !important; font-size: 0.86rem !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-soft) !important; margin: 0 !important; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; padding: 0; margin-top: 2px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { content: ""; width: 8px; height: 4px; border: solid var(--bg); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
.check input:focus-visible { outline: 1px solid var(--gold-bright); outline-offset: 3px; }
.consent.is-invalid .check input { border-color: #D9826B; }
.check a, .consent-info a { color: var(--gold-bright); border-bottom: 1px solid rgba(228,194,134,0.35); }
.consent-info { font-size: 0.74rem; line-height: 1.55; color: var(--ink-faint); }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { font-size: 0.86rem; color: var(--ink-soft); }
.form-status.is-error { color: #E39A84; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; gap: 32px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 30px; height: auto; }
.foot-brand p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.foot-brand span { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-links a { font-size: 0.84rem; color: var(--ink-soft); transition: color .3s; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-copy { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.foot-copy a { color: var(--ink-soft); transition: color .3s; }
.foot-copy a:hover { color: var(--gold-bright); }

/* ---------- Legal pages ---------- */
.legal-page header.site { position: sticky; }
.legal-back { padding: 10px 16px; }
.legal { max-width: 820px; padding-block: clamp(56px, 8vw, 100px); display: grid; gap: 18px; }
.legal h1 { font-size: clamp(2.8rem, 7vw, 4.6rem); margin-top: 10px; }
.legal-updated { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.legal h2 { font-size: 1.7rem; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.98rem; max-width: 68ch; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal ul { display: grid; gap: 10px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--gold); }
.legal a { color: var(--gold-bright); border-bottom: 1px solid rgba(228,194,134,0.35); }
.legal-id { display: grid; margin: 4px 0; border: 1px solid var(--line-soft); padding: 6px 22px; background: var(--bg-2); }
.legal-id > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-soft); }
.legal-id > div:last-child { border-bottom: 0; }
.legal-id dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 4px; }
.legal-id dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.legal-table th { font-family: var(--mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.legal-table td { color: var(--ink-soft); padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
@media (max-width: 539px) { .legal-id > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Article pages (insights) ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); transform: scaleX(0); transform-origin: left; }

.post-head { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line-soft); }
.post-head-inner { display: grid; gap: 26px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.crumbs a { color: var(--gold); transition: color .3s; }
.crumbs a:hover { color: var(--gold-bright); }
.post-title { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 0.96; max-width: 16ch; }
.post-lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 58ch; }
.post-meta { display: flex; align-items: center; gap: 14px; }
.post-meta img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.7) sepia(0.12); box-shadow: 0 0 0 1px rgba(203,164,99,0.55); }
.post-meta > div { display: grid; }
.post-author { font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.1; }
.post-info { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }

.year-strip { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line-soft); background: rgba(23,18,12,0.6); counter-reset: ys; }
.year-strip li { position: relative; display: grid; gap: 4px; padding: 20px 20px 22px; border-left: 1px solid var(--line-soft); }
.year-strip li:nth-child(odd) { border-left: 0; }
.year-strip li:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.year-strip span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.year-strip strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.year-strip small { font-size: 0.8rem; color: var(--ink-faint); }

.post-layout { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 88px); }
.toc { display: none; }
.toc-label { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line-soft); }
.toc ol a { display: block; padding: 7px 0 7px 16px; margin-left: -1px; border-left: 1px solid transparent; font-size: 0.86rem; color: var(--ink-faint); transition: color .3s, border-color .3s; }
.toc ol a:hover { color: var(--ink); }
.toc ol a.is-active { color: var(--gold-bright); border-left-color: var(--gold); }
.toc-share { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc-share .toc-label { width: 100%; margin-bottom: 4px; }
.share-btn { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 8px 12px; transition: border-color .3s, color .3s; }
.share-btn:hover { border-color: var(--gold); color: var(--gold-bright); }

.prose { display: grid; gap: 20px; max-width: 700px; min-width: 0; }
.prose > p, .prose li { color: var(--ink-soft); font-size: 1.04rem; line-height: 1.75; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose em { font-style: italic; color: var(--ink); }
.prose a:not(.btn) { color: var(--gold-bright); border-bottom: 1px solid rgba(228,194,134,0.35); }
.prose h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line-soft); scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose > ul { display: grid; gap: 12px; }
.prose > ul > li { position: relative; padding-left: 22px; }
.prose > ul > li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 9px; height: 1px; background: var(--gold); }

.glance { border: 1px solid rgba(203,164,99,0.35); background: linear-gradient(160deg, rgba(203,164,99,0.08), transparent 70%); padding: 26px 28px; position: relative; }
.glance::before { content: ""; position: absolute; top: -1px; left: -1px; width: 16px; height: 16px; border: 1px solid var(--gold); border-right: 0; border-bottom: 0; }
.glance-label, .callout-label { display: block; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.glance ul { display: grid; gap: 12px; }
.glance li { position: relative; padding-left: 22px; font-size: 0.98rem; color: var(--ink-soft); }
.glance li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 9px; height: 5px; border: solid var(--gold); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }

.steps-list { display: grid; counter-reset: st; border-top: 1px solid var(--line-soft); }
.steps-list li { counter-increment: st; position: relative; display: grid; gap: 6px; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line-soft); }
.steps-list li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--serif); font-style: italic; font-size: 2.2rem; line-height: 1; color: var(--gold); }
.steps-list h3 { font-size: 1.45rem; }
.steps-list p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; }

.callout { border-left: 2px solid var(--gold); background: var(--bg-2); padding: 18px 22px; }
.callout p { color: var(--ink); font-size: 0.98rem; line-height: 1.65; }
.post-table table { min-width: 0; }
.post-table td:first-child { font-family: var(--mono); color: var(--gold); font-size: 0.8rem; }
.post-table td:last-child { color: var(--ink); }

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-block: 18px; padding: 26px 28px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(203,164,99,0.12), rgba(203,164,99,0.02)); }
.inline-cta p { color: var(--ink); max-width: 40ch; }
.inline-cta .callout-label { margin-bottom: 6px; }

.mistakes { display: grid; gap: 14px; counter-reset: mk; }
.mistakes li { counter-increment: mk; position: relative; padding-left: 44px; }
.mistakes li::before { content: counter(mk); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: 0.72rem; color: var(--gold); }

.post-note { font-size: 0.82rem !important; color: var(--ink-faint) !important; line-height: 1.6 !important; padding-top: 22px; border-top: 1px dashed var(--line-soft); margin-top: 10px; }

.author-card { display: grid; gap: 22px; margin-top: 24px; padding: 30px; border: 1px solid var(--line); background: linear-gradient(165deg, var(--bg-3), var(--bg-2)); position: relative; }
.author-card::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 16px; height: 16px; border: 1px solid var(--gold); border-left: 0; border-top: 0; }
.author-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; filter: saturate(0.7) sepia(0.12); box-shadow: 0 0 0 1px rgba(203,164,99,0.55), 0 0 0 5px var(--bg-3), 0 0 0 6px var(--line-soft); }
.author-copy { display: grid; gap: 10px; }
.author-copy h2 { font-size: 2rem; border: 0; margin: 0; padding: 0; }
.author-copy p { color: var(--ink-soft); font-size: 0.96rem; max-width: 48ch; }
.author-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.more-insights { border-top: 1px solid var(--line-soft); padding-block: clamp(64px, 8vw, 100px); }
.more-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 32px; }
.more-all { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.more-all:hover { color: var(--gold-bright); }

@media (min-width: 720px) {
  .year-strip { grid-template-columns: repeat(4, 1fr); }
  .year-strip li, .year-strip li:nth-child(odd) { border-left: 1px solid var(--line-soft); }
  .year-strip li:first-child { border-left: 0; }
  .year-strip li:nth-child(n+3) { border-top: 0; }
  .author-card { grid-template-columns: auto 1fr; align-items: start; gap: 28px; }
  .more-insights .notes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .post-layout { grid-template-columns: 220px minmax(0, 700px); justify-content: space-between; gap: 80px; }
  .toc { display: block; position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
}

/* =============================================================
   7. Effects — load sequence + scroll reveal
   ============================================================= */
.load { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* Reveal only applies to elements JS marked as below the fold */
.reveal.pre { opacity: 0; transform: translateY(28px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (max-width: 959px) {
  .navlinks, .nav-cta, .brand-name { display: none; }
  .menu-btn { display: block; }
}
@media (min-width: 540px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .facts-grid { grid-template-columns: repeat(4, 1fr); }
  .fact { padding: 52px 28px; border-left: 1px solid var(--line-soft); }
  .fact:nth-child(odd) { border-left: 1px solid var(--line-soft); padding-left: 28px; }
  .fact:first-child { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 0; }
  .notes { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: center; }
  .foot-copy { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line-soft); }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 40px; }
  .cal-card { justify-self: end; }
  .scroll-cue { display: flex; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-feature { grid-template-columns: 1.1fr 0.9fr; gap: 48px 64px; padding: 44px 44px 40px; align-items: center; }
  .service-feature .phases { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .service-feature .phases li { grid-template-columns: 1fr; gap: 8px; padding-bottom: 0; }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; }
  .about-grid { align-items: center; }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
  .notes { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .rail { display: flex; }
}

/* =============================================================
   9. Reduced motion — only intrusive loops
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow::before, .scroll-cue span, .cal-count::before { animation: none; }
}
