/* ============================================================
   SATURA — design system
   Neo-grotesque display type, deep ink ground, saturated pigment
   gradients as the medium. All color carries meaning.
   ============================================================ */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-var-italic-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-400-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../fonts/space-mono-700-latin.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0B0A10;
  --ink-2: #14121C;
  --paper: #F4F1EA;
  --paper-dim: rgba(244, 241, 234, 0.62);
  --paper-faint: rgba(244, 241, 234, 0.34);
  --line: rgba(244, 241, 234, 0.14);
  --hot: #FF3D00;
  --cool: #00A3FF;
  --violet: #5B2BFF;
  --lime: #B8F500;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

.mono { font-family: 'Space Mono', monospace; }

.caps {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-dim);
}

::selection { background: var(--hot); color: var(--paper); }

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
h2 { font-size: clamp(2.6rem, 6.5vw, 5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.05; }

a { color: inherit; }

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============ views ============ */
.view { display: none; min-height: 100vh; }
.view.is-active { display: block; }

#view-collections, #view-pigment, #view-bench, #view-journal, #view-sets {
  padding-top: var(--topbar-h);
}

/* ============ top bar ============ */
#topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 36px);
  z-index: 60;
  background: linear-gradient(rgba(11, 10, 16, 0.72), rgba(11, 10, 16, 0.28) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: 5px;
  align-self: center;
  background: conic-gradient(from 210deg, var(--hot), #FFC400, var(--lime), var(--cool), var(--violet), #FF2FB3, var(--hot));
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand-mark { transform: rotate(180deg); }
.brand-word {
  font-weight: 900;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}
.brand-sub { font-size: 0.6rem; }

#mainnav {
  display: flex;
  gap: clamp(14px, 2.4vw, 34px);
}
#mainnav a {
  position: relative;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
  padding: 6px 2px;
  transition: color 0.3s;
}
#mainnav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hot), var(--violet), var(--cool));
  transition: right 0.45s var(--ease-out);
}
#mainnav a:hover { color: var(--paper); }
#mainnav a:hover::after { right: 0; }
#mainnav a.is-current { color: var(--paper); }
#mainnav a.is-current::after { right: 0; }

.topbar-right { display: flex; align-items: center; gap: 12px; }

#satchel-btn {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  transition: border-color 0.3s, background 0.3s;
}
#satchel-btn:hover { border-color: var(--paper-faint); background: rgba(244,241,234,0.06); }
#satchel-count {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(244,241,234,0.12);
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
}
#satchel-count.has-items {
  background: linear-gradient(120deg, var(--hot), #FF2FB3);
  color: var(--paper);
}
#satchel-count.pulse { animation: pulse 0.5s var(--ease-out); }
@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

#nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}
#nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--paper);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
#topbar.nav-open #nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
#topbar.nav-open #nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ============ hero field ============ */
#view-field {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.field-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 6vw, 96px);
  max-width: 1200px;
  pointer-events: none;
}
/* legibility scrim: keeps ink under the type no matter how bright the field */
#view-field::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(11,10,16,0.62) 0%, rgba(11,10,16,0.38) 42%, rgba(11,10,16,0) 78%);
}
.field-content > * { pointer-events: auto; }
.field-kicker { margin-bottom: 22px; text-shadow: 0 1px 12px rgba(11,10,16,0.7); }
.field-title {
  font-size: clamp(3rem, 9.5vw, 8.2rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 0.92;
  text-shadow: 0 2px 30px rgba(11, 10, 16, 0.65);
}
.field-title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, #FFC400, #FF2FB3 60%, #B8F500);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.field-dek {
  margin-top: 26px;
  max-width: 44ch;
  color: rgba(244, 241, 234, 0.88);
  text-shadow: 0 1px 14px rgba(11,10,16,0.8);
}
.field-ctas { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }

.field-hud {
  position: absolute;
  z-index: 3;
  right: clamp(16px, 3vw, 36px);
  bottom: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.field-palette-readout {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-shadow: 0 1px 10px rgba(11,10,16,0.8);
}
#palette-name { font-size: 0.85rem; }
#palette-dots { display: flex; gap: 8px; }
.palette-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--dot);
  border: 2px solid rgba(244,241,234,0.35);
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.palette-dot:hover { transform: scale(1.25); border-color: var(--paper); }

