/* ============================================================
   OHZEHN-TEX®  ·  Editorial design system
   Color, type, and motion derived from the brand badge mocha,
   tuned for a B2B ingredient-brand feel (TENCEL / GORE-TEX tier).
   ============================================================ */

:root {
  /* Palette pulled from the badge artwork */
  --cream:        #ece6d9;
  --cream-deep:   #e2dac7;
  --cream-soft:   #f3eee2;
  --ink:          #14161a;
  --ink-soft:     #22262c;
  --muted:        #6c655a;
  --mocha:        #978982;   /* badge mocha */
  --mocha-deep:   #6e645c;
  --mocha-soft:   #b8aca3;
  --line:         #d6cdba;
  --line-soft:    #e1d9c5;
  --leaf:         #2e3a2e;
  --leaf-tint:    rgba(46, 58, 46, 0.08);
  --rust:         #b8463a;

  /* Type stacks */
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Inter Tight', 'Inter', sans-serif;
  --serif:   'Fraunces', 'Times New Roman', serif;

  /* Rhythm — tight gutters on small screens, generous on large */
  --gutter:  clamp(20px, 3.6vw, 56px);
  --gutter-tight: clamp(16px, 2.4vw, 28px);
  --maxw:    1440px;
  --section-py: clamp(80px, 12vw, 160px);
  --section-py-tight: clamp(56px, 8vw, 96px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 17px;
  line-height: 1.58;
  overflow-x: hidden;
}
html { scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal primitive — initial hidden state for scroll-driven elements.
   GSAP flips these to visible. */
[data-reveal],
[data-text],
[data-counter],
.line,
.manifesto-line {
  will-change: transform, opacity;
}
.is-loading [data-reveal],
.is-loading .line,
.is-loading .manifesto-line {
  opacity: 0;
}

/* Skip link */
.skip-link {
  position: fixed; top: -100px; left: 16px;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; border-radius: 10px;
  z-index: 1000; font-weight: 600;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* Layout containers — content centered, sections still go edge to edge */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  width: 100%;
}
/* Wider variant for media-heavy sections */
.container-wide { max-width: 1640px; }
/* True edge-to-edge for video / image bleeds */
.bleed { width: 100%; max-width: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  margin: 0 0 28px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mocha-deep);
}

.title-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.05;          /* enough room for ascenders + descenders */
  letter-spacing: -0.038em;
  margin: 0 0 36px;
  color: var(--ink);
}
.title-display .line {
  display: block;
  /* no overflow clip - the reveal animates with translate Y and opacity only,
     so descenders (g, y, p) and italic flourishes stay fully visible */
  padding-bottom: 0.05em;
  line-height: inherit;
}
.title-display .italic,
.title-display .line.italic {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.02em;
  letter-spacing: -0.025em;
  color: var(--mocha-deep);
}

.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 56px;
}

/* ============================================================
   FRAME (top nav + section rail)
   ============================================================ */
.nav {
  position: fixed;
  top: 18px; left: 18px; right: 18px;
  z-index: 80;
  display: flex;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px 12px 18px;
  background: rgba(236, 230, 217, 0.84);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border: 1px solid rgba(214, 205, 186, 0.6);
  border-radius: 999px;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.nav.is-dark .nav-inner {
  background: rgba(20, 22, 26, 0.78);
  border-color: rgba(255,255,255,0.08);
  color: var(--cream);
}
.nav.is-dark .nav-cta { background: var(--mocha); color: var(--ink); }

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: inherit;
}
.nav-brand sup { font-size: 0.55em; vertical-align: super; opacity: 0.6; font-weight: 500; }
.nav-badge {
  width: 28px; height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  opacity: 0.78;
  transition: opacity 0.2s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
@media (max-width: 760px) { .nav-links { display: none; } }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.18s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); }

/* Right-side rail */
.rail {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 70;
  pointer-events: none;
}
.rail ol {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail li {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.45;
  transition: opacity 0.25s var(--ease-out);
}
.rail li:hover { opacity: 1; }
.rail li.is-active { opacity: 1; }
.rail-tick {
  width: 22px; height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease-out);
}
.rail li.is-active .rail-tick { width: 36px; }
.rail-label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.rail li.is-active .rail-label,
.rail li:hover .rail-label {
  opacity: 1;
  transform: translateX(0);
}
@media (max-width: 960px) { .rail { display: none; } }

