/* WESTEX — implements docs/WESTEX_Brand_Book.md (v1.0). Tokens first; change them there, not inline. */

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f5ef;
  --ink: #24282b;
  --stone: #e7e1d7;
  --line: #d8d2c9;
  --muted: #62615d;
  --brand: #722f40;
  --deep: #482330;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --max: 1280px;
  --margin: 80px;
  --header: 88px;
  --section: 128px;
}
@media (max-width: 1100px) { :root { --margin: 40px; --section: 104px; } }
@media (max-width: 720px)  { :root { --margin: 20px; --header: 72px; --section: 72px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--margin))); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Type */
h1, h2, h3 { margin: 0; font-family: var(--serif); font-optical-sizing: auto; color: inherit; }
.display {
  font-weight: 300;
  font-size: clamp(46px, 5.8vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 {
  font-weight: 350;
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: #45484a; max-width: 34em; text-wrap: pretty; }
.label {
  font: 600 12px/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header); display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { width: 216px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font: 500 12.5px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 14px 0;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--brand); }
.site-nav .nav-contact { color: var(--brand); }
/* Language switch: EN | DE, the current language in ink, the other muted (both pages carry it) */
.lang-switch { display: flex; align-items: center; flex: none; margin-right: -10px; }
.lang-switch a {
  position: relative;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font: 500 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); transition: color 0.2s;
}
.lang-switch a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: var(--line); }
.lang-switch a[aria-current] { color: var(--ink); }
.lang-switch a:hover { color: var(--brand); }
.menu-toggle {
  display: none;
  min-height: 44px; padding: 0 16px;
  background: none; border: 1px solid var(--line); color: var(--ink);
  font: 500 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center;
  min-height: 52px; padding: 0 28px;
  background: var(--brand); color: var(--paper);
  font: 500 15px/1 var(--sans); letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.2s;
}
.btn:hover { background: var(--deep); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--stone); }
.text-link {
  display: inline-block; padding-block: 15px;   /* 45 px touch target around one line of text */
  font: 500 15px/1 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: color 0.2s;
}
.text-link:hover { color: var(--brand); text-decoration-thickness: 2px; }

/* Hero: documentary film loop, graphite shade, copy on the content grid */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(620px, calc(100svh - var(--header)), 860px);
  background: var(--ink) url("assets/hero-poster.jpg") center / cover no-repeat;
  color: var(--paper);
}
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(36, 40, 43, 0.88) 0%, rgba(36, 40, 43, 0.74) 40%, rgba(36, 40, 43, 0.38) 72%, rgba(36, 40, 43, 0.3) 100%),
    linear-gradient(0deg, rgba(36, 40, 43, 0.6) 0%, rgba(36, 40, 43, 0) 34%);
}
/* Film grain over the hero film: the client's footage is 1024 × 576 phone video, so at full width it
   looks soft and blocky; a fine moving grain (under the text) gives it texture until new footage arrives. */
.hero-shade::after {
  content: ""; position: absolute; inset: -40%;
  background: url("assets/grain.png") repeat; background-size: 160px 160px;
  opacity: 0.16; mix-blend-mode: overlay; pointer-events: none;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 17% { transform: translate(-4%, -7%); } 33% { transform: translate(-9%, 3%); }
  50% { transform: translate(5%, -9%); } 67% { transform: translate(-6%, 8%); } 83% { transform: translate(8%, 2%); }
  100% { transform: translate(0, 0); }
}
.hero-inner { flex: 1; display: flex; align-items: center; }
.hero-copy { max-width: 640px; padding: 88px 0 40px; }
.hero-copy .display { margin: 24px 0 28px; max-width: 9.5em; }
.hero .label { color: rgba(247, 245, 239, 0.78); }
.hero .lead { color: rgba(247, 245, 239, 0.86); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 32px; margin-top: 40px; }
.hero .text-link:hover { color: var(--paper); }
.hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 0 28px; }
.hero-caption { font-size: 13px; letter-spacing: 0.02em; color: rgba(247, 245, 239, 0.62); }
.motion-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(247, 245, 239, 0.4); cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.motion-toggle:hover { border-color: var(--paper); background: rgba(247, 245, 239, 0.08); }
.motion-toggle[hidden] { display: none; }
.motion-toggle .icon-play { display: none; }
.motion-toggle[aria-pressed="true"] .icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .icon-play { display: block; }

