/* ==========================================================================
   LAB MULTISERVICE FZ — design system
   Palette: bone / basalt / leather ochre / desert clay
   Djibouti is a country of salt flats, basalt and the Red Sea; the palette is
   taken from that ground rather than from a fashion mood board.
   ========================================================================== */

:root {
  /* Colour */
  --paper:        #FBF8F3;
  --paper-warm:   #F2ECE1;
  --stone:        #E4DACA;
  --stone-deep:   #CDBFA8;
  --ink:          #17130F;
  --ink-75:       #42392F;
  --ink-55:       #6E6154;
  --ink-35:       #756757;   /* muted label tone — AA verified on paper and clay */
  --jade:         #A6572A;   /* leather ochre — fills, rules, meters */
  --jade-text:    #8C4720;   /* ochre for TEXT — AA on every ground we use */
  --jade-deep:    #6E3716;
  --jade-pale:    #F3E7DA;

  --line:         rgba(23, 19, 15, .16);
  --line-soft:    rgba(23, 19, 15, .09);
  --line-invert:  rgba(251, 248, 243, .2);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;

  /* Space */
  --gutter: clamp(1.25rem, .6rem + 2.6vw, 3.5rem);
  --maxw: 1680px;
  --readw: 68ch;
  --section-y: clamp(4.5rem, 3rem + 8vw, 10rem);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 400ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .16vw, 1.0625rem);
  line-height: 1.72;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* no overflow-x: hidden — there is nothing left to hide, and on WebKit it
     interferes with sticky positioning and can trap the scroll */
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Focus & skip ---------- */
:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}
.on-ink :focus-visible { outline-color: var(--stone); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: .9rem 1.4rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
}
.skip:focus { left: .5rem; top: .5rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.5rem, 1.3rem + 5.3vw, 5.75rem); line-height: .95; letter-spacing: -.045em; }
.d2 { font-size: clamp(1.95rem, 1.25rem + 3.1vw, 3.75rem); line-height: 1.0; letter-spacing: -.04em; }
.d3 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.35rem); line-height: 1.08; letter-spacing: -.03em; }
.d4 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
em, .italic { font-style: italic; }
h1 em, h2 em, h3 em { font-style: normal; font-weight: 400;
  font-variation-settings: "wdth" 88; color: var(--jade-text); }

.label {
  display: block;
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--jade-text);
  line-height: 1.4;
}
.label--muted { color: var(--ink-35); }
.on-ink .label { color: var(--stone-deep); }
.on-ink .label--jade { color: #D69463; }

.lede {
  font-size: clamp(1.125rem, 1.02rem + .5vw, 1.4375rem);
  line-height: 1.55;
  color: var(--ink-75);
  letter-spacing: -.011em;
  max-width: 46ch;
  text-wrap: pretty;
}
.body-copy { max-width: var(--readw); color: var(--ink-75); text-wrap: pretty; }
.body-copy > * + * { margin-top: 1.15em; }
.body-copy strong { color: var(--ink); font-weight: 600; }
.small { font-size: .875rem; line-height: 1.6; color: var(--ink-55); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
}
@media (max-width: 900px) { .grid12 { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 600px) { .grid12 { grid-template-columns: repeat(2, 1fr); } }

.rule { height: 1px; background: var(--line); border: 0; }
.on-ink { background: var(--ink); color: var(--paper); }
.on-ink .body-copy, .on-ink .lede { color: rgba(251, 248, 243, .72); }
.on-ink .small { color: rgba(251, 248, 243, .55); }
.on-stone { background: var(--paper-warm); }
.on-jade-pale { background: var(--jade-pale); }

/* ---------- Section head ---------- */
.sec-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.sec-head__label { grid-column: 1 / 3; }
.sec-head__title { grid-column: 3 / 9; }
.sec-head__aside { grid-column: 10 / 13; padding-top: .5rem; }
@media (max-width: 1100px) {
  .sec-head__label { grid-column: 1 / 13; }
  .sec-head__title { grid-column: 1 / 10; }
  .sec-head__aside { grid-column: 1 / 10; }
}
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-head__label, .sec-head__title, .sec-head__aside { grid-column: 1; }
}
.sec-head__label::before {
  content: ""; display: block; width: 100%; height: 1px;
  background: var(--line); margin-bottom: 1rem;
}
.on-ink .sec-head__label::before { background: var(--line-invert); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.0625rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--btn-bg);
  overflow: hidden;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(5px); }
.btn:hover { --btn-bg: var(--jade); border-color: var(--jade); }
.btn--jade { --btn-bg: var(--jade); }
.btn--jade:hover { --btn-bg: var(--jade-deep); border-color: var(--jade-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--paper); border-color: var(--ink); }
.on-ink .btn--ghost { --btn-fg: var(--paper); border-color: var(--line-invert); }
.on-ink .btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); border-color: var(--paper); }
.on-ink .btn--solid { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.on-ink .btn--solid:hover { --btn-bg: var(--jade); --btn-fg: var(--paper); border-color: var(--jade); }

.link-u {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link-u:hover { border-color: var(--jade); color: var(--jade-text); }
.link-u .arrow { transition: transform var(--dur) var(--ease); }
.link-u:hover .arrow { transform: translateX(5px); }
.on-ink .link-u { border-color: var(--line-invert); }
.on-ink .link-u:hover { color: #D69463; border-color: #D69463; }

/* ---------- Photo treatment (unified editorial grade) ---------- */
.ph {
  position: relative;
  overflow: hidden;
  background: var(--stone);
}
.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.86) contrast(1.05) brightness(1.01) sepia(.06);
  transition: transform 900ms var(--ease), filter var(--dur) var(--ease);
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(229,224,216,.10), rgba(23,19,15,.06));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.ph--1x1  { aspect-ratio: 1; }
.ph--4x5  { aspect-ratio: 4 / 5; }
.ph--3x4  { aspect-ratio: 3 / 4; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--21x9 { aspect-ratio: 21 / 9; }
.ph--tall { aspect-ratio: 2 / 3; }

/* Hover: image scales, caption slides in */
.hover-card { position: relative; display: block; }
.hover-card .ph img { transform: scale(1.001); }
.hover-card:hover .ph img,
.hover-card:focus-visible .ph img { transform: scale(1.045); filter: saturate(.86) contrast(1.05); }
.hover-card__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(1.25rem, 1rem + 1vw, 2.25rem);
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(23,19,15,.78));
}
.hover-card__cap .sub {
  display: block;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-height var(--dur) var(--ease), opacity var(--dur) var(--ease),
              transform var(--dur) var(--ease), margin var(--dur) var(--ease);
}
.hover-card:hover .hover-card__cap .sub,
.hover-card:focus-visible .hover-card__cap .sub {
  max-height: 8rem; opacity: 1; transform: none; margin-top: .6rem;
}

