/* ------------------------------------------------------------------
   occasion(al) studio — site.css
   the wall and the ink do almost everything.
   one red thing per composition. one serif letter per word.
------------------------------------------------------------------- */

:root {
  /* palette — from the identity book */
  --milk: #F3EEE4;      /* wall */
  --roast: #2B201A;     /* ink, darkest rooms */
  --olive: #6E6A2B;
  --maroon: #5F2536;
  --teal: #8FB7B8;
  --citron: #E3CC4F;
  --red: #D23B2A;

  /* supporting tones (linen, travertine, stone) */
  --panel: #EDE4D3;
  --linen: #E4DACA;
  --travertine: #D9CFBD;
  --plaster: #C4B7A3;
  --stone: #A39079;
  --stone-dark: #877864;
  --line: rgba(43, 32, 26, 0.12);
  --line-strong: rgba(43, 32, 26, 0.28);

  --ink: var(--maroon);
  --ink-soft: rgba(95, 37, 54, 0.72);
  --ink-mute: rgba(43, 32, 26, 0.55);

  /* type */
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Gloock", "Iowan Old Style", Georgia, serif;
  --mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --radius: 2px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.theme-dark { background: var(--roast); color: var(--milk); }
body.theme-maroon { background: var(--maroon); color: var(--milk); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

::selection { background: var(--citron); color: var(--roast); }

/* ---------- type ---------- */
.display, h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: lowercase;
}
.h-xl { font-size: clamp(3.4rem, 11vw, 10rem); }
.h-l  { font-size: clamp(2.6rem, 6.5vw, 5.6rem); }
.h-m  { font-size: clamp(2rem, 4vw, 3.4rem); }
.h-s  { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; line-height: 1.05; }

/* the occasional — one serif letter per word, 92% of the sans size */
.o { font-family: var(--serif); font-weight: 400; font-size: 0.92em; letter-spacing: 0; font-style: normal; }
.o.red { color: var(--red); }
.o.citron { color: var(--citron); }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; }
.body-soft { color: var(--ink-soft); }

/* mono label layer */
.mono, .label, .wall-label {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.55;
}
.label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mute); }
.label.red { color: var(--red); }
.label.num { color: var(--red); }
.theme-dark .label, .theme-maroon .label { color: rgba(243, 238, 228, 0.6); }

.wall-label {
  font-size: 0.72rem;
  color: var(--ink-mute);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.85rem;
  display: inline-block;
  text-align: left;
}
.wall-label span { display: block; }
.wall-label .n { color: var(--ink-mute); }
.on-dark .wall-label, .theme-dark .wall-label, .theme-maroon .wall-label { color: rgba(243, 238, 228, 0.7); border-color: rgba(243, 238, 228, 0.35); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), 1720px); margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vw, 9rem); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.rule { height: 1px; background: var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}
.section-head .label { padding-bottom: 0.6rem; }

.grid { display: grid; gap: var(--gap, 12px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-6 { grid-template-columns: repeat(6, 1fr); }
.cols-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } .cols-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } .cols-6, [data-products].cols-4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--milk) 86%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out), background 0.4s;
}
.theme-dark .site-header { background: color-mix(in srgb, var(--roast) 86%, transparent); border-color: rgba(243,238,228,0.12); }
.theme-maroon .site-header { background: color-mix(in srgb, var(--maroon) 88%, transparent); border-color: rgba(243,238,228,0.14); }
.site-header.hide { transform: translateY(-100%); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 2rem;
}

.wordmark {
  font-family: var(--sans); font-weight: 500; text-transform: lowercase;
  letter-spacing: -0.045em; font-size: 1.55rem; line-height: 1;
  display: inline-flex; align-items: baseline; white-space: nowrap;
}
.wordmark .paren { color: var(--red); font-weight: 400; display: inline-block; transition: transform 0.45s var(--ease-in-out); }
.wordmark .al { display: inline-block; overflow: hidden; vertical-align: baseline; max-width: 1.4em; transition: max-width 0.45s var(--ease-in-out), opacity 0.3s; }
.wordmark .word { margin-left: 0.28em; }
.wordmark:hover .al { max-width: 0; opacity: 0; }
.wordmark:hover .paren.l { transform: translateX(0.04em); }
.wordmark:hover .paren.r { transform: translateX(-0.04em); }
.theme-dark .wordmark, .theme-maroon .wordmark { color: var(--milk); }
.theme-maroon .wordmark .paren { color: var(--citron); }