/* The rail color flips when over dark sections */
.rail.on-dark { color: var(--cream); }
.rail.on-light { color: var(--ink); }

/* ============================================================
   HERO (01)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: clamp(110px, 12vh, 160px) var(--gutter) clamp(40px, 6vh, 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* hard cap so nothing inside ever extends past the viewport */
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Decorative hero blobs disabled — they cluttered the visual area around the real badge */
.hero-blob-1, .hero-blob-2 { display: none !important; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-copy { position: relative; }

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(52px, 7.4vw, 108px);
  line-height: 1.02;          /* room for descenders / italic flourishes */
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero-title .line {
  display: block;
  padding-bottom: 0.06em;
  line-height: inherit;
}
.hero-title .word {
  display: inline-block;
  will-change: transform, opacity;
  padding-bottom: 0.04em;
}
.hero-title .word.italic {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.06em;
  letter-spacing: -0.025em;
  color: var(--mocha-deep);
}

.hero-lede {
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--mocha-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn .arrow { transition: transform 0.22s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-badge-wrap {
  position: relative;
  justify-self: start;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1.04;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(110, 100, 92, 0.22));
  will-change: transform;
}
@media (max-width: 760px) {
  .hero-badge-wrap { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero-badge-wrap { max-width: 240px; }
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  opacity: 0.7;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.hero-scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--cream);
  animation: scrollCue 2.6s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: clamp(60px, 8vw, 100px) auto 0;
  max-width: var(--maxw);
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-deep);
}

.media-empty {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg,
      transparent 0 14px,
      rgba(151, 137, 130, 0.08) 14px 28px),
    var(--cream-deep);
  border: 1px dashed rgba(151, 137, 130, 0.45);
  border-radius: inherit;
  color: var(--mocha-deep);
}
.media-empty .media-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.media-empty .media-hint {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 36ch;
  line-height: 1.45;
}

/* When a video URL is set, the empty placeholder is replaced
   by a <video> tag inserted via JS (handled there). */

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track .mq-sep {
  display: inline-flex;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mocha);
  align-self: center;
  flex-shrink: 0;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   MANIFESTO (02) — pinned, large word-by-word reveal
   ============================================================ */
.manifesto {
  position: relative;
  background: var(--cream);
  padding: var(--section-py) var(--gutter);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.manifesto-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
  margin: 0 0 56px;
  max-width: var(--maxw);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.manifesto-stage {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.manifesto-line {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 116px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  padding: 4px 0;
  will-change: transform, opacity;
}
.manifesto-line:nth-child(2),
.manifesto-line:nth-child(4) {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--mocha-deep);
}
.manifesto-blob { display: none; }
.vision-badge { display: none; }

/* ============================================================
   PROBLEM (03)
   ============================================================ */
.problem {
  background: var(--ink);
  color: var(--cream);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.problem .eyebrow,
.fabric .eyebrow,
.testing .eyebrow,
.exclude .eyebrow,
.performance .eyebrow,
.compare .eyebrow,
.sustainability .eyebrow,
.partners .eyebrow,
.vision .eyebrow,
.vision-eyebrow {
  color: var(--mocha-deep);
}
.problem .eyebrow,
.problem .eyebrow .dot,
.exclude .eyebrow,
.exclude .eyebrow .dot,
.partners .eyebrow,
.partners .eyebrow .dot {
  color: var(--mocha);
}
.problem .eyebrow .dot,
.exclude .eyebrow .dot,
.partners .eyebrow .dot { background: var(--mocha); }

.problem .title-display { color: var(--cream); max-width: 16ch; }
.problem .lede { color: rgba(236, 230, 217, 0.7); }

.problem-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  margin-bottom: 80px;
  align-items: end;
}
@media (max-width: 760px) {
  .problem-header { grid-template-columns: 1fr; }
}
.problem-header .title-display { margin: 0; }
.problem-header .lede { margin: 0; }

.problem-callout {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: clamp(32px, 4vw, 56px);
  margin-bottom: 72px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.problem-callout-label {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha);
  margin-bottom: 18px;
}
.problem-callout p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin: 0;
}