.field-scroll-hint {
  position: absolute;
  z-index: 3;
  left: clamp(20px, 6vw, 96px);
  bottom: 30px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 10px rgba(11,10,16,0.8);
}
.field-scroll-hint span {
  width: 34px; height: 1px;
  background: var(--paper-dim);
  animation: hintdrift 2.4s ease-in-out infinite;
}
@keyframes hintdrift {
  0%, 100% { transform: scaleX(0.5); opacity: 0.5; }
  50% { transform: scaleX(1); opacity: 1; }
}

/* ============ flood buttons ============ */
.flood-btn {
  position: relative;
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(244,241,234,0.4);
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
  background: rgba(11,10,16,0.35);
}
.flood-btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(100deg, var(--hot), #FF8A00 35%, #FF2FB3 70%, var(--violet));
  transform: translateY(102%);
  transition: transform 0.5s var(--ease-out);
}
.flood-btn:hover::before, .flood-btn:focus-visible::before { transform: translateY(0); }
.flood-btn:hover, .flood-btn:focus-visible { border-color: transparent; transform: translateY(-2px); }
.flood-btn.alt::before {
  background: linear-gradient(100deg, var(--cool), #00C2B8 40%, var(--lime));
}
.flood-btn.small { padding: 10px 20px; font-size: 0.84rem; }
.flood-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.flood-btn:disabled::before { display: none; }
.flood-btn:disabled:hover { transform: none; border-color: rgba(244,241,234,0.4); }

.mini-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid rgba(244,241,234,0.35);
  color: var(--paper);
  transition: background 0.3s, border-color 0.3s;
  background: rgba(11,10,16,0.3);
}
.mini-btn:hover { background: rgba(244,241,234,0.14); border-color: var(--paper); }
.mini-btn.ghost { border-color: transparent; color: var(--paper-dim); text-decoration: underline; text-underline-offset: 3px; }
.mini-btn.ghost:hover { color: var(--paper); background: none; }

/* ============ section heads ============ */
.section-head {
  padding: clamp(48px, 8vh, 90px) clamp(20px, 6vw, 96px) clamp(28px, 4vh, 48px);
  max-width: 900px;
}
.section-head h2 { margin: 14px 0 18px; }
.section-dek { color: var(--paper-dim); max-width: 52ch; }

/* ============ collections index ============ */
#collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 22px;
  padding: 0 clamp(20px, 6vw, 96px) clamp(60px, 9vh, 110px);
}
.collection-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--ink-2);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.collection-card:hover { transform: translateY(-6px); border-color: rgba(244,241,234,0.3); }
.collection-field {
  height: clamp(150px, 22vw, 240px);
  background:
    radial-gradient(90% 130% at 15% 10%, var(--c-a) 0%, transparent 62%),
    radial-gradient(90% 130% at 85% 25%, var(--c-b) 0%, transparent 60%),
    radial-gradient(120% 150% at 50% 110%, var(--c-c) 0%, transparent 66%),
    var(--ink-2);
  transition: filter 0.5s;
}
.collection-card:hover .collection-field { filter: saturate(1.25) brightness(1.1); }
.collection-body { padding: 24px 26px 28px; }
.collection-body h3 { margin: 10px 0 4px; font-size: 1.9rem; }
.collection-tagline { color: var(--paper); font-weight: 600; font-size: 0.95rem; margin-bottom: 10px; }
.collection-personality { color: var(--paper-dim); font-size: 0.92rem; }
.collection-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--c-a), var(--c-b), var(--c-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ collection detail / swatch wall ============ */
#collection-detail { padding-bottom: clamp(60px, 9vh, 110px); }
.back-link {
  display: table; /* block-level without full width, so metadata starts on its own line */
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paper-dim);
  text-decoration: none;
  margin-bottom: 26px;
  transition: color 0.3s;
}
.back-link:hover { color: var(--paper); }
.collection-hero {
  padding: clamp(48px, 8vh, 90px) clamp(20px, 6vw, 96px) clamp(30px, 5vh, 56px);
  max-width: 880px;
}
.collection-hero h2 {
  margin: 14px 0 20px;
  background: linear-gradient(95deg, var(--c-a), var(--c-b) 55%, var(--c-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.collection-story { color: var(--paper-dim); max-width: 58ch; }

.swatch-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  padding: 0 clamp(20px, 6vw, 96px);
}
.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: transform 0.45s var(--ease-out);
}
.swatch:hover { transform: translateY(-6px) scale(1.015); }
.swatch-mass {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, var(--sw-hi) 0%, var(--sw) 46%, var(--sw-lo) 100%);
  transition: transform 0.6s var(--ease-out);
}
.swatch:hover .swatch-mass { transform: scale(1.07); }
.swatch-meta {
  position: relative;
  padding: 40px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--sw-text);
  background: linear-gradient(transparent, var(--sw-scrim, rgba(11,10,16,0.55)));
}
.swatch-code { font-size: 0.68rem; opacity: 0.85; }
.swatch-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.swatch-hex { font-size: 0.72rem; opacity: 0.85; }

