/* =========================================================
   Uday Ganguli — portfolio
   Palette sampled from his photos: off-black shadow, dirt browns,
   dust beige, sun-bleached sand, and the red/orange of his riding gear.
   Plain CSS, mobile-first.
   ========================================================= */

:root {
  --ink: #12100c;        /* off-black — shadow in the dirt */
  --ink-2: #1a1611;
  --ink-3: #231e17;
  --dirt: #433628;       /* dirt brown */
  --dirt-2: #5c4a37;
  --clay: #705c4e;
  --dust: #ae9f7f;       /* dust beige */
  --sand: #d4cbb5;       /* sun-bleached sand */
  --bone: #efe8da;       /* bleached sky / primary text */
  --muted: #918471;

  --red: #c62d12;        /* riding gear red (large graphics) */
  --orange: #ec5426;     /* riding gear orange (interactive) */
  --orange-hi: #ff6a3a;
  --on-orange: #160b05;

  --gold: #d6a93c;
  --silver: #c3c6c1;
  --bronze: #b9743f;

  --line: rgba(212, 203, 181, 0.14);
  --line-2: rgba(212, 203, 181, 0.28);

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1320px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul, table { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--on-orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--f-mono); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  padding: 10px 16px; background: var(--orange); color: var(--on-orange);
  font-family: var(--f-mono); font-weight: 600; font-size: .8rem; text-transform: uppercase;
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.ico { width: 1.1em; height: 1.1em; flex: none; }

/* placeholder text — easy to spot, easy to find (search for "[ADD") */
.ph {
  display: inline;
  padding: 0.08em 0.4em;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.9em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange-hi);
  background: rgba(236, 84, 38, 0.1);
  border: 1px dashed rgba(236, 84, 38, 0.65);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Type ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 8.6vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0.002em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.9;
}
.accent { color: var(--orange); }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); line-height: 1.55; color: var(--sand); max-width: 36em; }
p + p { margin-top: 1em; }

.text-link { color: var(--bone); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; transition: color .2s; }
.text-link:hover { color: var(--orange-hi); }

/* Stage label: "SS 01 — The rider" (SS = special stage) */
.stage {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.74rem; color: var(--dust);
}
.stage-no { padding: 4px 9px 3px; background: var(--red); color: var(--bone); letter-spacing: 0.08em; }
.stage-name::before { content: ""; display: inline-block; width: 32px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--line-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  font-family: var(--f-mono); font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.08em; line-height: 1;
  border: 1.5px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .3s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-primary { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.btn-primary:hover { background: var(--bone); border-color: var(--bone); }
.btn-line { color: var(--bone); border-color: var(--line-2); }
.btn-line:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.is-solid { background: var(--ink); border-bottom-color: var(--line); }
.nav-inner {
  height: 100%;
  max-width: calc(1480px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 34px;
  background: var(--red); color: var(--bone);
  font-family: var(--f-stencil); font-weight: 900; font-size: 1.3rem; letter-spacing: 0.02em; line-height: 1;
}
.brand-name { font-family: var(--f-display); font-weight: 900; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }

.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: 6px;
  padding: 10px 11px;
  font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--sand);
  transition: color .2s;
}
.site-nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1.5px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.site-nav a:hover, .site-nav a.is-current { color: var(--bone); }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }
.nav-no { color: var(--orange); font-size: 0.9em; }
.nav-contact a { margin-left: 10px; padding: 10px 16px; background: var(--orange); color: var(--on-orange); }
.nav-contact a .nav-no { color: var(--on-orange); opacity: .7; }
.nav-contact a:hover, .nav-contact a.is-current { background: var(--bone); color: var(--ink); }
.nav-contact a::after { display: none; }

