/* ═══════════════════════════════════════════════════════════════════
   POURFECT · The Night Lab, on the web
   Tokens ported 1:1 from the app's src/shell/theme.ts.
   Doctrine: the interface is matte (slate, paper, brass);
   light is spent only on the liquid.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Materials */
  --soapstone: #0A100E;
  --bench: #121B17;
  --bench-raised: #182420;
  --ridge: #23342B;
  --chalk: #D9E2DB;
  --chalk-dim: #8CA094;
  --benchlight: #E8A33D;
  --benchlight-edge: #B87A1E;
  --brass: #8C6F3F;
  --paper: #EFE7D2;
  --paper-shade: #C9BFA4;
  --ink: #26221A;
  --ink-soft: #6B6250;
  --stamp: #8F5410;

  /* Liquids (LIQUID_COLORS — index is save identity in the app) */
  --lq-red: #E03A2F;
  --lq-mint: #4FD69C;
  --lq-indigo: #3730D8;
  --lq-orange: #F08A2C;
  --lq-gold: #F2D64B;
  --lq-purple: #7A3FBF;
  --lq-sky: #4FA8E8;
  --lq-pink: #E8557C;
  --lq-olive: #76950F;
  --lq-teal: #2E9C93;
  --lq-brown: #9A6324;
  --lq-maroon: #7E1F1F;

  --font-display: 'Sono', 'SF Mono', monospace;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  --max-w: 1060px;
  --measure: 60ch;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--soapstone);
  color: var(--chalk);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--benchlight); color: var(--ink); }

a { color: var(--benchlight); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--benchlight);
  outline-offset: 3px;
  border-radius: 2px;
}

img { max-width: 100%; height: auto; }

/* ── Type roles ─────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--chalk);
  line-height: 1.15;
  font-weight: 800;
}

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 10px;
}

.note {
  font-style: italic;
  color: var(--chalk-dim);
}

/* ── Nav ────────────────────────────────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(10, 16, 14, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ridge);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.nav-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--chalk);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--chalk-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--chalk); }
.nav-links a.nav-cta {
  color: var(--benchlight);
  border: 1px solid var(--brass);
  border-radius: 8px;
  padding: 7px 14px;
  transition: border-color 0.2s, color 0.2s;
}
.nav-links a.nav-cta:hover { border-color: var(--benchlight); color: var(--benchlight); }

@media (max-width: 640px) {
  nav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.05em; }
  .nav-links a.nav-cta { padding: 6px 10px; }
  .nav-links a.nav-hide-sm { display: none; }
}

/* ── Section scaffolding ────────────────────────────────────────── */

.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px;
}
.section + .section { border-top: 1px solid var(--ridge); }

.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 14px; }
.section-header p { color: var(--chalk-dim); max-width: var(--measure); }

@media (max-width: 640px) {
  .section { padding: 64px 20px; }
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(40px, 6.5vw, 64px);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

/* The one glowing word on the page — light spent only on the liquid. */
.liquid-word {
  color: var(--lq-mint);
  text-shadow:
    0 0 18px rgba(79, 214, 156, 0.55),
    0 0 52px rgba(79, 214, 156, 0.28);
}

.hero-copy > p {
  color: var(--chalk-dim);
  max-width: 46ch;
  margin-bottom: 18px;
}

.hero-meta {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 34px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

/* Store badge — dressed for the lab; a <span> until the listing exists. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bench);
  border: 1px solid var(--brass);
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--chalk);
}
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.store-badge-text small {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}
.store-badge-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
}
a.store-badge { transition: border-color 0.2s, transform 0.2s; }
a.store-badge:hover { border-color: var(--benchlight); transform: translateY(-1px); }

.store-note {
  font-size: 12.5px;
  color: var(--chalk-dim);
  font-style: italic;
}

/* Faint chalk motifs behind the hero — same 0.07 alpha law as the app wall. */
.chalk-motif {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
  color: var(--chalk);
}

/* ── The lightbox (hero tube scene) ─────────────────────────────── */

.lightbox {
  position: relative;
  width: 440px;
  height: 400px;
  margin: 0 auto;
}

@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 48px; }
  .hero-art { max-width: 100%; }
  .lightbox { transform: scale(0.86); transform-origin: top center; height: 360px; }
}
@media (max-width: 480px) {
  .lightbox { transform: scale(0.72); height: 310px; }
}