.nav { display: flex; gap: clamp(1.2rem, 2.5vw, 2.6rem); align-items: center; }
.nav a { font-size: 1.02rem; text-transform: lowercase; letter-spacing: -0.01em; position: relative; padding: 0.35rem 0; }
.nav a .o { font-size: 0.92em; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .bag-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.nav .bag-btn .count {
  font-family: var(--mono); font-size: 0.7rem; min-width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--red); color: var(--milk); padding: 0 0.3rem;
  transform: scale(0); transition: transform 0.35s var(--ease-out);
}
.nav .bag-btn .count.show { transform: scale(1); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease-in-out), top 0.4s; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 800px) {
  /* no backdrop blur on small screens: a filter would make the header the containing block for the fixed nav */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--milk); }
  .theme-dark .site-header { background: var(--roast); }
  .theme-maroon .site-header { background: var(--maroon); }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 72px 0 0 0; background: var(--milk); flex-direction: column; align-items: flex-start;
    padding: 2rem var(--gutter); gap: 1.2rem; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.35s, transform 0.45s var(--ease-out); z-index: 49;
  }
  .theme-dark .nav { background: var(--roast); }
  .theme-maroon .nav { background: var(--maroon); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: clamp(2.2rem, 9vw, 3.2rem); font-weight: 500; letter-spacing: -0.04em; }
  .nav a::after { display: none; }
  .nav .bag-btn .count { font-size: 0.9rem; min-width: 1.8rem; height: 1.8rem; }
  body.menu-open { overflow: hidden; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; background: var(--roast); color: var(--milk);
  font-size: 1rem; text-transform: lowercase; letter-spacing: -0.01em; border-radius: var(--radius);
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.btn::after { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--maroon); transition: height 0.4s var(--ease-out); z-index: 0; }
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { height: 100%; }
.btn.ghost { background: transparent; color: var(--roast); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost::after { background: var(--roast); }
.btn.ghost:hover { color: var(--milk); }
.btn.red { background: var(--red); }
.btn.red::after { background: var(--maroon); }
.btn.milk { background: var(--milk); color: var(--roast); }
.btn.milk::after { background: var(--citron); }
.btn.milk:hover { color: var(--roast); }
.btn .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }
.btn.red .dot, .btn:hover .dot { background: var(--citron); }

.link-line { display: inline-flex; align-items: center; gap: 0.5rem; text-transform: lowercase; border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; transition: gap 0.3s var(--ease-out); }
.link-line:hover { gap: 0.9rem; }
.link-line .arr { font-family: var(--mono); font-size: 0.85em; }

/* ---------- the pieces (occasional furniture, drawn as shapes) ---------- */
.piece {
  display: block; position: relative;
  --c: var(--maroon);
  background: var(--c);
  aspect-ratio: 1 / 1;
  width: 100%;
}
.p-square   { border-radius: 0; }
.p-circle   { border-radius: 50%; }
.p-tl       { border-radius: 100% 0 0 0; }    /* quarter — stool / corner seat */
.p-tr       { border-radius: 0 100% 0 0; }
.p-bl       { border-radius: 0 0 0 100%; }
.p-br       { border-radius: 0 0 100% 0; }
.p-top      { border-radius: 50% 50% 0 0 / 100% 100% 0 0; } /* half moon up — the arch */
.p-bottom   { border-radius: 0 0 50% 50% / 0 0 100% 100%; } /* half moon down */
.p-left     { border-radius: 50% 0 0 50% / 100% 0 0 100%; }
.p-right    { border-radius: 0 50% 50% 0 / 0 100% 100% 0; }
.p-arch     { border-radius: 50% 50% 0 0 / 40% 40% 0 0; }   /* rounded top, flat base */
.p-plank    { aspect-ratio: 4 / 1; }
.p-plank-tall { aspect-ratio: 1 / 4; }
.p-stem     { background: none; }               /* side table on a stem: circle + rod */
.p-stem::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 48%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--c); }
.p-stem::after  { content: ""; position: absolute; left: 44%; right: 44%; top: 44%; bottom: 0; background: var(--c); }
.p-cup      { border-radius: 0 0 50% 50% / 0 0 60% 60%; }  /* the sink / corner seat */

