/* ==========================================================================
   YOUSAF CORE — Sportswear & Apparel Manufacturing
   styles.css  ·  single stylesheet, no build step, no framework
   --------------------------------------------------------------------------
   CONTENTS
     01  Design tokens (change the brand here)
     02  Reset & base
     03  Typography
     04  Layout primitives
     05  Buttons & links
     06  Header / navigation
     07  Hero
     08  Marquee & logo strip
     09  Cards (category, capability, product, stat)
     10  Split & feature sections
     11  Process timeline
     12  Accordion (FAQ)
     13  Forms & inquiry builder
     14  Tables
     15  Footer
     16  Floating mobile action bar
     17  Scroll reveal & animation
     18  Utilities
     19  Responsive overrides
     20  Reduced motion & print
   ========================================================================== */

/* == 01 · DESIGN TOKENS ==================================================== */
/* Re-brand the entire site by editing this block and nothing else.          */

:root {
  /* --- Palette. Space-separated RGB so rgb(var(--x) / .5) works --------- */
  --ink: 10 10 11;          /* #0A0A0B  near-black, primary dark surface    */
  --charcoal: 20 20 22;     /* #141416  raised dark surface                 */
  --graphite: 31 31 35;     /* #1F1F23  cards on dark                       */
  --slate: 58 58 64;        /* #3A3A40  hairlines on dark                   */
  --smoke: 122 122 128;     /* #7A7A80  muted body text                     */
  --mist: 214 214 216;      /* #D6D6D8  hairlines on light                  */
  --paper: 244 244 242;     /* #F4F4F2  off-white page background           */
  --white: 255 255 255;

  /* The one accent. Swap this pair to re-theme:
       Signal red   230 51 41   / ink text = 255 255 255
       Cobalt blue   26 75 255  / ink text = 255 255 255
       Warm gold    201 162 39  / ink text = 10 10 11              */
  --accent: 200 255 0;      /* #C8FF00  electric lime                       */
  --accent-ink: 10 10 11;   /* text colour that sits on the accent          */

  /* --- Type ------------------------------------------------------------ */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* --- Space & metrics ------------------------------------------------- */
  --shell-max: 1520px;
  --shell-pad: clamp(1.25rem, 5vw, 5rem);
  --header-h: 74px;
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Motion ---------------------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.22s;
  --t: 0.38s;
  --t-slow: 0.8s;

  /* --- Elevation. Restrained: two levels, both soft. ------------------- */
  --shadow-1: 0 2px 8px rgb(10 10 11 / 0.05), 0 12px 32px -12px rgb(10 10 11 / 0.10);
  --shadow-2: 0 4px 14px rgb(10 10 11 / 0.07), 0 26px 60px -20px rgb(10 10 11 / 0.22);

  /* --- Film grain, used as a background-image on dark sections --------- */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

/* == 02 · RESET & BASE ===================================================== */

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: rgb(var(--paper));
  color: rgb(var(--ink));
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background-color: rgb(var(--charcoal)); }

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

::selection { background: rgb(var(--accent)); color: rgb(var(--accent-ink)); }

:focus-visible {
  outline: 2px solid rgb(var(--accent));
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link — first tab stop on every page */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: rgb(var(--accent));
  color: rgb(var(--accent-ink));
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t) var(--ease-out);
}
.skip-link:focus { transform: none; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: rgb(var(--ink)); }
::-webkit-scrollbar-thumb {
  background: rgb(var(--graphite));
  border: 3px solid rgb(var(--ink));
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: rgb(var(--slate)); }

/* == 03 · TYPOGRAPHY ======================================================= */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Fluid display scale — holds up from 360px to 2560px without media queries */
.d-xl { font-size: clamp(2.6rem, 7.4vw, 6.75rem); line-height: 0.92; letter-spacing: -0.042em; }
.d-lg { font-size: clamp(2.35rem, 7vw, 5.75rem);  line-height: 0.93; letter-spacing: -0.042em; }
.d-md { font-size: clamp(1.95rem, 4.6vw, 3.5rem); line-height: 1.0;  letter-spacing: -0.035em; }
.d-sm { font-size: clamp(1.4rem, 2.8vw, 2.1rem);  line-height: 1.12; letter-spacing: -0.025em; }
.d-xs { font-size: clamp(1.1rem, 1.7vw, 1.3rem);  line-height: 1.25; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1;
  color: rgb(var(--ink) / 0.58); /* 4.77:1 on --paper (WCAG AA small text) */
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--accent));
  flex: none;
}
.on-dark .eyebrow,
.eyebrow--light { color: rgb(var(--paper) / 0.48); } /* 4.61:1 on --ink */

.lede {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.7;
  color: rgb(var(--ink) / 0.62);
  text-wrap: pretty;
}
.on-dark .lede, .lede--light { color: rgb(var(--paper) / 0.58); }

