/* ==========================================================
   Caesar Apparels Ltd — Home
   ========================================================== */

:root {
  --forest: #055428;        /* logo green */
  --forest-deep: #0b3d24;
  --pine: #0d2a1c;
  --leaf: #7cc596;          /* accent on dark */
  --leaf-soft: #a9d9b8;
  --bone: #f3f5f0;
  --paper: #ffffff;
  --mist: #e7ebe4;
  --line: #d7ddd5;
  --ink: #16211b;
  --muted: #5b6960;

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1280px;
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
main, .footer { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 16px; }

.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Type ---------- */
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 18px;
}
.kicker-light { color: var(--leaf); }
.h2 {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 450;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.body { color: var(--muted); max-width: 44ch; font-size: 16.5px; }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .word > span { display: inline-block; will-change: transform; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px;
  font-size: 15px; font-weight: 550;
  border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: #0a6a34; }
.btn-ghost { border: 1px solid rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--pine); border-color: #fff; }
.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--leaf-soft); }
.btn-outline { border: 1px solid var(--line); color: var(--ink); height: 44px; font-size: 14px; }
.btn-outline:hover { border-color: var(--forest); color: var(--forest); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--forest); font-weight: 600; font-size: 15px;
  padding-bottom: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.text-link:hover { background-size: 100% 1px; }
.text-link .ic { transition: transform .35s var(--ease); }
.text-link:hover .ic { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: #fff;
  transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), transform .45s var(--ease);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 88px; transition: height .4s var(--ease); }
