/* ==========================================================================
   STRANDPLY FURNITURE ESSENTIALS — base.css
   Monochrome editorial system. A premium architectural journal, not a catalogue.

   Type follows formwork.in exactly: Urbanist 700/800 for headings,
   Inter 400 for body, Inter 700 uppercase for labels.

   Colour is carried by BANDS. Every section declares its own palette; all
   components read from it. Alternating black and white is therefore structural,
   not a set of overrides.
   ========================================================================== */

/* --------------------------------------------------------------------------
   00 · RESET
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body, h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; padding: 0; }

ul[class], ol[class] { list-style: none; }

img, picture, video, canvas, svg { display: block; max-width: 100%; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }


/* --------------------------------------------------------------------------
   01 · TOKENS
   -------------------------------------------------------------------------- */

:root {
  /* Absolutes */
  --black:  #0A0A0A;   /* matte black — never pure #000 */
  --paper:  #F2F0ED;   /* warm off-white ground for light bands */
  --pure:   #FFFFFF;   /* pure white — typography on black */

  /* The single accent. Timber, not gold. Used sparingly: index numerals,
     one hairline at a time, the active nav marker. Never as a fill.
     Two depths so the accent clears 4.5:1 on both grounds —
     #7A6349 on paper = 4.88:1 · #B79A78 on black = 7.45:1 */
  --wood:   #7A6349;
  --wood-light: #B79A78;   /* the same accent, legible on black */

  /* Type */
  --font-display: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Editorial scale — massive headlines, tight tracking.
     Capped at 132px: above that, an eleven-letter word ("Exceptional") is
     wider than a seven-column measure and clips. Confidence is the ratio of
     type to air, not the raw number. */
  --fs-display: clamp(34px, 4.5vw, 70px);
  --fs-h1:      clamp(32px, 4.2vw, 66px);
  --fs-h2:      clamp(24px, 2.6vw, 38px);
  --fs-h3:      clamp(20px, 1.9vw, 29px);
  --fs-h4:      clamp(18px, 1.5vw, 23px);
  --fs-body:    clamp(16px, 1.05vw, 18px);
  --fs-lead:    clamp(18px, 1.5vw, 23px);
  /* secondary copy reads as editorial, not as interface — 14px was UI scale */
  --fs-small:   clamp(15px, 1vw, 16px);
  --fs-label:   11px;

  /* Rhythm — every section must breathe */
  --sp-band:   clamp(72px, 9.5vw, 148px);
  --sp-block:  clamp(34px, 4.4vw, 70px);
  --gutter:    clamp(20px, 4.6vw, 80px);

  --maxw: 1600px;
  --gap:  clamp(16px, 1.8vw, 34px);

  --nav-h: 74px;

  /* Motion — one easing family, nothing bounces */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.28s;
  --t:      0.6s;
  --t-slow: 1.1s;

  --measure: 62ch;
}

@media (max-width: 860px) { :root { --nav-h: 60px; } }

/* A laptop viewport is wide but short. Scale the display type to the smaller
   of the two dimensions there, so the hero copy is never pushed off-screen. */
@media (min-width: 861px) and (max-height: 800px) {
  :root { --fs-display: clamp(31px, 4vw, 58px); }
}


/* --------------------------------------------------------------------------
   02 · BANDS — the colour system
   -------------------------------------------------------------------------- */

.band {
  position: relative;
  background: var(--bg);
  color: var(--ink);
}

.band--dark {
  --bg:     var(--black);
  --ink:    var(--pure);
  --dim:    #8B8783;          /* warm grey secondary */
  --rule:   rgba(255, 255, 255, 0.14);
  --rule-strong: rgba(255, 255, 255, 0.28);
  --accent: var(--wood-light);
  --plate:  #141414;          /* image field, one step off the ground */
  --shadow: rgba(0, 0, 0, 0.75);
  /* shot labels sit ON --plate, not on --bg, so they carry their own ink.
     #9B968F on #141414 = 6.38:1 */
  --label-ink: #9B968F;
}

.band--light {
  --bg:     var(--paper);
  --ink:    var(--black);
  --dim:    #6E6A65;
  --rule:   rgba(10, 10, 10, 0.14);
  --rule-strong: rgba(10, 10, 10, 0.26);
  --accent: var(--wood);
  --plate:  #E7E4E0;
  --shadow: rgba(10, 10, 10, 0.22);
  /* #5E574F on #E7E4E0 = 5.61:1 — --dim measured only 4.24:1 here */
  --label-ink: #5E574F;
}