/* ============ pigment detail ============ */
.pigment-wrap { padding: clamp(40px, 6vh, 70px) clamp(20px, 6vw, 96px) clamp(60px, 9vh, 100px); }
.pigment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.pigment-info h2 {
  margin: 12px 0 20px;
  color: var(--p);
}
@supports ((-webkit-background-clip: text)) {
  .pigment-info h2 {
    background: linear-gradient(95deg, var(--p-hi), var(--p) 55%, var(--p-lo));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
.pigment-story { color: var(--paper-dim); max-width: 54ch; margin-bottom: 34px; }

.pigment-range { margin-bottom: 34px; }
.range-bar {
  margin-top: 12px;
  height: 74px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--p-hi), var(--p) 50%, var(--p-lo));
  border: 1px solid var(--line);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.68rem;
  color: var(--paper-dim);
}

.pigment-usage { margin-bottom: 34px; }
.pigment-usage p { margin-top: 10px; color: var(--paper); max-width: 52ch; }

.pigment-pairs { margin-bottom: 38px; }
.pair-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pair-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 99px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s, border-color 0.35s;
}
.pair-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--pair);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.pair-chip:hover { color: var(--pair-text); border-color: transparent; }
.pair-chip:hover::before { transform: scaleX(1); }
.pair-chip:hover .pair-hex { opacity: 0.85; }
.pair-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--pair);
  flex-shrink: 0;
}
.pair-hex { font-size: 0.68rem; opacity: 0.55; }

.pigment-editorial { position: sticky; top: calc(var(--topbar-h) + 20px); }
.editorial-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.editorial-duotone {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(100% 90% at 80% 8%, var(--p-hi) 0%, transparent 55%),
    radial-gradient(120% 110% at 12% 88%, var(--p-lo) 0%, transparent 60%),
    linear-gradient(160deg, var(--p) 0%, var(--ink) 125%);
}
.editorial-big {
  position: relative;
  font-size: clamp(6rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--p-text);
  opacity: 0.92;
  text-shadow: 0 4px 40px rgba(11,10,16,0.35);
}
.editorial-caption {
  position: absolute;
  left: 18px; bottom: 14px;
  font-size: 0.66rem;
  color: var(--p-text);
  opacity: 0.8;
}

/* ============ mixing bench ============ */
#bench-root { position: relative; padding-bottom: clamp(60px, 9vh, 110px); }

.bench-stage-wrap {
  margin: 0 clamp(20px, 6vw, 96px);
}
.bench-stage {
  position: relative;
  height: clamp(300px, 46vh, 460px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.35s;
}
.bench-stage.is-live { animation: stagebreathe 7s ease-in-out infinite; }
@keyframes stagebreathe {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.14) brightness(1.06); }
}
.bench-hint {
  text-align: center;
  color: var(--paper-dim);
  font-size: 1.05rem;
  transition: opacity 0.4s;
}
.bench-readout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 26px;
}
.ro-chip {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.ro-dim { color: var(--paper-dim); }

.bench-vessels {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px clamp(20px, 6vw, 96px) 0;
}
.vessel {
  flex: 1 1 220px;
  max-width: 340px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 18px;
  background: var(--ink-2);
}
.vessel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.vessel-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--vessel);
  flex-shrink: 0;
}
.vessel-name { font-weight: 700; font-size: 0.92rem; flex: 1; }
.vessel-pct { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--paper-dim); }
.vessel-x {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--paper-dim);
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.vessel-x:hover { color: var(--paper); background: rgba(244,241,234,0.1); }

