/* REJN-X rework (21 Oct 2026, Reece: "too close to ASM").
   Loaded last. Motion language: crisp and engineered. Clip wipes instead of fade-ups, gold blocks
   that sweep headings line by line, short number decodes, thin gold rules that draw in, a drawn
   wireframe in the hero. Snappy timing, no smooth-scroll, no scrubbing, no pinning, no cursor tricks.
   Everything here that moves is gated on html.motion (motion switch on and no reduced-motion). */

.v2 { --snap: cubic-bezier(.7, 0, .2, 1); --snap-out: cubic-bezier(.2, .8, .2, 1); --rule: rgba(212,175,55,.32); }

/* ---------- Keyframes ---------- */
@keyframes wipe { from { clip-path: inset(-24px 100% -24px -24px); } to { clip-path: inset(-24px -24px -24px -24px); } }
@keyframes wipeDown { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -40px 0); } }
@keyframes bar { 0% { transform: scaleX(0); transform-origin: left; } 48% { transform: scaleX(1); transform-origin: left; } 52% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
@keyframes txtOn { 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes drawX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes drawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .9; } 92% { opacity: .9; } 100% { transform: translateY(440px); opacity: 0; } }

/* ---------- Generic reveals: clip wipe, left to right ---------- */
/* Pre-reveal state is opacity 0, not a clip: IntersectionObserver treats a fully clipped target as
   not intersecting, so it would never reveal. The wipe itself runs as a clip-path animation. */
.motion [data-reveal], .motion [data-stagger] > *, .motion [data-fact] { opacity: 0; transform: none; transition: none; }
.motion [data-reveal].is-in, .motion [data-stagger] > .is-in, .motion [data-fact].is-in { opacity: 1; }
.motion [data-reveal].is-in, .motion [data-stagger] > .is-in, .motion [data-fact].is-in { animation: wipe .62s var(--snap) backwards; animation-delay: var(--d, 0s); }

/* Headings: a gold block sweeps each word, line by line, and leaves the text behind */
.motion [data-split] .w, .motion .kin-title .w { position: relative; overflow: visible; }
.motion [data-split] .w__i, .motion .kin-title .w__i { transform: none; transition: none; animation: none; }
.motion [data-split]:not(.is-in) .w__i { opacity: 0; }
.motion [data-split] .w::after, .motion .kin-title .w::after { content: ""; position: absolute; left: -.04em; right: -.04em; top: .1em; bottom: .14em; background: var(--gold); transform: scaleX(0); pointer-events: none; }
.motion [data-split].is-in .w__i { animation: txtOn .56s linear backwards; animation-delay: calc(var(--l, 0) * .11s + var(--x, 0) * .035s); }
.motion [data-split].is-in .w::after { animation: bar .56s var(--snap) backwards; animation-delay: calc(var(--l, 0) * .11s + var(--x, 0) * .035s); }
/* Hero / page-hero titles run on load (CSS only, never waits for JS) */
.motion .kin-title .w__i { animation: txtOn .5s linear backwards; animation-delay: calc(.12s + var(--i) * .045s); }
.motion .kin-title .w::after { animation: bar .5s var(--snap) backwards; animation-delay: calc(.12s + var(--i) * .045s); }
.motion .hero__display .hl .w::after { background: var(--on-dark); }
.motion .kin { animation: wipe .6s var(--snap) backwards; }
.motion .kin--1 { animation-delay: 0s; }
.motion .kin--3 { animation-delay: .42s; }
.motion .kin--4 { animation-delay: .52s; }
.motion .eyebrow--line[data-reveal]::before, .motion .eyebrow--line.kin::before { transform: scaleX(1); transition: none; animation: drawX .5s var(--snap) backwards .15s; transform-origin: left; }

/* Thin gold rules that draw in over every section head */
.section-head, .ways-intro, .story-intro { position: relative; padding-top: 1.4rem; }
.section-head::before, .ways-intro::before, .story-intro::before { content: ""; position: absolute; left: 0; top: 0; width: min(100%, 50rem); height: 1px; background: linear-gradient(90deg, var(--gold) 0 2.5rem, var(--rule) 2.5rem); transform-origin: left; }
.section-head::after, .ways-intro::after, .story-intro::after { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; background: var(--gold); }
.motion .section-head:not(.is-in)::before, .motion .ways-intro:not(.is-in)::before, .motion .story-intro:not(.is-in)::before { transform: scaleX(0); }
.motion .section-head.is-in::before, .motion .ways-intro.is-in::before, .motion .story-intro.is-in::before { animation: drawX .8s var(--snap) backwards; }

