/* =========================================================================
   BILL YARN — The Long Haul.
   A cinematic scroll-journey through a freight career. Full-bleed waypoints,
   oversized type, a manifest spine. Navy (his Fast-Links colour). No labels,
   no repeated cards, all colour from tokens. Self-contained.
   ========================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --void: #070a11;
  --deep: #0b111d;
  --panel: #101827;
  --bone: #eef1f7;
  --dim: #97a2b6;
  --faint: #79839a;
  --blue: #6ea0e6;
  --blue-hi: #a9caf6;
  --blue-lo: #2b436e;
  --line: rgba(238, 241, 247, 0.11);
  --line-hi: rgba(238, 241, 247, 0.24);
  --wash: #12244d;               /* navy hue-wash over photos */
  --disp: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px;
  --pad: clamp(22px, 5.5vw, 90px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--void); color: var(--bone);
  font-family: var(--sans); line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Scoped under [data-custom-site] to out-specify the app-wide brass ::selection
   in app/globals.css (Merto identity), which otherwise bleeds gold onto this
   site's text selection in preview and on the live subdomain. */
[data-custom-site] ::selection { background: var(--blue-lo); color: var(--bone); }
[data-custom-site] ::-moz-selection { background: var(--blue-lo); color: var(--bone); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--disp); font-weight: 600; line-height: 0.96; letter-spacing: -0.025em; }
em { font-style: normal; color: var(--blue-hi); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

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

/* shared photo grade + navy wash (one system for every image) */
.grade { position: absolute; inset: 0; overflow: hidden; }
.grade img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7) contrast(1.05) saturate(0.82); }
.grade::after { content: ""; position: absolute; inset: 0; background: var(--wash); mix-blend-mode: multiply; opacity: 0.46; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(15px, 2vw, 22px) var(--pad);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav[data-scrolled] { background: color-mix(in srgb, var(--void) 80%, transparent); backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); padding-block: 11px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--disp); font-weight: 700; font-size: 1.02rem; color: var(--blue-hi);
  border: 1px solid var(--blue-lo); position: relative; transition: border-color 0.35s var(--ease);
}
.brand__mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--line); }
.brand:hover .brand__mark { border-color: var(--blue); }
.brand__name { font-family: var(--disp); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: clamp(1.1rem, 2.4vw, 2.3rem); align-items: center; }
.nav__links a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); position: relative; padding-block: 4px; transition: color 0.3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--blue); transition: width 0.35s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--bone); }
.nav__toggle { display: none; }
@media (max-width: 760px) {
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; z-index: 31; }
  .nav__toggle span { width: 26px; height: 2px; background: var(--bone); transition: transform 0.35s var(--ease), opacity 0.2s; }
  .nav[data-open] .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav[data-open] .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav[data-open] .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  /* Explicit viewport-based sizing (NOT inset:0): when the scrolled nav gains
     backdrop-filter it becomes the containing block for this fixed child, and
     inset:0 would collapse the menu to the ~62px bar height, so translateY(-100%)
     only lifted it a sliver and the links peeked from behind the bar. height:100dvh
     is viewport-relative regardless of containing block, so the closed menu always
     clears the screen. */
  .nav__links { position: fixed; top: 0; left: 0; right: 0; height: 100dvh; flex-direction: column; justify-content: center; gap: 1.5rem; background: color-mix(in srgb, var(--void) 97%, transparent); backdrop-filter: blur(14px); transform: translateY(-100%); transition: transform 0.5s var(--ease); z-index: 30; }
  .nav[data-open] .nav__links { transform: translateY(0); }
  .nav__links a { font-family: var(--disp); font-size: 1.4rem; text-transform: none; letter-spacing: -0.01em; color: var(--bone); }
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero .grade { inset: -8% 0; }
.hero .grade img { animation: zoom 20s var(--ease) forwards; transform: scale(1.09); will-change: transform; }
@keyframes zoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(7,10,17,0.5), rgba(7,10,17,0.05) 30%, rgba(7,10,17,0.55) 68%, var(--void) 100%),
    linear-gradient(90deg, rgba(7,10,17,0.85), rgba(7,10,17,0.25) 48%, transparent 74%);
}
.hero__body { position: relative; z-index: 2; padding-bottom: clamp(30px, 6vh, 64px); }
.hero__kick { color: var(--blue); margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(3.2rem, 11vw, 10rem); font-weight: 700; letter-spacing: -0.04em; }
.hero__sub { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--dim); }
/* Spec strip: left-aligned to match the hero copy above it at every width, an
   even row/column gap so it wraps into tidy left-aligned rows (never a spread
   full-width grid, never centered-and-disconnected). Fluid type so it fits. */
