:root {
  --paper: #ffffff;
  --paper-2: #f3f0eb;
  --ink: #1a1a1a;
  --ink-2: #6a6a6a;
  --ink-3: #a8a8a8;
  --rule: #ececec;
  --gap: 6px;
  --sans: "Söhne", "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 380ms ease, color 380ms ease;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--ink); color: var(--paper); }

/* ─── shell ───────────────────────────────────────────────────── */
.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100%;
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
}

/* ─── sidebar ─────────────────────────────────────────────────── */
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 56px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
@media (max-width: 820px) {
  .side {
    position: sticky;
    top: 0;
    height: auto;
    padding: 0;
    gap: 0;
    background: var(--paper);
    z-index: 30;
    border-bottom: 1px solid var(--rule);
    transition: background 380ms ease;
  }
}

/* mobile sidebar header — hidden on desktop, shown on mobile */
.side-mobile-bar { display: none; }
@media (max-width: 820px) {
  .side-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    gap: 16px;
  }
  .side-mobile-bar .mobile-brand { display: flex; align-items: center; gap: 11px; }
  .side-mobile-bar .mobile-creature {
    height: 42px;
    width: auto;
    flex-shrink: 0;
    display: block;
  }
  .side-mobile-bar .mobile-names { display: flex; flex-direction: column; line-height: 1.25; }
  .side-mobile-bar .brand .name { font-size: 15px; color: var(--ink); }
  .side-mobile-bar .brand .meta {
    display: block;
    font-size: 11px;
    color: var(--ink-3);
    margin-top: 1px;
  }
  /* keep the bar edge-to-edge when the drawer opens (parent gains side padding) */
  .side.is-open .side-mobile-bar { margin-left: -20px; margin-right: -20px; }
  .menu-toggle {
    background: none; border: 0; padding: 8px; margin: -8px;
    color: var(--ink); cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .menu-toggle svg { display: block; }

  /* On mobile, hide the desktop sidebar contents by default; show when expanded. */
  .side > .mark-wrap,
  .side > .creature-logo-btn,
  .side > .brand,
  .side > .since,
  .side > .side-nav,
  .side > .side-foot {
    display: none;
  }
  .side.is-open {
    gap: 24px;
    padding: 0 20px 24px;
  }
  .side.is-open > .mark-row { display: flex; padding-top: 4px; }
  .side.is-open > .mark-wrap     { display: flex; padding-top: 4px; }
  .side.is-open > .creature-logo-btn { display: block; }
  .side.is-open > .brand     { display: block; }
  .side.is-open > .since     { display: flex; }
  .side.is-open > .side-nav  { display: flex; flex-direction: column; }
  .side.is-open > .side-foot { display: flex; }
}

/* mark — clickable chronograph */
.mark-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.mark.mark-svg {
  width: 64px; height: 64px;
  padding: 0;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  display: block;
  transition: transform 220ms cubic-bezier(.2,.7,.2,1);
}
.mark.mark-svg svg { display: block; }
.mark.mark-svg:hover { transform: scale(1.02); }
.mark.mark-svg:active { transform: scale(0.97); }
.mark.mark-svg.is-chrono { color: var(--ink); }

/* Creature logo — sits below the dial, left-aligned with the sidebar.
   Click takes you home. */
.creature-logo-btn {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
  margin-top: 16px;
  margin-left: -18px;
}
.creature-logo {
  position: relative;
  width: 110px;
  height: 152px;          /* wave-frame aspect (440×609) — rest is matched to it */
  display: block;
  user-select: none;
}
/* Rest + wave are line-art masks filled with the theme ink, so the creature
   always matches the text colour (near-black in light, parchment in twilight,
   soft white in dark). The wave layer cross-fades over the resting mascot. */
.creature-art {
  position: absolute;
  inset: 0;
  background-color: var(--ink);
  -webkit-mask-repeat: no-repeat;        mask-repeat: no-repeat;
  -webkit-mask-size: contain;            mask-size: contain;
  -webkit-mask-position: center bottom;  mask-position: center bottom;
  transition: opacity 180ms ease, background-color 380ms ease;
}
.creature-art--wave { opacity: 0; }
.creature-logo.is-waving .creature-art--wave { opacity: 1; }
.creature-logo.is-waving .creature-art--rest { opacity: 0; }

