/* ==========================================================================
   Cabwork Inc.  Studio
   Cabwork cabinetry presented like a premium product launch: one perfect
   module, staged cinematically in a dusk render, then the real rooms it
   becomes. The opening is dark (the render world: dusk blue-grey with warm
   light on oak and greige); everything after it is warm-grey editorial
   paper with ink type, generous whitespace, big imagery and small grey UI
   text. Owner reference apricode.agency, ideas only.
   Type: Geist at display weights with tight tracking for headlines and
   body; Geist Mono only for tiny counts and timelines.
   One accent: Cabwork navy, lifted to periwinkle on the dark render world,
   kept for Get a quote (and the pressed filter chip). The muted sage-grey
   second headline line is a tone of the ink, not a second accent.
   Shape: images 6px, sheets 8px, inputs 8px, buttons and chips a pill.
   Every generated image is a concept render and says so (alt text starts
   "Concept render:", and a small caption sits on it); every room shown as
   work is a real Cabwork photo.
   Motion lives in main.js (GSAP + ScrollTrigger + Flip + Lenis): the one
   authored moment is the opening scene (dolly into the module, a light
   sweep across its doors, its lit door opening onto the pavilion). Without
   motion (reduced motion, no GSAP) every part is a plain, visible section.
   admin.html shares this sheet (data-scheme="light").
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  src: url('assets/fonts/v1/geist-wght-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('assets/fonts/v1/geist-mono-wght-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Warm-grey editorial paper (not cream, not beige) and a warm ink */
  --ground: #e9e7e2;
  --paper: #f2f0ec;
  --field: #dfddd7;
  --band: #e0ddd7;
  --mat: #d4d1ca;
  --oak: #c9a87e;
  --stone: #b3afa7;
  --ink: #1c1b19;
  --ink-2: #5d5b56;
  /* the two-tone headline's second line: a desaturated tone of the ink */
  --sage: #6e766b;
  --line: rgba(28, 27, 25, 0.12);
  --line-2: rgba(28, 27, 25, 0.26);
  /* The one accent: Cabwork navy (periwinkle on the dark render world) */
  --accent: #272c6e;
  --accent-hover: #1d2156;
  --on-accent: #f4f3f0;
  /* The render world: dusk blue-grey */
  --dusk: #14171d;
  --dusk-2: #1d2129;
  --on-dusk: #f1efea;
  --on-dusk-2: #bcbab3;
  --block: var(--dusk);
  --on-block: var(--on-dusk);
  --on-block-2: var(--on-dusk-2);
  --glass: rgba(242, 240, 236, 0.9);
  --glass-line: rgba(28, 27, 25, 0.12);

  --sh-lift: 0 18px 36px -22px rgba(33, 30, 25, 0.42), 0 4px 10px -6px rgba(33, 30, 25, 0.16);
  --sh-float: 0 30px 60px -32px rgba(33, 30, 25, 0.46), 0 8px 20px -12px rgba(33, 30, 25, 0.18);

  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: var(--sans);
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-pin: 6px;
  --r-board: 8px;
  --r-input: 8px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4vw, 64px);
  --max: 1440px;
  --gap: clamp(12px, 1.4vw, 20px);
  --sec: clamp(88px, 11vw, 168px);
  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6.5 18.5 12 13 17.5'/%3E%3C/svg%3E");
}

/* The render world: any dark surface re-points the tokens */
.on-dusk, .film-ch[data-tone='dark'], .cta-scene, .site-footer, .loader, .story-end, .cta-sheet {
  --ink: var(--on-dusk);
  --ink-2: var(--on-dusk-2);
  --line: rgba(241, 239, 234, 0.14);
  --line-2: rgba(241, 239, 234, 0.32);
  --accent: #aab4ff;
  --accent-hover: #c4cbff;
  --on-accent: #12163f;
  --paper: var(--dusk-2);
  --field: #262a33;
  color: var(--ink);
}