/* ---------- Full-bleed texture divider ---------- */
.divider {
  position: relative;
  min-height: clamp(240px, 34vh, 460px);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.divider__media { position: absolute; inset: -12% 0; }
.divider__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) contrast(1.05); }
.divider::after {
  content: ""; position: absolute; inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(23,19,15,.46) 0%, rgba(23,19,15,.72) 100%),
    rgba(23,19,15,.34);
}
.divider__inner {
  position: relative; z-index: 3;
  text-align: center; color: var(--paper);
  padding-inline: var(--gutter);
  max-width: 60ch;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="mask"] { transform: none; clip-path: inset(0 0 100% 0); opacity: 1;
  transition: clip-path 1100ms var(--ease); }
[data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }

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

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              transform 500ms var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead__inner {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  height: 76px;
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter);
}
.masthead[data-solid="true"] {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom-color: var(--line-soft);
}
.masthead[data-hidden="true"] { transform: translateY(-100%); }

.wordmark {
  font-family: var(--display);
  font-size: 1.1875rem;
  letter-spacing: .3em;
  font-weight: 700;
  font-variation-settings: "wdth" 100;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.wordmark sup {
  font-family: var(--sans);
  font-size: .5rem; letter-spacing: .18em; font-weight: 600;
  vertical-align: super; margin-left: .35em; color: var(--jade-text);
}

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.5rem); margin-left: auto; }
.nav__link {
  position: relative;
  font-size: .75rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  padding: .55rem .25rem;
  color: var(--ink-75);
  transition: color var(--dur) var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"], .nav__link[aria-expanded="true"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: clamp(.5rem, 1vw, 1.25rem); }
.nav__cta .btn { padding: .8125rem 1.375rem; }

/* Header over dark hero */
.masthead[data-theme="invert"][data-solid="false"] { color: var(--paper); }
.masthead[data-theme="invert"][data-solid="false"] .nav__link { color: rgba(251,248,243,.78); }
.masthead[data-theme="invert"][data-solid="false"] .nav__link:hover { color: var(--paper); }
.masthead[data-theme="invert"][data-solid="false"] .btn--ghost { --btn-fg: var(--paper); border-color: rgba(251,248,243,.32); }
.masthead[data-theme="invert"][data-solid="false"] .btn--ghost:hover { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.masthead[data-theme="invert"][data-solid="false"] .burger span { background: var(--paper); }
/* the wordmark superscript sits on photography until the bar goes solid */
.masthead[data-theme="invert"][data-solid="false"] .wordmark sup { color: #D69463; }


/* Mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 24px 60px -30px rgba(23,19,15,.28);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 260ms;
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: none; }
.mega__inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(2rem, 1.5rem + 2vw, 3.5rem) var(--gutter);
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.mega__intro { grid-column: 1 / 4; }
.mega__items { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1300px) { .mega__items { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1100px) {
  .mega__intro { grid-column: 1 / 13; }
  .mega__items { grid-column: 1 / 13; grid-template-columns: repeat(4, 1fr); }
}
.mega__item { display: block; }
.mega__item .ph { margin-bottom: 1rem; }
.mega__item .ph img { transition: transform 700ms var(--ease); }
.mega__item:hover .ph img { transform: scale(1.05); }
.mega__item h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.mega__item p { font-size: .875rem; color: var(--ink-55); line-height: 1.55; }

/* Burger + mobile drawer */
.burger {
  display: none; margin-left: auto;
  width: 44px; height: 44px; position: relative;
}
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 300ms var(--ease), opacity 200ms var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 190;
  background: var(--paper);
  padding: 96px var(--gutter) 2rem;
  overflow-y: auto;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 320ms var(--ease), visibility 320ms;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav > li { border-bottom: 1px solid var(--line-soft); }
.drawer__nav a, .drawer__nav .drawer__parent {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  letter-spacing: -.02em; padding: .7em 0; text-align: left;
}
.drawer__sub { padding-bottom: 1.25rem; display: none; }
.drawer__sub[data-open="true"] { display: block; }
.drawer__sub a {
  font-family: var(--sans); font-size: .9375rem; letter-spacing: 0;
  padding: .5rem 0 .5rem 1.25rem; color: var(--ink-55);
  border-left: 1px solid var(--line); margin-left: .25rem;
}
.drawer__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 1rem; }

/* The horizontal nav needs room for six labels and the button before it
   starts crowding. Below that the drawer takes over. */
@media (max-width: 1180px) {
  .nav, .nav__cta { display: none; }
  .burger { display: block; }
}
body[data-locked="true"] { overflow: hidden; }

/* Above the burger breakpoint the drawer must be inert: otherwise resizing
   with it open leaves a full-screen panel and no visible way to close it. */
@media (min-width: 1081px) {
  .drawer { display: none; }
}


/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.62) contrast(1.06);
}
.hero__media video { opacity: 0; transition: opacity 1200ms var(--ease); }
.hero__media video[data-ready="true"] { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(23,19,15,.58) 0%, rgba(23,19,15,.34) 38%, rgba(23,19,15,.88) 100%),
    linear-gradient(90deg, rgba(23,19,15,.72) 0%, rgba(23,19,15,.34) 46%, rgba(23,19,15,.05) 78%);
}
.hero__inner {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding: 0 var(--gutter) clamp(3rem, 2rem + 5vw, 6rem);
}
.hero__title { max-width: 18ch; margin-block: 1.75rem 1.5rem; }
.hero__sub { max-width: 48ch; color: rgba(251,248,243,.82); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; }
.hero__meta {
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,248,243,.2);
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(251,248,243,.62);
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(3rem, 2rem + 5vw, 6rem);
  z-index: 2; writing-mode: vertical-rl;
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(251,248,243,.6);
  display: flex; align-items: center; gap: 1rem;
}
.hero__scroll::after {
  content: ""; width: 1px; height: 56px; background: rgba(251,248,243,.35);
  animation: scrollpulse 2.4s var(--ease) infinite;
}
@keyframes scrollpulse {
  0%, 100% { transform: scaleY(.25); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}
@media (max-width: 700px) { .hero__scroll { display: none; } }

/* Page hero (interior pages) */
.phero {
  position: relative;
  padding-top: clamp(9rem, 7rem + 8vw, 13rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: var(--ink); color: var(--paper);
  overflow: hidden;
}
.phero__media { position: absolute; inset: 0; opacity: .42; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.4) contrast(1.05); }
.phero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,19,15,.72), rgba(23,19,15,.52)),
    linear-gradient(90deg, rgba(23,19,15,.55), rgba(23,19,15,.1) 70%);
}
.phero__inner { position: relative; z-index: 2; }
.phero__title { max-width: 20ch; margin-block: 1.5rem 1.25rem; }
.phero__sub { max-width: 52ch; color: rgba(251,248,243,.8); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .6rem;
          font-size: .6875rem; letter-spacing: .16em;
          text-transform: uppercase; color: rgba(251,248,243,.55); }