/* bench line + pool of benchlight the tubes stand in */
.lightbox::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 38px;
  height: 1px;
  background: var(--ridge);
}
.bench-pool {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 400px;
  height: 60px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 163, 61, 0.10), transparent 70%);
}

/* glow blooms live BEHIND the glass — light escaping the lightbox */
.bloom {
  position: absolute;
  width: 150px;
  height: 220px;
  border-radius: 50%;
  filter: blur(34px);
  animation: bloom-breathe 7s ease-in-out infinite;
}
.bloom-c { left: 8px;  bottom: 30px; background: rgba(242, 214, 75, 0.30); }
.bloom-b { left: 158px; bottom: 30px; background: rgba(79, 214, 156, 0.28); animation-delay: -2.5s; }
.bloom-a { right: 4px; bottom: 30px; background: rgba(79, 168, 232, 0.18); animation-delay: -5s; }

@keyframes bloom-breathe {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

.tube {
  position: absolute;
  bottom: 40px;
  width: 66px;
  height: 250px;
  border: 3px solid rgba(217, 226, 219, 0.30);
  border-radius: 10px 10px 33px 33px;
  background: rgba(255, 255, 255, 0.02);
}
/* open mouth — a faint lip highlight, no cap (tubes pour) */
.tube::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  height: 3px;
  background: rgba(217, 226, 219, 0.45);
  border-radius: 2px;
}

.tube-c { left: 42px; }
.tube-b { left: 190px; }
.tube-a { left: 338px; transform-origin: 50% 10%; }

.tube-inner {
  position: absolute;
  inset: 4px;
  border-radius: 6px 6px 27px 27px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lq {
  width: 100%;
  height: 46px;
  flex: none;
}
/* meniscus seam between layers */
.lq + .lq { box-shadow: 0 -1px 0 rgba(10, 16, 14, 0.35); }

.lq-gold   { background: var(--lq-gold);   }
.lq-mint   { background: var(--lq-mint);   }
.lq-indigo { background: var(--lq-indigo); }
.lq-sky    { background: var(--lq-sky);    }

/* top surface glow on the uppermost layer */
.lq-top { box-shadow: inset 0 3px 8px rgba(255, 255, 255, 0.38); }

/* ── pour choreography (9s loop) ─────────────────────────────────
   Tube A lifts, tips over tube B, one mint unit transfers, A returns.
   The stream and the two animated layers are keyframed to the same clock. */

.tube-a { animation: pour-tilt 9s ease-in-out infinite; }

@keyframes pour-tilt {
  0%, 16%  { transform: translate(0, 0) rotate(0deg); }
  24%      { transform: translate(-111px, -96px) rotate(-64deg); }
  56%      { transform: translate(-111px, -96px) rotate(-64deg); }
  64%, 100% { transform: translate(0, 0) rotate(0deg); }
}

.lq-drain { animation: drain 9s linear infinite; }
@keyframes drain {
  0%, 26%   { height: 46px; }
  54%, 100% { height: 0; }
}

.lq-fill { height: 0; animation: fill 9s linear infinite; }
@keyframes fill {
  0%, 28%   { height: 0; }
  56%, 100% { height: 46px; }
}

.stream {
  position: absolute;
  left: 219px;                 /* over tube B's mouth */
  bottom: 290px;
  width: 8px;
  height: 54px;
  border-radius: 4px;
  background: var(--lq-mint);
  transform-origin: top center;
  transform: scaleY(0);
  animation: stream-run 9s linear infinite;
  box-shadow:
    0 0 12px rgba(79, 214, 156, 0.7),
    0 0 34px rgba(79, 214, 156, 0.35);
}
@keyframes stream-run {
  0%, 25%   { transform: scaleY(0); opacity: 1; }
  29%       { transform: scaleY(1); opacity: 1; }
  53%       { transform: scaleY(1); opacity: 1; }
  57%, 100% { transform: scaleY(0); opacity: 0; }
}

/* the solved tube's quiet pride */
.tube-c .tube-inner { animation: solved-glow 7s ease-in-out infinite; }
@keyframes solved-glow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.08); }
}

/* paper tag hung on the solved tube */
.tube-tag {
  position: absolute;
  left: -14px;
  bottom: 118px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 5px 9px 5px 16px;
  border-radius: 3px;
  transform: rotate(-8deg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}
.tube-tag::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--soapstone);
  box-shadow: inset 0 0 0 1.5px var(--brass);
}