.site-header.is-solid { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header.is-solid .header-inner { height: 72px; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-mark { width: 44px; aspect-ratio: 1320 / 940; overflow: hidden; flex: none; }
.brand-mark img { width: 100%; height: auto; }
.site-header:not(.is-solid) .brand-mark img { filter: brightness(0) invert(1); }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 36px; }
.nav a { font-size: 14.5px; font-weight: 500; position: relative; padding: 6px 0; opacity: .88; transition: opacity .3s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta { height: 42px; font-size: 14px; border-radius: 999px; padding: 0 20px; }
.site-header.is-solid .header-cta { border-color: var(--forest); color: var(--forest); }
.site-header.is-solid .header-cta:hover { background: var(--forest); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; margin-left: auto; place-items: center; }
.menu-lines { width: 24px; height: 10px; position: relative; display: block; }
.menu-lines span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-lines span:first-child { top: 0; }
.menu-lines span:last-child { top: 8.5px; }
.menu-open .menu-lines span:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .menu-lines span:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: var(--pine); color: #fff;
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; font-size: clamp(32px, 9vw, 44px); line-height: 1.25; letter-spacing: -.02em; }
.mobile-menu li { overflow: hidden; }
.mobile-menu-foot { color: rgba(255,255,255,.6); font-size: 14px; }
.mobile-menu-foot a { font-size: 14px; display: inline; color: var(--leaf); }
.menu-open .site-header { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .site-header .brand-mark img { filter: brightness(0) invert(1); }

/* Header sits on a light hero (About, Contact), so it starts dark */
.page-light .site-header:not(.is-solid) { color: var(--ink); }
.page-light .site-header:not(.is-solid) .brand-mark img { filter: none; }
.page-light .site-header:not(.is-solid) .header-cta { border-color: var(--ink); color: var(--ink); }
.page-light .site-header:not(.is-solid) .header-cta:hover { background: var(--ink); color: #fff; }
.page-light.menu-open .site-header { color: #fff; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  background: var(--pine);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slide { opacity: 0; visibility: hidden; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 50%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(8,30,19,.92) 0%, rgba(8,30,19,.72) 38%, rgba(8,30,19,.18) 75%),
    linear-gradient(0deg, rgba(8,30,19,.75) 0%, rgba(8,30,19,0) 40%),
    linear-gradient(180deg, rgba(8,30,19,.55) 0%, rgba(8,30,19,0) 22%);
}
.hero-content { padding-top: 140px; padding-bottom: clamp(40px, 6vh, 72px); }
.hero-kicker { color: var(--leaf); letter-spacing: .32em; }
.hero-title {
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.02;
  font-weight: 450;
  letter-spacing: -.035em;
  max-width: 17ch;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: normal; color: var(--leaf); }
.hero-lede { margin-top: 28px; max-width: 46ch; font-size: clamp(16px, 1.3vw, 18px); color: rgba(255,255,255,.82); }
.hero-actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.play-link { display: inline-flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.play-ring { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255,255,255,.55); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.play-ring svg { width: 18px; height: 18px; margin-left: 2px; }
.play-link:hover .play-ring { background: #fff; color: var(--pine); }

.hero-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-bottom: 32px;
  background: linear-gradient(rgba(255,255,255,.16), rgba(255,255,255,.16)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
  padding-top: 22px;
}
.hero-caption { font-size: 13px; color: rgba(255,255,255,.65); }
.hero-nav { display: flex; align-items: center; gap: 14px; }
.hero-count { font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.hero-count b { color: #fff; font-weight: 600; }
.hero-progress { width: 96px; height: 1px; background: rgba(255,255,255,.25); position: relative; overflow: hidden; margin-right: 8px; }
.hero-progress span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); display: grid; place-items: center; transition: background-color .3s, color .3s, border-color .3s; }
.round-btn:hover { background: #fff; color: var(--pine); border-color: #fff; }

/* ---------- Stats ---------- */
.stats { background: var(--bone); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; align-items: center; gap: 22px; padding: 38px 0 38px 32px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-ic { width: 34px; height: 34px; color: var(--forest); flex: none; }
.stat-num { font-size: clamp(28px, 2.6vw, 36px); font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Clients (infinite marquee) ---------- */
.clients { padding-top: var(--section); padding-bottom: calc(var(--section) * .6); border-bottom: 1px solid var(--line); }
.clients-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.clients-note { font-size: 15px; max-width: 36ch; }
.clients-rows { display: grid; gap: 4px; }
.clients-row {
  overflow: hidden;
  padding-block: 6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.clients-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.client {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: clamp(180px, 17vw, 240px); height: clamp(88px, 8vw, 112px);
  padding: 0 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  transition: border-color .45s var(--ease), background-color .45s var(--ease), opacity .45s var(--ease), transform .45s var(--ease);
}
.client::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--forest); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}

/* ---------- Story ---------- */
.story { padding-block: var(--section); }
.story-grid { display: grid; grid-template-columns: 1fr 1.45fr .5fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.story-copy .body { margin-top: 24px; }
.story-copy .text-link { margin-top: 32px; }
.story-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.story-media img { width: 100%; height: 118%; object-fit: cover; }
.story-values li {
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--forest);
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.story-values li:first-child { border-top: 1px solid var(--line); }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--bone); padding-block: var(--section); overflow: hidden; }

/* ---------- Products ---------- */
.products { padding-block: var(--section); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head-note { font-size: 15px; max-width: 34ch; }
.products-rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.product {
  position: relative; display: block; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: var(--radius);
  color: #fff; background: var(--mist);
}
.product img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.product::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,30,19,.78) 0%, rgba(8,30,19,0) 48%); transition: background-color .5s var(--ease); }
.product-name, .product .ic { position: absolute; z-index: 1; bottom: 18px; }
.product-name { left: 18px; font-size: 16px; font-weight: 550; }
.product .ic { right: 16px; transition: transform .4s var(--ease); }
.product:hover img { transform: scale(1.07); }
.product:hover::after { background-color: rgba(5,84,40,.28); }
.product:hover .ic { transform: translateX(4px); }

/* ---------- Process (pinned) ---------- */
.process { background: var(--pine); color: #fff; overflow: hidden; }
.process-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 96px 64px; }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(36px, 5vh, 56px); }
.process-meter { display: flex; align-items: center; gap: 16px; font-size: 13px; color: rgba(255,255,255,.6); font-variant-numeric: tabular-nums; }
.process-meter b { color: #fff; font-weight: 600; }
.process-meter-bar { width: 160px; height: 1px; background: rgba(255,255,255,.2); position: relative; }
.process-meter-bar span { position: absolute; inset: 0; background: var(--leaf); transform-origin: left; transform: scaleX(.1428); }
.process-track { padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); }
.process-list { display: flex; gap: 24px; width: max-content; padding-right: var(--gutter); }
.step { width: clamp(260px, 26vw, 340px); flex: none; }
.step figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; background: var(--forest-deep); }
.step img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.step-num { display: block; font-size: 13px; color: var(--leaf); font-weight: 600; letter-spacing: .1em; margin-bottom: 8px; }
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -.015em; }
.step p { margin-top: 10px; color: rgba(255,255,255,.66); font-size: 15px; max-width: 32ch; }

/* ---------- Sustainability ---------- */
.sustain { padding-block: var(--section); }
.sustain-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px); align-items: start; }
.sustain-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.3fr; background: var(--bone); border-radius: var(--radius); overflow: hidden; min-height: 440px; }
.sustain-copy { padding: clamp(28px, 4.5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.sustain-copy .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.sustain-copy .body { margin-top: 20px; }
.sustain-copy .text-link { margin-top: 30px; align-self: flex-start; }
.sustain-media { overflow: hidden; }
.sustain-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reach ---------- */
.reach { background: var(--bone); padding-block: clamp(64px, 8vw, 104px); }
.reach-grid { display: grid; grid-template-columns: 1fr 2fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.reach-copy .h2 { font-size: clamp(28px, 3.2vw, 42px); }
.reach-copy .btn { margin-top: 28px; }
.reach-map svg { width: 100%; height: auto; overflow: visible; }
.map-dots { color: #c3cdc2; }
.routes path { stroke: var(--forest); stroke-width: 1.3; opacity: .85; }
.nodes circle { fill: var(--forest); }
.nodes .origin { fill: var(--forest); stroke: var(--bone); stroke-width: 3; }
.nodes .origin-pulse { fill: var(--forest); opacity: .2; }
.labels text { font-family: var(--font); font-size: 12px; fill: var(--muted); paint-order: stroke; stroke: var(--bone); stroke-width: 5px; stroke-linejoin: round; }
.labels .origin-label { fill: var(--ink); font-weight: 600; font-size: 13px; }

/* ---------- Quality ---------- */
.quality { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); background: var(--forest-deep); color: #fff; overflow: hidden; }
.quality-media { position: relative; overflow: hidden; min-height: 100%; }
.quality-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.quality-media::after { content: ""; position: absolute; inset: 0; background: rgba(11,61,36,.35); }
.quality-body {
  padding-block: clamp(64px, 8vw, 112px);
  padding-left: clamp(32px, 6vw, 96px);
  padding-right: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.quality-title { font-size: clamp(28px, 2.8vw, 40px); font-weight: 450; line-height: 1.18; letter-spacing: -.02em; max-width: 20ch; }
.quality-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); max-width: 720px; }
.quality-steps li { padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; font-weight: 500; line-height: 1.4; }
.quality-steps span { display: block; font-size: 13px; color: var(--leaf); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* ---------- CTA ---------- */
.cta { background: var(--forest); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.cta-grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta-title { font-size: clamp(32px, 4vw, 52px); font-weight: 450; letter-spacing: -.03em; line-height: 1.05; }
.cta-note { color: rgba(255,255,255,.8); max-width: 34ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn { border-radius: 999px; }

/* ---------- Footer ---------- */
.footer { background: var(--paper); padding-top: clamp(56px, 6vw, 80px); font-size: 14.5px; }
.brand-dark { color: var(--forest); }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 24ch; }
.footer-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); transition: color .3s; }
.footer-col a:hover { color: var(--forest); }
.contact-list li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact-list .ic { color: var(--forest); width: 16px; height: 16px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.footer-social a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }


/* ---------- Clients: text wordmarks ---------- */
.client { width: auto; min-width: clamp(160px, 14vw, 200px); padding: 0 clamp(24px, 2.4vw, 36px); }
.client-name {
  font-size: clamp(15px, 1.25vw, 18px); font-weight: 650; letter-spacing: .02em; white-space: nowrap;
  color: var(--muted); opacity: .8;
  transition: color .45s var(--ease), opacity .45s var(--ease), transform .6s var(--ease);
}
.clients-row:hover .client { opacity: .5; }
.clients-row .client:hover { opacity: 1; border-color: var(--forest); background: var(--bone); transform: translateY(-4px); }
.client:hover::before { transform: scaleX(1); }
.client:hover .client-name { color: var(--forest); opacity: 1; transform: scale(1.06); }

/* ---------- Capabilities: service list ---------- */
.cap-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 104px); align-items: start; }
.cap-intro .body { margin-top: 22px; }
.cap-media { margin-top: clamp(32px, 4vw, 48px); aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius); }
.cap-media img { width: 100%; height: 118%; object-fit: cover; }
.cap-list { border-top: 1px solid var(--line); }
.cap-item {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px;
  padding: clamp(22px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line);
}
.cap-item::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.cap-item:hover::before { transform: scaleX(1); }
.cap-num { font-size: 14px; font-weight: 600; color: var(--forest); padding-top: 8px; font-variant-numeric: tabular-nums; }
.cap-item h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 450; letter-spacing: -.015em; line-height: 1.2; transition: color .4s var(--ease), transform .5s var(--ease); }
.cap-item p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 46ch; }
.cap-item:hover h3 { color: var(--forest); transform: translateX(6px); }

