/* IB NOVA site styles. Built on the founder's portfolio design system:
   black, cream and wine; Big Shoulders Display + Hanken Grotesk; pill controls,
   rounded cream sheets, masked headline reveals. Static, no build step. */

/* ---------- tokens ---------- */
:root {
  --black: #0b0b0b;
  --black-raised: #171212;
  --cream: #f8f1e7;
  --cream-deep: #ece1d0;
  --wine: #5b0f18;
  --wine-deep: #450b12;
  --wine-lit: #8c2a35;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 82rem;
  --gutter: clamp(1.25rem, .6rem + 3vw, 4rem);
  --header-h: 96px;
  --r-md: .875rem;
  --r-lg: 1.375rem;
  --r-sheet: clamp(1.5rem, 1rem + 2vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9rem);

  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .8125rem;
  --t-lede: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --t-h3: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --t-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4.75rem);
  --t-display: clamp(2.75rem, 1.3rem + 5.6vw, 6.5rem);
  --t-display-xl: clamp(3rem, 1.2rem + 7.4vw, 8.5rem);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);

  /* context colours (dark by default; .light / .wine sections redefine them) */
  --fg: var(--cream);
  --fg-soft: rgb(207, 197, 184);
  --fg-mute: rgb(156, 144, 134);
  --line: rgba(248, 241, 231, .14);
  --surface: rgba(248, 241, 231, .04);
  --surface-hi: rgba(248, 241, 231, .08);
  --accent: rgb(210, 184, 177);
  --mark-bg: var(--wine);
  --mark-fg: var(--cream);
  --chip-bg: var(--cream);
  --chip-fg: var(--black);
  /* legacy names still used in inline styles */
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
}
.light, .light-2 {
  --fg: var(--black);
  --fg-soft: rgb(59, 51, 49);
  --fg-mute: rgb(98, 88, 84);
  --line: rgba(11, 11, 11, .14);
  --surface: rgba(255, 255, 255, .45);
  --surface-hi: rgba(255, 255, 255, .75);
  --accent: var(--wine);
  --mark-bg: var(--wine);
  --mark-fg: var(--cream);
  --chip-bg: var(--black);
  --chip-fg: var(--cream);
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
}
.wine, .cta {
  --fg: var(--cream);
  --fg-soft: rgb(235, 220, 210);
  --fg-mute: rgb(210, 184, 177);
  --line: rgba(248, 241, 231, .2);
  --surface: rgba(11, 11, 11, .14);
  --surface-hi: rgba(11, 11, 11, .24);
  --accent: var(--cream);
  --mark-bg: var(--cream);
  --mark-fg: var(--wine);
  --chip-bg: var(--cream);
  --chip-fg: var(--wine);
  --ink: var(--fg);
  --ink-soft: var(--fg-soft);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); background: var(--black); scrollbar-color: var(--wine-lit) var(--black); }
body {
  margin: 0;
  background: var(--black);
  color: var(--fg);
  font: 400 var(--t-body)/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  line-height: .95; letter-spacing: -.005em; margin: 0; text-wrap: balance;
}
h3 { font-weight: 700; line-height: 1.05; letter-spacing: .005em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--wine-lit); color: var(--cream); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--black-raised); border: 3px solid var(--black); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--wine-lit); }
[hidden] { display: none !important; }
.num, .money { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cream); color: var(--black); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 1rem; }