/* Default page ground so the shell has tokens before any band */
body {
  --bg: var(--black);
  --ink: var(--pure);
  --dim: #8B8783;
  --rule: rgba(255, 255, 255, 0.14);
  --rule-strong: rgba(255, 255, 255, 0.28);
  --accent: var(--wood-light);
  --plate: #141414;
  --shadow: rgba(0, 0, 0, 0.75);
  --label-ink: #9B968F;

  background: var(--black);
  color: var(--pure);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--ink); color: var(--bg); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  top: 0; left: 0;
  z-index: 999;
  padding: 14px 22px;
  background: var(--pure);
  color: var(--black);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-120%);
  transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus { transform: translateY(0); }


/* --------------------------------------------------------------------------
   03 · TYPOGRAPHY — formwork.in's language, at editorial scale
   -------------------------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 800;
  /* Headline leading and tracking follow formwork.in, the group's other site:
     line-height 1.10, letter-spacing -0.02em. Urbanist itself is unchanged —
     only the spacing was tighter here. */
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-size: var(--fs-h1);
  line-height: 1.10;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.02em;
}

h3, .h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h4, .h4 {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

p {
  max-width: min(var(--measure), 100%);
  line-height: 1.75;
  color: var(--ink);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 400;
  max-width: min(44ch, 100%);
}

.dim { color: var(--dim); }

/* Labels / eyebrows — Inter 700, 11px, 0.14em, uppercase */
.label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.75;
  color: var(--dim);
  max-width: 100%;
}

.label--ink { color: var(--ink); }
.label--accent { color: var(--accent); }

/* Section index numerals — one of the accent's few appearances */
.index {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* The large quiet statement */
.statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.028em;
  max-width: min(20ch, 100%);
  text-wrap: balance;
}


/* --------------------------------------------------------------------------
   04 · LAYOUT
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 1120px; }

.band__inner { padding-block: var(--sp-band); }
.band__inner--tight { padding-block: var(--sp-block); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

/* Spans are set on the END edge only. `grid-column: span 8` is shorthand for
   `grid-column-start: span 8`, so pairing it with `.start-5` (which sets
   grid-column-start) destroyed the span and collapsed the element to a single
   column — silently, on every .col-N.start-M in the site. */
.col-1{grid-column-end:span 1}   .col-2{grid-column-end:span 2}
.col-3{grid-column-end:span 3}   .col-4{grid-column-end:span 4}
.col-5{grid-column-end:span 5}   .col-6{grid-column-end:span 6}
.col-7{grid-column-end:span 7}   .col-8{grid-column-end:span 8}
.col-9{grid-column-end:span 9}   .col-10{grid-column-end:span 10}
.col-11{grid-column-end:span 11} .col-12{grid-column-end:span 12}

.start-2{grid-column-start:2} .start-3{grid-column-start:3}
.start-4{grid-column-start:4} .start-5{grid-column-start:5}
.start-6{grid-column-start:6} .start-7{grid-column-start:7}
.start-8{grid-column-start:8} .start-9{grid-column-start:9}

@media (max-width: 1024px) {
  .col-4, .col-5 { grid-column-end: span 6; }
  .col-7, .col-8 { grid-column-end: span 12; }
}
@media (max-width: 720px) {
  .grid > [class*="col-"] { grid-column: 1 / -1; }
  .grid > [class*="start-"] { grid-column-start: 1; }
}

.stack > * + * { margin-top: var(--flow, 22px); }
.stack--lg { --flow: 38px; }

/* --------------------------------------------------------------------------
   Section heads
   The default is deliberately plain. Each page overrides it with its own
   rhythm — see the page stylesheets — so that no two sections in the site
   are introduced the same way.
   -------------------------------------------------------------------------- */

.sec-head {
  align-items: end;
  row-gap: 22px;
  margin-bottom: clamp(56px, 8vw, 130px);
}
.sec-head .index { margin-bottom: 10px; }

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  width: 100%;
  margin: 0;
}


/* --------------------------------------------------------------------------
   05 · IMAGERY
   Two treatments, no frames, no generic cards.

   .plate  — a cinematic photograph field (full-bleed / editorial crop)
   .object — a product presented as a design object: floating, soft shadow,
             no studio background, generous negative space
   -------------------------------------------------------------------------- */

