/* =========================================================
   stickypicoon studio site
   Warm paper studio (light) + Evening studio (dark)
   ========================================================= */

/* ---------- Theme tokens ---------- */
:root {
  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii & motion */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Light theme palette --- Warm paper studio, brown & forest green */
  --bg: #f3ecdc;
  --bg-deep: #ebe1c9;
  --bg-elevated: #fbf6ea;
  --surface: #ffffff;
  --surface-edge: rgba(58, 38, 18, 0.06);
  --ink: #2b1f12;
  --ink-soft: #6b574a;
  --ink-faint: #a8957f;
  --rule: rgba(58, 38, 18, 0.10);

  --sticky: #6e4423;       /* warm saddle brown (logo) */
  --sticky-deep: #4a2d15;
  --picoon: #4f8a3e;       /* forest green (logo) */
  --picoon-deep: #3a6a2d;
  --accent: #d99a48;       /* warm amber accent (sticky-note vibe) */
  --warn: #c45a3e;

  /* Shadows (warm, layered) */
  --shadow-1: 0 1px 1px rgba(58,38,18,.06), 0 1px 2px rgba(58,38,18,.05);
  --shadow-2:
    0 1px 2px rgba(58,38,18,.06),
    0 4px 10px -2px rgba(58,38,18,.10),
    0 18px 36px -12px rgba(58,38,18,.14);
  --shadow-3:
    0 2px 4px rgba(58,38,18,.08),
    0 10px 24px -6px rgba(58,38,18,.14),
    0 40px 70px -24px rgba(58,38,18,.20);

  /* Tactile gradients */
  --skeu-light: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0) 60%);
  --skeu-edge: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -1px 0 rgba(58,38,18,.06);

  --grain-opacity: .35;
  --grain-blend: multiply;
}

[data-theme="dark"] {
  /* Dark theme palette --- Evening studio, warm tan & spring green */
  --bg: #16130e;
  --bg-deep: #100d09;
  --bg-elevated: #1f1b14;
  --surface: #26211a;
  --surface-edge: rgba(255, 220, 170, 0.07);
  --ink: #f0e7d3;
  --ink-soft: #b8ab93;
  --ink-faint: #7d705b;
  --rule: rgba(255, 220, 170, 0.10);

  --sticky: #cf9a63;       /* warm tan / caramel */
  --sticky-deep: #9a6d3f;
  --picoon: #88cf74;       /* bright spring green */
  --picoon-deep: #5da14b;
  --accent: #e7c485;
  --warn: #e07a5f;

  --shadow-1: 0 1px 1px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.5);
  --shadow-2:
    0 1px 2px rgba(0,0,0,.5),
    0 4px 14px -2px rgba(0,0,0,.55),
    0 20px 40px -14px rgba(0,0,0,.7);
  --shadow-3:
    0 2px 4px rgba(0,0,0,.55),
    0 12px 28px -6px rgba(0,0,0,.7),
    0 50px 80px -30px rgba(0,0,0,.85);

  --skeu-light: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%);
  --skeu-edge: inset 0 1px 0 rgba(255,255,255,.07), inset 0 -1px 0 rgba(0,0,0,.4);

  --grain-opacity: .25;
  --grain-blend: screen;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 600px at 85% -10%, color-mix(in oklab, var(--sticky) 12%, transparent) 0%, transparent 60%),
    radial-gradient(900px 700px at -10% 30%, color-mix(in oklab, var(--picoon) 10%, transparent) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s var(--ease), color .25s var(--ease);
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Paper grain overlay ---------- */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Layout ---------- */
main { display: block; }
section { padding: 96px max(24px, 6vw); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 14px 0 14px;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 56ch;
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sticky);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--sticky) 25%, transparent);
}
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px max(20px, 4vw);
  min-height: 140px;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--rule);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform .35s var(--ease-spring);
  /* let the logo sit in negative space rather than a chip */
  margin: -8px 0;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) rotate(-2deg);
}
.brand-logo {
  display: inline-block;
  width: 132px;
  height: 132px;
  transition: transform .35s var(--ease-spring);
}
.brand-logo-hero {
  width: clamp(240px, 32vw, 380px);
  height: clamp(240px, 32vw, 380px);
}
.brand-logo-stack {
  position: relative;
}
.brand-logo-stack img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  inset: 0;
  transition: opacity .35s var(--ease);
}
.brand-logo-stack .logo-light {
  position: relative; /* takes layout space */
  opacity: 1;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.4))
          drop-shadow(0 2px 3px rgba(58,30,10,.18))
          drop-shadow(0 10px 18px rgba(58,30,10,.10));
}
.brand-logo-stack .logo-dark {
  opacity: 0;
  filter: drop-shadow(0 0 18px rgba(210, 160, 90, .18))
          drop-shadow(0 2px 4px rgba(0,0,0,.5))
          drop-shadow(0 10px 20px rgba(0,0,0,.4));
}
[data-theme="dark"] .brand-logo-stack .logo-light { opacity: 0; }
[data-theme="dark"] .brand-logo-stack .logo-dark { opacity: 1; }