.menu-toggle { display: none; position: relative; z-index: 2; align-items: center; gap: 12px; height: 44px; padding: 0 2px 0 12px; font-family: var(--f-mono); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; }
.menu-toggle-bars { position: relative; width: 26px; height: 14px; }
.menu-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease); }
.menu-toggle-bars span:first-child { top: 2px; }
.menu-toggle-bars span:last-child { top: 10px; width: 65%; left: auto; }
.menu-open .menu-toggle-bars span:first-child { top: 6px; transform: rotate(45deg); }
.menu-open .menu-toggle-bars span:last-child { top: 6px; width: 100%; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; align-items: flex-end;
    padding: calc(var(--nav-h) + 24px) var(--gutter) max(36px, env(safe-area-inset-bottom));
    background: var(--ink);
    visibility: hidden; opacity: 0;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .site-nav li { border-top: 1px solid var(--line); overflow: hidden; }
  .site-nav li:last-child { border-bottom: 1px solid var(--line); }
  .site-nav a {
    display: flex; align-items: baseline; gap: 18px; padding: 14px 0;
    font-family: var(--f-display); font-weight: 900; font-size: clamp(2.1rem, 10vw, 3.6rem); letter-spacing: 0.01em; line-height: 1;
    color: var(--bone);
    transform: translateY(105%); transition: transform .5s var(--ease), color .2s;
  }
  .menu-open .site-nav a { transform: none; }
  .menu-open .site-nav li:nth-child(2) a { transition-delay: .04s; }
  .menu-open .site-nav li:nth-child(3) a { transition-delay: .08s; }
  .menu-open .site-nav li:nth-child(4) a { transition-delay: .12s; }
  .menu-open .site-nav li:nth-child(5) a { transition-delay: .16s; }
  .menu-open .site-nav li:nth-child(6) a { transition-delay: .2s; }
  .site-nav a::after { display: none; }
  .site-nav a.is-current { color: var(--orange); }
  .nav-no { font-family: var(--f-mono); font-size: 0.8rem; font-weight: 500; }
  .nav-contact a { margin: 0; padding: 14px 0; background: none; color: var(--orange); }
  .nav-contact a .nav-no { color: var(--orange); opacity: 1; }
  .nav-contact a:hover, .nav-contact a.is-current { background: none; color: var(--orange-hi); }
  .menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; border-bottom-color: transparent; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 74%; height: 74svh; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: saturate(.92) contrast(1.04); }
.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,16,12,.6) 0%, rgba(18,16,12,0) 15%, rgba(18,16,12,0) 38%, rgba(18,16,12,.82) 58%, var(--ink) 74%);
}
.fx-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.fx-ready .fx-layer { opacity: 1; }
.fx-layer canvas { display: block; width: 100%; height: 100%; }

.hero-copy { position: relative; z-index: 3; align-self: end; padding-top: 42svh; padding-bottom: 26px; }
.hero-loc {
  display: inline-flex; align-items: center; gap: 9px;
  margin-bottom: 10px;
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--bone);
  animation: rise .9s .2s var(--ease) both;
}
.loc-mark { display: inline-block; width: 7px; height: 7px; background: var(--red); transform: rotate(45deg); flex: none; }
.hero-ig {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 18px;
  font-size: .74rem; letter-spacing: .04em; color: var(--sand);
  animation: rise .9s 1.05s var(--ease) both;
  transition: color .2s;
}
.hero-ig .ico { color: var(--orange); }
.hero-ig:hover { color: var(--orange-hi); }
.hero-kicker {
  margin-bottom: 14px;
  font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--sand);
  animation: rise .9s .3s var(--ease) both;
}
.hero-kicker i, .hero-roles i { font-style: normal; color: var(--orange); margin: 0 .35em; }
.hero-title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  font-size: min(24vw, 11.5svh);
  line-height: 0.8; letter-spacing: 0.004em;
  margin-left: -0.04em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.03em; }