/* 24px minimum target size (WCAG 2.5.8) */
.crumbs a, .crumbs span { display: inline-block; padding-block: .45rem; }
.crumbs a:hover { color: var(--paper); }

/* ==========================================================================
   COUNTERS / STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stats > * { border-left: 1px solid var(--line); padding: clamp(1.75rem, 1rem + 2vw, 3rem) clamp(1rem, .5rem + 1.5vw, 2rem); }
.stats > *:first-child { border-left: 0; padding-left: 0; }
.on-ink .stats > * { border-color: var(--line-invert); }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > *:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats > *:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; }
  .stats > * { border-left: 0; padding-left: 0; }
  .stats > * + * { border-top: 1px solid var(--line); } }
.stat__num {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: .06em;
}
.stat__suffix { font-size: .42em; letter-spacing: -.01em; color: var(--jade-text); }
.on-ink .stat__suffix { color: #D69463; }
.stat__cap { margin-top: .9rem; font-size: .8125rem; color: var(--ink-55); line-height: 1.5; max-width: 24ch; }
.on-ink .stat__cap { color: rgba(251,248,243,.6); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(2.5rem, 5vw, 5.5rem); padding-right: clamp(2.5rem, 5vw, 5.5rem); }
.marquee__item {
  font-family: var(--display); font-size: clamp(1.1rem, .9rem + .8vw, 1.6rem);
  letter-spacing: .1em; white-space: nowrap;
  color: var(--ink-35);
  filter: grayscale(1);
  transition: color var(--dur) var(--ease);
}
.marquee__item:hover { color: var(--ink); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ==========================================================================
   EDITORIAL BLOCKS
   ========================================================================== */
.split--top { align-items: start; }
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 5rem); align-items: center; }
.split__media { grid-column: 1 / 7; }
.split__body  { grid-column: 8 / 12; }
.split--flip .split__media { grid-column: 7 / 13; order: 2; }
.split--flip .split__body  { grid-column: 2 / 7; order: 1; }
@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; }
  .split__media, .split__body,
  .split--flip .split__media, .split--flip .split__body { grid-column: 1; order: initial; }
}
.stack-media { display: grid; gap: clamp(1rem, .5rem + 1.5vw, 2rem); }
.offset-up { margin-top: clamp(-6rem, -4vw, -2rem); }
@media (max-width: 1000px) { .offset-up { margin-top: 0; } }