p + p { margin-top: 1.1em; }

.muted { color: rgb(var(--ink) / 0.55); }
.on-dark .muted { color: rgb(var(--paper) / 0.5); }

.accent-text { color: rgb(var(--accent)); }

/* Outline (stroked) display text — used once per page, as a graphic device */
.d-outline {
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--paper) / 0.28);
}

/* == 04 · LAYOUT PRIMITIVES ================================================ */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.shell--narrow { max-width: 900px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5.5rem); }
.section--flush-top { padding-top: 0; }

/* Dark sections carry the grain texture automatically */
.on-dark {
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  position: relative;
  isolation: isolate;
}
.on-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.32;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.on-charcoal { background: rgb(var(--charcoal)); }

.rule { height: 1px; background: rgb(var(--ink) / 0.10); border: 0; }
.on-dark .rule { background: rgb(var(--paper) / 0.12); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head { max-width: 62ch; }
.section-head > * + * { margin-top: 1.4rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Header row with a title on the left and an action on the right */
.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* == 05 · BUTTONS & LINKS ================================================== */

.btn {
  --btn-bg: transparent;
  --btn-fg: rgb(var(--ink));
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.015em;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    transform var(--t) var(--ease-out),
    background-color var(--t) var(--ease-out),
    border-color var(--t) var(--ease-out),
    color var(--t) var(--ease-out),
    box-shadow var(--t) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.08s; }

.btn svg { width: 15px; height: 15px; flex: none; }

/* The arrow glyph is reused in buttons, links and cards — size it once,
   globally, or it inherits the SVG's intrinsic size and renders huge. */
.arrow { width: 15px; height: 15px; flex: none; }
.btn .arrow { transition: transform var(--t) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent { --btn-bg: rgb(var(--accent)); --btn-fg: rgb(var(--accent-ink)); }
.btn--accent:hover { box-shadow: 0 12px 34px -10px rgb(var(--accent) / 0.6); }

.btn--solid { --btn-bg: rgb(var(--ink)); --btn-fg: rgb(var(--paper)); }
.btn--solid:hover { --btn-bg: rgb(var(--graphite)); box-shadow: var(--shadow-2); }

.btn--outline { --btn-bd: rgb(var(--ink) / 0.22); }
.btn--outline:hover { --btn-bg: rgb(var(--ink)); --btn-fg: rgb(var(--paper)); --btn-bd: rgb(var(--ink)); }

.btn--ghost { --btn-bd: rgb(var(--paper) / 0.25); --btn-fg: rgb(var(--paper)); }
.btn--ghost:hover { --btn-bg: rgb(var(--paper)); --btn-fg: rgb(var(--ink)); --btn-bd: rgb(var(--paper)); }

.btn--wa { --btn-bg: #25D366; --btn-fg: #052e16; }
.btn--wa:hover { box-shadow: 0 12px 34px -10px rgb(37 211 102 / 0.55); }

.btn--lg { padding: 1.15rem 2.25rem; font-size: 0.875rem; }
.btn--sm { padding: 0.7rem 1.35rem; font-size: 0.75rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Text link with an underline that wipes in from the left */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.875rem;
}
.link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t-slow) var(--ease-out);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .arrow { transition: transform var(--t) var(--ease-out); }
.link:hover .arrow { transform: translateX(4px); }

/* == 06 · HEADER / NAVIGATION ============================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t) var(--ease-out),
              border-color var(--t) var(--ease-out),
              backdrop-filter var(--t) var(--ease-out);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}
/* Solid once scrolled, or whenever a menu is open */
.header.is-stuck,
.header.is-open,
.header.is-mega {
  background: rgb(var(--ink) / 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgb(var(--paper) / 0.10);
}
/* Pages with a light hero need the solid bar immediately */
.header--solid { background: rgb(var(--ink)); border-bottom-color: rgb(var(--paper) / 0.10); }

/* --- Logo lockup ------------------------------------------------------- */
.logo { display: inline-flex; align-items: center; gap: 0.65rem; flex: none; }
.logo__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgb(var(--accent));
  color: rgb(var(--accent-ink));
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  transition: transform var(--t-slow) var(--ease-out);
}
.logo:hover .logo__mark { transform: rotate(-7deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgb(var(--paper));
}
.logo__sub {
  margin-top: 5px;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.55); /* AA: small text on --ink */
}
.logo--dark .logo__name { color: rgb(var(--ink)); }
.logo--dark .logo__sub { color: rgb(var(--ink) / 0.58); } /* AA */

/* --- Desktop nav ------------------------------------------------------- */
.nav { display: none; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(var(--paper) / 0.68);
  transition: color var(--t) var(--ease-out), background-color var(--t) var(--ease-out);
}
.nav__link:hover { color: rgb(var(--paper)); background: rgb(var(--paper) / 0.06); }
.nav__link[aria-current='page'] { color: rgb(var(--accent)); }
.nav__link .chev { width: 9px; height: 6px; transition: transform var(--t) var(--ease-out); }
.nav__item.is-open .chev { transform: rotate(180deg); }

.header__actions { display: none; align-items: center; gap: 0.75rem; }
.header__phone {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgb(var(--paper) / 0.68);
  transition: color var(--t) var(--ease-out);
}
.header__phone:hover { color: rgb(var(--paper)); }

/* --- Mega menu --------------------------------------------------------- */
.mega {
  position: absolute;
  inset: 100% 0 auto 0;
  display: none;
  background: rgb(var(--ink) / 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgb(var(--paper) / 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--t) var(--ease-out),
              transform var(--t) var(--ease-out),
              visibility var(--t);
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega__inner {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 3.5rem;
  padding-block: 2.75rem 3rem;
}
.mega__pitch p { color: rgb(var(--paper) / 0.5); font-size: 0.875rem; margin-top: 1rem; }
.mega__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: rgb(var(--paper));
}
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem 1rem; }
.mega__card {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  transition: background-color var(--t) var(--ease-out);
}
.mega__card:hover { background: rgb(var(--paper) / 0.06); }
.mega__card b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgb(var(--paper));
  transition: color var(--t) var(--ease-out);
}
.mega__card:hover b { color: rgb(var(--accent)); }
.mega__card span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgb(var(--paper) / 0.55); /* AA */
}

/* --- Burger ------------------------------------------------------------ */
.burger {
  position: relative;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(var(--paper) / 0.2);
  border-radius: 50%;
  color: rgb(var(--paper));
  flex: none;
}
.burger__box { position: relative; width: 19px; height: 13px; }
.burger__box i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t) var(--ease-out), opacity var(--t-fast) linear, top var(--t) var(--ease-out);
}
.burger__box i:nth-child(1) { top: 0; }
.burger__box i:nth-child(2) { top: 6px; }
.burger__box i:nth-child(3) { top: 12px; }
.header.is-open .burger__box i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.header.is-open .burger__box i:nth-child(2) { opacity: 0; }
.header.is-open .burger__box i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* --- Mobile drawer ----------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 95;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgb(var(--ink) / 0.75);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t) var(--ease-out);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute;
  inset-block: 0;
  right: 0;
  width: min(400px, 88vw);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(var(--header-h) + 1.75rem) 1.75rem 2rem;
  background: rgb(var(--ink));
  transform: translateX(100%);
  transition: transform var(--t-slow) var(--ease-out);
}
.drawer.is-open .drawer__panel { transform: none; }

