/* Kodak 001 — Some moments deserve paper.
   Direct-flash nights on deep charcoal; prints on warm photographic white; Kodak yellow, occasional red. */

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-wdth-normal.woff2") format("woff2-variations"),
       url("assets/fonts/instrument-sans-latin-wdth-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --char: #1c1a18;
  --char-2: #2a2724;
  --paper: #f6f2ea;       /* warm photographic white */
  --paper-2: #ece6da;
  --white: #fcfbf8;
  --ink: #1c1a18;
  --ink-2: #4d463e;
  --on-dark: #f3eee5;
  --on-dark-2: #c9c0b3;
  --yellow: #fab617;      /* Kodak yellow, as on the camera */
  --red: #d8262f;         /* the C210R badge */
  --rule: rgba(28, 26, 24, 0.16);
  --rule-dark: rgba(243, 238, 229, 0.2);
  --gutter: clamp(20px, 6vw, 96px);
  --badge-clear: 0px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-body: 17px;
  --t-label: 12.5px;
  --t-h2: clamp(32px, 4.4vw, 64px);
  --t-headline: clamp(44px, 6.4vw, 108px);
  color-scheme: light;
}
@media (max-width: 699px) { :root { --badge-clear: 80px; --t-h2: clamp(30px, 8.6vw, 38px); --t-headline: clamp(42px, 12.6vw, 56px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--char); color: var(--ink);
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body); line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 640; font-stretch: 82%; line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
button { font-family: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
.keep :focus-visible, .meet :focus-visible, .closing :focus-visible, .ready__spec :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: var(--ink); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

.label { font-size: var(--t-label); font-weight: 620; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.label--light { color: var(--on-dark-2); }
.headline { font-size: var(--t-headline); font-weight: 660; line-height: 0.95; letter-spacing: -0.028em; }

/* a physical print: border around the photograph only */
.print { background: var(--white); padding: 4.5% 4.5% 4.5%; box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 18px 40px -18px rgba(40, 30, 20, 0.45); }
.print img { width: 100%; aspect-ratio: 3.4 / 2.1; object-fit: cover; }

/* ---------- 1 · The moment ---------- */
.moment { display: grid; background: var(--char); color: var(--on-dark); }
.moment__photo { position: relative; overflow: hidden; }
.moment__photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 48% 60%); }
.moment__copy { padding: 26px var(--gutter) 30px; }
.moment__copy .label { color: var(--yellow); }
.moment__copy .headline { margin-top: 14px; }
.moment__camera { background: var(--paper); color: var(--ink); padding: 28px var(--gutter) 34px; display: grid; gap: 16px; }
.moment__camera img { width: min(100%, 520px); mix-blend-mode: multiply; }
.moment__camera p { max-width: 34ch; color: var(--ink-2); }
@media (max-width: 899px) {
  .moment { grid-template-rows: auto auto auto; }
  .moment__photo { aspect-ratio: 4 / 4.4; max-height: 64svh; width: 100%; }
}
@media (min-width: 900px) {
  .moment { grid-template-columns: 60fr 40fr; grid-template-rows: 1fr auto; min-height: 100svh; }
  .moment .headline { font-size: clamp(44px, 4.3vw, 84px); }
  .moment .hl { display: block; white-space: nowrap; }
  .moment__photo { grid-row: 1 / span 2; }
  .moment__copy { grid-column: 2; align-self: end; padding: 64px var(--gutter) 40px 48px; }
  .moment__camera { grid-column: 2; padding: 40px var(--gutter) 48px 48px; align-content: start; }
}

/* ---------- 2–3 · Frame it, capture to print ---------- */
.capture { background: var(--char); color: var(--on-dark); padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(64px, 8vw, 120px); }
.capture__head { max-width: 640px; }
.capture__head h2 { font-size: var(--t-h2); margin: 12px 0 16px; }
.capture__lede { color: var(--on-dark-2); max-width: 40ch; }
.capture__note { margin-top: 28px; font-size: 14px; color: var(--on-dark-2); max-width: 64ch; }

.rig { position: relative; margin-top: clamp(32px, 5vw, 56px); display: grid; gap: 24px; justify-items: center; }
@media (min-width: 900px) {
  .rig { grid-template-columns: minmax(0, 640px) 240px; justify-content: center; grid-template-areas: "stage press" "stage controls" "status status"; align-items: center; column-gap: 72px; justify-items: start; }
  .capture__head, .capture__note { margin-left: auto; margin-right: auto; max-width: 952px; }
  .capture__head h2, .capture__lede { max-width: 40ch; }
  .screen, .printing { grid-area: stage; }
  .press { grid-area: press; align-self: end; }
  .controls { grid-area: controls; align-self: start; }
  .status { grid-area: status; }
}

/* the camera's own screen: small, landscape, colour; framed by its dark body */
.screen {
  position: relative; width: min(100%, 620px); aspect-ratio: 4 / 3; overflow: hidden;
  border: 12px solid #0f0e0d; border-radius: 10px; background: #000;
  box-shadow: 0 0 0 1px #3a3632;
}
.screen__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 48% 60%); transition: transform 0.5s var(--ease); }
.screen__dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.screen__tag {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--on-dark); background: rgba(0, 0, 0, 0.55); border-radius: 2px; opacity: 0;
}

