/* ==========================================================================
   Options Mall — formalshirtsjuhu.com
   Identity: "The Shirtmaker's Folio"
   Burgundy and forest green grounds, soft cream pages, midnight-ink type,
   muted copper thread and warm champagne highlights. Design language taken
   from the shirt itself: topstitching (dashed copper rules), four-hole buttons
   (markers and bullets), woven neck labels (captions) and the curved
   shirttail hem (section edges).
   Type: Libre Caslon Display (display) · Libre Caslon Text italic (accent) ·
   Hanken Grotesk (text and labels)
   ========================================================================== */

:root {
  --burgundy: #512b36;
  --burgundy-2: #432230;
  --burgundy-3: #3a1d29;
  --forest: #243d35;
  --forest-2: #1c312a;
  --copper: #ad795f;
  --copper-ink: #87553e;      /* copper deep enough for small text on cream */
  --champagne: #d8c7a8;
  --champagne-2: #e7dcc7;
  --cream: #f5f1e9;
  --paper: #fbf9f4;
  --ink: #24272a;
  --text: #393b3e;
  --mute: #5d5f61;
  --on-dark: #f5f1e9;
  --on-dark-2: rgba(245, 241, 233, 0.82);
  --on-dark-3: rgba(245, 241, 233, 0.7);
  --line: rgba(36, 39, 42, 0.14);
  --line-2: rgba(36, 39, 42, 0.3);
  --line-lt: rgba(245, 241, 233, 0.2);

  --display: "Libre Caslon Display", "Didot", "Bodoni 72", Georgia, serif;
  --italic: "Libre Caslon Text", "Baskerville", Georgia, serif;
  --sans: "Hanken Grotesk", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1rem, 4.5vw, 4rem);
  --max: 1400px;
  --sec: clamp(4.5rem, 9vw, 8.5rem);
  --head-h: 112px;
  --ease: cubic-bezier(0.22, 0.68, 0.12, 1);
  --stitch: repeating-linear-gradient(90deg, var(--copper) 0 7px, transparent 7px 12px);
  --stitch-v: repeating-linear-gradient(180deg, var(--copper) 0 7px, transparent 7px 12px);
}
@media (max-width: 1279px) { :root { --head-h: 72px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 1rem); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.09rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.06; margin: 0; color: var(--ink); letter-spacing: -0.005em; text-wrap: balance; }
h3 { line-height: 1.15; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
strong { font-weight: 600; color: var(--ink); }
em, .it { font-family: var(--italic); font-style: italic; font-weight: 400; }
h1 em, h2 em, h3 em { letter-spacing: -0.01em; }
::selection { background: var(--champagne); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper-ink); outline-offset: 3px; }
.dk :focus-visible, .ft :focus-visible, .wi :focus-visible, .lb :focus-visible { outline-color: var(--champagne); }

.skip { position: absolute; left: 1rem; top: -200px; z-index: 500; background: var(--burgundy); color: var(--on-dark); padding: 0.8rem 1.2rem; font-size: 0.9rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 920px; }
.sec { padding-block: var(--sec); position: relative; }
.sec--tight { padding-block: calc(var(--sec) * 0.6); }
.dk { color: var(--on-dark-2); }
.dk h1, .dk h2, .dk h3, .dk h4, .dk strong { color: var(--on-dark); }
.bg-burgundy { background: var(--burgundy); }
.bg-forest { background: var(--forest); }
.bg-cream { background: var(--cream); }
.bg-paper { background: var(--paper); }
.bg-champagne { background: var(--champagne-2); }
.bg-ink { background: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.measure { max-width: 64ch; }
.measure-s { max-width: 48ch; }
.center { text-align: center; margin-inline: auto; }
.stack > * + * { margin-top: 1.1rem; }

/* ---------- Typographic voices ---------- */
.label {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--copper-ink);
  margin: 0 0 1.25rem;
}
.dk .label { color: var(--champagne); }
.label::before { content: ""; width: 2.2em; height: 1px; background: var(--stitch); }
.label--plain::before { display: none; }
.folio { font-family: var(--display); font-size: 0.95rem; letter-spacing: 0.08em; color: var(--copper-ink); }
.dk .folio { color: var(--champagne); }
.d-xxl { font-size: clamp(3rem, 1.3rem + 7.4vw, 8.4rem); line-height: 0.94; letter-spacing: -0.02em; }
.d-xl { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5.6rem); line-height: 0.98; letter-spacing: -0.015em; }
.d-l { font-size: clamp(2.1rem, 1.35rem + 3vw, 4.1rem); }
.d-m { font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.75rem); }
.d-s { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem); }
.lede { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); line-height: 1.6; color: var(--ink); }
.dk .lede { color: var(--on-dark); }
.statement { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 2.1vw, 3rem); line-height: 1.2; color: var(--ink); text-wrap: balance; }
.dk .statement { color: var(--on-dark); }
.small { font-size: 0.9rem; }
.mute { color: var(--mute); }
.dk .mute { color: var(--on-dark-3); }

/* the four-hole button glyph */
.btn-glyph { width: 1em; height: 1em; flex: none; }