.drawer__link {
  display: block;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgb(var(--paper) / 0.1);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: rgb(var(--paper));
  opacity: 0;
  transform: translateX(22px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color var(--t) var(--ease-out);
}
.drawer.is-open .drawer__link { opacity: 1; transform: none; }
.drawer__link[aria-current='page'] { color: rgb(var(--accent)); }
.drawer__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(var(--paper) / 0.16);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(var(--paper) / 0.7);
  transition: border-color var(--t) var(--ease-out), color var(--t) var(--ease-out);
}
.chip:hover { border-color: rgb(var(--accent)); color: rgb(var(--accent)); }
.drawer__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 0.6rem; }

/* == 07 · HERO ============================================================= */

/* Split hero: headline on the left, a real product photograph on the right.
   The photography is product-on-white, which cannot be composited into a dark
   full-bleed background without looking muddy — so it gets its own panel. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(100svh, 940px);
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  overflow: hidden;
  isolation: isolate;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 12% 18%, rgb(38 38 44) 0%, rgb(var(--ink)) 62%),
    var(--grain);
  background-blend-mode: normal, overlay;
}
.hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  flex: 1 1 auto;
  align-content: center;
}
.hero__inner { width: 100%; min-width: 0; }
/* The split layout gives the headline a narrower column than a full-bleed
   hero would, so it needs its own (smaller) step on the display scale. */
.hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 5.1vw, 4.5rem); line-height: 0.96; }

.hero__figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(var(--white));
  aspect-ratio: 4 / 5;
  max-height: 60vh;
  margin-inline: auto;
  width: min(100%, 420px);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.8);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
/* The headline is split into words by main.js; `br` marks a deliberate break */
.hero h1 br { display: block; content: ''; }
.hero__lede { max-width: 54ch; margin-top: 1.75rem; }
.hero__actions { margin-top: 2.5rem; }

/* Hero foot strip: quick facts + scroll cue */
.hero__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgb(var(--paper) / 0.12);
}
.hero__facts { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); }
.hero__fact b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgb(var(--paper));
}
/* Direct child only — the counter lives in a nested <span> inside the <b>
   and must not inherit the label's small grey styling. */