/* Division tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr; } }
.tile {
  position: relative; display: block; background: var(--paper);
  overflow: hidden; isolation: isolate;
}
.tile .ph { aspect-ratio: 3 / 4; }
.tile .ph img { transition: transform 1000ms var(--ease), filter var(--dur) var(--ease); }
.tile:hover .ph img { transform: scale(1.06); filter: saturate(.86) contrast(1.06); }
.tile__body {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(23,19,15,.05) 20%, rgba(23,19,15,.85));
}
.tile__idx { font-size: .6875rem; letter-spacing: .2em; color: rgba(251,248,243,.6); }
.tile__title { margin-block: .6rem .35rem; }
.tile__desc {
  font-size: .9375rem; line-height: 1.55; color: rgba(251,248,243,.78);
  max-height: 0; opacity: 0; overflow: hidden; transform: translateY(6px);
  transition: max-height 500ms var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease), margin var(--dur) var(--ease);
}
.tile:hover .tile__desc, .tile:focus-visible .tile__desc { max-height: 10rem; opacity: 1; transform: none; margin-top: .5rem; }
.tile__more { margin-top: 1.25rem; font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase;
              display: inline-flex; gap: .5rem; align-items: center; }
.tile:hover .tile__more .arrow { transform: translateX(5px); }
.tile__more .arrow { transition: transform var(--dur) var(--ease); }

/* Lookbook strip */
.lookbook { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, .5rem + 1.5vw, 2rem); align-items: start; }
.lookbook__a { grid-column: 1 / 6; }
.lookbook__b { grid-column: 6 / 10; margin-top: clamp(2rem, 6vw, 7rem); }
.lookbook__c { grid-column: 10 / 13; }
@media (max-width: 1000px) {
  .lookbook { grid-template-columns: repeat(2, 1fr); }
  .lookbook__a { grid-column: 1 / 2; } .lookbook__b { grid-column: 2 / 3; margin-top: 3rem; }
  .lookbook__c { grid-column: 1 / 3; }
}
.cap {
  margin-top: .9rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .15rem 1rem;
  font-size: .8125rem; color: var(--ink-55);
}
.cap > span:last-child { margin-left: auto; text-align: right; }