.manifest {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center;
  gap: 0.55rem clamp(0.9rem, 2.6vw, 2rem); padding-block: 1.1rem; border-top: 1px solid var(--line-hi);
  font-family: var(--mono); font-size: clamp(0.66rem, 1.6vw, 0.74rem); letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint);
}
.manifest span { white-space: nowrap; }
.manifest b { color: var(--blue); font-weight: 400; }

/* =========================================================================
   STATEMENT — oversized type, no image
   ========================================================================= */
.statement { padding-block: clamp(84px, 15vw, 220px); }
.statement p { font-family: var(--disp); font-weight: 500; font-size: clamp(1.9rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 20ch; color: var(--bone); }

/* =========================================================================
   WAYPOINTS — the four companies, full-bleed, alternating
   ========================================================================= */
.way { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.way .grade { inset: -6% 0; }
.way .grade img { transform: scale(1.06); transition: transform 1.6s var(--ease); will-change: transform; }
.way.in .grade img { transform: scale(1); }
.way__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,10,17,0.62), rgba(7,10,17,0.12) 34%, rgba(7,10,17,0.72) 82%, var(--void) 100%); }
.way__veil::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,10,17,0.82), transparent 62%); }
.way--right .way__veil::before { background: linear-gradient(270deg, rgba(7,10,17,0.82), transparent 62%); }
.way__body { position: relative; z-index: 2; padding-block: clamp(48px, 8vw, 104px); max-width: 40ch; }
.way--right .way__body { margin-left: auto; text-align: right; }
.way__no { font-family: var(--disp); font-weight: 700; font-size: clamp(4.5rem, 13vw, 12rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--blue-lo); letter-spacing: -0.04em; display: block; margin-bottom: 0.1em; }
.way h2 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
.way__role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin: 0.9rem 0 1rem; }
.way__line { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--dim); margin: 0; }

/* =========================================================================
   LEDGER
   ========================================================================= */
.ledger { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 820px) { .ledger { grid-template-columns: repeat(4, 1fr); } }
.ledger__c { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(2.2rem, 5vw, 4rem) clamp(1rem, 2vw, 2rem) clamp(2.2rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .ledger__c + .ledger__c { border-left: 1px solid var(--line); padding-left: clamp(1.4rem, 2.5vw, 2.4rem); } }
/* Values share one type scale and top-align; labels are pinned to a common
   bottom baseline (margin-top:auto over equal-height grid cells) so all four
   read as one row no matter how tall each value wraps. */
.ledger__n { font-family: var(--disp); font-weight: 700; font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 0.95; letter-spacing: -0.04em; color: var(--bone); font-variant-numeric: tabular-nums; }
.ledger__n em { color: var(--blue); font-size: 0.42em; vertical-align: 0.5em; }
.ledger__s { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-family: var(--disp); font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; color: var(--bone); text-wrap: balance; }
.ledger__l { margin-top: 1.1rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); }

/* =========================================================================
   THE MAN — split, his photo
   ========================================================================= */
.man { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 900px) { .man { grid-template-columns: 1fr 1fr; } }
.man__text { padding: clamp(64px, 10vw, 150px) var(--pad); display: flex; flex-direction: column; justify-content: center; background: var(--deep); }
.man__text h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 600; max-width: 14ch; }
.man__text p { color: var(--dim); max-width: 42ch; margin: 1.4rem 0 0; }
.man__photo { position: relative; min-height: 60vh; overflow: hidden; }
.man__photo .grade img { filter: brightness(0.82) contrast(1.04) saturate(0.95); }
.man__cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 0.9rem 1.1rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: linear-gradient(0deg, rgba(7,10,17,0.75), transparent); }

/* =========================================================================
   LINKS — community + record
   ========================================================================= */
