/* ============================================================================
   ALLOY TRADING AFRICA (ATA) - Wadeville, Germiston
   Cave Nexus build v2 · 2026-10

   COMPOSITION CONTRACT (deliberate, do not regress):
   - Hero display reaches 152px desktop: clamp(3.4rem, 9vw, 9.5rem). Body 17px,
     ratio ~ 8.9:1.
   - No 1fr 1fr content splits. Ratios: 7fr 5fr (intro), 5fr 7fr (journey),
     1fr 1.618fr (broadcast), 7fr 5fr (order), 2fr 1fr (contact).
   - No auto-fit/auto-fill. Grids are explicit counts per breakpoint.
   - Measures: full-bleed (hero, marquee, weighbridge band, yard gallery, map) ·
     wide 1400px (--w-wide) · mid 1180px (--w-mid) · narrow 62ch (--w-copy).
   - Container breaks: hero film, marquee, weighbridge band, yard gallery row.
   - Vertical rhythm: section padding clamp(96px, 14vh, 200px); hero 100svh.

   TOKEN STRUCTURE = Cave Nexus house system; VALUES = ATA's own brand (kept from
   the approved v1): graphite ramp, chrome off-white foreground, molten
   copper -> gold accent in 3 steps, teal + coral sparks from the emblem,
   hairlines by alpha. Space Grotesk display tight, IBM Plex Mono micro-labels
   wide.
   ========================================================================== */

:root {
  /* --- primitive: graphite ramp (cool, never black) --- */
  --ink-0: #0a0b0d;
  --ink-1: #101216;
  --ink-2: #15181d;
  --ink-3: #1b1f25;

  /* --- primitive: foreground (chrome off-white) --- */
  --chrome: #eef1f4;

  /* --- primitive: molten accent, 3 steps --- */
  --gold:   #f4b04a;
  --amber:  #e07b28;
  --copper: #c14d1e;
  --molten: linear-gradient(120deg, #f8c25a 0%, #e88329 42%, #c14d1e 78%, #9a3a14 100%);

  /* --- primitive: emblem sparks --- */
  --teal:  #2fb4ac;
  --coral: #ff5b57;
  --whatsapp: #25d366;
  --whatsapp-deep: #128c4b;

  /* --- semantic --- */
  --bg:     var(--ink-0);
  --raised: var(--ink-1);
  --card:   var(--ink-2);
  --card-2: var(--ink-3);
  --text:   var(--chrome);
  --muted:  rgba(238, 241, 244, .66);
  --faint:  rgba(238, 241, 244, .58);
  --line:   rgba(244, 176, 74, .14);
  --line-2: rgba(244, 176, 74, .32);
  --line-n: rgba(238, 241, 244, .09);

  /* --- type --- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --display-hero: clamp(3.4rem, min(9vw, 14.5vh), 9.5rem);
  --display-xl:   clamp(2.6rem, 7vw, 6.5rem);
  --display-lg:   clamp(2.1rem, 4.6vw, 4rem);
  --display-md:   clamp(1.4rem, 2.4vw, 2rem);

  /* --- layout --- */
  --w-wide: 1400px;
  --w-mid:  1180px;
  --w-copy: 62ch;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-pad: clamp(96px, 14vh, 200px);
  --radius: 18px;

  /* --- motion --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-micro: 200ms;
  --t-reveal: 600ms;
}

/* ============================== base ==================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink-0); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: rgba(224, 123, 40, .35); color: #fff8ee; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--gold); color: #1a0d05; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 16px; }

.wrap-wide { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-mid  { width: 100%; max-width: var(--w-mid);  margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sec-pad); position: relative; }
.section-tight { padding-block: clamp(72px, 10vh, 140px); }

.molten-text { background: var(--molten); -webkit-background-clip: text; background-clip: text; color: transparent; }
.display { font-size: var(--display-lg); }

/* micro-labels: mono, wide, the constant */
.eyebrow, .coords {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--gold);
}
.coords { color: var(--faint); letter-spacing: .22em; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--molten); border-radius: 2px; }