.compounds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 720px) { .compounds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .compounds { grid-template-columns: 1fr; } }
.compounds li {
  padding: 28px 30px 32px;
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.compound-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.compound-name::before {
  content: "×";
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(184, 70, 58, 0.18);
  color: #e58879;
  font-size: 13px;
  font-weight: 700;
}
.compound-note {
  font-size: 13.5px;
  color: rgba(236, 230, 217, 0.6);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   FABRIC (04) — big 76 / 24
   ============================================================ */
.fabric {
  background: var(--cream);
  padding: var(--section-py) 0;
  position: relative;
}
.fabric-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.fabric-header { max-width: 56ch; margin-bottom: 80px; }

.fabric-stats {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 820px) { .fabric-stats { grid-template-columns: 1fr; } }

.fabric-stat { position: relative; }
.big-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(140px, 22vw, 360px);
  line-height: 0.84;
  letter-spacing: -0.06em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
}
.fabric-stat-b .big-num {
  font-size: clamp(90px, 14vw, 220px);
}
.big-num .unit {
  font-size: 0.28em;
  font-weight: 600;
  color: var(--mocha-deep);
  margin-top: 0.4em;
  margin-left: 6px;
}
.big-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.012em;
  margin: 14px 0 8px;
  color: var(--ink);
}
.big-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40ch;
  margin: 0;
}

.feedstock {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .feedstock { grid-template-columns: 1fr; } }
.feedstock li {
  padding: 24px 28px;
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feedstock li:last-child { border-right: none; }
.feedstock-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.feedstock-note {
  font-size: 13px;
  color: var(--muted);
}

.fabric-media {
  position: relative;
  margin-top: 80px;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream-deep);
}

/* ============================================================
   PERFORMANCE (05) — asymmetric stat layout
   ============================================================ */
.performance {
  background: var(--cream-deep);
  padding: var(--section-py) 0;
}
.performance-header { max-width: 56ch; margin-bottom: 72px; }

.perf-stats {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}
.perf-stat {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 38px 32px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.perf-stat:hover {
  transform: translateY(-3px);
  border-color: var(--mocha);
}
/* Editorial asymmetry */
.perf-stat:nth-child(1) { grid-column: span 7; }
.perf-stat:nth-child(2) { grid-column: span 5; }
.perf-stat:nth-child(3) { grid-column: span 5; }
.perf-stat:nth-child(4) { grid-column: span 7; }
@media (max-width: 760px) {
  .perf-stat { grid-column: span 12 !important; }
}
.perf-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(60px, 8vw, 120px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: baseline;
}
.perf-num .suffix {
  font-size: 0.38em;
  margin-left: 4px;
  color: var(--mocha-deep);
}
.perf-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
}
.perf-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 38ch;
}

/* ============================================================
   EXCLUDE (06) — horizontal pinned strip
   ============================================================ */
.exclude {
  background: var(--ink);
  color: var(--cream);
  position: relative;
}
.exclude-pin {
  height: 200vh; /* pin distance */
}
.exclude-header {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: var(--section-py) var(--gutter) 64px;
}
.exclude-header .title-display { color: var(--cream); max-width: 16ch; }
.exclude-header .lede { color: rgba(236, 230, 217, 0.7); }

.exclude-track {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 18px;
  padding: 0 var(--gutter);
  will-change: transform;
}
.exclude-chip {
  flex-shrink: 0;
  padding: 26px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.exclude-chip .x {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(184, 70, 58, 0.18);
  color: #e58879;
  font-size: 14px;
  font-weight: 700;
}

/* Mobile fallback — no horizontal scroll */
@media (max-width: 760px) {
  .exclude-pin { height: auto; }
  .exclude-track {
    position: relative;
    top: auto;
    transform: none;
    flex-wrap: wrap;
    padding: 0 var(--gutter) var(--section-py);
  }
  .exclude-chip { font-size: 20px; padding: 18px 22px; }
}

/* ============================================================
   TESTING (07)
   ============================================================ */
.testing { background: var(--cream); padding: var(--section-py) 0; }
.testing-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: 56px;
}
.testing-header .title-display { max-width: 18ch; }