/* admin.html shares this sheet */
:root[data-scheme='light'] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  scrollbar-color: var(--stone) var(--ground);
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
input, textarea, select { caret-color: var(--accent); }

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 560;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.04em; }
h2 { font-size: clamp(34px, 4.4vw, 68px); line-height: 1.02; }
h3 { font-size: clamp(19px, 1.4vw, 22px); line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lead { font-size: clamp(16.5px, 1.2vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-2); }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.005em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--sh-lift); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn:active, .chip:active, .nav-links a.nav-cta:active, .quote-form .submit-btn:active, .pin-act:active, .lb-quote:active { transform: scale(0.98); }
/* The quiet link: small, an underline that tightens, an arrow that moves */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color .2s ease, text-underline-offset .3s var(--ease);
}
.text-link:hover { text-decoration-color: var(--ink); text-underline-offset: 8px; }
.text-link::after, .arrow {
  flex: none;
  width: 17px;
  height: 17px;
  transition: transform .4s var(--ease);
}
.text-link::after {
  content: '';
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.text-link:hover::after { transform: translateX(4px); }
.arrow { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Chips: room pills. The pressed one takes the accent. */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed='true'], .chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ===================================================================== Nav
   The logo on the left, small grey links and one Get a quote pill on the
   right. Over the dark render world (html.nav-dark) it turns light and
   transparent; over paper it is paper with a hairline once scrolled. */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease), border-color .3s ease, background-color .35s ease, color .35s ease;
}
html.nav-scrolled:not(.nav-dark) .site-nav { border-bottom-color: var(--line); }
html.nav-hidden:not(.menu-open) .site-nav { transform: translateY(-101%); }
.nav-logo { display: block; flex: none; border-radius: 4px; }
.nav-logo img { height: 22px; width: auto; transition: filter .35s ease; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  transition: color .2s ease, background-color .2s ease, transform .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  margin-left: 14px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.nav-links a.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle i {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), background-color .3s ease;
}
.nav-toggle i:first-child { top: 18px; }
.nav-toggle i:last-child { top: 25px; }
html.menu-open .nav-toggle i:first-child { transform: translateY(3.5px) rotate(45deg); }
html.menu-open .nav-toggle i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* over the render world */
html.nav-dark:not(.menu-open) .site-nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.nav-dark:not(.menu-open) .nav-logo img { filter: brightness(0) invert(0.95); }
html.nav-dark:not(.menu-open) .nav-links a { color: rgba(241, 239, 234, 0.8); font-weight: 400; letter-spacing: 0.01em; }
html.nav-dark:not(.menu-open) .nav-links a:hover, html.nav-dark:not(.menu-open) .nav-links a.active { color: #f1efea; }
html.nav-dark:not(.menu-open) .nav-links a.nav-cta { background: transparent; color: #dfe3ff; box-shadow: inset 0 0 0 1px rgba(170, 180, 255, 0.72); }
html.nav-dark:not(.menu-open) .nav-links a.nav-cta:hover { background: rgba(170, 180, 255, 0.14); color: #fff; }
html.nav-dark:not(.menu-open) .nav-toggle i { background: #f1efea; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px var(--gutter) 32px;
    background: var(--ground);
    overflow-y: auto;
  }
  html.js .nav-links { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .35s var(--ease), visibility 0s .25s; }
  html.js.menu-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .35s var(--ease); }
  /* a backdrop-filter (or a transform) on the nav would make it the
     containing block of the fixed panel and clip it to 52px */
  html.menu-open .site-nav { background: var(--ground); -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
  /* Without JS the menu button cannot work: show the links as a row */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav { position: relative; height: auto; flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
  html:not(.js) .nav-links { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0; background: none; overflow: visible; }
  html:not(.js) .nav-links a { font-size: 15px; padding: 8px 12px; border: 0; }
  html:not(.js) .nav-links a.nav-cta { margin: 0; min-height: 44px; font-size: 15px; }
  html:not(.js) .page-head, html:not(.js) .about-head, html:not(.js) .contact-main { padding-top: 24px; }
  .nav-links a {
    font-size: 34px;
    font-weight: 540;
    letter-spacing: -0.035em;
    line-height: 1.15;
    color: var(--ink);
    padding: 12px 2px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a.active { color: var(--ink); }
  .nav-links a.nav-cta {
    justify-content: center;
    margin: 24px 0 0;
    min-height: 54px;
    border-radius: var(--r-pill);
    border: 0;
    font-size: 16px;
    letter-spacing: 0;
  }
}

main { display: block; }

/* ============================================================== Pins
   A pin: a tall rounded photo, the caption under it. Hover lifts it and
   shows two pill actions over the photo bottom (built by main.js). */
.masonry {
  --cols: 2;
  columns: var(--cols);
  column-gap: var(--gap);
}
.masonry > * { break-inside: avoid; margin: 0 0 var(--gap); }
.masonry.is-grid {
  columns: auto;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 4px;
  grid-auto-flow: dense;
  column-gap: var(--gap);
  row-gap: 0;
  align-items: start;
}
.masonry.is-grid > * { margin: 0; }
@media (min-width: 640px) { .masonry { --cols: 3; } }
@media (min-width: 1040px) { .masonry { --cols: 4; } }
.masonry > .is-filtered { display: none; }

.pin { margin: 0; min-width: 0; }
.frame, .masonry .card-img {
  position: relative;
  display: block;
  border-radius: var(--r-pin);
  overflow: hidden;
  background: var(--mat);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.frame img, .masonry .card-img img { width: 100%; height: auto; transition: transform 1.1s var(--ease); }
[data-lb] { cursor: zoom-in; }
.frame:has([data-lb]:focus-visible), .card-img:has([data-lb]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-lb]:focus-visible { outline: none; }
@media (hover: hover) {
  .frame:hover, .masonry .card-img:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
  .frame:hover img, .masonry .card-img:hover img { transform: scale(1.035); }
}
.frame:focus-within, .masonry .card-img:focus-within { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.pin figcaption { display: flex; flex-direction: column; gap: 1px; padding: 10px 6px 0; }
.pin figcaption span:first-child { font-size: 15px; font-weight: 550; line-height: 1.35; color: var(--ink); }
.pin figcaption span + span { font-size: 13.5px; color: var(--ink-2); }

/* Hover actions over the photo bottom (main.js builds them; mouse only) */
.pin-acts {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .3s ease, transform .45s var(--ease);
}
.frame::after, .masonry .card-img::after {
  content: '';
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, rgb(28 22 16 / 0.42), rgb(28 22 16 / 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.frame:hover .pin-acts, .frame:focus-within .pin-acts,
.card-img:hover .pin-acts, .card-img:focus-within .pin-acts { opacity: 1; transform: none; pointer-events: auto; }
.frame:has(.pin-acts):hover::after, .frame:has(.pin-acts):focus-within::after,
.card-img:has(.pin-acts):hover::after, .card-img:has(.pin-acts):focus-within::after { opacity: 1; }
.pin-act {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  border: 0;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .2s ease;
}
.pin-act-quote { background: var(--accent); color: var(--on-accent); }
.pin-act-quote:hover { background: var(--accent-hover); }
.pin-act-view { background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pin-act-view:hover { background: rgba(32, 36, 47, 0.8); }
.pin-act:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: none) { .pin-acts, .frame::after, .masonry .card-img::after { display: none; } }

/* ============================================================ Sections */
.sec { padding: var(--sec) 0; }
.board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 3.4vw, 48px);
}
.board-head h2 { max-width: 18ch; }
.board-head .lead { grid-column: 1; margin-top: -2px; }
.board-head > .text-link, .board-head > .btn { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
@media (max-width: 760px) {
  .board-head { grid-template-columns: 1fr; }
  .board-head > .text-link, .board-head > .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}


/* ============================================================ Story
   How it works, told as a horizontal row of soft cards with photos. */
.story-sec { padding: var(--sec) 0 calc(var(--sec) - 28px); background: var(--band); border-radius: var(--r-board); margin: 0 clamp(8px, 1vw, 16px); }
.story-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 44px); }
.story-head h2 { max-width: 20ch; }
.story-nav { display: flex; gap: 8px; flex: none; }
.story-nav button {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .2s ease, opacity .2s ease;
}
.story-nav button:hover { border-color: var(--ink); }
.story-nav button:active { transform: scale(0.96); }
.story-nav button:disabled { opacity: .4; cursor: default; }
.story-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.story-track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 372px);
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 var(--edge);
  padding: 4px var(--edge) 24px;
  list-style: none;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}
.story-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--r-board);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lift); }
.story-photo { position: relative; margin: 10px 10px 0; border-radius: var(--r-pin); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mat); }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-photo.is-low img { object-position: center 82%; }
.story-when {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(12, 14, 19, 0.74);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.story-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 24px; flex: 1; }
.story-body .step-num { font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.story-body h3 { font-size: clamp(22px, 1.7vw, 26px); }
.story-body p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.story-body .story-detail { font-size: 14px; color: var(--ink-2); padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
.story-end { justify-content: center; padding: clamp(28px, 3vw, 40px); background: var(--block); }
.story-end h3 { color: var(--on-block); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.12; }
.story-end p { margin-top: 14px; color: var(--on-block-2); font-size: 15px; }
.story-end:hover { transform: none; box-shadow: none; }
@media (max-width: 640px) {
  .story-head { flex-direction: column; align-items: flex-start; }
  .story-nav { display: none; }
  .story-track { grid-auto-columns: 82%; }
}

/* ================================================== Factory: the workshop */
.factory { padding: var(--sec) 0; }
.factory-head { max-width: 860px; margin: 0 0 clamp(32px, 4vw, 56px); }
.factory-head h2 { font-size: clamp(40px, 4.8vw, 72px); line-height: 1.04; }
.factory-lead { font-size: clamp(17px, 1.25vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; max-width: 60ch; }
.factory-head .sheet-cap { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
/* Machine pins: the workshop stills on a linen mat, a caption under each */
.machines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); align-items: start; }
.machine { display: flex; flex-direction: column; gap: 14px; }
.machine-pin figcaption { gap: 4px; }
.machine-pin .machine-name { font-family: var(--serif); font-size: clamp(21px, 1.6vw, 25px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; color: var(--ink); }
.machine-pin .machine-role { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.frame.is-still { aspect-ratio: 4 / 5; background: var(--paper); }
.frame.is-still img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); mix-blend-mode: multiply; }
.frame.is-still:hover img { transform: scale(1.3); }
/* The machine renders sit on a lit plate: the one warm light surface on the
   night ground, like a specimen under the workshop lamp. */
.frame.is-still, .fact-pin.is-still { background: radial-gradient(120% 90% at 50% 40%, #ebe4d9 0%, #d4cabb 100%); }
.machine-notes { display: flex; flex-direction: column; gap: 12px; padding: 0 6px; }
.mnote h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 600; letter-spacing: 0; line-height: 1.35; }
.mnote p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.factory-bullets { list-style: none; margin: 0; padding: 0 6px; display: flex; flex-direction: column; gap: 10px; }
.factory-bullets li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.factory-bullets li::before { content: ''; position: absolute; left: 1px; top: 0.72em; width: 8px; height: 1px; background: var(--ink-2); }
@media (max-width: 1080px) { .machines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .machines { grid-template-columns: minmax(0, 1fr); }
  .frame.is-still { aspect-ratio: 4 / 3; }
}

/* ====================================================== Swatch board */
.swatch-sec { padding: var(--sec) 0; }
.swatch-grid { display: block; }
.swatch-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 640px; margin-bottom: clamp(28px, 3.4vw, 48px); }
.swatch-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px var(--gap); align-items: start; }
.swatch-photo { grid-column: span 2; margin: 0; }
.swatch-photo .card-img { border-radius: var(--r-pin); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mat); }
.swatch-photo .card-img img { width: 100%; height: 100%; object-fit: cover; }
.swatch-board .finish:nth-child(odd) { margin-top: 36px; }
.finish { display: flex; flex-direction: column; gap: 3px; }
.finish strong { margin-top: 8px; padding: 0 6px; font-size: 15px; font-weight: 550; line-height: 1.3; }
.finish p { padding: 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.swatch {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-pin);
  background: var(--mat);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.finish:hover .swatch { transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--sh-lift); }
