/* =========================================================
   Yahui Tan — personal site  ·  v3 "designed, with personality"
   White base · DM Serif Display (display) + DM Sans (text)
   Design elements: rotating stamp, kinetic marquee, ✳ motif,
   asymmetric hero, colour-blocked BikeBaju.
   ========================================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --ink: #17161c;
  --ink-2: #46454e;
  --ink-3: #77767f;
  --line: #e7e6ea;

  --orange: #ff6a2b;
  --pink: #ff2f86;
  --purple: #6b3cf0;
  --accent: #ff5a2e;
  --accent-ink: #dc3f0c;      /* text-on-white accent */
  --grad: linear-gradient(105deg, var(--orange) 0%, var(--pink) 50%, var(--purple) 100%);

  --night: #17131f;           /* colour-block section */

  --shell: min(1180px, 90vw);
  --shell-wide: min(1320px, 94vw);

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 20px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: #fff; }

.shell { width: var(--shell); margin-inline: auto; }
.shell-wide { width: var(--shell-wide); margin-inline: auto; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow .idx { color: var(--accent-ink); font-weight: 700; }
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: rgba(255,255,255,0.7); }
.eyebrow.on-dark .idx { color: var(--orange); }

/* gradient text helper — the palette "detailing" */
.grad-text, .ast, .hero__name .amp {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ast { display: inline-block; }

.band { padding-block: clamp(4.5rem, 9vw, 8rem); }
.display em, .section-title em { font-style: italic; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.05) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner {
  width: var(--shell-wide); margin-inline: auto; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.wordmark { font-family: var(--serif); font-size: 1.55rem; letter-spacing: -0.01em; line-height: 1; }
.wordmark .dotmark { color: var(--accent-ink); }
.nav__right { display: flex; align-items: center; gap: 1.5rem; }
.nav__link { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s var(--ease); }
.nav__link:hover { color: var(--ink); }

.pill {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 0.45em 0.9em;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: pulse 2.6s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,.5)} 70%{box-shadow:0 0 0 7px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
  padding: 0.85em 1.5em; border-radius: 999px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.btn__arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px,-3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink); }

/* =========================================================
   HERO — asymmetric
   ========================================================= */
.hero { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__eyebrow { margin-bottom: 1.3rem; }
.hero__roles { font-family: var(--sans); font-weight: 600; font-size: clamp(0.82rem, 1.2vw, 0.95rem); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.2rem; }
.hero__roles span { color: var(--accent-ink); padding-inline: 0.35em; }
.hero__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.2rem, 12vw, 10rem);
  line-height: 0.9; letter-spacing: -0.02em; margin: 0 0 clamp(1.2rem, 3vw, 2rem);
}
.hero__pitch {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1.16;
  letter-spacing: -0.005em; margin: 0 0 1.3rem; max-width: 20ch;
}
.hero__pitch em { font-style: italic; color: var(--accent-ink); }
.hero__support { font-size: 1.08rem; color: var(--ink-2); margin: 0 0 1.9rem; max-width: 44ch; }
.hero__cta { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

/* portrait + shape + badge */
.hero__figure { position: relative; }
.hero__shape {
  position: absolute; z-index: 0;
  inset: 8% -8% -8% 14%;
  border-radius: 46% 54% 50% 50% / 55% 50% 50% 45%;
  background: linear-gradient(135deg, var(--orange), var(--pink) 55%, var(--purple));
  opacity: 0.16;
}
.hero__photo {
  position: relative; z-index: 1;
  border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5;
  background: var(--paper-2);
  box-shadow: 0 40px 70px -34px rgba(0,0,0,0.35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }

.badge {
  position: absolute; z-index: 3;
  left: -34px; bottom: -34px;
  width: clamp(96px, 12vw, 132px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.badge svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge__text {
  font-family: var(--sans); font-size: 15.5px; font-weight: 600;
  letter-spacing: 0.02em; fill: var(--ink); text-transform: uppercase;
}
.badge::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: var(--paper); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.25);
}
.badge svg { position: relative; z-index: 1; }
.badge__center {
  position: absolute; z-index: 2;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  border-block: 1px solid var(--ink);
  background: var(--ink); color: var(--paper);
  overflow: hidden; padding-block: 0.7rem;
}
.marquee__track { display: flex; width: max-content; animation: scroll-x 40s linear infinite; }
.marquee__track span {
  font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  white-space: nowrap; padding-right: 0; letter-spacing: -0.01em;
}
.marquee__track b { color: var(--orange); padding-inline: 0.5em; font-weight: 400; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   CAPABILITIES
   ========================================================= */
.cap__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.5vw, 2.6rem); }
.cap__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.3vw, 3.5rem); line-height: 1.08;
  letter-spacing: -0.015em; margin: 0.8rem 0 1rem;
}
.cap__title em { font-style: italic; color: var(--accent-ink); }
.cap__sub { font-size: 1.1rem; color: var(--ink-2); margin: 0; max-width: 46ch; }
.cap__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.cap__item {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(1.3rem, 2.4vw, 1.9rem) clamp(1.1rem, 2vw, 1.6rem) clamp(1.9rem, 3.4vw, 2.8rem);
  position: relative; transition: background 0.3s var(--ease);
}
.cap__item:hover { background: var(--paper-2); }
.cap__dot { position: absolute; top: clamp(1.3rem,2.4vw,1.9rem); right: clamp(1.1rem,2vw,1.6rem); width: 9px; height: 9px; border-radius: 50%; }
.dot-o { background: var(--orange); } .dot-p { background: var(--pink); } .dot-u { background: var(--purple); }
.cap__num { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-3); display: block; margin-bottom: 2.4rem; }
.cap__label { font-size: 1.14rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; margin: 0; }
.cap__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 30ch;
}
.cap__note em { font-style: italic; color: var(--accent-ink); }

