/* SOSTA — alpine clothing from Lecco.
   Visual language: a field spec sheet. Fog-grey paper, ink, one signal orange. One typeface, Instrument Sans,
   in two weights (400 for reading, 500 for names and headings); figures are its tabular figures, never a mono.
   The wordmark is the same family, condensed and bold, outlined. Columns: 12, and every block starts on
   column 1, 5 or 8. Sections are spaced by --sec, never by rules. Photographs are square-cornered; studio
   photographs sit on one tile colour (the backdrop of every packshot is flattened to exactly --tile). */

@property --fogk { syntax: '<number>'; inherits: true; initial-value: 1; }

:root {
  --bg: #edeeea;
  --bg-2: #e6e7e3;
  --tile: #dcded9;          /* = decoded backdrop of every studio AVIF */
  --ink: #141516;
  --ink-2: #3e4144;
  --ink-3: #62666a;         /* 4.9:1 on --bg */
  --line: rgba(20, 21, 22, .12);
  --line-2: rgba(20, 21, 22, .24);
  --signal: #d9531e;
  --fog: #e7e9e8;
  --ui-bg: rgba(237, 238, 234, .94);
  --f: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --sec: clamp(96px, 10vw, 144px);
  --cols: repeat(12, minmax(0, 1fr));
  /* type scale: 12 · 13 · 15 · 17 · 22 · 28 · 38 · 54, and the hero */
  --t-54: clamp(34px, 3.75vw, 54px);
  --t-38: clamp(28px, 2.64vw, 38px);
  --t-28: clamp(22px, 1.95vw, 28px);
  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --io: cubic-bezier(0.77, 0, 0.175, 1);
  --soft: cubic-bezier(0.2, 0, 0, 1);
  --hh: 60px;
  --pad: 28px;
  --gap: 12px;
  --r: 2px;
}
@media (max-width: 759px) { :root { --hh: 54px; --pad: 16px; --gap: 8px; --sec: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
body { overflow-x: clip; }
html.is-loading *, html.is-loading *::before, html.is-loading *::after { transition: none !important; }
html { scrollbar-gutter: stable; }
html.is-bag, html.is-sheet { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f); font-kerning: normal;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
figure { margin: 0; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* .mono = figures and small data: the text face with tabular figures, one size */
.mono { font-variant-numeric: tabular-nums; font-size: 13px; line-height: 1.45; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.ic { width: 16px; height: 16px; flex: none; }
.mute { color: var(--ink-3); }

.t-h1 { font-size: var(--t-54); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; }
.t-h2 { font-size: var(--t-54); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
/* display type hangs into the margin by its side bearing, so its ink lines up with the text below it */
.t-h1, .t-h2, .def-hw, .pp-name { margin-left: -.06em; }
@media (max-width: 759px) { .t-h1, .t-h2 { letter-spacing: -.025em; } }
.t-h3 { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 20px; border-radius: var(--r);
  font-weight: 500; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  transition-property: transform, background-color, color, box-shadow; transition-duration: 150ms; transition-timing-function: ease-out;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:not(:disabled):active { transform: scale(0.96); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-s { --h: 36px; padding: 0 14px; font-size: 13px; }
.btn-w { width: 100%; }
.btn .ic { transition: transform 200ms var(--out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: #26282a; }
  .btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
  .btn:hover .ic { transform: translateX(3px); }
}
.btn:disabled { cursor: default; }
.lnk { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.lnk .ic { transition: transform 200ms var(--out); }
@media (hover: hover) and (pointer: fine) { .lnk:hover .ic { transform: translateX(3px); } }
.lnk span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size 250ms var(--out); }
@media (hover: hover) and (pointer: fine) { .lnk:hover span { background-size: 0 1px; background-position: 100% 100%; } }

/* ---------------------------------------------------------------- header */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--hh);
  display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: center; padding: 0 var(--pad);
  transition: background-color 300ms ease, box-shadow 300ms ease, opacity 600ms var(--out);
}
html.is-solid .hdr { background: var(--ui-bg); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
html:not(.is-hdr) .hdr { opacity: 0; pointer-events: none; }
.hdr-mark { grid-column: 1 / 5; display: inline-flex; align-items: center; justify-self: start; height: 40px; transform: translateY(-2.3px); }
.wm { display: block; height: 16px; width: calc(16px * 2488 / 740); color: var(--ink); }
.hdr-nav { grid-column: 5 / -1; display: flex; gap: 28px; justify-self: start; font-size: 15px; font-weight: 500; }
.hdr-nav a { position: relative; padding: 8px 0; color: var(--ink-2); transition: color 150ms ease; }
.hdr-nav a.is-on { color: var(--ink); }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 300ms var(--out); }
.hdr-nav a.is-on::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .hdr-nav a:hover { color: var(--ink); } }
.hdr-bag { position: absolute; right: var(--pad); top: calc((var(--hh) - 36px) / 2); display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 0 0 12px; font-size: 15px; font-weight: 500; transition: transform 150ms ease-out; }
.hdr-bag:active { transform: scale(0.96); }
.bag-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: transparent; color: var(--ink-3); overflow: hidden; font-size: 13px; font-weight: 500; transition: background-color 200ms ease, color 200ms ease; }
html.has-items .bag-n { background: var(--ink); color: var(--bg); box-shadow: none; }
.bag-n > span, .roll > span { display: block; height: 1lh; }
.roll { height: 1lh; }
.bag-n > span { display: block; }
.bag-ping { position: absolute; right: 0; top: 8px; width: 20px; height: 20px; border-radius: 10px; pointer-events: none; box-shadow: 0 0 0 0 var(--signal); opacity: 0; }
.bag-ping.is-ping { animation: ping 700ms var(--out); }
@keyframes ping { 0% { opacity: .9; box-shadow: 0 0 0 0 var(--signal); } 100% { opacity: 0; box-shadow: 0 0 0 10px var(--signal); } }
@media (max-width: 759px) {
  .hdr { grid-template-columns: auto 1fr auto; gap: 14px; }
  .hdr-mark, .hdr-nav { grid-column: auto; }
  .hdr-nav { gap: 18px; justify-self: end; font-size: 13px; }
  .hdr-nav a[data-nav="logbook"] { display: none; }
  .wm { height: 14px; width: calc(14px * 2488 / 740); }
  .hdr-bag { position: static; padding: 0; font-size: 13px; }
}

/* ---------------------------------------------------------------- hero: the fog clears off the ridge */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--fog); }
.hero-media { position: absolute; inset: 0; }
.h-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--hs, 1.06)); transform-origin: 70% 50%;
  filter: blur(calc(var(--fogk) * 16px)) brightness(calc(1 + var(--fogk) * .32)) saturate(calc(1 - var(--fogk) * .55)) contrast(calc(1 - var(--fogk) * .35));
  will-change: transform, filter;
}
html.is-clear .h-img, html.is-plate .h-img { filter: none; will-change: transform; }
.plate { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transform: translate3d(0, var(--py, 0px), 0) scale(var(--hs, 1.06)); transform-origin: 70% 50%; will-change: opacity; }
.plate.is-css { filter: brightness(1.32) saturate(.45) contrast(.65); }
.fog { position: absolute; top: -6%; left: -12%; width: 156%; height: 112%; pointer-events: none; opacity: calc(var(--fogk) * .96); }
.fog-b { opacity: calc(var(--fogk) * .7); }
.veil { position: absolute; inset: 0; background: var(--fog); opacity: calc(var(--fogk) * .62); pointer-events: none; }
html.is-clear .fog, html.is-clear .veil { display: none; }
/* a little fog under the header, so the bag and the nav read over dark rock */
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 140px; z-index: 1; background: linear-gradient(rgba(231, 233, 232, .62), rgba(231, 233, 232, 0)); pointer-events: none; }
/* a scrim behind the copy only where the sky is busy (narrow screens) */
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(to top, rgba(231, 233, 232, .7), rgba(231, 233, 232, 0)); pointer-events: none; opacity: 0; }