.c-maroon { --c: var(--maroon); } .c-roast { --c: var(--roast); } .c-olive { --c: var(--olive); }
.c-teal { --c: var(--teal); } .c-citron { --c: var(--citron); } .c-red { --c: var(--red); }
.c-milk { --c: var(--milk); } .c-linen { --c: var(--linen); } .c-stone { --c: var(--stone); } .c-plaster { --c: var(--plaster); }

/* a row of pieces — the marching band along the plinth */
.plinth { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; align-items: end; }
.plinth .gap { aspect-ratio: 1 / 1; }

/* the odd dot — one in the grid */
.dot-grid { --n: 12; --size: 6px; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 0; }
.dot-grid i { display: grid; place-items: center; aspect-ratio: 1; }
.dot-grid i::before { content: ""; width: var(--size); height: var(--size); background: var(--roast); opacity: 0.55; transition: transform 0.4s var(--ease-out), background 0.3s, border-radius 0.3s, opacity 0.3s; }
.dot-grid i.odd::before { background: var(--red); opacity: 1; border-radius: 50%; transform: scale(1.35); }
.on-dark .dot-grid i::before { background: var(--milk); opacity: 0.35; }

/* the odd stripe */
.stripes { display: flex; height: 100%; }
.stripes i { flex: 1; background: var(--olive); margin-inline: 4%; }
.stripes i.odd { background: var(--citron); }

/* parentheses as frame */
.paren-frame { position: relative; display: grid; place-items: center; }
.paren-frame::before, .paren-frame::after {
  content: "("; position: absolute; top: 50%; transform: translateY(-52%);
  font-family: var(--serif); font-size: 5em; line-height: 1; color: var(--roast); pointer-events: none;
  transition: transform 0.6s var(--ease-out);
}
.paren-frame::before { left: 4%; }
.paren-frame::after { content: ")"; right: 4%; }
.paren-frame:hover::before { transform: translate(-6%, -52%); }
.paren-frame:hover::after { transform: translate(6%, -52%); }