.sec-head { max-width: 820px; margin-bottom: clamp(48px, 7vh, 88px); }
.sec-head h2 { margin-top: 20px; }
.sec-head p { margin-top: 22px; color: var(--muted); font-size: 1.125rem; max-width: var(--w-copy); }
.pourline { display: block; height: 2px; margin-top: 30px; width: min(420px, 60%); background: var(--molten); border: 0; transform-origin: left; }
.reveal-line .pourline { transform: scaleX(0); transition: transform 1100ms var(--ease-out); }
.reveal-line.is-in .pourline { transform: scaleX(1); }

/* ============================== buttons ================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem; letter-spacing: .005em;
  padding: 16px 26px; border-radius: 100px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out), background var(--t-micro), border-color var(--t-micro);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn-molten { background: var(--molten); color: #1a0d05; box-shadow: 0 14px 34px -14px rgba(224, 123, 40, .7); }
.btn-molten:hover { box-shadow: 0 18px 44px -12px rgba(224, 123, 40, .85); transform: translateY(-2px); }
.btn-wa { background: var(--whatsapp); color: #062b16; box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .6); }
.btn-wa:hover { background: #2fe372; transform: translateY(-2px); }
.btn-ghost { background: rgba(238, 241, 244, .04); border-color: rgba(238, 241, 244, .22); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(244, 176, 74, .07); }
.tlink { color: var(--gold); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.tlink:hover { border-color: var(--gold); }

/* ============================== loader ==================================
   The ring locks on, sparks fly, molten metal pours into the mark. */
#loader {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: radial-gradient(900px 520px at 50% 60%, #1a120a 0%, var(--ink-0) 70%);
  transition: opacity .8s var(--ease-out), visibility .8s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; width: min(420px, 80vw); }