/* Corner brackets on cards (hover / keyboard focus): close in on the corners */
.trade-card, .need, .pkg, .pk, .svc, .way, .step, .fact { position: relative; }
.trade-card::after, .need::after, .pkg::after, .pk::after, .svc::after, .way::after, .step::after { content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; transition: opacity .18s linear, inset .28s var(--snap-out);
  --c: var(--gold); --s: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat; }
.trade-card:hover::after, .trade-card:focus-within::after, .need:hover::after, .need:focus-within::after, a.need--link:focus-visible::after, .pkg:hover::after, .pkg:focus-within::after,
.pk:hover::after, .pk:focus-within::after, .svc:hover::after, .svc:focus-within::after, .way:hover::after, .way:focus-within::after, .step:hover::after { opacity: 1; inset: 0; }
.v2 .card--link:hover, .v2 .card:hover .card__media img { transform: none; }

/* ---------- Buttons: snug and streamlined (Reece, 21 Oct). Font size unchanged. ---------- */
.v2 .btn { min-height: 2.25rem; padding: .45rem 1rem; border-width: 1px; border-radius: 4px; gap: .45rem; line-height: 1.15; position: relative; will-change: auto;
  transition: background-color .18s linear, color .18s linear, border-color .18s linear, box-shadow .18s linear; }
.v2 .btn--lg { min-height: 2.5rem; padding: .55rem 1.15rem; }
.v2 .btn--sm { min-height: 2.125rem; padding: .4rem .85rem; }
.v2 .site-nav__portal { padding-inline: .8rem; }
/* Tap target: a transparent hit area at least 44px tall, whatever the visual height */
.v2 .btn::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
.v2 .btn--gold:hover, .v2 .btn--ink:hover { box-shadow: 0 0 0 2px #000, 0 0 0 3px var(--gold); }
.v2 .btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; box-shadow: none; }
.v2 .btn--gold:focus-visible, .v2 .btn--ink:focus-visible { outline-color: var(--on-dark); }
/* Header utility toggles match the new shape (they stay 44px hit areas) */
.v2 .nav-toggle { border-radius: 4px; min-height: 2.25rem; position: relative; }
.v2 .nav-toggle::after { content: ""; position: absolute; left: 0; right: 0; top: min(0px, calc(50% - 22px)); bottom: min(0px, calc(50% - 22px)); }
.v2 .badge { border-radius: 3px; }
.chip-t { border-radius: 4px; }

/* ---------- Header + nav: quicker ---------- */
.v2 .site-header { transition: transform .32s var(--snap), background-color .2s linear, border-color .2s linear; }
@media (min-width: 64rem) {
  .v2 .site-nav__list a::after { transition: transform .26s var(--snap); }
  .motion .has-sub.is-open .site-nav__sub { animation: wipeDown .24s var(--snap) backwards; }
  .site-nav__sub { border-radius: 4px; }
}
@media (max-width: 63.99rem) {
  .v2 .site-header.is-open .site-nav__list > li { animation: wipe .38s var(--snap) backwards; animation-delay: calc(var(--n, 0) * 35ms); }
}

/* ---------- Hero: asymmetric split, copy left, drawn wireframe right ---------- */
.hero--split .hero__layout { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 64rem) { .hero--split .hero__layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.hero--split .hero__copy { position: relative; }
@media (min-width: 64rem) { .hero--split .hero__copy { padding-left: clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--rule); } }
.hero--split .hero__display { max-width: 13ch; }
.hero__panel { margin: 0; position: relative; width: 100%; max-width: 30rem; justify-self: end; padding: 14px; }
.hero__panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--gold); --s: 18px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat; }
.bp { display: block; width: 100%; height: auto; background: rgba(0,0,0,.55); }
.bp .d { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .85; }
.bp .f--txt { fill: rgba(245,245,245,.85); }
.bp .f--dim { fill: rgba(245,245,245,.28); }
.bp .f--gold { fill: var(--gold); }
.bp .t { font: 600 9px/1 var(--font-head); letter-spacing: .12em; fill: rgba(212,175,55,.9); }
.bp .t--ink { fill: #000; letter-spacing: .1em; }
.bp__scan { stroke: var(--gold); stroke-width: 1; opacity: 0; }
.hero__fig { margin-top: .6rem; font: 600 .68rem/1 var(--font-head); letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); text-align: right; }
.motion .bp .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: stroke .7s var(--snap) forwards; animation-delay: calc(.35s + var(--k, 0) * .07s); }
.motion .bp .f, .motion .bp .t { animation: appear .3s linear backwards; animation-delay: calc(.6s + var(--k, 0) * .07s); }
.motion .bp__scan { animation: scan 1.1s var(--snap) 1.7s 1 both; }
.motion .hero__panel::before { animation: appear .3s linear backwards .25s; }
.motion .hero__fig { animation: wipe .5s var(--snap) backwards 1.5s; }
.motion .hero__grid { animation: wipe 1s var(--snap) backwards .05s; }
@media (min-width: 64rem) { .motion .hero--split .hero__copy { --c: 0; } .motion .hero--split .hero__copy::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 1px; background: var(--gold); transform-origin: top; animation: drawY .7s var(--snap) backwards .1s; } }
@media (max-width: 63.99rem) { .hero__panel { max-width: 24rem; justify-self: start; } }
@media (max-width: 47.99rem) { .hero__panel { max-width: 21rem; } }