.mark-readout {
  /* The dial is 64px wide and anchored left; the readout below is wider so
     idioms can breathe. Center it on the dial's centre (32px) by shifting
     left by half the difference (100-64)/2 = 18px. */
  width: 100px;
  margin-left: -18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  min-height: 14px;
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease;
  text-align: center;
  line-height: 1.3;
}
.mark-readout .clock-idiom {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 12px;
  color: var(--ink-2);
  text-transform: none;
}
.mark-readout .chrono-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mark-readout .chrono-time { color: var(--ink); }
.mark-readout .chrono-time.stopped { color: var(--ink-2); }
.mark-readout .chrono-split { color: var(--ink-3); }
.mark-readout .clock-time { color: var(--ink-3); }

/* showroom (idle 90s) */
.showroom-hint {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  background: var(--paper);
  padding: 6px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}
body.showroom .showroom-hint { opacity: 1; }

body.showroom .cell .img {
  animation: showroom-roll 9s ease-in-out infinite;
  animation-delay: calc(var(--idx, 0) * -180ms);
}
body.showroom .cell .img-alt {
  animation: showroom-roll-alt 9s ease-in-out infinite;
  animation-delay: calc(var(--idx, 0) * -180ms);
}
@keyframes showroom-roll {
  0%, 70%, 100% { opacity: 1; }
  20%, 50%      { opacity: 0; }
}
@keyframes showroom-roll-alt {
  0%, 70%, 100% { opacity: 0; }
  20%, 50%      { opacity: 1; }
}

.brand {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.35;
}
.brand .name { display: block; }
.brand .meta { display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; }

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-nav .group { margin-bottom: 14px; }
.side-nav .group:last-child { margin-bottom: 0; }
.side-link {
  display: block;
  padding: 1px 0;
  color: var(--ink-2);
  font-size: 14px;
  width: fit-content;
  transition: color 220ms ease;
  position: relative;
}
.side-link:hover { color: var(--ink); }
.side-link.is-active { color: var(--ink); }
.side-link.is-active::before {
  content: "";
  position: absolute;
  left: -14px; top: 50%;
  width: 4px; height: 1px;
  background: var(--ink);
}

.side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.side-foot a { color: var(--ink-3); font-size: 13px; }
.side-foot a:hover { color: var(--ink-2); }

/* mode switch — three small icons in the sidebar foot */
.mode-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 8px;
}
.mode-switch button {
  font: inherit;
  background: none;
  border: 0;
  padding: 6px;
  margin: 0;
  cursor: pointer;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 240ms ease, background 240ms ease, transform 240ms ease;
}
.mode-switch button:hover { color: var(--ink-2); }
.mode-switch button.is-active {
  color: var(--ink);
}
.mode-switch button svg { display: block; }

.brand-link { cursor: pointer; transition: opacity 200ms ease; }
.brand-link:hover { opacity: 0.7; }

/* world clocks */
.clocks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.clock-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.clock-row .clock-dial {
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
}
.clock-row .clock-city { color: var(--ink-3); }
.clock-row .clock-time { color: var(--ink-2); text-align: right; }

/* "since last drop" block */
.since {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: -16px;
}
.since-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: lowercase;
}
.since-value {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* small "current drop" dot in nav */
.side-link .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: 2px;
}