.loader-emblem { position: relative; width: 150px; height: 150px; margin: 0 auto 30px; }
.loader-ring { position: absolute; inset: 0; overflow: visible; }
.loader-ring .arc { fill: none; stroke: url(#ringGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; animation: ringDraw 1.1s .15s var(--ease-out) forwards; }
.loader-ring .node { fill: var(--ink-0); stroke: var(--gold); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(0); animation: nodePop .45s var(--ease-out) forwards; }
.loader-ring .n1 { animation-delay: .9s; } .loader-ring .n2 { animation-delay: 1s; } .loader-ring .n3 { animation-delay: 1.1s; } .loader-ring .n4 { animation-delay: 1.2s; }
@keyframes ringDraw { to { stroke-dashoffset: 0; } }
@keyframes nodePop { 60% { transform: scale(1.35); } to { transform: scale(1); } }
.loader-mark {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(.9) rotate(-8deg); animation: markIn .8s 1.15s var(--ease-out) forwards;
  filter: drop-shadow(0 0 22px rgba(224, 123, 40, .45));
}
.loader-mark img { width: 100%; height: 100%; object-fit: contain; }
@keyframes markIn { to { opacity: 1; transform: none; } }
.loader-ring { animation: ringOut .5s 1.5s var(--ease-out) forwards; }
@keyframes ringOut { to { opacity: 0; transform: scale(1.08); } }
.loader-sparks { position: absolute; inset: -40px; overflow: visible; pointer-events: none; }
.loader-sparks i {
  position: absolute; left: 50%; top: 50%; width: 3px; height: 9px; border-radius: 2px;
  background: linear-gradient(#ffe2a1, #e07b28); opacity: 0;
  animation: spark 1s var(--ease-out) forwards;
}
@keyframes spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-30px) scaleY(.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-30px - var(--d))) scaleY(1); }
}
.loader-word {
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; letter-spacing: .18em; padding-left: .18em;
  background: linear-gradient(100deg, #8d939c 0%, #f4f6f8 40%, #ffffff 50%, #b9bec6 60%, #7d828b 100%);
  background-size: 250% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; animation: wordIn .6s 1.35s var(--ease-out) forwards, chromeSweep 1.6s 1.5s var(--ease-out) forwards;
}
@keyframes wordIn { to { opacity: 1; } }
@keyframes chromeSweep { to { background-position: 0 0; } }
.loader-sub { margin-top: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .34em; text-transform: uppercase; color: var(--faint); opacity: 0; animation: wordIn .6s 1.6s forwards; }
.loader-bar { margin-top: 26px; height: 2px; background: rgba(238, 241, 244, .1); border-radius: 2px; overflow: hidden; }
.loader-fill { height: 100%; width: 0; background: var(--molten); box-shadow: 0 0 12px rgba(244, 176, 74, .8); animation: pour 2.4s .3s var(--ease-out) forwards; }
@keyframes pour { to { width: 100%; } }

/* ============================== header ================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px var(--gutter);
  transition: background .4s var(--ease-out), border-color .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(10, 11, 13, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); padding-block: 12px; border-color: var(--line-n); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .3em; font-weight: 500; color: var(--faint); text-transform: uppercase; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--muted); transition: color var(--t-micro); }
.main-nav a:not(.btn):hover { color: var(--text); }
.main-nav .btn { padding: 11px 20px; font-size: .88rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .3s; }

/* ============================== hero ==================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) clamp(36px, 6vh, 64px); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--ink-0); }
/* the emblem sits at ~47-70% of the still; anchoring the image from a left
   offset pushes it past the headline. The gap it leaves is dark floor, so it
   melts into the graphite under the left-hand overlay. */
.hero-media img { position: absolute; top: 0; height: 100%; left: min(max(clamp(0px, 14vw, 360px), calc((100vw - var(--w-wide)) / 2 + 200px)), 23vw); width: max(100%, 177.8svh); max-width: none; object-fit: cover; object-position: 0% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
@media (max-width: 900px) {
  .hero-media img { left: 0; width: 100%; object-position: 58% 70%; -webkit-mask-image: none; mask-image: none; }
  .hero .hero-media::after { background: linear-gradient(180deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .82) 55%, rgba(10, 11, 13, .45) 78%, var(--ink-0) 100%); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .55) 46%, rgba(10, 11, 13, .15) 100%),
    linear-gradient(0deg, var(--ink-0) 0%, rgba(10, 11, 13, 0) 38%),
    linear-gradient(180deg, rgba(10, 11, 13, .7) 0%, rgba(10, 11, 13, 0) 22%);
}
.hero-content { width: 100%; max-width: var(--w-wide); margin-inline: auto; }
.hero h1 { font-size: var(--display-hero); letter-spacing: -0.035em; line-height: .94; margin: 22px 0 0; max-width: 11ch; }
.hero-sub { margin-top: 30px; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-foot { width: 100%; max-width: var(--w-wide); margin: clamp(40px, 7vh, 72px) auto 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-top: 22px; border-top: 1px solid var(--line-n); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.scroll-cue .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: cueDrift 2.2s ease-in-out infinite; }
@keyframes cueDrift { 0%, 100% { transform: translateY(-3px); opacity: .5; } 50% { transform: translateY(3px); opacity: 1; } }
.hero-stage { opacity: 0; transform: translateY(28px); }
body.ready .hero-stage { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
body.ready .hero-stage.s2 { transition-delay: .14s; }
body.ready .hero-stage.s3 { transition-delay: .28s; }
body.ready .hero-stage.s4 { transition-delay: .42s; }

/* ============================== marquee ================================= */
.marquee { border-block: 1px solid var(--line-n); background: var(--raised); overflow: hidden; padding-block: 20px; }
.marquee-track { display: flex; width: max-content; gap: 0; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.35rem); letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--molten); }
.marquee-track span b { color: var(--text); font-weight: 600; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================== intro =================================== */
.intro-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.intro-copy h2 { font-size: var(--display-xl); margin-top: 22px; max-width: 12ch; }
.intro-copy .lead { margin-top: 30px; font-size: 1.25rem; color: var(--text); max-width: var(--w-copy); }
.intro-copy p { color: var(--muted); max-width: var(--w-copy); }
.intro-stack { position: relative; padding-bottom: 22%; }
.intro-stack figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-n); background: var(--card); }
.intro-stack .ph-a { aspect-ratio: 4 / 5; }
.intro-stack .ph-a img { width: 100%; height: 100%; object-fit: cover; }
.intro-stack .ph-b { position: absolute; width: 62%; left: -14%; bottom: 0; aspect-ratio: 4 / 3; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.intro-stack .ph-b img { width: 100%; height: 100%; object-fit: cover; }
.figcap { position: absolute; right: 14px; top: 14px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text); background: rgba(10, 11, 13, .7); backdrop-filter: blur(6px); padding: 7px 11px; border-radius: 100px; border: 1px solid var(--line-n); }