.hero__fact > span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.55); /* AA */
}
.scroll-cue {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.52);
}
.scroll-cue i {
  width: 1px;
  height: 34px;
  background: linear-gradient(rgb(var(--accent)), transparent);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.35); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);    transform-origin: top; opacity: 1; }
}

/* --- Compact page hero (interior pages) -------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  background: rgb(var(--ink));
  color: rgb(var(--paper));
  overflow: hidden;
  isolation: isolate;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.page-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, rgb(var(--ink)) 26%, rgb(var(--ink) / 0.6) 100%), var(--grain);
  background-blend-mode: normal, overlay;
}
.page-hero h1 { max-width: 18ch; margin-top: 1.5rem; }
.page-hero .lede { max-width: 58ch; margin-top: 1.5rem; }

/* Breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.crumbs a { color: rgb(var(--paper) / 0.5); transition: color var(--t) var(--ease-out); }
.crumbs a:hover { color: rgb(var(--accent)); }
.crumbs span { color: rgb(var(--paper) / 0.3); }
.crumbs [aria-current] { color: rgb(var(--paper) / 0.8); }

/* == 08 · MARQUEE ========================================================== */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3.5rem;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgb(var(--paper) / 0.55);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--accent) / 0.65);
}

/* == 09 · CARDS ============================================================ */

/* --- Category card ------------------------------------------------------ */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(320px, 38vw, 460px);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(var(--charcoal));
  color: rgb(var(--paper));
  isolation: isolate;
  transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.cat-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.cat-card:hover .cat-card__img { transform: scale(1.06); }
.cat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(var(--ink) / 0.97) 0%, rgb(var(--ink) / 0.93) 34%, rgb(var(--ink) / 0.52) 62%, rgb(var(--ink) / 0.18) 100%);
  transition: background var(--t-slow) var(--ease-out);
}
.cat-card:hover::after {
  background: linear-gradient(to top, rgb(var(--ink) / 0.97) 0%, rgb(var(--ink) / 0.9) 34%, rgb(var(--ink) / 0.42) 66%, rgb(var(--ink) / 0.08) 100%);
}
/* Line-art garment icon, top-right */
.cat-card__icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: clamp(54px, 6vw, 76px);
  height: auto;
  color: rgb(var(--accent) / 0.75);
  transition: transform var(--t-slow) var(--ease-out), color var(--t) var(--ease-out);
}
.cat-card:hover .cat-card__icon { transform: translateY(-4px) rotate(-5deg); color: rgb(var(--accent)); }
.cat-card__count {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgb(var(--ink) / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.9);
}
.cat-card h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.cat-card p {
  margin-top: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgb(var(--paper) / 0.62);
  max-width: 40ch;
}
.cat-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgb(var(--accent));
}
.cat-card__cta .arrow { transition: transform var(--t) var(--ease-out); }
.cat-card:hover .cat-card__cta .arrow { transform: translateX(5px); }
/* Whole card is clickable, but the text stays selectable */
.cat-card__link { position: absolute; inset: 0; z-index: 3; }

/* Feature variant — spans two columns on wide screens */
.cat-card--wide { grid-column: span 2; min-height: clamp(320px, 30vw, 420px); }

/* --- Capability card ---------------------------------------------------- */
.cap-card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
  border: 1px solid rgb(var(--paper) / 0.1);
  border-radius: var(--radius-lg);
  background: rgb(var(--paper) / 0.02);
  overflow: hidden;
  transition: border-color var(--t) var(--ease-out), background-color var(--t) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
}
.cap-card:hover {
  border-color: rgb(var(--accent) / 0.45);
  background: rgb(var(--paper) / 0.045);
  transform: translateY(-4px);
}
.cap-card__n {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgb(var(--accent));
}
.cap-card h3 { margin-top: 1rem; font-size: 1.25rem; }
.cap-card p { margin-top: 0.75rem; font-size: 0.9375rem; color: rgb(var(--paper) / 0.55); }
.cap-card ul { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.cap-card li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.8125rem;
  color: rgb(var(--paper) / 0.72);
}
.cap-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgb(var(--accent));
}

/* Light variant of the same card, for light sections */
.cap-card--light {
  border-color: rgb(var(--ink) / 0.1);
  background: rgb(var(--white));
}
.cap-card--light:hover { border-color: rgb(var(--ink) / 0.3); box-shadow: var(--shadow-1); background: rgb(var(--white)); }
.cap-card--light p { color: rgb(var(--ink) / 0.58); }
.cap-card--light li { color: rgb(var(--ink) / 0.72); }
.cap-card--light .cap-card__n { color: rgb(var(--ink) / 0.58); } /* AA */