/* drop header */
.stack { display: flex; flex-direction: column; gap: 64px; }
.drop:first-child { padding-top: 0; }
.drop-head { margin-bottom: 20px; }
.drop-head-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.drop-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.drop-meta .drop-num { color: var(--ink); }
.drop-meta .drop-sep { color: var(--ink-3); }
.drop-meta .drop-since {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.drop-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.drop-title {
  margin: 12px 0 6px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.drop-note {
  margin: 0 0 18px;
  max-width: 58ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.detail-drop {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

/* inquire link + counter */
.inquire-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.inquire-link {
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 220ms ease, color 220ms ease;
}
.inquire-link:hover { gap: 10px; color: var(--ink-2); }
.inquiry-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}
.inquiry-count-n {
  color: var(--ink);
  transition: color 600ms ease;
}
.inquiry-count-n.bump {
  animation: bump 600ms ease;
}
@keyframes bump {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

/* not watches */
.notwatches-intro { margin-bottom: 28px; }
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cat {
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-3);
  padding: 6px 0;
  cursor: pointer;
  transition: color 200ms ease;
  background: none;
  border: 0;
}
.cat:hover { color: var(--ink); }
.cat.is-active { color: var(--ink); }
.cat-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* ─── main column ─────────────────────────────────────────────── */
.main {
  padding: 56px 56px 80px 0;
  min-width: 0;
}
@media (max-width: 820px) {
  .main { padding: 24px 20px 80px; }
}

/* ─── grid ────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1200px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px)  { .grid { grid-template-columns: 1fr; } }

.cell {
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}
.cell.in { opacity: 1; transform: none; }
.cell-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
}
.cell .img, .cell .img-alt {
  position: absolute;
  inset: 0;
  transition: opacity 600ms ease;
}
.cell .img-alt { opacity: 0; }
.cell:hover .img { opacity: 0; }
.cell:hover .img-alt { opacity: 1; }

/* Neutral panel for a record with no photograph yet (images come from Airtable). */
.img-empty {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(45deg, var(--paper-2), var(--paper-2) 10px, var(--paper) 10px, var(--paper) 20px);
  opacity: 0.6;
}
.cell .tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--ink);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  padding: 3px 6px;
}

/* status badge — available (quiet dot), on hold (amber + pulse), sold (dark) */
.cell .status {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 2px;
  pointer-events: none;
  user-select: none;
}
.cell .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
/* available — just the dot, no text, no pill background */
.cell .status-available {
  padding: 4px;
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.cell .status-available .status-dot {
  background: #5a9a52;
  box-shadow: 0 0 0 1.5px color-mix(in oklab, #5a9a52 40%, transparent);
}
/* on hold — amber pill, the dot breathes */
.cell .status-hold {
  background: #d6a04a;
  color: #1c1410;
}
.cell .status-hold .status-dot {
  background: #1c1410;
  animation: status-pulse 1.8s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.35; }
  50%      { transform: scale(1.3); opacity: 1; }
}
/* sold — dark pill */
.cell .status-sold {
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.16em;
}
.cell.is-sold .pri { text-decoration: line-through; opacity: 0.6; }
.cell .tag.sold { background: var(--ink); color: #fff; }

.cell-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 280ms ease, transform 280ms ease;
  background: linear-gradient(
    to top,
    color-mix(in oklab, var(--paper) 92%, transparent),
    color-mix(in oklab, var(--paper) 0%, transparent)
  );
  pointer-events: none;
}
.cell:hover .cell-info { opacity: 1; transform: none; }
body.no-caption .cell-info { display: none; }
body.no-alt .cell:hover .img { opacity: 1; }
body.no-alt .cell:hover .img-alt { opacity: 0; }

/* On touch devices, hover doesn't fire — skip the alt-angle swap. */
@media (hover: none) {
  .cell .img-alt { display: none; }
}

/* Mobile: captions sit below the image instead of overlaid, with more
   room between rows so the grid reads as a clean product list. */
@media (max-width: 820px) {
  .grid { column-gap: 8px; row-gap: 22px; }
  .cell-info {
    position: static;
    opacity: 1;
    transform: none;
    background: none;
    padding: 9px 2px 2px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    pointer-events: auto;
  }
  .cell-info .ttl { font-size: 13px; line-height: 1.3; }
  .cell-info .pri { font-size: 11px; white-space: normal; }
}

/* Mood tile — same shape as a cell, no interactions */
.mood-cell {
  cursor: default;
  background: transparent;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.mood-cell .mood-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mood-cell:hover .img { opacity: 1; transform: none; }
body.showroom .mood-cell svg,
body.showroom .mood-cell .mood-img { animation: none; }
.cell-info .ttl {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.25;
}
.cell-info .ttl em { font-style: normal; color: var(--ink-2); }
.cell-info .pri {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ─── detail ──────────────────────────────────────────────────── */
.detail {
  animation: fadeUp 420ms cubic-bezier(.2,.7,.2,1);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ink-2);
}
.detail-back:hover { color: var(--ink); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 1100px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
}
.detail-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.detail-main > svg, .detail-main > .magnifier-bg { animation: fade 320ms ease; }
.detail-main.loupe-on { cursor: none; }

.loupe-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 220ms ease, background 220ms ease;
}
.loupe-toggle:hover { opacity: 1; background: color-mix(in oklab, var(--paper) 92%, transparent); }
.loupe-toggle.is-on { background: var(--ink); color: var(--paper); opacity: 1; }

.magnifier {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.18),
    0 8px 24px rgba(0,0,0,0.18),
    inset 0 0 0 2px rgba(255,255,255,0.65);
}
.magnifier-content {
  position: absolute;
  will-change: transform;
}
.magnifier-content > svg { width: 100%; height: 100%; display: block; }
.magnifier-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

/* clock wind-up animation */
@keyframes mini-wind {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(1080deg); }
}
.mini-wind-hand {
  transform-origin: 0 0;
  animation: mini-wind 3s cubic-bezier(.2,.7,.2,1) forwards;
}