.hero-title .line > span { display: block; animation: line-up 1.1s var(--ease) both; }
.hero-title .line:nth-child(1) > span { animation-delay: .35s; }
.hero-title .line:nth-child(2) > span { animation-delay: .47s; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-owner {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 16px;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.15rem, 4.4vw, 1.5rem); line-height: 1;
  animation: rise .9s .65s var(--ease) both;
  transition: color .2s;
}
.hero-owner span { padding: 5px 8px 4px; background: var(--red); color: var(--bone); font-size: .66rem; font-weight: 500; letter-spacing: .1em; line-height: 1; }
.hero-owner:hover { color: var(--orange-hi); }
.hero-tagline {
  margin-top: 12px;
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.2rem, 5.4vw, 2.6rem); line-height: 1; letter-spacing: .02em; color: var(--sand);
  animation: rise .9s .75s var(--ease) both;
}
.hero-tagline span { color: var(--orange); }
.hero-roles { display: none; margin-top: 16px; max-width: 46em; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); animation: rise .9s .85s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; animation: rise .9s .95s var(--ease) both; }
.hero-actions .btn { flex: 1 1 auto; padding-inline: 14px; }

.hero-strip { position: relative; z-index: 3; display: none; border-top: 1px solid var(--line); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; animation: rise .9s 1.1s var(--ease) both; }
.hero-strip > div { display: flex; align-items: baseline; gap: 14px; padding: 16px var(--gutter); border-right: 1px solid var(--line); min-width: 0; }
.hero-strip > div:last-child { border-right: 0; }
.hero-strip dt { color: var(--muted); }
.hero-strip dd { color: var(--bone); }
.hero-strip small { margin-left: 6px; font-size: 1em; color: var(--dust); }
.pos-txt { font-family: var(--f-stencil); font-size: 1.5rem; font-weight: 900; margin-right: 6px; letter-spacing: .02em; }
.pos-txt.gold { color: var(--gold); }
.pos-txt.bronze { color: var(--bronze); }
.hero-strip-scroll a { display: inline-flex; align-items: center; gap: 8px; color: var(--sand); }
.hero-strip-scroll a:hover { color: var(--orange); }
.hero-strip-scroll .ico { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

@media (min-width: 600px) {
  .hero-actions .btn { flex: 0 0 auto; padding-inline: 24px; }
  .hero-roles { display: block; }
  .hero-strip { display: grid; grid-template-columns: 1fr auto; }
  .hero-strip > div:nth-child(2) { display: none; }
}
@media (min-width: 900px) {
  .hero-photo { left: auto; height: auto; bottom: 0; width: 46%; }
  .hero-photo img { object-position: 42% 40%; }
  .hero-shade {
    background:
      linear-gradient(90deg, var(--ink) 0%, var(--ink) 54%, rgba(18,16,12,.45) 60%, rgba(18,16,12,0) 72%),
      linear-gradient(0deg, var(--ink) 0%, rgba(18,16,12,.6) 12%, rgba(18,16,12,0) 30%),
      linear-gradient(180deg, rgba(18,16,12,.55) 0%, rgba(18,16,12,0) 16%);
  }
  .hero-copy { align-self: center; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
  .hero-kicker { font-size: .78rem; }
  .hero-title { font-size: clamp(5.5rem, min(15vw, 20svh), 15.5rem); }
  .hero-strip { grid-template-columns: 1fr 1.3fr auto; }
  .hero-strip > div:nth-child(2) { display: flex; }
}

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 3; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 13px 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }
.ticker-track span::after { content: "/"; margin: 0 26px; color: var(--red); }
.ticker-track b { font-family: var(--f-stencil); font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(76px, 9vw, 136px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; gap: 56px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; gap: 44px; }
.about-media { position: relative; max-width: 520px; }
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.about-media figcaption {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--bone);
}
.about-media figcaption span { color: var(--muted); }
.about-copy .h2 { margin-bottom: 28px; }
.about-copy .lead { margin-bottom: 32px; }
.about-cols p { color: var(--sand); max-width: 36em; }

.pull { margin: 0 0 32px; padding: 4px 0 4px 22px; border-left: 3px solid var(--red); }
.pull p { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.04; letter-spacing: .01em; color: var(--bone); max-width: 22em; }
.pull cite, .band-quote cite { display: block; margin-top: 12px; font-style: normal; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dust); }
.pull cite::before, .band-quote cite::before { content: "— "; }