.brand-logo-small { width: 64px; height: 64px; }
/* Keep the typed wordmark styles in case we use them elsewhere (e.g., text-only fallback) */
.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 80;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.brand-text.small { font-size: 18px; }
.word-sticky {
  color: var(--sticky);
  font-style: italic;
}
.word-picoon {
  color: var(--picoon);
}
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav a:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 6%, transparent);
}

/* ---------- Theme toggle (skeuomorphic switch) ---------- */
.theme-toggle {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  border-radius: 999px;
}
.theme-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 32px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg-deep) 70%, black 10%), var(--bg-deep));
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,.18),
    inset 0 -1px 0 rgba(255,255,255,.15),
    0 1px 1px rgba(255,255,255,.5);
  padding: 3px;
  position: relative;
  transition: background .3s var(--ease);
}
[data-theme="dark"] .theme-toggle-track {
  background: linear-gradient(180deg, #0c0a06, #1a160f);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.7),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 1px 1px rgba(255,255,255,.04);
}
.theme-toggle-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, #fff8e6 0%, #f1d597 55%, #d4a25e 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 4px rgba(120,72,18,.25),
    0 1px 2px rgba(0,0,0,.25),
    0 4px 8px -2px rgba(0,0,0,.3);
  transform: translateX(0);
  transition: transform .35s var(--ease-spring), background .3s var(--ease);
  display: grid;
  place-items: center;
}
[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(32px);
  background:
    radial-gradient(circle at 70% 30%, #2c2c34 0%, #1a1a22 60%, #0f0f15 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -2px 4px rgba(0,0,0,.6),
    0 1px 2px rgba(0,0,0,.5),
    0 4px 8px -2px rgba(0,0,0,.5);
}
.theme-toggle-thumb svg {
  width: 14px; height: 14px;
  stroke: #6b3a14;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  position: absolute;
  transition: opacity .2s var(--ease);
}
.theme-toggle-thumb .icon-sun { opacity: 1; }
.theme-toggle-thumb .icon-moon { opacity: 0; fill: #d8c89a; stroke: none; }
[data-theme="dark"] .theme-toggle-thumb .icon-sun { opacity: 0; }
[data-theme="dark"] .theme-toggle-thumb .icon-moon { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  align-items: center;
  gap: 64px;
  padding: clamp(56px, 9vw, 120px) max(24px, 6vw) clamp(48px, 7vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}
.hero-inner { max-width: 640px; }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 14px 0 22px;
  color: var(--ink);
}
.display-script {
  font-style: italic;
  font-weight: 300;
  color: var(--sticky);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  white-space: nowrap;
}
.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons (tactile) */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  position: relative;
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  will-change: transform;
}
.btn-primary {
  color: #fff8e8;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--sticky) 85%, white 15%) 0%, var(--sticky) 50%, var(--sticky-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    inset 0 -2px 4px rgba(100,40,0,.25),
    0 1px 2px rgba(100,40,0,.3),
    0 8px 16px -4px rgba(100,40,0,.35);
  text-shadow: 0 1px 0 rgba(80,30,0,.35);
}
[data-theme="dark"] .btn-primary {
  color: #1a120a;
  text-shadow: 0 1px 0 rgba(255,220,170,.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -2px 4px rgba(60,28,0,.45),
    0 1px 2px rgba(0,0,0,.5),
    0 8px 18px -4px rgba(0,0,0,.55);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(100,40,0,.4),
    inset 0 -1px 0 rgba(255,255,255,.15),
    0 1px 2px rgba(100,40,0,.2); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 1px 1px var(--surface-edge),
    0 4px 10px -2px var(--surface-edge);
  border: 1px solid var(--rule);
}
[data-theme="dark"] .btn-ghost {
  background: var(--bg-elevated);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 1px 1px rgba(0,0,0,.4),
    0 6px 14px -4px rgba(0,0,0,.55);
}
.btn-ghost:hover { transform: translateY(-1px); }
.btn.big { padding: 18px 28px; font-size: 17px; }

/* Hero card (logo stage + sticky note) */
.hero-card {
  position: relative;
  perspective: 1000px;
  min-height: 360px;
}
.hero-logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 360px;
  isolation: isolate;
}
.hero-logo-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 50% 45%, color-mix(in oklab, var(--picoon) 18%, transparent) 0%, transparent 70%),
    radial-gradient(60% 60% at 55% 55%, color-mix(in oklab, var(--accent) 22%, transparent) 0%, transparent 75%);
  filter: blur(8px);
  opacity: .9;
  animation: glow-breathe 7s var(--ease) infinite alternate;
}
[data-theme="dark"] .hero-logo-glow {
  background:
    radial-gradient(50% 50% at 50% 45%, color-mix(in oklab, var(--picoon) 22%, transparent) 0%, transparent 70%),
    radial-gradient(60% 60% at 55% 55%, color-mix(in oklab, var(--sticky) 28%, transparent) 0%, transparent 75%);
  opacity: .8;
}
@keyframes glow-breathe {
  0% { transform: scale(0.96); opacity: .75; }
  100% { transform: scale(1.04); opacity: 1; }
}
.brand-logo-hero {
  transform: rotate(-2deg);
  transition: transform .6s var(--ease-spring);
}
.brand-logo-hero:hover { transform: rotate(0deg) scale(1.03); }

