/*
  Dotkin Square One: style
  1. Tokens: seven named process colours, plate-black line weights, Ben-Day dot sizes, type, space and radius.
  2. Shared pieces: dot fields, dotted offset "shadows", speech balloons, bursts, buttons, radios, chips, steppers.
  3. Sections in page order: header, hero, build, shoot, how, film, specs, order, questions, footer; then motion and fallbacks.
*/

:root {
  /* Palette: the inks of a four-colour comic plate, plus the tints the dots made */
  --paper: #fff6e0;      /* Newsprint: the unprinted sheet */
  --ink: #141414;        /* Plate Black: line art and type */
  --yellow: #ffd60a;     /* Process Yellow */
  --red: #e3141f;        /* Pop Red: magenta over yellow */
  --blue: #0852ae;       /* Cyan Blue: cyan over magenta, the deep blue */
  --pink: #f7a3c0;       /* Dot Pink: magenta dots on white, the skin tint */
  --cyan: #3fc1f0;       /* Sky Cyan: cyan dots on white, the sky tint */
  --white: #ffffff;

  /* tints used only as dot colours on their own ground */
  --red-dot: #ff5a5f;
  --blue-dot: #2b7ad8;
  --yellow-dot: #ffe75c;
  --pink-dot: #fbc4d7;

  /* line weights: the black plate */
  --line: 4px;
  --line-fat: 6px;

  /* Ben-Day sizes */
  --dot-s: 8px;
  --dot-m: 14px;
  --dot-l: 22px;

  /* type */
  --display: 'Titan One', 'Heebo', sans-serif;
  --body: 'Heebo', system-ui, sans-serif;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.25rem;
  --fs-h3: 1.5rem;
  --fs-h2: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem);
  --fs-h1: clamp(3rem, 1.6rem + 6.2vw, 6rem);

  /* space and shape */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: var(--ink) var(--yellow); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
  accent-color: var(--red);
  overflow-x: clip;
}
::selection { background: var(--yellow); color: var(--ink); }
::-webkit-scrollbar { width: 14px; }
::-webkit-scrollbar-track { background: var(--yellow); }
::-webkit-scrollbar-thumb { background: var(--ink); border: 3px solid var(--yellow); border-radius: 8px; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: 0.005em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 9px var(--yellow); border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: var(--s4); top: -100px; z-index: 50; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); border-radius: var(--r-s); }
.skip:focus { top: var(--s4); }
[hidden] { display: none !important; }
section { position: relative; isolation: isolate; padding: var(--s9) var(--gutter); }
section > * { max-width: var(--wrap); margin-inline: auto; }
.tabular, output, dd, .row__p, .pack__p { font-variant-numeric: tabular-nums; }

/* ---------- shared: Ben-Day dot fields ---------- */
.dots { background-image: radial-gradient(circle, var(--dot, var(--ink)) 31%, transparent 33%); background-size: var(--dot-size, var(--dot-m)) var(--dot-size, var(--dot-m)); }

/* A dotted shadow: a field of plate-black dots offset behind the shape, the comic's way of laying shade */
.dotshade { position: relative; }
.dotshade::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translate(12px, 12px);
  background-image: radial-gradient(circle, var(--shade-dot, var(--ink)) 32%, transparent 35%);
  background-size: 8px 8px;
}

/* ---------- shared: speech balloons ---------- */
.balloon {
  position: relative;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 50% / 46%;
  padding: 1.6em 2.2em;
  font-family: var(--display);
  line-height: 1.15;
  text-align: center;
  isolation: isolate;
}
.balloon::before, .balloon::after { content: ""; position: absolute; }
/* tail: black triangle, then a white one inset, so the outline stays the same weight as the balloon */
.balloon::before { width: 54px; height: 52px; background: var(--ink); left: 18%; bottom: -46px; clip-path: polygon(0 0, 100% 0, 8% 100%); }
.balloon::after { width: 40px; height: 40px; background: var(--white); left: calc(18% + 6px); bottom: -34px; clip-path: polygon(0 0, 100% 0, 6% 100%); }

