:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5vw, 5.75rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --ink: #0c171e;
  --ink-2: #13222c;
  --ink-3: #1c2f3b;
  --ivory: #f5f2ec;
  --ivory-2: #ece7de;
  --line: #d9d2c6;
  --line-dark: rgba(245, 242, 236, 0.14);
  --text: #16232c;
  --muted: #5d6870;
  --light: #f5f2ec;
  --light-muted: rgba(245, 242, 236, 0.66);
  --red: #c8102e;
  --red-bright: #e0243f;
  --red-hover: #a90d26;

  --font-display: 'Jost', 'Futura', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --section: clamp(var(--space-16), 9vw, var(--space-32));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-style: normal; }

.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: var(--space-2) var(--space-4); z-index: 100; }
.skip:focus { left: var(--space-4); }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--space-5), 5vw, var(--space-16)); }

/* Type */
.eyebrow {
  font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  margin-bottom: var(--space-6);
  display: flex; align-items: center; gap: var(--space-3);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: var(--light-muted); }
.eyebrow--light::before { background: var(--red-bright); }

.h2 {
  font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl);
  line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.h2 em { color: var(--red); }
.h2--light { color: var(--light); }
.h2--light em { color: var(--red-bright); }
.muted { color: var(--muted); font-size: var(--text-sm); }
.num { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.1em; color: var(--red); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-3);
  background: var(--red); color: #fff; text-decoration: none;
  font-size: var(--text-sm); font-weight: 500; letter-spacing: 0.04em;
  padding: var(--space-4) var(--space-8); border-radius: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { background: var(--red-hover); }
.btn span { transition: transform 0.3s var(--ease); }
.btn:hover span { transform: translate(2px, -2px); }
.btn--small { padding: var(--space-3) var(--space-5); font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.link-line {
  color: var(--light); text-decoration: none; font-size: var(--text-sm); letter-spacing: 0.04em;
  padding-block: var(--space-2); background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}
.link-line:hover { background-size: 40% 1px; }

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--light);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  padding-block: var(--space-6); border-bottom: 1px solid transparent;
}
.header--scrolled { background: rgba(12, 23, 30, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: var(--space-3); border-color: var(--line-dark); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; background: var(--red); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: square; }
.lockup { display: inline-flex; flex-direction: column; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1; color: var(--light); }
.lockup__top { font-size: 17px; letter-spacing: 0.3em; margin-right: -0.3em; }
.lockup__sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10px; letter-spacing: 0.5em; color: #c9c3b8; }
.lockup__sub::before, .lockup__sub::after { content: ""; flex: 1; height: 1px; background: var(--red-bright); }
.lockup__sub::after { margin-left: -0.5em; }
.nav { display: flex; gap: var(--space-8); }
.nav a { text-decoration: none; font-size: var(--text-sm); color: var(--light-muted); transition: color 0.25s; }
.nav a:hover { color: var(--light); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--light); overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; transform: scale(1.06); animation: settle 2.6s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.hero__veil { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12,23,30,0.88) 0%, rgba(12,23,30,0.55) 45%, rgba(12,23,30,0.1) 100%),
  linear-gradient(0deg, rgba(12,23,30,0.95) 0%, rgba(12,23,30,0) 40%); }
.hero__content { position: relative; padding-top: var(--space-32); padding-bottom: var(--space-16); }
.hero__title { font-family: var(--font-display); font-weight: 300; font-size: var(--text-hero); line-height: 1.06; letter-spacing: -0.015em; margin-bottom: var(--space-8); }
.hero__title em { color: var(--red-bright); }
.hero__lede { max-width: 34rem; font-size: var(--text-base); color: var(--light-muted); margin-bottom: var(--space-10); }
.hero__actions { display: flex; align-items: center; gap: var(--space-8); flex-wrap: wrap; }
.hero__bar { position: relative; border-top: 1px solid var(--line-dark); }
.hero__bar-inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-5); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--light-muted); }
.hero__bar strong { color: var(--light); font-weight: 600; }
.hero__bar i, .footer i { font-style: normal; color: var(--red-bright); padding-inline: var(--space-2); }