.press { display: grid; justify-items: center; gap: 12px; text-align: center; }
.shutter {
  display: grid; justify-items: center; gap: 14px; background: none; border: 0; padding: 6px; color: var(--on-dark); cursor: pointer;
  font-size: 17px; font-weight: 600;
}
.shutter__ring {
  width: 84px; height: 84px; border-radius: 50%; background: var(--yellow);
  box-shadow: inset 0 0 0 6px var(--char), 0 0 0 2px var(--yellow);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.shutter:hover .shutter__ring { box-shadow: inset 0 0 0 5px var(--char), 0 0 0 2px var(--yellow); }
.shutter:active .shutter__ring, .rig.is-pressed .shutter__ring { transform: scale(0.92); }
.shutter[aria-disabled="true"] { cursor: default; opacity: 0.45; }
.shutter:focus-visible { outline-offset: 6px; border-radius: 50%; }
.press__hint { font-size: 14px; color: var(--on-dark-2); }

.printing { display: none; width: min(100%, 620px); }
.paper { background: var(--white); padding: 4.5%; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); }
.paper__img { position: relative; aspect-ratio: 3.4 / 2.1; overflow: hidden; background: var(--white); }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 48% 60%); opacity: 0; transition: opacity 0.6s linear; }
.layer--y { filter: url(#pass-y); }
.layer--ym { filter: url(#pass-ym); }
.laminate {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, transparent 60%);
  background-size: 260% 100%; background-position: 120% 0;
}
.passes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.passes li { font-size: 13px; font-weight: 600; color: var(--on-dark-2); }
.passes li::before { content: ""; display: block; height: 3px; margin-bottom: 8px; background: var(--rule-dark); }
.passes li[data-pass="1"]::before { --c: #f2d200; }
.passes li[data-pass="2"]::before { --c: #e3007f; }
.passes li[data-pass="3"]::before { --c: #00a6dd; }
.passes li[data-pass="4"]::before { --c: var(--on-dark); }
.passes li.is-done { color: var(--on-dark); }
.passes li.is-done::before { background: var(--c); }

.controls { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; min-height: 44px; }
.ctl {
  min-height: 44px; padding: 11px 18px; background: none; color: var(--on-dark); border: 1px solid var(--rule-dark); border-radius: 2px;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.ctl:hover { border-color: var(--on-dark); }
.ctl--again { border-color: var(--yellow); }
.status { min-height: 1.5em; font-size: 15px; color: var(--on-dark); text-align: center; }
@media (min-width: 900px) { .status { text-align: left; } }
.filters { position: absolute; }

/* states */
.rig[data-state="preview"] .screen__tag, .rig[data-state="capture"] .screen__tag { opacity: 1; }
.rig[data-state="printing"] .screen, .rig[data-state="done"] .screen { display: none; }
.rig[data-state="printing"] .printing, .rig[data-state="done"] .printing { display: block; }
.rig[data-state="printing"] .press, .rig[data-state="done"] .press { display: none; }
.rig[data-state="done"] .layer { opacity: 1; }
.rig[data-state="done"] .passes li { color: var(--on-dark); }
.rig[data-state="done"] .passes li::before { background: var(--c); }
.rig.p1 .layer--y, .rig.p2 .layer--ym, .rig.p3 .layer--ymc { opacity: 1; }
.rig.p4 .laminate { opacity: 1; animation: sheen 1.1s var(--ease) forwards; }
@keyframes sheen { from { background-position: 120% 0; } to { background-position: -40% 0; } }

/* no JavaScript: show the finished print, not the controls */
html:not(.js) .press, html:not(.js) .controls, html:not(.js) .screen { display: none; }
html:not(.js) .printing { display: block; }
html:not(.js) .layer--ymc { opacity: 1; }

/* ---------- 4 · Something to keep ---------- */
.keep { background: var(--paper); padding: clamp(80px, 12vw, 180px) var(--gutter); display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.keep__print { justify-self: center; width: min(100%, 560px); }
.keep__print .print { transform: rotate(-2deg); }
.print__note { margin-top: 22px; font-size: 14px; color: var(--ink-2); text-align: center; }
.keep__copy h2 { font-size: var(--t-h2); margin: 12px 0 18px; }
.keep__copy p:not(.label) { color: var(--ink-2); max-width: 34ch; }
@media (min-width: 900px) { .keep { grid-template-columns: 1.1fr 0.9fr; } .keep__print { width: min(100%, 640px); } }

/* ---------- 5 · Meet the camera ---------- */
.meet { background: var(--white); padding: clamp(80px, 11vw, 160px) var(--gutter); }
.meet__head h2 { font-size: var(--t-h2); margin: 12px 0 0; max-width: 16ch; }
.meet__camera { margin: clamp(36px, 6vw, 72px) auto 0; max-width: 980px; }
.callouts { position: relative; padding: 46px 0; }
.callouts img { width: 100%; mix-blend-mode: multiply; }
.pins { list-style: none; margin: 0; padding: 0; }
/* labels sit in the bands above and below the photograph; fine leaders run to the exact feature */
.callouts { container-type: inline-size; --band: 40px; padding: var(--band) 0; }
.callouts .pins { position: absolute; inset: 0; }
.pins li { position: absolute; left: var(--x); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink); line-height: 20px; transform: translateX(-50%); }
.pins li::before { content: ""; position: absolute; left: 50%; width: 1px; background: var(--ink); opacity: 0.7; }
.pins li::after { content: ""; position: absolute; left: calc(50% - 4.5px); width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--white); }
/* image is 2:1, so its height is 50cqw and a feature at y sits at band + y * 50cqw */
.pins li[data-side="t"] { top: 0; }
.pins li[data-side="t"]::before { top: 24px; height: calc(var(--band) - 24px + var(--yv) * 50cqw - 4px); }
.pins li[data-side="t"]::after { top: calc(var(--band) + var(--yv) * 50cqw - 4.5px); }
.pins li[data-side="b"] { bottom: 0; }
.pins li[data-side="b"]::before { bottom: 24px; height: calc(var(--band) - 24px + (1 - var(--yv)) * 50cqw - 4px); }
.pins li[data-side="b"]::after { bottom: calc(var(--band) + (1 - var(--yv)) * 50cqw - 4.5px); }
@media (max-width: 699px) { .pins li { font-size: 13px; } }
.ways { display: grid; gap: 36px; margin: clamp(40px, 6vw, 80px) auto 0; max-width: 1100px; }
@media (min-width: 900px) { .ways { grid-template-columns: 1fr 1fr; gap: 64px; } }
.way { border-top: 2px solid var(--ink); padding-top: 18px; }
.way__n { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 0.04em; }
.way h3 { font-size: clamp(24px, 2.4vw, 32px); margin: 8px 0 14px; }
.way ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }

/* ---------- 6 · Ready for the next moment ---------- */
.ready { background: var(--char); color: var(--on-dark); padding: clamp(80px, 11vw, 150px) var(--gutter); display: grid; gap: clamp(32px, 5vw, 64px); }
.ready__copy h2 { font-size: var(--t-h2); margin: 12px 0 18px; max-width: 16ch; }
.ready__copy p:not(.label) { color: var(--on-dark-2); max-width: 44ch; }
.ready__copy strong { color: var(--on-dark); font-weight: 620; }
.needs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; color: var(--on-dark-2); max-width: 48ch; }
.needs li { padding-left: 18px; position: relative; }
.needs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; background: var(--yellow); }
.ready__photo { background: var(--white); overflow: hidden; }
.ready__photo img { width: 100%; }
.ready__spec { grid-column: 1 / -1; background: var(--paper); color: var(--ink); padding: 8px clamp(20px, 3vw, 40px) 24px; }
@media (min-width: 900px) { .ready { grid-template-columns: 1fr 1fr; align-items: center; } }
.ready__spec details { border-bottom: 1px solid var(--rule); }
.ready__spec summary { list-style: none; cursor: pointer; padding: 18px 0; min-height: 48px; font-size: 20px; font-weight: 620; display: flex; justify-content: space-between; align-items: center; }
.ready__spec summary::-webkit-details-marker { display: none; }
.ready__spec summary::after { content: "+"; font-size: 24px; font-weight: 400; }
.ready__spec details[open] summary::after { content: "−"; }
.ready__spec details > p { padding-bottom: 20px; color: var(--ink-2); max-width: 60ch; }
.spec { margin: 0 0 20px; display: grid; }
@media (min-width: 900px) { .spec { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.spec div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.spec dt { color: var(--ink-2); font-size: 15px; }
.spec dd { margin: 0; font-weight: 560; }
.source { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* ---------- 7 · Closing ---------- */
.closing { background: var(--paper); padding: clamp(80px, 11vw, 160px) var(--gutter) clamp(64px, 8vw, 110px); display: grid; justify-items: center; text-align: center; gap: 24px; }
.closing__pair { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: clamp(16px, 4vw, 56px); width: min(100%, 980px); }
.closing__camera { mix-blend-mode: multiply; width: 100%; }
.print--small { transform: rotate(3deg); }
.headline--close { font-size: clamp(38px, 6vw, 92px); margin-top: 18px; }
.closing__actions { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; align-items: center; margin-top: 10px; }
.cta {
  display: inline-flex; align-items: center; min-height: 52px; padding: 15px 24px 14px; background: var(--yellow); color: var(--ink);
  text-decoration: none; font-weight: 650; font-size: 17px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.cta::after { content: "→"; margin-left: 12px; transition: transform 0.25s var(--ease); }
.cta:hover::after { transform: translateX(4px); }
.replay { font-size: 15px; font-weight: 560; background: none; border: 0; color: var(--ink-2); padding: 12px 6px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 5px; }

.foot { background: var(--char); color: var(--on-dark); padding: 26px var(--gutter) calc(30px + var(--badge-clear) + env(safe-area-inset-bottom, 0px)); display: grid; gap: 6px; }
.foot p:first-child { font-weight: 600; }
.foot__small { font-size: 14px; color: var(--on-dark-2); max-width: 70ch; }
.foot__small a { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