/* highlighted word: wine block on dark/cream, cream block on wine */
.lit {
  background: var(--mark-bg); color: var(--mark-fg);
  padding: 0 .14em; border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* small uppercase label */
.eyebrow, .tl-num, .post-cat, .plan-facts dt, .svc-fact span, .site-footer h2, .toc h2, .breadcrumbs, .glance dt {
  font-family: var(--body); font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- buttons (pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 3.25rem; padding: .45rem .5rem .45rem 1.5rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), transform .55s var(--ease);
}
.btn svg {
  box-sizing: content-box; width: 1.05rem; height: 1.05rem; padding: .6rem; border-radius: 50%;
  transition: transform .55s var(--ease), background-color .3s var(--ease-soft), color .3s var(--ease-soft);
}
.btn:not(:has(svg)) { padding-right: 1.5rem; }
.btn:hover svg { transform: rotate(-45deg); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--chip-bg); color: var(--chip-fg); }
.btn-primary svg { background: var(--wine); color: var(--cream); }
.wine .btn-primary svg, .cta .btn-primary svg { background: var(--wine); color: var(--cream); }
.btn-primary:hover { background: var(--wine-lit); color: var(--cream); }
.btn-primary:hover svg { background: var(--cream); color: var(--wine); }
.btn-ghost { color: var(--fg); border-color: var(--line); background: transparent; }
.btn-ghost svg { background: var(--surface-hi); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-ghost:hover svg { background: var(--fg); color: var(--black); }
.light .btn-ghost:hover svg, .light-2 .btn-ghost:hover svg { color: var(--cream); }

/* underline link (background-size grow) */
.ulink, .site-footer ul a, .cta .mail a, .toc a, .breadcrumbs a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .7s var(--ease), color .3s var(--ease-soft);
}
.ulink:hover, .site-footer ul a:hover, .cta .mail a:hover, .breadcrumbs a:hover { background-size: 100% 1px; }

/* ---------- header: logo + pill nav + Let's talk pill ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: transform .55s var(--ease); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; padding: .5rem 0; }
.brand img { width: 84px; height: auto; }
.nav { margin-left: auto; }
.nav > ul {
  list-style: none; margin: 0; padding: .35rem; display: flex; gap: .15rem; align-items: center;
  background: rgba(23, 18, 18, .72); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav a, .sub-btn {
  display: inline-flex; align-items: center; gap: .3rem; padding: .6rem 1rem; border-radius: 999px; border: 0; background: none;
  text-decoration: none; font: 500 .95rem/1 var(--body); color: var(--fg-soft); cursor: pointer;
  transition: color .3s var(--ease-soft), background-color .3s var(--ease-soft);
}
.nav a:hover, .sub-btn:hover, .has-sub.open .sub-btn { color: var(--cream); background: rgba(248, 241, 231, .08); }
.nav a[aria-current="page"], .sub-btn.is-current { color: var(--cream); background: var(--wine); }
.sub-btn svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.has-sub { position: relative; }
.has-sub.open .sub-btn svg { transform: rotate(180deg); }
.nav .sub {
  list-style: none; margin: 0; position: absolute; top: calc(100% + .7rem); left: 0; min-width: 16rem;
  display: none; flex-direction: column; gap: .15rem; padding: .5rem;
  background: var(--black-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
.has-sub.open .sub { display: flex; animation: drop .45s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.nav .sub a { display: block; border-radius: var(--r-md); padding: .75rem 1rem; }
.nav .nav-cta { display: none; }
.menu-btn { display: none; }
.header-cta { flex: none; min-height: 3.1rem; }
.header-cta::after {
  content: ""; width: 2.1rem; height: 2.1rem; border-radius: 50%; margin-right: -.05rem;
  background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F8F1E7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: transform .55s var(--ease);
}
.header-cta { padding-right: .5rem; }
.header-cta:hover::after { transform: rotate(45deg); }
.site-header.scrolled .header-row { min-height: 76px; }
.header-row { transition: min-height .55s var(--ease); }

/* ---------- hero glow (replaces the old particle canvas) ---------- */
.nova-field { position: relative; isolation: isolate; overflow: hidden; background: var(--black); }
.nova-field > canvas.nova { display: none; }
.nova-field::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(42vmax 34vmax at 22% 38%, rgba(140, 42, 53, .5), transparent 68%),
    radial-gradient(30vmax 26vmax at 88% 86%, rgba(91, 15, 24, .55), transparent 70%);
}
.cta.nova-field::before { background: radial-gradient(40vmax 30vmax at 85% 10%, rgba(140, 42, 53, .55), transparent 70%); }