/* ---------- media / figures ---------- */
.ph { background: var(--plaster); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.figure { position: relative; overflow: hidden; background: var(--plaster); }
.figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.figure:hover img { transform: scale(1.03); }
.figure .wall-label {
  position: absolute; left: 1.2rem; bottom: 1.1rem; color: var(--milk);
  border-color: rgba(243,238,228,0.5); mix-blend-mode: normal;
  text-shadow: 0 1px 12px rgba(43,32,26,0.35);
}
.figure .wall-label span { color: var(--milk); }
.figure .wall-label .n { color: rgba(243,238,228,0.7); }
.figure.label-light .wall-label { color: var(--roast); text-shadow: none; border-color: var(--line-strong); }
.figure.label-light .wall-label span { color: var(--roast); }
.figure.label-light .wall-label .n { color: var(--ink-mute); }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-21-9 { aspect-ratio: 21 / 9; }
.ratio-3-2 { aspect-ratio: 3 / 2; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
.reveal-clip.in { clip-path: inset(0 0 0 0); }
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.hero-copy { padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: flex-end; gap: 2rem; position: relative; z-index: 2; }
.hero-copy .label { position: absolute; top: 1.6rem; left: var(--gutter); }
.hero h1 { color: var(--maroon); }
.hero h1 .al-wrap { display: inline-block; white-space: nowrap; }
.hero h1 .paren { color: var(--red); display: inline-block; font-weight: 400; }
.hero h1 .al { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-media { position: relative; overflow: hidden; background: var(--plaster); min-height: 60vh; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-media .wall-label { position: absolute; right: 1.4rem; bottom: 1.3rem; }
.hero-media .caption-l { position: absolute; left: 1.4rem; bottom: 1.3rem; }
.hero-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { order: 2; padding-top: 2.5rem; }
  .hero-copy .label { position: static; margin-bottom: -0.5rem; }
  .hero-media { order: 1; min-height: 56vw; aspect-ratio: 4 / 3; }
}

/* the moving pieces in the hero — a grid of floating shapes that scroll at different speeds */
.hero-pieces { position: absolute; inset: 0 50% 0 0; pointer-events: none; z-index: 1; overflow: hidden; }
@media (max-width: 900px) { .hero-pieces { inset: 0; } }
.hero-pieces .piece { position: absolute; width: var(--w, 12%); will-change: transform; }

/* ---------- the pieces stage (pinned scroll) ---------- */
.stage-section { position: relative; }
.stage-pin { min-height: 100svh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.6fr); align-items: center; gap: clamp(2rem, 5vw, 6rem); padding-block: 4rem; }
.stage-copy { position: relative; min-height: 14rem; }
.stage-copy .step { position: absolute; inset: 0; opacity: 0; transform: translateY(14px); transition: opacity 0.5s, transform 0.6s var(--ease-out); pointer-events: none; }
.stage-copy .step.active { opacity: 1; transform: none; pointer-events: auto; }
.stage-copy .step h2 { margin: 0.6rem 0 1.2rem; }
.stage-copy .step p { max-width: 30ch; color: var(--ink-soft); margin-bottom: 1.6rem; }
.stage-progress { display: flex; gap: 0.5rem; margin-top: 2.5rem; }
.stage-progress i { width: 2.6rem; height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.stage-progress i::after { content: ""; position: absolute; inset: 0; background: var(--maroon); transform: scaleX(var(--p, 0)); transform-origin: left; }
.stage { position: relative; width: 100%; aspect-ratio: 12 / 7; }
.stage .piece { position: absolute; will-change: left, top, width, height, border-radius, background-color, opacity; transform: translateZ(0); }
.stage .floor { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); top: 100%; opacity: 0; transition: opacity 0.5s; }
.stage .floor.show { opacity: 1; }
@media (max-width: 900px) {
  .stage-pin { grid-template-columns: 1fr; align-content: center; gap: 2rem; padding-block: 2rem; }
  .stage-copy { min-height: 15rem; }
}

/* ---------- discipline tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile { position: relative; display: block; overflow: hidden; background: var(--panel); aspect-ratio: 4 / 5; }
.tile .figure { position: absolute; inset: 0; }
.tile .figure img { transform: scale(1.02); }
.tile:hover .figure img { transform: scale(1.06); }
.tile .tile-head { position: absolute; top: 1.2rem; left: 1.2rem; right: 1.2rem; display: flex; justify-content: space-between; color: var(--milk); z-index: 2; }
.tile .tile-foot { position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2; color: var(--milk); }
.tile .tile-foot h3 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 0.9; }
.tile .tile-foot .sub { font-family: var(--mono); font-size: 0.72rem; margin-top: 0.7rem; opacity: 0.85; letter-spacing: 0.02em; }
.tile .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(43,32,26,0.55), rgba(43,32,26,0.05) 55%); z-index: 1; transition: opacity 0.5s; }
.tile .tile-piece { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 18%; z-index: 2; transition: transform 0.7s var(--ease-out); }
.tile:hover .tile-piece { transform: translateY(-12%) rotate(-6deg); }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } .tile { aspect-ratio: 4 / 3; } }

/* ---------- the mixed grid (images + pieces) ---------- */
.mix { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(0, auto); gap: 12px; grid-auto-flow: dense; }
.mix > * { min-width: 0; }
.mix .cell { position: relative; overflow: hidden; background: var(--panel); aspect-ratio: 1 / 1; }
.mix .span-2 { grid-column: span 2; }
.mix .span-3 { grid-column: span 3; }
.mix .span-4 { grid-column: span 4; }
.mix .row-2 { grid-row: span 2; aspect-ratio: auto; }
.mix .cell.wide { aspect-ratio: 2 / 1; }
.mix .cell.tall { aspect-ratio: 1 / 2; }
.mix .cell .piece { position: absolute; inset: 0; width: auto; aspect-ratio: auto; }
.mix .cell.solid { display: grid; place-items: end start; padding: 1.2rem; }
.mix .cell.solid.maroon { background: var(--maroon); color: var(--milk); }
.mix .cell.solid.red { background: var(--red); color: var(--milk); }
.mix .cell.solid.olive { background: var(--olive); color: var(--milk); }
.mix .cell.solid.citron { background: var(--citron); color: var(--roast); }
.mix .cell.solid.teal { background: var(--teal); color: var(--roast); }
.mix .cell.solid.roast { background: var(--roast); color: var(--milk); }
.mix .cell.solid .big { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5rem); line-height: 1; letter-spacing: -0.02em; }
.mix .cell.solid .big sup { font-size: 0.4em; vertical-align: top; }
.mix .cell.solid .line { font-size: clamp(1.1rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.05; text-transform: lowercase; }
.mix .cell.dots { padding: 8%; display: grid; }
.mix .cell.stripes-cell { padding: 0; }
.mix .cell .figure { position: absolute; inset: 0; }
@media (max-width: 800px) {
  .mix { grid-template-columns: repeat(4, 1fr); }
  .mix .span-3 { grid-column: span 2; }
  .mix .span-4 { grid-column: span 4; }
}
@media (max-width: 520px) {
  .mix { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .mix .span-3, .mix .span-4 { grid-column: span 2; }
}

/* ---------- manifesto ---------- */
.manifesto { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.manifesto h2 { color: var(--roast); }
.theme-dark .manifesto h2 { color: var(--milk); }
@media (max-width: 900px) { .manifesto { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding-block: 1rem; }
.marquee-track { display: inline-flex; gap: 3rem; animation: marquee 40s linear infinite; will-change: transform; }
.marquee-track span { font-size: clamp(1.4rem, 3vw, 2.6rem); letter-spacing: -0.04em; text-transform: lowercase; font-weight: 500; }
.marquee-track .piece { width: clamp(1.4rem, 3vw, 2.6rem); height: clamp(1.4rem, 3vw, 2.6rem); display: inline-block; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- shelf (objects preview) ---------- */
.shelf { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { flex: 0 0 clamp(220px, 26vw, 340px); scroll-snap-align: start; }

/* ---------- product card ---------- */
.product { display: block; position: relative; }
.product .art { position: relative; aspect-ratio: 4 / 5; background: var(--panel); overflow: hidden; display: grid; place-items: center; padding: 18%; transition: background 0.5s; }
.product .art .piece { width: 100%; transition: transform 0.7s var(--ease-out); }
.product:hover .art .piece { transform: translateY(-4%) rotate(-3deg); }
.product .art .tag { position: absolute; top: 0.9rem; left: 0.9rem; font-family: var(--mono); font-size: 0.68rem; color: var(--ink-mute); }
.product .art .sale { position: absolute; top: 0.8rem; right: 0.8rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--red); }
.product .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.85rem 0 0; }
.product .meta h3 { font-size: 1.1rem; letter-spacing: -0.02em; line-height: 1.1; }
.product .meta .mat { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); margin-top: 0.3rem; }
.product .meta .price { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.product .art.dark { background: var(--roast); }
.product .art.dark .tag { color: rgba(243,238,228,0.6); }
.product .art.maroon { background: var(--maroon); }
.product .art.maroon .tag { color: rgba(243,238,228,0.6); }
.product .art.olive { background: var(--olive); }
.product .art.olive .tag { color: rgba(243,238,228,0.7); }
.product .art.teal { background: var(--teal); }
.product .art.citron { background: var(--citron); }
.product .art.linen { background: var(--linen); }

/* ---------- filters / chips ---------- */
.chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 0.72rem; text-transform: lowercase; letter-spacing: 0.04em; padding: 0.5rem 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { border-color: var(--roast); }
.chip.active { background: var(--roast); color: var(--milk); border-color: var(--roast); }

/* ---------- drawer / modal ---------- */
.scrim { position: fixed; inset: 0; background: rgba(43,32,26,0.4); opacity: 0; pointer-events: none; transition: opacity 0.4s; z-index: 80; }
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--milk); z-index: 90;
  transform: translateX(100%); transition: transform 0.55s var(--ease-out); display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
}
.drawer.show { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem var(--gutter) 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow: auto; padding: 1rem var(--gutter); }
.drawer-foot { padding: 1.2rem var(--gutter) 1.6rem; border-top: 1px solid var(--line); display: grid; gap: 0.9rem; }
.drawer-foot .total { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 0.85rem; }
.close-x { width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--mono); font-size: 1.1rem; }
.bag-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.bag-item .art { aspect-ratio: 1; background: var(--panel); display: grid; place-items: center; padding: 18%; }
.bag-item .art .piece { width: 100%; }
.bag-item h4 { font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; }
.bag-item .mat { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-mute); margin-top: 0.15rem; }
.bag-item .qty { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-size: 0.8rem; margin-top: 0.5rem; }
.bag-item .qty button { width: 1.6rem; height: 1.6rem; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.bag-item .price { font-family: var(--mono); font-size: 0.8rem; }
.bag-empty { padding: 3rem 0; text-align: center; color: var(--ink-mute); }
.bag-empty .piece { width: 3rem; margin: 0 auto 1rem; }
.notice { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-mute); line-height: 1.6; }

.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: var(--gutter); opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.modal.show { opacity: 1; pointer-events: auto; }
.modal-card { width: min(920px, 100%); max-height: 100%; overflow: auto; background: var(--milk); display: grid; grid-template-columns: 1fr 1fr; transform: translateY(20px); transition: transform 0.5s var(--ease-out); }
.modal.show .modal-card { transform: none; }
.modal-card .art { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 16%; background: var(--panel); position: relative; }
.modal-card .art .piece { width: 100%; }
.modal-card .info { padding: clamp(1.4rem, 3vw, 2.6rem); display: flex; flex-direction: column; gap: 1.2rem; position: relative; }
.modal-card .info .close-x { position: absolute; top: 0.6rem; right: 0.6rem; }
.modal-card .info h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.modal-card .spec { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-mute); line-height: 1.7; border-left: 1px solid var(--line-strong); padding-left: 0.85rem; }
.modal-card .spec span { display: block; }
.modal-card .price { font-family: var(--mono); font-size: 1rem; }
.modal-card .desc { color: var(--ink-soft); max-width: 36ch; }
@media (max-width: 720px) { .modal-card { grid-template-columns: 1fr; } .modal-card .art { aspect-ratio: 1; padding: 22%; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--roast); color: var(--milk); padding: 0.8rem 1.2rem; font-family: var(--mono); font-size: 0.75rem; opacity: 0; transition: opacity 0.3s, transform 0.4s var(--ease-out); z-index: 99; pointer-events: none; display: flex; gap: 0.7rem; align-items: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--red); }