/* ---------- Topstitch rules ---------- */
.stitch { height: 1px; background: var(--stitch); border: 0; margin: 0; opacity: 0.9; }
.stitch-box { position: relative; }
.stitch-box::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  background:
    var(--stitch) top left / 100% 1px no-repeat,
    var(--stitch) bottom left / 100% 1px no-repeat,
    var(--stitch-v) top left / 1px 100% no-repeat,
    var(--stitch-v) top right / 1px 100% no-repeat;
  opacity: 0.85;
}

/* ---------- Buttons & links ---------- */
.cta {
  display: inline-flex; align-items: center; gap: 0.85rem;
  min-height: 52px; padding: 0.95rem 1.6rem 0.95rem 1.2rem;
  font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid currentColor; border-radius: 0;
  background: transparent; color: var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.cta .btn-glyph { width: 1.25em; height: 1.25em; transition: transform 0.6s var(--ease); }
.cta:hover .btn-glyph, .cta:focus-visible .btn-glyph { transform: rotate(90deg); }
.cta--solid { background: var(--burgundy); border-color: var(--burgundy); color: var(--on-dark); }
.cta--solid:hover { background: var(--forest); border-color: var(--forest); }
.cta:not(.cta--solid):hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.dk .cta { color: var(--on-dark); }
.dk .cta--solid, .cta--cream, .dk .cta--cream { background: var(--cream); border-color: var(--cream); color: var(--burgundy); }
.dk .cta--solid:hover, .cta--cream:hover, .dk .cta--cream:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.dk .cta:not(.cta--solid):not(.cta--cream):hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.tlink {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  text-decoration: none; color: var(--copper-ink); padding-block: 0.5rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.45s var(--ease);
}
.tlink:hover, .tlink:focus-visible { background-size: 100% 1px; }
.dk .tlink { color: var(--champagne); }
.tlink svg { width: 1.6em; height: 0.7em; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 200; background: rgba(245, 241, 233, 0.96); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); transition: box-shadow 0.3s; }
.hd.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(36, 39, 42, 0.45); }
.hd__strip { background: var(--forest); color: var(--on-dark-2); font-size: 0.74rem; letter-spacing: 0.08em; }
.hd__strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.hd__strip a { text-decoration: none; color: var(--on-dark); }
.hd__strip a:hover { text-decoration: underline; }
.hd__strip p { margin: 0; }
.hd__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.hd__logo { flex: none; display: block; line-height: 0; }
.hd__logo img { height: 50px; width: auto; aspect-ratio: 708 / 390; }
.hd__nav { flex: 1; display: flex; justify-content: center; }
.hd__nav ul { list-style: none; display: flex; gap: clamp(0.9rem, 1.6vw, 1.8rem); }
.hd__nav a {
  display: block; padding: 0.6rem 0; text-decoration: none; color: var(--ink);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  background: var(--stitch) left calc(100% - 4px) / 0 1px no-repeat; transition: background-size 0.45s var(--ease);
}
.hd__nav a:hover, .hd__nav a[aria-current="page"] { background-size: 100% 1px; }
.hd__nav a[aria-current="page"] { color: var(--burgundy); }
.hd__tools { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.7rem; min-height: 46px; padding: 0 1.1rem;
  border: 1px solid var(--burgundy); background: var(--burgundy); color: var(--on-dark);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.menu-btn:hover { background: var(--forest); border-color: var(--forest); }
.menu-btn__icon { width: 18px; height: 12px; position: relative; }
.menu-btn__icon span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-btn__icon span:nth-child(1) { top: 0; }
.menu-btn__icon span:nth-child(2) { top: 5.25px; right: 5px; }
.menu-btn__icon span:nth-child(3) { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__icon span:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
.hd__visit { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--burgundy); padding: 0.75rem 0.25rem; white-space: nowrap; }
.hd__visit:hover { text-decoration: underline; }

@media (max-width: 1279px) {
  .hd__strip, .hd__nav { display: none; }
  .hd__bar { min-height: 72px; }
  .hd__logo img { height: 44px; }
}
@media (max-width: 420px) {
  .hd__visit { display: none; }
  .menu-btn { padding: 0 0.9rem; }
}

/* ---------- Wardrobe index (the full menu) ---------- */
.wi {
  position: fixed; inset: var(--wi-top, var(--head-h)) 0 0 0; z-index: 190;
  background: var(--burgundy); color: var(--on-dark-2);
  overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.wi.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s; }
.wi__inner { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.wi__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.wi__head h2 { color: var(--on-dark); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); }
.wi__head p { margin: 0; max-width: 40ch; }
.wi__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); }
.wi__group h3 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); padding-bottom: 0.9rem; margin-bottom: 0.25rem; background: var(--stitch) left bottom / 100% 1px no-repeat; }
.wi__group ul { list-style: none; }
.wi__group a { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; gap: 0.5rem; padding: 0.95rem 0; text-decoration: none; border-bottom: 1px solid var(--line-lt); }
.wi__n { font-family: var(--display); font-size: 0.9rem; color: var(--champagne); }
.wi__t { display: block; font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.7rem); color: var(--on-dark); line-height: 1.15; transition: transform 0.4s var(--ease), color 0.3s; }
.wi__d { display: block; font-size: 0.86rem; color: var(--on-dark-3); margin-top: 0.2rem; }
.wi__group a:hover .wi__t, .wi__group a:focus-visible .wi__t { transform: translateX(6px); color: var(--champagne); }
.wi__group a[aria-current="page"] .wi__t { color: var(--champagne); }
.wi__foot { margin-top: 2.5rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.92rem; background: var(--stitch) left top / 100% 1px no-repeat; }
.wi__foot a { color: var(--on-dark); }
@media (max-width: 900px) { .wi__cols { grid-template-columns: 1fr; } .wi__group + .wi__group { margin-top: 1.75rem; } }
body.menu-open { overflow: hidden; }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 0.78rem; letter-spacing: 0.08em; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; }
.crumbs li { display: flex; align-items: center; gap: 0.6rem; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { opacity: 0.8; }

/* ---------- Photographic plates ---------- */
/* Every photo keeps its own aspect ratio (width/height attributes) and is shown whole. */
.plate { position: relative; background: var(--paper); padding: clamp(10px, 1.4vw, 18px); }
.plate img { width: 100%; height: auto; background: #e9e6e1; }
.plate--stitch::after {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  background:
    var(--stitch) top left / 100% 1px no-repeat,
    var(--stitch) bottom left / 100% 1px no-repeat,
    var(--stitch-v) top left / 1px 100% no-repeat,
    var(--stitch-v) top right / 1px 100% no-repeat;
}
.plate--bare { padding: 0; background: none; }
.plate--dark { background: var(--burgundy-2); }
.plate--forest { background: var(--forest-2); }
/* fixed-ratio plate: whole image contained, never cropped */
.plate--box picture { display: block; aspect-ratio: var(--ar, 1 / 1); background: #ebe8e3; }
.plate--box img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.cap { margin-top: 0.85rem; font-size: 0.85rem; line-height: 1.5; color: var(--mute); }
.dk .cap { color: var(--on-dark-3); }
/* woven neck label */
.tag {
  display: inline-block; position: relative;
  padding: 0.45rem 0.9rem 0.45rem 1rem;
  background: var(--champagne); color: var(--burgundy);
  font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.3;
  box-shadow: inset 0 0 0 3px var(--champagne), inset 0 0 0 4px rgba(81, 43, 54, 0.35);
}
.plate .tag { position: absolute; left: clamp(18px, 2vw, 28px); bottom: clamp(18px, 2vw, 28px); max-width: calc(100% - 3rem); }
.img-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.img-reveal.is-in { opacity: 1; transform: none; }
.zoomable { overflow: hidden; }
.zoomable img { transition: transform 1.2s var(--ease); }
.zoomable:hover img { transform: scale(1.025); }

/* ---------- Shirttail hem edge ---------- */
.hem { position: relative; }
.hem::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(26px, 4vw, 60px);
  background: var(--hem-next, var(--cream));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C120 0 170 58 300 58 L900 58 C1030 58 1080 0 1200 0 L1200 60 L0 60Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0 C120 0 170 58 300 58 L900 58 C1030 58 1080 0 1200 0 L1200 60 L0 60Z' fill='%23000'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Page hero (internal pages) ---------- */
.ph { position: relative; overflow: hidden; }
.ph__inner { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 7rem); }
.ph .crumbs { margin-bottom: clamp(2rem, 5vw, 4rem); }
.ph h1 { margin-bottom: 1.5rem; }
.ph__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.ph__text { grid-column: 1 / span 7; }
.ph__media { grid-column: 9 / span 4; }
.ph--wide .ph__text { grid-column: 1 / span 9; }
.ph__index { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; list-style: none; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.ph__index a { text-decoration: none; display: inline-flex; gap: 0.5rem; align-items: center; padding: 0.35rem 0; border-bottom: 1px solid transparent; }
.ph__index a:hover { border-bottom-color: currentColor; }
.ph__index a span { font-family: var(--display); font-weight: 400; letter-spacing: 0.04em; opacity: 0.75; }
.ph__mark { position: absolute; right: -4vw; top: 50%; width: min(46vw, 640px); transform: translateY(-50%); color: var(--copper); opacity: 0.22; pointer-events: none; }
@media (max-width: 900px) {
  .ph__text, .ph--wide .ph__text { grid-column: 1 / -1; }
  .ph__media { grid-column: 1 / -1; max-width: 420px; }
  .ph__mark { width: 90vw; right: -30vw; top: 30%; opacity: 0.12; }
}

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--burgundy); color: var(--on-dark-2); }
.hero__inner { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(5rem, 9vw, 8rem); }
.hero__text { grid-column: 1 / span 7; position: relative; z-index: 2; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--champagne); }
.hero h1 { color: var(--on-dark); }
.hero h1 .l1 { display: block; font-size: 0.48em; letter-spacing: 0.01em; margin-bottom: 0.12em; }
.hero h1 .l2 { display: block; }
.hero h1 em { color: var(--champagne); }
.hero__sub { max-width: 46ch; margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--on-dark-2); }
.hero__media { grid-column: 8 / span 5; position: relative; z-index: 1; justify-self: end; width: 100%; max-width: 470px; }
.hero__media::before { content: ""; position: absolute; inset: 9% -9% -7% 14%; background: var(--forest); z-index: -1; }
.hero__media .plate { background: var(--cream); }
.hero__media .tag { left: auto; right: -12px; bottom: 12%; }
.hero__collar { position: absolute; left: 50%; top: 52%; width: min(80vw, 1100px); transform: translate(-50%, -50%); color: var(--copper); opacity: 0.16; pointer-events: none; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: clamp(2rem, 4vw, 3rem); font-size: 0.86rem; color: var(--on-dark-3); }
.hero__foot span { display: inline-flex; align-items: center; gap: 0.55rem; }
.hero__foot svg { width: 14px; height: 14px; color: var(--copper); }
@media (max-width: 900px) {
  .hero__text, .hero__media { grid-column: 1 / -1; }
  .hero__media { justify-self: start; max-width: 380px; margin-top: 1rem; }
  .hero__media::before { inset: 8% -6% -5% 12%; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .l1, .hero h1 .l2, .hero__sub, .hero .cta-row, .hero__kicker { animation: rise 1.1s var(--ease) both; }
  .hero__kicker { animation-delay: 0.05s; }
  .hero h1 .l2 { animation-delay: 0.15s; }
  .hero__sub { animation-delay: 0.3s; }
  .hero .cta-row { animation-delay: 0.42s; }
  .hero__media .plate { animation: unveil 1.4s var(--ease) 0.2s both; }
  .hero__collar path { stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 3.2s var(--ease) 0.3s forwards; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Section heads ---------- */
.shead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem clamp(1.25rem, 3vw, 3rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.shead__t { grid-column: 1 / span 7; }
.shead__p { grid-column: 9 / span 4; }
.shead--c { display: block; text-align: center; max-width: 820px; margin-inline: auto; }
.shead--c .label { justify-content: center; }
.shead--c .label::after { content: ""; width: 2.2em; height: 1px; background: var(--stitch); }
@media (max-width: 900px) { .shead__t, .shead__p { grid-column: 1 / -1; } }

/* ---------- Home: brand intro ---------- */
.intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.intro__lead { grid-column: 1 / span 8; }
.intro__media { grid-column: 10 / span 3; grid-row: 1 / span 2; align-self: start; margin-top: 5rem; }
.intro__body { grid-column: 1 / span 8; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 3rem); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) {
  .intro__lead, .intro__body { grid-column: 1 / -1; }
  .intro__body { grid-template-columns: 1fr; }
  .intro__media { grid-column: 1 / -1; grid-row: auto; margin-top: 0; max-width: 360px; }
}

/* ---------- Home: the wardrobe index (categories) ---------- */
.wardrobe { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.wardrobe__list { grid-column: 1 / span 6; list-style: none; counter-reset: w; }
.wardrobe__item { border-top: 1px solid var(--line-lt); }
.wardrobe__item:last-child { border-bottom: 1px solid var(--line-lt); }
.wardrobe__btn {
  width: 100%; display: grid; grid-template-columns: 3rem 1fr auto; align-items: baseline; gap: 0.75rem;
  padding: clamp(0.9rem, 1.6vw, 1.25rem) 0; background: none; border: 0; text-align: left; color: var(--on-dark);
}
.wardrobe__n { font-family: var(--display); font-size: 0.95rem; color: var(--champagne); }
.wardrobe__name { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.7rem); line-height: 1.05; transition: transform 0.5s var(--ease), color 0.3s; }
.wardrobe__btn svg { width: 1.2rem; height: 1.2rem; color: var(--copper); opacity: 0; transition: opacity 0.3s, transform 0.6s var(--ease); }
.wardrobe__item.is-active .wardrobe__name { color: var(--champagne); transform: translateX(10px); }
.wardrobe__item.is-active .wardrobe__btn svg { opacity: 1; transform: rotate(90deg); }
.wardrobe__desc { padding: 0 0 1.25rem 3.75rem; max-width: 52ch; color: var(--on-dark-2); font-size: 0.97rem; }
.wardrobe__desc a { color: var(--champagne); }
.wardrobe__stage { grid-column: 8 / span 5; position: relative; }
.wardrobe__sticky { position: sticky; top: calc(var(--head-h) + 2rem); }
.wardrobe__fig { display: none; }
.wardrobe__fig.is-active { display: block; animation: fadein 0.6s var(--ease); }
.wardrobe__fig .plate { background: var(--cream); }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.js .wardrobe__item:not(.is-active) .wardrobe__desc { display: none; }
@media (max-width: 900px) {
  .wardrobe__list { grid-column: 1 / -1; }
  .wardrobe__stage { grid-column: 1 / -1; grid-row: 1; max-width: 340px; }
  .wardrobe__sticky { position: static; }
}

/* ---------- Anatomy diagram ---------- */
.anatomy { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.anatomy__fig { grid-column: 1 / span 5; position: sticky; top: calc(var(--head-h) + 2rem); }
.anatomy__fig svg { width: 100%; height: auto; color: var(--ink); }
.anatomy__fig .pin circle { fill: var(--burgundy); transition: fill 0.3s, r 0.3s; }
.anatomy__fig .pin text { fill: var(--cream); font: 600 8.5px var(--sans); }
.anatomy__fig .pin.is-on circle { fill: var(--copper); }
.anatomy__list { grid-column: 7 / span 6; list-style: none; counter-reset: a; }
.anatomy__list li { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.25rem 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); transition: background 0.3s; }
.anatomy__list li:last-child { border-bottom: 1px solid var(--line); }
.anatomy__list .n { grid-row: span 2; width: 2rem; height: 2rem; border-radius: 50%; background: var(--burgundy); color: var(--cream); display: grid; place-items: center; font-size: 0.8rem; font-weight: 600; transition: background 0.3s; }
.anatomy__list li.is-on .n { background: var(--copper); }
.anatomy__list h3 { font-size: 1.35rem; }
.anatomy__list p { margin: 0.2rem 0 0; font-size: 0.97rem; }
@media (max-width: 900px) {
  .anatomy__fig { grid-column: 1 / -1; position: static; max-width: 440px; margin-inline: auto; }
  .anatomy__list { grid-column: 1 / -1; }
}

/* ---------- Fit silhouettes ---------- */
.fits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.fit { background: var(--paper); padding: clamp(1.25rem, 2vw, 1.75rem); position: relative; }
.fit svg { width: 100%; max-width: 170px; margin: 0 auto 1.25rem; height: auto; color: var(--burgundy); }
.fit h3 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.fit p { font-size: 0.95rem; margin: 0; }
.fit__meta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 0.5rem; }
@media (max-width: 1024px) { .fits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fits { grid-template-columns: 1fr; } }

/* checklist with button bullets */
.checks { list-style: none; display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.9rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.dk .checks li { border-top-color: var(--line-lt); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.dk .checks li:last-child { border-bottom-color: var(--line-lt); }
.checks .btn-glyph { width: 1.4rem; height: 1.4rem; color: var(--copper); margin-top: 0.15rem; }
.checks strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.2rem; }

/* ---------- Swatch book (fabrics) ---------- */
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.swatch { background: var(--paper); display: flex; flex-direction: column; }
.swatch__cloth { aspect-ratio: 16 / 7; position: relative; }
.swatch__cloth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.75) 0 6px, transparent 6px 11px); }
.swatch__body { padding: 1.35rem 1.4rem 1.6rem; }
.swatch h3 { font-size: 1.65rem; margin-bottom: 0.35rem; }
.swatch__k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 0.7rem; }
.swatch p { font-size: 0.95rem; }
/* woven textures drawn in CSS */
.w-cotton { background-color: #e9e2d4; background-image: repeating-linear-gradient(0deg, rgba(36,39,42,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(36,39,42,.06) 0 1px, transparent 1px 3px); }
.w-linen { background-color: #d9cdb6; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 1px, transparent 1px 4px, rgba(36,39,42,.08) 4px 5px, transparent 5px 7px), repeating-linear-gradient(90deg, rgba(36,39,42,.1) 0 2px, transparent 2px 5px, rgba(255,255,255,.12) 5px 6px, transparent 6px 9px); }
.w-oxford { background-color: #a9bfd3; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 2px, transparent 2px 4px), repeating-linear-gradient(0deg, rgba(36,39,42,.12) 0 2px, transparent 2px 4px); }
.w-poplin { background-color: #f3f1ec; background-image: repeating-linear-gradient(0deg, rgba(36,39,42,.05) 0 1px, transparent 1px 2px); }
.w-twill { background-color: #5c3341; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 2px, transparent 2px 6px); }
.w-blend { background-color: #2f4b42; background-image: repeating-linear-gradient(90deg, rgba(216,199,168,.18) 0 1px, transparent 1px 4px), repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px); }
@media (max-width: 1024px) { .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .swatches { grid-template-columns: 1fr; } }

/* ---------- Colour strip ---------- */
.colours { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.6vw, 1.5rem); }
.colour h3 { font-size: 1.4rem; margin: 1rem 0 0.35rem; }
.colour p { font-size: 0.93rem; margin: 0; }
.colour__chip { display: flex; align-items: center; gap: 0.6rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); margin-top: 1rem; }
.colour__chip i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); }
@media (max-width: 1024px) { .colours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Generic editorial blocks ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split__media { grid-column: 1 / span 5; }
.split__text { grid-column: 7 / span 6; }
.split--rev .split__media { grid-column: 8 / span 5; order: 2; }
.split--rev .split__text { grid-column: 1 / span 6; order: 1; }
.split--top { align-items: start; }
.split h2 { margin-bottom: 1.4rem; }
.split h3 { margin-bottom: 0.9rem; }
@media (max-width: 900px) {
  .split__media, .split__text, .split--rev .split__media, .split--rev .split__text { grid-column: 1 / -1; order: initial; }
  .split__media { max-width: 520px; }
}
/* two images that overlap */
.duo { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); }
.duo > :first-child { grid-column: 1 / span 7; grid-row: 1; }
.duo > :last-child { grid-column: 5 / span 6; grid-row: 1; align-self: end; margin-bottom: -12%; z-index: 1; box-shadow: 0 24px 50px -30px rgba(36,39,42,.55); }
.duo-pad { padding-bottom: 14%; }

/* numbered chapter rows */
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.dk .chapter { border-top-color: var(--line-lt); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter__no { grid-column: 1 / span 2; }
.chapter__no span { display: block; font-family: var(--display); font-size: clamp(3rem, 2rem + 3vw, 5.5rem); line-height: 0.9; color: var(--copper); }
.chapter__no small { display: block; margin-top: 0.75rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.dk .chapter__no small { color: var(--on-dark-3); }
.chapter__body { grid-column: 3 / span 5; }
.chapter__body h2 { margin-bottom: 1.25rem; }
.chapter__media { grid-column: 9 / span 4; }
.chapter--flip .chapter__body { grid-column: 7 / span 6; order: 2; }
.chapter--flip .chapter__media { grid-column: 3 / span 4; order: 1; }
.chapter--wide .chapter__body { grid-column: 3 / span 10; }
@media (max-width: 900px) {
  .chapter__no, .chapter__body, .chapter__media, .chapter--flip .chapter__body, .chapter--flip .chapter__media, .chapter--wide .chapter__body { grid-column: 1 / -1; order: initial; }
  .chapter__no span { font-size: 2.6rem; }
  .chapter__media { max-width: 460px; }
}

/* definition cards */
.defs { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.dk .defs { border-top-color: var(--line-lt); }
.def { padding: 1.6rem clamp(1rem, 2vw, 1.75rem) 1.8rem 0; border-bottom: 1px solid var(--line); }
.dk .def { border-bottom-color: var(--line-lt); }
.def + .def { padding-left: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid var(--line); }
.dk .def + .def { border-left-color: var(--line-lt); }
.def h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.def p { font-size: 0.96rem; margin: 0; }
.def__k { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 0.65rem; display: block; }
.dk .def__k { color: var(--champagne); }
@media (min-width: 901px) { .defs > .def:nth-child(var(--cols, 3)n + 1) { padding-left: 0; border-left: 0; } }
@media (max-width: 900px) {
  .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .def, .def + .def { padding: 1.4rem 1rem 1.5rem 0; border-left: 0; }
  .def:nth-child(2n) { padding-left: 1rem; border-left: 1px solid var(--line); }
  .dk .def:nth-child(2n) { border-left-color: var(--line-lt); }
}
@media (max-width: 560px) {
  .defs { grid-template-columns: 1fr; }
  .def:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* collar specimens (SVG line drawings) */
.collars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.collar { background: var(--paper); padding: 1.5rem 1.5rem 1.75rem; }
.dk .collar { background: rgba(245, 241, 233, 0.06); }
.collar svg { width: 100%; max-width: 220px; height: auto; margin: 0 auto 1rem; color: var(--burgundy); }
.dk .collar svg { color: var(--champagne); }
.collar h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.collar p { font-size: 0.94rem; margin: 0; }
@media (max-width: 900px) { .collars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .collars { grid-template-columns: 1fr; } }

/* pairing table */
.pairs { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.pairs caption { text-align: left; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); padding-bottom: 1rem; }
.dk .pairs caption { color: var(--champagne); }
.pairs th, .pairs td { text-align: left; vertical-align: top; padding: 1rem 1.25rem 1rem 0; border-top: 1px solid var(--line); }
.dk .pairs th, .dk .pairs td { border-top-color: var(--line-lt); }
.pairs thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); border-top: 0; padding-top: 0; }
.dk .pairs thead th { color: var(--on-dark-3); }
.pairs tbody th { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.dk .pairs tbody th { color: var(--on-dark); }
.pairs .dot { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 50%; margin-right: 0.55rem; vertical-align: 0.05em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) {
  .pairs thead { display: none; }
  .pairs tr { display: block; padding: 1rem 0; border-top: 1px solid var(--line); }
  .dk .pairs tr { border-top-color: var(--line-lt); }
  .pairs th, .pairs td { display: block; border: 0; padding: 0.2rem 0; }
  .pairs td::before { content: attr(data-k) " — "; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-ink); }
  .dk .pairs td::before { color: var(--champagne); }
}

/* plate grids */
.plates { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: clamp(0.85rem, 2vw, 1.75rem); align-items: start; }
@media (max-width: 900px) { .plates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .plates { grid-template-columns: 1fr; } }
.plates--stagger > :nth-child(even) { margin-top: clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 480px) { .plates--stagger > :nth-child(even) { margin-top: 0; } }

/* quote / pull */
.pull { position: relative; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.pull::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 1px; background: var(--stitch-v); }
.pull p { font-family: var(--italic); font-style: italic; font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); line-height: 1.45; color: var(--ink); }
.dk .pull p { color: var(--on-dark); }

/* marquee band of words (static, decorative) */
.band { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.1rem; white-space: nowrap; }
.band__track { display: inline-flex; gap: 2.5rem; font-family: var(--display); font-size: clamp(1.3rem, 1rem + 1.4vw, 2.2rem); color: var(--ink); }
.band__track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.band__track svg { flex: none; width: 0.7em; height: 0.7em; color: var(--copper); }
@media (prefers-reduced-motion: no-preference) { .band__track { animation: slide 48s linear infinite; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* looks (three-up inspiration) */
.looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.75rem); align-items: start; }
.look:nth-child(2) { margin-top: clamp(2.5rem, 6vw, 6rem); }
.look h3 { font-size: 1.7rem; margin: 1.25rem 0 0.5rem; }
.look p { font-size: 0.96rem; }
@media (max-width: 900px) { .looks { grid-template-columns: 1fr; max-width: 520px; } .look:nth-child(2) { margin-top: 0; } }

/* visit block */
.visit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.visit__text { grid-column: 1 / span 7; }
.visit__media { grid-column: 9 / span 4; }
.visit address { font-family: var(--display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1.3; color: var(--on-dark); margin-top: 1.5rem; }
.visit__lines { list-style: none; margin-top: 1.75rem; display: grid; gap: 0.4rem; }
.visit__lines a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid var(--line-lt); }
.visit__lines a:hover { border-bottom-color: currentColor; }
@media (max-width: 900px) { .visit__text, .visit__media { grid-column: 1 / -1; } .visit__media { max-width: 380px; } }

/* closing */
.closing { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.closing__media { grid-column: 1 / span 5; }
.closing__text { grid-column: 7 / span 6; }
@media (max-width: 900px) { .closing__media, .closing__text { grid-column: 1 / -1; } .closing__media { max-width: 460px; } }

/* ---------- Guide (numbered lessons) ---------- */
.toc { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); counter-reset: toc; }
.toc a { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.5rem; padding: 0.95rem 0; border-top: 1px solid var(--line-lt); text-decoration: none; color: var(--on-dark); }
.toc a span:first-child { font-family: var(--display); color: var(--champagne); }
.toc a:hover span:last-child { text-decoration: underline; text-underline-offset: 0.25em; }
@media (max-width: 900px) { .toc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .toc { grid-template-columns: 1fr; } }
.lesson { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.lesson__no { grid-column: 1 / span 1; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem); color: var(--copper); line-height: 1; }
.lesson__body { grid-column: 2 / span 6; }
.lesson__body h2 { margin-bottom: 1.2rem; }
.lesson__body h3 { font-size: 1.25rem; margin: 1.6rem 0 0.5rem; }
.lesson__media { grid-column: 9 / span 4; position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; }
.lesson:nth-of-type(even) .lesson__body { grid-column: 6 / span 7; order: 2; }
.lesson:nth-of-type(even) .lesson__media { grid-column: 2 / span 3; order: 1; }
.tips { list-style: none; display: grid; gap: 0.65rem; margin: 1.2rem 0; }
.tips li { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.75rem; }
.tips .btn-glyph { width: 1.05rem; height: 1.05rem; margin-top: 0.3rem; color: var(--copper); }
@media (max-width: 900px) {
  .lesson__no, .lesson__body, .lesson__media, .lesson:nth-of-type(even) .lesson__body, .lesson:nth-of-type(even) .lesson__media { grid-column: 1 / -1; order: initial; }
  .lesson__media { position: static; max-width: 420px; }
}

/* ---------- Journal ---------- */
.jlist { list-style: none; counter-reset: j; }
.jitem a { display: grid; grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 0.8fr) 2rem; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: baseline; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-top: 1px solid var(--line); text-decoration: none; transition: background 0.4s; }
.jitem:last-child a { border-bottom: 1px solid var(--line); }
.jitem__n { font-family: var(--display); font-size: 1.1rem; color: var(--copper-ink); }
.jitem__t { font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.4rem); line-height: 1.1; color: var(--ink); transition: color 0.3s; }
.jitem__d { font-size: 0.95rem; color: var(--mute); }
.jitem__k { display: block; margin-bottom: 0.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); }
.jitem svg { width: 1.4rem; height: 1.4rem; color: var(--copper); transition: transform 0.5s var(--ease); }
.jitem a:hover .jitem__t { color: var(--burgundy); }
.jitem a:hover svg { transform: rotate(90deg); }
@media (max-width: 800px) { .jitem a { grid-template-columns: 3rem 1fr; } .jitem__d { grid-column: 2; } .jitem svg { display: none; } }