.sticky-note-overlay {
  position: absolute;
  right: -8px;
  bottom: 6%;
  z-index: 2;
  width: min(220px, 60%);
  padding: 24px 22px 30px;
}
.sticky-note-overlay .sticky-script { font-size: 22px; }
.sticky-note {
  position: relative;
  width: min(340px, 100%);
  margin-left: auto;
  padding: 38px 30px 44px;
  background:
    linear-gradient(155deg, color-mix(in oklab, var(--sticky) 28%, #fff7d8 0%) 0%, color-mix(in oklab, var(--sticky) 35%, #ffe7a6 0%) 100%);
  color: #5a3211;
  border-radius: 4px 14px 6px 22px;
  transform: rotate(-3.5deg);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -8px 14px -8px rgba(120,60,10,.18),
    0 1px 1px rgba(120,60,10,.2),
    0 18px 32px -12px rgba(120,60,10,.4),
    0 40px 60px -30px rgba(120,60,10,.5);
  transition: transform .4s var(--ease-spring);
}
[data-theme="dark"] .sticky-note {
  color: #3a1f08;
  background:
    linear-gradient(155deg, #ffd58a 0%, #f0b561 100%);
}
.sticky-note:hover { transform: rotate(-1.5deg) translateY(-4px); }
.sticky-script {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}
.sticky-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #ffe8e0 0%, var(--warn) 55%, #6b1d10 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 2px 3px rgba(0,0,0,.3),
    0 6px 10px -4px rgba(0,0,0,.35);
  transform: translateX(-50%);
}
.sticky-pin::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 60%);
}