/* Sections */
.section { padding-block: var(--section); }
.section-stone { background: var(--stone); }

/* Selvedge rule: hairline with an oxblood segment, opens every section */
.rule { position: relative; height: 1px; background: var(--line); margin-bottom: 32px; }
.rule::before { content: ""; position: absolute; left: 0; top: -1px; width: 56px; height: 3px; background: var(--brand); }
.section-stone .rule { background: rgba(36, 40, 43, 0.16); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.split-head h2 { margin-top: 20px; max-width: 12em; }
.split-head .lead { margin-top: 28px; }
.split-body { padding-top: 34px; }

/* Spec list */
.spec { margin: 44px 0 0; border-top: 1px solid var(--line); }
.spec > div {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
  padding: 17px 0; border-bottom: 1px solid var(--line);
}
.spec dt {
  font: 600 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.spec dd { margin: 0; font-size: 17px; line-height: 1.55; }
.spec a { text-underline-offset: 4px; }

/* Figures */
.figure { margin: 0; }
.figure img { width: 100%; background: #d6cfc4; }
.figure figcaption { margin-top: 12px; font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; color: var(--muted); }
/* Production: two rows that answer each other. Top: the text column (heading, lead, figure) beside
   the portrait film of a sewing line. Below: the floor photo large, the second photo small and
   bottom-aligned with it. */
.production-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 96px; align-items: start; }
.production-intro { grid-column: 1 / span 7; display: flex; flex-direction: column; min-height: 100%; }
.production-intro h2 { margin-top: 20px; max-width: 11em; }
.production-intro .lead { margin-top: 28px; }
.production-intro .figure-fact { margin-block: auto; padding-top: 56px; }   /* centred in the space below the lead */
.production-film { grid-column: 9 / span 4; margin: 0; }
.production-film video { display: block; width: 100%; aspect-ratio: 464 / 618; object-fit: cover; background: #2a2725 url("assets/sewing-line-poster.jpg") center / cover no-repeat; }
.production-cut { grid-column: 1 / span 5; margin: 0; }   /* cutting, then sewing: the two share a row at about the same height */
.production-cut video { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #2a2725 url("assets/cutting-room-poster.jpg") center / cover no-repeat; }
.production-main { grid-column: 6 / span 7; }
/* "~100 sewing operators…": the figure counts up once as it scrolls in (script.js); "~" keeps it
   approximate, the full sentence is in a visually hidden span for screen readers. */
.figure-fact { --fig: clamp(96px, 10vw, 152px); margin: 0; display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.big-figure {
  display: block; font: 300 var(--fig, clamp(96px, 10vw, 152px))/0.9 var(--serif);
  font-optical-sizing: auto; font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; color: var(--brand); white-space: nowrap;
}
.big-figure .approx { position: relative; top: -0.1em; margin-right: 0.02em; }   /* optical: centre on the lining figures */
.figure-note { max-width: 15em; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--muted); }
/* optical: the digits sit low in their line box (room for descenders), so lift the note to their middle */
.figure-fact .figure-note { margin-bottom: calc(var(--fig) * 0.27); }

/* What we do: one statement in large type (lit word by word on scroll), plain detail below, the
   rails film beside it */
.what-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 96px; align-items: end; }
.statement {
  margin-top: 24px; max-width: 17em;
  font-weight: 300; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.16; letter-spacing: -0.018em;
  text-wrap: pretty;
}
.statement .w { transition: color 0.45s ease; }
.motion .statement .w { color: rgba(36, 40, 43, 0.2); }
.motion .statement .w.on { color: var(--ink); }
.what-body { margin-top: 40px; max-width: 34em; color: #45484a; }
.what-media { margin: 0; }
.what-media video { display: block; width: 100%; aspect-ratio: 464 / 412; object-fit: cover; background: #2a2725 url("assets/rails-poster.jpg") center / cover no-repeat; }
.what-media figcaption, .production-film figcaption, .production-cut figcaption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 12px; font-size: 14px; line-height: 1.5; letter-spacing: 0.01em; color: var(--muted);
}
.motion-toggle-dark { color: var(--ink); border-color: var(--line); }
.motion-toggle-dark:hover { border-color: var(--ink); background: transparent; }

/* Section head with the heading left and one quiet element right (garment index, register link) */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 64px; flex-wrap: wrap; }
.head-row h2 { margin-top: 20px; }

/* Company details: the heading, a plain line about the public record and the register link on the
   left; the register itself on the right as a ledger, one fact per line, label left, value in the serif. */
.register-link { display: inline-block; margin-top: 28px; }
.register { margin: 0; padding-top: 34px; border-bottom: 1px solid rgba(36, 40, 43, 0.16); }
.register > div {
  display: grid; grid-template-columns: 11.5em minmax(0, 1fr); gap: 8px 24px; align-items: baseline;
  padding: 20px 0 22px; border-top: 1px solid rgba(36, 40, 43, 0.16);
}
.register dt { font: 600 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.register dd { margin: 0; font: 400 clamp(19px, 1.6vw, 23px)/1.35 var(--serif); font-optical-sizing: auto; letter-spacing: -0.005em; font-variant-numeric: lining-nums; }
.garment-index { display: flex; gap: 40px; padding-bottom: 6px; }
.garment-index a {
  font: 300 clamp(24px, 2.4vw, 34px)/1 var(--serif); font-optical-sizing: auto; letter-spacing: -0.01em;
  text-decoration: none; padding-block: 10px; border-bottom: 1px solid rgba(36, 40, 43, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
.garment-index a:hover { color: var(--brand); border-color: var(--brand); }
.garment-index .count { font: 600 11px/1 var(--sans); letter-spacing: 0.08em; vertical-align: super; margin-left: 4px; color: var(--muted); }

/* Products: plates share the section's stone ground, so garments stand on the page without tiles */
.group-title {
  margin-top: 72px; padding-top: 14px; border-top: 1px solid rgba(36, 40, 43, 0.16);
  font: 600 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
/* Lookbook: an editorial spread per block instead of a flat grid. A large plate, a close-up of its
   construction and two plates at different heights; the next spread mirrors it (is-mirrored), a trio
   of staggered plates sits between. Placement lives here, the HTML only says which block is which. */
@media (min-width: 861px) {
  .lookbook {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px;
    align-items: start; margin-top: 48px;
  }
  .lookbook + .lookbook { margin-top: 112px; }
  .lookbook > :nth-child(1) { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .lookbook > :nth-child(2) { grid-column: 7 / span 3; grid-row: 1; }
  .lookbook > :nth-child(3) { grid-column: 10 / span 3; grid-row: 1 / span 2; margin-top: 168px; }
  .lookbook > :nth-child(4) { grid-column: 7 / span 3; grid-row: 2; }
  .lookbook.is-mirrored > :nth-child(1) { grid-column: 8 / span 5; }
  .lookbook.is-mirrored > :nth-child(2) { grid-column: 4 / span 3; }
  .lookbook.is-mirrored > :nth-child(3) { grid-column: 1 / span 3; }
  .lookbook.is-mirrored > :nth-child(4) { grid-column: 4 / span 3; }
  .lookbook-trio > :nth-child(1) { grid-column: 2 / span 3; grid-row: 1; margin-top: 96px; }
  .lookbook-trio > :nth-child(2) { grid-column: 6 / span 4; grid-row: 1; }
  .lookbook-trio > :nth-child(3) { grid-column: 10 / span 3; grid-row: 1; margin-top: 200px; }
  /* What we do: the film runs from the label to the last line of the paragraph */
  .what-grid { align-items: stretch; }
  .what-media { display: flex; flex-direction: column; }
  .what-media video { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }
  /* Production: the floor caption sits level with the cutting-room caption beside it (centred on the pause button) */
  .production-cut figcaption, .production-main figcaption { min-height: 44px; display: flex; align-items: center; }
}
.product { margin: 0; overflow: hidden; }
.product img { width: 100%; transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
@media (hover: hover) { .product:hover img { transform: scale(1.035); } }
.product figcaption { margin-top: 14px; font-size: 15px; line-height: 1.4; }
.product.is-large figcaption { font: 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); font-optical-sizing: auto; margin-top: 18px; }
.product.is-detail figcaption { font-size: 14px; color: var(--muted); }
.product-zoom { display: block; cursor: zoom-in; }
.product-zoom:focus-visible { outline-offset: -2px; }     /* the figure clips anything outside it */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Garments viewer (script.js): full screen on the plates' own stone ground */
.viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--stone); color: var(--ink); overflow: hidden;
}
.viewer::backdrop { background: var(--stone); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 var(--margin); padding: 14px 0; border-bottom: 1px solid rgba(36, 40, 43, 0.16);
}
.viewer-count { margin: 0; font: 600 12px/1.4 var(--sans); letter-spacing: 0.16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer-close {
  min-height: 44px; padding: 0 20px; border: 1px solid rgba(36, 40, 43, 0.3); background: transparent; color: var(--ink);
  font: 600 12px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; transition: border-color 0.2s;
}
.viewer-close:hover { border-color: var(--ink); }
.viewer-figure {
  flex: 1; min-height: 0; margin: 0; padding: 20px var(--margin) 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  touch-action: pan-y;
}
.viewer-img {   /* plates and close-ups alike scale up to the free space (width or height), caption right below */
  width: 100%; height: auto; max-height: calc(100vh - 190px); object-fit: contain; opacity: 0; transition: opacity 0.35s ease-out;
}
@supports (height: 100dvh) { .viewer-img { max-height: calc(100dvh - 190px); } }
.viewer-img.is-loaded { opacity: 1; }
.viewer-figure figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.viewer-group { font: 600 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.viewer-caption { font: 400 clamp(19px, 1.6vw, 23px)/1.3 var(--serif); font-optical-sizing: auto; }
.viewer-nav {
  position: absolute; top: 50%; width: 56px; height: 56px; margin-top: -28px;
  display: grid; place-items: center; border: 1px solid rgba(36, 40, 43, 0.3); background: transparent; color: var(--ink);
  cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.viewer-nav:hover { border-color: var(--ink); background: rgba(247, 245, 239, 0.5); }
.viewer-prev { left: var(--margin); }
.viewer-next { right: var(--margin); }
html.viewer-open { overflow: hidden; }

/* Contact band: paper after the stone Company block, so the graphite footer alone closes the page (owner, 2026-10-10) */
.contact-email {
  display: inline-block; margin-top: 36px;
  font: 300 clamp(30px, 4vw, 56px)/1.1 var(--serif);
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 10px;
  text-decoration-color: rgba(36, 40, 43, 0.35);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.contact-email:hover { color: var(--brand); text-decoration-color: currentColor; }
/* The email opens the right column, on the heading's line; the request to describe the work sits under the heading */
.contact-body { padding-top: 33px; }   /* email baseline on the heading baseline (measured at 900–1920) */
.contact-body .contact-email { margin-top: 0; }
/* Telephone: a quiet register row under the email, which stays the main way in */
.contact-phones {
  margin: 48px 0 0; padding-top: 22px; border-top: 1px solid rgba(36, 40, 43, 0.16);
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 44px;
}
.contact-phones dt { flex: 0 0 100%; margin-bottom: 4px; font: 600 12px/1.6 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-phones dd { margin: 0; font: 400 clamp(21px, 1.8vw, 26px)/1.3 var(--serif); font-optical-sizing: auto; letter-spacing: -0.005em; white-space: nowrap; }
.contact-phones a {
  display: inline-block; padding-block: 10px;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: rgba(36, 40, 43, 0.35); transition: color 0.2s, text-decoration-color 0.2s;
}
.contact-phones a:hover { color: var(--brand); text-decoration-color: currentColor; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(247, 245, 239, 0.64); font-size: 13px; line-height: 1.6; }
/* Logo, the company's details under it, then © and the links (owner's preferred order, 2026-10-10) */
.footer-inner { padding: 48px 0; display: grid; gap: 22px; }
.footer-logo { width: 288px; }
/* The UK disclosure, one fact per line on every screen (owner, 2026-10-10) */
.legal span { white-space: nowrap; }
.footer-meta { display: flex; justify-content: space-between; gap: 24px; }
.footer-meta a { color: var(--paper); text-underline-offset: 4px; display: inline-block; padding-block: 12px; margin-block: -12px; }
.footer-links { display: flex; gap: 28px; }

/* Tablet */
@media (max-width: 1100px) {
  .site-nav { gap: 24px; }
  .split { column-gap: 48px; }
  .spec > div { grid-template-columns: 160px minmax(0, 1fr); }
}

/* Collapsed navigation: below 980 px the five uppercase links no longer fit beside the logo */
@media (max-width: 980px) {
  .header-inner { gap: 14px; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 4px var(--margin) 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
}

/* Stacked layout */
@media (max-width: 860px) {
  .hero-copy { padding: 72px 0 32px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(36, 40, 43, 0.55) 0%, rgba(36, 40, 43, 0.72) 55%, rgba(36, 40, 43, 0.86) 100%);
  }
  .split { grid-template-columns: minmax(0, 1fr); }
  .production-grid { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .production-intro, .production-film, .production-cut, .production-main { grid-column: 1; }
  .production-intro .figure-fact { padding-top: 40px; }
  .figure-fact .figure-note { margin-bottom: 0; }
  .production-film { width: min(84%, 420px); justify-self: end; }
  .what-grid { grid-template-columns: minmax(0, 1fr); }
  .what-media { max-width: 420px; }
  .what-body { margin-top: 28px; }
  .garment-index { gap: 28px; }
  .register { padding-top: 8px; }
  .split-body { padding-top: 8px; }
  /* One running two-column grid per group; the large plates take the full width */
  .lookbook-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; margin-top: 40px; align-items: start; }
  .lookbook { display: contents; }
  .lookbook > .is-large { grid-column: 1 / -1; width: min(84%, 560px); }
  .lookbook.is-mirrored > .is-large { justify-self: end; }
  .product figcaption { font-size: 14px; margin-top: 10px; }
  .group-title { margin-top: 48px; }
  .lookbook-group + .group-title { margin-top: 56px; }
}

/* Mobile */
@media (max-width: 720px) {
  .brand img { width: 168px; }
  .hero { min-height: 600px; }
  .hero-shade::after { display: none; }   /* on phones the film is barely upscaled; spare the battery */
  .hero-copy .display { margin: 18px 0 22px; }
  .hero-meta { padding-bottom: 20px; }
  .actions { margin-top: 32px; }
  .btn { width: 100%; justify-content: center; }
  .spec { margin-top: 32px; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .contact-email { font-size: clamp(26px, 8vw, 34px); }
  .contact-phones { flex-direction: column; align-items: flex-start; margin-top: 40px; padding-top: 18px; }
  .register > div { grid-template-columns: minmax(0, 1fr); padding: 16px 0 18px; }
  .footer-meta { flex-direction: column; gap: 16px; }
  .viewer-figure { padding: 12px 20px 88px; }
  .viewer-img { max-height: calc(100vh - 230px); }
  @supports (height: 100dvh) { .viewer-img { max-height: calc(100dvh - 230px); } }
  .viewer-nav { top: auto; bottom: 20px; margin-top: 0; width: 48px; height: 48px; }
  .viewer-prev { left: 20px; }
  .viewer-next { right: 20px; }
}
/* Small phones: logo, Menu and the language switch share 320–400 px */
@media (max-width: 400px) {
  .brand img { width: 140px; }
  .header-inner { gap: 10px; }
  .menu-toggle { padding: 0 12px; }
  .lang-switch a { padding: 0 8px; }
  .lang-switch { margin-right: -8px; }
}
@media (max-width: 340px) {
  .brand img { width: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-shade::after { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Text pages (privacy notice, 404) */
.page .page-title { margin-top: 20px; max-width: 16em; font-weight: 350; font-size: clamp(38px, 4.4vw, 64px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.page-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }
.prose { max-width: 40em; margin-top: 56px; }
.prose h2 { margin: 48px 0 12px; font-weight: 400; font-size: clamp(22px, 2vw, 26px); line-height: 1.2; letter-spacing: -0.005em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose a { text-underline-offset: 4px; }

/* Motion (added only by script.js, never with prefers-reduced-motion): sections arrive as you reach
   them. The selvedge rule draws from the left, text rises, photos open like a curtain. */
.motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0ms); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .rule { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(0.65, 0, 0.35, 1); }
.motion .rule::before { transform: scaleX(0); transform-origin: left center; transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.9s; }
.motion .rule.is-in, .motion .rule.is-in::before { transform: none; }
.motion .curtain { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(0.65, 0, 0.35, 1); transition-delay: var(--d, 0ms); }
.motion .curtain.is-in { clip-path: inset(0); }
@media print {
  .motion .reveal, .motion .rule, .motion .rule::before, .motion .curtain { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .motion .statement .w { color: var(--ink) !important; }
}
