/* ==========================================================================
   Idea Catcher — one alley, seven ways of looking at it.
   Every lens is a set of tokens on <html data-lens="…">; the scene art, the
   wall lettering, the panels and the claim ticket all read from them.
   ========================================================================== */

:root {
  --paper: #f6eedb;
  --paper-2: #efe3c8;
  --ink: #1b1b1b;
  --ink-soft: #4b4637;
  --accent: #c8452b;
  --accent-2: #2f7f7a;
  --card: #fffaf0;
  --cap-bg: #fff1a8;

  --wall-font: 'Bowlby One SC', Impact, sans-serif;
  --wall-color: #23305a;
  --wall-sub: #c8452b;
  --wall-blend: multiply;
  --wall-rot: -1.5deg;
  --wall-case: none;
  --wall-size: 5.4em;
  --wall-track: 0;

  --mono: 'Space Mono', ui-monospace, monospace;
  --serif: 'Fraunces', Georgia, serif;
  --img: url('/img/base-sm.webp');

  color-scheme: light;
}

html[data-lens='claire'] { --img: url('/img/base-sm.webp'); }

html[data-lens='stencil'] {
  --paper: #d8d5cf; --paper-2: #c9c5bd; --ink: #111; --ink-soft: #3c3b39;
  --accent: #e0262b; --accent-2: #111; --card: #ecebe7; --cap-bg: #f2f0ea;
  --wall-font: 'Stardos Stencil', 'Bowlby One SC', sans-serif;
  --wall-color: #0d0d0d; --wall-sub: #e0262b; --wall-rot: -3deg; --wall-case: uppercase;
  --wall-size: 4.3em; --wall-track: .02em;
  --img: url('/img/stencil-sm.webp');
}

html[data-lens='flesh'] {
  --paper: #ecdcc6; --paper-2: #e2cdb1; --ink: #3a2a22; --ink-soft: #6b5446;
  --accent: #b5523b; --accent-2: #6f7d5a; --card: #f6ecdd; --cap-bg: #f1d9c1;
  --wall-font: 'DM Serif Display', Georgia, serif;
  --wall-color: #5a3a2c; --wall-sub: #9a4a35; --wall-rot: 0deg; --wall-size: 5.8em;
  --img: url('/img/flesh-sm.webp');
}

html[data-lens='naked'] {
  --paper: #f4efe2; --paper-2: #ebe4d2; --ink: #3f4450; --ink-soft: #6c7180;
  --accent: #3a6ad6; --accent-2: #c9a227; --card: #fbf8ef; --cap-bg: #fbf8ef;
  --wall-font: 'Caveat', 'Comic Sans MS', cursive;
  --wall-color: #4c525e; --wall-sub: #3a6ad6; --wall-rot: -2deg; --wall-size: 7.4em;
  --img: url('/img/naked-sm.webp');
}

html[data-lens='wet'] {
  --paper: #101a2d; --paper-2: #16233b; --ink: #e8eef8; --ink-soft: #a9b6cc;
  --accent: #ffd25e; --accent-2: #6fb3d9; --card: #1b2a45; --cap-bg: #22355a;
  --wall-font: 'Bowlby One SC', Impact, sans-serif;
  --wall-color: #e9e2c8; --wall-sub: #ffd25e; --wall-blend: normal; --wall-rot: -1.5deg;
  --img: url('/img/wet-sm.webp');
  color-scheme: dark;
}

html[data-lens='dry'] {
  --paper: #f3e3c0; --paper-2: #ead39f; --ink: #4f3418; --ink-soft: #7d5c37;
  --accent: #d2691e; --accent-2: #8aa1b1; --card: #fbf0d8; --cap-bg: #f7dfa6;
  --wall-font: 'Rye', Georgia, serif;
  --wall-color: #8a5a2b; --wall-sub: #c0571a; --wall-rot: -1deg; --wall-size: 4.9em;
  --img: url('/img/dry-sm.webp');
}