/* Certification bar */
.certs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cert {
  flex: 1 1 200px; background: var(--paper);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  display: flex; flex-direction: column; gap: .4rem;
  transition: background var(--dur) var(--ease);
}
.cert:hover { background: var(--jade-pale); }
.cert__mark { font-family: var(--display); font-size: 1.0625rem; letter-spacing: .01em; }
.cert__note { font-size: .75rem; color: var(--ink-55); line-height: 1.5; }
.on-ink .certs { background: var(--line-invert); border-color: var(--line-invert); }
.on-ink .cert { background: var(--ink); }
.on-ink .cert:hover { background: #201A15; }
.on-ink .cert__note { color: rgba(251,248,243,.55); }

/* Cards */
.cards { display: grid; gap: clamp(1.25rem, 1rem + 1.5vw, 2.5rem); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards--2, .cards--3, .cards--4 { grid-template-columns: 1fr; } }
.card-min { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.card-min h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.card-min p { font-size: .9375rem; color: var(--ink-55); line-height: 1.6; }
.on-ink .card-min { border-color: var(--line-invert); }
.on-ink .card-min p { color: rgba(251,248,243,.62); }

/* Numbered process journey */
.journey { counter-reset: jstep; display: grid; gap: 0; }
.jstep {
  display: grid; grid-template-columns: 5rem 1fr minmax(0, 40%);
  gap: clamp(1rem, 1rem + 2vw, 3.5rem);
  padding-block: clamp(1.75rem, 1.25rem + 2vw, 3rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.jstep:last-child { border-bottom: 1px solid var(--line); }
.on-ink .jstep { border-color: var(--line-invert); }
.jstep__n {
  counter-increment: jstep;
  font-family: var(--display); font-size: 1.125rem; color: var(--jade-text);
  font-variant-numeric: tabular-nums;
}
.jstep__n::before { content: counter(jstep, decimal-leading-zero); }
.on-ink .jstep__n { color: #D69463; }
.jstep__t h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
.jstep__t .meta { margin-top: .6rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-35); }
.jstep__d { font-size: .9375rem; line-height: 1.65; color: var(--ink-55); }
.on-ink .jstep__d { color: rgba(251,248,243,.62); }
@media (max-width: 900px) {
  .jstep { grid-template-columns: 3rem 1fr; }
  .jstep__d { grid-column: 2 / 3; }
}

/* Timeline */
.timeline { display: grid; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 8rem 1fr; gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item:hover { background: var(--paper-warm); }
.tl-year { font-family: var(--display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); color: var(--jade-text); line-height: 1; }
.tl-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tl-body p { font-size: .9375rem; color: var(--ink-55); max-width: 62ch; line-height: 1.65; }
@media (max-width: 640px) { .tl-item { grid-template-columns: 1fr; gap: .75rem; } }

/* Spec / fabric tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { min-width: 640px; font-size: .875rem; }
.spec-table caption { text-align: left; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
                      color: var(--ink-35); padding-bottom: 1rem; }
.spec-table th, .spec-table td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table thead th {
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .85rem;
}
.spec-table tbody th { font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--ink-55); }
.spec-table tbody tr:hover td, .spec-table tbody tr:hover th { color: var(--ink); }
.on-ink .spec-table th, .on-ink .spec-table td { border-color: var(--line-invert); }
.on-ink .spec-table thead th { color: var(--paper); }
.on-ink .spec-table td { color: rgba(251,248,243,.62); }

/* Definition rows */
.deflist { border-top: 1px solid var(--line); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.deflist > div {
  display: grid;
  /* the term column has to scale with its container — a fixed 15rem collapses
     the value column when the list sits inside a narrow editorial column */
  grid-template-columns: minmax(7rem, 32%) 1fr;
  gap: clamp(1rem, 2vw, 2.5rem);
  padding-block: 1.25rem; border-bottom: 1px solid var(--line-soft);
}
.deflist dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-35); }
.deflist dd { font-size: .9375rem; color: var(--ink-75); }
@media (max-width: 860px) { .deflist > div { grid-template-columns: 1fr; gap: .35rem; } }
.on-ink .deflist, .on-ink .deflist > div { border-color: var(--line-invert); }
.on-ink .deflist dd { color: rgba(251,248,243,.72); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  font-size: .75rem; letter-spacing: .06em;
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 100px;
  color: var(--ink-55);
}
.pill--jade { border-color: rgba(166,87,42,.42); color: var(--jade-text); background: var(--jade-pale); }
.on-ink .pill { border-color: var(--line-invert); color: rgba(251,248,243,.7); }

/* Progress meters */
.meter { margin-top: 1rem; }
.meter__bar { height: 3px; background: var(--stone); position: relative; overflow: hidden; }
.on-ink .meter__bar { background: var(--line-invert); }
.meter__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; background: var(--jade);
  transition: width 1400ms var(--ease);
}
.on-ink .meter__fill { background: #D69463; }

/* ==========================================================================
   JOURNAL
   ========================================================================== */
.article-lead { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.article-lead__media { grid-column: 1 / 8; }
.article-lead__body { grid-column: 8 / 13; }
@media (max-width: 1000px) { .article-lead { grid-template-columns: 1fr; }
  .article-lead__media, .article-lead__body { grid-column: 1; } }
.post-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; font-size: .6875rem;
             letter-spacing: .16em; text-transform: uppercase; color: var(--ink-35); }
.post-meta .dot { color: var(--stone-deep); }
.post-card { display: grid; gap: 1.25rem; }
.post-card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.post-card p { font-size: .9375rem; color: var(--ink-55); line-height: 1.65; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
.prose p { color: var(--ink-75); }
.prose ul { display: grid; gap: .7rem; }
.prose li { position: relative; padding-left: 1.4rem; color: var(--ink-75); }
.prose li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45rem; height: 1px; background: var(--jade); }
.prose blockquote {
  border-left: 2px solid var(--jade); padding: .25rem 0 .25rem 1.75rem;
  font-family: var(--display); font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem);
  line-height: 1.3; letter-spacing: -.02em;
}
.prose figure { margin-block: 2.5em; }
.prose figcaption { margin-top: .8rem; font-size: .8125rem; color: var(--ink-35); }

/* ==========================================================================
   FORMS
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1.75rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.f-full { grid-column: 1 / -1; }
.field { display: block; }
.field__label {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-55); margin-bottom: .65rem;
}
.field__req { color: var(--jade-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 0; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  font-size: 1rem; color: var(--ink);
  transition: border-color var(--dur) var(--ease);
  border-radius: 0;
}
.field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236A6A72' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .25rem center;
  padding-right: 1.75rem; cursor: pointer;
}
.field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--jade); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-35); }
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-bottom-color: #B3402E; }
.field__error { display: none; margin-top: .5rem; font-size: .8125rem; color: #B3402E; }
.field[data-invalid="true"] .field__error { display: block; }

.file-drop {
  border: 1px dashed var(--line); padding: 1.75rem; text-align: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  cursor: pointer; display: block;
}
.file-drop:hover, .file-drop[data-drag="true"] { border-color: var(--jade); background: var(--jade-pale); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop__name { display: block; margin-top: .6rem; font-size: .8125rem; color: var(--jade); }

.check { display: flex; gap: .85rem; align-items: flex-start; font-size: .875rem; color: var(--ink-55); line-height: 1.55; }
/* 24px minimum target size (WCAG 2.5.8) */
.check input { width: 1.5rem; height: 1.5rem; margin-top: .05rem;
               accent-color: var(--jade); flex: none; cursor: pointer; }

.form-status { margin-top: 1.5rem; font-size: .875rem; }
.form-success {
  display: none; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background: var(--jade-pale); border: 1px solid rgba(166,87,42,.28);
}
.form-success[data-show="true"] { display: block; }
.form-success h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); margin-bottom: .85rem; }
form[data-hide="true"] { display: none; }

/* Contact split */
.contact-split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 1.5rem + 3vw, 5rem); align-items: start; }
.contact-split__form { grid-column: 1 / 8; }
.contact-split__aside { grid-column: 9 / 13; position: sticky; top: 110px; }
@media (max-width: 1000px) {
  .contact-split { grid-template-columns: 1fr; }
  .contact-split__form, .contact-split__aside { grid-column: 1; position: static; }
}
.contact-block + .contact-block { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.contact-block h3 { font-family: var(--sans); font-size: .6875rem; letter-spacing: .18em;
                    text-transform: uppercase; color: var(--ink-35); margin-bottom: .85rem; font-weight: 600; }
.contact-block p, .contact-block a { font-size: .9375rem; color: var(--ink-75); line-height: 1.7; }
.contact-block a:hover { color: var(--jade); }

/* Map graphic */
.routemap { position: relative; background: var(--ink); overflow: hidden; }
.routemap svg { width: 100%; height: auto; display: block; }
.route-line { stroke-dasharray: 4 5; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -180; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: #100D0A; color: rgba(251,248,243,.62); padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.footer a:hover { color: var(--paper); }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer__brand { grid-column: 1 / 4; }
.footer__col { grid-column: span 2; }
.footer__news { grid-column: 10 / 13; }
@media (max-width: 1100px) {
  .footer__brand { grid-column: 1 / 13; }
  .footer__col { grid-column: span 3; }
  .footer__news { grid-column: 1 / 13; }
}
@media (max-width: 700px) { .footer__col { grid-column: span 6; } }
.footer .wordmark { color: var(--paper); font-size: 1.5rem; }
.footer h3 {
  font-family: var(--sans); font-size: .6875rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
  margin-bottom: 1.25rem;
}
.footer__col li + li { margin-top: .7rem; }
.footer__col a { font-size: .875rem; }
.news-form { display: flex; border-bottom: 1px solid rgba(251,248,243,.24); }
.news-form input { flex: 1; background: transparent; border: 0; padding: .85rem 0; color: var(--paper); font-size: .9375rem; }
.news-form input::placeholder { color: rgba(251,248,243,.4); }
.news-form input:focus { outline: none; }
.news-form button { padding: .85rem .25rem .85rem 1rem; color: var(--paper); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; }
.news-form button:hover { color: #D69463; }
.news-note { margin-top: .85rem; font-size: .75rem; color: rgba(251,248,243,.45); }
.footer__certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.footer__certs span {
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .7rem; border: 1px solid rgba(251,248,243,.22); color: rgba(251,248,243,.62);
}
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
  padding-block: 1.75rem; border-top: 1px solid rgba(251,248,243,.14);
  font-size: .75rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-left: auto; }
.langselect { position: relative; }
.langselect select {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 1px solid rgba(251,248,243,.22); color: rgba(251,248,243,.72);
  padding: .5rem 2rem .5rem .75rem; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23FAFAF8' stroke-width='1.4' fill='none' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center;
}

/* Pre-footer CTA */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.cta-band__media { position: absolute; inset: 0; opacity: .28; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.3) contrast(1.1); }
.cta-band__inner { position: relative; z-index: 2; padding-block: clamp(4rem, 3rem + 6vw, 8rem); text-align: center; }
.cta-band__title { max-width: 22ch; margin: 1.5rem auto 1.25rem; }
.cta-band__sub { max-width: 52ch; margin-inline: auto; color: rgba(251,248,243,.72); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }

/* Utilities */
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 2rem; } .mt-l { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.mb-m { margin-bottom: 2rem; }
.center { text-align: center; }
.flex-wrap { display: flex; flex-wrap: wrap; gap: 1rem; }
.no-wrap { white-space: nowrap; }

/* ==========================================================================
   Media frames that must fill their container rather than hold a ratio
   ========================================================================== */
.hero__media .ph,
.phero__media .ph,
.divider__media .ph,
.cta-band__media .ph {
  position: absolute; inset: 0;
  aspect-ratio: auto; width: 100%; height: 100%;
  background: transparent;
}
.hero__media .ph::after,
.phero__media .ph::after,
.divider__media .ph::after,
.cta-band__media .ph::after { display: none; }
.hero__media video { position: absolute; inset: 0; z-index: 1; }
.hero__inner { padding-top: clamp(7rem, 5.5rem + 6vw, 10rem); }
.phero__media .ph img { filter: saturate(.4) contrast(1.05); }

/* Looping film inside a divider band */
.divider__video {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.5) contrast(1.05);
  opacity: 0; transition: opacity 1200ms var(--ease);
}
.divider__video[data-ready="true"] { opacity: 1; }