/* ---------- shared: sound-word burst ---------- */
.burst { position: absolute; display: grid; place-items: center; width: 190px; aspect-ratio: 1; }
.burst::before, .burst::after { content: ""; position: absolute; inset: 0; clip-path: polygon(50% 0, 58% 22%, 79% 6%, 73% 30%, 98% 26%, 80% 44%, 100% 58%, 76% 63%, 88% 86%, 64% 76%, 56% 100%, 46% 78%, 24% 94%, 28% 70%, 2% 74%, 20% 54%, 0 38%, 25% 34%, 14% 10%, 38% 22%); }
.burst::before { background: var(--ink); }
.burst::after { background: var(--yellow); inset: 9px; }
.burst span { position: relative; z-index: 1; font-family: var(--display); color: var(--red); font-size: 1.9rem; transform: rotate(-10deg); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; }

/* ---------- shared: buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 52px; padding: 0 var(--s5);
  border: var(--line) solid var(--ink); border-radius: 999px;
  font: 800 1.0625rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--big { min-height: 60px; font-size: 1.15rem; padding: 0 var(--s6); }
.btn[disabled] { cursor: not-allowed; opacity: 1; background: #d9d2c2; color: #3a352c; transform: none; }
.linkbtn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-underline-offset: 0.25em; cursor: pointer; }

/* ---------- shared: radio rows, chips, steppers ---------- */
input[type="radio"], input[type="checkbox"] { appearance: none; margin: 0; flex: none; width: 24px; height: 24px; border: 3px solid var(--ink); background: var(--white); display: grid; place-items: center; cursor: pointer; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"]:checked { background: var(--red); box-shadow: inset 0 0 0 4px var(--white); }
input[type="checkbox"]:checked { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center/18px no-repeat; }

.row {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center;
  padding: var(--s3) var(--s4); border: 3px solid var(--ink); border-radius: var(--r-s); background: var(--white); cursor: pointer;
  transition: background-color 0.2s;
}
.row:has(input:checked) { background: var(--yellow); }
.row__t { display: grid; gap: 2px; }
.row__t b { font-weight: 800; }
.row__t small { font-size: var(--fs-small); color: #3a352c; }
.row__p { font-weight: 800; white-space: nowrap; }
.rows { display: grid; gap: var(--s2); }
.rows--two { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips legend { width: 100%; font-weight: 800; margin-bottom: var(--s2); padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border-radius: 999px; }
.chip span { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 3px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 700; pointer-events: none; }
.chip input:checked + span { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 3px var(--white); }
.chip input:focus-visible + span { outline: 4px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 9px var(--yellow); }

.step { display: inline-flex; align-items: center; border: 3px solid var(--ink); border-radius: 999px; background: var(--white); }
.step__b { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; }
.step__b:hover { background: var(--yellow); }
.step__b[disabled] { color: #8c8578; cursor: not-allowed; background: none; }
.step__n { min-width: 2ch; text-align: center; font-weight: 800; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: var(--s5);
  padding: var(--s3) var(--gutter);
  background: var(--yellow); border-bottom: var(--line) solid var(--ink);
}
.mark { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.mark__cam { width: 38px; height: 38px; }
.nav { display: flex; gap: var(--s1); margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); font-weight: 800; text-decoration: none; border-radius: 999px; }
.nav a:hover { background: var(--ink); color: var(--yellow); }
.bagbtn { display: inline-flex; align-items: center; gap: var(--s2); min-height: 46px; padding: 0 var(--s4); background: var(--ink); color: var(--yellow); border-radius: 999px; text-decoration: none; font-weight: 800; }
.bagbtn b { font-variant-numeric: tabular-nums; color: var(--white); }
.bagbtn.is-bump { animation: bump 0.5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.1) rotate(-3deg); } }

/* ---------- hero ---------- */
.hero {
  --dot: var(--blue-dot);
  padding-block: var(--s7) 0;
  background-color: var(--blue);
  background-image: radial-gradient(circle, var(--cyan) 30%, transparent 33%);
  background-size: var(--dot-l) var(--dot-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: var(--s6);
  align-items: end;
  min-height: calc(100svh - 70px);
  max-height: 980px;
}
.hero > * { max-width: none; margin: 0; }
.hero__copy { align-self: center; display: grid; gap: var(--s5); padding-bottom: var(--s8); justify-items: start; max-width: 640px; justify-self: end; width: 100%; }
.hero__name {
  font-size: var(--fs-h1); color: var(--yellow);
  -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill;
  line-height: 0.95;
}
.balloon--hero { font-size: clamp(1.35rem, 1rem + 1.2vw, 2rem); max-width: 30ch; margin-left: var(--s4); transform: rotate(-2deg); }
.balloon--hero::before { left: auto; right: 32%; clip-path: polygon(0 0, 100% 0, 96% 100%); }
.balloon--hero::after { left: auto; right: calc(32% + 7px); clip-path: polygon(0 0, 100% 0, 96% 100%); }
.hero__lede { background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--r-m); padding: var(--s4) var(--s5); max-width: 48ch; font-size: var(--fs-body); }
.hero__buy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.hero__price { color: var(--white); font-weight: 700; background: var(--ink); padding: var(--s2) var(--s4); border-radius: 999px; }
.hero__price b { font-family: var(--display); font-weight: 400; color: var(--yellow); font-size: 1.35rem; margin-right: var(--s1); }

/* the art: the camera, a print standing in its slot, and a burst. Sized with container units so the print
   always sits in the slot whatever the width. */
.hero__art { container-type: inline-size; position: relative; width: 118%; aspect-ratio: 420 / 430; transform: rotate(-7deg) translate(2%, 9%); transform-origin: 50% 100%; }
.hero__cam { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 420 / 340; overflow: visible; }
.hero__print { position: absolute; left: 26.5%; width: 47%; bottom: calc(100cqw * 266 / 420); }
.burst--hero { left: 70%; top: 2%; width: 30cqw; transform: rotate(8deg); }
.burst--hero span { font-size: 7cqw; }

/* a print frame: white card, square picture window, deeper bottom margin (72 x 86 mm) */
.pframe { background: var(--white); border: var(--line) solid var(--ink); aspect-ratio: 72 / 86; padding: 6.9% 6.9% 0; }
.pframe canvas { width: 100%; height: auto; aspect-ratio: 1; background: #efe7d2; outline: 2px solid var(--ink); }
.hero__print canvas { background: radial-gradient(circle, var(--cyan) 30%, transparent 33%) 0 0 / 9px 9px, var(--paper); }
.pframe.is-blue { background: var(--cyan); }
.pframe.is-bw { background: #f2f0ea; }

/* camera colour sets: every <svg data-cam> reads these inherited properties into the symbol */
.cam { --body: var(--yellow); --shade: #d9a300; --trim: var(--ink); --button: var(--red); --logo: var(--ink); --strap: var(--red); }
[data-body="red"] .cam { --body: var(--red); --shade: #a10b13; --button: var(--yellow); --logo: var(--white); --strap: var(--yellow); }
[data-body="blue"] .cam { --body: var(--blue); --shade: #053d82; --button: var(--red); --logo: var(--white); --strap: var(--yellow); }
[data-body="pink"] .cam { --body: var(--pink); --shade: #e0679a; --button: var(--blue); --logo: var(--ink); --strap: var(--blue); }
[data-body="black"] .cam { --body: #2a2a2a; --shade: #000; --trim: var(--red); --button: var(--yellow); --logo: var(--yellow); --strap: var(--yellow); --shade: #5a5a5a; }
[data-lens="close"] .cam { --close: 1; }
[data-lens="wide"] .cam { --wide: 1; }
[data-strap="shoulder"] .cam { --shoulder: 1; --wrist: 0; }
.cam use { transition: transform 0.5s var(--ease-out); transform-origin: 50% 60%; }
.cam.is-pop use { animation: pop 0.55s var(--ease-out); }
@keyframes pop { 0% { transform: scale(0.94) rotate(-2deg); } 60% { transform: scale(1.03) rotate(1deg); } 100% { transform: none; } }

/* ---------- build ---------- */
.build { background: var(--paper); }
.build__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--s6); align-items: end; margin-bottom: var(--s7); }
.build__head p { font-size: var(--fs-lead); max-width: 46ch; }
.build__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.stage {
  position: sticky; top: 96px; margin: 0;
  border: var(--line-fat) solid var(--ink); border-radius: var(--r-l);
  background-color: var(--white);
  overflow: hidden;
}
.stage__dots { position: absolute; inset: 0; background-image: radial-gradient(circle, var(--pink) 30%, transparent 33%); background-size: var(--dot-m) var(--dot-m); opacity: 0.9; transition: background-image 0.3s; }
[data-body="pink"] .stage__dots { background-image: radial-gradient(circle, var(--cyan) 30%, transparent 33%); }
.stage__cam { position: relative; width: 100%; height: auto; aspect-ratio: 500 / 400; padding: var(--s5); }
.stage__cap { position: relative; display: flex; flex-wrap: wrap; gap: var(--s2); padding: var(--s4); background: var(--ink); color: var(--paper); font-weight: 700; }
.stage__cap span { background: var(--paper); color: var(--ink); padding: 2px var(--s3); border-radius: 999px; font-size: var(--fs-small); }

.opts { display: grid; gap: var(--s5); }
.opt { margin: 0; border: var(--line) solid var(--ink); border-radius: var(--r-m); padding: var(--s5); background: var(--white); min-width: 0; }
.opt legend { font-family: var(--display); font-size: 1.35rem; padding: 0 var(--s2); margin-left: calc(-1 * var(--s2)); background: var(--white); }
.opt__note { font-size: var(--fs-small); margin-bottom: var(--s3); color: #3a352c; }
.opt__warn { margin-top: var(--s3); font-weight: 700; background: var(--pink); border: 3px solid var(--ink); border-radius: var(--r-s); padding: var(--s2) var(--s3); }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s2); }
.sw { position: relative; display: grid; justify-items: center; gap: var(--s2); text-align: center; cursor: pointer; padding: var(--s2) 0; }
.sw input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; border-radius: var(--r-s); }
.sw__chip { width: 56px; height: 56px; border-radius: 50%; background: var(--c); border: var(--line) solid var(--ink); transition: transform 0.3s var(--ease-out); pointer-events: none; }
.sw__name { font-size: var(--fs-small); font-weight: 700; line-height: 1.2; pointer-events: none; }
.sw input:checked ~ .sw__chip { transform: scale(1.08); box-shadow: 0 0 0 4px var(--white), 0 0 0 8px var(--ink); }
.sw input:checked ~ .sw__name { text-decoration: underline; text-decoration-thickness: 3px; }
.sw input:focus-visible ~ .sw__chip { outline: 4px solid var(--yellow); outline-offset: 10px; }

.packs { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.pack { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s3); align-items: center; padding: var(--s2) var(--s2) var(--s2) var(--s4); border: 3px solid var(--ink); border-radius: var(--r-s); }
.pack.has-qty { background: var(--yellow); }
.pack__t { display: grid; }
.pack__t b { font-weight: 800; }
.pack__t small { font-size: var(--fs-small); color: #3a352c; }
.pack__p { font-weight: 800; }

.total { border: var(--line-fat) solid var(--ink); border-radius: var(--r-m); padding: var(--s5); background: var(--yellow); display: grid; gap: var(--s3); }
.total__lines { margin: 0; display: grid; gap: var(--s1); }
.total__lines div { display: flex; justify-content: space-between; gap: var(--s4); border-bottom: 2px dotted var(--ink); padding-bottom: var(--s1); }
.total__lines dd { margin: 0; font-weight: 700; }
.total__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 1.2rem; }
.total__sum b { font-family: var(--display); font-weight: 400; font-size: 2.4rem; }
.total__shots { font-weight: 700; }
.total .btn { justify-self: start; }

/* ---------- shoot ---------- */
.shoot {
  background-color: var(--red);
  background-image: radial-gradient(circle, var(--red-dot) 30%, transparent 33%);
  background-size: var(--dot-m) var(--dot-m);
  color: var(--white);
}
.shoot__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s6); align-items: center; margin-bottom: var(--s8); }
.shoot__head h2 { color: var(--yellow); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; }
.balloon--think { color: var(--ink); font-size: 1.25rem; max-width: 34ch; border-radius: 50%; }
/* thought balloon: little bubbles instead of a pointed tail */
.balloon--think::before { width: 30px; height: 30px; border-radius: 50%; clip-path: none; background: var(--white); border: var(--line) solid var(--ink); left: -18px; bottom: 6px; }
.balloon--think::after { width: 16px; height: 16px; border-radius: 50%; clip-path: none; background: var(--white); border: 3px solid var(--ink); left: -38px; bottom: -8px; }

.shoot__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s7); align-items: start; }
.vf { display: grid; gap: var(--s4); background: var(--ink); padding: var(--s5); border-radius: var(--r-l); }
.vf__frame { position: relative; padding: var(--s4); }
.vf__canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 4px; background: linear-gradient(var(--cyan) 0 55%, var(--blue) 55% 68%, #f3cf7a 68%); }
.vf__corner { position: absolute; width: 28px; height: 28px; border: 4px solid var(--yellow); }
.vf__corner--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.vf__corner--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.vf__corner--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.vf__corner--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.vf__lens { color: var(--yellow); font-weight: 700; }
.vf .chips legend { color: var(--white); }

.taker { display: grid; gap: var(--s5); }
.taker__rig { container-type: inline-size; position: relative; width: min(100%, 420px); margin-inline: auto; aspect-ratio: 420 / 520; }
.taker__cam { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; aspect-ratio: 420 / 340; overflow: visible; z-index: 2; }
.taker__print { position: absolute; left: 26.5%; width: 47%; bottom: calc(100cqw * 266 / 420); z-index: 1; }
.taker__print.is-out { animation: eject 1.1s var(--ease-out) both; }
@keyframes eject { from { transform: translateY(105%); } to { transform: none; } }
.burst--shot { right: -2%; top: 18%; width: 34cqw; z-index: 3; animation: burst 0.6s var(--ease-out) both; }
.burst--shot span { font-size: 5.6cqw; }
@keyframes burst { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }

.taker__controls { display: grid; gap: var(--s3); justify-items: center; text-align: center; }
.shutter {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 64px; padding: 0 var(--s6) 0 var(--s3);
  background: var(--yellow); color: var(--ink);
  border: var(--line-fat) solid var(--ink); border-radius: 999px;
  font: 800 1.2rem/1 var(--body); cursor: pointer;
  transition: transform 0.2s var(--ease-out);
}
.shutter__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--red); border: var(--line) solid var(--ink); }
.shutter:hover { transform: translateY(-3px); }
.shutter:active .shutter__dot { transform: scale(0.85); }
.shutter[disabled] { background: #d9d2c2; color: #3a352c; cursor: not-allowed; transform: none; }
.shutter[disabled] .shutter__dot { background: #8c8578; }
.counter { font-weight: 700; background: var(--ink); padding: var(--s1) var(--s4); border-radius: 999px; }
.counter b { font-family: var(--display); font-weight: 400; color: var(--yellow); font-size: 1.4rem; }
.taker__status { max-width: 46ch; font-weight: 600; background: var(--ink); color: var(--white); padding: var(--s2) var(--s4); border-radius: var(--r-m); }
.counter { color: var(--white); }
.empty { background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: var(--r-m); padding: var(--s4) var(--s5); display: grid; gap: var(--s3); justify-items: center; max-width: 46ch; }

.tray { margin-top: var(--s8); background: var(--paper); color: var(--ink); border: var(--line-fat) solid var(--ink); border-radius: var(--r-l); padding: var(--s5); }
.tray__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.tray__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: var(--s5); }
.tray__list li { display: grid; gap: var(--s2); }
.tray__list li:nth-child(odd) .pframe { transform: rotate(-3deg); }
.tray__list li:nth-child(even) .pframe { transform: rotate(2.5deg); }
.tray__list .pframe { border-width: 3px; }
.tray__list img { width: 100%; aspect-ratio: 1; outline: 2px solid var(--ink); }
.tray__list p { font-size: var(--fs-small); font-weight: 700; line-height: 1.3; }
.tray__empty { font-weight: 500; }

/* ---------- how ---------- */
.how {
  background-color: var(--yellow);
  background-image: radial-gradient(circle, var(--yellow-dot) 30%, transparent 33%);
  background-size: var(--dot-s) var(--dot-s);
}
.how h2 { max-width: var(--wrap); margin-bottom: var(--s7); }
.how__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.how__art { width: 100%; height: auto; overflow: visible; }
.how__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: var(--s4); }
.how__steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: var(--s3); align-items: start; background: var(--white); border: var(--line) solid var(--ink); border-radius: var(--r-m); padding: var(--s3) var(--s4); }
.how__steps li::before { content: counter(s); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); border: 3px solid var(--ink); font-family: var(--display); font-size: 1.2rem; }
.how__steps b { font-weight: 800; }