@media (max-width: 1023px) {
  .swatch-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatch-photo { grid-column: 1 / -1; max-width: 520px; }
  .swatch-board .finish:nth-child(odd) { margin-top: 0; }
}
@media (max-width: 560px) {
  .swatch-board { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .swatch-board .finish:nth-child(odd) { margin-top: 24px; }
}

/* ============================================ Developments: where pins live */
.places { padding: 0 0 var(--sec); }
.places h2 { max-width: 20ch; margin-bottom: clamp(24px, 3vw, 40px); }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 72px); border-top: 1px solid var(--line); }
.projects-grid figure {
  margin: 0;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.projects-grid .card-img { position: relative; width: 96px; aspect-ratio: 1; border-radius: var(--r-pin); overflow: hidden; background: var(--mat); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.projects-grid .card-img img { width: 100%; height: 100%; object-fit: cover; }
.projects-grid figure:hover .card-img { transform: rotate(-3deg) scale(1.04); box-shadow: var(--sh-lift); }
.projects-grid figcaption { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.projects-grid figcaption span:first-child { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); line-height: 1.2; color: var(--ink); }
.projects-grid figcaption .muted { font-size: 14px; }
@media (max-width: 760px) {
  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid figure { grid-template-columns: 72px minmax(0, 1fr); }
  .projects-grid .card-img { width: 72px; }
}

/* ========================================================= Client notes */
.notes { padding: 0 0 var(--sec); }
.notes-sheet { display: grid; gap: 32px; }
.notes-title { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.015em; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.quotes blockquote { margin: 0; padding: clamp(26px, 3vw, 44px); border-radius: var(--r-board); background: var(--band); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.quotes blockquote:nth-child(2) { margin-top: clamp(24px, 4vw, 64px); background: var(--paper); border: 1px solid var(--line); }
.quotes blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); line-height: 1.3; letter-spacing: -0.01em; }
.quotes footer { font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } .quotes blockquote:nth-child(2) { margin-top: 0; } }

/* ================================================================ Footer */
.site-footer { background: var(--block); color: var(--on-block); padding: clamp(56px, 6vw, 88px) 0 32px; border-radius: var(--r-board) var(--r-board) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 40px var(--gap); }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--on-block-2); max-width: 36ch; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-label { font-size: 13px; font-weight: 600; color: var(--on-block-2); margin-bottom: 4px; }
.footer-col a { color: var(--on-block); width: fit-content; border-radius: 4px; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-addr { color: var(--on-block-2); max-width: 32ch; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(245, 241, 234, 0.14); font-size: 13.5px; color: var(--on-block-2); }
.site-footer :focus-visible { outline-color: var(--on-block); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================ Page heads */
.page-head { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 clamp(20px, 3vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(38px, 4.6vw, 70px); max-width: 16ch; margin: 0 auto; }
.page-head .lead { margin: 20px auto 0; }
.page-head .chip-row { margin-top: 28px; justify-content: center; }
.legend-title { flex: 0 0 100%; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 2px; }
@media (max-width: 640px) { .page-head { text-align: left; } .page-head h1, .page-head .lead { margin-left: 0; } .page-head .chip-row { justify-content: flex-start; } }

/* ======================================================= Collections page */
.collection-section { padding: clamp(56px, 7vw, 104px) 0 0; scroll-margin-top: var(--nav-h); }
.collection-layout { display: grid; row-gap: clamp(24px, 3vw, 40px); }
.collection-info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px clamp(28px, 4vw, 72px); align-items: end; }
.collection-info:not(:has(.board-cover)) { grid-template-columns: minmax(0, 1fr); }
.collection-info .board-cover { width: 100%; max-width: 440px; }
.board-cover.is-two .bc:nth-child(2) { grid-row: 1 / span 2; border-radius: 0 var(--r-board) var(--r-board) 0; }
.collection-text { display: flex; flex-direction: column; gap: 14px; max-width: 64ch; padding-bottom: 6px; }
.collection-text > p { color: var(--ink-2); font-size: 17px; }
.collection-text .board-count { margin-top: -6px; }
.collection-text ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.collection-text li { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--field); font-size: 14px; line-height: 1.35; }
@media (max-width: 760px) {
  .collection-info { grid-template-columns: minmax(0, 1fr); }
  .collection-info .board-cover { max-width: 420px; }
}
.finishes-sheet { padding: var(--sec) 0; }
.finishes-sheet .lead { margin-top: 18px; }
.finishes-sheet .schedule { margin-top: clamp(28px, 3vw, 44px); }
.finishes-sheet .schedule-title { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.finishes-sheet .chips { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 24px var(--gap); }
@media (max-width: 1100px) { .finishes-sheet .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .finishes-sheet .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================================================ About page */
.about-head { padding: calc(var(--nav-h) + clamp(40px, 6vw, 88px)) 0 var(--sec); }
.about-head-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 36px; align-items: center; }
.about-copy { grid-column: 1 / span 6; }
.about-pins { grid-column: 8 / span 5; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: var(--gap); align-items: start; }
.ap { border-radius: var(--r-pin); overflow: hidden; background: var(--mat); }
.ap img { width: 100%; height: 100%; object-fit: cover; }
.ap-1 { grid-row: 1 / span 2; aspect-ratio: 3 / 4.4; }
.ap-2 { aspect-ratio: 4 / 5; margin-top: 40px; }
.ap-3 { aspect-ratio: 4 / 3; }
.about-head h1 { font-size: clamp(38px, 4.4vw, 66px); max-width: 15ch; }
.about-head-copy { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; color: var(--ink-2); max-width: 56ch; font-size: 17px; }
.values { padding: clamp(56px, 6.5vw, 100px) 0; background: var(--band); border-radius: var(--r-board); margin: 0 clamp(8px, 1vw, 16px); }
.values-board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.note { border-radius: var(--r-pin); background: var(--paper); padding: clamp(20px, 2.2vw, 28px); }
.note-head { grid-column: 1 / span 5; background: transparent; padding-left: 0; }
.note-pin { grid-column: 6 / span 3; margin: 0; }
.note-pin .card-img { border-radius: var(--r-pin); overflow: hidden; aspect-ratio: 3 / 4; background: var(--mat); }
.note-pin .card-img img { width: 100%; height: 100%; object-fit: cover; }
.note-head, .note-pin { grid-row: 1 / span 2; }
.value-col { grid-column: 9 / span 4; transform: rotate(-1deg); }
.value-col + .value-col { transform: rotate(1deg); }
.value-col h3 { margin-bottom: 8px; font-style: italic; line-height: 1.2; }
.value-col p { color: var(--ink-2); }
.section { padding: var(--sec) 0; }
.ws-head { max-width: 760px; margin-bottom: clamp(28px, 3vw, 44px); }
.ws-head .lead { margin-top: 16px; }
.ws-machines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.ws-machines .machine-pin figcaption span { font-size: 15px; font-weight: 550; color: var(--ink); }
.ws-machines .frame.is-still { aspect-ratio: 4 / 3; }
.ws-machines .frame.is-still img { transform: scale(1.1); }
.ws-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.tools { grid-column: span 2; background: var(--band); }
.tools .schedule-title { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.tools .chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tools .finish { padding: 14px 16px; border-radius: var(--r-input); background: var(--paper); }
.tools .finish strong { margin: 0; padding: 0; }
.tools .finish p { padding: 0; }
.ws-pin { margin: 0; }
.ws-pin .card-img { border-radius: var(--r-pin); overflow: hidden; aspect-ratio: 4 / 5; background: var(--mat); }
.ws-pin .card-img img { width: 100%; height: 100%; object-fit: cover; }
.ws-pin + .ws-pin { margin-top: 40px; }
.shaker { padding-top: 0; }
.shaker-grid { position: relative; display: grid; }
.shaker-grid > .card-img { grid-area: 1 / 1; aspect-ratio: 16 / 8; border-radius: var(--r-board); overflow: hidden; background: var(--mat); }
.shaker-grid > .card-img img { width: 100%; height: 100%; object-fit: cover; }
.shaker-copy {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: end;
  width: min(460px, calc(100% - 48px));
  margin: 0 24px 24px 0;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-board);
  background: var(--paper);
  box-shadow: var(--sh-float);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shaker-copy p { color: var(--ink-2); }
.clients { padding: 0 0 var(--sec); }
.clients h2 { max-width: 20ch; }
.dev-schedule { margin-top: clamp(28px, 3vw, 44px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px var(--gap); align-items: start; }
.dev-schedule .schedule-title { grid-column: 1 / -1; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.dev-group { padding: 24px; border-radius: var(--r-board); background: var(--paper); }
.dev-group h3 { font-size: 22px; margin-bottom: 16px; }
.dev-list { display: grid; border-top: 1px solid var(--line); }
.dev-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; color: var(--ink); }
.dev-item::before { content: ''; flex: none; width: 10px; height: 1px; background: var(--ink-2); }
@media (max-width: 1023px) {
  .about-copy, .about-pins { grid-column: 1 / -1; }
  .about-pins { max-width: 560px; }
  .values-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .note-head { grid-column: 1 / -1; grid-row: auto; }
  .note-pin { grid-column: 1; grid-row: 2 / span 2; }
  .value-col { grid-column: 2; }
  .ws-machines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-column: 1 / -1; }
  .dev-schedule { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shaker-grid > .card-img { aspect-ratio: 4 / 3; }
  .shaker-copy { grid-area: auto; width: auto; margin: -40px 12px 0; position: relative; }
  .tools .chips { grid-template-columns: 1fr; }
  .value-col, .value-col + .value-col { transform: none; }
}

/* ========================================================== Contact page */
.contact-main { padding: calc(var(--nav-h) + clamp(32px, 5vw, 72px)) 0 var(--sec); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; align-items: start; }
.contact-grid > div:first-child { grid-column: 1 / span 5; }
.contact-grid > #form-wrap { grid-column: 7 / span 6; }
.contact-main h1 { font-size: clamp(40px, 4.6vw, 70px); }
.contact-intro { margin-top: 18px; color: var(--ink-2); max-width: 44ch; font-size: 17px; }
.contact-facts { margin-top: 32px; display: grid; gap: 10px; max-width: 420px; }
.contact-facts .facts-title { font-size: 15px; font-weight: 600; }
.contact-fact { padding: 14px 18px; border-radius: var(--r-pin); background: var(--band); }
.contact-fact span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 2px; }
.contact-fact p { font-size: 16px; font-weight: 550; }
#form-wrap { padding: clamp(22px, 3vw, 40px); border-radius: var(--r-board); background: var(--paper); box-shadow: var(--sh-float); }
.form-sheet-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.form-sheet-head div:first-child { font-family: var(--serif); font-size: clamp(24px, 2vw, 30px); line-height: 1.15; }
.form-sheet-head div + div { font-size: 14px; color: var(--ink-2); }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.quote-form .form-row { display: contents; }
.quote-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 550; color: var(--ink); }
.quote-form > label { grid-column: 1 / -1; }
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--r-input);
  border: 1px solid var(--line-2);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .25s var(--ease), background-color .2s ease;
}
.quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23857c71' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.quote-form textarea { resize: vertical; min-height: 128px; line-height: 1.5; }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: var(--ink-2); opacity: 1; }
.quote-form input:hover, .quote-form select:hover, .quote-form textarea:hover { border-color: var(--ink-2); }
.quote-form input:focus-visible, .quote-form select:focus-visible, .quote-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: var(--paper);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.quote-form .submit-btn {
  grid-column: 1 / -1;
  min-height: 56px;
  margin-top: 6px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote-form .submit-btn:hover { background: var(--accent-hover); box-shadow: var(--sh-lift); }
.quote-form .submit-btn:disabled { opacity: .7; cursor: wait; }
.quote-form .submit-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-error, .form-note { grid-column: 1 / -1; font-size: 14.5px; }
.form-error { padding: 12px 16px; border-radius: var(--r-input); background: var(--field); color: var(--ink); font-weight: 550; }
.form-note { color: var(--ink-2); text-align: center; }
.thanks-panel { padding: clamp(20px, 3vw, 40px) 0 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.thanks-panel p { color: var(--ink-2); max-width: 46ch; }
#send-another { margin-top: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--ground); color: var(--ink); cursor: pointer; font-weight: 550; }
#send-another:hover { border-color: var(--ink); }
@media (max-width: 1023px) {
  .contact-grid > div:first-child, .contact-grid > #form-wrap { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .quote-form { grid-template-columns: 1fr; }
}

/* ============================================================== Work page */
.work-head { padding-bottom: 20px; }
.work-filters { position: sticky; top: var(--nav-h); z-index: 20; padding: 12px 0; background: var(--ground); transition: top .45s var(--ease); }
html.nav-hidden .work-filters { top: 0; }
.work-filters .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.work-filters .chip-row::-webkit-scrollbar { display: none; }
.work-filters .chip { flex: none; }
.work-count { margin-left: auto; padding-left: 12px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.work-sheet { padding-top: 16px; padding-bottom: var(--sec); }
@media (min-width: 1280px) { .work-grid { --cols: 5; } }

/* ================================================= Close-up (lightbox)
   A pin close-up: the photo on the left, the details on the right, the
   quote for this look, and more pins like it. */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 40px) clamp(12px, 6vw, 96px);
  color: var(--ink);
}
.lb-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--ground) 84%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lb-dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  background: var(--paper);
  border-radius: var(--r-board);
  box-shadow: var(--sh-float);
  overflow: hidden;
}
.lb-dialog { align-items: start; }
.lb-stage { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 0; padding: 14px; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 76px); width: auto; height: auto; object-fit: contain; border-radius: var(--r-pin); transform-origin: 50% 50%; }
.lb-info { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 68px clamp(22px, 2.6vw, 36px) 18px 14px; }
.lb-type { align-self: flex-start; display: inline-flex; min-height: 30px; align-items: center; padding: 0 12px; border-radius: var(--r-pill); background: var(--field); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lb-title { font-family: var(--serif); font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
.lb-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.lb-quote {
  align-self: flex-start;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent);
  font-size: 15.5px; font-weight: 600;
  white-space: nowrap;
  transition: background-color .2s ease, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.lb-quote:hover { background: var(--accent-hover); box-shadow: var(--sh-lift); transform: translateY(-2px); }
.lb-more { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lb-rel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.lb-rel-item { display: block; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--mat); cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.lb-rel-item img { width: 100%; height: 100%; object-fit: cover; }
.lb-rel-item:hover { transform: translateY(-3px); box-shadow: var(--sh-lift); }
.lb-count { position: absolute; z-index: 3; left: clamp(10px, 2vw, 28px); top: calc(50% + 32px); min-width: 46px; text-align: center; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute;
  z-index: 3;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { border-color: var(--ink); }
.lb-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(10px, 2vw, 28px); top: 50%; transform: translateY(-50%); }
@media (max-width: 860px) {
  .lb { padding: 0; place-items: stretch; }
  .lb-dialog { display: block; width: 100%; max-height: none; height: 100%; border-radius: 0; overflow-y: auto; overscroll-behavior: contain; }
  .lb-stage { padding: 68px 12px 0; }
  .lb-stage img { max-height: 62vh; }
  .lb-info { overflow: visible; padding: 20px 18px 40px; }
  .lb-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-rel-item { aspect-ratio: 3 / 4; }
  .lb-rel-item:nth-child(3):last-child { display: none; }
  .lb-close { position: fixed; top: 10px; right: 10px; }
  .lb-prev, .lb-next { position: fixed; top: 10px; transform: none; }
  .lb-prev { left: 10px; }
  .lb-next { left: 64px; right: auto; }
  .lb-count { position: fixed; top: 10px; bottom: auto; left: 118px; transform: none; min-height: 46px; display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
  .lb-count[hidden] { display: none; }
}

/* ===================================================== Promo bar (content.js) */
.promo-bar {
  background: var(--block);
  color: var(--on-block);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 52px 10px 20px;
  font-size: 14px;
  position: relative;
  z-index: 110;
}
.promo-inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.promo-bar strong { font-weight: 600; }
.promo-bar a { color: var(--on-block); text-decoration: underline; text-underline-offset: 3px; }
.promo-close {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
  background: transparent; border: none; color: var(--on-block);
  font-size: 20px; cursor: pointer; line-height: 1;
}
.promo-close:focus-visible { outline: 2px solid var(--on-block); outline-offset: -4px; }


html.menu-open #cw-chat-root, html.lb-open #cw-chat-root { display: none; }

@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.7, 0, .84, 0) both; }
  ::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .frame, .frame img, .masonry .card-img, .masonry .card-img img, .bc, .board-cover, .story-card, .swatch, .btn, .chip { transition: none !important; }
  .board:hover .bc, .board:hover .board-cover { transform: none !important; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.012); } }