/* Consent checkbox needs a visible failure state too — it can block a submit */
.check[data-invalid="true"] { color: #B3402E; }
.check[data-invalid="true"] input { outline: 2px solid #B3402E; outline-offset: 2px; }

/* Five-across category row (menswear) — must still collapse on small screens */
.cards--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1200px) { .cards--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .cards--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .cards--5 { grid-template-columns: 1fr; } }

/* ==========================================================================
   EDITORIAL COLUMN SPANS
   Replaces inline grid-column styles, which could not be overridden by any
   media query and left narrow screens with squeezed, overflowing columns.
   ========================================================================== */
.gc-1-3  { grid-column: 1 / 3; }
.gc-1-5  { grid-column: 1 / 5; }
.gc-1-6  { grid-column: 1 / 6; }
.gc-1-7  { grid-column: 1 / 7; }
.gc-4-11 { grid-column: 4 / 11; }
.gc-5-9  { grid-column: 5 / 9; }
.gc-7-12 { grid-column: 7 / 12; }
.gc-7-13 { grid-column: 7 / 13; }
.gc-8-13 { grid-column: 8 / 13; }
.gc-9-13 { grid-column: 9 / 13; }

@media (max-width: 1000px) {
  .gc { grid-column: 1 / -1; }
}

/* ==========================================================================
   DATA TABLES ON SMALL SCREENS
   A 900px-wide spec table inside a horizontal scroller is not a mobile table.
   Below 760px every row becomes a labelled block instead.
   ========================================================================== */
.spec-table { min-width: var(--tw, 640px); }

@media (max-width: 900px) {
  .table-wrap { overflow-x: visible; }
  .spec-table { min-width: 0; display: block; }
  .spec-table caption { display: block; }
  .spec-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .spec-table tbody { display: block; }
  .spec-table tbody tr {
    display: block;
    padding-block: 1.35rem;
    border-bottom: 1px solid var(--line);
  }
  .spec-table tbody tr:first-child { border-top: 1px solid var(--line); }
  .spec-table tbody th,
  .spec-table tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  .spec-table tbody th {
    font-family: var(--display);
    font-size: 1.1875rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.2;
    margin-bottom: .9rem;
  }
  .spec-table tbody td { padding-block: .45rem; }
  .spec-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: .625rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-35);
    margin-bottom: .15rem;
  }
  .on-ink .spec-table tbody tr,
  .on-ink .spec-table tbody tr:first-child { border-color: var(--line-invert); }
  .on-ink .spec-table tbody td::before { color: rgba(251,248,243,.5); }
}

/* ==========================================================================
   DIAGRAMS ON SMALL SCREENS
   The route map and the Seoul map are 1200 units wide; scaled into a phone
   they render 4px type. Below 760px the equivalent content is shown as text.
   ========================================================================== */
.routemap { display: block; }
.diagram-fallback { display: none; }

@media (max-width: 900px) {
  .routemap { display: none; }
  .diagram-fallback { display: block; }
}

.route-list { display: grid; gap: 0; }
.route-list > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line-invert);
}
.route-list > li:first-child { border-top: 1px solid var(--line-invert); }
.route-list .rl-name { font-size: 1.0625rem; font-weight: 500; }
.route-list .rl-time {
  font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: #D69463; text-align: right; align-self: center;
}
.route-list .rl-note { grid-column: 1 / -1; font-size: .875rem; color: rgba(251,248,243,.6); }