.vessel input[type='range'] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--vessel), rgba(244,241,234,0.12));
  outline: none;
  cursor: pointer;
}
.vessel input[type='range']::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--vessel);
  border: 3px solid var(--paper);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.vessel input[type='range']::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--vessel);
  border: 3px solid var(--paper);
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.bench-commit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 26px clamp(20px, 6vw, 96px) 0;
}
.bench-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 320px;
}
.bench-name-wrap input {
  flex: 1;
  min-width: 0;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--paper);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 13px 22px;
  outline: none;
  transition: border-color 0.3s;
}
.bench-name-wrap input:focus { border-color: var(--paper-faint); }
.bench-name-wrap input::placeholder { color: var(--paper-faint); }

.bench-picker {
  margin: 40px clamp(20px, 6vw, 96px) 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.picker-group { display: flex; align-items: flex-start; gap: 16px; }
.picker-label {
  flex: 0 0 110px;
  padding-top: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--paper-dim);
}
.picker-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick-swatch {
  position: relative;
  width: 74px; height: 74px;
  border-radius: 12px;
  background: var(--sw);
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, opacity 0.3s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.pick-name {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 6px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.65);
  text-transform: uppercase;
}
.pick-swatch:hover { transform: translateY(-4px) scale(1.05); }
.pick-swatch.is-on {
  border-color: var(--paper);
  box-shadow: 0 0 0 3px var(--ink), 0 0 0 5px var(--sw);
  transform: translateY(-4px);
}
.pick-swatch:disabled { opacity: 0.28; cursor: not-allowed; }
.pick-swatch:disabled:hover { transform: none; }

.bench-gallery-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 56px clamp(20px, 6vw, 96px) 18px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}
.bench-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  margin: 0 clamp(20px, 6vw, 96px);
}
.gallery-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 46px 30px;
  text-align: center;
  color: var(--paper-dim);
}
.mix-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink-2);
}
.mix-field {
  height: 130px;
  background: linear-gradient(135deg, var(--mix-a), var(--mix-b) 55%, var(--mix-c));
}
.mix-meta { padding: 16px 18px 18px; }
.mix-meta h4 { font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.mix-recipe { font-size: 0.8rem; color: var(--paper-dim); margin-bottom: 6px; }
.mix-hex { font-size: 0.68rem; color: var(--paper-faint); }
.mix-actions { display: flex; gap: 10px; margin-top: 14px; }

.bench-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  z-index: 80;
}
.bench-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ journal ============ */
#journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 22px;
  padding: 0 clamp(20px, 6vw, 96px) clamp(60px, 9vh, 110px);
}
.journal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.journal-card:hover { transform: translateY(-6px); border-color: rgba(244,241,234,0.3); }
.journal-art {
  display: block;
  width: 100%;
  height: clamp(160px, 20vw, 220px);
  object-fit: cover;
}
.journal-body { padding: 22px 26px 28px; }
.journal-body h3 { margin: 10px 0 10px; }
.journal-body p { color: var(--paper-dim); font-size: 0.94rem; }
.journal-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--j-a), var(--j-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============ sets (shop) ============ */
#sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 22px;
  padding: 0 clamp(20px, 6vw, 96px) clamp(60px, 9vh, 110px);
}
.set-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.set-card:hover { transform: translateY(-6px); border-color: rgba(244,241,234,0.3); }
.set-field {
  height: 150px;
  background:
    linear-gradient(115deg, var(--s-a) 0%, var(--s-b) 48%, var(--s-c) 100%);
  position: relative;
}
.set-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(11,10,16,0) 55%, rgba(11,10,16,0.35));
}
.set-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.set-body h3 { margin: 8px 0 8px; }
.set-body p { color: var(--paper-dim); font-size: 0.9rem; flex: 1; }
.set-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 10px;
}
.set-price { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 1.15rem; }