/* ---------- Philosophy strip ---------- */
.philosophy { padding-top: 24px; padding-bottom: 64px; }
.philosophy-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}
.philo-card {
  position: relative;
  padding: 28px 26px 26px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2), var(--skeu-edge);
  border: 1px solid var(--rule);
  overflow: hidden;
}
[data-theme="dark"] .philo-card { background: var(--bg-elevated); }
.philo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: var(--skeu-light);
  pointer-events: none;
}
.philo-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .14em;
}
.philo-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 60;
  font-size: 22px;
  letter-spacing: -.01em;
  margin: 10px 0 8px;
  color: var(--ink);
}
.philo-card p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery { background:
  linear-gradient(180deg, transparent, color-mix(in oklab, var(--picoon) 4%, transparent) 30%, transparent);
}

/* Filter rail */
.filter-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 900px;
  margin: -24px auto 36px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 2px 4px var(--surface-edge),
    var(--shadow-1);
  width: fit-content;
}
[data-theme="dark"] .filter-rail {
  background: var(--bg-elevated);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    inset 0 2px 4px rgba(0,0,0,.4),
    var(--shadow-1);
}
.filter-chip {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease);
}
.filter-chip:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}
.filter-chip.is-active {
  color: #fff8e8;
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--sticky) 85%, white 15%) 0%, var(--sticky) 50%, var(--sticky-deep) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -2px 3px rgba(100,40,0,.25),
    0 1px 1px rgba(100,40,0,.2),
    0 4px 8px -2px rgba(100,40,0,.3);
  text-shadow: 0 1px 0 rgba(80,30,0,.3);
}
[data-theme="dark"] .filter-chip.is-active {
  color: #1a120a;
  text-shadow: 0 1px 0 rgba(255,220,170,.2);
}
.filter-chip:active { transform: translateY(1px); }

/* Card hide animation */
.card[hidden] { display: none; }
.card.is-leaving {
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.card.is-entering {
  opacity: 0;
  transform: scale(.96);
}

.empty-state {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 40ch;
  margin: 24px auto 0;
}
.cards {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 28px;
}
.card {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-2), var(--skeu-edge);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  will-change: transform;
}
[data-theme="dark"] .card { background: var(--bg-elevated); }
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 40%;
  background: var(--skeu-light);
  pointer-events: none;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3), var(--skeu-edge);
}
.card-link { display: block; }
.card-art {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 20%, color-mix(in oklab, var(--bg) 60%, white 10%), var(--bg-deep));
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-art img { transform: scale(1.03); }
.card-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 90% at 20% 0%, rgba(255,255,255,.25), transparent 50%),
    linear-gradient(180deg, transparent 70%, rgba(0,0,0,.06));
  pointer-events: none;
  z-index: 1;
}
.card-meta { padding: 22px 22px 24px; }
.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.card-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 60;
  font-size: 24px;
  letter-spacing: -.015em;
  margin: 0;
  color: var(--ink);
}
.card-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--picoon-deep);
  background: color-mix(in oklab, var(--picoon) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--picoon) 22%, transparent);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .chip {
  color: var(--picoon);
  background: color-mix(in oklab, var(--picoon) 12%, transparent);
  border-color: color-mix(in oklab, var(--picoon) 26%, transparent);
}

/* ---------- Studio ---------- */
.studio {
  background:
    linear-gradient(180deg, transparent, color-mix(in oklab, var(--sticky) 4%, transparent) 50%, transparent);
}
.studio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.studio-text .section-title { margin-top: 12px; }
.studio-text p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 14px;
  max-width: 50ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
}
.stats div {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
[data-theme="dark"] .stats div { background: var(--bg-elevated); }
.stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.stats dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}