/* ---------- page intro ---------- */
.page-intro { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.page-intro h1 { color: var(--maroon); }
.page-intro .lede { color: var(--ink-soft); }
.theme-dark .page-intro h1, .theme-maroon .page-intro h1 { color: var(--milk); }
.theme-dark .page-intro .lede, .theme-maroon .page-intro .lede { color: rgba(243,238,228,0.72); }
@media (max-width: 800px) { .page-intro { grid-template-columns: 1fr; } }

/* ---------- project list ---------- */
.projects { display: grid; gap: clamp(3rem, 6vw, 6rem); }
.project { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: end; }
.project .figure { grid-column: 1 / 9; }
.project:nth-child(even) .figure { grid-column: 5 / 13; }
.project .side { grid-column: 9 / 13; padding-bottom: 0.4rem; display: grid; gap: 1rem; align-content: end; }
.project:nth-child(even) .side { grid-column: 1 / 5; grid-row: 1; }
.project .side h2 { font-size: clamp(1.9rem, 3.2vw, 3rem); }
.project .side .meta { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); line-height: 1.7; }
.project .side .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.project .side .thumbs .figure { grid-column: auto; aspect-ratio: 1; }
@media (max-width: 800px) {
  .project .figure, .project:nth-child(even) .figure { grid-column: 1 / -1; }
  .project .side, .project:nth-child(even) .side { grid-column: 1 / -1; grid-row: auto; }
}