/* ---------- home hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(3rem, 8vh, 6rem)) 0 clamp(4rem, 9vw, 7rem); min-height: min(100svh, 64rem); display: flex; align-items: center; }
.hero-center { text-align: center; }
.hero-center > div { max-width: 72rem; margin: 0 auto; }
.hero-title { font-size: var(--t-display-xl); line-height: .9; margin: 0 auto clamp(1.5rem, 3vw, 2.25rem); }
.hero .lede, .page-hero .lede { font-size: var(--t-lede); color: var(--fg-soft); max-width: 40rem; margin-bottom: 2.25rem; line-height: 1.55; }
.hero-center .lede { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-center .hero-actions, .hero-center .hero-points { justify-content: center; }
.hero-points { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; color: var(--fg-soft); font-size: var(--t-small); }
.hero-points li { display: flex; align-items: center; gap: .5rem; padding: .45rem .9rem .45rem .5rem; border: 1px solid var(--line); border-radius: 999px; }
.hero-points svg { width: 1.4rem; height: 1.4rem; padding: .25rem; border-radius: 50%; background: var(--wine); color: var(--cream); }
.ic-chip { display: inline-grid; place-items: center; vertical-align: middle; width: .82em; height: .82em; margin: 0 .08em; border-radius: 50%; background: var(--cream); color: var(--wine); transform: translateY(-.06em); }
.ic-chip svg { width: 46%; height: 46%; }

/* ---------- marquee (outlined words, ✦ separators) ---------- */
.marquee { overflow: hidden; padding: clamp(1.25rem, 2.5vw, 2rem) 0; border-block: 1px solid var(--line); background: var(--black); }
.marquee-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.marquee li {
  display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); padding-right: clamp(1.25rem, 2.5vw, 2.25rem);
  font: 800 clamp(2.5rem, 1.5rem + 4vw, 5.5rem)/1 var(--display); text-transform: uppercase; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px rgba(248, 241, 231, .55);
}
.marquee li:nth-child(even) { color: var(--cream); -webkit-text-stroke: 0; }
.marquee li::after { content: "\2726"; font-size: .45em; color: var(--wine-lit); -webkit-text-stroke: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { 100% { transform: translateX(-50%); } }

/* ---------- count-up stats ---------- */
.glance-band { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--black); }
.glance { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.glance > div { padding: .5rem clamp(1rem, 2.5vw, 2rem); display: flex; flex-direction: column; gap: .6rem; }
.glance > div + div { border-left: 1px solid var(--line); }
.glance > div:first-child { padding-left: 0; }
.glance dd { order: 1; margin: 0; font: 800 clamp(3.25rem, 2rem + 4vw, 6rem)/.9 var(--display); color: var(--cream); font-variant-numeric: tabular-nums; }
.glance dd small { font-size: .45em; color: var(--wine-lit); margin-left: .05em; }
.glance dt { order: 2; color: var(--fg-soft); }

/* ---------- sections: dark, rounded cream sheets, wine ---------- */
.section { padding: var(--section) 0; position: relative; }
.dark { background: var(--black); color: var(--fg); }
.light, .light-2 { color: var(--fg); }
.light { background: var(--cream); }
.light-2 { background: var(--cream-deep); }
.wine, .cta { background: var(--wine); color: var(--fg); }
/* a run of cream sections reads as one sheet with rounded ends */
:is(.light, .light-2):not(:is(.light, .light-2) + *) { border-top-left-radius: var(--r-sheet); border-top-right-radius: var(--r-sheet); }
:is(.light, .light-2):not(:has(+ :is(.light, .light-2))) { border-bottom-left-radius: var(--r-sheet); border-bottom-right-radius: var(--r-sheet); }
.light a:not(.btn), .light-2 a:not(.btn) { color: var(--wine); }
.section-head { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: var(--t-h2); margin-bottom: 1.25rem; }
.section-head p { font-size: var(--t-lede); color: var(--fg-soft); max-width: 40rem; line-height: 1.55; }
.svc-section .section-head, .post-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; max-width: none; }
.svc-section .section-head > div, .post-head > div { max-width: 46rem; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .section-head { position: sticky; top: 7rem; }
@media (min-width: 861px) { .split-contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }

/* ---------- service cards (staggered, rounded art) ---------- */
.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); }
.svc-card:nth-child(even) { transform: translateY(clamp(2rem, 6vw, 6rem)); }
.svc-cards { padding-bottom: clamp(2rem, 6vw, 6rem); }
.svc-card a { display: flex; flex-direction: column; height: 100%; color: var(--fg); text-decoration: none; }
.svc-art { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgb(235, 220, 210); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.svc-art svg { width: 58%; height: auto; transition: transform 1.2s var(--ease); }
.svc-card a:hover .svc-art svg { transform: scale(1.12); }
.art-1 { background: radial-gradient(120% 90% at 80% 10%, var(--wine-lit), transparent 60%), var(--wine-deep); }
.art-2 { background: radial-gradient(120% 90% at 20% 10%, rgba(140, 42, 53, .8), transparent 62%), var(--black-raised); }
.art-3 { background: radial-gradient(80% 80% at 50% 50%, var(--wine-lit), transparent 66%), var(--wine-deep); }
.art-4 { background: radial-gradient(120% 90% at 10% 100%, rgba(140, 42, 53, .85), transparent 60%), var(--black-raised); }
.svc-badge {
  position: absolute; right: 1rem; top: 1rem; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--cream); color: var(--wine); display: grid; place-items: center;
  transition: transform .55s var(--ease);
}
.svc-card a:hover .svc-badge { transform: rotate(-45deg) scale(1.05); }
.svc-badge svg { width: 1.2rem; height: 1.2rem; }
.svc-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem .25rem 0; }
.svc-body h3 { font-size: var(--t-h3); margin-bottom: .6rem; }
.svc-body p { color: var(--fg-soft); margin: 0 0 1rem; max-width: 34rem; }
.svc-body .svc-fact { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.svc-body .svc-fact span { color: var(--fg-mute); }
.svc-body .svc-fact strong { font: 700 1.25rem/1 var(--display); text-transform: uppercase; color: var(--fg); }
.svc-more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: var(--t-small); color: var(--fg); }
.svc-more svg { width: 1rem; height: 1rem; transition: transform .55s var(--ease); }
.svc-card a:hover .svc-more svg, .post-card a:hover .svc-more svg { transform: translateX(4px); }