/* Polaroid */
.studio-card { display: grid; place-items: center; }
.polaroid {
  background: var(--surface);
  padding: 14px 14px 44px;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    var(--shadow-3);
  width: min(360px, 100%);
  transform: rotate(2deg);
  transition: transform .5s var(--ease-spring);
}
[data-theme="dark"] .polaroid { background: #f3ecdc; }
.polaroid:hover { transform: rotate(-1deg) translateY(-4px); }
.polaroid-photo {
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background:
    radial-gradient(70% 50% at 40% 30%, #efd29b 0%, #b78a52 35%, #5e3f23 70%, #2c1c10 100%);
  position: relative;
  overflow: hidden;
}
.polaroid-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 30% at 30% 25%, rgba(255,240,200,.55), transparent 65%),
    radial-gradient(40% 25% at 70% 65%, rgba(255,255,255,.18), transparent 60%);
}
.polaroid-photo::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 30%;
  width: 64%;
  height: 60%;
  background:
    radial-gradient(60% 50% at 30% 20%, #d6a06a, #6b3f1c 60%),
    linear-gradient(180deg, transparent, rgba(0,0,0,.3));
  border-radius: 30% 28% 22% 24% / 32% 24% 26% 28%;
  opacity: .8;
  filter: blur(.3px);
}
.polaroid-caption {
  margin: 14px 0 0;
  text-align: center;
  font-family: "Caveat", var(--font-display);
  font-style: italic;
  color: #5a3211;
  font-size: 18px;
}

/* ---------- Contact ---------- */
.contact { padding-bottom: 120px; }
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3), var(--skeu-edge);
}
[data-theme="dark"] .contact-card { background: var(--bg-elevated); }
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: var(--skeu-light);
  pointer-events: none;
}
.contact-card .eyebrow { justify-content: center; }
.contact-card p {
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto 28px;
}
.contact-note {
  margin-top: 22px !important;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 32px max(24px, 6vw) 56px;
  border-top: 1px solid var(--rule);
  background: color-mix(in oklab, var(--bg) 90%, transparent);
}
.footer-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-row .copy {
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-links {
  max-width: 1200px;
  margin: 14px auto 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 14px;
}
.footer-links a {
  color: var(--ink-soft);
  position: relative;
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--ink); }
.footer-links a + a::before {
  content: "·";
  position: absolute;
  left: -14px;
  color: var(--ink-faint);
}
.footnote {
  max-width: 1200px;
  margin: 14px auto 0;
  color: var(--ink-faint);
  font-size: 13px;
}

/* ---------- Legal / prose pages ---------- */
.legal {
  padding: clamp(48px, 8vw, 96px) max(24px, 6vw) 120px;
  max-width: 760px;
  margin: 0 auto;
}
.legal .eyebrow { margin-bottom: 20px; }
.prose h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--ink);
}
.prose .lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 40px;
  max-width: 58ch;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 60;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  color: var(--ink);
}
.prose p, .prose li {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 64ch;
}
.prose ul {
  padding-left: 24px;
  margin: 4px 0 18px;
}
.prose li { margin: 0 0 10px; }
.prose li::marker {
  color: var(--sticky);
}
.prose a {
  color: var(--picoon-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, var(--picoon) 35%, transparent);
  transition: text-decoration-color .2s var(--ease);
}
[data-theme="dark"] .prose a { color: var(--picoon); }
.prose a:hover {
  text-decoration-color: var(--picoon);
}
.prose strong { color: var(--ink); font-weight: 600; }
.legal-back {
  margin-top: 48px !important;
}

/* ---------- 404 page ---------- */
.notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 120px) max(24px, 6vw) 120px;
  text-align: center;
}
.notfound .display {
  font-size: clamp(72px, 14vw, 168px);
  line-height: .95;
  letter-spacing: -0.04em;
  margin: 12px 0 16px;
  color: var(--ink);
}
.notfound .display .display-script {
  display: block;
  font-size: 0.42em;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.notfound .lede { margin-bottom: 32px; }
.notfound .hero-cta { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 48px;
  }
  .hero-card { display: flex; justify-content: center; }
  .sticky-note { margin-left: 0; }
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  section { padding: 64px max(20px, 5vw); }
  .contact-card { padding: 40px 24px; }
  .display-script { white-space: normal; }
  .site-header { min-height: 110px; }
  .brand-logo { width: 100px; height: 100px; }
  .brand-logo-hero { width: min(72vw, 320px); height: min(72vw, 320px); }
  .sticky-note-overlay { right: 0; bottom: -10px; width: min(180px, 50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--picoon);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible, .theme-toggle:focus-visible {
  outline-offset: 4px;
}

/* ---------- Subtle reveal on scroll ---------- */
[data-card] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-card].in {
  opacity: 1;
  transform: translateY(0);
}