/* ---------- project detail ---------- */
.detail-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: end; }
.detail-head h1 { color: var(--maroon); }
.detail-head .spec { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-mute); line-height: 1.75; border-left: 1px solid var(--line-strong); padding-left: 0.9rem; }
.detail-head .spec span { display: block; }
.detail-head .spec b { font-weight: 400; color: var(--ink); }
@media (max-width: 800px) { .detail-head { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gallery > * { grid-column: span 6; }
.gallery .full { grid-column: 1 / -1; }
.gallery .w-4 { grid-column: span 4; }
.gallery .w-8 { grid-column: span 8; }
.gallery .w-5 { grid-column: span 5; }
.gallery .w-7 { grid-column: span 7; }
.gallery .off-1 { grid-column: 2 / span 10; }
.gallery .piece-cell { position: relative; background: var(--panel); display: grid; place-items: center; padding: 22%; }
.gallery .piece-cell .piece { width: 100%; }
.gallery .note { grid-column: span 4; display: grid; align-content: end; padding: 1rem 0; }
.gallery .note p { color: var(--ink-soft); max-width: 28ch; font-size: 1.05rem; }
@media (max-width: 720px) { .gallery > *, .gallery .w-4, .gallery .w-8, .gallery .w-5, .gallery .w-7, .gallery .off-1, .gallery .note { grid-column: 1 / -1; } }

.pager { display: flex; justify-content: space-between; align-items: center; padding-block: 2.5rem; border-top: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 6rem); gap: 1rem; flex-wrap: wrap; }
.pager a { display: grid; gap: 0.3rem; }
.pager a .label { color: var(--ink-mute); }
.pager a .name { font-size: clamp(1.2rem, 2vw, 1.7rem); letter-spacing: -0.03em; text-transform: lowercase; font-weight: 500; }
.pager .next { text-align: right; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; align-items: start; }
.about-grid .portrait { grid-column: 1 / 6; }
.about-grid .copy { grid-column: 7 / 13; display: grid; gap: 1.6rem; padding-top: 1rem; }
.about-grid .copy p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.4; max-width: 44ch; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service { padding: 1.4rem 1.4rem 1.6rem; background: var(--panel); display: grid; gap: 0.7rem; align-content: start; min-height: 240px; position: relative; }
.service h3 { font-size: 1.5rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; }
.service .piece { width: 28%; position: absolute; right: 1.2rem; bottom: 1.2rem; }
.service ul { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-mute); line-height: 1.8; padding-right: 30%; }
.service .piece { width: 24%; }
@media (max-width: 800px) { .about-grid .portrait, .about-grid .copy { grid-column: 1 / -1; } .services { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.card {
  aspect-ratio: 1.6; padding: 1.2rem; color: var(--milk); position: relative; display: grid; align-content: space-between;
  transition: transform 0.6s var(--ease-out);
}
.card:hover { transform: translateY(-6px) rotate(-1deg); }
.card .name { font-size: 1.25rem; letter-spacing: -0.03em; text-transform: lowercase; font-weight: 500; }
.card .foot { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--mono); font-size: 0.6rem; line-height: 1.6; }
.card .foot .r { text-align: right; border-right: 1px solid rgba(243,238,228,0.4); padding-right: 0.6rem; }
.card .piece { position: absolute; top: 1.1rem; right: 1.1rem; width: 16%; }
.card.red { background: var(--red); } .card.maroon { background: var(--maroon); } .card.olive { background: var(--olive); } .card.teal { background: var(--teal); color: var(--roast); }
.card.teal .foot .r { border-color: rgba(43,32,26,0.4); }
@media (max-width: 800px) { .cards { grid-template-columns: repeat(2, 1fr); } }

.contact-list { display: grid; gap: 0.2rem; }
.contact-list a, .contact-list span { font-size: clamp(1.4rem, 2.6vw, 2.4rem); letter-spacing: -0.035em; text-transform: lowercase; font-weight: 500; display: inline-block; line-height: 1.2; }
.contact-list a:hover .o { color: var(--red); }

/* ---------- footer ---------- */
.site-footer { background: var(--roast); color: var(--milk); padding-block: clamp(3rem, 6vw, 5rem) 2rem; margin-top: clamp(3rem, 6vw, 6rem); position: relative; overflow: hidden; }
.site-footer .wordmark { color: var(--milk); font-size: clamp(2.4rem, 7vw, 6rem); }
.site-footer .wordmark .paren { color: var(--citron); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.footer-grid .label { color: rgba(243,238,228,0.5); margin-bottom: 0.8rem; }
.footer-grid a { display: block; padding: 0.15rem 0; text-transform: lowercase; color: rgba(243,238,228,0.85); }
.footer-grid a:hover { color: var(--citron); }
.footer-grid .hours { font-family: var(--mono); font-size: 0.72rem; color: rgba(243,238,228,0.6); line-height: 1.7; border-left: 1px solid rgba(243,238,228,0.3); padding-left: 0.85rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(243,238,228,0.15); font-family: var(--mono); font-size: 0.68rem; color: rgba(243,238,228,0.5); letter-spacing: 0.04em; text-transform: uppercase; }
.footer-plinth { margin-top: 3rem; }
.footer-plinth .plinth { grid-auto-columns: minmax(0, 1fr); }
.footer-plinth .gap { aspect-ratio: 1; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- misc ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sticky-label { position: sticky; top: 90px; }
.tag-pill { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: lowercase; color: var(--ink-mute); }
.tag-pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--red); }

/* the "empty on purpose" cell */
.empty { background: transparent !important; outline: 1px dashed var(--line-strong); outline-offset: -1px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal, .reveal-clip { opacity: 1; transform: none; clip-path: none; }
}