/* =========================================================
   HOW
   ========================================================= */
.how__head { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.0; letter-spacing: -0.01em; margin: 0.7rem 0 0; }
.section-title em { color: var(--accent-ink); }
.how__intro { font-size: 1.08rem; color: var(--ink-2); margin: 0; max-width: 34ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.step { border-right: 1px solid var(--line); padding: clamp(1.5rem, 2.4vw, 2rem) clamp(1.1rem, 1.8vw, 1.6rem) clamp(2rem, 3.5vw, 2.8rem); }
.step:last-child { border-right: none; }
.step__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--accent-ink); margin-bottom: 1rem; }
.step__title { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.6rem; }
.step__body { margin: 0; color: var(--ink-2); font-size: 1rem; }
.how__closer { margin-top: clamp(2.2rem, 4vw, 3rem); font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.28; letter-spacing: -0.01em; max-width: 32ch; }
.how__closer em { font-style: italic; color: var(--accent-ink); }

/* =========================================================
   RECORD
   ========================================================= */
.record__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.record__lede { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.2; letter-spacing: -0.01em; margin: 1rem 0 0; }
.record__lede b { font-weight: 400; font-style: italic; color: var(--accent-ink); }
.record__notes { margin-top: 1.8rem; }
.record__notes p { margin: 0 0 0.9rem; color: var(--ink-2); padding-left: 1.5rem; position: relative; }
.record__notes p::before { content: "✳"; position: absolute; left: 0; top: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat { border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(1.6rem, 3vw, 2.4rem); background: var(--paper); }
.stat__num {
  font-family: var(--serif); font-size: clamp(5rem, 13vw, 8.5rem); line-height: 0.9; letter-spacing: -0.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}
.stat__label { font-size: 1rem; color: var(--ink-2); margin-top: 0.8rem; line-height: 1.5; }
.stat__sub { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); display: flex; gap: 2rem; }
.stat__mini b { font-family: var(--serif); font-size: 2rem; display: block; line-height: 1; }
.stat__mini span { font-size: 0.82rem; color: var(--ink-3); }

.clients { margin-top: clamp(3rem, 6vw, 5rem); }
.clients__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); text-align: center; margin: 0 0 1.8rem; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 3.2vw, 2.6rem) clamp(1.9rem, 4vw, 3.2rem); padding-block: clamp(1.4rem, 3vw, 2rem); border-block: 1px solid var(--line); }
/* casual credential drop — subtle, greyscale, no hover colour. Each logo optically
   balanced with its own small box (object-fit contain, so no distortion). */
.logo {
  object-fit: contain; object-position: center;
  filter: grayscale(1) opacity(0.5);
}
.l-decathlon { width: 76px; height: 20px; }
.l-panasonic { width: 80px; height: 16px; }
.l-mrdiy     { width: 54px; height: 30px; }
.l-spritzer  { width: 68px; height: 22px; }
.l-nature    { width: 66px; height: 24px; }
.l-sunway    { width: 56px; height: 40px; }
.l-lbs       { width: 58px; height: 24px; }
.l-popo      { width: 66px; height: 34px; }
.l-garden    { width: 78px; height: 34px; }
.l-hinlim    { width: 56px; height: 15px; }

/* affiliations — a quieter, secondary credential row under the client logos */
.affil { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }
.affil__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 1.1rem; }
.affil__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.8rem, 4vw, 3rem); }
.affil-logo { object-fit: contain; object-position: center; filter: grayscale(1) opacity(0.45); }
.a-vistage { width: 60px; height: 17px; }
.a-sama    { width: 62px; height: 20px; }
.a-eo      { width: 78px; height: 22px; }

/* =========================================================
   BIKEBAJU — colour-blocked
   ========================================================= */