/* ---------- industries ---------- */
.inds { 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); border-radius: var(--r-lg); overflow: hidden; }
.ind { background: var(--cream-deep); padding: clamp(1.5rem, 3vw, 2.25rem); transition: background-color .3s var(--ease-soft); }
.ind:hover { background: var(--cream); }
.ind-icon { width: 3rem; height: 3rem; padding: .7rem; border-radius: 50%; background: var(--wine); color: var(--cream); margin-bottom: 1.5rem; transition: transform .55s var(--ease); }
.ind:hover .ind-icon { transform: rotate(-12deg) scale(1.06); }
.ind h3 { font-size: 1.6rem; margin-bottom: .5rem; }
.ind p { color: var(--fg-soft); font-size: var(--t-small); }

/* ---------- price table ---------- */
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform .55s var(--ease), border-color .3s var(--ease-soft); }
.plan:hover { transform: translateY(-6px); border-color: var(--wine); }
.plan h3 { font-size: 1.9rem; }
.plan-sub { margin: .5rem 0 0; color: var(--fg-soft); font-size: var(--t-small); }
.plan-price { display: flex; align-items: baseline; gap: .6rem; margin: 1.75rem 0 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.plan-price .money { font: 800 clamp(3.5rem, 2.5rem + 3vw, 5rem)/.9 var(--display); color: var(--accent); }
.plan-price span:last-child { font-size: var(--t-small); color: var(--fg-soft); }
.plan-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 0 0 1.5rem; }
.plan-facts dt { color: var(--fg-mute); font-size: .72rem; }
.plan-facts dd { margin: .2rem 0 0; font-weight: 600; }
.plan-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .7rem; flex: 1; align-content: start; }
.plan-list li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr); gap: .65rem; font-size: var(--t-small); line-height: 1.45; }
.plan-list svg { width: 1.3rem; height: 1.3rem; padding: .2rem; border-radius: 50%; background: var(--wine); color: var(--cream); margin-top: .05rem; }
.plan-go { align-self: stretch; justify-content: space-between; }
.plan:nth-child(3) {
  --fg: var(--cream); --fg-soft: rgb(235, 220, 210); --fg-mute: rgb(210, 184, 177); --line: rgba(248, 241, 231, .2);
  --accent: var(--cream); --chip-bg: var(--cream); --chip-fg: var(--wine); --surface-hi: rgba(11, 11, 11, .2);
  background: var(--wine); color: var(--fg); border-color: var(--wine);
}
.plan:nth-child(3) .plan-list svg { background: var(--cream); color: var(--wine); }
.plan:nth-child(3):hover { border-color: var(--wine-lit); }
.plan-note { margin-top: 1.5rem; color: var(--fg-soft); font-size: var(--t-small); }