.plate {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--plate);
  overflow: hidden;
  margin: 0;
}

.plate > img,
.object > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Captions sit on imagery, not on a flat swatch, so they cannot inherit the
   band's ink — the fields are dark compositions on both grounds. They take a
   fixed light ink and carry their own scrim, the way a caption over a
   photograph always must. */
.plate::after,
.leaf__plate::after,
.swatch__face::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(6,6,6,0.82) 0%, rgba(6,6,6,0) 100%);
  pointer-events: none;
}
/* the swatch already uses ::after for its texture zoom */
.swatch__face::after { background: linear-gradient(to top, rgba(6,6,6,0.7) 0%, rgba(6,6,6,0) 100%); }

.plate__label,
.object__label {
  z-index: 2;
  position: absolute;
  left: clamp(14px, 1.6vw, 26px);
  bottom: clamp(12px, 1.4vw, 22px);
  right: clamp(14px, 1.6vw, 26px);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.7;
  color: #C9C5BE;
  pointer-events: none;
}

.plate--sq   { aspect-ratio: 1 / 1; }
.plate--3x4  { aspect-ratio: 3 / 4; }
.plate--2x3  { aspect-ratio: 2 / 3; }
.plate--16x9 { aspect-ratio: 16 / 9; }
.plate--21x9 { aspect-ratio: 21 / 9; }
.plate--fill { aspect-ratio: auto; height: 100%; }

/* Flat tint for type over photography — never a gradient */
.plate__tint {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.46);
  pointer-events: none;
}

/* The product as an object in a gallery, not a shape on a page.
   One raking source from upper left. The object has thickness, sits on a
   ground plane, throws a contact shadow that tightens where it meets, and
   leaves a short reflection. Nothing is cut out; nothing floats in a void. */
.object {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: clamp(34px, 6vw, 96px);
  background: transparent;
  isolation: isolate;
  perspective: 1400px;
}

/* the ground the object stands on — felt, never seen as a line */
.object::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; bottom: 16%;
  height: 42%;
  background: radial-gradient(60% 100% at 50% 100%,
    color-mix(in srgb, var(--shadow) 55%, transparent) 0%,
    transparent 72%);
  filter: blur(26px);
  z-index: -2;
  pointer-events: none;
}

.object__body {
  position: relative;
  width: 66%;
  height: 58%;
  /* A lit object is brighter than the room it stands in. The lighting sits
     over the page's own material field, so the object is made of something
     rather than being a blank slab. */
  background-image:
    linear-gradient(154deg,
      color-mix(in srgb, var(--plate) 52%, var(--ink)) 0%,
      color-mix(in srgb, var(--plate) 78%, var(--ink)) 38%,
      color-mix(in srgb, var(--plate) 96%, var(--bg)) 100%),
    var(--object-field, url("../assets/fields/strata.svg"));
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: soft-light, normal;
  /* thickness: the object has an edge, and the edge catches light */
  box-shadow:
    0 1px 0 0 color-mix(in srgb, var(--ink) 22%, transparent),
    0 10px 0 -4px color-mix(in srgb, var(--bg) 82%, var(--ink)),
    0 54px 90px -38px var(--shadow);
  transform: rotateX(1.5deg);
  transform-style: preserve-3d;
}

/* the specular that tells you it is a surface and not a rectangle */
.object__body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg,
    color-mix(in srgb, var(--ink) 13%, transparent) 0%,
    transparent 34%,
    transparent 68%,
    color-mix(in srgb, var(--bg) 34%, transparent) 100%);
  pointer-events: none;
}

/* the reflection: short, soft, and gone before it becomes a gimmick */
.object__body::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 10px);
  height: 30%;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--plate) 42%, transparent) 0%,
    transparent 68%);
  transform: scaleY(-1);
  transform-origin: top center;
  filter: blur(4px);
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

.object--tall .object__body { width: 42%; height: 76%; }
.object--wide .object__body { width: 84%; height: 42%; }

/* the caption sits away from the object, like a gallery label */
.object__label {
  bottom: clamp(6px, 1vw, 14px);
}

/* --------------------------------------------------------------------------
   FIELDS
   Until photography arrives, each image area carries an abstract monochrome
   composition — light and shadow on planes. Luminance only, so a single file
   reads correctly on either ground. Six compositions, 6KB in total, assigned
   by page so that no two pages are furnished from the same set.
   -------------------------------------------------------------------------- */