/* --- Product line item (category pages) --------------------------------- */
.prod-list { display: grid; gap: 0; border-top: 1px solid rgb(var(--ink) / 0.1); }
.prod-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0 1.25rem;
  align-items: baseline;
  padding: 1.35rem 1rem 1.35rem 0.5rem;
  border-bottom: 1px solid rgb(var(--ink) / 0.1);
  border-radius: var(--radius-sm);
  transition: background-color var(--t) var(--ease-out), padding-left var(--t) var(--ease-out);
}
.prod-item:hover { background: rgb(var(--ink) / 0.035); padding-left: 1.1rem; }
.prod-item__n {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--ink) / 0.58);
  transition: color var(--t) var(--ease-out);
}
.prod-item:hover .prod-item__n { color: rgb(var(--accent-ink)); }
.prod-item b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.prod-item span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.875rem;
  color: rgb(var(--ink) / 0.55);
}

/* --- Photo grid ---------------------------------------------------------
   Replaces the generated "factory / process" artwork that used to sit in the
   split sections. Every tile is a real product photograph. */

.photogrid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  border-radius: var(--radius-lg);
}
.photogrid__cell {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(var(--white));
  aspect-ratio: 4 / 5;
  border: 1px solid rgb(var(--ink) / 0.08);
}
.photogrid__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.photogrid__cell:hover img { transform: scale(1.05); }
.photogrid__badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-pill);
  background: rgb(var(--ink) / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--paper) / 0.16);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--paper));
  white-space: nowrap;
  pointer-events: none;
}
.photogrid__badge i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent)); flex: none; }

/* --- Product tabs -------------------------------------------------------
   Vertical tab rail beside a detail panel on desktop; a horizontally
   scrollable strip above the panel on phones. Progressive enhancement: with
   JavaScript off, every panel is visible and the page reads as a long list.
   ------------------------------------------------------------------------ */

.ptabs { display: grid; gap: 1.75rem; }

.ptabs__rail { position: relative; min-width: 0; }

.ptabs__list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.ptabs__list::-webkit-scrollbar { height: 4px; }
.ptabs__list::-webkit-scrollbar-track { background: rgb(var(--ink) / 0.06); border-radius: 99px; }
.ptabs__list::-webkit-scrollbar-thumb { background: rgb(var(--ink) / 0.25); border: 0; border-radius: 99px; }

.ptab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
  scroll-snap-align: start;
  padding: 0.85rem 1.15rem;
  border: 1px solid rgb(var(--ink) / 0.14);
  border-radius: var(--radius-pill);
  background: rgb(var(--white));
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: rgb(var(--ink) / 0.72);
  white-space: nowrap;
  text-align: left;
  transition: border-color var(--t) var(--ease-out), background-color var(--t) var(--ease-out),
              color var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.ptab:hover { border-color: rgb(var(--ink) / 0.4); color: rgb(var(--ink)); }
.ptab__n {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgb(var(--ink) / 0.57); /* 4.74:1 on --white */
  transition: color var(--t) var(--ease-out);
}
.ptab[aria-selected='true'] {
  background: rgb(var(--ink));
  border-color: rgb(var(--ink));
  color: rgb(var(--paper));
}
.ptab[aria-selected='true'] .ptab__n { color: rgb(var(--accent)); }

/* --- Panel -------------------------------------------------------------- */

.ptab-panel { display: block; }
.ptab-panel[hidden] { display: none; }

.ptab-panel__inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid rgb(var(--ink) / 0.12);
  border-radius: var(--radius-lg);
  background: rgb(var(--white));
}

/* The panel fades up each time a new tab is chosen */
.ptab-panel[data-enter] .ptab-panel__inner {
  animation: fade-up 0.5s var(--ease-out) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* --- Product gallery: one large image plus a thumbnail strip ------------ */

.gal { display: grid; gap: 0.6rem; align-content: start; }

.gal__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(var(--white));
  border: 1px solid rgb(var(--ink) / 0.08);
  aspect-ratio: 4 / 5;
}
.gal__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--t) var(--ease-out);
}
/* Brief cross-fade while the swapped image decodes */
.gal__main img.is-swapping { opacity: 0.35; }

.gal__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0.45rem;
}
.gal__thumb {
  position: relative;
  padding: 0;
  border: 1px solid rgb(var(--ink) / 0.12);
  border-radius: 9px;
  overflow: hidden;
  background: rgb(var(--white));
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: border-color var(--t) var(--ease-out), transform var(--t) var(--ease-out);
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__thumb:hover { border-color: rgb(var(--ink) / 0.45); transform: translateY(-2px); }
.gal__thumb.is-active { border-color: rgb(var(--ink)); }
/* Accent bar marks the active thumbnail without relying on colour alone */
.gal__thumb.is-active::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: rgb(var(--accent));
}