/* ---------- process timeline ---------- */
.tl-section { overflow: hidden; }
.tl-title { font-size: var(--t-h2); max-width: 18ch; margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.tl-step { position: relative; padding: 2rem clamp(1rem, 2vw, 1.75rem) 0; }
.tl-step:first-child { padding-left: 0; }
.tl-step + .tl-step { border-left: 1px solid var(--line); }
.tl-dot { position: absolute; top: -.4rem; left: clamp(1rem, 2vw, 1.75rem); width: .8rem; height: .8rem; border-radius: 50%; background: var(--wine-lit); box-shadow: 0 0 0 5px var(--black); }
.tl-step:first-child .tl-dot { left: 0; }
.tl-num { margin: 0 0 1rem; color: var(--fg-mute); }
.tl-step h3 { font-size: clamp(2.25rem, 1.5rem + 2vw, 3.25rem); margin-bottom: .9rem; }
.tl-step p:last-child { color: var(--fg-soft); max-width: 22rem; }
.motion .timeline::before { content: ""; position: absolute; }

/* ---------- ruled lists, proof, prose, notes ---------- */
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.ruled li:last-child { border-bottom: 1px solid var(--line); }
.ruled svg { width: 2rem; height: 2rem; padding: .45rem; border-radius: 50%; background: var(--wine); color: var(--cream); }
.ruled strong { display: block; font: 700 1.45rem/1.1 var(--display); text-transform: uppercase; margin-bottom: .3rem; }
.ruled p { color: var(--fg-soft); }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); }
.proof > div { padding-top: 1.75rem; border-top: 1px solid var(--line); }
.proof h3 { font-size: 1.75rem; margin-bottom: .7rem; }
.proof p { color: var(--fg-soft); }
.proof-mark { width: 3rem; height: 3rem; padding: .6rem; border-radius: 50%; background: var(--wine); color: var(--cream); margin-bottom: 1.25rem; }
.note { margin-top: 2.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); color: var(--fg-soft); max-width: 60rem; }
.note strong { color: var(--fg); }
.prose p { margin-bottom: 1.1rem; max-width: 65ch; color: var(--fg-soft); }
.prose p:first-child { font-size: var(--t-lede); color: var(--fg); }

/* ---------- inner page hero ---------- */
.page-hero { padding: calc(var(--header-h) + clamp(3rem, 9vh, 6rem)) 0 clamp(4rem, 8vw, 6.5rem); }
.page-hero h1 { font-size: var(--t-display); max-width: 16ch; margin-bottom: 1.5rem; }
.article-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 5.5rem); max-width: 20ch; }
.breadcrumbs ol { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; color: var(--fg-mute); font-size: .72rem; }
.breadcrumbs li + li::before { content: "\2726"; margin-right: .5rem; color: var(--wine-lit); }
.breadcrumbs a { color: var(--fg-soft); }
.breadcrumbs [aria-current] { color: var(--cream); }
.spec { margin: 0; background: var(--black-raised); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; }
.spec dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--fg-soft); }
.spec dd { margin: 0; font-weight: 600; }