/* Mobile menu */
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-btn { display: none; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-dark); cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--light); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-nav { display: flex; flex-direction: column; padding: var(--space-4) clamp(var(--space-5), 5vw, var(--space-16)) var(--space-8); background: var(--ink); border-top: 1px solid var(--line-dark); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__brand { padding-top: var(--space-8); }
.mobile-nav a { text-decoration: none; color: var(--light); font-size: var(--text-lg); font-weight: 300; padding-block: var(--space-4); border-bottom: 1px solid var(--line-dark); }
.header--open { background: var(--ink); }

/* Brief band */
.band { display: block; background: var(--red); color: #fff; text-decoration: none; transition: background 0.35s var(--ease); }
.band:hover { background: var(--red-hover); }
.band__inner { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; padding-block: var(--space-8); }
.band__title { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); font-weight: 300; letter-spacing: -0.01em; line-height: 1.15; }
.band__cta { font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; gap: var(--space-3); align-items: center; }
.band__cta span { transition: transform 0.3s var(--ease); }
.band:hover .band__cta span { transform: translate(3px, -3px); }

/* Network */
.network { background: var(--ink); color: var(--light); padding-block: var(--section); overflow: hidden; }
.network__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: center; }
.offices { margin-top: var(--space-10); display: grid; gap: 0; }
.offices li { display: flex; gap: var(--space-4); align-items: baseline; padding-block: var(--space-4); border-top: 1px solid var(--line-dark); }
.offices li:last-child { border-bottom: 1px solid var(--line-dark); }
.offices strong { display: block; font-weight: 500; font-size: var(--text-base); }
.offices span:not(.dot) { font-size: var(--text-xs); color: var(--light-muted); letter-spacing: 0.04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--light); flex: none; transform: translateY(-2px); }
.dot--red { background: var(--red-bright); box-shadow: 0 0 0 4px rgba(224, 36, 63, 0.22); }
.map { position: relative; }
.map svg { width: 100%; height: auto; display: block; overflow: visible; }
.map figcaption { margin-top: var(--space-3); font-size: 0.75rem; color: rgba(245,242,236,0.4); text-align: right; }
.map .land { fill: #1d313d; stroke: #0c171e; stroke-width: 0.5; }
.map .land--cn { fill: var(--red); }
.map .arc { fill: none; stroke: var(--red-bright); stroke-width: 1.4; stroke-linecap: round; }
.map .arc--faint { stroke: rgba(245,242,236,0.28); stroke-width: 1; stroke-dasharray: 2 4; }
.map .pt { fill: var(--light); }
.map .pt--hub { fill: #fff; }
.map .pulse { fill: none; stroke: var(--red-bright); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(3.2); opacity: 0; } }
.map .lbl { fill: var(--light); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.map .lbl--hub { font-size: 12px; }

/* Sections */
.section { padding-block: var(--section); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-12); align-items: end; margin-bottom: clamp(var(--space-12), 6vw, var(--space-20)); }
.sec-head__lede { color: var(--muted); max-width: 30rem; }

/* Sourcing */
.sourcing__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--space-10), 5vw, var(--space-20)); align-items: start; }
.sourcing__img { position: sticky; top: var(--space-24); overflow: hidden; }
.sourcing__img img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.cats { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-10); }
.cats li { display: grid; grid-template-columns: 2.25rem 1fr; padding-block: var(--space-6); border-top: 1px solid var(--line); transition: border-color 0.3s; }
.cats li:hover { border-top-color: var(--red); }
.cats .num { padding-top: 0.35em; }
.cats h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-base); color: var(--ink); margin-bottom: var(--space-2); line-height: 1.35; }
.cats p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }
.bespoke { margin-top: clamp(var(--space-12), 6vw, var(--space-20)); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(var(--space-10), 5vw, var(--space-20)); padding-top: var(--space-10); border-top: 1px solid var(--ink); }
.bespoke__q { font-family: var(--font-body); font-weight: 400; font-size: var(--text-lg); line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; }
.bespoke p:last-child { max-width: 38rem; color: var(--text); }

/* Approach */
.approach { background: var(--ivory-2); }
.approach__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(var(--space-12), 7vw, var(--space-24)); align-items: start; }
.approach__lede { font-size: var(--text-lg); line-height: 1.5; color: var(--text); margin-block: var(--space-8) var(--space-4); max-width: 34rem; }
.approach__img { margin-top: var(--space-12); overflow: hidden; }
.approach__img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.pillars { display: grid; gap: 0; padding-top: var(--space-2); }
.pillars li { padding-block: var(--space-10); border-top: 1px solid var(--line); }
.pillars li:first-child { padding-top: 0; border-top: 0; }
.pillars h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-block: var(--space-3) var(--space-4); }
.pillars p { color: var(--muted); }

/* Process */
.process { background: var(--ink); color: var(--light); padding-block: clamp(var(--space-12), 7vw, var(--space-24)); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: s; position: relative; margin-top: var(--space-4); }
.steps li { padding: var(--space-8) var(--space-6) 0 0; border-top: 1px solid var(--line-dark); position: relative; }
.steps li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--red-bright); }
.steps__n { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.75rem); line-height: 1; letter-spacing: -0.02em; color: var(--red-bright); margin-bottom: var(--space-4); }
.steps h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; margin-block: var(--space-2); }
.steps p { color: var(--light-muted); font-size: var(--text-sm); }