html[data-lens='cinema'] {
  --paper: #121110; --paper-2: #1c1a18; --ink: #f1e6c8; --ink-soft: #b8ab8c;
  --accent: #f0c060; --accent-2: #c8452b; --card: #1f1d1a; --cap-bg: #2a2722;
  --wall-font: 'DM Serif Display', Georgia, serif;
  --wall-color: #2a2320; --wall-sub: #8c2b1c; --wall-rot: 0deg; --wall-case: uppercase;
  --wall-size: 5em; --wall-track: .06em;
  --img: url('/img/base-sm.webp');
  color-scheme: dark;
}

/* ---------- base ---------- */

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

html { scroll-behavior: smooth; background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--serif);
  transition: background-color .8s ease, color .8s ease;
  overflow-x: hidden;
}

a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 12px;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   THE STAGE
   ========================================================================== */

.stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #1d2340;
  isolation: isolate;
}

/* The art box always has the source aspect ratio; JS sizes it to cover the
   stage, so every overlay can be placed in image percentages. */
.art {
  position: absolute;
  left: 0; top: 0;
  width: 100vw;
  aspect-ratio: 2752 / 1536;
  container-type: inline-size;
  touch-action: pan-y;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cellipse cx='16' cy='14' rx='12' ry='11' fill='rgba(255,255,255,.25)' stroke='%23111' stroke-width='2.5'/%3E%3Cpath d='M8 9 L24 19 M6 15 L22 23 M12 4 L26 14' stroke='%23111' stroke-width='1' opacity='.6'/%3E%3Cpath d='M25 22 L41 40' stroke='%236b4a2b' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") 16 14, crosshair;
  will-change: transform;
}

.art.is-panning { animation: pan 26s ease-in-out infinite; }

@keyframes pan {
  0%, 18%  { transform: translateX(0); }
  45%, 72% { transform: translateX(var(--pan, 0px)); }
  100%     { transform: translateX(0); }
}