/* Four product tiles rather than three */
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1300px) { .tiles--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .tiles--4 { grid-template-columns: 1fr; } }
.tiles--4 .tile .ph { aspect-ratio: 4 / 5; }

/* Transit-time callout — the commercial argument this company is built on */
.transit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--paper);
}
.transit > div { padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border-left: 1px solid var(--line); }
.transit > div:first-child { border-left: 0; }
.transit__n {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.transit__n small { font-size: .34em; letter-spacing: .06em; color: var(--jade-text); margin-left: .3em; }
.transit__l { margin-top: .8rem; font-size: .8125rem; color: var(--ink-55); line-height: 1.5; }
.transit--muted .transit__n { color: var(--ink-35); }
.transit--muted .transit__n small { color: var(--ink-35); }
@media (max-width: 760px) {
  .transit { grid-template-columns: 1fr; }
  .transit > div { border-left: 0; border-top: 1px solid var(--line); }
  .transit > div:first-child { border-top: 0; }
}

/* ==========================================================================
   SPLIT HERO
   Where the Korean site runs type over a full-bleed film, this one splits the
   frame: a solid panel of type against an uninterrupted moving image.
   ========================================================================== */
.hero--split {
  display: grid;
  grid-template-columns: 46% 54%;
  align-items: stretch;
  min-height: 100svh;
}
.hero--split::after { display: none; }
.hero--split .hero__panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(6.5rem, 5rem + 6vw, 9rem) clamp(1.75rem, 1rem + 3vw, 4.5rem)
           clamp(2.5rem, 2rem + 3vw, 4.5rem);
  background: var(--ink);
}
.hero--split .hero__media { position: relative; overflow: hidden; }
.hero--split .hero__media .ph,
.hero--split .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero--split .hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(90deg, rgba(23,19,15,.55) 0%, rgba(23,19,15,0) 28%);
  pointer-events: none;
}
.hero--split .hero__title { max-width: 14ch; margin-block: 1.5rem 1.25rem; }
.hero--split .hero__sub { max-width: 40ch; }
.hero--split .hero__meta {
  margin-top: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem 1.5rem;
}
/* The scroll cue belongs to the full-bleed hero. In the split layout it lands
   on top of the buttons and the meta row, so it is removed rather than moved. */
.hero--split .hero__scroll { display: none; }

/* On a standard laptop the panel content ran past the fold. Tighten the
   vertical rhythm when the viewport is short rather than letting it overflow. */
@media (min-width: 1000px) and (max-height: 940px) {
  .hero--split .hero__panel {
    padding-top: clamp(5.5rem, 4rem + 4vw, 7rem);
    padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  }
  .hero--split .hero__title { margin-block: 1.1rem .9rem; font-size: clamp(2.4rem, 1.2rem + 3vw, 3.6rem); }
  .hero--split .hero__meta { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
}
@media (min-width: 1000px) and (max-height: 780px) {
  /* Tighter still, but nothing is hidden — the value proposition has to stay. */
  .hero--split .hero__panel { padding-top: 5rem; padding-bottom: 1.75rem; }
  .hero--split .hero__title { font-size: clamp(2.1rem, 1.1rem + 2.4vw, 2.9rem); margin-block: .9rem .7rem; }
  .hero--split .hero__sub { font-size: 1rem; line-height: 1.5; }
  .hero--split .hero__actions { margin-top: 1.5rem; }
  .hero--split .hero__meta { margin-top: 1.25rem; padding-top: 1rem; }
}

@media (max-width: 1000px) {
  .hero--split {
    grid-template-columns: 1fr;
    min-height: 0;
    /* stretch would give the media a definite cross size, and Safari then
       ignores aspect-ratio and collapses the box to zero height */
    align-items: start;
  }
  .hero--split .hero__media {
    order: -1;
    /* an explicit height rather than an aspect ratio, so every engine agrees */
    aspect-ratio: auto;
    height: clamp(240px, 62vw, 460px);
  }
  .hero--split .hero__media::after {
    background: linear-gradient(180deg, rgba(23,19,15,.5) 0%, rgba(23,19,15,0) 40%);
  }
  .hero--split .hero__panel {
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) var(--gutter) clamp(3rem, 2.5rem + 3vw, 4.5rem);
  }
  .hero--split .hero__title { max-width: 18ch; }
  .hero--split .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .hero--split .hero__meta { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NUMBERED SECTION HEADS
   Sections count down the page. A different reading rhythm to the Korean
   site's three-column label / title / aside arrangement.
   ========================================================================== */
main { counter-reset: sec; }

.sec-head--num {
  display: block;
  border-top: 2px solid var(--ink);
  padding-top: 1.15rem;
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.on-ink .sec-head--num { border-top-color: var(--paper); }

.sec-head--num .sn {
  display: flex; align-items: baseline; gap: 1.25rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--jade-text);
}
.on-ink .sec-head--num .sn { color: var(--stone-deep); }
.sec-head--num .sn__i {
  font-family: var(--display);
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.on-ink .sec-head--num .sn__i { color: var(--paper); }
.sec-head--num .sn__i::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); }

.sec-head--num__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26%);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
  margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
}
@media (max-width: 900px) {
  .sec-head--num__row { grid-template-columns: 1fr; align-items: start; gap: 1.25rem; }
}