.spec { display: grid; margin-top: 40px; border-top: 1px solid var(--line-2); font-size: .8rem; }
.spec > div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec dt { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.spec dd { color: var(--bone); }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: start; }
  .about-media { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 28px); max-width: none; }
  .about-media img { aspect-ratio: 3 / 4; }
  .about-copy { grid-column: 7 / -1; padding-top: 8vh; }
  .spec { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
@media (min-width: 1100px) {
  .about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .about-cols p + p { margin-top: 0; }
}

/* ---------- Results: rally timing board ---------- */
.board { position: relative; background: var(--ink-2); border: 1px solid var(--line-2); }
.board-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px;
  padding: 11px 16px; background: #0d0b08; border-bottom: 1px solid var(--line-2);
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--bone);
}
.board-bar p + p { margin-top: 0; }
.board-bar span { margin-left: 8px; color: var(--muted); }
.board-showing { color: var(--dust); }
.board-showing::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--orange); vertical-align: 1px; }

.board-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-2); }
.b-stat { display: flex; flex-direction: column; padding: 14px 14px 16px; border-right: 1px solid var(--line); min-width: 0; }
.b-stat:last-child { border-right: 0; }
.b-stat-label { min-height: 2.9em; font-size: .66rem; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; color: var(--dust); }
.b-stat-label small { display: block; font-size: 1em; color: var(--muted); }
.b-stat-num { margin-top: 4px; font-family: var(--f-stencil); font-weight: 900; line-height: .82; font-size: clamp(3.2rem, 15vw, 7.5rem); font-variant-numeric: tabular-nums; color: var(--bone); }
.b-stat-num.gold { color: var(--gold); }