/* loupe illustration — sits below the inquire row */
.loupe-illus {
  margin-top: 32px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--ink-2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: color 240ms ease, transform 320ms cubic-bezier(.2,.7,.2,1);
}
.loupe-illus:hover { color: var(--ink); }
.loupe-illus.is-on { color: var(--ink); }

.loupe-illus-img {
  width: 120px;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  /* Drop the white paper background so it sits on any palette */
  mix-blend-mode: multiply;
  /* Default tilt */
  transform: rotate(-6deg);
  transform-origin: 60% 80%;
  transition: transform 520ms cubic-bezier(.2,.7,.2,1);
}
.loupe-illus:hover .loupe-illus-img {
  transform: rotate(-14deg) translateY(-2px);
}
.loupe-illus.is-on .loupe-illus-img {
  transform: rotate(-22deg) translateY(-3px);
}
/* On dark surfaces, invert + screen so the lines turn paper-coloured */
body.bg-dark .loupe-illus-img,
body.bg-twilight .loupe-illus-img {
  mix-blend-mode: screen;
  filter: invert(1);
}

/* Make watch placeholder tiles feel like they belong on dark/twilight pages */
body.bg-dark .cell .img > svg,
body.bg-dark .cell .img-alt > svg,
body.bg-dark .detail-main > svg,
body.bg-dark .detail-thumb > svg,
body.bg-dark .magnifier-content > svg {
  filter: brightness(0.5) saturate(0.8);
}
body.bg-twilight .cell .img > svg,
body.bg-twilight .cell .img-alt > svg,
body.bg-twilight .detail-main > svg,
body.bg-twilight .detail-thumb > svg,
body.bg-twilight .magnifier-content > svg {
  filter: brightness(0.62) saturate(0.85) hue-rotate(-10deg);
}

.loupe-illus-cap {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  transition: color 240ms ease;
}
.loupe-illus:hover .loupe-illus-cap { color: var(--ink-2); }
.loupe-illus.is-on .loupe-illus-cap { color: var(--ink); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: var(--gap);
}
.detail-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-2);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 220ms ease;
}
.detail-thumb:hover { opacity: 1; }
.detail-thumb.is-active { opacity: 1; }

.detail-info { padding-top: 6px; }
.detail-info h1 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}
.detail-info .sub { color: var(--ink-2); font-size: 14px; margin-bottom: 22px; }

.detail-info dl {
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 5px;
  column-gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.detail-info dt { color: var(--ink-3); }
.detail-info dd { margin: 0; color: var(--ink); }

.detail-info p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 46ch;
}

.detail-price {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 18px;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.detail-actions a {
  color: var(--ink);
  font-size: 14px;
  display: inline-block;
  width: fit-content;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: padding 200ms ease;
}
.detail-actions a:hover { padding-bottom: 4px; }

/* ─── reveal-on-scroll helper ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