.testing-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 4vw, 60px);
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  margin-bottom: 64px;
}
.testing-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.panel-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.012em;
}
.panel-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}
.cleared-stamp {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--leaf);
  padding: 8px 16px;
  background: var(--leaf-tint);
  border: 1px solid rgba(46, 58, 46, 0.2);
  border-radius: 999px;
}
.panel-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 720px) { .panel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .panel-grid { grid-template-columns: 1fr; } }
.panel-chem {
  background: var(--cream-soft);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.panel-chem .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.panel-chem-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
}
.panel-chem-status {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  font-weight: 600;
}
.panel-note {
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.testing-media {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 24px;
  overflow: hidden;
}
.testing-media .media-empty,
.fabric-media .media-empty,
.hero-media .media-empty,
.testing-media video,
.fabric-media video,
.hero-media video { border-radius: 24px; }
.testing-media video,
.fabric-media video,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   COMPARE (08)
   ============================================================ */
.compare { background: var(--cream-deep); padding: var(--section-py) 0; }
.compare-header { max-width: 56ch; margin-bottom: 72px; }

.compare-cards {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) { .compare-cards { grid-template-columns: 1fr; } }
.compare-card {
  background: var(--cream-soft);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 32px 30px 30px;
}
.compare-card h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 4px;
}
.compare-card .tag {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
  margin-bottom: 22px;
  display: block;
}
.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.compare-card li {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  display: flex;
  gap: 12px;
}
.compare-card li:first-of-type { border-top: none; }
.compare-card li::before {
  content: "·";
  color: var(--mocha);
  font-weight: 700;
  font-size: 1.3em;
  line-height: 1;
}

.vs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
@media (max-width: 820px) { .vs-row { grid-template-columns: 1fr; } }
.vs-col {
  padding: clamp(36px, 4vw, 56px);
  background: var(--cream-soft);
}
.vs-col.vs-ours {
  background: var(--ink);
  color: var(--cream);
}
.vs-head { margin-bottom: 28px; }
.vs-head h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.vs-tag {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
  margin-bottom: 8px;
}
.vs-col.vs-ours .vs-tag { color: var(--mocha); }
.vs-col ul { list-style: none; padding: 0; margin: 0; }
.vs-col li {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.vs-col.vs-ours li { border-top-color: rgba(255,255,255,0.08); }
.vs-col li:first-of-type { border-top: none; }
.vs-col .mark {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.vs-col.vs-ours .mark { background: var(--mocha); color: var(--ink); }
.vs-col.vs-theirs .mark { background: rgba(184, 70, 58, 0.16); color: #b8463a; }

/* ============================================================
   SUSTAINABILITY (09)
   ============================================================ */
.sustainability { background: var(--cream); padding: var(--section-py) 0; }
.sustain-header { max-width: 56ch; margin-bottom: 64px; }

.sustain-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) { .sustain-pillars { grid-template-columns: 1fr; } }
.sustain-pillars li {
  padding: 32px 32px 36px;
  border-right: 1px solid var(--line-soft);
}
.sustain-pillars li:last-child { border-right: none; }
.sustain-pillars h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.sustain-pillars p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  max-width: 36ch;
}

/* ============================================================
   PARTNERS (10)
   ============================================================ */
.partners {
  background: var(--ink);
  color: var(--cream);
  padding: var(--section-py) 0;
}
.partners .title-display { color: var(--cream); max-width: 16ch; }
.partners .lede { color: rgba(236, 230, 217, 0.72); }

.partners-header { max-width: 56ch; margin-bottom: 72px; }

.partners-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 760px) { .partners-grid { grid-template-columns: 1fr; } }

.ideal-list { list-style: none; padding: 0; margin: 0; }
.ideal-list li {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  align-items: start;
}
.ideal-list li:first-child { border-top: none; padding-top: 0; }
.ideal-num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mocha);
  padding-top: 4px;
}
.ideal-list h3 {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.012em;
  margin: 0 0 6px;
}
.ideal-list p {
  font-size: 14.5px;
  color: rgba(236, 230, 217, 0.66);
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}

.partner-cta {
  position: sticky;
  top: 120px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: clamp(28px, 3.5vw, 44px);
}
.partner-cta h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.018em;
  margin: 0 0 14px;
  line-height: 1.15;
  color: var(--cream);
}
.partner-cta p {
  font-size: 14.5px;
  color: rgba(236, 230, 217, 0.7);
  line-height: 1.55;
  margin: 0 0 28px;
}
.partner-primary {
  width: 100%;
  background: var(--mocha);
  color: var(--ink);
  justify-content: center;
}
.partner-primary:hover {
  background: var(--cream);
  transform: translateY(-1px);
}
.partner-secondary {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13.5px;
  color: var(--mocha);
  font-weight: 600;
}
.partner-secondary:hover { color: var(--cream); }