.board-filters {
  display: flex; gap: 6px; padding: 12px 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.board-filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 14px; white-space: nowrap;
  font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
  color: var(--sand); border: 1px solid var(--line-2);
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip span { color: var(--muted); }
.chip:hover { color: var(--bone); border-color: var(--sand); }
.chip.is-active { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.chip.is-active span { color: var(--on-orange); }

.board-head { display: none; }
.board-list { position: relative; padding: 4px 10px 10px; }

/* rows: compact cards on phones */
.b-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "year plate" "rally plate" "class plate";
  column-gap: 14px; align-items: center;
  margin-top: 6px; padding: 12px 12px 12px 14px;
  background: var(--ink-3); border: 1px solid var(--line);
  transition: background-color .25s;
}
.b-row[hidden] { display: none; }
.b-year { grid-area: year; font-size: .7rem; letter-spacing: .06em; color: var(--dust); }
.b-rally { grid-area: rally; margin-top: 3px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.32rem; line-height: 1; letter-spacing: .015em; }
.b-class { grid-area: class; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--sand); }
.b-class.is-empty { display: none; }
.b-tag { font-style: normal; padding: 3px 6px 2px; background: var(--gold); color: #17120b; font-size: .6rem; font-weight: 600; letter-spacing: .08em; line-height: 1.2; }
.b-row[data-pos="3"] .b-tag { background: var(--bronze); }
.b-tag--note { background: transparent !important; color: var(--dust); border: 1px solid var(--line-2); }
.b-time { color: var(--bone); letter-spacing: .02em; text-transform: none; }
.b-note { color: var(--dust); }
.b-time::before, .b-note::before { content: "·"; margin-right: 6px; color: var(--muted); }
.ext-link { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 1px; border-bottom: 1px solid currentColor; transition: color .2s; }
.ext-link .ico { width: .95em; height: .95em; transform: rotate(-45deg); }
.ext-link:hover { color: var(--orange-hi); }

.b-row.is-headline { background: linear-gradient(90deg, rgba(214, 169, 60, .14), rgba(214, 169, 60, .02) 70%), var(--ink-3); box-shadow: inset 3px 0 0 var(--gold); }
.b-row.is-headline[data-pos="3"] { background: linear-gradient(90deg, rgba(185, 116, 63, .16), rgba(185, 116, 63, .02) 70%), var(--ink-3); box-shadow: inset 3px 0 0 var(--bronze); }
.b-row.is-headline .b-rally { font-size: 1.55rem; }

/* race-plate position badges */
.plate {
  grid-area: plate; position: relative;
  display: inline-flex; align-items: baseline; justify-content: center; gap: 1px;
  width: 58px; height: 42px; padding-top: 8px;
  border-radius: 5px;
  font-family: var(--f-stencil); color: #17120b;
  box-shadow: inset 0 0 0 2px rgba(23, 18, 11, .28), 0 2px 0 rgba(0, 0, 0, .4);
}
.plate::before, .plate::after { content: ""; position: absolute; top: 5px; width: 4px; height: 4px; border-radius: 50%; background: rgba(23, 18, 11, .4); }
.plate::before { left: 6px; }
.plate::after { right: 6px; }
.plate b { font-size: 1.7rem; font-weight: 900; line-height: .9; }
.plate small { font-family: var(--f-mono); font-size: .58rem; font-weight: 600; text-transform: uppercase; }
.plate--gold { background: var(--gold); }
.plate--silver { background: var(--silver); }
.plate--bronze { background: var(--bronze); }
.plate--plain { color: var(--sand); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); align-items: center; padding-top: 0; }
.plate--plain::before, .plate--plain::after { background: var(--line-2); }
.plate b.plate-fin { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.board-foot { padding: 12px 16px 14px; border-top: 1px solid var(--line-2); }
.board-key { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.board-key li { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 11px; height: 11px; border-radius: 2px; }
.key.gold { background: var(--gold); }
.key.silver { background: var(--silver); }
.key.bronze { background: var(--bronze); }
.key.plain { border: 1.5px solid var(--muted); }

/* optional photo on hover (mouse) or tap (touch) — only for rows that have data-photo */
.b-row.has-photo { cursor: zoom-in; }
.b-photo { grid-column: 1 / -1; display: none; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: 12px; }
.b-row.is-open .b-photo { display: block; }
.board-peek { position: fixed; left: 0; top: 0; z-index: 60; width: 280px; margin: 0; pointer-events: none; opacity: 0; transform: translate3d(var(--px, 0), var(--py, 0), 0) scale(.96); transition: opacity .2s; border: 1px solid var(--line-2); background: var(--ink); }
.board-peek.is-on { opacity: 1; }
.board-peek img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 760px) {
  .board-bar { padding: 12px 22px; }
  .b-stat { padding: 18px 22px 20px; }
  .b-stat-num { font-size: clamp(4rem, 8vw, 7.5rem); }
  .board-filters { flex-wrap: wrap; overflow: visible; padding: 14px 22px; -webkit-mask-image: none; mask-image: none; }
  .board-head, .b-row { grid-template-columns: 96px minmax(0, 1.25fr) minmax(0, 1.15fr) 72px; column-gap: 20px; }
  .board-head { display: grid; padding: 10px 22px; border-bottom: 1px solid var(--line-2); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .board-head span:last-child { text-align: center; }
  .board-list { padding: 0; }
  .b-row { grid-template-areas: "year rally class plate"; margin: 0; padding: 13px 22px; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
  .b-row:last-child { border-bottom: 0; }
  .b-row:hover { background: var(--ink-3); }
  .b-year { font-size: .82rem; }
  .b-rally { margin-top: 0; font-size: 1.6rem; }
  .b-class { margin-top: 0; font-size: .7rem; }
  .b-class.is-empty { display: flex; }
  .b-class.is-empty::before { content: "—"; color: var(--muted); }
  .b-row.is-headline { padding-top: 18px; padding-bottom: 18px; }
  .b-row.is-headline .b-rally { font-size: 2.1rem; }
  .plate { justify-self: center; }
  .board-foot { padding: 14px 22px 16px; }
}

/* timing-screen reveal: rows tick in one after another (no scroll-jacking) */
@media (prefers-reduced-motion: no-preference) {
  .js .board-list:not(.is-live):not(.is-done) .b-row { opacity: 0; }
  .board-list.is-live .b-row { animation: row-in .42s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
  .board-list.is-live .b-row::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: rgba(236, 84, 38, .16);
    animation: row-flash .75s ease-out both; animation-delay: calc(var(--i) * 30ms + 80ms);
  }
}
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes row-flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Quote band ---------- */
.band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(420px, 78vh, 760px); padding: 80px 0 clamp(48px, 7vw, 88px); }
.band-img { position: absolute; left: 0; top: -10%; z-index: -2; width: 100%; height: 120%; object-fit: cover; object-position: 50% 50%; will-change: transform; filter: saturate(.85); }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(18,16,12,.25) 24%, rgba(18,16,12,.35) 60%, var(--ink) 100%); }
.band-quote p { max-width: 12em; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 9vw, 7.4rem); line-height: .86; letter-spacing: .004em; text-wrap: balance; }
.band-quote p span { color: var(--orange); }