/* ========================================== Chat widget (chat-widget.js) */
#cw-chat-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sh-float);
  z-index: 200;
  transition: background-color 0.2s ease, transform .35s var(--ease);
}
#cw-chat-bubble:hover { background: var(--accent-hover); transform: translateY(-2px); }
#cw-chat-bubble:active { transform: scale(0.96); }
#cw-chat-root.cw-open #cw-chat-bubble { display: none; }

#cw-chat-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 384px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 100px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-board);
  box-shadow: var(--sh-float);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 200;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, transform 0.35s var(--ease);
}
#cw-chat-root.cw-open-visible #cw-chat-panel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  #cw-chat-panel { transition: none; }
  #cw-chat-root.cw-open #cw-chat-panel { opacity: 1; transform: none; }
}
.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 14px 20px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.cw-header h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.cw-close { width: 38px; height: 38px; border-radius: var(--r-pill); background: transparent; border: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.cw-close:hover { background: var(--field); }
.cw-log { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cw-msg { display: flex; }
.cw-msg-assistant { justify-content: flex-start; }
.cw-msg-user { justify-content: flex-end; }
.cw-bubble { max-width: 84%; padding: 10px 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; border-radius: 18px; }
.cw-msg-assistant .cw-bubble { background: var(--field); color: var(--ink); border-bottom-left-radius: 6px; white-space: normal; }
.cw-msg-user .cw-bubble { background: var(--ink); color: var(--ground); border-bottom-right-radius: 6px; }
.cw-msg-assistant .cw-bubble p { margin: 0 0 10px; }
.cw-msg-assistant .cw-bubble p:last-child { margin-bottom: 0; }
.cw-msg-assistant .cw-bubble ul { margin: 2px 0 10px; padding-left: 16px; list-style: none; }
.cw-msg-assistant .cw-bubble ul:last-child { margin-bottom: 0; }
.cw-msg-assistant .cw-bubble li { position: relative; margin: 5px 0; padding-left: 14px; }
.cw-msg-assistant .cw-bubble li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ink-2); }
.cw-msg-assistant .cw-bubble strong { color: var(--ink); font-weight: 600; }
.cw-msg-assistant .cw-bubble a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.cw-typing { display: flex; gap: 4px; padding: 4px 2px; }
.cw-typing span { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--ink-2); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .cw-typing span { animation: cw-typing-blink 1.1s ease-in-out infinite; }
  .cw-typing span:nth-child(2) { animation-delay: 0.15s; }
  .cw-typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes cw-typing-blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }
}
.cw-quick { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.cw-chip {
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--paper);
  padding: 8px 14px;
  font-size: 13px;
  font-family: var(--sans);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.cw-chip:hover { border-color: var(--ink); }
.cw-form { flex: none; display: flex; align-items: flex-end; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.cw-input {
  flex: 1 1 auto;
  resize: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-input);
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--ground);
  color: var(--ink);
  max-height: 120px;
}
.cw-input::placeholder { color: var(--ink-2); opacity: 1; }
.cw-send {
  flex: none;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--r-pill);
  min-height: 44px;
  padding: 0 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.cw-send:hover { background: var(--accent-hover); }