/* Projects */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(var(--space-10), 5vw, var(--space-20)); }
.cases { row-gap: var(--space-16); }
.cases li { display: grid; grid-template-columns: 2.75rem 1fr; column-gap: var(--space-2); align-content: start; }
.cases__img { grid-column: 1 / -1; overflow: hidden; margin-bottom: var(--space-6); }
.cases__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease); }
.cases li:hover .cases__img img { transform: scale(1.03); }
.cases .num { grid-row: span 2; padding-top: 0.4em; }
.cases h3 { font-family: var(--font-body); font-weight: 500; font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: var(--space-4); }
.cases p { color: var(--muted); }

/* Contact */
.contact { background: var(--ink-2); color: var(--light); padding-block: var(--section); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -25vw; top: -60%; width: 80vw; height: 220%; background: radial-gradient(closest-side, rgba(200,16,46,0.06), rgba(200,16,46,0) 100%); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--space-16); align-items: end; }
.contact__lede { color: var(--light-muted); margin-block: var(--space-6) var(--space-10); }
.wa {
  display: inline-grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-5);
  min-width: min(100%, 26rem); padding: var(--space-5) var(--space-6);
  background: transparent; border: 1px solid rgba(245,242,236,0.3); text-decoration: none; color: var(--light);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}
.wa-row { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.wa-row .wa { min-width: min(100%, 19rem); }
.wa:hover { background: #128c4a; border-color: #128c4a; }
.wa__icon { width: 28px; height: 28px; fill: #25d366; transition: fill 0.3s; }
.wa:hover .wa__icon { fill: #fff; }
.wa__text strong { display: block; font-weight: 600; font-size: var(--text-base); }
.wa__text span { font-size: var(--text-sm); color: var(--light-muted); letter-spacing: 0.03em; }
.wa:hover .wa__text span { color: rgba(255,255,255,0.85); }
.wa__arrow { font-size: var(--text-lg); transition: transform 0.3s var(--ease); }
.wa:hover .wa__arrow { transform: translate(3px, -3px); }
.qr { background: var(--ivory); padding: var(--space-5); text-align: center; }
.qr img { width: 160px; height: 160px; }
.qr figcaption { margin-top: var(--space-3); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Footer */
.footer { background: var(--ink); color: var(--light-muted); border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; padding-block: var(--space-8); font-size: var(--text-xs); letter-spacing: 0.08em; }
.footer__inner { align-items: center; }
.footer__brand .lockup__top { font-size: 15px; }
.footer__brand .lockup__sub { font-size: 9px; margin-top: 5px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.2s; }
.hero .reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1024px) {
  .network__grid, .approach__grid { grid-template-columns: 1fr; }
  .sourcing__grid { grid-template-columns: 1fr; }
  .sourcing__img { position: relative; top: 0; }
  .sourcing__img img { aspect-ratio: 16 / 9; object-position: center 40%; }
  .bespoke { grid-template-columns: 1fr; gap: var(--space-4); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .sec-head { grid-template-columns: 1fr; gap: var(--space-6); align-items: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: var(--space-10); }
  .cases { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
  .qr { justify-self: start; }
}
@media (max-width: 600px) {
  .cats { grid-template-columns: 1fr; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__mark svg { width: 22px; height: 22px; }
  .brand__name .lockup__top { font-size: 14px; letter-spacing: 0.26em; margin-right: -0.26em; }
  .brand__name .lockup__sub { font-size: 8.5px; margin-top: 5px; gap: 6px; }
  .hero__bar-inner { flex-direction: column; gap: var(--space-2); }
  .hero__veil { background: linear-gradient(0deg, rgba(12,23,30,0.96) 10%, rgba(12,23,30,0.55) 60%, rgba(12,23,30,0.35) 100%); }
  .hero__img { object-position: 62% center; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: var(--space-4); }
  .steps li { padding-right: var(--space-2); }
  .qr { display: none; }
  .wa { width: 100%; min-width: 0; }
  .header__actions .btn--small { display: none; }
}
.projects .sec-head { grid-template-columns: 1fr; }

.cases li:nth-child(2) .cases__img img { object-position: center 72%; }
.cases li:nth-child(3) .cases__img img { object-position: center 45%; }
.nowrap { white-space: nowrap; }
.cmail { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); margin-top: var(--space-8); font-size: 0.95rem; letter-spacing: 0.02em; }
.cmail a { color: var(--light); text-decoration: none; border-bottom: 1px solid #e0243f; padding-bottom: 3px; overflow-wrap: anywhere; transition: color 0.3s; }
.cmail a:hover { color: #e0243f; }