/* ---------- FAQ accordion (round + button) ---------- */
.paa { border-top: 1px solid var(--line); max-width: 64rem; }
.paa details { border-bottom: 1px solid var(--line); }
.paa summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0; cursor: pointer;
  font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem)/1.05 var(--display); text-transform: uppercase;
  transition: color .3s var(--ease-soft);
}
.paa summary::-webkit-details-marker { display: none; }
.paa summary svg { display: none; }
.paa summary::after {
  content: ""; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 1rem 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 1rem no-repeat;
  transition: transform .55s var(--ease), background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s;
}
.paa summary:hover::after { border-color: var(--fg); }
.paa details[open] summary::after { transform: rotate(135deg); background-color: var(--wine); color: var(--cream); border-color: var(--wine); }
.paa .answer { display: grid; grid-template-rows: 1fr; }
.paa .answer > * { padding: 0 3.75rem 1.75rem 0; max-width: 70ch; color: var(--fg-soft); }
.paa details[open] .answer { animation: open .7s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- related links ---------- */
.related { margin-top: clamp(3rem, 6vw, 4.5rem); }
.related h2 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .7rem .7rem 1.4rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--fg) !important; transition: border-color .3s var(--ease-soft), background-color .3s var(--ease-soft); }
.related a:hover { border-color: var(--fg); background: var(--surface-hi); }
.related a svg { box-sizing: content-box; width: 1rem; height: 1rem; padding: .55rem; flex: none; border-radius: 50%; background: var(--wine); color: var(--cream); transition: transform .55s var(--ease); }
.related a:hover svg { transform: rotate(-45deg); }
.related b { color: var(--accent); font-weight: 600; }

/* ---------- CTA (wine section) ---------- */
.cta { padding: clamp(5rem, 11vw, 9rem) 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; margin-top: 0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.cta h2 { font-size: var(--t-display); }
.cta p { color: var(--fg-soft); margin-bottom: 1.75rem; font-size: var(--t-lede); }
.cta .mail { display: block; margin-top: 1.25rem; color: var(--fg-soft); font-size: var(--t-small); }
.cta .mail a { color: var(--cream); }

/* ---------- forms ---------- */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; font-size: var(--t-small); }
.hint { color: var(--fg-soft); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.25rem; padding: .8rem 1.1rem; font: 400 1rem var(--body); color: var(--black); background: #fffdf9; border: 1px solid rgba(11, 11, 11, .25); border-radius: var(--r-md); caret-color: var(--wine); transition: border-color .3s, box-shadow .3s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(91, 15, 24, .18); }
.field [aria-invalid="true"] { border-color: #a3242f; }
.error { color: #a3242f; font-size: .9rem; }
.error:empty { display: none; }
.form-status { color: var(--fg-soft); }
.contact-card {
  --fg: var(--cream); --fg-soft: rgb(235, 220, 210); --line: rgba(248, 241, 231, .2); --chip-bg: var(--cream); --chip-fg: var(--wine);
  background: var(--wine); color: var(--fg); border-radius: var(--r-lg); padding: clamp(1.75rem, 3vw, 2.5rem);
}
.contact-card h2 { font-size: 2.25rem; margin-bottom: 1.5rem; }
.contact-card .btn { white-space: normal; text-align: left; max-width: 100%; }
.contact-card .btn-primary svg { background: var(--wine); color: var(--cream); }
.contact-card dl { margin: 0; }
.contact-card dt { color: var(--fg-soft); margin-top: 1rem; }
.contact-card dd { margin: .2rem 0 0; }

/* ---------- about facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.facts div { background: var(--cream); padding: 1.5rem 1.35rem; }
.light-2 .facts div { background: var(--cream-deep); }
.dark .facts div { background: var(--black); }
.facts dt { font-size: var(--t-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: .5rem; }
.facts dd { margin: 0; font: 700 1.5rem/1.1 var(--display); text-transform: uppercase; }

/* ---------- insights cards ---------- */
.post-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.post-cards-featured { grid-template-columns: minmax(0, 1fr); margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.latest-h { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 1.75rem; }
.post-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--fg) !important; }
.post-art { aspect-ratio: 16 / 10; display: grid; place-items: center; color: rgb(235, 220, 210); border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, var(--wine-lit), transparent 65%), var(--wine-deep); }
.post-card:nth-child(3n+2) .post-art { background: radial-gradient(120% 90% at 70% 10%, rgba(140, 42, 53, .9), transparent 62%), var(--black-raised); }
.post-art svg { width: min(56%, 15rem); height: auto; transition: transform 1.2s var(--ease); }
.post-card a:hover .post-art svg { transform: scale(1.12); }
.post-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem .25rem 0; flex: 1; }
.post-cat { margin: 0; align-self: start; font-size: .7rem; padding: .35rem .8rem; border-radius: 999px; background: var(--chip-bg); color: var(--chip-fg); }
.post-body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.post-dek { color: var(--fg-soft); }
.post-meta { font-size: var(--t-small); color: var(--fg-mute); }
.post-body .svc-more { margin-top: auto; padding-top: .5rem; }
.post-featured a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.post-featured .post-art { aspect-ratio: 16 / 11; }
.post-featured .post-body { padding: 0; }
.post-featured h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }

/* ---------- article ---------- */
.article-hero .post-meta { margin-top: 1.5rem; color: var(--fg-soft); }
.article { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(2rem, 6vw, 5rem); justify-content: center; }
.toc { position: sticky; top: 7rem; }
.toc h2 { font-size: var(--t-label); margin-bottom: .9rem; color: var(--fg-mute); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; color: var(--fg-soft) !important; font-size: var(--t-small); line-height: 1.35; margin-left: -1px; border-left: 2px solid transparent; background: none; }
.toc a:hover { color: var(--wine) !important; border-left-color: var(--wine); }
.article-body { font-size: 1.1rem; line-height: 1.75; }
.article-body > section { margin-top: clamp(2.5rem, 5vw, 3.75rem); scroll-margin-top: 7rem; }
.article-body h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1rem; }
.article-body h3 { font-size: 1.5rem; margin: 1.75rem 0 .5rem; }
.article-body p, .article-body li { color: var(--fg-soft); }
.article-body strong { color: var(--fg); }
.article-body ul, .article-body ol { padding-left: 1.25rem; display: grid; gap: .5rem; }
.short-answer { font-size: 1.25rem; line-height: 1.6; color: var(--fg) !important; padding-left: 1.25rem; border-left: 3px solid var(--wine); }
.takeaways { margin-top: 2rem; padding: clamp(1.5rem, 3vw, 2rem); background: var(--wine); color: var(--cream); border-radius: var(--r-lg); }
.takeaways h2 { font-size: 1.75rem; margin-bottom: .9rem; }
.takeaways ul { list-style: none; padding: 0; }
.takeaways li { display: flex; gap: .7rem; align-items: start; color: rgb(235, 220, 210) !important; }
.takeaways svg { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .35rem; color: var(--cream); }
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 34rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap thead th { color: var(--cream); background: var(--black); font-weight: 600; }
.table-wrap tbody th { color: var(--fg); font-weight: 600; }
.table-wrap td { color: var(--fg-soft); }
.table-wrap tr:last-child > * { border-bottom: 0; }
.author-box { display: flex; gap: 1rem; align-items: start; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.author-box img { border-radius: 50%; flex: none; background: var(--black); }
.author-name { color: var(--fg) !important; font-weight: 700; margin: 0 0 .25rem; }
.author-box p { margin: 0; font-size: 1rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--black); color: var(--fg); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; }
.cta + .site-footer, main:has(> .cta:last-child) + .site-footer { margin-top: 0; }
.footer-motto { font: 800 clamp(3rem, 1.5rem + 7vw, 9rem)/.88 var(--display); text-transform: uppercase; margin-bottom: clamp(2.5rem, 5vw, 4rem); user-select: none; }
.footer-motto span { color: transparent; -webkit-text-stroke: 1.5px var(--cream); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.footer-brand img { width: 96px; height: auto; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--fg-soft); max-width: 24rem; font-size: var(--t-small); }
.site-footer h2 { font-size: .72rem; color: var(--fg-mute); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer ul a { color: var(--fg-soft); font-size: var(--t-small); }
.site-footer ul a:hover { color: var(--cream); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--fg-mute); font-size: .88rem; }