.cw-send:disabled { opacity: .65; cursor: wait; }
#cw-chat-bubble:focus-visible, .cw-chip:focus-visible, .cw-send:focus-visible, .cw-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cw-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
@media (max-width: 480px) {
  #cw-chat-bubble { right: 16px; bottom: 16px; }
  #cw-chat-panel { right: 0; left: 0; bottom: 0; width: auto; max-width: none; height: auto; max-height: 85vh; border-radius: var(--r-board) var(--r-board) 0 0; transform: translateY(100%); }
  #cw-chat-root.cw-open-visible #cw-chat-panel { transform: translateY(0); }
}
@media (max-width: 480px) and (prefers-reduced-motion: reduce) {
  #cw-chat-root.cw-open #cw-chat-panel { transform: none; }
}

/* Skip link */
.skip-link:focus {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 4000;
  width: auto; height: auto;
  margin: 0;
  clip: auto;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  white-space: nowrap;
}



/* ==========================================================================
   The Studio layer
   ========================================================================== */

/* Tiny counts and timelines: the only Geist Mono on the site */
.step-num, .work-count, .board-count, .lb-count {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

/* "Concept render": the small honest label on every generated image */
.render-note {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: rgba(236, 233, 227, 0.86);
  font-size: 12px;
  font-weight: 450;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ink-2);
}
.cta-scene .render-note { background: rgba(10, 12, 16, 0.58); }

/* ---------------------------------------------------------- The loader
   A deep dusk ground, the white logo at a confident size and one hairline
   that fills with the hero plate's real decode; then the logo and line
   drift up and away (a small translate and a blur), the ground fades and
   the reveal begins (window.cwIntro.reveal). About 1.3 s on a warm cache,
   skippable, never without JS or under reduced motion. A rendered intro
   can replace it and call the same reveal. */