.layers, .layers > *, .paint, .anim, .overlay {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

.layers > * {
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.layers > .is-hidden { visibility: hidden; }

.paint, .anim { pointer-events: none; }

.overlay { pointer-events: none; opacity: 0; transition: opacity .8s; }

.halftone {
  background-image: radial-gradient(rgba(20, 20, 40, .55) 1px, transparent 1.4px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}
html[data-lens='claire'] .halftone { opacity: .09; }

.grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  animation: grain .5s steps(4) infinite;
}
html[data-lens='cinema'] .grain { opacity: .35; }
html[data-lens='flesh'] .grain { opacity: .18; animation: none; }
html[data-lens='stencil'] .grain { opacity: .22; animation: none; }

@keyframes grain {
  0% { background-position: 0 0; } 25% { background-position: -40px 20px; }
  50% { background-position: 30px -50px; } 75% { background-position: -20px -10px; }
}

html[data-lens='flesh'] .layers { animation: breathe 9s ease-in-out infinite; transform-origin: 68% 55%; }
@keyframes breathe { 50% { transform: scale(1.012); } }

html[data-lens='cinema'] .layers { animation: flicker 3.2s steps(1) infinite; }
@keyframes flicker { 0%, 100% { filter: none; } 31% { filter: brightness(1.06); } 33% { filter: brightness(.95) sepia(.1); } 72% { filter: brightness(1.03); } }

/* ---------- wall lettering ---------- */

.wall {
  position: absolute;
  left: 4%;
  top: 13%;
  width: 37%;
  transform: rotate(var(--wall-rot));
  transform-origin: 0 0;
  mix-blend-mode: var(--wall-blend);
  color: var(--wall-color);
  font-family: var(--wall-font);
  text-transform: var(--wall-case);
  letter-spacing: var(--wall-track);
  font-size: 1cqw;
  pointer-events: none;
  transition: opacity .35s ease;
}

/* phones: the copy floats over the stage instead of riding the panning wall */
.wall.is-floating {
  left: 16px; right: 16px; top: 76px;
  width: auto;
  z-index: 3;
  transform: none;
  mix-blend-mode: normal;
  text-shadow: 0 0 14px var(--paper), 0 0 4px var(--paper);
}
.wall.is-floating .wall-head { text-shadow: 0 0 18px var(--paper), 0 0 6px var(--paper); }
html[data-lens='wet'] .wall.is-floating, html[data-lens='cinema'] .wall.is-floating { color: #f3ead2; --wall-color: #f3ead2; }
html[data-lens='cinema'] .wall.is-floating { text-shadow: 0 0 14px #000, 0 0 4px #000; }
html[data-lens='cinema'] .wall.is-floating .wall-head { text-shadow: 0 0 18px #000; }
html[data-lens='stencil'] .wall.is-floating .wall-head { text-shadow: 0 0 16px #fff, 0 0 4px #fff; }
.wall.is-floating .wall-cta { font-size: 1.3em; padding: .6em 1.1em; }

.wall.is-swapping { opacity: 0; }

.wall-head {
  margin: 0;
  font-weight: 400;
  font-size: var(--wall-size);
  line-height: .98;
}

.wall-sub {
  margin: 1.2em 0 0;
  font-size: calc(var(--wall-size) * .44);
  line-height: 1.15;
  color: var(--wall-sub);
}

.wall-tag {
  margin: 0 0 1.4em;
  font-size: 2.1em;
  line-height: 1.1;
  opacity: .92;
}
.wall-tag b { font-weight: inherit; color: var(--wall-sub); }

.wall-cta {
  display: inline-block;
  margin-top: 2.2em;
  padding: .55em 1.3em .65em;
  font: 700 1.25em/1.2 var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--wall-color);
  border-radius: 2px;
  pointer-events: auto;
  cursor: pointer;
  transform: rotate(1deg);
  transition: transform .2s, background .2s;
}
.wall-cta:hover { transform: rotate(-1deg) scale(1.05); background: var(--wall-sub); }

/* lens-specific lettering treatments */
html[data-lens='stencil'] .wall-head { text-shadow: 0 0 .25em rgba(0,0,0,.55), 0 0 1.2em rgba(0,0,0,.25); }
html[data-lens='stencil'] .wall-sub  { text-shadow: 0 0 .5em rgba(224,38,43,.6); }
html[data-lens='flesh'] .wall-head   { font-style: italic; text-shadow: .08em .08em 0 rgba(255,240,220,.6), -.08em -.08em 0 rgba(60,30,20,.35); }
html[data-lens='naked'] .wall-head   { font-weight: 700; }
html[data-lens='naked'] .wall-head s { text-decoration-color: var(--accent); text-decoration-thickness: .07em; opacity: .55; }
html[data-lens='naked'] .wall-sub    { font-size: calc(var(--wall-size) * .5); }
html[data-lens='naked'] .wall-cta    { background: transparent; color: var(--accent); border: .18em solid var(--accent); border-radius: 40% 8% 30% 12%; font-family: 'Caveat', cursive; font-size: 2em; text-transform: none; }
html[data-lens='wet'] .wall-head     { text-shadow: 0 .4em .5em rgba(233,226,200,.35), 0 1.4em 1.2em rgba(233,226,200,.15); opacity: .9; animation: wobble 4s ease-in-out infinite; }
html[data-lens='wet'] .wall-cta      { color: #101a2d; }
html[data-lens='dry'] .wall          { opacity: .82; }
html[data-lens='dry'] .wall-head     { animation: shimmer 2.6s ease-in-out infinite; }
html[data-lens='cinema'] .wall-head  { border-top: .2em solid currentColor; border-bottom: .2em solid currentColor; padding: .8em 0; text-align: center; }
html[data-lens='cinema'] .wall-sub   { text-align: center; font-family: var(--mono); font-size: 1.4em; text-transform: uppercase; letter-spacing: .3em; }
html[data-lens='cinema'] .wall       { text-align: center; }

@keyframes wobble { 50% { transform: translateY(.15em) skewX(-.6deg); filter: blur(.3px); } }
@keyframes shimmer { 50% { transform: skewX(1.2deg) scaleY(1.01); filter: blur(.4px); } }

/* ---------- pencil notes (Naked) & speech bubble (Ligne Claire) ---------- */

.notes { position: absolute; inset: 0; pointer-events: none; }

.note {
  position: absolute;
  font: 700 1.5cqw/1.05 'Caveat', cursive;
  color: #3a6ad6;
  white-space: nowrap;
  opacity: 0;
  transform: rotate(var(--r, -4deg)) translateY(.4cqw);
  transition: opacity .6s ease, transform .6s ease;
}
.note.is-on { opacity: .9; transform: rotate(var(--r, -4deg)); }

.bubble {
  position: absolute;
  left: 50%;
  top: 63%;
  max-width: 17cqw;
  padding: .9cqw 1.2cqw;
  font: 400 1.25cqw/1.2 'Bowlby One SC', sans-serif;
  color: #111;
  background: #fff;
  border: .2cqw solid #111;
  border-radius: 50%/40%;
  text-align: center;
  opacity: 0;
  transform: scale(.6);
  transform-origin: 85% 110%;
  transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.bubble::after {
  content: '';
  position: absolute;
  right: 12%;
  bottom: -1.3cqw;
  width: 1.6cqw; height: 1.6cqw;
  background: #fff;
  border-right: .2cqw solid #111;
  border-bottom: .2cqw solid #111;
  transform: skewX(35deg) rotate(20deg);
}
.bubble.is-on { opacity: 1; transform: scale(1); }

/* ---------- letterbox (Cinéma) ---------- */

.letterbox::before, .letterbox::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 9%;
  background: #000;
  z-index: 3;
  transform: scaleY(0);
  transition: transform .7s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
.letterbox::before { top: 0; transform-origin: top; }
.letterbox::after { bottom: 0; transform-origin: bottom; }
html[data-lens='cinema'] .letterbox::before,
html[data-lens='cinema'] .letterbox::after { transform: scaleY(1); }

/* ---------- HUD ---------- */

.hud {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 36px) 0;
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  text-decoration: none;
  font: 400 19px/1 'Bowlby One SC', sans-serif;
  color: #111;
  background: #fffaf0;
  border: 2.5px solid #111;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #111;
  transform: rotate(-2deg);
  transition: transform .2s;
}
.logo:hover { transform: rotate(1deg) scale(1.04); }
.logo b { font-weight: 400; color: #c8452b; }
.logo svg { width: 28px; height: 28px; }
.logo svg circle { fill: #ffd75e; stroke: #111; stroke-width: 3; }
.logo svg .w { fill: #fff6dd; stroke: #111; stroke-width: 3; transform-origin: 32px 26px; animation: flap .5s ease-in-out infinite alternate; }
.logo svg rect { fill: #888; stroke: #111; stroke-width: 3; }
@keyframes flap { to { transform: scaleY(.55); } }

.hud-right { display: flex; gap: 10px; align-items: center; }

.sound, .jar-count {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 14px;
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  background: #fffaf0;
  border: 2.5px solid #111;
  border-radius: 999px;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
}
.sound .sound-on { display: none; }
.sound[aria-pressed='true'] .sound-on { display: inline; }
.sound[aria-pressed='true'] .sound-off { display: none; }
.jar-count svg { width: 18px; height: 22px; fill: rgba(255, 215, 94, .5); stroke: #111; stroke-width: 3; }
.jar-count.is-bumped { animation: bump .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 40% { transform: scale(1.25) rotate(-6deg); } }

/* ---------- museum label ---------- */

.label {
  position: absolute;
  left: clamp(16px, 3vw, 36px);
  bottom: 132px;
  z-index: 4;
  width: min(300px, calc(100vw - 32px));
  padding: 12px 14px 12px;
  background: #fffdf7;
  color: #1b1b1b;
  box-shadow: 0 10px 30px rgba(0,0,0,.25), 0 1px 0 rgba(0,0,0,.2);
  font: 13px/1.4 var(--serif);
}
.label p { margin: 0; }
.label-no { font: 700 11px/1 var(--mono); letter-spacing: .12em; color: #888; }
.label-title { margin-top: 4px !important; font: 400 22px/1.05 'DM Serif Display', serif; }
.label-text { margin-top: 6px !important; }
.label-hint {
  margin-top: 8px !important;
  font: 700 11px/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #c8452b;
}
.label-hint::before { content: '☞ '; }

/* ---------- the lens dial ---------- */

.dial {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 4;
  display: flex;
  gap: 8px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  transform: translateX(-50%);
  background: rgba(17, 17, 17, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dial::-webkit-scrollbar { display: none; }

.swatch {
  flex: 0 0 auto;
  width: 84px;
  padding: 0 0 6px;
  border: 0;
  border-radius: 6px;
  background: #fffdf7;
  color: #111;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.3,1.5,.5,1), box-shadow .25s;
}
.swatch-thumb {
  display: block;
  height: 46px;
  background-size: 360% auto;
  background-position: 72% 38%;
  border-bottom: 2px solid #111;
}
.swatch-no { display: block; padding: 5px 7px 0; font: 700 9px/1 var(--mono); letter-spacing: .1em; color: #888; }
.swatch-name { display: block; padding: 2px 7px 0; font: 700 11px/1.1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.swatch:hover { transform: translateY(-4px) rotate(-2deg); }
.swatch[aria-pressed='true'] {
  transform: translateY(-8px) rotate(-3deg);
  box-shadow: 0 0 0 3px var(--accent), 0 10px 20px rgba(0,0,0,.4);
}

@media (min-width: 1000px) {
  .toast { left: auto; right: clamp(16px, 3vw, 36px); transform: translateY(-16px) rotate(-1.5deg); }
  .toast.is-on { transform: translateY(0) rotate(-1.5deg); }
  .label { bottom: max(16px, env(safe-area-inset-bottom)); }
  .dial { left: auto; right: clamp(16px, 3vw, 36px); transform: none; }
}

/* ---------- toast (caught idea) ---------- */

.toast {
  position: absolute;
  left: 50%;
  top: 84px;
  z-index: 6;
  width: min(380px, calc(100vw - 32px));
  padding: 14px 16px 14px 56px;
  background: #fffdf2;
  color: #1b1b1b;
  border: 2.5px solid #111;
  box-shadow: 5px 5px 0 #111;
  font: 15px/1.35 var(--serif);
  opacity: 0;
  transform: translate(-50%, -16px) rotate(-1.5deg);
  transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) rotate(-1.5deg); }
.toast::before {
  content: '';
  position: absolute; left: 12px; top: 14px;
  width: 32px; height: 32px;
  background: radial-gradient(circle at 50% 42%, #fff6b0 0 30%, #ffc93c 31% 48%, transparent 50%),
              radial-gradient(ellipse 50% 30% at 18% 40%, #fff 0 60%, transparent 62%),
              radial-gradient(ellipse 50% 30% at 82% 40%, #fff 0 60%, transparent 62%);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px #ffd75e);
}
.toast small { display: block; font: 700 11px/1 var(--mono); letter-spacing: .1em; color: #c8452b; margin-bottom: 4px; }

/* ---------- narrow screens ---------- */

@media (max-width: 760px) {
  .stage { height: 86svh; min-height: 480px; }
  .label { bottom: 118px; padding: 9px 11px; width: min(250px, calc(100vw - 32px)); }
  .label-title { font-size: 18px; }
  .label-text { display: none; }
  .swatch { width: 74px; }
  .swatch-name { font-size: 9.5px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
  .swatch-thumb { height: 38px; }
  .logo { font-size: 16px; }
  .logo span { display: none; }
  .logo { padding: 6px; }
  .sound { padding: 0 10px; }
  .toast { top: 72px; }
}

/* ==========================================================================
   BELOW THE FOLD
   ========================================================================== */

.section-h {
  margin: 0 0 28px;
  font: 400 clamp(30px, 5vw, 54px)/1 'Bowlby One SC', sans-serif;
  letter-spacing: .01em;
}
.section-h small { display: block; margin-top: 8px; font: italic 400 17px/1.3 var(--serif); color: var(--ink-soft); letter-spacing: 0; }

html[data-lens='stencil'] .section-h { font-family: 'Stardos Stencil', sans-serif; text-transform: uppercase; }
html[data-lens='flesh'] .section-h   { font-family: 'DM Serif Display', serif; font-style: italic; }
html[data-lens='naked'] .section-h   { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(40px, 7vw, 72px); }
html[data-lens='dry'] .section-h     { font-family: 'Rye', serif; }
html[data-lens='cinema'] .section-h  { font-family: 'DM Serif Display', serif; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- provenance ---------- */

.provenance {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: clamp(16px, 4vw, 48px);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 16px 0;
}
.provenance[hidden] { display: none; }

.balloon svg { width: 100%; max-width: 150px; overflow: visible; animation: drift 6s ease-in-out infinite; }
.balloon .heart { fill: #e0262b; }
.balloon .string { fill: none; stroke: var(--ink); stroke-width: 2; }
@keyframes drift { 50% { transform: translate(6px, -14px) rotate(3deg); } }

.plaque {
  padding: 26px 28px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.plaque p { margin: 0; }
.plaque-k { font: 700 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.plaque-domain { margin-top: 10px !important; font: 400 clamp(28px, 5vw, 48px)/1.05 'DM Serif Display', serif; word-break: break-word; }
.plaque-meta { margin-top: 6px !important; font: italic 15px/1.4 var(--serif); color: var(--ink-soft); }
.plaque-body { margin-top: 16px !important; }
.plaque-cta {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 16px;
  font: 700 13px/1 var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
}
.plaque-cta:hover { background: var(--accent); }

/* ---------- the method ---------- */

.method {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 110px) 16px 0;
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel {
  position: relative;
  border: 3px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .3s;
}
.panel:nth-child(1) { transform: rotate(-1deg); }
.panel:nth-child(2) { transform: rotate(.8deg) translateY(10px); }
.panel:nth-child(3) { transform: rotate(-.6deg); }
.panel:hover { transform: rotate(0) scale(1.02); }

.panel-art {
  aspect-ratio: 4 / 3;
  background-image: var(--img);
  background-repeat: no-repeat;
  background-size: calc(var(--z) * 100%) auto;
  background-position:
    calc((var(--cx) * var(--z) - .5) / (var(--z) - 1) * 100%)
    calc((var(--cy) * var(--z) * .744 - .5) / (var(--z) * .744 - 1) * 100%);
  transition: background-image .6s;
}

.caption {
  position: absolute;
  left: -8px; top: -14px;
  max-width: 82%;
  margin: 0;
  padding: 8px 11px;
  background: var(--cap-bg);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  font: 15px/1.3 var(--serif);
  box-shadow: 3px 3px 0 var(--ink);
}
.caption b { font-family: 'Bowlby One SC', sans-serif; font-weight: 400; color: var(--accent); }
html[data-lens='naked'] .caption { font: 700 19px/1.1 'Caveat', cursive; }

@media (max-width: 760px) {
  .panels { grid-template-columns: 1fr; gap: 34px; }
  .panel:nth-child(2) { transform: rotate(.8deg); }
  .provenance { grid-template-columns: 1fr; }
  .balloon { display: none; }
}

/* ---------- the jar + claim ticket ---------- */

.jar-section {
  display: grid;
  grid-template-columns: minmax(200px, 340px) minmax(0, 560px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 11vw, 140px) 16px clamp(56px, 8vw, 100px);
}

.jar-wrap { text-align: center; }
.jar { width: 100%; max-width: 300px; overflow: visible; }
.jar .glass { fill: color-mix(in srgb, var(--card) 35%, transparent); stroke: var(--ink); stroke-width: 4; }
.jar .glow { opacity: var(--jar-glow, 0); transition: opacity .8s; }
.jar .shine { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 6; stroke-linecap: round; }
.jar .lid rect { fill: var(--accent); stroke: var(--ink); stroke-width: 4; }
.jar .lid path { stroke: var(--ink); stroke-width: 2; opacity: .5; }
.jar .lid { transition: transform .5s cubic-bezier(.5,-0.4,.4,1.4); transform-origin: 178px 48px; }
.jar.is-open .lid { transform: translate(18px, -26px) rotate(24deg); }
.jar-label rect { fill: var(--card); stroke: var(--ink); stroke-width: 2.5; }
.jar-label text { text-anchor: middle; font: 400 20px 'Bowlby One SC', sans-serif; fill: var(--ink); }
.jar-label text.small { font: italic 13px var(--serif); }
.jar-note { margin: 10px 0 0; font: italic 15px/1.4 var(--serif); color: var(--ink-soft); }

.jmoth { animation: hover var(--d, 3s) ease-in-out infinite alternate; }
.jmoth .b { fill: #ffd75e; filter: drop-shadow(0 0 4px #ffcc33); }
.jmoth .w { fill: #fff8e6; stroke: #333; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: flap .35s ease-in-out infinite alternate; }
@keyframes hover { to { transform: translate(var(--dx, 6px), var(--dy, -8px)); } }

.ticket {
  position: relative;
  padding: 30px 34px 30px 52px;
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(.6deg);
  transition: transform .8s cubic-bezier(.6,-0.3,.4,1), opacity .6s;
}
.perf {
  position: absolute;
  left: 18px; top: 10px; bottom: 10px;
  width: 12px;
  background: radial-gradient(circle, var(--paper) 0 4px, transparent 4.5px) 0 0 / 12px 18px repeat-y;
  border-right: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent);
}
.ticket-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.ticket-top p { margin: 0; }
.ticket-no span { color: var(--accent); }
.ticket-h { margin: 16px 0 6px; font: 400 clamp(28px, 4vw, 40px)/1.02 'Bowlby One SC', sans-serif; }
.ticket-sub { margin: 0 0 18px; color: var(--ink-soft); }

html[data-lens='naked'] .ticket-h { font: 700 clamp(36px, 5vw, 50px)/1 'Caveat', cursive; }
html[data-lens='flesh'] .ticket-h { font-family: 'DM Serif Display', serif; font-style: italic; }
html[data-lens='stencil'] .ticket-h { font-family: 'Stardos Stencil', sans-serif; text-transform: uppercase; }
html[data-lens='dry'] .ticket-h { font-family: 'Rye', serif; }

.field { display: block; margin: 0 0 14px; }
.field span { display: block; margin-bottom: 4px; font: 700 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 9px 2px;
  font: 17px/1.4 var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  resize: vertical;
}
.field textarea {
  border: 2px solid var(--ink);
  padding: 10px 12px;
  background-image: repeating-linear-gradient(transparent 0 26px, color-mix(in srgb, var(--accent-2) 25%, transparent) 26px 27px);
  background-position: 0 9px;
  line-height: 27px;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink) 40%, transparent); font-style: italic; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.seal {
  display: inline-block;
  margin-top: 6px;
  padding: 14px 24px;
  font: 400 18px/1 'Bowlby One SC', sans-serif;
  letter-spacing: .02em;
  color: var(--card);
  background: var(--accent);
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transform: rotate(-1.5deg);
  transition: transform .15s, box-shadow .15s;
}
.seal:hover { transform: rotate(1deg) scale(1.04); }
.seal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.seal:disabled { opacity: .6; cursor: wait; }
html[data-lens='wet'] .seal, html[data-lens='cinema'] .seal { color: #111; }

.form-status { min-height: 1.5em; margin: 14px 0 0; font: 700 14px/1.4 var(--mono); }
.form-status[data-state='ok'] { color: var(--accent-2); }
html[data-lens='claire'] .form-status[data-state='ok'] { color: #2f7f7a; }
.form-status[data-state='error'] { color: #d12b2b; }

.ticket.is-sending { transform: translate(-30%, 20px) rotate(-14deg) scale(.4); opacity: 0; }
.ticket.is-back { transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .3s; }

@media (max-width: 760px) {
  .jar-section { grid-template-columns: 1fr; }
  .jar-wrap { order: 2; }
  .jar { max-width: 200px; }
  .ticket { padding: 26px 20px 24px 40px; }
  .perf { left: 12px; }
}

/* ---------- footer ---------- */

.foot {
  padding: 34px 16px 48px;
  text-align: center;
  font: 13px/1.6 var(--mono);
  color: var(--ink-soft);
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}
.foot p { margin: 0 0 4px; }
.foot-quip { font: italic 15px/1.5 var(--serif); }
.foot kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  font: 700 11px/1.4 var(--mono);
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
@media (hover: none) { .foot-keys { display: none; } }

/* ---------- reduced motion ---------- */

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