/* ============================== journey (sticky swap) =================== */
.journey { background: linear-gradient(180deg, var(--bg), var(--raised) 30%, var(--raised) 70%, var(--bg)); }
.journey-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.journey-steps { list-style: none; margin: 0; padding: 0; }
.jstep { padding: clamp(40px, 9vh, 96px) 0; border-top: 1px solid var(--line-n); opacity: .38; transition: opacity .5s var(--ease-out); }
.jstep:last-child { border-bottom: 1px solid var(--line-n); }
.jstep.is-active { opacity: 1; }
.jstep .num { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .3em; color: var(--gold); }
.jstep h3 { font-size: var(--display-md); margin: 14px 0 14px; }
.jstep p { color: var(--muted); max-width: 44ch; }
.jstep .tag { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(47, 180, 172, .35); padding: 6px 11px; border-radius: 100px; }
.journey-media { position: sticky; top: 14vh; height: 72vh; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-n); background: var(--card); }
.journey-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out); }
.journey-media img.is-active { opacity: 1; transform: none; }
.journey-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 13, .55), transparent 40%); pointer-events: none; }
.journey-media .jm-label { position: absolute; left: 22px; bottom: 20px; z-index: 2; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text); }

/* ============================== weighbridge band ======================== */
.weigh { position: relative; overflow: hidden; background: #0d0f12; border-block: 1px solid var(--line); }
.weigh::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 85% 20%, rgba(224, 123, 40, .22), transparent 65%); pointer-events: none; }
.weigh-inner { position: relative; display: grid; grid-template-columns: 1.618fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.weigh h2 { font-size: var(--display-xl); }
.weigh p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin-top: 26px; }
.weigh-facts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.weigh-facts li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); }
.weigh-facts svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.seal { justify-self: center; width: min(340px, 80vw); aspect-ratio: 1; position: relative; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .rot { transform-origin: 50% 50%; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.seal-center b { display: block; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -.03em; line-height: 1; }
.seal-center span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }

/* ============================== materials index ========================= */
.mat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-n); }
.mat-row {
  display: grid; grid-template-columns: 88px 2.2fr 3fr auto; gap: clamp(16px, 3vw, 40px); align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line-n); transition: background var(--t-micro);
}
.mat-row:hover { background: linear-gradient(90deg, rgba(244, 176, 74, .05), transparent 70%); }
.mat-thumb { width: 88px; height: 66px; border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--line-n); }
.mat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mat-thumb.swatch { display: grid; place-items: center; }
.mat-thumb.swatch svg { width: 32px; height: 32px; color: var(--gold); }
.mat-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.new-tag { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: #1a0d05; background: var(--molten); padding: 5px 9px; border-radius: 100px; font-weight: 500; }
.mat-desc { color: var(--muted); font-size: .98rem; }
.mat-cta { font-family: var(--font-display); font-weight: 600; font-size: .88rem; text-decoration: none; color: var(--whatsapp); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1px solid rgba(37, 211, 102, .32); border-radius: 100px; white-space: nowrap; transition: background var(--t-micro), border-color var(--t-micro); }
.mat-cta:hover { background: rgba(37, 211, 102, .1); border-color: var(--whatsapp); }
.mat-cta svg { width: 16px; height: 16px; }
.mat-note { margin-top: 26px; color: var(--faint); font-size: .92rem; }

/* ============================== yard gallery (full-bleed) =============== */
.yard-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.car-btns { display: flex; gap: 10px; }
.car-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(238, 241, 244, .22); background: transparent; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color var(--t-micro), background var(--t-micro), transform var(--t-micro) var(--ease-out); }
.car-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(244, 176, 74, .08); }
.car-btn:active { transform: scale(.94); }
.car-btn:disabled { opacity: .3; cursor: default; }
.car-btn svg { width: 20px; height: 20px; }
.car-track {
  display: flex; gap: clamp(14px, 1.6vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 44px max(var(--gutter), calc((100vw - var(--w-wide)) / 2 + var(--gutter))) 8px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--w-wide)) / 2 + var(--gutter)));
}
.car-track::-webkit-scrollbar { display: none; }
.gi { flex: none; scroll-snap-align: start; margin: 0; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-n); background: var(--card); cursor: zoom-in; height: clamp(300px, 46vh, 520px); }
.gi.w { aspect-ratio: 16 / 10; }
.gi.t { aspect-ratio: 3 / 4; }
.gi img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gi:hover img { transform: scale(1.04); }
.gi figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }

.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(6, 7, 9, .95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1500px); max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(238, 241, 244, .25); background: rgba(10, 11, 13, .6); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .24em; color: var(--muted); }

/* ============================== WhatsApp order builder ================== */
.order-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.order-form { background: linear-gradient(180deg, var(--card), var(--raised)); border: 1px solid var(--line); border-radius: 24px; padding: clamp(26px, 3.4vw, 46px); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 100px; background: var(--ink-0); border: 1px solid var(--line-n); margin-bottom: 30px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 13px 10px; border-radius: 100px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--muted); transition: background var(--t-micro), color var(--t-micro); }
.seg input:checked + label { background: var(--molten); color: #1a0d05; }
.seg input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
legend, .f-label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { display: inline-block; padding: 9px 15px; border-radius: 100px; border: 1px solid rgba(238, 241, 244, .18); font-size: .9rem; cursor: pointer; color: var(--muted); user-select: none; transition: border-color var(--t-micro), background var(--t-micro), color var(--t-micro); }
.chip label:hover { border-color: var(--line-2); color: var(--text); }
.chip input:checked + label { border-color: var(--gold); background: rgba(244, 176, 74, .12); color: var(--text); }
.chip input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.f-row { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; margin-bottom: 18px; }
.f-row.even { grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 18px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink-0); border: 1px solid rgba(238, 241, 244, .14); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: inherit; font-size: 1rem; transition: border-color var(--t-micro), box-shadow var(--t-micro);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(238, 241, 244, .38); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 176, 74, .15); }
.field textarea { min-height: 104px; resize: vertical; }
.order-form .btn { width: 100%; margin-top: 8px; font-size: 1rem; padding-block: 18px; }
.form-hint { margin-top: 14px; font-size: .86rem; color: var(--faint); text-align: center; }
.form-privacy { margin-top: 6px; font-size: .78rem; color: var(--faint); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-aside h2 { font-size: var(--display-lg); margin-top: 20px; }
.order-aside > p { color: var(--muted); margin-top: 22px; }
.how { list-style: none; counter-reset: how; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; color: var(--muted); }
.how li::before { content: counter(how, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; color: var(--gold); border: 1px solid var(--line-2); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; }
.how b { color: var(--text); display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 2px; }
.wa-card { margin-top: 34px; padding: 24px; border-radius: 18px; border: 1px solid rgba(37, 211, 102, .25); background: rgba(37, 211, 102, .05); }
.wa-card .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.wa-card .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wa-card .btn { padding: 12px 18px; font-size: .88rem; }

/* ============================== broadcast opt-in ======================== */
.broadcast { display: grid; grid-template-columns: 1fr 1.618fr; gap: clamp(32px, 5vw, 90px); align-items: center; padding: clamp(36px, 5vw, 72px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(700px 320px at 100% 0%, rgba(37, 211, 102, .12), transparent 60%), linear-gradient(140deg, #13161b, #0c0e11); }
.phone { justify-self: center; width: min(270px, 70vw); aspect-ratio: 9 / 18; border-radius: 38px; border: 1px solid rgba(238, 241, 244, .18); background: #0b141a; padding: 16px 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), inset 0 0 0 6px #111; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.phone .ph-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.phone .ph-top img { width: 30px; height: 30px; object-fit: contain; }
.phone .ph-top b { font-size: .8rem; font-family: var(--font-body); }
.phone .ph-top small { display: block; font-size: .62rem; color: rgba(255, 255, 255, .5); font-weight: 400; }
.bubble { align-self: flex-start; max-width: 88%; background: #1f2c34; color: #e9edef; border-radius: 4px 12px 12px 12px; padding: 9px 11px; font-size: .74rem; line-height: 1.45; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.bubble b { color: var(--gold); }
.bubble time { display: block; text-align: right; font-size: .58rem; color: rgba(255, 255, 255, .45); margin-top: 4px; }
.bubble.me { align-self: flex-end; background: #005c4b; border-radius: 12px 4px 12px 12px; }
.reveal.is-in .bubble { opacity: 1; transform: none; }
.reveal.is-in .bubble:nth-child(3) { transition-delay: .5s; }
.reveal.is-in .bubble:nth-child(4) { transition-delay: 1.1s; }
.broadcast h2 { font-size: var(--display-lg); margin-top: 20px; }
.broadcast p { color: var(--muted); margin-top: 20px; max-width: 54ch; }
.broadcast .steps { margin: 26px 0 30px; padding: 0; list-style: none; display: grid; gap: 10px; }
.broadcast .steps li { display: block; padding-left: 34px; position: relative; color: var(--text); }
.broadcast .steps li span { position: absolute; left: 0; top: .2em; font-family: var(--font-mono); font-size: .72rem; color: var(--whatsapp); }
.broadcast .row { display: flex; flex-wrap: wrap; gap: 12px; }
.consent { margin-top: 18px; font-size: .82rem; color: var(--faint); max-width: 60ch; }

/* ============================== about quote band ======================== */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 110px); align-items: center; }
.about-grid blockquote { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3.6rem); letter-spacing: -.03em; line-height: 1.08; }
.about-grid blockquote em { font-style: normal; }
.about-side p { color: var(--muted); }
.pillars { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-n); }
.pillars li { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line-n); font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.pillars li small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .86rem; color: var(--faint); margin-top: 2px; }

/* ============================== FAQ ===================================== */
.faq-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 90px); }
.faq details { border-bottom: 1px solid var(--line-n); }
.faq details:first-child { border-top: 1px solid var(--line-n); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.6vw, 1.25rem); letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--gold), var(--gold)) center / 14px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 2px 14px no-repeat; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: var(--w-copy); }