.loader { display: none; }
html.is-loading .loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 95% at 50% 44%, #1d2632 0%, #141a22 52%, #0e1117 100%);
  transition: opacity .6s cubic-bezier(0.4, 0, 0.2, 1) .22s;
}
html.is-loading { overflow: hidden; }
.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 3.4vh, 40px);
  transition: opacity .45s ease, transform .7s cubic-bezier(0.4, 0, 0.2, 1), filter .55s ease;
}
.loader-logo { width: clamp(176px, 15.5vw, 228px); height: auto; opacity: 0.96; }
.loader-line { width: clamp(176px, 15.5vw, 228px); height: 1px; background: rgba(241, 239, 234, 0.14); overflow: hidden; }
.loader-fill { height: 100%; background: rgba(241, 239, 234, 0.82); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
html.loader-exit .loader { opacity: 0; pointer-events: none; }
html.loader-exit .loader-mark { opacity: 0; transform: translateY(-16px); filter: blur(8px); }

/* ================================================================= Film
   The home story is one Blender-rendered film (assets/seq/, 720 frames)
   scrubbed by scroll on a pinned canvas (film.js), with the copy for each
   chapter set over the calm left third (the bottom band on phones). Every
   frame is a 3D render of a concept module and says so.
   Without html.film-on (no JS, reduced motion, Save-Data, no canvas, or
   frames that failed) the same markup is a stack of six key frames, each
   with its copy: no pin, no scrub. */
.film { position: relative; background: var(--dusk); }
.film-pin { position: relative; isolation: isolate; }
.film-canvas { display: none; }
.film-ch { position: relative; overflow: clip; isolation: isolate; }
.film-frame img { width: 100%; height: auto; display: block; background: var(--dusk); }
.film-ch::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.film-ch[data-tone='dark']::after { background: linear-gradient(90deg, rgba(9, 11, 15, 0.78) 0%, rgba(9, 11, 15, 0.5) 28%, rgba(9, 11, 15, 0) 56%), linear-gradient(0deg, rgba(9, 11, 15, 0.55) 0%, rgba(9, 11, 15, 0) 30%); }
.film-ch[data-tone='light']::after { background: linear-gradient(90deg, rgba(238, 235, 229, 0.92) 0%, rgba(238, 235, 229, 0.74) 28%, rgba(238, 235, 229, 0) 54%); }
.film-copy { position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(440px, 34vw); }
.film-hero .film-copy { top: auto; bottom: clamp(96px, 15vh, 156px); transform: none; width: min(820px, 60vw); }
.film-copy h2 { font-size: clamp(30px, 3.2vw, 50px); line-height: 1.05; letter-spacing: -0.032em; font-weight: 520; }
.film-copy > p { margin-top: 16px; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.6; max-width: 40ch; }
.film-ch[data-tone='dark'] .film-copy > p { color: #c9c5bc; }
.film-ch[data-tone='light'] .film-copy > p { color: #4d4b46; }
.film-hero h1 { max-width: 12.5ch; font-size: clamp(42px, 5.25vw, 78px); font-weight: 500; line-height: 1.04; letter-spacing: -0.032em; color: #eeeae2; }
.film-hero .hero-sub { margin-top: 26px; max-width: 40ch; font-size: clamp(16px, 1.15vw, 18px); line-height: 1.6; letter-spacing: 0.002em; color: #c9c5bc; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: 36px; }
.film-hero .hero-actions { margin-top: 40px; }
.film-ch .btn-primary { min-height: 46px; padding: 0 24px; font-size: 14.5px; font-weight: 500; letter-spacing: 0.012em; }
.film-ch[data-tone='dark'] .btn-primary { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.film-ch .btn-primary:hover { transform: none; }
.film-hero .text-link { min-height: 46px; font-size: 14.5px; font-weight: 450; letter-spacing: 0.012em; color: #eeeae2; text-decoration-color: rgba(241, 239, 234, 0.38); text-underline-offset: 9px; }
.film-hero .text-link::after { width: 15px; height: 15px; }
.hero-foot { position: absolute; z-index: 2; left: var(--gutter); bottom: 26px; }
.hero-meta { font-size: 11.5px; letter-spacing: 0.09em; color: rgba(241, 239, 234, 0.62); }
.film .edges { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.film .edge { padding-top: 12px; border-top: 1px solid var(--line-2); }
.film .edge h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.film .edge p { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: #4d4b46; }
.film-points, .film-labels { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.film-points li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: #2e2c29; }
.film-points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 1px; background: currentColor; }
.film-labels { gap: 6px; }
.film-labels span { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
.film .render-note { position: absolute; z-index: 3; right: calc(var(--gutter) + 72px); bottom: 26px; padding: 0; background: none; font-size: 11.5px; letter-spacing: 0.09em; }
.film-ch[data-tone='dark'] .render-note, .film-note { color: rgba(241, 239, 234, 0.62); }
.film-ch[data-tone='light'] .render-note, .film[data-tone='light'] .film-note { color: #55534e; }
.film-note { transition: color .4s ease; }
/* the system chapter: the outgoing kitchen slides out under the copy, so
   its scrim is a step denser */
.film-ch[data-ch='system'][data-tone='light']::after { background: linear-gradient(90deg, rgba(238, 235, 229, 0.97) 0%, rgba(238, 235, 229, 0.9) 30%, rgba(238, 235, 229, 0) 56%); }
.film-note { display: none; }
@media (max-width: 767px), (orientation: portrait) {
  .film-ch[data-tone='dark']::after { background: linear-gradient(0deg, rgba(9, 11, 15, 0.9) 0%, rgba(9, 11, 15, 0.62) 34%, rgba(9, 11, 15, 0) 58%); }
  .film-ch[data-tone='light']::after { background: linear-gradient(0deg, rgba(238, 235, 229, 0.96) 0%, rgba(238, 235, 229, 0.86) 36%, rgba(238, 235, 229, 0) 60%); }
  .film-copy, .film-hero .film-copy { top: auto; bottom: 96px; transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .film-hero .film-copy { bottom: 64px; }
  .film-hero h1 { font-size: clamp(36px, 10.4vw, 50px); max-width: 11ch; }
  .film-hero .hero-sub { margin-top: 14px; font-size: 15.5px; }
  .film-hero .hero-actions { margin-top: 22px; gap: 10px 22px; }
  .hero-foot { display: none; }
  .film-copy h2 { font-size: clamp(26px, 7.4vw, 34px); }
  .film .edges { margin-top: 18px; gap: 14px 16px; }
  .film .edge h3 { font-size: 14px; }
  .film .edge p { font-size: 12.5px; }
  .film-points li { font-size: 14px; }
  .film .render-note { left: var(--gutter); right: auto; bottom: 30px; }
}

/* short, wide screens (a phone on its side): smaller type, copy anchored
   to fit under the nav */
@media (max-height: 520px) and (orientation: landscape) {
  .film-hero .film-copy { bottom: 22px; width: min(560px, 58vw); }
  .film-hero h1 { font-size: clamp(26px, 7.4vh, 38px); max-width: 18ch; line-height: 1.05; }
  .film-hero .hero-sub { margin-top: 10px; font-size: 13.5px; line-height: 1.5; max-width: 52ch; }
  .film-hero .hero-actions { margin-top: 14px; gap: 8px 22px; }
  .film-ch .btn-primary, .film-hero .text-link { min-height: 40px; font-size: 13.5px; }
  .film-ch .btn-primary { padding: 0 18px; }
  .hero-foot { display: none; }
  .film-copy { top: calc(50% + 24px); width: min(420px, 46vw); }
  .film-copy h2 { font-size: clamp(20px, 6vh, 28px); }
  .film-copy > p { margin-top: 8px; font-size: 13px; line-height: 1.5; }
  .film .edges { margin-top: 12px; gap: 8px 16px; }
  .film .edge { padding-top: 6px; }
  .film .edge h3 { font-size: 12.5px; }
  .film .edge p { font-size: 11.5px; margin-top: 2px; }
  .film-points { margin-top: 12px; gap: 6px; }
  .film-points li { font-size: 12.5px; }
  .film-labels span { font-size: 20px; }
  .film .render-note { bottom: 14px; }
}

/* film mode: the pin, the canvas, the copy over it */
html.film-on .film { height: calc(var(--film-screens, 10) * 100vh); height: calc(var(--film-screens, 10) * 100svh); }
html.film-on .film-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
html.film-on .film-canvas { display: block; position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
html.film-on .film:not(.is-drawn) .film-canvas { visibility: hidden; }
html.film-on .film-ch { position: absolute; inset: 0; z-index: auto; isolation: auto; overflow: visible; pointer-events: none; }
html.film-on .film-ch::after, html.film-on .film-ch > :not(.film-frame) { opacity: var(--o, 0); }
html.film-on .film-hero { --o: 1; }
html.film-on .film-ch > .film-copy { translate: 0 calc((1 - var(--o, 0)) * 18px); }
html.film-on .film-ch.is-live a { pointer-events: auto; }
html.film-on .film-ch:not(.film-hero) .film-frame img { display: none; }
html.film-on .film-hero .film-frame img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
html.film-on .film-ch .render-note { display: none; }
html.film-on .film-note { display: block; }
html.film-on .film-labels li, html.film-on .film-points li { opacity: var(--li, 0); translate: 0 calc((1 - var(--li, 0)) * 10px); }
@media (max-width: 767px), (orientation: portrait) {
  html.film-on .film { --film-screens: 8; }
}

/* ------------------------------------------------------------ The intro
   The film's 72-frame intro plays on the same canvas (film.js), then the
   headline wipes in (the whole element), the subcopy, the actions and the
   nav. html.intro-done (natural end, or any key, click, wheel or touch)
   shows everything at once, so the first viewport is always usable. */
html.intro .film-hero h1 { clip-path: inset(-0.25em -0.1em -0.32em -0.1em); transition: clip-path 1.15s cubic-bezier(0.7, 0, 0.15, 1); }
html.intro:not(.title-in):not(.intro-done) .film-hero h1 { clip-path: inset(-0.25em 100% -0.32em -0.1em); }
html.intro .film-hero .hero-sub, html.intro .film-hero .hero-actions > *, html.intro .hero-foot { transition: opacity .8s ease, translate 1s cubic-bezier(0.16, 1, 0.3, 1); }
html.intro .film-hero .hero-actions > :nth-child(2) { transition-delay: .12s; }
html.intro:not(.sub-in):not(.intro-done) .film-hero .hero-sub,
html.intro:not(.cta-in):not(.intro-done) .film-hero .hero-actions > *,
html.intro:not(.cta-in):not(.intro-done) .hero-foot { opacity: 0; translate: 0 14px; }
html.intro:not(.revealed):not(.intro-done) .film-hero::after, html.intro:not(.revealed):not(.intro-done) .film-note { opacity: 0; }
html.intro .film-hero::after, html.intro .film-note { transition: opacity 1.2s ease; }
html.intro .site-nav { transition: transform .45s var(--ease), border-color .3s ease, background-color .35s ease, color .35s ease, opacity .9s ease; }
html.intro:not(.nav-in):not(.intro-done) .site-nav { opacity: 0; }
html.intro-done .film-hero h1 { clip-path: none; }
html.intro-skip .film-hero h1, html.intro-skip .film-hero .hero-sub, html.intro-skip .film-hero .hero-actions > *, html.intro-skip .hero-foot, html.intro-skip .site-nav, html.intro-skip .loader, html.intro-skip .film-hero::after { transition: none; }
/* while the film intro plays, the loader ground lifts and the canvas shows */
html.film-playing .loader { opacity: 0; pointer-events: none; }

/* ============================================================ Statement */
.statement { padding: var(--sec) 0 calc(var(--sec) * 0.8); }
.statement-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px var(--gap); align-items: end; }
.statement-lead {
  grid-column: 1 / span 8;
  font-size: clamp(22px, 2.3vw, 34px);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 34ch;
}
.statement-side { grid-column: 10 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.statement-side p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) {
  .statement-lead, .statement-side { grid-column: 1 / -1; }
}

/* ======================================================== The type window
   CABWORK set huge as a window onto a strip of real Cabwork rooms; the
   strip pans as the section passes. The word is an outline of Geist at a
   heavy weight (assets/cabwork-word.svg), used as a mask. */
.reel { padding: 0 0 var(--sec); }
.window {
  --word: url('assets/cabwork-word.svg');
  --word-ar: 7.0478;
  position: relative;
  display: block;
  width: calc(100% - 2 * var(--gutter));
  max-width: 1600px;
  margin: 0 auto;
  aspect-ratio: var(--word-ar);
  overflow: hidden;
  -webkit-mask: var(--word) center / 100% 100% no-repeat;
  mask: var(--word) center / 100% 100% no-repeat;
  background: var(--ink);
  border-radius: 0;
}
.window-strip {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: 0;
  display: flex;
  gap: 0;
  will-change: transform;
}
.window-strip img { height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; flex: none; }
.window:focus-visible { outline: none; }
.reel:has(.window:focus-visible) .reel-foot .text-link { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.reel-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 22px; }
.reel-foot p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 700px) and (orientation: portrait) {
  .pav-media img { --pox: 8.5%; --poy: 24%; }
}
@media (max-width: 700px) {
  .window { --word: url('assets/cabwork-word-stack.svg'); --word-ar: 2.0231; }
  .window-strip { top: -10%; bottom: -10%; }
  .window-strip img { aspect-ratio: 3 / 4; }
}
@supports not ((mask-image: url('')) or (-webkit-mask-image: url(''))) {
  .window { aspect-ratio: 16 / 7; }
}

/* ========================================================= Selected work
   A two-tone headline (ink, then the muted sage-grey line), a quiet note
   and a link on the right, then big cinematic cards of real rooms. */
.selected { padding: 0 0 var(--sec); }
.sel-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gap);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.sel-heading { grid-column: 1 / span 8; }
.sel-heading h2, .sel-heading-2 {
  font-size: clamp(44px, 6.6vw, 96px);
  font-weight: 560;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.sel-heading-2 { color: var(--sage); text-wrap: balance; }
.sel-side { grid-column: 10 / span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 8px; }
.sel-side p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.sel-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(56px, 7vw, 112px) var(--gap);
  align-items: start;
}
.sel-card { margin: 0; min-width: 0; }
.sel-a, .sel-d { grid-column: 1 / -1; }
.sel-b { grid-column: 1 / span 7; }
.sel-c { grid-column: 9 / span 4; margin-top: clamp(80px, 12vw, 200px); }
.sel-e { grid-column: 4 / span 9; }
.sel-frame { position: relative; overflow: hidden; border-radius: var(--r-pin); background: var(--mat); aspect-ratio: 16 / 9; }
.sel-a .sel-frame { aspect-ratio: 2 / 1; }
.sel-c .sel-frame { aspect-ratio: 4 / 5; }
.sel-d .sel-frame { aspect-ratio: 2.2 / 1; }
.sel-e .sel-frame { aspect-ratio: 16 / 10; }
.sel-frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; transition: transform 1.2s var(--ease); }
@media (hover: hover) { .sel-card:hover .sel-frame img { transform: scale(1.03); } }
.sel-frame:has([data-lb]:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.sel-card figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 20px;
  padding: 18px 2px 0;
}
.sel-card figcaption span:first-child { font-size: clamp(22px, 2vw, 30px); font-weight: 560; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); }
.sel-card figcaption span + span { font-size: 12.5px; color: var(--ink-2); }
.sel-card figcaption p { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.sel-rooms { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(64px, 8vw, 120px); padding-top: 24px; border-top: 1px solid var(--line); }
.sel-rooms > p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 900px) {
  .sel-heading, .sel-side { grid-column: 1 / -1; }
  .sel-a, .sel-b, .sel-c, .sel-d, .sel-e { grid-column: 1 / -1; margin-top: 0; }
  .sel-a .sel-frame, .sel-d .sel-frame { aspect-ratio: 4 / 3; }
  .sel-c .sel-frame { aspect-ratio: 4 / 5; }
  .sel-rooms .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); max-width: calc(100% + 2 * var(--gutter)); }
  .sel-rooms .chip-row::-webkit-scrollbar { display: none; }
  .sel-rooms .chip { flex: none; min-height: 44px; }
}

/* =========================================================== Collections */
.boards-sec { padding: 0 0 var(--sec); }
.board-head h2 { max-width: 16ch; }
.boards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 4.4vw, 64px) var(--gap);
}
.board { display: flex; flex-direction: column; gap: 14px; border-radius: var(--r-pin); }
.board-cover { position: relative; overflow: hidden; aspect-ratio: 5 / 6; border-radius: var(--r-pin); background: var(--mat); }
.board-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
@media (hover: hover) { .board:hover .board-cover img { transform: scale(1.04); } }
.board:focus-visible { outline-offset: 6px; }
.card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 2px; }
.card-title h3 { font-size: clamp(19px, 1.5vw, 23px); }
.card-title .arrow { color: var(--ink-2); align-self: center; }
.board:hover .card-title .arrow { transform: translateX(4px); color: var(--ink); }
.board > p { padding: 0 2px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
@media (max-width: 900px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .boards { gap: 32px 12px; }
  .board-cover { aspect-ratio: 4 / 5; }
  .card-title h3 { font-size: 17px; }
  .card-title .arrow { display: none; }
  .board > p { font-size: 13.5px; }
}

/* ============================================================== Process */
.story-sec { padding: var(--sec) 0 calc(var(--sec) - 24px); background: var(--band); border-radius: 0; margin: 0; }
.story-nav button { background: transparent; }
.story-card { background: transparent; border-radius: 0; overflow: visible; }
.story-card:hover { transform: none; box-shadow: none; }
.story-photo { margin: 0; border-radius: var(--r-pin); }
.story-when { background: rgba(242, 240, 236, 0.92); color: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 12px; letter-spacing: 0.06em; min-height: 28px; }
.story-body { padding: 18px 2px 8px; }
.story-body h3 { font-size: clamp(20px, 1.6vw, 24px); }
.story-body p { color: var(--ink-2); }
.story-end { border-radius: var(--r-board); background: var(--dusk); padding: clamp(24px, 2.4vw, 36px); align-self: stretch; justify-content: flex-end; }
.story-end h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; max-width: 12ch; text-wrap: balance; }
.story-body .story-detail { margin-top: auto; padding-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--line-2); }
@media (min-width: 1200px) {
  .story-track { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; padding: 4px 0 24px; margin: 0 auto; max-width: var(--max); padding-inline: var(--gutter); }
  .story-nav { display: none; }
}
@media (max-width: 640px) { .story-sec { padding-bottom: 48px; } }

/* ============================================================== Factory */
.factory { padding: var(--sec) 0; }
.factory-head h2 { font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.factory-render { margin: 0 0 clamp(56px, 7vw, 104px); }
.fr-stage { position: relative; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callouts li { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.callouts li::before { content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #f1efea; box-shadow: 0 0 0 4px rgba(241, 239, 234, 0.22); }
.callouts li::after { content: ''; position: absolute; left: -0.5px; bottom: 6px; width: 1px; height: 18px; background: rgba(241, 239, 234, 0.6); }
.callouts span { position: absolute; left: 0; bottom: 26px; transform: translateX(-50%); width: max-content; max-width: 210px; padding: 6px 11px; border-radius: var(--r-board); background: rgba(242, 240, 236, 0.92); font-size: 12.5px; line-height: 1.35; color: var(--ink); text-align: center; text-wrap: balance; }
@media (max-width: 900px) {
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 14px; }
  .callouts li { position: relative; left: auto; top: auto; width: auto; height: auto; padding-left: 16px; }
  .callouts li::before { left: 0; top: 7px; background: var(--ink); box-shadow: none; }
  .callouts li::after { display: none; }
  .callouts span { position: static; transform: none; max-width: none; padding: 0; background: none; text-align: left; font-size: 13.5px; color: var(--ink-2); }
}
.factory-render img { width: 100%; height: auto; aspect-ratio: 2400 / 1351; object-fit: cover; border-radius: var(--r-board); background: var(--dusk); }
.factory-render figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-2); max-width: 60ch; }
.frame.is-still { border-radius: var(--r-pin); background: linear-gradient(180deg, #efede9 0%, #dcd9d2 100%); }
.frame.is-still img { mix-blend-mode: multiply; }
.frame.is-render { aspect-ratio: 4 / 3; border-radius: var(--r-pin); background: var(--dusk); }
.frame.is-render img { width: 100%; height: 100%; object-fit: cover; }
.ws-machines .frame.is-render { aspect-ratio: 4 / 3; }
.is-render .model-note { background: rgba(10, 12, 16, 0.62); color: var(--on-dusk); }
.machine-pin .machine-name { font-size: clamp(19px, 1.45vw, 22px); font-weight: 560; letter-spacing: -0.02em; }
.model-note {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(242, 240, 236, 0.92);
  font-size: 12px;
  color: var(--ink-2);
}

/* =============================================================== Finishes */
.swatch-sec { padding: 0 0 var(--sec); }
.swatch-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(40px, 5vw, 72px); align-items: end; }
.swatch-grid > .module-finish { grid-column: 1 / span 5; }
.swatch-grid > .swatch-copy { grid-column: 7 / span 6; margin-bottom: 0; }
.swatch-grid > .swatch-board { grid-column: 1 / -1; }
.module-finish { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.mf { margin: 0; position: relative; }
.mf img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-pin); background: var(--mat); }
.mf-oak img, .mf-greige img { aspect-ratio: 2 / 3; }
.mf-bronze { grid-column: 1 / -1; }
.mf-bronze img { height: auto; aspect-ratio: 16 / 1; border-radius: 3px; }
.mf figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: var(--r-pill); background: rgba(242, 240, 236, 0.9); font-size: 12px; color: var(--ink); }
.mf-bronze figcaption { position: static; display: block; margin-top: 8px; padding: 0; background: none; color: var(--ink-2); }
.mf-note { grid-column: 1 / -1; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 900px) {
  .swatch-grid > .module-finish, .swatch-grid > .swatch-copy { grid-column: 1 / -1; }
  .module-finish { max-width: 520px; }
}
.swatch, .swatch-photo .card-img { border-radius: var(--r-pin); }
.finish:hover .swatch { transform: translateY(-4px); }
.door-frame { perspective: 900px; }

/* ========================================================= Developments */
.places h2 { max-width: 18ch; }
.projects-grid figcaption span:first-child { font-size: clamp(18px, 1.5vw, 22px); font-weight: 520; letter-spacing: -0.02em; }
.projects-grid figure:hover .card-img { transform: scale(1.04); }
.dev-more { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px var(--gap); margin-top: clamp(28px, 3vw, 44px); align-items: start; }
.dev-more-list { grid-column: 1 / span 7; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); max-width: 48ch; }
.project-note { grid-column: 9 / span 4; display: flex; flex-direction: column; gap: 10px; }
.project-note-lead { font-size: 13px; color: var(--ink-2); }
.project-note figure { margin: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; }
.project-note .card-img { width: 72px; aspect-ratio: 1; border-radius: var(--r-pin); overflow: hidden; background: var(--mat); }
.project-note .card-img img { width: 100%; height: 100%; object-fit: cover; }
.project-note figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.project-note figcaption .muted { font-size: 13.5px; }
@media (max-width: 900px) { .dev-more-list, .project-note { grid-column: 1 / -1; } }

/* ================================================== Home CTA: the workshop
   The render world returns at the end: a dim workshop render behind the
   last ask, with a scrim on the copy side. */
.cta-scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(128px, 16vw, 232px) 0;
  background: var(--dusk);
}
.cta-media { position: absolute; inset: 0; z-index: -2; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 12, 16, 0.86) 0%, rgba(10, 12, 16, 0.55) 45%, rgba(10, 12, 16, 0.05) 75%);
}
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-inner h2 { max-width: 14ch; color: var(--on-dusk); }
.cta-inner p { max-width: 42ch; color: #d6d3cc; font-size: 17px; }
.cta-inner .btn { margin-top: 10px; }
.cta-scene .render-note { position: absolute; right: calc(var(--gutter) + 72px); bottom: 26px; color: var(--on-dusk-2); }
@media (max-width: 760px) {
  .cta-scene { padding: 96px 0 120px; }
  .cta-media img { object-position: 78% 50%; }
  .cta-scene::before { background: linear-gradient(0deg, rgba(10, 12, 16, 0.9) 0%, rgba(10, 12, 16, 0.7) 55%, rgba(10, 12, 16, 0.35) 100%); }
}

/* Other pages: the last ask is a dusk sheet */
.cta { padding: 0 0 var(--sec); }
.cta.cta-scene { padding: clamp(128px, 16vw, 232px) 0 clamp(120px, 14vw, 200px); }
@media (max-width: 760px) { .cta.cta-scene { padding: 96px 0 120px; } }
.cta-sheet { background: var(--dusk); border-radius: var(--r-board); align-items: flex-start; text-align: left; padding: clamp(56px, 8vw, 120px) clamp(24px, 5vw, 80px); }
.cta-sheet h2 { color: var(--on-dusk); max-width: 16ch; }
.cta-sheet p { color: var(--on-dusk-2); }

/* ================================================================ Footer */
.site-footer { border-radius: 0; background: var(--dusk); border-top: 1px solid rgba(241, 239, 234, 0.08); }
.footer-brand img { height: 24px; }

/* ============================================================ Page heads */
.page-head { text-align: left; padding: calc(var(--nav-h) + clamp(64px, 9vw, 144px)) 0 clamp(28px, 3vw, 48px); }
.page-head h1 { margin: 0; max-width: 15ch; }
.page-head .lead { margin: 22px 0 0; }
.page-head .chip-row { justify-content: flex-start; margin-top: 30px; }
.page-render { margin: clamp(40px, 5vw, 72px) 0 0; }
.page-render img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--mat); }
.page-render figcaption { width: 100%; max-width: var(--max); margin: 12px auto 0; padding: 0 var(--gutter); font-size: 13px; color: var(--ink-2); }
@media (max-width: 700px) { .page-render img { aspect-ratio: 4 / 3; object-position: 64% 50%; } }