/* ---------- film ---------- */
.film { background: var(--paper); }
.film__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: end; margin-bottom: var(--s7); }
.film__head p { font-size: var(--fs-lead); max-width: 50ch; }

/* the shelf: four drawn film boxes standing on a black plank */
.shelf { display: flex; align-items: flex-end; justify-content: center; gap: clamp(12px, 3vw, 40px); padding: 0 var(--s5); border-bottom: 14px solid var(--ink); margin-bottom: var(--s8); flex-wrap: wrap; }
.box { margin: 0; display: grid; gap: var(--s3); justify-items: center; }
.box figcaption { font-weight: 800; order: -1; background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: var(--s1) var(--s3); white-space: nowrap; }
.box figcaption small { font-size: var(--fs-small); font-weight: 600; }
.box__face { width: 150px; aspect-ratio: 3 / 3.4; border: var(--line) solid var(--ink); border-bottom: 0; border-radius: 10px 10px 0 0; display: grid; align-content: space-between; padding: var(--s3); position: relative; overflow: hidden; }
.box__face b { font-family: var(--display); font-weight: 400; font-size: 1.2rem; line-height: 1.05; position: relative; }
.box__face span { font-family: var(--display); font-size: 3.2rem; line-height: 1; justify-self: end; position: relative; }
.box__face::before { content: ""; position: absolute; inset: 45% -10% -10% 30%; border-radius: 50%; background-image: radial-gradient(circle, var(--dot-c) 30%, transparent 33%); background-size: 10px 10px; }
.box--colour .box__face { background: var(--yellow); --dot-c: var(--red); }
.box--five .box__face { background: var(--red); color: var(--white); --dot-c: var(--yellow); width: 190px; aspect-ratio: 3 / 2.6; }
.box--five .box__face b, .box--five .box__face span { -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.box--blue .box__face { background: var(--cyan); --dot-c: var(--blue); }
.box--bw .box__face { background: var(--white); --dot-c: var(--ink); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); border: var(--line-fat) solid var(--ink); border-radius: var(--r-l); overflow: hidden; background: var(--white); }
.calc__in { display: grid; gap: var(--s5); padding: var(--s6); align-content: start; border-right: var(--line-fat) solid var(--ink); }
.calc__label { font-family: var(--display); font-size: 1.5rem; display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.calc__label output { font-size: 3rem; color: var(--red); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; }
.calc__scale { display: flex; justify-content: space-between; font-size: var(--fs-small); font-weight: 700; margin-top: calc(-1 * var(--s4)); font-variant-numeric: tabular-nums; }
.range { appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 14px; border: 3px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, var(--red) var(--fill, 10%), var(--white) var(--fill, 10%)); }
.range::-moz-range-track { height: 14px; border: 3px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, var(--red) var(--fill, 10%), var(--white) var(--fill, 10%)); }
.range::-webkit-slider-thumb { appearance: none; width: 32px; height: 32px; margin-top: -12px; border-radius: 50%; background: var(--yellow); border: var(--line) solid var(--ink); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: var(--line) solid var(--ink); }
.tick { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-weight: 500; }
.tick input { margin-top: 2px; }