.hero-copy { position: absolute; left: var(--pad); bottom: clamp(36px, 7vh, 72px); width: min(620px, calc(100% - 2 * var(--pad))); z-index: 2; }
.h-kick { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-weight: 500; margin-bottom: 24px; }
.h-vis { color: var(--ink); min-width: 4.6em; }
.h-kick { flex-wrap: wrap; row-gap: 8px; }
.h-kick-t { display: inline-flex; gap: 10px; }
.h-gauge { position: relative; display: block; width: 132px; height: 1px; background: rgba(20, 21, 22, .18); align-self: center; }
.h-gauge i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.h-title { font-size: clamp(64px, 9.8vw, 152px); line-height: .88; font-weight: 500; letter-spacing: -.05em; word-spacing: .05em; margin: 0 0 30px -.08em; }
.h-title .ln { padding-bottom: .06em; }
.h-sub { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 460px; margin-bottom: 32px; text-wrap: pretty; }
.h-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.h-cap { position: absolute; right: var(--pad); bottom: calc(clamp(36px, 7vh, 72px) + 14px); z-index: 2; display: flex; gap: 20px; color: var(--ink); font-weight: 500; text-shadow: 0 0 10px rgba(231, 233, 232, .95), 0 0 2px rgba(231, 233, 232, .9); }
.h-cap-vis { color: var(--ink); }
html.is-loading .hero-copy > :not(.h-kick), html.is-loading .h-cap, html.is-loading .h-spot { opacity: 0; }

/* shop-the-photo point on the climber */
.h-spot { position: absolute; left: var(--sx, 82%); top: var(--sy, 45%); z-index: 2; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; }
.h-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 1px rgba(20, 21, 22, .25), 0 0 0 7px rgba(237, 238, 234, .35); transition: transform 200ms var(--out); }
.h-spot::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; border: 1px solid rgba(237, 238, 234, .8); animation: halo 2.6s var(--out) infinite; }
@keyframes halo { 0% { transform: scale(.5); opacity: 0; } 30% { opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
.h-lab { position: absolute; left: 30px; top: 50%; transform: translate(-6px, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
  background: var(--ui-bg); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 9px 12px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line), 0 6px 20px -8px rgba(20, 21, 22, .25);
  display: grid; gap: 1px; transition: opacity 180ms ease-out, transform 220ms var(--out); }
.h-spot.is-left .h-lab { left: auto; right: 30px; transform: translate(6px, -50%); }
.h-lab b { font-weight: 500; font-size: 15px; }
.h-lab .mono { color: var(--ink-3); }
.h-spot:focus-visible .h-lab, .h-spot.is-open .h-lab { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) and (pointer: fine) { .h-spot:hover .h-lab { opacity: 1; transform: translate(0, -50%); } .h-spot:hover .h-dot { transform: scale(1.25); } }

@media (max-width: 759px) {
  .hero { min-height: 560px; }
  .h-img { object-position: 50% 30%; }
  /* the vertical photograph keeps its sky in the upper half: the copy goes there, the climber stays clear below */
  .hero-copy { top: calc(var(--hh) + 26px); bottom: auto; }
  .hero::after { opacity: 1; inset: 0 0 auto 0; height: 62%; background: linear-gradient(rgba(231, 233, 232, .55), rgba(231, 233, 232, 0)); }
  .h-title { font-size: clamp(58px, 17vw, 84px); margin-bottom: 18px; }
  .h-sub { margin-bottom: 22px; }
  .h-cap { display: none; }
  .h-cta { gap: 18px; }
  .h-kick { margin-bottom: 14px; }
}

/* ---------------------------------------------------------------- definition */
.def { display: grid; grid-template-columns: var(--cols); gap: 32px var(--gap); padding: var(--sec) var(--pad); align-items: first baseline; }
.def-word { grid-column: 1 / 5; grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 6px; }
.def-word p { display: flex; flex-direction: column; gap: 6px; }
.def-hw { font-size: var(--t-54); font-weight: 500; letter-spacing: -.035em; line-height: 1; }
.def-anchor { width: min(240px, 70%); height: auto; margin-top: 34px; overflow: visible; filter: none !important; transform: none !important; opacity: 1 !important; }
.def-anchor path { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--out); }
.def-anchor .da-rock { stroke: var(--ink-3); stroke-dasharray: 1; transition-duration: 1400ms; }
.def-anchor .da-rope { stroke: var(--signal); stroke-width: 2.2; transition-delay: 700ms; }
.def-anchor .da-line { transition-delay: 300ms; }
.def-anchor .da-ring { transition-delay: 600ms; }
.def-anchor .da-bolt { fill: var(--bg); stroke: var(--ink); stroke-width: 1.4; }
.def-anchor .da-dot { fill: var(--ink); }
.def-anchor .da-mp { fill: var(--signal); }
.def-anchor circle, .def-anchor text { opacity: 0; transition: opacity 500ms var(--out) 500ms; }
.def-anchor text { font-family: var(--f); font-size: 12px; fill: var(--ink-3); transition-delay: 900ms; }
.def-anchor.is-in path { stroke-dashoffset: 0; }
.def-anchor.is-in circle, .def-anchor.is-in text { opacity: 1; }
@media (max-width: 759px) { .def-anchor { display: none; } }
@media (prefers-reduced-motion: reduce) { .def-anchor path { transition: none; stroke-dashoffset: 0; } .def-anchor circle, .def-anchor text { transition: opacity 300ms ease; } }
.def-ipa { color: var(--ink-3); }
.def-text { grid-column: 5 / -1; font-size: var(--t-38); line-height: 1.2; letter-spacing: -.02em; font-weight: 400; max-width: 21.5em; text-wrap: pretty; }
.def-text em { font-style: normal; }
.def-nums { grid-column: 5 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 52px; }
.def-nums div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.def-nums dt { font-size: var(--t-28); font-weight: 400; letter-spacing: -.03em; line-height: 1; margin-bottom: 14px; color: var(--ink); }
.def-nums dd { color: var(--ink-2); font-size: 15px; max-width: 21em; }
@media (max-width: 759px) {
  .def { grid-template-columns: 1fr; padding: var(--sec) var(--pad); gap: 20px; }
  .def-word, .def-text, .def-nums { grid-column: 1 / -1; }
  .def-nums { grid-template-columns: 1fr; margin-top: 24px; gap: 18px; }
}

/* ---------------------------------------------------------------- shop */
.shop { padding: 0 var(--pad) var(--sec); scroll-margin-top: var(--hh); }
.shop-head { display: grid; grid-template-columns: var(--cols); column-gap: var(--gap); align-items: last baseline; margin-bottom: 48px; }
.shop-head > h2 { grid-column: 1 / 5; }
.shop-head > p { grid-column: 5 / -1; }
/* field notes vary the opener: the lede sits under its title */
.field .shop-head > h2 { grid-column: 1 / -1; }
.field .shop-head > p { grid-column: 1 / 6; margin-top: 16px; }
.shop-lede { color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 32em; text-wrap: pretty; }
.shop-body { position: relative; }
.shop-anchor { display: block; height: 0; }
.shop-bar { position: sticky; top: var(--hh); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; margin-bottom: 14px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.tabs { position: relative; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; height: 36px; padding: 0; font-size: 15px; font-weight: 500; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: color 150ms ease, transform 150ms ease-out; }
.tab sup { font-size: 13px; vertical-align: baseline; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color 150ms ease; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab:active { transform: scale(0.96); }
.tab-ind { position: absolute; z-index: 0; left: 0; bottom: 4px; height: 1.5px; width: 100px; background: var(--ink); transform-origin: 0 50%; transition: transform 420ms var(--out), width 420ms var(--out); }
@media (hover: hover) and (pointer: fine) { .tab:not([aria-selected="true"]):hover { color: var(--ink); } }
.shop-tools { display: flex; align-items: center; gap: 22px; flex: none; }
.sizes { display: flex; align-items: center; gap: 2px; }
.sizes .mono.lab { color: var(--ink-3); margin-right: 8px; white-space: nowrap; }
.l-short { display: none; }
@media (max-width: 759px) { .l-long { display: none; } .l-short { display: inline; } .sort > .mono { display: none; } .sort select { font-size: 13px; } .sz { min-width: 30px; padding: 0 6px; } .shop-tools { gap: 10px; } }
.sz { position: relative; height: 36px; min-width: 28px; padding: 0 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color 150ms ease, transform 150ms ease-out; }
.sz::after { content: ''; position: absolute; left: 6px; right: 6px; bottom: 4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transition: transform 300ms var(--out); }
.sz[aria-pressed="true"] { color: var(--ink); }
.sz[aria-pressed="true"]::after { transform: none; }
.sz:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .sz:not([aria-pressed="true"]):hover { color: var(--ink); } }
.sort { position: relative; display: flex; align-items: center; gap: 8px; }
.sort .mono { color: var(--ink-3); }
.sort-v { font-size: 15px; font-weight: 500; padding: 6px 0; white-space: nowrap; }
.sort select { position: absolute; inset: 0; width: 100%; opacity: 0; appearance: none; -webkit-appearance: none; border: 0; font-size: 16px; cursor: pointer; }
.sort .ic { pointer-events: none; width: 14px; height: 14px; margin-left: -2px; }
.sort:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); overflow-anchor: none; }
.card { position: relative; display: block; }
.c-media { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.c-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-m { opacity: 0; transition: opacity 380ms var(--soft); }
.c-a { transition: opacity 380ms var(--soft), transform 900ms var(--out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .c-m.is-ready { opacity: 1; }
  .card:hover .c-a { transform: scale(1.015); }
}
.c-stock { position: absolute; left: 14px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); background: var(--ui-bg); padding: 4px 8px; border-radius: var(--r); opacity: 0; transform: translateY(4px); transition: opacity 200ms ease-out, transform 240ms var(--out); }
.c-stock i { width: 6px; height: 6px; border-radius: 50%; background: #4f8a5b; }
.c-stock.is-out i { background: var(--signal); }
.card.has-size .c-stock { opacity: 1; transform: none; }
.card.is-out .c-a { opacity: .55; filter: grayscale(.6); }
.card.is-other .c-a { opacity: .7; }
.c-stock.is-other i { background: var(--ink-3); }
.grid.is-sorting .c-meta { opacity: 0; transition: opacity 120ms ease; }
.c-meta { transition: opacity 260ms ease 120ms; }
.c-meta { padding: 14px 0 0; display: grid; gap: 2px; }
.c-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.c-name { font-weight: 500; font-size: 15px; letter-spacing: -.005em; }
.c-type { color: var(--ink-3); font-size: 15px; }
.c-price { font-weight: 400; font-size: 15px; font-variant-numeric: tabular-nums; }
.c-spec { color: var(--ink-3); display: flex; gap: 0; flex-wrap: wrap; }
.c-spec span + span::before { content: '·'; margin: 0 6px; color: var(--line-2); }
.c-spec b { color: var(--ink); font-weight: 500; }
.c-sw { display: flex; gap: 5px; }
.c-sw i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 21, 22, .14); }
.grid-note { position: absolute; left: 0; right: 0; top: 100%; margin-top: 24px; color: var(--ink-3); }