.plate,
.leaf__plate,
.swatch__face,
.object__body {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.plate { background-image: url("../assets/fields/light-fall.svg"); }

.plate--grain    { background-image: url("../assets/fields/grain.svg"); }
.plate--strata   { background-image: url("../assets/fields/strata.svg"); }
.plate--edge     { background-image: url("../assets/fields/edge.svg"); }
.plate--aperture { background-image: url("../assets/fields/aperture.svg"); }
.plate--section  { background-image: url("../assets/fields/section.svg"); }

/* objects catch the same light as the field they float on */
.object__body { background-blend-mode: overlay; }

/* Mask reveal base — the image is discovered, never faded in */
.reveal-mask { clip-path: inset(0 0 100% 0); will-change: clip-path; }


/* --------------------------------------------------------------------------
   05a · THE PAUSE
   A chapter with nothing in it but one sentence. No label, no index, no rule,
   no action — the reader is given somewhere to stop. Every product page earns
   exactly one, and it always carries a line already approved elsewhere on that
   page rather than new copy.
   -------------------------------------------------------------------------- */

.pause {
  min-height: 82svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pause__inner { padding-block: var(--sp-band); }

.pause__line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5.2vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--ink);
  max-width: min(17ch, 100%);
  margin-inline: auto;
  text-wrap: balance;
}

/* the only mark allowed in a pause: a hairline that draws as it is reached */
.pause__rule {
  width: clamp(60px, 8vw, 120px);
  height: 1px;
  background: var(--accent);
  margin: clamp(34px, 4vw, 56px) auto 0;
  transform: scaleX(0);
  transform-origin: center;
}

@media (max-width: 860px) { .pause { min-height: 62svh; } }


/* --------------------------------------------------------------------------
   05b · CONTENT UNDER REVIEW
   Where copy is awaiting approval the layout stays complete and the gap is
   stated with the same composure as everything else — a hairline, a label
   and one quiet line. Never a grey box, never an apology.
   -------------------------------------------------------------------------- */

.review {
  position: relative;
  padding-top: clamp(20px, 2.2vw, 30px);
  border-top: 1px solid var(--rule);
  max-width: min(52ch, 100%);
}

.review__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}
.review__tag::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.review p {
  font-size: var(--fs-small);
  color: var(--dim);
  max-width: 100%;
}

/* the inline variant, for a single line inside running copy */
.review--inline {
  border-top: 0;
  padding-top: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
}


/* --------------------------------------------------------------------------
   06 · ACTIONS
   -------------------------------------------------------------------------- */

/* An editorial house does not use buttons; it uses actions. The default is a
   word on a rule — the rule retracts and redraws from the opposite side on
   hover. Exactly one action per view may take the filled form, which is what
   carries the hierarchy. */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0 12px;
  min-height: 44px;                       /* touch target without a box */
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: 0;
  will-change: transform;
}

/* the rule beneath the word */
.btn::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform var(--t-slow) var(--ease);
}
.btn:hover::after { transform: scaleX(0); transform-origin: right center; }

/* the arrow advances rather than the box filling */
.btn::before {
  content: "";
  width: 16px; height: 1px;
  background: currentColor;
  transition: width var(--t-slow) var(--ease);
  order: 2;
}
.btn:hover::before { width: 30px; }

/* the single primary action — a solid block, squared, no gloss */
.btn--solid {
  padding: 18px 30px;
  background: var(--ink);
  color: var(--bg);
  transition: opacity var(--t) var(--ease);
}
.btn--solid::after { display: none; }
.btn--solid:hover { opacity: 0.84; }

/* rows of actions need room now that they are text, not boxes */
.hero__ctas, .shero__ctas, .hhero__ctas, .dhero__ctas, .mhero__ctas,
.ehero__ctas, .vhero__ctas, .bhero__ctas, .final__ctas, .close__ctas,
.hclose__ctas, .dclose__ctas, .vclose__ctas, .lclose__ctas, .mclose__ctas,
.eclose__ctas, .bclose__ctas, .sclose__ctas, .aclose__ctas, .xclose__ctas,
.press__ctas, .kclose__ctas, .designers__ctas {
  gap: clamp(22px, 3vw, 44px) !important;
}

/* Text link — a rule that redraws from the left */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink);
}
.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform var(--t) var(--ease);
}
.link:hover::after {
  transform: scaleX(0);
  transform-origin: right center;
}