/* ============================== contact + map =========================== */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(30px, 4vw, 60px); align-items: stretch; }
.map-wrap { border-radius: 24px; overflow: hidden; border: 1px solid var(--line-n); background: var(--card); min-height: 460px; }
.map-wrap iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; filter: grayscale(.25) contrast(1.05); }
.contact-cards { display: grid; gap: 12px; align-content: start; }
.ci { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-n); background: var(--card); text-decoration: none; transition: border-color var(--t-micro); }
a.ci:hover { border-color: var(--line-2); }
.ci .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 176, 74, .1); color: var(--gold); }
.ci .ic.wa { background: rgba(37, 211, 102, .12); color: var(--whatsapp); }
.ci .ic svg { width: 20px; height: 20px; }
.ci .l { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.ci .v { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-top: 3px; line-height: 1.35; }

/* ============================== footer ================================== */
.site-footer { border-top: 1px solid var(--line-n); background: var(--raised); padding: clamp(64px, 10vh, 110px) 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line-n); }
.foot-brand img { width: 120px; height: auto; margin-bottom: 18px; }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 36ch; }
.foot-col h3 { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 18px; }
.foot-col a, .foot-col span { display: block; color: var(--muted); text-decoration: none; font-size: .95rem; margin-bottom: 10px; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 84px 0 0; font-size: .84rem; color: var(--faint); }
.foot-bottom a { color: var(--muted); }