/* ---------- 404 ---------- */
.notfound { min-height: 88vh; display: flex; align-items: center; padding: calc(var(--header-h) + 4rem) 0 5rem; }
.notfound h1 { font-size: var(--t-display); margin-bottom: 1.25rem; }
.notfound .lede { color: var(--fg-soft); font-size: var(--t-lede); margin-bottom: 2rem; max-width: 40rem; }

/* ---------- motion (only when JS adds .motion) ---------- */
.motion .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion .rv.in { opacity: 1; transform: none; }
.motion .svc-card.rv:nth-child(even) { transform: translateY(calc(clamp(2rem, 6vw, 6rem) + 32px)); }
.motion .svc-card.rv.in:nth-child(even) { transform: translateY(clamp(2rem, 6vw, 6rem)); }
/* headline words rise from a mask */
.split-h .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .04em; margin: -.06em 0 -.04em; }
.split-h .wi { display: inline-block; transform: translateY(108%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + var(--hd, 0ms)); }
.split-h.in .wi { transform: none; }
.split-h .lit .w { padding-inline: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a, .sub-btn { padding: .55rem .7rem; font-size: .9rem; }
  .inds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
  .glance > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 960px) {
  :root { --header-h: 76px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: .5rem; margin-left: auto; min-height: 2.9rem; padding: .5rem 1.1rem;
    border-radius: 999px; border: 1px solid var(--line); background: rgba(23, 18, 18, .8); color: var(--cream);
    font: 600 .95rem var(--body); cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .menu-btn svg { width: 1.2rem; height: 1.2rem; }
  .header-cta { display: none; }
  .nav { position: fixed; inset: calc(var(--header-h) - .25rem) var(--gutter) auto var(--gutter); margin: 0; display: none; }
  .nav.open { display: block; animation: drop .45s var(--ease); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .15rem; padding: .6rem; border-radius: var(--r-lg); background: var(--black-raised); }
  .nav a { display: block; padding: .9rem 1rem; font-size: 1.05rem; border-radius: var(--r-md); }
  .sub-btn { display: none; }
  .nav .sub { position: static; display: flex; min-width: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav .nav-cta { display: block; margin-top: .5rem; }
  .nav .nav-cta .btn { display: flex; width: 100%; color: var(--black); background: var(--cream); border-radius: 999px; padding-right: 1.5rem; }
  .split, .cta-inner, .post-featured a { grid-template-columns: minmax(0, 1fr); }
  .split .section-head, .toc { position: static; }
  .svc-section .section-head, .post-head { flex-direction: column; align-items: start; }
  .timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line); margin-left: .4rem; }
  .tl-step, .tl-step:first-child { padding: 0 0 2.5rem 2rem; }
  .tl-step + .tl-step { border-left: 0; }
  .tl-dot, .tl-step:first-child .tl-dot { top: .35rem; left: -.4rem; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .post-cards { grid-template-columns: minmax(0, 1fr); }
  .article { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 961px) and (max-width: 1180px) { .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { min-height: 0; }
  .svc-cards { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .svc-card:nth-child(even), .motion .svc-card.rv.in:nth-child(even) { transform: none; }
  .motion .svc-card.rv:nth-child(even) { transform: translateY(32px); }
  .inds { grid-template-columns: minmax(0, 1fr); }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance > div { padding: 0 0 0 1rem; }
  .glance > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .form-row, .related ul { grid-template-columns: minmax(0, 1fr); }
  .related a { border-radius: var(--r-md); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .paa .answer > * { padding-right: 0; }
  .hero-points { flex-direction: column; align-items: center; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .marquee-track { animation: none; }
  .marquee ul[aria-hidden="true"] { display: none; }
}