/* ============================================================
   VISION (11) — quiet close
   ============================================================ */
.vision {
  background: var(--cream);
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.vision .container { max-width: var(--maxw); }
.vision-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
  margin: 0 0 36px;
}
.vision-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mocha-deep);
}

.vision-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 132px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 64px;
  max-width: 18ch;
  color: var(--ink);
}
.vision-title .line {
  display: block;
  padding-bottom: 0.06em;
  line-height: inherit;
}
.vision-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--mocha-deep);
}
.vision-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: end;
}
@media (max-width: 820px) { .vision-body { grid-template-columns: 1fr; } }
.vision-body p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 52ch;
}
.vision-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.vision-categories span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 9px 16px;
  background: var(--cream-deep);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--ink-soft);
}
.vision-badge {
  position: absolute;
  right: -8vw;
  bottom: -10vh;
  width: 38vw;
  max-width: 520px;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  transform: rotate(14deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: clamp(40px, 5vw, 80px);
  margin-bottom: 56px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 22px; }
.footer-mark {
  width: 88px;
  height: auto;
  opacity: 0.92;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(236, 230, 217, 0.6);
  line-height: 1.55;
  margin: 0;
  max-width: 44ch;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; }
.footer-col a {
  font-size: 14px;
  color: rgba(236, 230, 217, 0.78);
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--cream); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12.5px;
  color: rgba(236, 230, 217, 0.48);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.footer-legal {
  max-width: 68ch;
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

/* ============================================================
   Lenis smooth-scroll integration
   ============================================================ */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ============================================================
   EDGE-TO-EDGE + RESPONSIVE POLISH
   Every breakpoint dialed for performance on real devices.
   ============================================================ */

/* Section padding: sections always full bleed, content respects gutter */
.hero,
.problem,
.fabric,
.performance,
.exclude,
.testing,
.compare,
.sustainability,
.partners,
.vision,
.manifesto,
footer {
  width: 100%;
  max-width: 100%;
}

/* Hero — consistent gutters at every viewport, badge sits cleanly inside */
.hero { padding-left: var(--gutter); padding-right: var(--gutter); }
.hero-grid {
  padding: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
/* Note: badge max-width is governed by the earlier .hero-badge-wrap rule.
   Keeping this block minimal so it doesn't fight the responsive ceilings. */

/* Decorative hero blobs were causing visual noise around the real badge — removed */
.hero-blob-1, .hero-blob-2 { display: none; }

/* ============================================================
   APPLICATIONS STRIP (homepage)
   Editorial bridge between the hero/marquee and the manifesto.
   Signals: this is a platform fabric, not an activewear product.
   ============================================================ */
.apps-strip {
  background: var(--cream);
  padding: clamp(72px, 9vw, 132px) 0 clamp(64px, 8vw, 120px);
  position: relative;
}
.apps-strip-head {
  max-width: 30ch;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.apps-strip-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--ink);
}
.apps-strip-title .line { display: block; padding-bottom: 0.04em; }
.apps-strip-title .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--mocha-deep);
  font-size: 1.02em;
}
.apps-strip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
}
@media (max-width: 960px) {
  .apps-strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .apps-strip-grid { grid-template-columns: 1fr; }
}
.apps-strip-grid li {
  padding: 22px 24px 22px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--cream);
  transition: background 0.18s var(--ease-out);
}
.apps-strip-grid li:hover {
  background: var(--cream-soft);
}
.apps-strip-grid a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: inherit;
}
.apps-strip-num {
  font-family: var(--display);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
}
.apps-strip-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.apps-strip-tag {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}
.apps-strip-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(36px, 4vw, 56px);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 19px);
  letter-spacing: -0.005em;
  color: var(--ink);
  padding: 14px 22px 14px 24px;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.apps-strip-cta:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-1px);
}
.apps-strip-cta .arrow {
  transition: transform 0.22s var(--ease-out);
}
.apps-strip-cta:hover .arrow { transform: translateX(4px); }

/* ============================================================
   APPLICATIONS PAGE (/applications/)
   ============================================================ */
body.is-applications { background: var(--cream); }