/* Legacy single-image media block, kept for any panel without a gallery */
.ptab-panel__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgb(var(--charcoal));
  aspect-ratio: 4 / 5;
}
.ptab-panel__media img { width: 100%; height: 100%; object-fit: cover; }

.ptab-panel__body > h4 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  letter-spacing: -0.03em;
}
.ptab-panel__kicker {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--accent-ink));
  background: rgb(var(--accent) / 0.28);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  width: fit-content;
  max-width: 100%;
}
.ptab-panel__body > p {
  margin-top: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.72;
  color: rgb(var(--ink) / 0.66);
  text-wrap: pretty;
}

/* Spec table */
.spec { margin-top: 1.5rem; border-top: 1px solid rgb(var(--ink) / 0.12); }
.spec__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgb(var(--ink) / 0.1);
}
.spec__row dt {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.58); /* 4.77:1 on --white */
}
.spec__row dd { font-size: 0.875rem; line-height: 1.6; color: rgb(var(--ink) / 0.78); }

.ptab-panel__cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }

/* Placeholder notice — pinned to the TOP of the media block so it does not
   cover the product name and filename rendered into the placeholder itself.
   Delete this <figcaption> from the HTML once real photos are in. */
.ptab-panel__flag {
  position: absolute;
  left: 0.6rem;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-sm);
  background: rgb(var(--ink) / 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(var(--paper) / 0.16);
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgb(var(--paper) / 0.8);
}
.ptab-panel__flag b { color: rgb(var(--accent)); font-weight: 600; }
.ptab-panel__flag code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  font-size: 0.95em;
  color: rgb(var(--paper) / 0.95);
  word-break: break-all;
}

@media (min-width: 680px) {
  .ptab-panel__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
  .spec__row { grid-template-columns: 8.5rem 1fr; }
}

@media (min-width: 1100px) {
  .ptabs { grid-template-columns: 290px minmax(0, 1fr); gap: 2.25rem; align-items: start; }
  .ptabs__list {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 640px;
    padding-right: 0.4rem;
    padding-bottom: 0;
  }
  .ptab { width: 100%; white-space: normal; }
}

/* No JavaScript: show every panel, hide the tab rail, label each block. */
.no-js .ptabs__rail { display: none; }
.no-js .ptab-panel[hidden] { display: block; }
.no-js .ptab-panel + .ptab-panel { margin-top: 1rem; }

/* --- Stat ---------------------------------------------------------------- */
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.stat > span {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.55); /* AA */
}
.stat p { margin-top: 0.85rem; font-size: 0.875rem; color: rgb(var(--paper) / 0.5); max-width: 32ch; }

/* --- Pills (fabric / technique tags) ------------------------------------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.5rem 0.95rem;
  border: 1px solid rgb(var(--ink) / 0.14);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgb(var(--ink) / 0.72);
  transition: border-color var(--t) var(--ease-out), background-color var(--t) var(--ease-out);
}
.tag:hover { border-color: rgb(var(--ink) / 0.4); background: rgb(var(--white)); }
.on-dark .tag { border-color: rgb(var(--paper) / 0.16); color: rgb(var(--paper) / 0.72); }
.on-dark .tag:hover { border-color: rgb(var(--accent) / 0.6); background: rgb(var(--paper) / 0.05); }

/* == 10 · SPLIT / FEATURE SECTIONS ========================================= */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--media-right { grid-template-columns: 1fr; }

.media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgb(var(--charcoal));
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1; }

/* Badge that floats over a media block */
.media__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgb(var(--ink) / 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgb(var(--paper) / 0.14);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(var(--paper));
}
.media__badge i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--accent)); flex: none; }

/* Checklist */
.checks { display: grid; gap: 0.9rem; margin-top: 2rem; }
.checks li { position: relative; padding-left: 2rem; font-size: 0.9375rem; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgb(var(--accent));
}
.checks li::after {
  content: '';
  position: absolute;
  left: 5.5px;
  top: 0.62rem;
  width: 7px;
  height: 4px;
  border-left: 1.8px solid rgb(var(--accent-ink));
  border-bottom: 1.8px solid rgb(var(--accent-ink));
  transform: rotate(-45deg);
}

/* == 11 · PROCESS TIMELINE ================================================= */

.process { display: grid; gap: 0; counter-reset: step; }
.process__step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid rgb(var(--paper) / 0.12);
  transition: background-color var(--t) var(--ease-out);
}
.process__step:last-child { border-bottom: 1px solid rgb(var(--paper) / 0.12); }
.process__step:hover { background: rgb(var(--paper) / 0.025); }
.process__n {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgb(var(--accent));
}
.process__step h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
.process__step p { font-size: 0.9375rem; color: rgb(var(--paper) / 0.55); max-width: 62ch; }

/* == 12 · ACCORDION ======================================================== */