.bb { background: var(--night); color: #f3eee9; position: relative; overflow: hidden; }
.bb::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 10% 6%, rgba(255,106,43,0.28), transparent 60%),
    radial-gradient(50% 50% at 92% 16%, rgba(255,47,134,0.24), transparent 60%),
    radial-gradient(60% 55% at 72% 100%, rgba(107,60,240,0.30), transparent 60%);
}
.bb > * { position: relative; }
.bb__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bb__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.8rem); line-height: 1.0; letter-spacing: -0.01em; margin: 0.7rem 0 0; }
.bb__title em { font-style: italic; color: #ff8a4f; }
.bb__intro { font-size: 1.1rem; color: #d9d2cb; margin: 0; }
.bb__gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(115px, 15vw, 195px); gap: clamp(0.6rem, 1.1vw, 0.9rem); }
.bb__gallery figure { margin: 0; overflow: hidden; border-radius: 14px; }
.bb__gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.bb__gallery figure:hover img { transform: scale(1.05); }
.g-a { grid-column: span 5; grid-row: span 2; } .g-b { grid-column: span 4; grid-row: span 2; }
.g-c { grid-column: span 3; grid-row: span 2; } .g-d { grid-column: span 4; grid-row: span 2; } .g-e { grid-column: span 8; grid-row: span 2; }
.bb__copy { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2.2rem, 4.5vw, 3.5rem); padding-top: clamp(1.8rem, 3.5vw, 2.6rem); border-top: 1px solid rgba(255,255,255,0.16); }
.bb__lede { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.24; letter-spacing: -0.01em; margin: 0; }
.bb__body p { margin: 0 0 1rem; color: #d3ccd8; }
.bb__body p:last-child { margin-bottom: 0; }
.bb__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.bb__stat b { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.4rem); line-height: 1; display: block; }
.bb__stat span { font-size: 0.84rem; color: rgba(255,255,255,0.6); }

/* =========================================================
   NOW
   ========================================================= */
.now__grid { display: grid; grid-template-columns: 0.55fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.now__big { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.06; letter-spacing: -0.01em; margin: 0.6rem 0 0; }
.now__big em { font-style: italic; color: var(--accent-ink); }
.now__side p { margin: 0 0 1.4rem; color: var(--ink-2); font-size: 1.1rem; max-width: 44ch; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag { font-size: 0.88rem; font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 1em; color: var(--ink-2); transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.tag:hover { border-color: var(--ink); color: var(--ink); }

/* =========================================================
   OFF THE CLOCK
   ========================================================= */
.off__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.off__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; }
.off__img img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 32%; }
.off__lead { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.9vw, 2.3rem); line-height: 1.24; letter-spacing: -0.01em; margin: 1rem 0 0; }
.off__lead em { font-style: italic; color: var(--accent-ink); }
.off__more { margin-top: clamp(1.2rem, 2.4vw, 1.8rem); }
.off__more p { font-family: var(--sans); font-size: clamp(1rem, 1.3vw, 1.08rem); line-height: 1.55; color: var(--ink-2); margin: 0 0 0.7rem; max-width: 46ch; }
.off__more p:last-child { margin-bottom: 0; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 12vw, 9rem); line-height: 0.95; letter-spacing: -0.02em; margin: 1rem 0 1.2rem; }
.contact__title em { font-style: italic; color: var(--accent-ink); }
.contact__sub { font-size: 1.15rem; color: var(--ink-2); margin: 0 auto 2.4rem; max-width: 40ch; }
.contact__email { display: inline-block; font-family: var(--serif); font-size: clamp(1.7rem, 4.5vw, 3rem); letter-spacing: -0.01em; position: relative; padding-bottom: 0.1em; }
.contact__email::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.contact__email:hover::after { transform: scaleX(1); }

.footer { border-top: 1px solid var(--line); padding-block: 2rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink-3); }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }

.hero .load { opacity: 0; transform: translateY(16px); }
.hero.ready .load { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.hero.ready .load[data-d="1"]{transition-delay:.06s} .hero.ready .load[data-d="2"]{transition-delay:.16s}
.hero.ready .load[data-d="3"]{transition-delay:.28s} .hero.ready .load[data-d="4"]{transition-delay:.4s}
.hero.ready .load[data-d="5"]{transition-delay:.5s}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero__figure { order: -1; max-width: 460px; }
  .cap__grid { grid-template-columns: repeat(2, 1fr); }
  .how__head { grid-template-columns: 1fr; gap: 1rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1), .step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .record__grid { grid-template-columns: 1fr; }
  .bb__head { grid-template-columns: 1fr; }
  .bb__copy { grid-template-columns: 1fr; gap: 1.5rem; }
  .now__grid { grid-template-columns: 1fr; }
  .off__grid { grid-template-columns: 1fr; }
  .off__img { max-width: 460px; }
  .bb__gallery { grid-auto-rows: clamp(110px, 26vw, 180px); }
  .g-a { grid-column: span 7; } .g-b { grid-column: span 5; }
  .g-c { grid-column: span 5; } .g-d { grid-column: span 7; } .g-e { grid-column: span 12; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav__link.hide-sm { display: none; }
  .cap__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: none; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: none; }
  .stat__sub { flex-wrap: wrap; gap: 1.2rem; }
  .bb__gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g-a, .g-b, .g-c, .g-d, .g-e { grid-column: span 1; grid-row: span 1; }
  .hero__name { font-size: clamp(3.8rem, 20vw, 5.5rem); }
  .badge { left: -18px; bottom: -18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, .hero .load { opacity: 1 !important; transform: none !important; }
  .marquee__track, .badge svg { animation: none !important; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