.links { display: grid; gap: 1px; background: var(--line); }
@media (min-width: 760px) { .links { grid-template-columns: 1fr 1fr; } }
.link { position: relative; min-height: 42vh; display: flex; align-items: flex-end; overflow: hidden; padding: clamp(1.8rem, 4vw, 3rem); background: var(--deep); }
.link .grade img { filter: brightness(0.44) contrast(1.05) saturate(0.8); transition: transform 1.2s var(--ease); }
.link:hover .grade img { transform: scale(1.06); }
.link__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(7,10,17,0.9)); }
.link__body { position: relative; z-index: 2; }
.link__body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 600; }
.link__body p { color: var(--dim); margin: 0.5rem 0 0; max-width: 32ch; }
.link__go { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); }

/* =========================================================================
   CTA
   ========================================================================= */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(90px, 16vw, 220px); }
.cta .grade img { filter: brightness(0.4) contrast(1.05) saturate(0.8); }
.cta__veil { position: absolute; inset: 0; z-index: 1; background: radial-gradient(90% 120% at 50% 10%, rgba(110,160,230,0.16), transparent 55%), linear-gradient(0deg, var(--void), rgba(7,10,17,0.5)); }
.cta__in { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.035em; }
.cta p { color: var(--dim); margin: 1.4rem auto 2.4rem; max-width: 32ch; }
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; color: var(--void); background: var(--blue); border: 1px solid var(--blue);
  transition: transform 0.25s var(--ease), background 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-2px); background: var(--blue-hi); border-color: var(--blue-hi); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 5vw, 3.8rem); }
.footer__b { font-family: var(--disp); font-size: 1.5rem; font-weight: 600; }
.footer__col nav a { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); transition: color 0.3s; }
.footer__col nav a:hover { color: var(--bone); }
.footer__legal { margin: 0; font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.05em; color: var(--faint); line-height: 1.9; }

/* =========================================================================
   MOTION
   ========================================================================= */
.rise { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 0.08s); }
.rise.in { opacity: 1; transform: none; }

/* Scroll-progress rail (top hairline that fills as you read). */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 40; pointer-events: none; background: transparent; }
.progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue-lo), var(--blue)); will-change: transform; transition: transform 0.12s linear; }

/* Nav auto-hide on scroll-down, reveal on scroll-up. */
/* Nav is sticky (position:fixed) on every device — no auto-hide. It stays pinned
   with its blurred scrolled background covering the top, so content never shows
   through and the bar never slides away mid-scroll. */

/* Statement: words light up left-to-right as the line scrolls through. */
[data-scrub] .w { color: var(--faint); transition: color 0.18s linear; }
[data-scrub] .w.lit { color: var(--bone); }

/* Depth drift (hero copy + ghost numbers) is applied via inline transform in JS;
   the base just declares the compositing hint. */
[data-hero], .way__no { will-change: transform; }

/* Magnetic CTA follows the cursor a few px, springs back on leave. */
.btn[data-magnetic] { transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero .grade img, .way .grade img { animation: none !important; transform: none !important; }
  .rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .quote__curtain span:first-child { transform: translateX(-100%); }
  .quote__curtain span:last-child { transform: translateX(100%); }
  .tl__dot { border-color: var(--blue) !important; background: var(--blue-hi) !important; }
  .tl__n { color: var(--blue) !important; }
  .progress { display: none; }
  [data-scrub] .w { color: var(--bone); }
  [data-hero], .way__no, .btn[data-magnetic] { transform: none !important; }
}

/* =========================================================================
   INTERIOR PAGES (about / companies / community / contact / legal)
   ========================================================================= */
.phead { position: relative; padding: calc(var(--pad) + clamp(70px, 12vh, 130px)) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.phead--photo { min-height: 68vh; display: flex; align-items: flex-end; }
.phead .grade { inset: 0; }
.phead__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,10,17,0.86), rgba(7,10,17,0.5) 46%, rgba(7,10,17,0.78) 82%, var(--void)); }
.phead__body { position: relative; z-index: 2; }
.phead__kick { color: var(--blue); margin-bottom: 1.3rem; }
.phead h1 { font-size: clamp(2.8rem, 8.5vw, 6.4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 0.95; }
.phead__lede { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1.1rem, 1.7vw, 1.4rem); color: var(--dim); line-height: 1.5; }