/* Cards carry an index and a full border rather than a single top rule */
.card-min {
  position: relative;
  border: 1px solid var(--line);
  border-top-width: 1px;
  padding: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card-min:hover { border-color: var(--ink); background: var(--paper-warm); }
.on-ink .card-min { border-color: var(--line-invert); }
.on-ink .card-min:hover { border-color: var(--paper); background: #201A15; }
.on-stone .card-min:hover { background: var(--paper); }


/* ==========================================================================
   TAP TARGETS
   WCAG 2.2 AA (2.5.8) asks for 24x24 CSS px. Footer links inherit a 17px line
   box, so they get explicit vertical padding on touch-sized viewports.
   ========================================================================== */
.wordmark { display: inline-block; padding-block: .35rem; }

@media (max-width: 900px) {
  .footer__col a,
  .footer__legal a,
  .contact-block a {
    display: inline-block;
    padding-block: .4rem;
  }
  .footer__col li + li { margin-top: .2rem; }
  .footer__legal { gap: .25rem 1.5rem; }
  .footer__bottom { gap: .75rem 2rem; }
}


/* ==========================================================================
   FOOTER TEXT COLOUR
   .small carries the dark muted tone by default, which lands dark-on-dark
   inside the near-black footer. Both tones are re-stated here for AA.
   ========================================================================== */
.footer .small { color: rgba(251, 248, 243, .72); }
.news-note { color: rgba(251, 248, 243, .62); }

/* A still hero should not sit dead — a slow drift keeps it alive without
   the weight of a video file. Disabled under prefers-reduced-motion. */
.hero__media--still .ph img {
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  from { transform: scale(1.02); }
  to   { transform: scale(1.10); }
}

/* ==========================================================================
   FOOTER — Djibouti
   Deliberately a different shape to the Korean site: a statement band, a
   contact column instead of a newsletter, and the certifications on their own
   rule above the legal line.
   ========================================================================== */
.footer--dj { padding-top: 0; }

.foot-statement {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
  padding-block: clamp(3rem, 2.5rem + 4vw, 5.5rem);
  border-bottom: 1px solid rgba(251, 248, 243, .16);
}
.foot-statement .wordmark { color: var(--paper); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); }
.foot-claim {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 1rem + .9vw, 1.85rem);
  line-height: 1.25; letter-spacing: -.025em;
  color: var(--paper); max-width: 34ch; text-wrap: pretty;
}
@media (max-width: 860px) {
  .foot-statement { grid-template-columns: 1fr; align-items: start; gap: 1.5rem; }
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
  gap: clamp(1.75rem, 1.25rem + 2vw, 3.5rem);
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .foot-grid { grid-template-columns: 1fr; } }

.foot-col h3, .foot-contact h3 {
  font-family: var(--sans); font-size: .6875rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
  margin-bottom: 1.15rem;
}
.foot-col li + li { margin-top: .55rem; }
.foot-col a { font-size: .9375rem; }

.foot-contact address { font-style: normal; font-size: .9375rem; line-height: 1.65; }
.foot-lines { margin-top: .9rem; font-size: .9375rem; line-height: 1.7; }
.foot-contact .btn { font-size: .6875rem; padding: .85rem 1.25rem; }

.foot-certs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding-block: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  border-top: 1px solid rgba(251, 248, 243, .16);
}
.foot-certs span {
  font-size: .625rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .5rem .75rem; border: 1px solid rgba(251, 248, 243, .24);
  color: rgba(251, 248, 243, .72);
}

.foot-legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgba(251, 248, 243, .16);
  font-size: .75rem;
}
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-left: auto; }
@media (max-width: 900px) {
  .foot-col a, .foot-legal a, .foot-contact a { display: inline-block; padding-block: .4rem; }
  .foot-col li + li { margin-top: .2rem; }
  .foot-legal nav { margin-left: 0; }
}


/* ==========================================================================
   ASPECT-RATIO BOXES INSIDE GRID AND FLEX PARENTS
   A stretched grid/flex item gets a definite cross size, and WebKit then
   ignores aspect-ratio and collapses the box to zero height — the image or
   film simply disappears. Chromium resolves it, so this only shows in Safari.
   Opting every ratio box out of stretch removes the whole class of bug.
   ========================================================================== */
.ph { align-self: start; }


/* ==========================================================================
   NAVIGATION MUST STAY ON ONE LINE
   A wrapped label pushes its neighbours out of alignment and the whole bar
   reads as broken. Below the breakpoint the drawer takes over anyway.
   ========================================================================== */
.nav__link, .nav__cta .btn { white-space: nowrap; }
.nav { flex-wrap: nowrap; }

/* ==========================================================================
   WORDMARK
   "LAB MULTISERVICE FZ" is a long mark. At a fixed size with wide tracking it
   is wider than a phone, so both scale with the viewport and the superscript
   steps aside on the narrowest screens.
   ========================================================================== */
.wordmark {
  font-size: clamp(.9375rem, .82rem + .5vw, 1.1875rem);
  letter-spacing: clamp(.16em, .1em + .22vw, .3em);
  max-width: 100%;
}
.wordmark sup { margin-left: .5em; }
@media (max-width: 560px) {
  .wordmark sup { display: none; }
}

/* the footer mark has the full width of the page, so it can stay larger */
.footer .wordmark,
.foot-statement .wordmark {
  font-size: clamp(.9375rem, .7rem + 1.1vw, 1.6rem);
  letter-spacing: clamp(.1em, .02em + .3vw, .26em);
}


/* ==========================================================================
   OLDER-SAFARI FALLBACKS
   color-mix() and svh are recent additions to WebKit. Where they are not
   understood the declaration is dropped, which would leave the sticky header
   transparent and the hero without a height. Each has a plain fallback first.
   ========================================================================== */
.masthead[data-solid="true"] {
  background: rgba(251,248,243, .88);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
}
.hero {
  min-height: 100vh;
  min-height: 100svh;
}
.hero--split {
  min-height: 100vh;
  min-height: 100svh;
}
@media (max-width: 1000px) {
  .hero--split { min-height: 0; }
}