.calc__out { padding: var(--s6); display: grid; gap: var(--s4); align-content: start; background-color: var(--cyan); background-image: radial-gradient(circle, #7fd6f6 30%, transparent 33%); background-size: var(--dot-s) var(--dot-s); }
.calc__big { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.calc__big b { font-family: var(--display); font-weight: 400; font-size: clamp(3.5rem, 2rem + 5vw, 5.5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc__big span { font-family: var(--display); font-size: 1.6rem; }
.calc__sum { font-weight: 800; font-size: 1.15rem; }
.calc__math { margin: 0; padding: var(--s4) var(--s5); background: var(--white); border: 3px solid var(--ink); border-radius: var(--r-m); list-style: none; display: grid; gap: var(--s2); font-variant-numeric: tabular-nums; }
.calc__math li { display: flex; justify-content: space-between; gap: var(--s4); }
.calc__math li.is-sum { border-top: 3px solid var(--ink); padding-top: var(--s2); font-weight: 800; }
.calc__verdict { background: var(--ink); color: var(--white); padding: var(--s3) var(--s4); border-radius: var(--r-m); font-weight: 600; }
.calc__verdict b { color: var(--yellow); }
.calc__warn { background: var(--pink); border: 3px solid var(--ink); border-radius: var(--r-m); padding: var(--s3) var(--s4); font-weight: 700; display: flex; gap: var(--s2); }
.calc__out .btn { justify-self: start; }

/* ---------- specs ---------- */
.specs { background: var(--blue); color: var(--white); }
.specs h2 { color: var(--yellow); margin-bottom: var(--s7); }
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s7); align-items: start; }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s4); padding: var(--s3) 0; border-bottom: 3px solid var(--white); }
.spec div:first-child { border-top: 3px solid var(--white); }
.spec dt { font-family: var(--display); color: var(--yellow); }
.spec dd { margin: 0; font-weight: 500; }
.balloon--spec { grid-column: 1 / -1; justify-self: center; color: var(--ink); font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem); max-width: 36ch; margin-top: var(--s5); }
.balloon--spec::before { left: auto; right: 22%; bottom: auto; top: -46px; transform: scaleY(-1); }
.balloon--spec::after { left: auto; right: calc(22% + 8px); bottom: auto; top: -30px; transform: scaleY(-1); }