.acc { border-top: 1px solid rgb(var(--ink) / 0.12); }
.acc__item { border-bottom: 1px solid rgb(var(--ink) / 0.12); }
.acc__btn {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
  transition: color var(--t) var(--ease-out);
}
.acc__btn:hover { color: rgb(var(--ink) / 0.6); }
.acc__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  margin-top: -2px;
  border: 1px solid rgb(var(--ink) / 0.18);
  border-radius: 50%;
  transition: background-color var(--t) var(--ease-out), border-color var(--t) var(--ease-out),
              transform var(--t) var(--ease-out);
}
.acc__icon::before,
.acc__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--t) var(--ease-out), opacity var(--t) var(--ease-out);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__btn[aria-expanded='true'] .acc__icon {
  background: rgb(var(--accent));
  border-color: rgb(var(--accent));
  color: rgb(var(--accent-ink));
  transform: rotate(180deg);
}
.acc__btn[aria-expanded='true'] .acc__icon::after { opacity: 0; }
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-slow) var(--ease-out);
}
.acc__panel[data-open='true'] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding-bottom: 1.6rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgb(var(--ink) / 0.6);
  max-width: 72ch;
}

/* == 13 · FORMS ============================================================ */

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.55);
}
.field .req { color: rgb(var(--accent-ink)); }

.input,
.select,
.textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgb(var(--ink) / 0.16);
  border-radius: var(--radius);
  background: rgb(var(--white));
  font-size: 0.9375rem;
  color: rgb(var(--ink));
  transition: border-color var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.input::placeholder, .textarea::placeholder { color: rgb(var(--ink) / 0.58); } /* AA 4.77:1 */
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: rgb(var(--ink) / 0.6);
  box-shadow: 0 0 0 4px rgb(var(--accent) / 0.25);
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230A0A0B' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
}
.input[aria-invalid='true'], .select[aria-invalid='true'], .textarea[aria-invalid='true'] {
  border-color: #D92D20;
  box-shadow: 0 0 0 4px rgb(217 45 32 / 0.12);
}
.field__error {
  display: none;
  font-size: 0.75rem;
  font-weight: 500;
  color: #B42318;
}
.field__error.is-shown { display: block; }

/* Checkbox group used for product interests */
.checkgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
.checkgrid label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgb(var(--ink) / 0.14);
  border-radius: var(--radius);
  background: rgb(var(--white));
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgb(var(--ink) / 0.8);
  cursor: pointer;
  transition: border-color var(--t) var(--ease-out), background-color var(--t) var(--ease-out);
}
.checkgrid label:hover { border-color: rgb(var(--ink) / 0.35); }
.checkgrid input { accent-color: rgb(var(--accent-ink)); width: 16px; height: 16px; flex: none; }
.checkgrid label:has(input:checked) {
  border-color: rgb(var(--ink));
  background: rgb(var(--accent) / 0.16);
}

.form__note { font-size: 0.8125rem; color: rgb(var(--ink) / 0.5); }
.form__status {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  background: rgb(var(--accent) / 0.2);
  border: 1px solid rgb(var(--accent) / 0.6);
  font-size: 0.875rem;
  font-weight: 500;
}
.form__status.is-shown { display: block; }

/* Live preview of the message that will be sent */
.preview {
  border: 1px dashed rgb(var(--ink) / 0.22);
  border-radius: var(--radius);
  background: rgb(var(--ink) / 0.03);
  padding: 1.1rem 1.25rem;
}
.preview__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.58); /* AA */
}
.preview pre {
  margin-top: 0.75rem;
  font-family: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, monospace;
  font-size: 0.75rem;
  line-height: 1.65;
  color: rgb(var(--ink) / 0.72);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 210px;
  overflow-y: auto;
}

/* Contact detail block */
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgb(var(--paper) / 0.12);
}
.contact-row__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgb(var(--paper) / 0.18);
  color: rgb(var(--accent));
}
.contact-row__ico svg { width: 17px; height: 17px; }
.contact-row dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.45);
}
.contact-row dd {
  margin-top: 0.3rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(var(--paper));
}
.contact-row dd a { transition: color var(--t) var(--ease-out); }
.contact-row dd a:hover { color: rgb(var(--accent)); }

/* Placeholder marker — makes unreplaced content impossible to miss */
.todo {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
  background: rgb(255 214 0 / 0.22);
  border: 1px dashed rgb(255 214 0 / 0.8);
  font-size: 0.8em;
  font-weight: 600;
  color: inherit;
}

/* == 14 · TABLES =========================================================== */

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th, .table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgb(var(--ink) / 0.1);
  font-size: 0.875rem;
}
.table th {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(var(--ink) / 0.5);
  background: rgb(var(--ink) / 0.03);
}
.table tbody tr { transition: background-color var(--t) var(--ease-out); }
.table tbody tr:hover { background: rgb(var(--ink) / 0.025); }
.table td:first-child { font-weight: 600; }