@media (prefers-reduced-motion: reduce) {
  .tube-a, .lq-drain, .lq-fill, .stream, .bloom, .tube-c .tube-inner {
    animation: none;
  }
  .stream { display: none; }
  .lq-fill { height: 46px; }
  .lq-drain { height: 0; }
}

/* ── Field notes (features) ─────────────────────────────────────── */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .notes-grid { grid-template-columns: 1fr; } }

.note-card {
  background: var(--bench);
  border: 1px solid var(--ridge);
  border-radius: 12px;
  padding: 26px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.note-card:hover { border-color: var(--brass); transform: translateY(-2px); }

.note-card svg {
  display: block;
  margin-bottom: 16px;
  color: var(--chalk-dim);
}
.note-card h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.note-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--chalk-dim);
}
.note-card p strong { color: var(--chalk); font-weight: 600; }

/* ── Specimen shelf ─────────────────────────────────────────────── */

.shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 34px;
}
@media (max-width: 760px) { .shelf { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { .shelf { grid-template-columns: repeat(3, 1fr); } }

.vial {
  appearance: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 6px 12px;
  border-radius: 10px;
  border-bottom: 1px solid var(--ridge);   /* the shelf edge */
  transition: background 0.25s;
}
.vial:hover { background: var(--bench); }
.vial[aria-pressed="true"] { background: var(--bench); border-bottom-color: var(--benchlight); }

.vial-glass {
  position: relative;
  width: 26px;
  height: 64px;
  border: 2px solid rgba(217, 226, 219, 0.28);
  border-radius: 5px 5px 13px 13px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: visible;
}
.vial-lq {
  height: 58%;
  margin: 2px;
  border-radius: 2px 2px 9px 9px;
  background: var(--vial-color);
  box-shadow:
    0 0 10px color-mix(in srgb, var(--vial-color) 55%, transparent),
    0 0 26px color-mix(in srgb, var(--vial-color) 30%, transparent);
}
.vial[aria-pressed="true"] .vial-lq {
  box-shadow:
    0 0 14px color-mix(in srgb, var(--vial-color) 75%, transparent),
    0 0 38px color-mix(in srgb, var(--vial-color) 45%, transparent);
}

.vial-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}
.vial[aria-pressed="true"] .vial-name { color: var(--chalk); }

/* the reagent's field-note card — paper, the lab's second material */
.reagent-card {
  position: relative;
  max-width: 560px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  border-bottom: 3px solid var(--paper-shade);
  padding: 26px 30px 24px 56px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}
/* punched hole + brass ring */
.reagent-card::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--soapstone);
  box-shadow: inset 0 0 0 2px var(--brass);
}
.reagent-card .swatch {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  margin-right: 9px;
  vertical-align: -1px;
  background: var(--vial-color, var(--lq-red));
  box-shadow: 0 0 8px color-mix(in srgb, var(--vial-color, var(--lq-red)) 60%, transparent);
}
.reagent-card h3 {
  color: var(--ink);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.reagent-card .reagent-no {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.reagent-card .story {
  font-size: 14.5px;
  line-height: 1.65;
}
.reagent-card .footnote {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--paper-shade);
  font-size: 12px;
  font-style: italic;
  color: var(--ink-soft);
}

/* ── The Professor ──────────────────────────────────────────────── */

.professor-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 760px) {
  .professor-section { grid-template-columns: 1fr; gap: 32px; }
}

.professor-stage {
  position: relative;
  width: 274px;
  margin: 0 auto;
}
/* his pool of benchlight */
.professor-stage::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 300px;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 163, 61, 0.13), transparent 70%);
}

.professor-sprite {
  width: 274px;
  height: 488px;
  background: url('/pourfect/images/professor-strip.png') 0 0 / 2192px 488px no-repeat;
  image-rendering: pixelated;
  animation: prof-idle 1.2s steps(8) infinite;
}
@keyframes prof-idle {
  to { background-position-x: -2192px; }
}
@media (prefers-reduced-motion: reduce) {
  .professor-sprite { animation: none; }
}
@media (max-width: 480px) {
  .professor-stage { width: 206px; }
  .professor-sprite { width: 206px; height: 366px; background-size: 1644px 366px; }
  @keyframes prof-idle { to { background-position-x: -1644px; } }
}

.professor-copy h2 { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 16px; }
.professor-copy p { color: var(--chalk-dim); max-width: 52ch; margin-bottom: 14px; }