/* Collections page */
.collection-text li { background: transparent; border: 1px solid var(--line-2); }
.board-cover .bc, .bc-bg { border-radius: 0; }
.collection-info .board-cover { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; aspect-ratio: 4 / 3.2; background: transparent; }
.collection-info .bc { position: relative; overflow: hidden; background: var(--mat); border-radius: 0; }
.collection-info .bc-main { grid-row: 1 / span 2; border-radius: var(--r-pin) 0 0 var(--r-pin); }
.collection-info .bc:nth-child(2) { border-radius: 0 var(--r-pin) 0 0; }
.collection-info .bc:nth-child(3) { border-radius: 0 0 var(--r-pin) 0; }
.collection-info .bc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.collection-info .board-cover.is-two .bc:nth-child(2) { grid-row: 1 / span 2; border-radius: 0 var(--r-pin) var(--r-pin) 0; }

/* About page */
.about-head h1 { max-width: 14ch; }
.values { background: var(--band); border-radius: 0; margin: 0; }
.note { border-radius: var(--r-board); }
.value-col, .value-col + .value-col { transform: none; }
.value-col h3 { font-style: normal; }
.quotes blockquote p { font-style: normal; }
.dev-group { border-radius: var(--r-board); }
.dev-item { font-weight: 480; letter-spacing: -0.015em; }
.shaker-grid > .card-img { border-radius: var(--r-board); }
.shaker-copy { border-radius: var(--r-board); }