.article { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.article__aside { grid-column: 1 / span 3; position: sticky; top: calc(var(--head-h) + 2rem); align-self: start; font-size: 0.9rem; }
.article__body { grid-column: 4 / span 7; }
.article__aside h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 0.9rem; }
.article__aside ol { list-style: none; display: grid; gap: 0.55rem; }
.article__aside a { text-decoration: none; color: var(--text); }
.article__aside a:hover { color: var(--burgundy); text-decoration: underline; }
.prose { font-size: clamp(1.02rem, 0.98rem + 0.2vw, 1.12rem); }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.1vw, 2.3rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose ul, .prose ol { padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.prose li::marker { color: var(--copper); }
.prose figure { margin-block: 2.2em; }
.prose a { color: var(--burgundy); }
.prose .first::first-letter { float: left; font-family: var(--display); font-size: 4.6em; line-height: 0.82; padding: 0.06em 0.12em 0 0; color: var(--burgundy); }
.refs { font-size: 0.88rem; color: var(--mute); }
.refs li { margin-bottom: 0.4rem; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }
.related a { display: block; padding: 1.4rem 1.4rem 1.6rem; background: var(--paper); text-decoration: none; height: 100%; transition: background 0.3s; }
.related a:hover { background: var(--champagne-2); }
.related span { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--copper-ink); margin-bottom: 0.6rem; }
.related strong { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
@media (max-width: 900px) {
  .article__aside, .article__body { grid-column: 1 / -1; }
  .article__aside { position: static; }
  .related { grid-template-columns: 1fr; }
}

/* ---------- Gallery ---------- */
.gfilters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.gfilters button { min-height: 44px; padding: 0.6rem 1.15rem; border: 1px solid var(--line-2); background: transparent; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); transition: background 0.3s, color 0.3s; }
.gfilters button[aria-pressed="true"], .gfilters button:hover { background: var(--burgundy); border-color: var(--burgundy); color: var(--cream); }
.gfilters .count { opacity: 0.7; margin-left: 0.3rem; }
.gallery { columns: 4 260px; column-gap: clamp(0.85rem, 1.8vw, 1.5rem); }
.gitem { break-inside: avoid; margin-bottom: clamp(0.85rem, 1.8vw, 1.5rem); }
.gitem[hidden] { display: none; }
.gitem button { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); text-align: left; position: relative; }
.gitem button img { width: 100%; height: auto; transition: transform 0.9s var(--ease), opacity 0.4s; }
.gitem button:hover img { transform: scale(1.02); }
.gitem button::after { content: attr(data-no); position: absolute; top: 10px; right: 10px; padding: 0.25rem 0.5rem; background: var(--cream); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; color: var(--burgundy); opacity: 0; transition: opacity 0.3s; }
.gitem button:hover::after, .gitem button:focus-visible::after { opacity: 1; }
.gitem figcaption { font-size: 0.82rem; color: var(--mute); padding: 0.6rem 0.2rem 0; line-height: 1.45; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(28, 20, 24, 0.96); display: grid; grid-template-rows: auto 1fr auto; color: var(--on-dark-2); }
.lb[hidden] { display: none; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; }
.lb__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(3.5rem, 8vw, 7rem); min-height: 0; touch-action: pan-y; }
.lb__stage img { max-width: 100%; max-height: calc(100dvh - 11rem); width: auto; height: auto; object-fit: contain; background: #e9e6e1; }
.lb__cap { text-align: center; padding: 1rem var(--gutter) 1.5rem; font-size: 0.92rem; min-height: 3.5rem; }
.lb button { background: none; border: 1px solid var(--line-lt); color: var(--on-dark); min-width: 48px; min-height: 48px; display: grid; place-items: center; }
.lb button:hover { background: var(--cream); color: var(--ink); }
.lb__prev, .lb__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__prev { left: clamp(0.5rem, 2vw, 2rem); }
.lb__next { right: clamp(0.5rem, 2vw, 2rem); }
.lb svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .lb__stage { padding: 0 0.75rem; } .lb__prev, .lb__next { top: auto; bottom: -3.75rem; transform: none; } .lb__cap { padding-inline: 4.5rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); }
.ccard { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.ccard svg.ico { width: 2rem; height: 2rem; color: var(--burgundy); }
.ccard h3 { font-size: 1.7rem; }
.ccard p, .ccard address { margin: 0; font-size: 1rem; color: var(--text); }
.ccard .big { font-family: var(--display); font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; line-height: 1.3; }
.ccard .big:hover { color: var(--burgundy); text-decoration: underline; }
.ccard .cta { margin-top: auto; align-self: flex-start; }
@media (max-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } .contact-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ft { background: var(--forest); color: var(--on-dark-2); position: relative; }
.ft__top { padding-block: clamp(4rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.75rem, 4vw, 3rem); }
.ft__brand { grid-column: 1 / span 3; }
.ft__brand img { width: 170px; height: auto; aspect-ratio: 708 / 390; margin-bottom: 1.5rem; }
.ft__brand p { max-width: 36ch; font-size: 0.95rem; }
.ft__col { grid-column: span 2; }
.ft__col--wide { grid-column: span 3; }
.ft h2 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--champagne); margin-bottom: 1.1rem; padding-bottom: 0.85rem; background: var(--stitch) left bottom / 2.5rem 1px no-repeat; }
.ft ul { list-style: none; display: grid; gap: 0.15rem; }
.ft__col a { display: inline-block; padding: 0.3rem 0; text-decoration: none; color: var(--on-dark-2); font-size: 0.95rem; }
.ft__col a:hover { color: var(--on-dark); text-decoration: underline; }
.ft address { font-size: 0.95rem; line-height: 1.7; color: var(--on-dark-2); }
.ft__contact { display: grid; gap: 0.3rem; margin-top: 1rem; }
.ft__contact a { color: var(--on-dark); text-decoration: none; font-size: 0.95rem; overflow-wrap: anywhere; display: inline-block; padding: 0.2rem 0; }
.ft__contact a:hover { text-decoration: underline; }
.social { display: flex; gap: 0.5rem; margin-top: 1.5rem; list-style: none; }
.social li { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-lt); border-radius: 50%; color: var(--champagne); }
.social a { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; color: inherit; }
.social a:hover { background: var(--champagne); color: var(--forest); }
.social svg { width: 17px; height: 17px; }
.ft__statement { border-top: 1px solid var(--line-lt); padding-block: clamp(2rem, 4vw, 3rem); }
.ft__statement p { font-family: var(--display); font-size: clamp(1.8rem, 1rem + 3.6vw, 4.6rem); line-height: 1; color: var(--on-dark); margin: 0; letter-spacing: -0.01em; }
.ft__statement em { color: var(--champagne); }
.ft__base { background: var(--burgundy-3); font-size: 0.82rem; color: var(--on-dark-3); }
.ft__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-block: 1.25rem; }
.ft__base p { margin: 0; }
.ft__base a { color: var(--champagne); }
@media (max-width: 1024px) {
  .ft__brand { grid-column: 1 / -1; }
  .ft__col { grid-column: span 4; }
  .ft__col--wide { grid-column: span 8; }
}
@media (max-width: 640px) {
  .ft__top { grid-template-columns: 1fr; }
  .ft__brand, .ft__col, .ft__col--wide { grid-column: 1 / -1; }
}

/* ---------- Reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
  .js .rv.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }

@media print {
  .hd, .wi, .ft, .lb, .skip { display: none !important; }
  body { background: #fff; }
}
/* tag sits at the top when a caption follows the photo */
.plate:has(.cap) .tag { bottom: auto; top: clamp(18px, 2vw, 28px); }