/* ============================== WhatsApp FAB + mobile bar =============== */
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%; background: var(--whatsapp); color: #062b16; display: grid; place-items: center; box-shadow: 0 16px 40px -10px rgba(37, 211, 102, .65); transition: transform var(--t-micro) var(--ease-out); }
.wa-fab:hover { transform: scale(1.06); }
.wa-fab:active { transform: scale(.95); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--whatsapp); animation: fabPulse 2.6s var(--ease-out) infinite; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.m-bar { display: none; }

/* ============================== reveals ================================= */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out); }
.reveal.d1.is-in { transition-delay: 90ms; }
.reveal.d2.is-in { transition-delay: 180ms; }
.reveal.d3.is-in { transition-delay: 270ms; }

/* ============================== responsive ============================== */
@media (max-width: 1080px) {
  .main-nav { position: fixed; inset: 0; background: rgba(10, 11, 13, .98); flex-direction: column; justify-content: center; gap: 26px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease-out), visibility .35s; }
  .main-nav.open { opacity: 1; visibility: visible; }
  .main-nav a:not(.btn) { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--text); }
  .nav-toggle { display: flex; position: relative; z-index: 101; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .intro-grid, .journey-grid, .weigh-inner, .order-grid, .broadcast, .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .intro-stack { padding-bottom: 18%; max-width: 560px; margin-left: 12%; }
  .journey-media { position: relative; top: 0; height: 56vh; order: -1; }
  .journey-grid { gap: 0; }
  .journey-media { position: sticky; top: 64px; z-index: 2; height: 38vh; margin-bottom: 10px; }
  .jstep { padding: 42px 0; }
  .mat-row { grid-template-columns: 72px 1fr; grid-template-areas: "t n" "t d" "c c"; row-gap: 6px; }
  .mat-thumb { grid-area: t; width: 72px; height: 72px; align-self: start; }
  .mat-name { grid-area: n; } .mat-desc { grid-area: d; } .mat-cta { grid-area: c; justify-self: start; margin-top: 8px; }
  .seal { width: min(260px, 70vw); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding-top: 120px; }
  .hero h1 { max-width: 9ch; }
  .brand-name small { display: none; }
  .hero .eyebrow { letter-spacing: .22em; }
  .hero-ctas .btn { width: 100%; }
  .hero-foot .coords { display: none; }
  .f-row, .f-row.even { grid-template-columns: 1fr; gap: 0; }
  .pillars { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-fab { display: none; }
  .m-bar { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 95; padding: 8px; border-radius: 100px; background: rgba(16, 18, 22, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-n); }
  .m-bar .btn { padding: 13px 10px; font-size: .9rem; }
  .site-footer { padding-bottom: 100px; }
  .gi { height: 52vh; }
  .gi.w { aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero-stage { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-line .pourline { transform: none; transition: none; }
  .journey-media img { transition: opacity .2s; transform: none; }
  .marquee-track { animation: none; }
  .bubble { opacity: 1; transform: none; }
}
