/* 17 Grid: Swiss colour-blocking. Cobalt blocks, paper, ink, one vermilion signal. Flat, no gradients. */
:root {
  --paper: #F4F2EC; --ivory: #E4E7EF; --ink: #0B1020; --ink-2: #141B33;
  --mute: #5E667D; --mute-d: #B7C2EA;
  --line: rgba(11,16,32,.18); --line-d: rgba(244,242,236,.26);
  --green: #1E3A8A;      /* cobalt (token name kept for re-branding) */
  --green-2: #4A66C8;    /* lighter cobalt */
  --brass: #D9482B;      /* vermilion signal */
  --brass-l: #FF7A59;
  --cobalt: #1E3A8A; --signal: #D9482B; --hair: rgba(11,16,32,.1);
  --gap: 24px;
}
@media (max-width: 720px) { :root { --gap: 12px; } }

html { scroll-behavior: auto; }
body { overflow-x: hidden; }
main { position: relative; }
.g12, .g12s { display: grid; grid-template-columns: repeat(12, 1fr); }
.g12 { column-gap: var(--gap); }

/* colour blocks: inside .blue the tokens invert, so every component restyles itself */
section { position: relative; overflow: hidden; }
section .wrap { position: relative; z-index: 1; }
.blue { background: var(--cobalt); color: #F4F2EC; --ink: #F4F2EC; --paper: #1E3A8A; --mute: #B7C2EA; --line: rgba(244,242,236,.3); --ivory: rgba(244,242,236,.13); --hair: rgba(150,172,255,.24); --signal: #FF7A59; --green: #F4F2EC; }
.blue ::selection { background: #F4F2EC; color: #1E3A8A; }
.blue .mh-btn:hover { background: var(--signal); color: #0B1020; }

/* nav: no blend, colour follows the block underneath */
.mh-nav { mix-blend-mode: normal; color: #0B1020; transition: color .3s; }
.mh-nav.on-blue { color: #F4F2EC; }

/* per-section column guides */
.guides { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.guides .g12 { height: 100%; }
.guides i { border-left: 1px solid var(--hair); height: 100%; }
.guides i:last-child { border-right: 1px solid var(--hair); }
@media (max-width: 720px) {
  .guides .g12 { grid-template-columns: repeat(4, 1fr); }
  .guides i:nth-child(n+5) { display: none; }
  .guides i:nth-child(4) { border-right: 1px solid var(--hair); }
}

/* ---------- hero poster ---------- */
.hero { min-height: 100svh; display: flex; padding: 112px 0 96px; }
.hg { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); grid-template-rows: auto 1fr auto; width: min(100% - 2 * var(--gutter), var(--max)); }
.hero-eyebrow { grid-column: 1 / -1; grid-row: 1; margin: 0 0 16px; color: var(--mute); }
.hero-h { grid-column: 1 / -1; grid-row: 2; align-self: start; margin: 0; font-weight: 500; font-size: clamp(2.8rem, 7.6vw, 7.8rem); line-height: .92; letter-spacing: -.055em; position: relative; z-index: 2; }
.hero-h span, .hero-h em { display: block; }
.hero-h em { font-weight: 400; letter-spacing: -.02em; color: var(--mute-d); }
.big { grid-column: 5 / -1; grid-row: 2; align-self: end; justify-self: end; position: relative; z-index: 1; margin: 0 -3vw -.05em 0; }
.big span { display: block; font-weight: 500; color: var(--ink); font-size: min(52vw, 64vh); line-height: .76; letter-spacing: -.08em; font-feature-settings: "tnum" 1; text-align: right; }
.hero-copy { grid-column: 1 / span 5; grid-row: 3; align-self: end; }
.hero-line { margin: 0 0 22px; font-size: var(--fs-lead); max-width: 26ch; line-height: 1.35; }
.hero-cta { margin: 0; }
.big-cap { grid-column: 6 / -1; grid-row: 3; align-self: end; margin: 20px 0 0; position: relative; z-index: 2; }
.ticks { position: relative; height: 34px; --t: 122; }
.ticks .tk { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(244,242,236,.5) 0 1px, transparent 1px calc(100% / var(--t))); }
.ticks .tk.on { background: repeating-linear-gradient(90deg, var(--signal) 0 2px, transparent 2px calc(100% / var(--t))); clip-path: inset(0 var(--cut, 0%) 0 0); transition: clip-path 1.9s var(--ease-out); }
.ticks .mk { position: absolute; top: -8px; bottom: -8px; width: 3px; background: var(--signal); left: var(--at, 0%); transition: left 1.9s var(--ease-out); }
.tk-ends { display: flex; justify-content: space-between; margin-top: 10px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.cap-line { margin: 14px 0 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.cap-line b { font-weight: 500; color: var(--signal); }
.clock { margin: 6px 0 0; font-size: clamp(1.05rem, 1.7vw, 1.5rem); color: var(--signal); letter-spacing: -.01em; font-feature-settings: "tnum" 1; }

.statsband { padding: clamp(56px, 7vw, 96px) 0; }
.stats { grid-column: 1 / -1; list-style: none; margin: 0; padding: 22px 0 0; border-top: 4px solid var(--ink); display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--gap); }
.stats b { display: block; font-weight: 500; font-size: clamp(2.6rem, 6.4vw, 6.4rem); letter-spacing: -.06em; line-height: .95; font-feature-settings: "tnum" 1; }
.stats span { display: block; margin-top: 12px; font-size: 1rem; color: var(--mute); max-width: 20ch; line-height: 1.35; }

@media (max-width: 720px) {
  .hero { padding: 92px 0 88px; }
  .hero-h { font-size: 13.5vw; }
  .big { grid-column: 1 / -1; grid-row: 3; margin: 4px -5vw 0 0; }
  .big span { font-size: min(64vw, 30vh); }
  .big-cap { grid-column: 1 / -1; grid-row: 4; margin-top: 14px; }
  .hero-copy { grid-column: 1 / -1; grid-row: 5; margin-top: 22px; }
  .hg { grid-template-rows: auto auto auto auto auto; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
}

/* hero sequence: guides drop, numeral rolls, caption and button arrive */
.js:not(.rm) .hero .guides i { transform: scaleY(0); transform-origin: 50% 0; transition: transform 1.1s var(--ease-out) calc(var(--k, 0) * .05s); }
.js:not(.rm).go .hero .guides i { transform: none; }
.js:not(.rm) .hero-eyebrow, .js:not(.rm) .hero-h, .js:not(.rm) .big, .js:not(.rm) .big-cap, .js:not(.rm) .hero-copy { opacity: 0; transform: translateY(12px); }
.js:not(.rm).go .hero-eyebrow, .js:not(.rm).go .hero-h, .js:not(.rm).go .big, .js:not(.rm).go .big-cap, .js:not(.rm).go .hero-copy { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) var(--hd), transform 1s var(--ease-out) var(--hd); }
.hero-eyebrow { --hd: .5s; } .hero-h { --hd: .7s; } .big { --hd: .9s; } .big-cap { --hd: 1.9s; } .hero-copy { --hd: 2.3s; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 10vw, 150px) 0; }
.sec .wrap { row-gap: 40px; }
.js:not(.rm) [data-rv] { opacity: 0; transform: translateY(10px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.js:not(.rm) [data-rv].in { opacity: 1; transform: none; }
.copy { grid-column: 1 / span 4; align-self: start; }
.explain { grid-column: 5 / -1; }
.copy .label { margin: 0 0 20px; }
.sec h2 { margin: 0 0 20px; font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 4.4rem); line-height: .98; letter-spacing: -.05em; }
.lead { margin: 0; font-size: 1.25rem; line-height: 1.4; max-width: 26ch; }
.live { margin: 22px 0 0; font-size: .85rem; color: var(--signal); letter-spacing: .04em; }
@media (max-width: 1000px) { .copy { grid-column: 1 / span 5; } .explain { grid-column: 6 / -1; } }
@media (max-width: 820px) { .copy, .explain { grid-column: 1 / -1; } .lead { max-width: 34ch; } }

.xbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 24px; border-bottom: 4px solid var(--ink); }
.xbar b { font-weight: 500; color: var(--signal); letter-spacing: 0; }
.replay { font: 500 .75rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 2px; padding: 9px 14px; cursor: pointer; transition: background .3s, color .3s; }
.replay:hover { background: var(--ink); color: var(--paper); }
.replay:focus-visible, input:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.mh-btn span[aria-hidden] { display: inline-block; transition: transform .5s var(--ease-out); }
.mh-btn:hover span[aria-hidden] { transform: translateX(4px); }

/* 1. S-corp */
.sc-head { display: flex; justify-content: space-between; align-items: baseline; }
.sc-val { font-size: clamp(2.6rem, 6vw, 5.4rem); letter-spacing: -.06em; line-height: 1; font-weight: 500; }
#scRange { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; margin: 14px 0 0; cursor: pointer; touch-action: pan-y; }
#scRange::-webkit-slider-runnable-track { height: 3px; background: var(--ink); }
#scRange::-moz-range-track { height: 3px; background: var(--ink); }
#scRange::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11.5px; background: var(--signal); border: 0; border-radius: 0; }
#scRange::-moz-range-thumb { width: 26px; height: 26px; background: var(--signal); border: 0; border-radius: 0; }
.sc-scale { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mute); margin-top: 2px; }
.sc-split { display: flex; margin-top: 28px; height: 132px; gap: 3px; }
.blk { display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; min-width: 0; overflow: hidden; transition: width .5s var(--ease-out); }
.blk.sal { background: var(--ink); color: var(--paper); }
.blk.sal .label { color: var(--paper); opacity: .7; }
.blk.dis { background: var(--ivory); }
.blk b { font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -.04em; white-space: nowrap; }
.sc-tax { margin-top: 30px; display: grid; gap: 20px; }
.sc-tax .row { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 16px; align-items: baseline; }
.sc-tax .row .label { color: var(--ink); }
.sc-tax b { font-weight: 500; font-size: 1.6rem; letter-spacing: -.04em; }
.track { grid-column: 1 / -1; grid-row: 2; height: 26px; background: var(--ivory); position: relative; overflow: hidden; }
.track i { position: absolute; inset: 0; background: var(--mute); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.track i.g { background: var(--ink); }
.sc-save { margin-top: 32px; padding-top: 16px; border-top: 4px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sc-save b { font-weight: 500; color: var(--signal); font-size: clamp(2.8rem, 6.4vw, 5.8rem); letter-spacing: -.06em; line-height: 1; }
.note { margin: 16px 0 0; font-size: .78rem; line-height: 1.5; color: var(--mute); }

/* 2. revenue */
.bar { height: 150px; gap: 3px; column-gap: 3px; }
.bar span, .legend li { grid-column: span var(--c); min-width: 0; }
.bar span { position: relative; background: var(--ivory); overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--col); transform-origin: 0 50%; }
.legend { list-style: none; margin: 14px 0 0; padding: 0; column-gap: 3px; }
.legend li { display: flex; flex-direction: column; padding-top: 10px; border-top: 4px solid var(--col); }
.legend b { font-weight: 500; font-size: clamp(1.2rem, 2.8vw, 2.6rem); letter-spacing: -.05em; line-height: 1; }
.legend span { font-size: .85rem; margin-top: 6px; color: var(--mute); }
.js .rev .bar i { transform: scaleX(0); transition: transform .8s var(--ease-out) calc(var(--i) * .65s); }
.js .rev .legend li { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease-out) calc(var(--i) * .65s + .25s), transform .6s var(--ease-out) calc(var(--i) * .65s + .25s); }
.js .rev.on .bar i { transform: scaleX(1); }
.js .rev.on .legend li { opacity: 1; transform: none; }
@media (max-width: 720px) {
  .bar { height: 88px; }
  .legend { display: block; }
  .legend li { flex-direction: row; display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
  .legend li::before { content: ""; order: 1; width: 14px; height: 14px; background: var(--col); flex: 0 0 auto; }
  .legend li span { order: 2; margin: 0 auto 0 0; font-size: 1.05rem; color: var(--ink); }
  .legend li b { order: 3; font-size: 1.5rem; }
}

/* 3. quarters */
.q { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.q li { position: relative; background: var(--ivory); border-top: 4px solid var(--ink); padding: 16px 16px 20px; display: grid; align-content: start; gap: 8px; min-height: 230px; }
.q b { font-weight: 500; font-size: clamp(1.6rem, 3.2vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.q svg { width: 40px; height: 40px; margin-top: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.q svg * { stroke-dasharray: 1; stroke-dashoffset: 0; }
.q em { font-style: normal; font: 500 .78rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.js .q li svg *, .js .q li em { transition: stroke-dashoffset .6s var(--ease-out), opacity .4s; }
.js .q li { transition: background .5s var(--ease-out), color .5s; }
.js .q li:not(.done) svg * { stroke-dashoffset: 1; }
.js .q li:not(.done) em { opacity: 0; }
.q li.done { background: var(--ink); color: var(--paper); }
.q li.done .label { color: var(--paper); opacity: .7; }
.q li.done svg { stroke: var(--paper); }
.q li.done em { color: var(--brass); }
@media (max-width: 520px) { .q { grid-template-columns: 1fr 1fr; } .q li { min-height: 190px; } }

/* 4. services */
.svc { position: relative; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; z-index: 1; }
.svc-list li { padding-top: 12px; border-top: 4px solid var(--ink); }
.svc-list span { display: block; font-size: .78rem; color: var(--mute); }
.svc-list b { display: block; margin-top: 10px; font-weight: 500; font-size: 1.3rem; letter-spacing: -.04em; line-height: 1.1; }
.svc-list em { display: block; font-style: normal; font-size: .9rem; line-height: 1.35; color: var(--mute); margin-top: 8px; }
.svc-node { position: relative; z-index: 1; margin: 96px auto 0; width: fit-content; padding: 20px 44px; background: var(--brass); color: #fff; }
.svc-node .label { color: #fff; font-size: .95rem; letter-spacing: .16em; }
.svc-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.svc-lines path { fill: none; stroke: var(--green); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .svc-lines path { transition: stroke-dashoffset 1s var(--ease-out) calc(var(--i) * .35s); }
.js .svc:not(.on) .svc-lines path { stroke-dashoffset: 1; }
.js .svc .svc-node { transition: opacity .6s var(--ease-out) 1.6s; }
.js .svc:not(.on) .svc-node { opacity: .25; }
@media (max-width: 720px) {
  .svc-list { grid-template-columns: 1fr; gap: 0; padding-left: 44px; }
  .svc-list li { padding: 14px 0; border-top: 1px solid var(--line); }
  .svc-node { margin: 36px 0 0; }
}

/* contact + footer */
.contact { padding-bottom: 0; }
.cinfo p { margin: 0 0 24px; display: grid; gap: 6px; }
.cinfo a.mono, .cinfo span.mono { font-size: clamp(1.2rem, 2.4vw, 2rem); letter-spacing: -.04em; text-decoration: none; line-height: 1.25; }
.cinfo a.mono { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; justify-self: start; }
.cinfo a.mono:hover { background-size: 100% 2px; }
.cinfo .mh-btn { justify-self: start; margin-top: 14px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(60px, 8vw, 110px); padding: 20px 0 84px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--mute); }
@media (max-width: 720px) { .foot { padding-bottom: 96px; } }