.professor-quote {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 2px solid var(--brass);
  font-style: italic;
  color: var(--chalk);
  max-width: 46ch;
}
.professor-quote .attribution {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chalk-dim);
}

/* ── Report card (CTA) — paper, stamped ─────────────────────────── */

.report-card {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  border-bottom: 4px solid var(--paper-shade);
  padding: 44px 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.4deg);
  text-align: left;
}
.report-card .report-head {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--paper-shade);
  padding-bottom: 12px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.report-card h2 {
  color: var(--ink);
  font-size: clamp(22px, 3.4vw, 30px);
  margin-bottom: 14px;
}
.report-card p {
  color: var(--ink);
  font-size: 14.5px;
  max-width: 52ch;
  margin-bottom: 12px;
}
.report-card .report-sig {
  margin-top: 22px;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 13px;
}

.stamp {
  position: absolute;
  top: 132px;
  right: 44px;
  padding: 7px 13px;
  border: 3px solid var(--stamp);
  border-radius: 4px;
  color: var(--stamp);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(7deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.report-card .hero-buttons { margin-top: 26px; }
.report-card .store-badge {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.report-card .store-badge-text small { color: var(--paper-shade); }
.report-card .store-note { color: var(--ink-soft); }

@media (max-width: 560px) {
  .report-card { padding: 34px 26px 30px; }
  .stamp { position: static; display: inline-block; margin-bottom: 18px; transform: rotate(-3deg); }
}

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid var(--ridge);
  padding: 56px 24px 40px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { max-width: 300px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
}
.footer-brand p { font-size: 13px; color: var(--chalk-dim); }

.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px;
  color: var(--chalk-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--chalk); }

.footer-divider { height: 1px; background: var(--ridge); margin-bottom: 24px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  color: var(--chalk-dim);
}

.footer-mimic { display: flex; align-items: center; gap: 8px; }
.mimic-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--chalk);
  font-weight: 600;
  transition: color 0.2s;
}
.mimic-logo:hover { color: var(--benchlight); }
.mimic-chest {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mimic-chest-body {
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, var(--benchlight), var(--benchlight-edge));
  border-radius: 3px 3px 2px 2px;
  position: relative;
}
.mimic-chest-lid {
  position: absolute;
  top: -5px;
  left: 0;
  width: 18px;
  height: 7px;
  background: linear-gradient(180deg, #F2C063, var(--benchlight));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.mimic-logo:hover .mimic-chest-lid { transform: rotate(-15deg); }
.mimic-chest-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--benchlight-edge);
  border-radius: 50%;
}

/* ── Reveal on scroll ───────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Until the script tags <html> as js-capable, everything stays visible. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ── Legal & support pages ──────────────────────────────────────── */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page h1 { font-size: clamp(30px, 5vw, 40px); margin-bottom: 8px; }
.page .updated {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chalk-dim);
  margin-bottom: 40px;
}
.page h2 {
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 44px 0 12px;
}
.page p, .page li {
  color: var(--chalk-dim);
  font-size: 14.5px;
  max-width: var(--measure);
}
.page p + p { margin-top: 12px; }
.page p strong, .page li strong { color: var(--chalk); font-weight: 600; }
.page ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 10px; }

.page-divider { height: 1px; background: var(--ridge); margin: 48px 0; }

/* the Short Version / contact card — paper on the legal bench */
.paper-card {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  border-bottom: 3px solid var(--paper-shade);
  padding: 28px 32px 26px;
  margin: 32px 0 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  transform: rotate(-0.4deg);
}
.paper-card h2 {
  color: var(--ink);
  margin: 0 0 10px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.paper-card p { color: var(--ink); max-width: 54ch; }
.paper-card p + p { margin-top: 10px; }
.paper-card a { color: var(--stamp); }
.paper-card .stamp { top: 20px; right: 22px; font-size: 11px; }
@media (max-width: 560px) {
  .paper-card { padding: 24px 20px; }
  .paper-card .stamp { position: static; display: inline-block; margin-bottom: 14px; transform: rotate(-3deg); }
}

/* FAQ bench panels */
.faq-item {
  background: var(--bench);
  border: 1px solid var(--ridge);
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 14px;
}
.faq-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-item p { font-size: 13.5px; color: var(--chalk-dim); max-width: none; }
.faq-item p + p { margin-top: 8px; }

.contact-btn {
  display: inline-block;
  margin-top: 14px;
  background: var(--benchlight);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--benchlight-edge);
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--benchlight-edge); }
.contact-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--benchlight-edge); }