/* ---------- Fabrics ---------- */
.fabrics { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: clamp(32px, 4vw, 48px); }
.fabrics-title { font-size: 15px; font-weight: 600; }
.fabrics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fabrics-list li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--muted); }

/* ---------- Capacity ---------- */
.capacity {
  --seg-0: #21a878; --seg-1: #c98500; --seg-2: #3987e5; --seg-3: #d95926;
  --mx: 50%; --my: 40%;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--forest-deep); color: #fff;
  padding-block: var(--section);
}
.capacity-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx) var(--my), rgba(124,197,150,.16), transparent 60%);
}
.capacity-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.capacity-lede { color: rgba(255,255,255,.66); font-size: 15px; max-width: 38ch; text-align: right; }

.odometer { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px clamp(16px, 2.5vw, 40px); margin: clamp(12px, 2vw, 24px) 0 clamp(40px, 5vw, 72px); font-weight: 400; }
.odo-num {
  display: inline-flex; font-size: clamp(72px, 15vw, 224px); line-height: .9; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.odo-digit { display: inline-block; height: .9em; overflow: hidden; letter-spacing: 0; margin-right: -.04em; }
.odo-strip { display: block; will-change: transform; }
.odo-strip span { display: block; height: .9em; line-height: .9; }
.odo-sep { color: var(--leaf); }
.odo-unit { font-size: clamp(18px, 1.8vw, 26px); line-height: 1.2; color: var(--leaf); padding-bottom: .6em; letter-spacing: -.01em; }

.stack { position: relative; }
.stitch { display: block; width: 100%; height: 4px; margin-bottom: 14px; overflow: visible; }
.stitch line { stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 10 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.stack-bar { display: flex; gap: 3px; height: clamp(56px, 6vw, 84px); }
.seg { flex: var(--grow) 1 0; position: relative; cursor: default; }
.seg-fill {
  position: absolute; inset: 0; border-radius: 4px; transform-origin: left;
  background: var(--c);
  transition: opacity .4s var(--ease), transform .5s var(--ease), filter .4s var(--ease);
}
.seg[data-seg="0"], .legend-item[data-seg="0"] { --c: var(--seg-0); }
.seg[data-seg="1"], .legend-item[data-seg="1"] { --c: var(--seg-1); }
.seg[data-seg="2"], .legend-item[data-seg="2"] { --c: var(--seg-2); }
.seg[data-seg="3"], .legend-item[data-seg="3"] { --c: var(--seg-3); }
.seg-fill::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 2px, transparent 2px 9px);
  opacity: 0; transition: opacity .4s var(--ease);
}