/* ---------- Two Two Motorsports ---------- */
.twotwo { overflow: hidden; }
.twotwo-grid { position: relative; display: grid; gap: 48px; }
.twotwo-mark {
  position: absolute; right: -0.06em; top: -0.32em; z-index: 0;
  font-family: var(--f-stencil); font-weight: 900; line-height: .8; font-size: clamp(14rem, 62vw, 40rem);
  color: transparent; -webkit-text-stroke: 1.5px rgba(198, 45, 18, .38);
  pointer-events: none; user-select: none;
}
.twotwo-copy { position: relative; z-index: 1; }
.twotwo-copy .h2 { margin-bottom: 18px; }
.twotwo-copy .lead { margin-bottom: 8px; }
.biz { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; margin: 28px 0 32px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: .82rem; }
.biz dt { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; font-size: .72rem; }
.biz dd { color: var(--bone); }
.ig-link { display: inline-flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.twotwo-media { position: relative; z-index: 1; max-width: 460px; }
.twotwo-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.twotwo-media figcaption { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dust); }
@media (min-width: 900px) {
  .twotwo-grid { grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; }
  .twotwo-copy { grid-column: 1 / span 7; }
  .twotwo-media { grid-column: 9 / -1; max-width: none; margin-top: 18vw; }
  .twotwo-media img { aspect-ratio: 2 / 3; }
  .twotwo-mark { top: -0.18em; font-size: clamp(20rem, 40vw, 40rem); }
}

/* ---------- Instructor & test rider ---------- */
.coach { padding-bottom: 0; }
.coach-quote { padding-left: 20px; border-left: 3px solid var(--red); }
.coach-quote p { font-size: clamp(1.05rem, 1.9vw, 1.2rem); line-height: 1.55; color: var(--sand); max-width: 34em; }

.steps { display: grid; margin-bottom: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line-2); }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step-no { grid-row: span 2; font-family: var(--f-stencil); font-weight: 900; font-size: 3.2rem; line-height: .8; color: var(--red); }
.step h3 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.step p { color: var(--sand); margin-top: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .step { display: block; padding: 26px 32px 28px 0; border-bottom: 0; border-top: 1px solid var(--line-2); }
  .step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
  .step-no { display: block; font-size: 5rem; margin-bottom: 18px; }
  .step h3 { font-size: 2.4rem; }
}