/* ---------- order ---------- */
.order { background-color: var(--pink); background-image: radial-gradient(circle, var(--pink-dot) 30%, transparent 33%); background-size: var(--dot-m) var(--dot-m); }
.order h2 { margin-bottom: var(--s7); -webkit-text-stroke: 0; }
.order__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s7); align-items: start; }
.summary { background: var(--yellow); border: var(--line-fat) solid var(--ink); border-radius: var(--r-l); padding: var(--s5); display: grid; gap: var(--s4); position: sticky; top: 96px; }
.summary__cam { width: 64%; height: auto; aspect-ratio: 480 / 490; overflow: visible; justify-self: center; margin-block: var(--s3); }
.summary__lines { margin: 0; display: grid; gap: var(--s2); }
.summary__lines div { display: flex; justify-content: space-between; gap: var(--s4); border-bottom: 2px dotted var(--ink); padding-bottom: var(--s1); }
.summary__lines dd { margin: 0; font-weight: 700; white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.summary__total b { font-family: var(--display); font-weight: 400; font-size: 2.2rem; }

.checkout { background: var(--white); border: var(--line-fat) solid var(--ink); border-radius: var(--r-l); padding: var(--s6); }
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: var(--s1); margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 800; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s4); }
.field input[type="text"], .field input[type="email"] {
  min-height: 52px; padding: 0 var(--s4); border: 3px solid var(--ink); border-radius: var(--r-s); background: var(--paper); width: 100%;
}
.field input::placeholder { color: #6b6457; }
.field input:focus { outline: 0; box-shadow: 0 0 0 4px var(--yellow), 0 0 0 7px var(--ink); }
.field.is-bad input[type="text"], .field.is-bad input[type="email"] { border-color: var(--red); background: #fff0f1; }
.field.is-ok input[type="text"], .field.is-ok input[type="email"] { border-color: var(--blue); }
.hint { font-size: var(--fs-small); color: #3a352c; }
.err { font-size: var(--fs-small); font-weight: 800; color: #b30d17; min-height: 0; }
.err:empty { display: none; }
.ship { border: 0; padding: 0; display: grid; gap: var(--s2); }
.ship legend { margin-bottom: var(--s2); padding: 0; }
.tick.field { display: flex; }
.form__foot { display: grid; gap: var(--s3); justify-items: start; margin-top: var(--s3); }
.form__note { font-size: var(--fs-small); color: #3a352c; max-width: 50ch; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 4px solid currentColor; border-right-color: transparent; display: none; animation: spin 0.8s linear infinite; }
.form.is-loading .spin { display: inline-block; }
.form.is-loading input, .form.is-loading .row { opacity: 0.6; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice { display: flex; gap: var(--s3); padding: var(--s4); border: var(--line) solid var(--ink); border-radius: var(--r-m); }
.notice--error { background: var(--pink); }
.notice--error .ic { color: #b30d17; width: 28px; height: 28px; }
.notice p { margin-bottom: var(--s1); }

.done { position: relative; display: grid; gap: var(--s4); padding-top: var(--s6); }
.done:focus, .done:focus-visible { outline: 0; box-shadow: none; }
.burst--done { position: relative; width: 150px; justify-self: start; animation: burst 0.6s var(--ease-out) both; }
.done h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); }
.done__lines { margin: 0; display: grid; gap: var(--s1); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r-m); padding: var(--s4); }
.done__lines div { display: flex; justify-content: space-between; gap: var(--s4); }
.done__lines dd { margin: 0; font-weight: 700; }
.done .btn { justify-self: start; }

/* ---------- questions ---------- */
.faq { background: var(--paper); }
.faq h2 { margin-bottom: var(--s7); }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6) var(--s7); }
.q { border: var(--line) solid var(--ink); border-radius: var(--r-l); background: var(--white); }
.q:nth-child(4n+1), .q:nth-child(4n) { background: var(--yellow); }
.q summary { list-style: none; cursor: pointer; padding: var(--s4) var(--s5); font-family: var(--display); font-size: 1.3rem; line-height: 1.15; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; min-height: 64px; }
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ink); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 12h12M12 6v12'/%3E%3C/svg%3E") center/20px no-repeat; transition: transform 0.3s var(--ease-out); }
.q[open] summary::after { transform: rotate(45deg); }
.q p { padding: 0 var(--s5) var(--s5); max-width: 60ch; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: var(--s8) var(--gutter) var(--s6); display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: var(--s6); }
.foot__name { font-family: var(--display); font-size: 3.4rem; color: var(--yellow); line-height: 1; margin-bottom: var(--s3); }
.foot__info { margin: 0; display: grid; gap: var(--s3); }
.foot__info dt { font-weight: 800; color: var(--yellow); }
.foot__info dd { margin: 0; }
.foot__nav { display: grid; align-content: start; gap: 0; }
.foot__nav a { min-height: 40px; display: inline-flex; align-items: center; font-weight: 700; }
.foot__small { grid-column: 1 / -1; border-top: 2px solid #3a3a3a; padding-top: var(--s4); font-size: var(--fs-small); color: #d8cfba; }
.foot a:focus-visible { box-shadow: 0 0 0 9px var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .bagbtn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-top: var(--s6); }
  .hero__copy { justify-self: start; padding-bottom: 0; max-width: 720px; }
  .hero__art { width: min(100%, 680px); justify-self: center; transform: rotate(-6deg) translate(0, 12%); margin-top: var(--s7); }
  .build__grid, .shoot__grid, .how__grid, .order__grid { grid-template-columns: 1fr; }
  .stage, .summary { position: relative; top: 0; }
  .stage { max-width: 680px; width: 100%; }
  .calc { grid-template-columns: 1fr; }
  .calc__in { border-right: 0; border-bottom: var(--line-fat) solid var(--ink); }
  .summary { max-width: 560px; }
  .vf { max-width: 520px; width: 100%; }
}
@media (max-width: 760px) {
  section { padding-block: var(--s8); }
  .build__head, .film__head, .shoot__head { grid-template-columns: 1fr; gap: var(--s4); }
  .balloon--think { margin-left: var(--s6); }
  .specs__grid, .faq__list { grid-template-columns: 1fr; }
  .faq__list { gap: var(--s4); }
  .swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sw__chip { width: 44px; height: 44px; }
  .sw__name { font-size: 0.75rem; }
  .foot { grid-template-columns: 1fr; }
  .shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s3); padding: 0; border-bottom: 0; }
  .box { border-bottom: 10px solid var(--ink); align-content: end; }
  .box figcaption { white-space: normal; text-align: center; }
  .box__face, .box--five .box__face { width: min(100%, 150px); aspect-ratio: 3 / 3.2; }
  /* no empty band above the camera until the first print needs the room */
  .taker__rig { transition: aspect-ratio 0.5s var(--ease-out), margin-top 0.5s var(--ease-out); }
  .taker__rig:not(:has(.taker__print:not([hidden]))) { aspect-ratio: 420 / 340; margin-top: -14%; }
}
@media (max-width: 480px) {
  :root { --fs-body: 1rem; }
  .top { gap: var(--s3); }
  .mark { font-size: 1.35rem; }
  .bagbtn span { display: none; }
  .hero__name { -webkit-text-stroke-width: 8px; font-size: 3.1rem; }
  .balloon--hero { margin-left: 0; padding: 1.3em 1.6em; }
  .balloon--hero::before, .balloon--hero::after { display: none; }
  .opt, .checkout, .calc__in, .calc__out { padding: var(--s4); }
  .vf { padding: var(--s3); }
  .row { padding: var(--s3); }
  .pack { grid-template-columns: 1fr auto; }
  .pack__p { grid-row: 1; grid-column: 2; }
  .pack .step { grid-column: 1 / -1; justify-self: start; }
  .field-row { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 0; }
  .shutter { padding-right: var(--s5); font-size: 1.05rem; }
  .total__sum b { font-size: 2rem; }
}

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