.section { padding-block: clamp(56px, 9vw, 120px); }
.section--tint { background: var(--deep); }
.prose { max-width: 62ch; }
.prose p { font-size: clamp(1.08rem, 1.5vw, 1.3rem); line-height: 1.72; color: var(--dim); margin: 0 0 1.4rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--bone); font-weight: 600; }
.section__eyebrow { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.4rem; }
.section__h { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); max-width: 22ch; }

/* Companies — editorial list */
.co { border-top: 1px solid var(--line); }
.co__row { display: grid; gap: 1rem 3rem; padding: clamp(2.4rem, 5vw, 4.4rem) 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (min-width: 820px) { .co__row { grid-template-columns: 0.85fr 1.15fr; } }
.co__no { font-family: var(--disp); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); color: transparent; -webkit-text-stroke: 1px var(--blue-lo); letter-spacing: -0.03em; line-height: 1; }
.co__name { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; margin: 0.5rem 0 0.7rem; }
.co__role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--blue); }
.co__body { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; color: var(--dim); margin: 0 0 1.3rem; }
.co__link { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 1.3rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); transition: color 0.3s, gap 0.3s var(--ease); }
.co__link:hover { color: var(--blue-hi); gap: 0.7rem; }
.co__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.co__tags span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-hi); border-radius: 999px; padding: 0.4rem 0.85rem; }

/* Split feature (community / about) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } .split--flip .split__media { order: -1; } }
.split__media { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.86) saturate(0.92); }
.split__cap { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; color: var(--faint); }

/* Contact form (navy). Consent box + .req come from the shared capture CSS. */
[data-lead-form] { --lead-accent: var(--blue); }
.form { max-width: 40rem; display: flex; flex-direction: column; gap: 1.2rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-row { display: grid; gap: 1.2rem; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form label:not(.lead-consent) { display: flex; flex-direction: column; gap: 0.55rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.form input, .form select, .form textarea { font-family: var(--sans); font-size: 1rem; text-transform: none; letter-spacing: 0; color: var(--bone); background: var(--panel); border: 1px solid var(--line-hi); border-radius: 4px; padding: 0.85rem 1rem; width: 100%; transition: border-color 0.25s, background 0.25s; }
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); background: color-mix(in srgb, var(--panel) 80%, var(--blue-lo)); }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.field-phone { display: flex; align-items: stretch; }
.field-phone__cc { display: inline-flex; align-items: center; padding: 0 0.8rem; font-family: var(--mono); font-size: 0.9rem; color: var(--dim); background: var(--deep); border: 1px solid var(--line-hi); border-right: 0; border-radius: 4px 0 0 4px; }
.field-phone input { border-radius: 0 4px 4px 0; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.form select { appearance: none; }
.btn--primary { align-self: flex-start; background: var(--blue); color: var(--void); border: 0; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 1rem 2rem; border-radius: 4px; cursor: pointer; transition: transform 0.25s var(--ease), background 0.25s; }
.btn--primary:hover { background: var(--blue-hi); transform: translateY(-2px); }
.btn--primary:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
.form-confirm { margin: 0; padding: 1.1rem 1.3rem; background: color-mix(in srgb, var(--blue-lo) 34%, var(--panel)); border: 1px solid var(--blue-lo); border-radius: 4px; color: var(--bone); font-size: 0.98rem; }
.form-confirm a { color: var(--blue-hi); text-decoration: underline; }
.contact-grid { display: grid; gap: clamp(2.4rem, 6vw, 5rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.2fr 0.8fr; } }
.contact-aside dt { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
.contact-aside dd { margin: 0 0 1.8rem; font-size: 1.15rem; color: var(--bone); }
.contact-aside dd a { color: inherit; border-bottom: 1px solid var(--blue-lo); }
.contact-aside dd a:hover { border-color: var(--blue); }

/* Legal */
.legal { max-width: 68ch; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin: 2.6rem 0 1rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; color: var(--dim); }
.legal p { margin: 0 0 1.1rem; }
.legal ul { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--blue-hi); border-bottom: 1px solid var(--blue-lo); }
.legal__updated { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 2.4rem; }

/* =========================================================================
   SCROLL-TO-TOP + HOVER / INTERACTION LAYER
   ========================================================================= */
/* Bottom-right like every basket site. --merto-chat-clearance (0px fallback when
   chat is off) lifts it above the Foundation chat FAB when the widget mounts; the
   [data-chat-widget] rule then centers this 48px button over the 56px FAB. */
.totop {
  position: fixed; right: clamp(16px, 3vw, 34px);
  bottom: calc(clamp(16px, 3vw, 34px) + var(--merto-chat-clearance, 0px)); z-index: 55;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter: blur(10px);
  border: 1px solid var(--line-hi); border-radius: 50%; color: var(--blue-hi); cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(0.92); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s, background 0.3s;
}
[data-chat-widget] .totop { right: calc(var(--merto-fab-right) + (var(--merto-fab-size) - 48px) / 2); }
.totop[data-show] { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--blue); background: var(--panel); transform: translateY(-3px); }
.totop:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.totop span { width: 10px; height: 10px; margin-top: 3px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(-45deg); }

/* Company rows: the outlined index lights up and the block eases right on hover. */
.co__row { transition: transform 0.4s var(--ease); }
.co__row:hover { transform: translateX(6px); }
.co__row .co__no { transition: -webkit-text-stroke-color 0.35s var(--ease), color 0.35s; }
.co__row:hover .co__no { -webkit-text-stroke-color: var(--blue); }
.co__tags span { transition: border-color 0.3s, color 0.3s; }
.co__tags span:hover { border-color: var(--blue); color: var(--blue-hi); }

/* Path links: lift, brighten photo, slide the arrow. */
.link { transition: transform 0.45s var(--ease); }
.link:hover { transform: translateY(-4px); }
.link .link__go { transition: color 0.3s, letter-spacing 0.3s; }
.link:hover .link__go { color: var(--blue-hi); letter-spacing: 0.06em; }
.link:hover .link__veil { background: linear-gradient(0deg, rgba(7,10,17,0.88), rgba(7,10,17,0.18)); }

/* Feature photos ease in on hover. */
.split__media img { transition: transform 0.8s var(--ease), filter 0.5s; }
.split__media:hover img { transform: scale(1.04); filter: brightness(0.94) saturate(0.98); }

/* Ledger cells: hover brightens the value + a top accent hairline. */
.ledger__c { transition: background 0.35s; position: relative; }
.ledger__c::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width 0.4s var(--ease); }
.ledger__c:hover::before { width: 100%; }
.ledger__c .ledger__n, .ledger__c .ledger__s { transition: color 0.35s; }