.rv { opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 700ms var(--out) var(--d, 0ms), transform 900ms var(--out) var(--d, 0ms), filter 700ms var(--out) var(--d, 0ms); }
.rv.is-in { opacity: 1; transform: none; filter: none; }
.card.rv, .fn.rv, .def-anchor.rv { filter: none; }

@media (max-width: 1099px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .shop { padding: 72px 0 80px; }
  .shop-head { grid-template-columns: 1fr; padding: 0 var(--pad); margin-bottom: 26px; gap: 12px; }
  .shop-head > h2, .shop-head > p { grid-column: 1 / -1; }
  .field .shop-head > p { margin-top: 0; }
  .shop-bar { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 0; }
  .tabs { padding: 0 var(--pad); }
  .shop-tools { padding: 0 var(--pad); justify-content: space-between; }
  .grid { gap: 26px var(--gap); padding: 0 var(--pad); }
  .c-meta { padding-top: 9px; }
  .c-type, .c-sw { display: none; }
  .c-row { flex-direction: column; gap: 1px; align-items: flex-start; }
  .c-spec span:nth-child(n+3) { display: none; }
  .c-stock { left: 8px; bottom: 8px; }
  .grid-note { padding: 0 var(--pad); }
}

/* ---------------------------------------------------------------- the system by the thermometer */
.layers { padding: 0 var(--pad) calc(var(--sec) - var(--hh) - 28px); display: grid; grid-template-columns: var(--cols); gap: 28px var(--gap); }
.layers-head { grid-column: 1 / 5; align-self: start; position: sticky; top: calc(var(--hh) + 30px); }
.layers-head .shop-lede { margin-top: 18px; max-width: 24em; }
.lay-not { margin-top: 18px; max-width: 26em; font-size: 13px; color: var(--ink-3); padding-top: 14px; border-top: 1px solid var(--line); }
.lay-wrap { grid-column: 5 / -1; min-width: 0; }
.lay { width: 100%; border-collapse: collapse; table-layout: fixed; }
.lay th, .lay td { padding: 0; border-bottom: 1px solid var(--line); text-align: center; }
.lay thead th { font-weight: 400; vertical-align: top; padding: 0 6px 14px; border-bottom: 1px solid var(--line-2); text-align: left; transition: opacity 200ms ease; }
.lay thead th:first-child { width: 31%; }
.lt-t { display: block; font-weight: 500; font-size: 15px; }
.lt-c { display: block; font-size: 22px; letter-spacing: -.02em; line-height: 1.1; margin: 6px 0 4px; color: var(--ink); }
.lt-d { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.3; min-height: 2.6em; }
.lay tbody th { text-align: left; font-weight: 400; }
.lay tbody th a { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 11px 14px 11px 0; transition: color 150ms ease; }
.lr-n { font-size: 15px; }
.lr-w { color: var(--ink-3); }
.lay td { height: 44px; transition: background-color 200ms ease, opacity 200ms ease; }
.lay td { text-align: left; padding-left: 6px; }
.lay td .ld { margin: 0; }
.ld { display: block; width: 12px; height: 12px; border-radius: 50%; }
.ld-w { background: var(--ink); }
.ld-p { box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.lay[data-on="0"] td[data-c="0"], .lay[data-on="1"] td[data-c="1"], .lay[data-on="2"] td[data-c="2"], .lay[data-on="3"] td[data-c="3"], .lay[data-on="4"] td[data-c="4"] { background: var(--bg-2); }
.lay[data-on="0"] [data-c]:not([data-c="0"]), .lay[data-on="1"] [data-c]:not([data-c="1"]), .lay[data-on="2"] [data-c]:not([data-c="2"]), .lay[data-on="3"] [data-c]:not([data-c="3"]), .lay[data-on="4"] [data-c]:not([data-c="4"]) { opacity: .35; }
@media (hover: hover) and (pointer: fine) { .lay tbody tr:hover th a { color: var(--ink); } .lay tbody tr:hover td { background-color: rgba(20, 21, 22, .03); } }
.lay-key { grid-column: 5 / -1; display: flex; gap: 22px; color: var(--ink-3); flex-wrap: wrap; align-items: center; }
.lay-key span { display: inline-flex; gap: 8px; align-items: center; }
.lay-key .ld { width: 10px; height: 10px; }
.lay-key span:last-child { margin-left: auto; color: var(--ink-2); }
@media (max-width: 1099px) { .layers { grid-template-columns: 1fr; } .layers-head { position: static; } .layers-head, .lay-wrap, .lay-key { grid-column: 1 / -1; } }
@media (max-width: 759px) {
  .layers { padding: 0 0 calc(var(--sec) - var(--hh) - 10px); gap: 22px; }
  .layers-head, .lay-key { padding: 0 var(--pad); }
  .lay-wrap { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-left: 0; }
  .lay-wrap::-webkit-scrollbar { display: none; }
  .lay { width: 560px; }
  .lay thead th:first-child, .lay tbody th { position: sticky; left: 0; background: var(--bg); z-index: 1; }
  .lay thead th:first-child { width: calc(96px + var(--pad)); }
  .lay thead th:first-child, .lay tbody th { padding-left: var(--pad); }
  .lay tbody th a { padding-right: 8px; }
  .lay .l-full { display: none; }
  .lay .l-short { display: inline; }
  .lr-w { display: none; }
  .lt-c { font-size: 17px; }
  .lt-d { min-height: 3.9em; }
  .lay-key span:last-child { margin-left: 0; width: 100%; }
}

/* ---------------------------------------------------------------- logbook (sticky scene) */
.log { position: relative; height: 380vh; scroll-margin-top: 0; }
.log-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: var(--cols); gap: var(--gap); padding: calc(var(--hh) + 28px) var(--pad) 32px; align-items: center; }
.log-stage { grid-column: 1 / 8; height: 100%; display: grid; place-items: center start; min-height: 0; }
.log-photo { position: relative; height: 100%; max-height: min(900px, calc(100svh - var(--hh) - 60px)); aspect-ratio: 4 / 5; max-width: 100%; background: var(--tile); overflow: hidden; }
.lg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lg-1, .lg-2 { opacity: 0; }
.log-serial { position: absolute; right: 14px; top: 12px; font-size: 13px; color: var(--ink-3); }
.log-serial span { color: var(--ink-3); }
.log-marks { position: absolute; inset: 0; pointer-events: none; }
.lm { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 0; height: 0; opacity: 0; transition: opacity 360ms var(--out); }
.lm.is-on { opacity: 1; }
.lm i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(237, 238, 234, .7); transform: scale(.4); transition: transform 500ms var(--out); }
.lm.is-on i { transform: scale(1); }
.lm span { position: absolute; left: 14px; top: -11px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--ink); color: var(--bg); padding: 3px 7px; border-radius: var(--r); transform: translateX(-4px); opacity: 0; transition: opacity 300ms ease-out 120ms, transform 400ms var(--out) 120ms; }
.lm.is-left span { left: auto; right: 14px; transform: translateX(4px); }
.lm.is-on span { opacity: 1; transform: none; }
.log-copy { grid-column: 8 / -1; max-width: 520px; }
.log-lede { color: var(--ink-2); font-size: 17px; margin: 20px 0 32px; max-width: 28em; text-wrap: pretty; }
.log-meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.log-meters div { padding: 12px 0 14px; }
.log-meters div + div { padding-left: 14px; box-shadow: inset 1px 0 0 var(--line); }
.log-meters dt { color: var(--ink-3); margin-bottom: 6px; }
.log-meters dd { font-size: 28px; letter-spacing: -.03em; line-height: 1; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.log-meters dd small { font-size: 13px; letter-spacing: 0; color: var(--ink-3); }
.roll { display: inline-block; position: relative; overflow: hidden; vertical-align: bottom; }
.roll > span { display: block; }
.log-rail { position: relative; height: 22px; margin: 18px 5.5px 8px; }
.log-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 1px; background: var(--line-2); }
.log-fill { position: absolute; left: 0; top: 9.5px; height: 2px; width: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.log-rail span { position: absolute; inset: 0; }
.log-rail b { position: absolute; top: 6px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow 200ms ease, background-color 200ms ease; }
.log-rail b.is-rep { width: 11px; height: 11px; top: 5px; margin-left: -5.5px; }
.log-rail b.is-on { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.log-rail b.is-rep.is-on { background: var(--signal); box-shadow: inset 0 0 0 1.5px var(--signal); }
.log-list { display: grid; gap: 0; margin-top: 14px; }
.log-list li { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
/* what has not happened yet is grey, not faded: still legible */
.log-list li:not(.is-on) .ll-t, .log-list li:not(.is-on) .ll-d { color: var(--ink-3); }
.ll-y { color: var(--ink-3); padding-top: 3px; position: relative; padding-left: 12px; transition: color 300ms ease; }
.ll-y::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); opacity: 0; transform: scale(.5); transition: opacity 300ms var(--out), transform 300ms var(--out); }
.log-list li.is-now .ll-y { color: var(--ink); }
.log-list li.is-now .ll-y::before { opacity: 1; transform: none; }
.ll-t { font-weight: 500; transition: color 300ms ease; }
.ll-d { color: var(--ink-2); transition: color 300ms ease; }
.log-end { color: var(--ink-2); margin-top: 22px; font-size: 15px; max-width: 30em; }
.log-end .lnk { color: var(--ink); }
@media (max-width: 1099px) and (min-width: 760px) { .log-list li .ll-d { display: none; } }
@media (max-height: 960px) and (min-width: 760px) { .log-lede { margin: 12px 0 18px; font-size: 15px; } .log-list li { padding: 7px 0; } .log-list li:not(.is-now) .ll-d { display: none; } .log-end { margin-top: 12px; font-size: 14px; } .log-rail { margin: 12px 0 4px; } .log-meters div { padding: 9px 0 11px; } }
@media (max-height: 760px) and (min-width: 760px) { .log-copy .t-h2 { font-size: var(--t-38); } .log-lede { display: none; } .log-meters { margin-top: 18px; } }
@media (max-width: 759px) {
  .log { height: 420vh; }
  .log-stage, .log-copy { grid-column: 1 / -1; }
  .log-pin { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; padding: calc(var(--hh) + 10px) var(--pad) 16px; gap: 14px; }
  .log-stage { height: auto; order: 1; }
  .log-photo { height: auto; width: min(100%, calc((100svh - 360px) * .8)); }
  .log-copy { order: 2; }
  .log-copy .kick, .log-lede, .log-end { display: none; }
  .log-copy .t-h2 { font-size: 28px; }
  .log-meters { margin-top: 10px; }
  .log-meters dd { font-size: 22px; }
  .log-meters div + div { padding-left: 10px; }
  .log-rail { margin: 10px 0 2px; }
  .log-list { position: relative; margin-top: 4px; }
  .log-list li { grid-template-columns: 64px minmax(0, 1fr); border: 0; padding: 6px 0; display: none; }
  .log-list li.is-now { display: grid; opacity: 1; }
  .lm span { display: none; }
  .lm.is-new span { display: block; }
}

/* ---------------------------------------------------------------- the bench */
.bench { position: relative; display: grid; grid-template-columns: var(--cols); gap: var(--gap); padding: calc(var(--sec) - 32px) var(--pad) var(--sec); align-items: center; }
.bench-media { grid-column: 1 / 7; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.bench-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.bench-copy { grid-column: 8 / -1; max-width: 500px; }
.bench-copy p { color: var(--ink-2); font-size: 17px; margin: 20px 0 28px; max-width: 30em; text-wrap: pretty; }
@media (max-width: 759px) { .bench { grid-template-columns: 1fr; padding: calc(var(--sec) - 16px) var(--pad) var(--sec); gap: 28px; } .bench-media, .bench-copy { grid-column: 1 / -1; } .bench-media { aspect-ratio: 4 / 3; } .bench-copy { padding: 0; } }

/* ---------------------------------------------------------------- field notes */
.field { padding: 0 var(--pad) var(--sec); }
.field-grid { display: grid; grid-template-columns: var(--cols); gap: var(--gap); align-items: start; container-type: inline-size; }
.fn { display: grid; gap: 12px; grid-template-rows: auto 5.4em; }
.fn:nth-child(1) { grid-column: 1 / 5; } .fn:nth-child(2) { grid-column: 5 / 10; } .fn:nth-child(3) { grid-column: 10 / -1; }
/* one band: every picture as tall as the first (four columns at 4:5) */
.fn-media { overflow: hidden; background: var(--bg-2); height: calc(((100cqw - 11 * var(--gap)) / 3 + 3 * var(--gap)) * 1.25); }
.fn-media img { width: 100%; height: auto; transition: transform 1200ms var(--out); }
.fn-media img { height: 100%; object-fit: cover; }
.fn-cap { display: grid; gap: 4px; }
.fn-place { font-weight: 500; font-size: 15px; }
.fn-meta { color: var(--ink-3); display: flex; gap: 12px; }
.fn-worn { font-size: 13px; color: var(--ink-2); }
.fn-worn a { white-space: nowrap; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
@media (max-width: 759px) {
  .field { padding: 0 0 var(--sec); }
  .field-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--gap); padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .field-grid::-webkit-scrollbar { display: none; }
  .fn { flex: 0 0 78vw; scroll-snap-align: start; scroll-margin-left: var(--pad); margin: 0 !important; }
  .fn .fn-media { aspect-ratio: 4 / 5; height: auto; }
}

/* ---------------------------------------------------------------- rules */
.rules { padding: 0 var(--pad) var(--sec); display: grid; grid-template-columns: var(--cols); gap: var(--gap); align-items: first baseline; }
.rules > h2 { grid-column: 1 / 5; }
.rules-list { grid-column: 5 / -1; display: grid; }
.rules-list li { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); align-items: first baseline; gap: var(--gap); padding: 22px 0 30px; border-top: 1px solid var(--line-2); }
.rules-list li:last-child { border-bottom: 1px solid var(--line-2); }
.rules-list h3 { grid-column: 1 / 4; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.rules-list p { grid-column: 4 / -1; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
@media (max-width: 759px) { .rules { grid-template-columns: 1fr; padding: 0 var(--pad) var(--sec); gap: 28px; } .rules > h2, .rules-list, .rules-list h3, .rules-list p { grid-column: 1 / -1; } .rules-list li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0 22px; } }

/* ---------------------------------------------------------------- footer */
.ftr { padding: 80px var(--pad) 28px; background: var(--ink); color: var(--bg); }
.ftr-top { display: grid; grid-template-columns: var(--cols); gap: 32px var(--gap); padding-bottom: 112px; }
.ftr-about { grid-column: 1 / 5; color: rgba(237, 238, 234, .74); }
.ftr-top > :nth-child(2) { grid-column: 5 / 7; } .ftr-top > :nth-child(3) { grid-column: 7 / 9; } .ftr-top > :nth-child(4) { grid-column: 9 / -1; }
.ftr-about p { max-width: 26em; }
.ftr-wm { height: 22px; width: calc(22px * 2488 / 740); color: var(--bg); margin: -7.3px 0 18px; }
.ftr-col .mono { color: rgba(237, 238, 234, .5); margin-bottom: 14px; }
.ftr-col ul { display: grid; gap: 6px; }
.ftr-col a { color: rgba(237, 238, 234, .86); transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .ftr-col a:hover { color: var(--bg); } }
.ftr-visit { color: rgba(237, 238, 234, .78); max-width: 20em; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; color: rgba(237, 238, 234, .55); border-top: 1px solid rgba(237, 238, 234, .14); padding-top: 16px; flex-wrap: wrap; }
@media (max-width: 759px) { .ftr { padding: 56px var(--pad) 20px; } .ftr-top { grid-template-columns: 1fr 1fr; padding-bottom: 56px; } .ftr-about, .ftr-top > .ftr-col:last-child { grid-column: 1 / -1; } .ftr-top > :nth-child(2), .ftr-top > :nth-child(3) { grid-column: auto; } }

/* ---------------------------------------------------------------- product page */
.v-product { padding-top: var(--hh); }
.pp { display: grid; grid-template-columns: var(--cols); gap: var(--gap); padding: 16px var(--pad) 0; align-items: start; }
.pp-gal { grid-column: 1 / 8; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pp-fig { position: relative; aspect-ratio: 4 / 5; background: var(--tile); overflow: hidden; }
.pp-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-fig figcaption { position: absolute; left: 12px; bottom: 12px; color: var(--ink-2); background: var(--ui-bg); padding: 3px 7px; border-radius: var(--r); }
.pp-fig figcaption:empty { display: none; }
.pp-fig .pp-sw { opacity: 0; transition: opacity 320ms var(--soft); }
.pp-fig .pp-sw.is-on { opacity: 1; }
.pp-info { grid-column: 9 / -1; position: sticky; top: calc(var(--hh) + 16px); padding: 24px 0 40px; }
.crumb { color: var(--ink-3); display: flex; gap: 8px; margin-bottom: 26px; }
.crumb a { transition: color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .crumb a:hover { color: var(--ink); } }
.pp-name { font-size: var(--t-38); line-height: 1; font-weight: 500; letter-spacing: -.035em; outline: none; }
.pp-type { color: var(--ink-2); font-size: 17px; margin-top: 10px; }
.pp-price { display: flex; align-items: baseline; gap: 14px; margin: 20px 0 22px; }
.pp-price b { font-size: 22px; font-weight: 400; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pp-price .mono { color: var(--ink-3); }
.pp-specline { display: flex; flex-wrap: wrap; margin: -6px 0 28px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pp-specline span + span::before { content: '·'; margin: 0 8px; color: var(--ink-3); }
.pp-specline span:first-child { color: var(--ink); font-weight: 500; }
.opt { margin-bottom: 22px; }
.opt-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 15px; }
.opt-h span { color: var(--ink-3); }
.opt-h span b { color: var(--ink); margin-left: 6px; }
.opt-h b { font-weight: 500; }
.opt-h button { font-size: 13px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.swatches { display: flex; gap: 10px; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 150ms ease, transform 150ms ease-out; }
.swatches button i { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(20, 21, 22, .15); }
.swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--ink); }
.swatches button:active { transform: scale(0.96); }
.opt-note { color: var(--ink-3); font-size: 13px; margin-top: 8px; }
.sizes-pp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sizes-pp.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sizes-pp button { height: 42px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; position: relative; overflow: hidden; transition: box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, transform 150ms ease-out; }
.sizes-pp button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.sizes-pp button.is-out { color: var(--ink-3); }
.sizes-pp button.is-out::after { content: ''; position: absolute; left: 10%; right: 10%; top: 50%; height: 1px; background: currentColor; transform: rotate(-16deg); opacity: .6; }
.sizes-pp button:not(:disabled):active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .sizes-pp button:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.opt.is-ask .sizes-pp button { animation: ask 900ms var(--out); }
.opt.is-ask .sizes-pp button:nth-child(2) { animation-delay: 60ms; } .opt.is-ask .sizes-pp button:nth-child(3) { animation-delay: 120ms; } .opt.is-ask .sizes-pp button:nth-child(4) { animation-delay: 180ms; } .opt.is-ask .sizes-pp button:nth-child(5) { animation-delay: 240ms; }
@keyframes ask { 0%, 100% { box-shadow: inset 0 0 0 1px var(--line-2); } 30% { box-shadow: inset 0 0 0 1.5px var(--signal); } }
.add { --h: 54px; width: 100%; justify-content: space-between; padding: 0 20px; font-size: 15px; }
.add .btn-l { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.add em { font-style: normal; font-variant-numeric: tabular-nums; opacity: .7; }
.add .add-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: 0 50%; }
.add .add-ok { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.add .add-ok .ic { width: 20px; height: 20px; }
.add .add-ok use { stroke-dasharray: 1; stroke-dashoffset: 1; }
.add.is-ok .btn-l { opacity: 0; filter: blur(4px); transition: opacity 200ms ease, filter 200ms ease; }
.add.is-ok .add-ok { opacity: 1; transition: opacity 200ms ease; }
.add.is-ok .add-ok use { stroke-dashoffset: 0; transition: stroke-dashoffset 400ms var(--out) 80ms; }
.add .btn-l { transition: opacity 250ms ease, filter 250ms ease; }
.add.is-sold { background: var(--bg-2); color: var(--ink-3); }
.ship { display: grid; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.ship p { position: relative; }
/* only the stock line carries a dot: it is a status, the others are facts */
.ship p:is(.is-stock, .is-out)::before { content: ''; position: absolute; left: -13px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.ship p.is-stock::before { background: #4f8a5b; }
.ship p.is-out::before { background: var(--signal); }
.pp-desc { color: var(--ink-2); margin: 30px 0 6px; font-size: 17px; text-wrap: pretty; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 500; font-size: 15px; text-align: left; }
.acc > button .ic { transition: transform 300ms var(--out); }
.acc.is-open > button .ic { transform: rotate(45deg); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--out); }
.acc.is-open .acc-b { grid-template-rows: 1fr; }
.acc-b > div { overflow: hidden; }
.acc-b > div > * { padding-bottom: 18px; }
.acc-b p { color: var(--ink-2); font-size: 15px; }
.dl { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; font-size: 15px; }
.dl dt, .dl dd { padding: 8px 0; border-top: 1px solid var(--line); }
.dl dt { color: var(--ink-3); }
.dl dd { color: var(--ink); }
.dl dt:first-child, .dl dt:first-child + dd { border-top: 0; }
.lasts { display: grid; gap: 10px; counter-reset: l; }
.lasts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 15px; color: var(--ink-2); }
.lasts li::before { counter-increment: l; content: counter(l); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); padding-top: 1px; }

/* read the garment: numbered pins on the front photograph */
.read { display: grid; grid-template-columns: var(--cols); gap: var(--gap); padding: var(--sec) var(--pad) 0; align-items: center; }
.read-copy { grid-column: 8 / -1; max-width: 480px; }
.read-fig { grid-column: 1 / 8; position: relative; aspect-ratio: 4 / 5; max-height: 86svh; justify-self: start; height: 86svh; max-width: 100%; background: var(--tile); overflow: hidden; }
.read-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pin { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 1px var(--line-2), 0 4px 14px -6px rgba(20, 21, 22, .35);
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; transition: transform 220ms var(--out), background-color 150ms ease, color 150ms ease; }
.pin.is-on { background: var(--ink); color: var(--bg); transform: scale(1.12); }
.pin:active { transform: scale(0.96); }
.read-list { display: grid; gap: 0; counter-reset: r; }
.read-list li { border-top: 1px solid var(--line); }
.read-list li:last-child { border-bottom: 1px solid var(--line); }
.read-list button { width: 100%; text-align: left; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 14px 0; }
.read-list b, .read-list span span { transition: color 200ms ease; }
.read-list li:not(.is-on) b { color: var(--ink-2); }
.read-list li:not(.is-on) span span { color: var(--ink-3); }
.read-list .mono { padding-top: 3px; color: var(--ink-3); }
.read-list b { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.01em; }
.read-list span span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .read-list button:hover { opacity: 1; } .pin:hover { transform: scale(1.12); } }
.pp-more { padding: var(--sec) var(--pad); }
.pp-more .shop-head { margin-bottom: 30px; }

/* mobile buy bar */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: none; align-items: center; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: var(--bg); box-shadow: 0 -1px 0 var(--line); transform: translateY(110%); transition: transform 360ms var(--out); }
.buybar.is-on { transform: none; }
.buybar img { width: 40px; height: 50px; object-fit: cover; border-radius: 0; background: var(--tile); }
.buybar div { flex: 1; min-width: 0; }
.buybar b { display: block; font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .mono { color: var(--ink-3); }
.buybar .btn { --h: 44px; }

@media (max-width: 1099px) and (min-width: 760px) { .pp-gal { grid-column: 1 / 7; grid-template-columns: 1fr; } .pp-info { grid-column: 8 / -1; } .read-fig { grid-column: 1 / 7; } .read-copy { grid-column: 8 / -1; } .pp-more .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) {
  .pp { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .pp-gal, .pp-info, .read-fig, .read-copy { grid-column: 1 / -1; }
  .dl { grid-template-columns: 1fr; }
  .dl dd { border-top: 0; padding-top: 0; }
  .dl dt { padding-bottom: 2px; }
  .pp-gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pp-gal::-webkit-scrollbar { display: none; }
  .pp-fig { flex: 0 0 100%; border-radius: 0; scroll-snap-align: start; }
  .pp-dots { display: flex !important; justify-content: center; gap: 6px; padding: 12px 0 0; }
  .pp-info { position: static; padding: 18px var(--pad) 20px; max-width: none; }
  .crumb { margin-bottom: 14px; }
  .read { grid-template-columns: 1fr; padding: var(--sec) var(--pad) 0; gap: 24px; }
  .read-fig { height: auto; width: 100%; max-height: none; }
  .pp-more { padding: var(--sec) 0; }
  .pp-more .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .pp-more .grid::-webkit-scrollbar { display: none; }
  .pp-more .card { flex: 0 0 62vw; scroll-snap-align: start; }
  .buybar { display: flex; }
}
.pp-dots { display: none; }
.pp-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); transition: background-color 200ms ease, transform 200ms var(--out); }
.pp-dots i.is-on { background: var(--ink); transform: scale(1.2); }

/* ---------------------------------------------------------------- info page */
.v-info { padding-top: var(--hh); }
.info { display: grid; grid-template-columns: var(--cols); gap: 24px var(--gap); padding: 60px var(--pad) var(--sec); }
.info-head { grid-column: 1 / -1; max-width: 900px; margin-bottom: 30px; }
.info-head .crumb { margin-bottom: 30px; }
.info-lede { font-size: 22px; line-height: 1.4; letter-spacing: -.01em; color: var(--ink-2); margin-top: 22px; max-width: 32em; }
.info-toc { grid-column: 1 / 5; position: sticky; top: calc(var(--hh) + 28px); display: grid; gap: 8px; align-self: start; color: var(--ink-3); font-size: 15px; }
.info-toc a { transition: color 150ms ease; }
.info-toc a.is-on { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .info-toc a:hover { color: var(--ink); } }
.info-body { grid-column: 5 / -1; display: grid; gap: 64px; max-width: 720px; }
.info-body section { scroll-margin-top: calc(var(--hh) + 24px); }
.info-body h2 { margin-bottom: 14px; }
.info-body p { color: var(--ink-2); font-size: 17px; margin-bottom: 12px; text-wrap: pretty; }
.info-body p.small { font-size: 13px; }
.steps { display: grid; gap: 0; margin: 22px 0 28px; counter-reset: s; }
.steps li { position: relative; padding: 12px 0 12px 36px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 17px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 16px; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.steps b { color: var(--ink); font-weight: 500; }
.tbl { width: 100%; border-collapse: collapse; margin: 18px 0 14px; font-size: 15px; }
.tbl caption { text-align: left; color: var(--ink-3); padding-bottom: 10px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); font-weight: 400; }
.tbl thead th { font-size: 13px; font-weight: 500; color: var(--ink-3); border-top: 0; vertical-align: bottom; }
.tbl tbody th { font-weight: 500; }
.tbl td.mono { font-size: inherit; }
/* figures line up on the right: prices, measurements */
.tbl-sizes td, .tbl-sizes thead th:not(:first-child), .tbl-ticket td:last-child, .tbl-ticket thead th:last-child, .tbl-ship td:last-child, .tbl-ship thead th:last-child { text-align: right; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl-ticket th:last-child, .tbl-ticket td:last-child { padding-right: 14px; }
@media (max-width: 759px) {
  .info { grid-template-columns: 1fr; padding: 36px var(--pad) var(--sec); }
  .info-toc, .info-body { grid-column: 1 / -1; }
  .info-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
  .info-body { gap: 48px; }
  .tbl-sizes { font-size: 13px; }
  .tbl-sizes td.mono { font-size: inherit; }
}

/* ---------------------------------------------------------------- overlays: bag drawer, size sheet, toast */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(20, 21, 22, .32); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
html.is-bag .scrim, html.is-sheet .scrim { opacity: 1; pointer-events: auto; }
.bag, .sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(460px, 100%); background: var(--bg);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden; transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 460ms;
}
html:not(.is-bag) .bag, html:not(.is-sheet) .sheet { transition-duration: 300ms, 0s; transition-delay: 0s, 300ms; }
html.is-bag .bag, html.is-sheet .sheet { transform: none; visibility: visible; transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; box-shadow: -1px 0 0 var(--line), -30px 0 60px -30px rgba(20, 21, 22, .3); }
.sheet { width: min(620px, 100%); }
.bag-head { display: flex; justify-content: space-between; align-items: center; height: var(--hh); padding: 0 20px 0 24px; box-shadow: 0 1px 0 var(--line); flex: none; }
.bag-title { font-size: 22px; font-weight: 500; letter-spacing: -.01em; display: flex; gap: 8px; align-items: baseline; }
.bag-title .mono { color: var(--ink-3); }
.icb { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 20px; transition: background-color 150ms ease, transform 150ms ease-out; }
.icb:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .icb:hover { background: var(--bg-2); } }
.bag-body, .sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 24px; }
.sheet-body { padding-top: 20px; }
.sheet-body .tbl { margin-top: 0; }
.sheet-body p { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.bag-foot { flex: none; padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
.bag-foot:empty { display: none; }
.meter { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.meter p { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.meter-b { height: 3px; border-radius: 2px; background: var(--bg-2); overflow: hidden; }
.meter-b i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--v)); transform-origin: 0 50%; transition: transform 600ms var(--out); }
.meter.is-free .meter-b i { background: #4f8a5b; }
.li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: opacity 180ms ease, transform 180ms ease; }
.li.is-out { opacity: 0; transform: translateX(16px); }
.li-img { display: block; aspect-ratio: 4 / 5; background: var(--tile); border-radius: 0; overflow: hidden; }
.li-img img { width: 100%; height: 100%; object-fit: cover; }
.li-t { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.li-t b { font-weight: 500; }
.li-t .mono { font-size: 15px; }
.li-m { color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.li-r { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.qty { display: inline-flex; align-items: center; height: 34px; border-radius: 17px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 17px; transition: transform 150ms ease-out, opacity 150ms ease; }
.qty button:not(:disabled):active { transform: scale(0.96); }
.qty button:disabled { opacity: .3; cursor: default; }
.qty output { min-width: 18px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
.li-x { font-size: 13px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sum { display: grid; gap: 6px; font-size: 15px; margin-bottom: 14px; }
.sum div { display: flex; justify-content: space-between; color: var(--ink-2); }
.sum .mono { font-size: 15px; color: var(--ink); }
.sum .tot { color: var(--ink); font-weight: 500; font-size: 17px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.sum .tot .mono { font-size: 17px; font-weight: 500; }
.bag-note { color: var(--ink-3); font-size: 12px; text-align: center; margin-top: 10px; }
.empty { padding: 48px 0; display: grid; gap: 10px; justify-items: start; }
.empty p:first-child { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.empty p { color: var(--ink-2); }
.empty .btn { margin-top: 14px; }
.form { display: grid; gap: 12px; padding-top: 10px; }
.form h3 { color: var(--ink); font-size: 15px; font-weight: 500; margin-top: 14px; }
.bag-back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); justify-self: start; padding: 6px 0; }
.fld { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); }
.fld input, .fld select { width: 100%; min-width: 0; height: 46px; border-radius: var(--r); border: 1px solid var(--line-2); background: #f6f6f3; padding: 0 12px; font-size: 16px; color: var(--ink); transition: border-color 150ms ease, box-shadow 150ms ease; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 21, 22, .08); }
.fld input[aria-invalid="true"] { border-color: var(--signal); }
.fld-err { color: #a83c12; font-style: normal; font-size: 12px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.fld { min-width: 0; }
.radio { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 14px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow 150ms ease; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.radio input { margin: 3px 0 0; accent-color: var(--ink); width: 16px; height: 16px; }
.radio b { display: block; font-weight: 500; font-size: 15px; }
.radio small { display: block; color: var(--ink-3); font-size: 13px; }
.radio .mono { font-size: 15px; padding-top: 0; }
.btn.is-busy .btn-l { opacity: .45; }
.done { padding: 40px 0; display: grid; gap: 12px; justify-items: start; }
.done-ic { display: none; width: 48px; height: 48px; border-radius: 50%; place-items: center; background: var(--ink); color: var(--bg); margin-bottom: 8px; }
.done-ic .ic { width: 22px; height: 22px; }
.done-ic use { stroke-dasharray: 1; }
.done h3 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.done p { color: var(--ink-2); }
.done .mono { color: var(--ink-3); }
.done .note { font-size: 13px; color: var(--ink-3); }

.toast { position: fixed; right: 20px; top: calc(var(--hh) + 12px); z-index: 35; width: min(380px, calc(100% - 32px)); display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 12px 12px 12px; border-radius: 6px; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(20, 21, 22, .35); overflow: hidden;
  opacity: 0; transform: translateY(-12px); filter: blur(4px); pointer-events: none; transition: opacity 150ms ease-out, transform 150ms ease-out, filter 150ms ease-out; }
.toast.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-duration: 300ms; }
.toast-img { width: 56px; height: 70px; object-fit: cover; border-radius: 0; background: var(--tile); }
.toast-t .mono { color: var(--ink-3); }
.toast-name { font-weight: 500; font-size: 15px; }
.toast-meta { color: var(--ink-2); font-size: 13px; }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); opacity: .2; }
@media (max-width: 759px) { .toast { right: 16px; left: 16px; width: auto; } }

.fly { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; border-radius: 0; overflow: hidden; background: var(--tile); will-change: transform; }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- route changes, watchdog */
.view { min-height: 60vh; }
.ld-fail { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 99; width: min(360px, calc(100% - 32px)); background: var(--bg); border-radius: 6px; padding: 24px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(20, 21, 22, .4); display: grid; gap: 10px; justify-items: start; }
.ld-fail .mono { color: var(--ink-3); }

/* ---------------------------------------------------------------- reduced motion: cross-fades only */
@media (prefers-reduced-motion: reduce) {
  .rv { transform: none; filter: none; transition: opacity 300ms ease; }
  .h-spot::before { animation: none; }
  .bag, .sheet { transform: none !important; opacity: 0; transition: opacity 200ms ease, visibility 0s linear 200ms !important; }
  html.is-bag .bag, html.is-sheet .sheet { opacity: 1; transition: opacity 200ms ease, visibility 0s !important; }
  .card:hover .c-a { transform: none !important; }
  .tab-ind { transition: none; }
  .toast { transform: none !important; filter: none !important; }
  .c-a, .fn-media img { transition: opacity 300ms ease; }
  .btn:not(:disabled):active, .tab:active, .sz:active { transform: none; }
}

body { visibility: visible; }

/* the cloud drifts with the wind (left, like the spindrift in the photograph) while the page loads */
.fog-a { animation: drift-a 16s linear infinite alternate; }
.fog-b { animation: drift-b 9s linear infinite alternate; }
@keyframes drift-a { from { translate: 0 0; } to { translate: -5% 0; } }
@keyframes drift-b { from { translate: 2% 0; } to { translate: -6% 0; } }
@media (prefers-reduced-motion: reduce) { .fog-a, .fog-b { animation: none; } }

/* ---------------------------------------------------------------- round 2 details */
/* the loupe over "Read the jacket" */
.loupe { position: absolute; z-index: 3; width: 168px; height: 168px; border-radius: 50%; background-repeat: no-repeat; background-color: var(--tile);
  box-shadow: 0 0 0 1px rgba(20, 21, 22, .18), 0 18px 40px -16px rgba(20, 21, 22, .45); pointer-events: none;
  opacity: 0; transform: scale(.92); transition: opacity 180ms ease-out, transform 220ms var(--out), left 260ms var(--out), top 260ms var(--out), background-position 260ms var(--out); }
.loupe.is-on { opacity: 1; transform: none; }
.loupe span { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); white-space: nowrap; background: var(--ink); color: var(--bg); padding: 3px 7px; border-radius: var(--r); }
@media (max-width: 759px) { .loupe { width: 128px; height: 128px; } }
@media (prefers-reduced-motion: reduce) { .loupe { transition: opacity 180ms ease; transform: none; } }
/* sold out: one field to be told */
.notify { display: flex; gap: 8px; margin-top: 6px; }
.notify input { flex: 1; min-width: 0; height: 36px; border-radius: var(--r); border: 1px solid var(--line-2); background: #f6f6f3; padding: 0 10px; font-size: 14px; }
.notify input[aria-invalid="true"] { border-color: var(--signal); }
.notify.is-done input { opacity: .5; }
/* order labels: one per piece, like the one sewn inside */
.labels { display: grid; gap: 8px; width: 100%; margin: 8px 0 2px; }
.label { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 12px 14px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.label::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: var(--signal); border-radius: 0 2px 2px 0; }
.label .mono:first-child { color: var(--ink); grid-row: span 2; font-size: 13px; }
.label b { font-weight: 500; font-size: 15px; }
.label .mono:last-child { color: var(--ink-3); }
/* the repairs page opens on the bench */
.info-photo { grid-column: 1 / -1; margin: -10px 0 30px; overflow: hidden; aspect-ratio: 21 / 8; background: var(--bg-2); }
.info-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 52%; }
.tbl-ticket { background: #f6f6f3; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.tbl-ticket caption { padding: 0 0 10px; }
.tbl-ticket th, .tbl-ticket td { padding-left: 14px; padding-right: 14px; border-top: 1px dashed var(--line-2); }
.tbl-ticket thead th { border-top: 0; }
@media (max-width: 759px) { .info-photo { aspect-ratio: 4 / 3; margin: 0 0 24px; } }
.loupe.is-up span { bottom: auto; top: -30px; }
@media (max-width: 759px) {
  .lm.mob-left span { left: auto; right: 14px; transform: translateX(4px); }
  .lm.mob-left.is-on span { transform: none; }
  .log-list li { grid-template-columns: 86px minmax(0, 1fr); }
  .ll-y { white-space: nowrap; }
}

/* film grain over every photograph: one non-periodic noise tile, blended soft-light, never baked into the files
   (playbooks/photo-generated.md §4.8). It also gives the perfectly flat studio tile the faint life a real scan has. */
.c-media::after, .pp-fig::after, .log-photo::after, .read-fig::after, .fn-media::after, .bench-media::after, .info-photo::after, .hero-media::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .26; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.fn-media, .bench-media, .info-photo { position: relative; }
.hero-media::after { z-index: 1; opacity: .22; }
.ld-h { width: 12px; height: 2px; border-radius: 1px; background: var(--ink-3); }
.lay-key .ld-h { width: 12px; height: 2px; }
html:not(.is-mono) .h-kick { opacity: 0; }
.h-kick { transition: opacity 250ms ease; }
/* the loupe at a logbook stop: opens a beat after the scene lands, closes at once when it moves on */
.log-loupe { width: 150px; height: 150px; z-index: 4; transition: opacity 160ms ease-out, transform 200ms var(--out); }
.log-loupe.is-on { transition: opacity 360ms ease-out 260ms, transform 420ms var(--out) 260ms; }
.log-loupe span { bottom: -28px; }
.loupe.is-cap-r span { left: auto; right: 0; transform: none; }
.loupe.is-cap-l span { left: 0; transform: none; }
.loupe span { max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.h-cap-vis { opacity: 0; }
html.is-reduced .h-cap-vis { opacity: 1; }
@media (max-width: 759px) { .log-loupe { width: 104px; height: 104px; } .log-loupe span { display: none; } }
/* tall screens (the 1440×1874 card poster): copy in the sky as on a phone, the logbook photo fills its stage */
@media (min-width: 760px) and (max-aspect-ratio: 6/5) {
  .hero-copy { top: calc(var(--hh) + 9vh); bottom: auto; }
  .hero::after { opacity: 1; inset: 0 0 auto 0; height: 55%; background: linear-gradient(rgba(231, 233, 232, .5), rgba(231, 233, 232, 0)); }
  .log-photo { max-height: min(1400px, 74svh); }
}
/* sort: cards fly dimmed, so a crossing reads as a reshuffle, not a collision */
.grid.is-sorting .card { opacity: .72; transition: opacity 200ms ease; }
.lm.is-loupe span { opacity: 0 !important; transition-delay: 0s; }

/* the sewn label: serial numbers are set like the wordmark — the same family, condensed and bold */
.serial { font-stretch: 75%; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--ink); }

/* tablets (760–1099): the shop bar on two rows, the photo scenes keep a column of air, narrow columns stack */
@media (max-width: 1099px) and (min-width: 760px) {
  .shop-bar { flex-direction: column; align-items: stretch; gap: 6px; }
  .shop-tools { justify-content: space-between; }
  .log-stage { grid-column: 1 / 7; }
  .def-nums { grid-column: 1 / -1; }
  .rules-list li { grid-template-columns: 1fr; gap: 6px; }
  .rules-list h3, .rules-list p { grid-column: 1 / -1; }
  .field .shop-head > p { grid-column: 1 / 9; }
}
/* landscape tablets: the copy is at the bottom left, so the weather line goes to the top right */
@media (min-width: 760px) and (max-width: 1199px) and (min-aspect-ratio: 6/5) {
  .h-cap { top: calc(var(--hh) + 20px); bottom: auto; }
}