.stack-legend { display: flex; gap: 3px; margin-top: 18px; }
.legend-item {
  flex: var(--grow) 1 0; min-width: 0;
  display: grid; gap: 4px; align-content: start;
  padding-top: 14px; border-top: 2px solid var(--c);
  transition: opacity .4s var(--ease);
}
.legend-item > :not(.legend-swatch) { padding-right: 16px; }
.legend-swatch { display: none; width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.legend-name { font-size: 15px; font-weight: 550; }
.legend-name small { display: block; font-size: 12.5px; font-weight: 500; color: var(--leaf); margin-top: 2px; }
.legend-value { font-size: clamp(20px, 1.9vw, 28px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.legend-value span { font-weight: 500; }
.legend-share { font-size: 13px; color: rgba(255,255,255,.55); }

/* hover: focus one category */
.stack.is-focus .seg-fill { opacity: .28; filter: saturate(.4); }
.stack.is-focus .legend-item { opacity: .35; }
.stack .seg.is-active .seg-fill { opacity: 1; filter: none; transform: scaleY(1.12); }
.stack .seg.is-active .seg-fill::after { opacity: 1; }
.stack .legend-item.is-active { opacity: 1; }

.capacity-facts {
  display: grid; grid-template-columns: 1fr 1fr 2fr; gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.fact-num { font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact-label { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.62); max-width: 46ch; }
.fact-live { display: flex; gap: 20px; align-items: flex-start; }
.live-ring { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); margin-top: -2px; }
.live-ring circle { fill: none; stroke-width: 3; }
.live-track { stroke: rgba(255,255,255,.14); }
.live-arc { stroke: var(--leaf); stroke-linecap: round; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; }
.fact-live .fact-num span { display: inline-block; color: var(--leaf); }

/* ---------- Certificates showcase ---------- */
.certificates { position: relative; background: var(--forest-deep); color: #fff; padding-block: var(--section); overflow: hidden; }
.cert-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.certificates .kicker { color: var(--leaf); }
.cert-head .body { color: rgba(255,255,255,.72); max-width: 44ch; font-size: 15.5px; }
.cert-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 8px; }
.cert-dots { display: flex; align-items: center; gap: 8px; }
.cert-dot { position: relative; width: 10px; height: 10px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.28); overflow: hidden; transition: width .5s var(--ease), background-color .3s; }
.cert-dot:hover { background: rgba(255,255,255,.55); }
.cert-dot[aria-current="true"] { width: 40px; background: rgba(255,255,255,.22); }
.cert-dot-fill { position: absolute; inset: 0; background: var(--leaf); border-radius: inherit; transform: scaleX(0); transform-origin: left; }
.cert-dot[aria-current="true"] .cert-dot-fill { transform: scaleX(1); }
.cert-dot:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }

.cert-viewport { overflow: hidden; }
.cert-track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  padding: 24px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 40px;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  cursor: grab;
}
.cert-track::-webkit-scrollbar { display: none; }
.cert-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.cert-track.is-dragging .cert-card { pointer-events: none; }
.cert { flex: none; width: clamp(240px, 21vw, 300px); scroll-snap-align: start; perspective: 900px; }
.cert-card { display: block; width: 100%; padding: 0; cursor: pointer; text-align: center; }
.cert-paper {
  position: relative; display: flex; flex-direction: column; align-items: center;
  aspect-ratio: 1 / 1.414; padding: 22px 22px 26px; overflow: hidden;
  background-color: #fbfaf5;
  background-image:
    repeating-radial-gradient(circle at 50% 30%, rgba(5,84,40,.05) 0 1px, transparent 1px 7px);
  color: var(--ink); border-radius: 4px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), 0 2px 0 rgba(255,255,255,.4) inset;
  transform-style: preserve-3d; will-change: transform;
}
.cert-paper::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(5,84,40,.35); outline: 3px double rgba(5,84,40,.18); outline-offset: -7px;
}
.cert-top { width: 100%; display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--forest); padding: 6px 6px 0; }
.cert-seal { width: 46%; margin-top: 12%; overflow: visible; }
.seal-outer { fill: none; stroke: var(--forest); stroke-width: 1.2; }
.seal-inner { fill: var(--forest); }
.seal-ring { transform-origin: 50px 50px; transition: transform 1.4s var(--ease); }
.seal-ring text { font-family: var(--font); font-size: 7px; font-weight: 600; letter-spacing: .08em; fill: var(--forest); }
.seal-initials { font-family: var(--font); font-size: 20px; font-weight: 600; fill: #fff; letter-spacing: .02em; }
.cert-card:hover .seal-ring, .cert-card:focus-visible .seal-ring { transform: rotate(120deg); }
.cert-title { margin-top: 10%; font-size: clamp(22px, 1.9vw, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.1; }
.cert-title sup { font-size: .45em; }
.cert-full { margin-top: 6px; font-size: 13.5px; color: var(--muted); padding-inline: 8px; }
.cert-rule { width: 40px; height: 1px; background: rgba(5,84,40,.4); margin: auto 0 14px; }
.cert-holder { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cert-holder b { display: block; margin-top: 4px; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.cert-glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), transparent 45%);
  mix-blend-mode: soft-light; transition: opacity .4s var(--ease);
}
.cert-card:hover .cert-glare { opacity: 1; }
.cert-card:focus-visible { outline: none; }
.cert-card:focus-visible .cert-paper { outline: 2px solid var(--leaf); outline-offset: 4px; }

/* Certificate dialog */
.cert-dlg {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 10px; background: var(--paper); color: var(--ink); overflow: hidden;
}
.cert-dlg::backdrop { background: rgba(13,42,28,.6); backdrop-filter: blur(4px); }
.cert-dlg-card { position: relative; display: grid; grid-template-columns: .9fr 1fr; max-height: inherit; }
.cert-dlg-media { background: var(--bone); padding: clamp(24px, 3vw, 40px); display: grid; place-items: center; }
.cert-dlg-media .cert-paper { width: min(100%, 340px); cursor: default; }
.cert-dlg-media img { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.35); }
.cert-dlg-body { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; overflow-y: auto; }
.cert-dlg-title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 450; letter-spacing: -.025em; line-height: 1.05; }
.cert-dlg-title sup { font-size: .45em; }
.cert-dlg-full { margin-top: 6px; font-size: 16px; color: var(--forest); font-weight: 550; }
.cert-dlg-text { margin-top: 18px; color: var(--muted); max-width: 44ch; }
.cert-dlg-specs { margin: 24px 0 0; border-top: 1px solid var(--line); }
.cert-dlg-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cert-dlg-specs dt { color: var(--muted); }
.cert-dlg-specs dd { margin: 0; font-weight: 550; text-align: right; }
.cert-dlg-actions [hidden] { display: none; }
.cert-dlg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.cert-dlg-close {
  position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
}
.cert-dlg-close span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ink); }
.cert-dlg-close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.cert-dlg-close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Reach lists ---------- */
.reach-body { margin-top: 18px; font-size: 15px; }
.markets { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.markets-title { font-size: 15px; font-weight: 600; color: var(--forest); margin-bottom: 12px; }
.markets-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; font-size: 14.5px; color: var(--muted); margin-bottom: 28px; }
.offices-list { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.offices-list b { display: block; font-weight: 600; color: var(--ink); }

/* ---------- Footer additions ---------- */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-motto { font-weight: 600; color: var(--forest) !important; }
.footer-brand p + p { margin-top: 6px; }
.footer-offices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; background: linear-gradient(var(--line), var(--line)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat; }
.footer-offices address { font-style: normal; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.footer-offices h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.footer-social { display: flex; gap: 10px; }
.footer-base {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 40px; padding-block: 20px; color: var(--muted); font-size: 13px;
  background: linear-gradient(var(--line), var(--line)) 50% 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .story-grid { grid-template-columns: 1fr 1.3fr; }
  .story-values { grid-column: 1 / -1; display: flex; gap: 32px; }
  .story-values li, .story-values li:first-child { border: 0; padding: 0; }
  .products-rail { grid-template-columns: repeat(4, 1fr); }
  .sustain-grid { grid-template-columns: 1fr; }
  .cert-head { grid-template-columns: 1fr; }
  .reach-grid { grid-template-columns: 1fr 1.6fr; }
  .markets { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 0 48px; }
  .markets-list { grid-template-columns: repeat(2, auto); }
  .offices-list { grid-template-columns: repeat(2, 1fr); gap: 10px 32px; }
  .markets-title:nth-of-type(2) { grid-column: 2; grid-row: 1; }
  .offices-list { grid-column: 2; grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-offices { grid-template-columns: 1fr 1fr; }
  .reach-grid { grid-template-columns: 1fr 1.6fr; }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .header-inner { height: 72px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 28px 0 28px 20px; border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }


  .cta-grid { grid-template-columns: 1fr; gap: 20px; }
  .cap-grid { grid-template-columns: 1fr; }
  .capacity-facts { grid-template-columns: 1fr 1fr; }
  .fact-live { grid-column: 1 / -1; }
  .quality { grid-template-columns: 1fr; }
  .quality-media { aspect-ratio: 16 / 7; }
  .quality-body { padding-inline: var(--gutter); }
}

@media (max-width: 720px) {
  .clients-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .clients-rows { gap: 0; }
  .clients-track { gap: 10px; }
  .hero-content { padding-top: 120px; }
  .hero-caption { display: none; }
  .hero-controls { justify-content: flex-end; }
  .hero-progress { width: 56px; }

  .stat { gap: 14px; }
  .stat-ic { width: 26px; height: 26px; }
  .stat-label { font-size: 11px; letter-spacing: .1em; }

  .story-grid { grid-template-columns: 1fr; }
  .story-values { gap: 20px; flex-wrap: wrap; }


  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .products-rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px;
    padding-bottom: 8px; scrollbar-width: none;
  }
  .products-rail::-webkit-scrollbar { display: none; }
  .product { flex: 0 0 62%; scroll-snap-align: start; }

  .process-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .process-pin { padding-block: 88px 48px; }
  .step { width: 78vw; }

  .sustain-feature { grid-template-columns: 1fr; min-height: 0; }
  .sustain-media { aspect-ratio: 16 / 10; order: -1; }
  .cert { width: 72vw; }
  .cert-dlg-card { grid-template-columns: 1fr; overflow-y: auto; }
  .cert-dlg-media .cert-paper { width: 220px; }

  .reach-grid { grid-template-columns: 1fr; }
  .labels text { font-size: 19px; stroke-width: 7px; }
  .labels .origin-label { font-size: 20px; }

  .quality-steps { grid-template-columns: 1fr; gap: 0; }
  .quality-steps li { display: flex; align-items: baseline; gap: 16px; padding-block: 14px; }
  .quality-steps span { margin: 0; }

  .cta-actions .btn { flex: 1 1 auto; justify-content: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-offices { grid-template-columns: 1fr; gap: 20px; }
  .footer-base { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .markets { display: block; }
  .offices-list { grid-template-columns: 1fr 1fr; }
  .cap-item { grid-template-columns: 40px 1fr; }
  .fabrics { flex-direction: column; align-items: flex-start; }
  .capacity-head { flex-direction: column; gap: 0; }
  .capacity-lede { text-align: left; }
  .odo-num { font-size: 23vw; }
  .odo-unit { padding-bottom: 0; }
  .stack-bar { height: 44px; }
  .stack-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .legend-item { border-top: 0; padding: 0; grid-template-columns: 10px 1fr; column-gap: 10px; }
  .legend-swatch { display: block; margin-top: 5px; grid-row: 1 / span 3; }
  .legend-name, .legend-value, .legend-share { grid-column: 2; }

}

@media (prefers-reduced-motion: reduce) {
  .clients-row { overflow-x: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Pre-animation states (only when JS + GSAP are running) */
.js .site-header,
.js .hero-kicker,
.js .hero-lede,
.js .hero-actions,
.js .hero-controls { opacity: 0; }
.js .hero-title .line > span { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) {
  .js .site-header, .js .hero-kicker, .js .hero-lede, .js .hero-actions, .js .hero-controls { opacity: 1; }
  .js .hero-title .line > span { transform: none; }
}