/* Contact page */
#form-wrap { border-radius: var(--r-board); box-shadow: var(--sh-lift); }
.form-sheet-head div:first-child { font-weight: 560; letter-spacing: -0.025em; }
.contact-fact { border-radius: var(--r-pin); }
.quote-form input, .quote-form select, .quote-form textarea { background: var(--paper); }

/* Work page */
.work-top { padding-bottom: 8px; }
.work-filters { background: color-mix(in srgb, var(--ground) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.work-grid-title { font-size: clamp(26px, 2.4vw, 36px); margin: clamp(28px, 4vw, 56px) 0 clamp(20px, 2.4vw, 32px); }
.pin figcaption span:first-child { font-weight: 520; }

/* Close-up */
.lb-dialog { border-radius: var(--r-board); }
.lb-title { font-weight: 560; letter-spacing: -0.03em; }
.lb-rel-item { border-radius: var(--r-pin); }

/* Pins and frames: editorial radius, no lift */
@media (hover: hover) {
  .frame:hover, .masonry .card-img:hover { transform: none; box-shadow: none; }
}
.frame:focus-within, .masonry .card-img:focus-within { transform: none; box-shadow: none; }
.pin-act-view:hover { background: var(--paper); }

/* Reduced motion: nothing scrubs or pins; everything is visible */
@media (prefers-reduced-motion: reduce) {
  .sel-frame img, .board-cover img { transition: none; }
}