/* Home CTA button + generic .btn: lift + fill. */
.btn { transition: background 0.3s, color 0.3s, transform 0.3s var(--ease), border-color 0.3s; }
.btn:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .totop, .co__row, .link, .split__media img, .btn { transition: none !important; }
  .co__row:hover, .link:hover, .btn:hover { transform: none !important; }
  .split__media:hover img { transform: none !important; }
}

/* =========================================================================
   PULL-QUOTE (full-bleed gallery moment)
   ========================================================================= */
.quote { position: relative; overflow: hidden; padding-block: clamp(90px, 16vw, 200px); }
.quote .grade { inset: 0; }
.quote__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,10,17,0.82), rgba(7,10,17,0.62)); }
.quote__in { position: relative; z-index: 2; max-width: 40rem; }
/* Museum curtain: two drapes cover the exhibit, part as the section crosses
   the viewport centre (scroll-linked in script.js). The text (z-index 2) is
   always above the drapes, so it stays readable even before JS runs; only the
   photo is unveiled. Deep-navy velvet with a soft vertical fold texture and a
   thin blue seam down the parting line. */
.quote__curtain { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.quote__curtain span {
  position: absolute; top: 0; bottom: 0; width: 51%; will-change: transform;
  background:
    repeating-linear-gradient(90deg, rgba(238,241,247,0.045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(7,10,17,0.5) 0 14px, transparent 14px 30px),
    linear-gradient(180deg, #0a0f1a, #05080f);
}
.quote__curtain span:first-child { left: 0; box-shadow: inset -1px 0 0 var(--blue-lo), 14px 0 40px rgba(0,0,0,0.5); }
.quote__curtain span:last-child { right: 0; box-shadow: inset 1px 0 0 var(--blue-lo), -14px 0 40px rgba(0,0,0,0.5); }
.quote__mark { font-family: var(--disp); font-size: clamp(4rem, 9vw, 8rem); line-height: 0.6; color: var(--blue-lo); display: block; margin-bottom: 0.2em; }
.quote blockquote { margin: 0; font-family: var(--disp); font-weight: 600; font-size: clamp(1.8rem, 4.6vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; }
.quote figcaption { margin-top: 1.6rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue); }

/* =========================================================================
   FAQ (accordion — visible answers = FAQPage schema source of truth)
   ========================================================================= */
.faq { max-width: 46rem; margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: clamp(1.2rem, 2.4vw, 1.7rem) 3rem clamp(1.2rem, 2.4vw, 1.7rem) 0; position: relative; font-family: var(--disp); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.5rem); letter-spacing: -0.02em; color: var(--bone); transition: color 0.3s; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(45deg); transition: transform 0.35s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item summary:hover { color: var(--blue-hi); }
.faq__item p { margin: 0 0 clamp(1.2rem, 2.4vw, 1.7rem); max-width: 60ch; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; color: var(--dim); }

/* =========================================================================
   FOOTER (rich, multi-column)
   ========================================================================= */
.footer__grid { display: grid; gap: clamp(2rem, 5vw, 3.4rem); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 940px) { .footer__grid { grid-template-columns: 1.8fr 1fr 1.1fr 0.9fr; } }
.footer__tag { margin: 0.9rem 0 0.6rem; max-width: 26ch; font-family: var(--disp); font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--dim); line-height: 1.35; }
.footer__h { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); font-weight: 400; margin: 0 0 1.1rem; }
.footer__col nav, .footer__list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { font-size: 0.9rem; color: var(--dim); }
.footer__base { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between; margin-top: clamp(2.4rem, 5vw, 3.6rem); padding-top: 1.6rem; border-top: 1px solid var(--line); }
.footer__base span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }

/* =========================================================================
   CAREER TIMELINE (About) — a spine that draws itself on scroll, each node
   lighting as it crosses the upper half of the viewport (script.js). Unique
   to the About page. Sequence numerals (01-04) stand in until real founding
   years are confirmed.
   ========================================================================= */
.timeline { position: relative; margin-top: clamp(1.8rem, 4vw, 3rem); }
.timeline::before { content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px; transform: translateX(-50%); background: var(--line); }
.tl__fill { position: absolute; left: 14px; top: 10px; width: 2px; height: 0; transform: translateX(-50%); background: linear-gradient(180deg, var(--blue-hi), var(--blue-lo)); box-shadow: 0 0 16px rgba(110,160,230,0.45); will-change: height; }
.tl__item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 0 clamp(1rem, 2.4vw, 1.8rem); padding-bottom: clamp(2.2rem, 5vw, 3.8rem); }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot { grid-column: 1; align-self: start; justify-self: center; margin-top: 8px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-hi); background: var(--void); transition: border-color 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.tl__item.lit .tl__dot { border-color: var(--blue); background: var(--blue-hi); box-shadow: 0 0 0 5px rgba(110,160,230,0.14), 0 0 18px rgba(110,160,230,0.5); }
.tl__c { grid-column: 2; }
.tl__n { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0; transition: color 0.45s var(--ease); }
.tl__item.lit .tl__n { color: var(--blue); }
.tl__item h3 { font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; margin: 0.35rem 0 0; }
.tl__role { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin: 0.55rem 0 0; }
.tl__reach { color: var(--dim); margin: 0.6rem 0 0; max-width: 48ch; }

/* =========================================================================
   SPOTLIGHT PLAQUE (Community) — a museum spotlight that follows the cursor
   (fine pointer) or drifts with scroll (coarse), lighting a dedication line.
   ========================================================================= */
.plaque { position: relative; overflow: hidden; background: var(--deep); padding-block: clamp(80px, 14vw, 190px); }
.plaque__light { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(360px 360px at var(--mx, 50%) var(--my, 42%), rgba(110,160,230,0.18), transparent 70%); }
.plaque__in { position: relative; z-index: 1; max-width: 40rem; margin-inline: auto; text-align: center; }
.plaque__kick { color: var(--blue); }
.plaque__q { font-family: var(--disp); font-weight: 600; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.14; letter-spacing: -0.025em; margin: 1.1rem 0 0; }

/* Descriptive in-body link into the About entity page (SEO/AEO internal linking). */
.man__link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); transition: color 0.3s, gap 0.3s var(--ease); }
.man__link:hover { color: var(--blue-hi); gap: 0.7rem; }