.ev { position: relative; display: grid; background: var(--ink-2); overflow: hidden; margin-bottom: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.ev-copy { position: relative; padding: 36px var(--gutter) 44px; }
.ev-big {
  position: absolute; right: -0.05em; bottom: -0.2em;
  font-family: var(--f-stencil); font-weight: 900; font-size: clamp(10rem, 40vw, 24rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(236, 84, 38, .3);
  pointer-events: none;
}
.ev-org { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--orange); margin-bottom: 12px; }
.ev-copy .h3 { margin-bottom: 18px; }
.ev-copy > p:not(.ev-org) { position: relative; color: var(--sand); max-width: 28em; font-size: 1.1rem; }
.tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.tags li { padding: 6px 10px; border: 1px solid var(--line-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); }
@media (min-width: 900px) {
  .ev { grid-template-columns: 45% 1fr; min-height: 560px; }
  .ev-media img { height: 100%; aspect-ratio: auto; }
  .ev-copy { display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(40px, 6vw, 96px); }
}

.roles-title { margin-bottom: 18px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--dust); }
.roles { border-top: 1px solid var(--line-2); margin-bottom: clamp(64px, 9vw, 112px); }
.role { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.role-no { grid-row: span 3; font-size: .78rem; color: var(--orange); padding-top: .5em; }
.role-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.role-org { margin-top: 6px; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--dust); }
.role-desc { margin-top: 8px; color: var(--sand); }
.role:hover { background: var(--ink-2); }
@media (min-width: 900px) {
  .role { grid-template-columns: 60px 1.15fr 0.9fr 1.4fr; column-gap: 24px; align-items: baseline; padding: 26px 0; }
  .role-no { grid-row: auto; padding-top: 0; }
  .role-org, .role-desc { margin-top: 0; }
  .role-title { font-size: 2.2rem; }
}

.train-cta { position: relative; overflow: hidden; isolation: isolate; min-height: 72vh; display: flex; align-items: flex-end; }
.train-cta img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.train-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--ink) 0%, rgba(18,16,12,.55) 38%, rgba(18,16,12,.05) 75%); }
.train-cta-copy { padding-bottom: clamp(40px, 7vw, 80px); }
.train-cta h3 { max-width: 11em; margin-bottom: 24px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: .88; }

/* ---------- Gallery (editorial grid) ---------- */
.gallery-wrap { max-width: calc(1480px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; grid-auto-flow: dense; }
.g-item { position: relative; display: block; overflow: hidden; background: var(--ink-3); cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.g-L, .g-M, .g-F { grid-column: span 2; aspect-ratio: 3 / 2; }
.g-P, .g-S { aspect-ratio: 4 / 5; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g-num {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 6px 10px; background: var(--ink);
  font-family: var(--f-mono); font-size: .68rem; color: var(--sand);
  opacity: 0; transform: translateY(100%); transition: opacity .3s, transform .4s var(--ease);
}
@media (hover: hover) {
  .g-item:hover img { transform: scale(1.04); }
  .g-item:hover .g-num, .g-item:focus-visible .g-num { opacity: 1; transform: none; }
}
@media (min-width: 900px) {
  .g-grid { grid-template-columns: repeat(12, 1fr); gap: 12px; grid-auto-rows: clamp(30px, 4.1vw, 62px); grid-auto-flow: row; }
  .g-item { aspect-ratio: auto; }
  .g-L { grid-column: span 8; grid-row: span 9; }
  .g-P { grid-column: span 4; grid-row: span 9; }
  .g-M { grid-column: span 6; grid-row: span 7; }
  .g-S { grid-column: span 4; grid-row: span 6; }
  .g-F { grid-column: span 12; grid-row: span 11; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; grid-template-rows: auto 1fr auto;
  background: var(--ink);
  opacity: 0; transition: opacity .3s;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; }
.lb-count { font-size: .8rem; letter-spacing: .06em; color: var(--sand); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; transition: opacity .25s; user-select: none; -webkit-user-drag: none; }
.lb-stage.is-loading img { opacity: .55; }
.lb-spinner { position: absolute; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--orange); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; }
.lb-stage.is-loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-btn { display: grid; place-items: center; width: 50px; height: 50px; color: var(--bone); border: 1px solid var(--line-2); background: var(--ink); transition: background-color .2s, color .2s, border-color .2s; }
.lb-btn:hover { background: var(--orange); color: var(--on-orange); border-color: var(--orange); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: max(8px, env(safe-area-inset-left)); }
.lb-next { right: max(8px, env(safe-area-inset-right)); }
.lb-hint { padding: 12px var(--gutter) max(14px, env(safe-area-inset-bottom)); text-align: center; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
@media (max-width: 699px) {
  .lb-prev, .lb-next { top: auto; bottom: max(10px, env(safe-area-inset-bottom)); transform: none; }
  .lb-prev { left: var(--gutter); }
  .lb-next { right: var(--gutter); }
  .lb-hint { padding-top: 28px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .lb-stage { padding: 0; }
  .lb-stage img { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); }
}

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0 clamp(72px, 9vw, 120px); }
.contact-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: saturate(.8); }
.contact-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(18,16,12,.8) 32%, rgba(18,16,12,.93) 100%); }
.contact-title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(4.6rem, 21vw, 13rem); line-height: .8; letter-spacing: .004em; margin-bottom: 22px; }
.contact-title span { color: var(--orange); }
.contact .lead { margin-bottom: 40px; }