/* --------------------------------------------------------------------------
   07 · NAVIGATION — floating, minimal, inverts with the band beneath it
   -------------------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  --nav-ink: var(--pure);
  --nav-rule: rgba(255, 255, 255, 0.16);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}

/* set by js when the band under the bar is light */
.nav.is-inverted {
  --nav-ink: var(--black);
  --nav-rule: rgba(10, 10, 10, 0.16);
}

.nav.is-stuck {
  background: var(--black);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}
.nav.is-stuck.is-inverted {
  background: var(--paper);
  border-bottom-color: rgba(10, 10, 10, 0.12);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 56px);
  height: var(--nav-h);
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Logo — two files, the correct one shown for the band beneath */
/* padded to clear a 24px target at mobile without growing the mark itself */
.nav__logo {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding-block: 7px;
}
.nav__logo img {
  height: clamp(24px, 2.1vw, 31px);
  width: auto;
  transition: opacity var(--t) var(--ease);
}
/* the second mark sits exactly on the first, not stretched to the padded box */
.nav__logo img + img {
  position: absolute;
  top: 50%; left: 0;
  transform: translateY(-50%);
}
.nav__logo .logo--dark { opacity: 0; }
.nav.is-inverted .nav__logo .logo--light { opacity: 0; }
.nav.is-inverted .nav__logo .logo--dark  { opacity: 1; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 46px);
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 0;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nav-ink);
  transition: color var(--t) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-expanded="true"]::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* the accent marks the current page, and nothing else in the bar */
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--accent);
}

/* MILL2DIRECT — secondary brand mark, far right, quieter than the primary bar */
.nav__m2d {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--nav-ink);
  opacity: 0.55;
  padding: 8px 0 8px clamp(16px, 2vw, 34px);
  border-left: 1px solid var(--nav-rule);
  white-space: nowrap;
  transition: opacity var(--t) var(--ease), color var(--t) var(--ease);
}
.nav__m2d:hover { opacity: 1; }

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  position: relative;
  margin-right: -6px;
}
.nav__burger span {
  position: absolute;
  left: 7px;
  width: 24px; height: 1px;
  background: var(--nav-ink);
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* --- Menu panel — full screen, editorial, black ---------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--black);
  color: var(--pure);
  --ink: var(--pure);
  --dim: #8B8783;
  --rule: rgba(255,255,255,.14);
  --accent: var(--wood-light);
  padding-top: var(--nav-h);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.nav.is-open ~ .menu,
.menu.is-open { visibility: visible; opacity: 1; }

.menu__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(60px, 8vw, 120px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.menu__group { grid-column: span 3; }
.menu__group--wide { grid-column: span 3; }

.menu__heading {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.menu__list { display: flex; flex-direction: column; }

.menu__link {
  display: block;
  padding: 10px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.9vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--pure);
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.menu__link:hover { transform: translateX(10px); }
.menu__link small {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
  margin-top: 1px;
}

@media (max-width: 1024px) {
  .menu__group, .menu__group--wide { grid-column: span 6; margin-bottom: 34px; }
}
@media (max-width: 620px) {
  .menu__group, .menu__group--wide { grid-column: span 12; }
}

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__burger { display: block; }
}


/* --------------------------------------------------------------------------
   08 · SCROLL PROGRESS — a single hairline
   -------------------------------------------------------------------------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 300;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--wood-light);
  pointer-events: none;
}


/* --------------------------------------------------------------------------
   09 · LOADER
   -------------------------------------------------------------------------- */

html.is-loading { background: #0A0A0A; }
html.is-loading body > *:not(.loader) { visibility: hidden; }

.loader {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
}
.loader[hidden] { display: none; }

/* the sheet is the whole black field; it lifts as one mass at the end */
.loader__sheet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--black);
  will-change: transform;
}

.loader__core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* the mark is disclosed through a clip, never faded */
.loader__reveal { overflow: hidden; will-change: clip-path; }
.loader__logo { width: clamp(190px, 24vw, 300px); height: auto; display: block; }

/* one hairline, the width of the mark, drawn and withdrawn */
.loader__line {
  display: block;
  width: clamp(190px, 24vw, 300px);
  height: 1px;
  margin-top: 26px;
  background: var(--wood-light);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* the count sits in the corner like a plate number, not a progress bar */
.loader__count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 4vh, 46px);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #6E6A65;
  font-variant-numeric: tabular-nums;
}