/* ============ satchel drawer ============ */
#satchel-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 92vw);
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  z-index: 90;
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 22px;
}
#satchel-drawer.open { transform: translateX(0); }
.satchel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
#satchel-close { font-size: 1.6rem; color: var(--paper-dim); padding: 4px 10px; }
#satchel-close:hover { color: var(--paper); }
#satchel-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.satchel-empty { color: var(--paper-dim); font-size: 0.92rem; }
.satchel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.satchel-dot { width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0; }
.satchel-name { flex: 1; font-weight: 600; font-size: 0.92rem; }
.satchel-price { font-family: 'Space Mono', monospace; font-size: 0.85rem; }
.satchel-x { color: var(--paper-dim); font-size: 1.2rem; padding: 2px 8px; }
.satchel-x:hover { color: var(--paper); }
.satchel-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
#satchel-total { font-weight: 700; }

/* ============ wash transition ============ */
#wash {
  position: fixed;
  inset: 0;
  z-index: 100;
  transform: translateX(-101%);
  pointer-events: none;
}
#wash.wash-in { animation: washin 0.62s var(--ease-out) forwards; }
#wash.wash-out { animation: washout 0.65s var(--ease-out) forwards; }
@keyframes washin {
  from { transform: translateX(-101%); }
  to { transform: translateX(0); }
}
@keyframes washout {
  from { transform: translateX(0); }
  to { transform: translateX(101%); }
}

/* ============ hue chip ============ */
#hue-chip {
  position: fixed;
  top: 0; left: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(11, 10, 16, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 7px 14px;
  font-size: 0.72rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  white-space: nowrap;
}
#hue-chip.show { opacity: 1; }
.hue-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(244,241,234,0.3);
}
.hue-hsl { color: var(--paper-dim); }

/* ============ grain ============ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ toast ============ */
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  z-index: 95;
  max-width: 88vw;
  text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ colophon ============ */
#colophon {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
.colophon-inner {
  padding: 46px clamp(20px, 6vw, 96px) 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.colophon-note { color: var(--paper-dim); font-size: 0.88rem; max-width: 46ch; margin-top: 8px; }

/* ============ responsive ============ */
@media (max-width: 900px) {
  .pigment-grid { grid-template-columns: 1fr; }
  .pigment-editorial { position: static; }
  .editorial-frame { aspect-ratio: 4 / 3; }
  .picker-group { flex-direction: column; gap: 8px; }
  .picker-label { flex: none; padding-top: 0; }
}

@media (max-width: 720px) {
  :root { --topbar-h: 58px; }
  .brand-sub { display: none; }

  #nav-toggle { display: flex; }
  #mainnav {
    position: fixed;
    top: var(--topbar-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 10, 16, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s var(--ease-out);
  }
  #topbar.nav-open #mainnav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  #mainnav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  #mainnav a:last-child { border-bottom: none; }

  #satchel-btn { padding: 8px 12px; font-size: 0.75rem; }

  .field-hud {
    left: clamp(20px, 6vw, 96px);
    right: auto;
    bottom: 66px;
  }
  .field-scroll-hint { display: none; }
  .field-ctas .flood-btn { padding: 13px 22px; font-size: 0.86rem; }

  .bench-commit-row { flex-direction: column; align-items: stretch; }
  .bench-commit-row .flood-btn { text-align: center; }
  .pick-swatch { width: 62px; height: 62px; }
  .swatch { min-height: 240px; }

  /* bigger touch targets */
  .palette-dot { width: 34px; height: 34px; }
  .vessel input[type='range'] { height: 12px; }
  .vessel input[type='range']::-webkit-slider-thumb { width: 32px; height: 32px; }
}

@media (max-width: 420px) {
  .field-hud { bottom: 24px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .field-palette-readout { align-items: flex-start; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bench-stage.is-live { animation: none; }
  .field-scroll-hint span { animation: none; }
  #wash.wash-in, #wash.wash-out { animation-duration: 0.01s; }
  * { transition-duration: 0.01s !important; }
}