.app-hero {
  position: relative;
  padding: clamp(140px, 18vh, 200px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.app-hero .container { position: relative; z-index: 1; }
.app-hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.038em;
  margin: 0 0 36px;
  max-width: 18ch;
  color: var(--ink);
}
.app-hero-title .line { display: block; padding-bottom: 0.05em; }
.app-hero-title .italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.02em;
  letter-spacing: -0.025em;
  color: var(--mocha-deep);
}
.app-hero-lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}
.app-hero-blob {
  position: absolute;
  right: -10vw;
  top: 18%;
  width: 42vw;
  max-width: 540px;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
  transform: rotate(22deg);
}
@media (max-width: 760px) { .app-hero-blob { display: none; } }

.app-intro {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 9vw, 120px);
  background: var(--cream-deep);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.app-intro .kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mocha-deep);
  margin: 0 0 22px;
}
.app-intro-body {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.28;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0;
}

/* Categories — alternating editorial rows */
.app-categories { padding: clamp(72px, 9vw, 132px) 0 0; }
.app-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.app-cat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.app-cat:first-child { border-top: none; }
@media (max-width: 880px) {
  .app-cat { grid-template-columns: 1fr; }
}

/* Alternate: even rows reverse text/image order */
.app-cat:nth-child(even) .app-cat-image { order: -1; }
@media (max-width: 880px) {
  .app-cat:nth-child(even) .app-cat-image { order: 0; }
}

.app-cat-text {}
.app-cat-num {
  font-family: var(--display);
  font-size: 12.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mocha-deep);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.app-cat-num::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mocha-deep);
  display: inline-block;
}
.app-cat-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.028em;
  line-height: 1;
  margin: 0 0 14px;
  color: var(--ink);
}
.app-cat-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: -0.018em;
  color: var(--mocha-deep);
  margin: 0 0 26px;
}
.app-cat-body {
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 56ch;
}
.app-cat-ref {
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  margin: 0;
  max-width: 48ch;
}
.app-cat-ref::before {
  content: "Reference / ";
  color: var(--mocha-deep);
  font-weight: 600;
}

/* Image slot for each category */
.app-cat-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--cream-deep);
}
.app-cat:nth-child(odd) .app-cat-image { aspect-ratio: 4 / 5; }
.app-cat:nth-child(even) .app-cat-image { aspect-ratio: 5 / 4; }
.app-cat-image img,
.app-cat-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.app-cat-image .media-empty {
  position: absolute;
  inset: 0;
}

/* Closing CTA */
.app-cta {
  margin-top: clamp(72px, 9vw, 132px);
  padding: clamp(72px, 11vw, 140px) 0 clamp(72px, 9vw, 132px);
  background: var(--ink);
  color: var(--cream);
}
.app-cta .eyebrow,
.app-cta .eyebrow .dot { color: var(--mocha); background: var(--mocha); }
.app-cta .eyebrow { color: var(--mocha); background: transparent; }
.app-cta-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.032em;
  margin: 0 0 28px;
  max-width: 20ch;
  color: var(--cream);
}
.app-cta-title .line { display: block; padding-bottom: 0.04em; }
.app-cta-body {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: rgba(236, 230, 217, 0.72);
  max-width: 56ch;
  margin: 0 0 40px;
}
.app-cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.app-cta-row .btn-primary {
  background: var(--mocha);
  color: var(--ink);
}
.app-cta-row .btn-primary:hover {
  background: var(--cream);
}
.app-cta-secondary {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--mocha);
  letter-spacing: 0.02em;
  transition: color 0.2s var(--ease-out);
}
.app-cta-secondary:hover { color: var(--cream); }

/* Smoother text scaling across all viewports — tightened ceiling so they
   never feel oversized on large monitors */
.hero-title    { font-size: clamp(40px, 7.4vw, 112px); }
.title-display { font-size: clamp(32px, 6.4vw, 88px); }
.manifesto-line{ font-size: clamp(30px, 7vw, 104px); }
.vision-title  { font-size: clamp(36px, 7vw, 108px); }
.big-num       { font-size: clamp(96px, 18vw, 280px); }
.fabric-stat-b .big-num { font-size: clamp(64px, 12vw, 180px); }
.perf-num      { font-size: clamp(44px, 7vw, 104px); }
.exclude-chip  { font-size: clamp(16px, 2vw, 26px); }

/* ============================================================
   MEDIUM (tablet & narrow desktop)
   ============================================================ */