.contact-list { border-top: 1px solid var(--line-2); }
.c-row {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line-2);
  transition: color .25s;
}
.c-label { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dust); }
.c-value { grid-column: 1; margin-top: 6px; font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.7rem, 7.4vw, 4.2rem); line-height: 1; letter-spacing: .01em; overflow-wrap: anywhere; }
.c-value--email { text-transform: none; font-size: clamp(1.25rem, 5.6vw, 3.4rem); }
.c-value--handle { text-transform: none; }
.c-value .ph { font-size: .5em; vertical-align: middle; }
.c-go { grid-column: 2; grid-row: 1 / span 2; width: 30px; height: 30px; color: var(--sand); transition: transform .35s var(--ease), color .25s; }
.c-row:hover .c-value { color: var(--orange); }
.c-row:hover .c-go { transform: translateX(6px); color: var(--orange); }
.c-row--wa .c-label { color: var(--orange); }
.c-row--static { cursor: default; }
.c-row--static:hover .c-value { color: inherit; }
.c-row--static .c-label { gap: 10px; }
@media (min-width: 900px) {
  .c-row { grid-template-columns: 220px 1fr auto; column-gap: 28px; padding: 26px 0; }
  .c-value { grid-column: 2; margin-top: 0; }
  .c-go { grid-column: 3; grid-row: auto; width: 40px; height: 40px; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink); }
.footer-inner { display: grid; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.footer-sub { margin-top: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sand); padding: 6px 0; }
.footer-nav a:hover { color: var(--orange); }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); color: var(--sand); transition: color .2s, border-color .2s, background-color .2s; }
.footer-social a:hover { color: var(--on-orange); background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 20px; height: 20px; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 22px; font-size: .7rem; letter-spacing: .04em; color: var(--muted); }
.footer-base p + p { margin-top: 0; }
.to-top { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; color: var(--sand); }
.to-top .ico { transform: rotate(-90deg); }
.to-top:hover { color: var(--orange); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
  .footer-nav { justify-content: center; }
}

/* ---------- Floating WhatsApp (phones) ---------- */
.wa-fab {
  position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  background: var(--orange); color: var(--on-orange);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease);
}
.wa-fab svg { width: 26px; height: 26px; }
.wa-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .wa-fab { display: none; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* image wipe: the clip sits on the <img>, never on the observed element (a clipped element never counts as visible) */
.about-media, .twotwo-media, .ev-media { overflow: hidden; }
.js .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.12); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.js .reveal-img.is-in img { clip-path: inset(0 0 0 0); transform: none; }
.js .reveal-img figcaption { opacity: 0; transition: opacity .6s .7s; }
.js .reveal-img.is-in figcaption { opacity: 1; }

/* ---------- States ---------- */
.lb-open, .lb-open body { overflow: hidden; }
a[aria-disabled="true"] { cursor: default; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .ticker-track { animation: none; }
  .js .reveal, .js .reveal-img img { opacity: 1; transform: none; clip-path: none; }
  .js .reveal-img figcaption { opacity: 1; }
}