/* Page heroes (inner pages): same grid, title blocks, a vertical gold rule */
@media (min-width: 64rem) { .page-hero--type .page-hero__inner { border-left: 1px solid var(--rule); padding-left: clamp(1.25rem, 2.5vw, 2rem); } }

/* ---------- Quick links: a row of cells, gold wipe from the left ---------- */
.v2 .quick__item::before { transform: scaleX(0); transform-origin: left; transition: transform .3s var(--snap); }
.v2 .quick__item:hover::before, .v2 .quick__item:focus-visible::before { transform: scaleX(1); }
.v2 .quick__item:focus-visible { color: var(--ink); }
.quick__arrow { transition: transform .25s var(--snap); }

/* ---------- Trades ticker: a static index line, words wipe in once ---------- */
.v2 .marquee { padding: clamp(1.1rem, 2.4vw, 1.6rem) 0; }
.motion .marquee__track { animation: none !important; width: 100%; }
.marquee__set:nth-child(2) { display: none; }
.marquee__set { flex-wrap: wrap; justify-content: center; white-space: normal !important; width: 100%; padding-inline: 1.25rem; row-gap: .4rem; font-size: clamp(1rem, 2.4vw, 1.6rem) !important; }
.marquee__set i { font-size: .45em; }

/* ---------- Two jobs: a two-column spec, no sticky stack ---------- */
.section--ways .split { display: block; }
.ways-intro { position: relative !important; top: auto !important; margin-bottom: clamp(2rem, 4vw, 3rem); }
@media (min-width: 56rem) { .ways-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: end; } .ways-intro .section-lead { margin: 0; } }
.ways--stack { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 56rem) { .ways--stack { grid-template-columns: 1fr 1fr; } .ways--stack .way + .way { border-left: 1px solid var(--rule); } }
.ways--stack .way { position: relative !important; top: auto !important; margin: 0 !important; box-shadow: none; border: 0; border-radius: 0; background: transparent; }
.v2 .way::before { transform-origin: left; }
.motion .way:not(.is-in)::before { transform: scaleX(0); }
.motion .way.is-in::before { animation: drawX .7s var(--snap) backwards calc(var(--d, 0s) + .2s); }

/* ---------- Trades: a hairline index grid on desktop; native swipe on mobile ---------- */
@media (min-width: 56rem) {
  .carousel--index .carousel__controls { display: none; }
  .carousel--index .carousel__track { display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; gap: 1px; margin: 0; padding: 0; background: var(--line); border: 1px solid var(--line); }
  .carousel--index .carousel__item:last-child { grid-column: span 2; }
  .carousel--index .trade-card { height: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .carousel--index .trade-card .card__body { min-height: 15rem; }
}
.v2 .section--stories { overflow: visible; }
.v2 .trade-card { border-radius: 4px; }

/* ---------- Story: photo left, text right on desktop ---------- */
@media (min-width: 56rem) { .section--story .split { grid-template-columns: .8fr 1.2fr; } .section--story .photo-ph { order: -1; justify-self: start; } }
.photo-ph { border-radius: 4px; }

/* ---------- How it works: a gold rail draws across the steps ---------- */
.steps { position: relative; border-radius: 4px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold); transform-origin: left; z-index: 1; }
.motion .steps:not(.is-in)::before { transform: scaleX(0); }
.motion .steps.is-in::before { animation: drawX 1s var(--snap) backwards .1s; }
.step__num { font-variant-numeric: tabular-nums; }