/* --------------------------------------------------------------------------
   10 · PAGE TRANSITION — a flat sheet, no gradient
   -------------------------------------------------------------------------- */

.transition {
  position: fixed;
  inset: 0;
  z-index: 800;
  pointer-events: none;
  visibility: hidden;
}
.transition.is-active { visibility: visible; }
.transition__sheet {
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleY(0);
  transform-origin: bottom center;
  will-change: transform;
}


/* --------------------------------------------------------------------------
   11 · MOUSE GLOW — a soft light, desktop only
   -------------------------------------------------------------------------- */

.glow { display: none; }

@media (hover: hover) and (pointer: fine) {
  .glow {
    display: block;
    position: fixed;
    top: 0; left: 0;
    z-index: 1;
    width: 460px; height: 460px;
    margin: -230px 0 0 -230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
  }
  .band--light .glow { background: radial-gradient(circle, rgba(10,10,10,0.05) 0%, rgba(10,10,10,0) 70%); }
}


/* --------------------------------------------------------------------------
   12 · FOOTER
   -------------------------------------------------------------------------- */

.footer {
  background: var(--black);
  color: var(--pure);
  --ink: var(--pure);
  --dim: #8B8783;
  --rule: rgba(255, 255, 255, 0.14);
  --accent: var(--wood-light);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding-block: clamp(64px, 8vw, 130px) clamp(48px, 6vw, 90px);
}

.footer__brand { grid-column: span 4; }
.footer__brand img { height: 30px; width: auto; margin-bottom: 26px; }
.footer__brand p { font-size: var(--fs-small); color: var(--dim); max-width: min(32ch, 100%); }

.footer__col { grid-column: span 2; }

.footer__heading {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--rule);
}

.footer__list { display: flex; flex-direction: column; gap: 2px; }

/* padded to a 24px minimum target — measured at 17px before */
.footer__link {
  display: inline-block;
  padding-block: 5px;
  min-height: 24px;
  font-size: var(--fs-small);
  color: var(--dim);
  transition: color var(--t-fast) var(--ease);
}
.footer__link:hover { color: var(--pure); }

@media (max-width: 768px) {
  .footer__link { padding-block: 9px; min-height: 32px; }
  .footer__list { gap: 0; }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-block: 26px;
  border-top: 1px solid var(--rule);
}
.footer__legal p { font-size: 12px; color: var(--dim); max-width: none; }

@media (max-width: 1024px) {
  .footer__brand { grid-column: span 12; }
  .footer__col { grid-column: span 4; }
}
@media (max-width: 620px) {
  .footer__col { grid-column: span 6; }
}


/* --------------------------------------------------------------------------
   13 · REVEAL BASE STATES
   -------------------------------------------------------------------------- */

.js [data-reveal="fade"] { opacity: 0; }
.js [data-reveal="blur"] { opacity: 0; filter: blur(9px); }
.js [data-reveal="rise"] { opacity: 0; transform: translateY(26px); }
.js [data-reveal="mask"] { clip-path: inset(0 0 100% 0); }

/* The reveal mask clips anything outside the line box, and at these tight
   display leadings the box is shorter than the font's descender — which
   sliced the tail off "Begin." The padding gives the mask room; the matching
   negative margin gives the space straight back, so rhythm is unchanged. */
.split-line {
  overflow: hidden;
  display: block;
  padding-bottom: 0.2em;
  margin-bottom: -0.2em;
}


/* --------------------------------------------------------------------------
   14 · REDUCED MOTION
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .glow { display: none !important; }
  .js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
}


/* --------------------------------------------------------------------------
   15 · UTILITIES
   -------------------------------------------------------------------------- */

.u-center { text-align: center; }
.u-measure { max-width: min(var(--measure), 100%); }
.u-nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* the trademark rides as a true superscript, not baseline text */
.brand-name sup {
  font-size: 0.45em;
  line-height: 0;
  position: relative;
  top: -0.45em;
  margin-left: 0.04em;
  font-weight: inherit;
}

/* a section folded into the one above it, rather than taking a band of its own */
.folded {
  margin-top: clamp(40px, 6vh, 76px);
  padding-top: clamp(26px, 3.5vh, 44px);
  border-top: 1px solid var(--rule);
}
.folded > .label { margin-bottom: clamp(18px, 2.4vh, 30px); }