@media (max-width: 1100px) {
  .nav { top: 12px; left: 12px; right: 12px; }
  .nav-inner { padding: 10px 12px 10px 16px; }
  .nav-brand { font-size: 14px; }
  .nav-brand sup { font-size: 0.5em; }
  .nav-cta { padding: 9px 16px; font-size: 12.5px; }
}

/* ============================================================
   SMALL DESKTOP / LARGE TABLET (760px–1024px)
   Desktop layout stays. Just tighten spacing and font ceilings.
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-py: clamp(80px, 11vw, 132px);
    --gutter: clamp(20px, 3.6vw, 40px);
  }
  .hero { min-height: auto; padding-top: clamp(96px, 12vh, 132px); }
  .hero-grid { gap: clamp(28px, 4vw, 56px); }
  .hero-badge-wrap { max-width: 420px; }
  .fabric-stats { gap: 36px; }
  .big-label { font-size: 19px; }
  .perf-stats { gap: 14px; }
  .perf-stat { padding: 30px 26px 26px; }
}

/* ============================================================
   TABLET / PHABLET (640px–760px)
   ============================================================ */
@media (max-width: 760px) {
  :root {
    --section-py: clamp(64px, 11vw, 104px);
    --gutter: clamp(18px, 4.4vw, 28px);
  }
  .nav-links { display: none; }
  .hero { padding: clamp(88px, 12vh, 112px) var(--gutter) 48px; }
  .hero-badge-wrap { max-width: 320px; margin: 0 auto; }

  .problem-header { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
  .problem-callout { margin-bottom: 48px; padding: 28px 24px; }
  .problem-callout p { font-size: 19px; }

  .fabric-stats { gap: 28px; }
  .big-label { font-size: 18px; margin-top: 8px; }
  .big-desc { font-size: 14px; }

  .perf-stats { gap: 12px; }
  .perf-stat { padding: 26px 22px 22px; border-radius: 18px; }
  .perf-label { font-size: 17px; }
  .perf-desc { font-size: 13.5px; }

  .testing-panel { padding: 26px 22px; border-radius: 20px; }
  .panel-title { font-size: 18px; }
  .panel-chem { padding: 18px 18px; }
  .panel-chem-name { font-size: 15px; }

  .vs-row { border-radius: 18px; }
  .vs-col { padding: 28px 24px; }
  .vs-col h3 { font-size: 22px; }

  .partners-grid { gap: 32px; }
  .partner-cta { position: static; padding: 28px 24px; }
  .partner-cta h3 { font-size: 22px; }

  .vision-body { gap: 28px; }
  .vision-body p { font-size: 15.5px; }
  .vision-categories span { padding: 8px 14px; font-size: 11.5px; }

  .footer-grid { gap: 32px; margin-bottom: 40px; }
  .footer-meta { flex-direction: column; gap: 12px; }
}

/* ============================================================
   PHONE
   ============================================================ */
@media (max-width: 600px) {
  :root {
    --section-py: 72px;
    --gutter: 20px;
  }
  body { font-size: 16px; }

  /* Hero — no horizontal scroll, full-bleed background blobs */
  .hero {
    min-height: 100vh;
    padding: 100px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-blob-1, .hero-blob-2 { width: 110vw; opacity: 0.1; }
  .hero-blob-1 { top: -8vh; left: -25vw; }
  .hero-blob-2 { bottom: -10vh; right: -28vw; }
  .hero-title { font-size: clamp(44px, 13vw, 80px); }
  .hero-lede { font-size: 15.5px; margin-bottom: 28px; }
  .hero-ctas { gap: 10px; }
  .btn { padding: 14px 22px; font-size: 14px; }
  .hero-badge-wrap { max-width: 260px; }
  .hero-scroll { display: none; }

  .marquee { padding: 16px 0; }
  .marquee-track { font-size: 14px; gap: 36px; }
  .marquee-track span { gap: 36px; }

  .manifesto { padding: 80px 20px; min-height: auto; }
  .manifesto-line { font-size: clamp(34px, 11vw, 64px); }

  /* Compounds become single column */
  .compounds { grid-template-columns: 1fr; border-top: none; }
  .compounds li { padding: 22px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .fabric-stats { grid-template-columns: 1fr; gap: 32px; }
  .big-num { font-size: clamp(96px, 36vw, 220px); }
  .fabric-stat-b .big-num { font-size: clamp(72px, 28vw, 160px); }

  .feedstock { grid-template-columns: 1fr; }
  .feedstock li { padding: 18px 22px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .feedstock li:last-child { border-bottom: none; }

  /* Performance stacks single column */
  .perf-stats { grid-template-columns: 1fr; }
  .perf-stat { grid-column: span 1 !important; }
  .perf-num { font-size: 72px; }

  /* Exclude — never pin on phone, wrap chips */
  .exclude-pin { height: auto; }
  .exclude-track {
    position: relative;
    top: auto;
    transform: none !important;
    flex-wrap: wrap;
    padding: 0 var(--gutter) var(--section-py);
    gap: 10px;
  }
  .exclude-chip {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 12px;
  }
  .exclude-chip .x { width: 24px; height: 24px; font-size: 12px; }
  .exclude-header { padding-bottom: 36px; }

  /* Testing panel */
  .panel-grid { grid-template-columns: 1fr; }
  .testing-panel-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .cleared-stamp { align-self: flex-start; }

  /* Compare cards stack */
  .compare-cards { grid-template-columns: 1fr; gap: 12px; }
  .compare-card { padding: 26px 22px; }
  .compare-card h3 { font-size: 22px; }

  /* VS row stacks */
  .vs-row { grid-template-columns: 1fr; }
  .vs-col { padding: 28px 22px; }

  /* Sustainability stacks */
  .sustain-pillars { grid-template-columns: 1fr; }
  .sustain-pillars li { padding: 26px 22px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .sustain-pillars li:last-child { border-bottom: none; }

  /* Partners — ideal list compact */
  .ideal-list li { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 0; }
  .ideal-list h3 { font-size: 19px; }
  .ideal-list p { font-size: 13.5px; }

  /* Vision body stacks */
  .vision-body { grid-template-columns: 1fr; }
  .vision-title { font-size: clamp(40px, 13vw, 80px); margin-bottom: 36px; }
  .vision-badge { width: 80vw; right: -25vw; bottom: -8vh; }

  /* Footer compacts */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-col a { font-size: 13.5px; }
  .footer-meta { font-size: 11.5px; }

  /* Hide rail on small */
  .rail { display: none; }
}

/* ============================================================
   ULTRA SMALL  (sub-380px)
   ============================================================ */
@media (max-width: 380px) {
  .hero-title { font-size: clamp(36px, 14vw, 56px); }
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .nav-brand { font-size: 13px; }
  .nav-badge { width: 22px; height: 22px; }
}

/* ============================================================
   LARGE / ULTRAWIDE — keep content from getting awkward
   ============================================================ */
@media (min-width: 1800px) {
  :root { --gutter: 80px; }
  .hero-title { font-size: 168px; }
  .title-display { font-size: 124px; }
}

/* ============================================================
   TOUCH TARGETS — ensure 44px minimum on touch devices
   ============================================================ */
@media (hover: none) {
  .btn, .nav-cta, .rail li, .panel-chem, .perf-stat {
    -webkit-tap-highlight-color: transparent;
  }
  .btn { min-height: 48px; }
  .nav-cta { min-height: 44px; }
}

/* ============================================================
   CUSTOM INSERTS — user-added images/videos via /admin
   ============================================================ */
.custom-insert {
  margin: 32px auto;
  max-width: 100%;
  padding: 0;
}
.custom-insert img,
.custom-insert video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.custom-insert-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink, #14161a);
  padding: 16px 0;
}

/* ---- Custom insert: heading ---- */
.custom-insert-heading {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink, #14161a);
  margin: 0;
  text-align: center;
}
.custom-insert-h1 { font-size: clamp(40px, 6vw, 72px); }
.custom-insert-h2 { font-size: clamp(32px, 4.5vw, 52px); }
.custom-insert-h3 { font-size: clamp(24px, 3.4vw, 36px); }
.custom-insert-h4 { font-size: 22px; }
.custom-insert-h5 { font-size: 18px; }
.custom-insert-h6 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.18em; }

/* ---- Custom insert: spacer ---- */
.custom-insert-spacer {
  margin: 0 auto;
  background: transparent;
}

/* ---- Custom insert: divider ---- */
.custom-insert-divider {
  border: none;
  height: 1px;
  width: 100%;
  background: rgba(20,22,26,0.12);
  margin: 0;
}