/* ---------- Packages: four spec columns ---------- */
.pk-cols { display: grid; gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 40rem) and (max-width: 63.99rem) { .pk-cols { grid-template-columns: 1fr 1fr; } .pk:nth-child(even) { border-left: 1px solid var(--rule); } .pk:nth-child(n+3) { border-top: 1px solid var(--rule); } }
@media (min-width: 64rem) { .pk-cols { grid-template-columns: repeat(4, 1fr); } .pk + .pk { border-left: 1px solid var(--rule); } }
@media (max-width: 39.99rem) { .pk + .pk { border-top: 1px solid var(--rule); } }
.pk { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem); min-height: 100%; }
.pk__n { font: 700 1.9rem/1 var(--font-head); color: var(--gold); margin: 0 0 2.5rem; font-variant-numeric: tabular-nums; }
.pk__title { font: 700 clamp(1.25rem, 2vw, 1.6rem)/1.15 var(--font-head); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .75rem; color: var(--on-dark); }
.pk p { color: var(--on-dark-muted); margin: 0 0 1.25rem; }
.v2 a.pk__cta { margin-top: auto; color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.v2 a.pk__cta:hover { color: var(--gold-2); }
.pk__cta span, .svc__cta span { transition: transform .22s var(--snap); }
.pk__cta:hover span, .svc__cta:hover span { transform: translateX(4px); }

/* ---------- More from REJN-X: 2 x 2 service panels ---------- */
.svc-grid { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 48rem) { .svc-grid { grid-template-columns: 1fr 1fr; } }
.svc { background: #030303; padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.svc__n { font: 600 .75rem/1 var(--font-head); letter-spacing: .2em; color: var(--gold); margin: 0 0 1rem; }
.svc__title { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--font-head); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--gold); margin: 0 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.svc__title .badge { -webkit-text-stroke: 0; margin: 0; }
.svc p { color: var(--on-dark-muted); margin: 0 0 1rem; max-width: 34rem; }
.v2 .section--services a.svc__cta { margin-top: auto; color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; }
.v2 .section--services a.svc__cta:hover { color: var(--gold-2); }
.svc:hover .svc__title { color: var(--gold); transition: color .2s linear; }

/* ---------- Did you know: a 2 x 2 grid of panels with a drawn gold rule ---------- */
.v2 .facts--stack { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 56rem) { .v2 .facts--stack { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.v2 .facts--stack .fact { border-top: 0; border-bottom: 1px solid var(--line); padding-left: 1.25rem; }
.v2 .facts--stack .fact::after { content: ""; position: absolute; left: 0; top: clamp(1.5rem, 3vw, 2.4rem); bottom: clamp(1.5rem, 3vw, 2.4rem); width: 2px; background: var(--gold); transform-origin: top; }
.motion .facts--stack .fact:not(.is-in)::after { transform: scaleY(0); }
.motion .facts--stack .fact.is-in::after { animation: drawY .6s var(--snap) backwards .25s; }

/* ---------- CTA band: split, title left, action right, on a faint grid ---------- */
.v2 .cta-band--split { position: relative; overflow: hidden; text-align: left;
  background: linear-gradient(rgba(212,175,55,.06) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(212,175,55,.06) 1px, transparent 1px) 0 0 / 64px 64px, #050505; }
.cta-band--split .cta-band__inner { display: grid; gap: 1.5rem; text-align: left; max-width: none; justify-items: start; }
@media (min-width: 56rem) { .cta-band--split .cta-band__inner { grid-template-columns: 1.5fr 1fr; align-items: end; gap: 3rem; } }
.cta-band--split .cta-giant { margin: 0; }
.cta-band__side { border-left: 1px solid var(--rule); padding-left: 1.25rem; }
.cta-band__side p { margin: 0 0 1.25rem; }
.cta-band__side .btn-row { margin: 0; justify-content: flex-start; }

/* ---------- Footer: a static two-part wordmark that wipes in once ---------- */
.footer-mark--static { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.footer-mark__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 2rem; font: 800 clamp(1.6rem, 5.4vw, 4.6rem)/1.05 var(--font-head); text-transform: uppercase; color: #6b6b6b; }
.footer-mark__row .o { color: transparent; -webkit-text-stroke: 1px rgba(212,175,55,.7); }
.motion .footer-mark__row > :nth-child(2) { --d: .12s; }

/* ---------- Page transitions: a quick cross-fade, nothing floaty ---------- */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vtFade .16s linear both; }
  ::view-transition-new(root) { animation: vtIn2 .26s linear both; }
}
@keyframes vtFade { to { opacity: 0; } }
@keyframes vtIn2 { from { opacity: 0; } }

/* ---------- Modal: snappier ---------- */
html.motion .modal .modal__dialog { transition: opacity .2s linear, transform .26s var(--snap); transform: translateY(6px); }
.modal__dialog { border-radius: 6px; }
.modal__close { border-radius: 4px; }
.v2 .field input, .v2 .field select, .v2 .field textarea { border-radius: 4px; }

/* ---------- Visual-check fixes ---------- */
/* Quick links: five cells in one row on desktop */
@media (min-width: 64rem) { .v2 .quick__grid { grid-template-columns: repeat(5, 1fr); } .v2 .quick__item { min-height: 4.75rem; } }
/* Trades line: one quiet technical index line, not a wall of display type */
.marquee__set { font: 600 clamp(.72rem, 1.1vw, .9rem)/1.6 var(--font-head) !important; letter-spacing: .18em !important; gap: .4rem 1.1rem !important; color: var(--on-dark-muted); }
.marquee__set .o { -webkit-text-stroke: 0 !important; color: var(--gold) !important; }
.marquee__set i { font-size: .6em; opacity: .5; }
/* Placeholder card in the trades index sits on the same ground as the others */
.v2 .carousel--index .trade-card.is-placeholder { background: #070707; border: 0; }

/* ===================== Round 21 Oct (Reece's direct requests) ===================== */

/* ---------- Grain, background only, SITEWIDE (has-grain on <body> in layouts/base.njk) ----------
   Tile: the business-card noise (rejnxOps/business-card/revisions/_assets/noise.png), 128px crop,
   pre-blended as white at 0 to 7% alpha, 10 KB. It is an extra background layer on the page-level
   blocks only (heroes, sections, CTA band, footer). The header, cards, panels, buttons, chips, form
   fields and the Book a call overlay all paint their own solid backgrounds above it. Static. */
.has-grain { --grain-img: url("/assets/grain-bg.png"); }
.has-grain main > .section, .has-grain main > .quick, .has-grain main > .marquee, .has-grain .site-footer {
  background-image: var(--grain-img); background-size: 128px 128px; background-repeat: repeat; }
.v2 .has-grain .hero--type, .v2 .has-grain .page-hero--type {
  background: var(--grain-img) 0 0 / 128px 128px repeat, radial-gradient(80% 70% at 85% 10%, rgba(212,175,55,.16), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(197,148,36,.1), transparent 60%), #000; }
.v2 .has-grain main > .section--band { background: var(--grain-img) 0 0 / 128px 128px repeat, linear-gradient(180deg, #0b0905, #000); }
.v2 .has-grain main > .cta-band--split { background: var(--grain-img) 0 0 / 128px 128px repeat, linear-gradient(rgba(212,175,55,.06) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(212,175,55,.06) 1px, transparent 1px) 0 0 / 64px 64px, #050505; }
/* Solid near-black grounds so the grain stays behind the UI */
.has-grain .pk, .has-grain .ways--stack .way, .has-grain .facts--stack .fact, .has-grain .qa__item, .has-grain .table-wrap, .has-grain .bp,
.has-grain .proof, .has-grain .card.is-placeholder, .has-grain .review-note .ph { background-color: #050505; }
.has-grain .qa__item, .has-grain .facts--stack .fact { padding-inline: 1.25rem; }
.v2 .has-grain .btn--ghost-light, .v2 .has-grain .btn--ghost-ink { background-color: #070604; }
.v2 .has-grain .btn--ghost-light:hover, .v2 .has-grain .btn--ghost-ink:hover { background-color: var(--gold); }
.has-grain .chip-t, .has-grain .clip-list li, .has-grain .badge, .v2 .has-grain .nav-toggle { background-color: #050505; }
.v2 .has-grain .chip-t--link.chip-t--fire, .v2 .has-grain a.chip-t--fire { background-color: #1f1a0b; }
.has-grain .site-header { background-color: rgba(0,0,0,.94); }
@media print { .has-grain { --grain-img: none; } }

/* ---------- Home hero: price line ---------- */
.hero__price { margin: 0 0 .9rem; font: 600 clamp(.85rem, 1.3vw, 1rem)/1.4 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: .6rem; }
.hero__price::before { content: ""; width: 7px; height: 7px; background: var(--gold); flex: none; }
.price-line { color: var(--gold) !important; font-weight: 600; }

/* ---------- Story: generic silhouette avatar + text link ---------- */
.avatar { margin: 0; position: relative; width: 100%; max-width: 22rem; justify-self: center; padding: 12px; }
.avatar svg { display: block; width: 100%; height: auto; }
.avatar::before { content: ""; position: absolute; inset: 0; pointer-events: none; --c: var(--gold); --s: 16px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat; }
@media (max-width: 55.99rem) { .avatar { max-width: 14rem; justify-self: start; } }
.motion .avatar .avatar__ring, .motion .avatar .avatar__body { stroke-dasharray: 600; stroke-dashoffset: 600; }
.motion .is-in .avatar .avatar__ring, .motion .is-in .avatar .avatar__body, .motion .avatar.is-in .avatar__ring { animation: stroke 1s var(--snap) forwards .15s; }
.section--story .split { align-items: center; }
.v2 a.text-link { color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.v2 a.text-link:hover { color: var(--gold-2); }
.small { font-size: .95rem; color: var(--on-dark-muted); }

/* ---------- How it works: seven steps + a CTA cell ---------- */
@media (min-width: 40rem) and (max-width: 63.99rem) { .steps--seven { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .steps--seven { grid-template-columns: repeat(4, 1fr); } }
.step--cta { display: flex; align-items: center; justify-content: flex-start; background: #0b0905 !important; }
@media (min-width: 64rem) { .step--cta { justify-content: center; } }

/* ---------- Book a call form: errors ---------- */
.field__error { display: block; margin-top: .35rem; font-size: .9rem; font-weight: 600; color: #ff9a8d; }
.field__error[hidden] { display: none; }
.field__error::before { content: "! "; font-weight: 800; }
.v2 .book-form [aria-invalid="true"] { border-color: #ff9a8d !important; box-shadow: 0 0 0 1px #ff9a8d; }
.check .field__error { flex-basis: 100%; }
.v2 .book-form .check { flex-wrap: wrap; }

/* ---------- Portal: equal cards, actions on the bottom line ---------- */
.portal { align-items: stretch !important; }
.portal__panel { display: flex; flex-direction: column; align-items: flex-start; background: #050505; border-radius: 4px; position: relative; }
.portal__panel .ticks-gold { margin-bottom: 1.5rem; }
.portal__actions { margin: auto 0 0; padding-top: 1.25rem; width: 100%; border-top: 1px solid var(--line); }
.portal__panel::after { content: ""; position: absolute; inset: 12px; pointer-events: none; opacity: 0; transition: opacity .18s linear, inset .28s var(--snap-out); --c: var(--gold); --s: 14px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top right / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat; }
.portal__panel:hover::after, .portal__panel:focus-within::after { opacity: 1; inset: 0; }
.portal__panel--login { order: 0 !important; }

/* ---------- Sites we've built ---------- */

/* ---------- Policies (privacy, cookies) ---------- */
.policy { max-width: 46rem; }
.policy h2 { font: 700 clamp(1.15rem, 2vw, 1.4rem)/1.25 var(--font-head); margin: 2.75rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--rule); position: relative; }
.policy h2::before { content: ""; position: absolute; left: 0; top: -1px; width: 2.5rem; height: 1px; background: var(--gold); }
.policy h3 { font: 600 1.02rem/1.3 var(--font-head); margin: 1.5rem 0 .6rem; color: var(--on-dark); }
.policy ul, .policy ol { color: var(--on-dark-muted); padding-left: 1.25rem; }
.policy li { margin-bottom: .35rem; }
.policy .table-wrap { margin: 1rem 0 1.25rem; }
.compare--kv { min-width: 0; }
.compare--kv th { width: 34%; }
.policy a { color: var(--gold); }

/* ---------- 404: split ---------- */
.nf__split { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 56rem) { .nf__split { grid-template-columns: 1fr 1.2fr; } .nf__text { border-left: 1px solid var(--rule); padding-left: 2rem; } }
.motion .nf__big { animation: wipe .7s var(--snap) backwards .1s; }

/* ---------- Inner pages: split section heads (title left, lead right) on wide screens ---------- */
@media (min-width: 64rem) {
  main > .section:not(.section--story) > .container:not(.container--mid):not(.container--narrow) > .section-head:has(.section-lead) { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 3rem; align-items: end; }
  main > .section:not(.section--story) > .container:not(.container--mid):not(.container--narrow) > .section-head:has(.section-lead) .section-lead { margin: 0; }
}
.portal__actions { display: flex; align-items: center; min-height: 2.5rem; box-sizing: content-box; }
.nw { white-space: nowrap; }

/* ===================== Round 2 (21 Oct, Reece) ===================== */

/* ---------- Header nav: hover / active / focus in the site's UI language (desktop) ----------
   One 4px block per item. Hover = near-black gold-tint block + gold rule drawing in exactly under
   the label (.site-nav__t) + small corner brackets. Active (current page) = same block, gold label,
   rule fully drawn. Keyboard focus = the hover look plus the gold focus ring. No pills, no
   inset-mismatched underlines. */
@media (min-width: 64rem) {
  .v2 .site-nav__list a, .site-nav__subtoggle { border-radius: 4px !important; }
  .v2 .site-nav__list a::after { display: none !important; }
  .site-nav__t { display: inline-block; padding-bottom: 3px; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0% 1px no-repeat; transition: background-size .26s var(--snap); }
  /* Top level */
  .v2 .site-nav__list > li > a, .site-nav__subtoggle { position: relative; padding-inline: .6rem !important; transition: background-color .18s linear, color .18s linear; }
  .v2 .site-nav__list > li > a:hover, .site-nav__subtoggle:hover, .has-sub.is-open > .site-nav__subtoggle { background-color: rgba(212,175,55,.07); color: var(--on-dark) !important; }
  .v2 .site-nav__list > li > a:hover .site-nav__t, .site-nav__subtoggle:hover .site-nav__t, .has-sub.is-open > .site-nav__subtoggle .site-nav__t,
  .v2 .site-nav__list > li > a[aria-current="page"] .site-nav__t, .site-nav__subtoggle[data-current] .site-nav__t { background-size: 100% 1px; }
  .v2 .site-nav__list > li > a[aria-current="page"], .site-nav__subtoggle[data-current] { color: var(--on-dark) !important; }
  /* Dropdown panel */
  .site-nav__sub { border-radius: 4px !important; padding: .35rem !important; border: 1px solid var(--hair); top: calc(100% + 4px) !important; }
  .site-nav__sub li + li { margin-top: 2px; }
  .site-nav__sub--cols li + li { margin-top: 0; }
  .site-nav__sub--cols li { margin-bottom: 2px; }
  .site-nav__sub a { position: relative; display: flex !important; align-items: center; min-height: 44px; padding: .45rem .7rem !important; border: 0 !important; border-radius: 4px !important; color: var(--on-dark-muted) !important; transition: background-color .18s linear, color .18s linear; }
  .site-nav__sub a:hover, .site-nav__sub a:focus-visible { background-color: rgba(212,175,55,.08); color: var(--on-dark) !important; }
  .site-nav__sub a:hover .site-nav__t, .site-nav__sub a:focus-visible .site-nav__t, .site-nav__sub a[aria-current="page"] .site-nav__t { background-size: 100% 1px; }
  .site-nav__sub a[aria-current="page"] { background-color: rgba(212,175,55,.12); color: var(--gold) !important; }
  /* Corner brackets on the hovered / focused / current item */
  .site-nav__sub a::before, .v2 .site-nav__list > li > a::before, .site-nav__subtoggle::before { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity .18s linear; --c: var(--gold); --s: 6px;
    background:
      linear-gradient(var(--c), var(--c)) top left / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) top left / 1px var(--s) no-repeat,
      linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px no-repeat, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s) no-repeat; }
  .site-nav__sub a:hover::before, .site-nav__sub a:focus-visible::before, .site-nav__sub a[aria-current="page"]::before,
  .v2 .site-nav__list > li > a:hover::before, .site-nav__subtoggle:hover::before, .has-sub.is-open > .site-nav__subtoggle::before { opacity: 1; }
  /* Keyboard focus ring: same 4px shape, sits just outside the block */
  .v2 .site-nav__list a:focus-visible, .site-nav__subtoggle:focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 2px; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .site-nav__t, .site-nav__sub a, .site-nav__subtoggle { transition: none !important; } }

/* ---------- Copy beside a gold vertical line: ONE shared gap, sitewide (home hero value) ---------- */
:root { --rule-gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 64rem) {
  .v2 .hero--split .hero__copy { padding-left: var(--rule-gap); }
  .v2 .page-hero--type .page-hero__inner.container { padding-left: var(--rule-gap); }
  .v2 .nf__text { padding-left: var(--rule-gap); }
}
.v2 .cta-band__side { padding-left: var(--rule-gap); }

/* ---------- Book a call: collection notice (Lex 21 Oct) ---------- */
.form-notice { margin: .25rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--on-dark-muted); }
.form-notice a { color: var(--gold); }

/* ---------- /portal/: cards straight under the header ---------- */
.v2 main > .portal-top { padding-top: clamp(2rem, 6vh, 3.5rem); }

/* ---------- Sites we've built: name-only list (no screenshots) ---------- */
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.work-list__item { display: grid; grid-template-columns: auto 1fr; column-gap: var(--rule-gap); align-items: baseline; padding: 1.5rem 0; border-bottom: 1px solid var(--line); background: #050505; padding-inline: 1.25rem; }
.work-list__item .ph, .work-list__item .note { grid-column: 2; margin: .5rem 0 0; }
.work-list__n { font: 600 .8rem/1 var(--font-head); color: var(--gold); letter-spacing: .08em; }
.work-list__name { margin: 0; font: 700 clamp(1.3rem, 3vw, 2rem)/1.15 var(--font-head); color: var(--on-dark); }
.work-list__name a { color: inherit; text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left bottom / 0% 1px no-repeat; transition: background-size .26s var(--snap); padding-bottom: 2px; }
.work-list__name a:hover, .work-list__name a:focus-visible { background-size: 100% 1px; color: var(--gold); }
.work-list__arrow { margin-left: .4rem; font-size: .7em; color: var(--gold); }
.work-list__item.is-placeholder .work-list__name { color: var(--on-dark-muted); }
.work-mini__list { list-style: none; margin: 0 0 .75rem; padding: 0; }
.work-mini__list li { font: 600 1rem/1.35 var(--font-head); color: var(--on-dark); padding: .5rem 0; border-top: 1px solid var(--line); }
.work-mini__list li:last-child { border-bottom: 1px solid var(--line); }
.work-mini__list a { color: inherit; }
/* Price line: block flow so the no-wrap "$199 a month" span stays inline text (not a flex item) */
.hero__price { display: block; position: relative; padding-left: calc(7px + .6rem); }
.hero__price::before { position: absolute; left: 0; top: .55em; }
.work-list__item { grid-template-columns: 2.5rem 1fr; }
.work-list__item > :not(.work-list__n):not(.work-list__name) { grid-column: 2; margin: .6rem 0 0; }
.trade-footnote { margin-top: 0; margin-bottom: 0; padding-block: 1.25rem; font-size: .8rem; color: var(--on-dark-muted); border-top: 1px solid var(--line); }

/* ---------- Footer legal row: © · Cookie settings · Privacy policy (same style, same 44px row) ---------- */
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; column-gap: .4rem; }
.site-footer__legal .linklike { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
.site-footer__legal a.linklike:hover, .site-footer__legal button.linklike:hover { color: var(--gold); }
/* Cookie settings + Privacy policy always stay together; on narrow screens the © line sits above them */
.site-footer__legal-links { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
@media (min-width: 40rem) { .site-footer__copy::after { content: "·"; margin-left: .4rem; } }
@media (max-width: 39.99rem) { .site-footer__legal { flex-direction: column; align-items: flex-start; } .site-footer__copy { min-height: 1.5rem; } }
.v2 .site-footer .site-footer__legal .linklike, .site-footer .site-footer__legal a.linklike { color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .15em; }
.v2 .site-footer .site-footer__legal .linklike:hover { color: var(--gold); }

/* Lex pricing notes (21 Oct): Care renewal line under the package cards */
.pkgs__note { grid-column: 1 / -1; margin: .25rem 0 0; }

/* /work/ line + 'View the site' link (Cassie final copy, 21 Oct) */
.work-list .work-list__item > .work-list__body.work-list__body { grid-column: 2; margin: 0; }
.work-list__line { margin: .5rem 0 0; color: var(--on-dark-muted); max-width: 60ch; }
.work-list__link { margin: .75rem 0 0; }
.work-list__link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) left calc(100% - 10px) / 0% 1px no-repeat; transition: background-size .26s var(--snap); font-weight: 600; }
.work-list__link a:hover, .work-list__link a:focus-visible { background-size: 100% 1px; }
.work-list__link .work-list__arrow { margin-left: .35rem; }

/* Cloudflare Turnstile widget (round 18): sits above the submit button; disabled button until token */
.cf-turnstile { margin: .25rem 0 .75rem; min-height: 65px; }
.book-form .btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Sending state (live forms): the cobra badge (favicon, already cached) with a ring tracing round it,
   same motion as the portal boot loader. Fixed 1.4em box, so the button does not resize. */
.book-form .btn.is-sending, .book-form .btn.is-sending[disabled] { opacity: 1; cursor: progress; }
.rx-spin { position: relative; display: inline-block; flex: none; width: 1.4em; height: 1.4em; margin-right: .6em; vertical-align: -.38em; border-radius: 50%; background: #000 url(/assets/favicon-32.png) center / 100% no-repeat; }
.rx-spin::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(rgba(0,0,0,0) 0 50%, rgba(0,0,0,.95) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); animation: rx-spin .9s linear infinite; }
@keyframes rx-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .rx-spin::after { animation: none; background: rgba(0,0,0,.35); } }