/* == 15 · FOOTER =========================================================== */

.footer { background: rgb(var(--ink)); color: rgb(var(--paper)); position: relative; isolation: isolate; }
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: -1;
}
.footer__top { display: grid; gap: clamp(2.5rem, 5vw, 4rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.footer__brand { max-width: 34ch; }
.footer__brand p { margin-top: 1.5rem; font-size: 0.9375rem; color: rgb(var(--paper) / 0.5); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
.footer__col h2 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(var(--paper) / 0.4);
}
.footer__col ul { margin-top: 1.25rem; display: grid; gap: 0.7rem; }
.footer__col a {
  font-size: 0.875rem;
  color: rgb(var(--paper) / 0.68);
  transition: color var(--t) var(--ease-out), padding-left var(--t) var(--ease-out);
}
.footer__col a:hover { color: rgb(var(--accent)); padding-left: 4px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgb(var(--paper) / 0.12);
  font-size: 0.8125rem;
  color: rgb(var(--paper) / 0.48); /* 4.61:1 on --ink */
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__legal a { transition: color var(--t) var(--ease-out); }
.footer__legal a:hover { color: rgb(var(--paper)); }

.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(var(--paper) / 0.16);
  border-radius: 50%;
  color: rgb(var(--paper) / 0.6);
  transition: all var(--t) var(--ease-out);
}
.socials a:hover {
  border-color: rgb(var(--accent));
  background: rgb(var(--accent));
  color: rgb(var(--accent-ink));
  transform: translateY(-3px);
}
.socials svg { width: 16px; height: 16px; }

/* Giant wordmark strip at the very bottom */
.footer__wordmark {
  padding-block: 0 clamp(1rem, 2vw, 2rem);
  overflow: hidden;
  line-height: 0.8;
}
.footer__wordmark span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 15vw, 15rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgb(var(--paper) / 0.14);
  white-space: nowrap;
}

/* == 16 · FLOATING MOBILE ACTION BAR ======================================= */

.actionbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgb(var(--ink) / 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgb(var(--paper) / 0.12);
  transform: translateY(110%);
  transition: transform var(--t-slow) var(--ease-out);
}
.actionbar.is-shown { transform: none; }
.actionbar .btn { padding-block: 0.85rem; font-size: 0.78rem; }

/* == 17 · SCROLL REVEAL ==================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* If JavaScript never runs, show everything (set by the inline <noscript>) */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Word-by-word hero headline reveal */
.reveal-words span {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  /* The mask would otherwise clip descenders (g, y, p) at tight line-heights.
     Extend the box downward, then pull the layout back with a negative margin. */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.reveal-words span > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
  transition-delay: var(--wd, 0ms);
}
.reveal-words.is-in span > i { transform: none; }

/* == 18 · UTILITIES ======================================================== */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.25rem; }
.mt-4 { margin-top: 3rem; }
.mt-5 { margin-top: 4rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }

/* == 19 · RESPONSIVE ======================================================= */

@media (min-width: 560px) {
  .checkgrid { grid-template-columns: repeat(2, 1fr); }
  .form--2col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 720px) {
  .g-2-md { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3-md { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .process__step { grid-template-columns: 5rem 1fr; gap: 0 2rem; }
  .process__step h3 { grid-column: 2; }
  .process__step p { grid-column: 2; margin-top: 0.6rem; }
  .process__n { grid-row: span 2; }
  .scroll-cue { display: flex; }
}

@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero__figure { width: 100%; max-height: 66vh; margin-inline: 0 0; justify-self: end; }
  .g-3-lg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-4-lg { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split--media-right { grid-template-columns: 1fr 1.05fr; }
  .split--media-left { grid-template-columns: 1.05fr 1fr; }
  .footer__top { grid-template-columns: 1.1fr 1.4fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .checkgrid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__actions { display: flex; }
  .burger { display: none; }
  .mega { display: block; }
  .actionbar { display: none; }
  body { padding-bottom: 0 !important; }
}

/* Small phones — tighten the hero so the CTA stays above the fold */
@media (max-width: 480px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); }
  .hero__figure { max-height: 46vh; width: min(100%, 300px); }
  .hero__facts { gap: 1.25rem 2rem; }
  .btn-row .btn { flex: 1 1 100%; }
}

/* == 20 · REDUCED MOTION & PRINT =========================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .reveal-words span > i { transform: none !important; }
  .marquee__track { animation: none; }
}

@media print {
  .header, .drawer, .actionbar, .marquee, .scroll-cue, .footer__wordmark { display: none !important; }
  body { background: #fff; color: #000; }
  .on-dark, .footer, .hero, .page-hero { background: #fff !important; color: #000 !important; }
  .on-dark *, .footer *, .hero *, .page-hero * { color: #000 !important; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
