/* Halide Lab. Grotesk for words, typewriter for anything that would be on a lab ticket. */
@font-face {
  font-family: "Familjen Grotesk";
  src: url(../fonts/familjen-grotesk-latin-wght-normal.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Familjen Grotesk";
  src: url(../fonts/familjen-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  src: url(../fonts/courier-prime-latin-400-normal.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  src: url(../fonts/courier-prime-latin-ext-400-normal.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Courier Prime";
  src: url(../fonts/courier-prime-latin-700-normal.woff2) format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Courier Prime";
  src: url(../fonts/courier-prime-latin-ext-700-normal.woff2) format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --ink: #1a1410;
  --ink-raised: #231b15;
  --rule: #3b2f26;
  --paper: #f0e6d6;
  --paper-dim: #b9ab96;
  --print: #e9dcc6;          /* fibre paper the contact sheet is printed on */
  --print-dim: #5c4a39;
  --amber: #ff8a1f;
  --red: #c2402a;
  --base: #5b2c10;           /* developed C-41 film base */
  --grot: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --sweep: cubic-bezier(0.45, 0.05, 0.3, 1);
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1480px;
  /* distance from the viewport edge to the text column, used by art that bleeds off the page */
  --edge: max(var(--gut), calc((100vw - var(--maxw)) / 2 + var(--gut)));
  /* two section rhythms: a full break between subjects, a tight one inside them */
  --sec: clamp(64px, 6.5vw, 112px);
  --sec-tight: clamp(40px, 4vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html:focus-within { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink) url(../img/grain.webp) repeat;
  background-size: 128px 128px;
  color: var(--paper);
  font: 400 17px/1.55 var(--grot);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: break-word; }
p, li, figcaption, address, small { text-wrap: pretty; }
p { margin: 0; }
figure { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--ink); padding: 10px 14px; font: 700 15px var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(26, 20, 16, 0.94); border-bottom: 1px solid var(--rule); }
.top-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); height: 60px; display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; transition: color .15s; }
.mark:hover, .mark:focus-visible { color: var(--amber); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { font: 500 15px var(--grot); text-decoration: none; color: var(--paper-dim); padding: 6px 0; transition: color .15s; }
.top nav a:hover, .top nav a:focus-visible { color: var(--amber); }
.open { display: flex; align-items: center; gap: 8px; font: 400 14px var(--mono); color: var(--paper-dim); white-space: nowrap; }
.lamp { width: 8px; height: 8px; background: var(--rule); box-shadow: 0 0 0 1px var(--paper-dim) inset; }
.open.is-open .lamp { background: var(--amber); box-shadow: none; }
.open.is-open { color: var(--paper); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow-x: clip; padding-top: clamp(28px, 6vh, 64px); }
.hero-bg {
  position: absolute; z-index: -1; top: 0; right: 0; width: 62%; height: calc(100% - 120px); object-fit: cover; object-position: 60% 30%;
  opacity: .78;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(0deg, transparent 0, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 42%), linear-gradient(0deg, transparent 0, #000 40%);
  mask-composite: intersect;
}
.hero-copy { position: relative; }
.hero h1 { font-size: clamp(40px, 5.8vw, 96px); max-width: 11.5em; line-height: 1.06; letter-spacing: -0.02em; }
.hero-row { display: flex; align-items: flex-end; gap: 20px 40px; margin-top: 26px; flex-wrap: wrap; }
.hero-sub { max-width: 30em; font-size: clamp(17px, 1.4vw, 21px); color: var(--paper); opacity: .9; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; font: 700 17px var(--grot); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover, .btn-amber:focus-visible { background: #ffa04a; }
.btn-amber:focus-visible { outline-color: var(--paper); }

/* ---------- negative strip ---------- */
.strip { position: relative; margin-top: clamp(28px, 5vh, 48px); }
.strip-hint { font: 400 15px var(--grot); color: var(--paper-dim); padding: 0 var(--gut); margin-bottom: 10px; max-width: var(--maxw); margin-inline: auto; }
.strip-viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; transform: rotate(-1.2deg); margin-inline: -12px; }
.strip-viewport::-webkit-scrollbar { display: none; }
.strip-track { display: flex; width: max-content; }
.strip:not(.is-looping) .strip-set { padding-inline: 28px; } /* swipe row: first and last frame clear the page edge */
.strip.is-looping .strip-viewport { overflow: clip; } /* clip: focus can never scroll it sideways */
.strip.is-looping .strip-track { animation: slide var(--loop, 60s) linear infinite; }
.strip.is-paused .strip-track,
.strip.is-looping .strip-track:hover,
.strip.is-looping .strip-track:focus-within { animation-play-state: paused; }
@keyframes slide { to { transform: translate3d(calc(-100% / 3), 0, 0); } }

.strip-set {
  --fw: clamp(168px, 18vw, 330px);
  list-style: none; margin: 0; padding: 30px 0; display: flex; gap: 14px; padding-inline: 7px;
  background-color: var(--base);
  /* sprocket holes, top and bottom rows */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect x='6' y='5' width='12' height='9' rx='2' fill='%231a1410'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Crect x='6' y='4' width='12' height='9' rx='2' fill='%231a1410'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 170, 90, .16), rgba(0, 0, 0, .22));
  background-repeat: repeat-x, repeat-x, no-repeat;
  background-position: 0 2px, 0 calc(100% - 2px), 0 0;
  background-size: 24px 18px, 24px 18px, 100% 100%;
}
.frame { position: relative; flex: 0 0 auto; }
.edge {
  position: absolute; left: 0; top: -22px; font: 700 11px/1 var(--mono); color: #ffb26a; opacity: .8; letter-spacing: .04em;
  display: flex; gap: calc(var(--fw) * .34); white-space: nowrap; pointer-events: none;
}
.edge i { font-style: normal; }
.neg {
  display: block; width: var(--fw); aspect-ratio: 3 / 2; padding: 0; border: 0; background: none; cursor: pointer;
  color: inherit; -webkit-tap-highlight-color: transparent;
}
.neg:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
/* One frame through the scanner: the light bar crosses left to right and the
   positive is written in behind it. Mask and bar share one 300%-wide gradient
   geometry, so the bar always sits exactly on the edge of the positive. */
.neg-card { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 3px; }
.face { position: absolute; inset: 0; overflow: hidden; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face-neg img { filter: invert(1) contrast(.88) brightness(.9) saturate(.22); }
.face-neg::after { /* orange mask of a colour negative */
  content: ""; position: absolute; inset: 0; background: #ff8a1f; mix-blend-mode: multiply;
}
.face-pos {
  -webkit-mask: linear-gradient(90deg, #000 49.5%, transparent 50.5%) 100% 0 / 300% 100% no-repeat;
  mask: linear-gradient(90deg, #000 49.5%, transparent 50.5%) 100% 0 / 300% 100% no-repeat;
  transition: -webkit-mask-position .7s var(--sweep), mask-position .7s var(--sweep);
}
.neg-card::after { /* the scanner's light bar */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent 47.6%, rgba(255, 196, 120, .35) 49%, rgba(255, 246, 228, .95) 50%, rgba(255, 196, 120, .35) 51%, transparent 52.4%) 100% 0 / 300% 100% no-repeat;
  transition: background-position .7s var(--sweep);
}
.neg[aria-pressed="true"] .face-pos,
.neg.is-auto .face-pos { -webkit-mask-position: 0 0; mask-position: 0 0; }
.neg[aria-pressed="true"] .neg-card::after,
.neg.is-auto .neg-card::after { background-position: 0 0; }
@media (hover: hover) {
  .neg:not(.no-preview):hover .face-pos { -webkit-mask-position: 0 0; mask-position: 0 0; }
  .neg:not(.no-preview):hover .neg-card::after { background-position: 0 0; }
}

/* the hero owns the first screen on desktop: copy at the top, the strip on the fold */
@media (min-width: 861px) and (min-height: 640px) {
  .hero { display: flex; flex-direction: column; min-height: calc(100svh - 61px); padding-bottom: clamp(28px, 4.5vh, 48px); }
  .hero-copy { padding-bottom: clamp(28px, 5vh, 48px); }
  .strip { margin-top: auto; }
}

/* ---------- shared section bits ---------- */
section[id] { padding-block: var(--sec); }
h2 { font-size: clamp(34px, 4.4vw, 66px); line-height: 1.08; letter-spacing: -0.02em; }
.lede { margin-top: 16px; max-width: 40em; color: var(--paper-dim); font-size: 18px; }

/* price list rows: name, dot leader, price */
.pl { margin: 0; font: 400 15px/1.35 var(--mono); }
.pl > div { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; }
.pl dt { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(14px, 1fr); column-gap: 8px; align-items: baseline; }
.pl dt::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 2px dotted rgba(185, 171, 150, .45); transform: translateY(-4px); }
.pl dt small { grid-column: 1 / -1; font-size: 13px; color: var(--paper-dim); line-height: 1.3; }
.pl dd { margin: 0; flex: 0 0 auto; font-weight: 700; color: var(--paper); text-align: right; }

/* ---------- prices ---------- */
/* one printed price sheet, punched along both edges like the film it prices */
.tickets {
  --hole: radial-gradient(circle 6px at 15px 0, transparent 6px, #000 6.5px);
  --hole-b: radial-gradient(circle 6px at 15px 100%, transparent 6px, #000 6.5px);
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 0;
  background: var(--ink-raised); padding: 44px 0 40px;
  -webkit-mask: var(--hole) top / 30px 51% repeat-x, var(--hole-b) bottom / 30px 51% repeat-x;
  mask: var(--hole) top / 30px 51% repeat-x, var(--hole-b) bottom / 30px 51% repeat-x;
}
.ticket { padding: 0 clamp(18px, 2.6vw, 44px); }
.ticket + .ticket { border-left: 1px dashed var(--rule); }
.ticket h3 { font-size: 24px; margin-bottom: 14px; }
.pl-two dd { min-width: 3.4em; }
.pl-head { padding-bottom: 2px !important; }
.pl-head dt::after { border: 0; }
.pl-head dd { font-weight: 400; color: var(--paper-dim); font-size: 13px; }
.ticket-note { margin-top: 18px; font-size: 15px; color: var(--paper-dim); }

/* ---------- post your film ---------- */
section.post { padding-bottom: var(--sec-tight); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .2) 18%, rgba(0, 0, 0, .2) 82%, rgba(0, 0, 0, 0)); }
.post-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; max-width: 36em; color: var(--paper-dim); }
.steps b { color: var(--paper); font-weight: 600; }

.label { justify-self: center; width: 100%; max-width: 480px; }
.label-card {
  --tilt: 1.6deg;
  position: relative; background: #e9dcc6; color: var(--ink); padding: 30px 30px 26px; transform: rotate(var(--tilt));
  font: 400 17px/1.4 var(--mono);
  box-shadow: 2px 3px 2px rgba(8, 5, 3, .45), 6px 10px 18px -6px rgba(8, 5, 3, .55); /* one light, from the upper left */
  background-image: url(../img/grain.webp); background-size: 128px;
}
.label-to { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #6b5a48; }
.label-name { font: 700 34px/1.05 var(--grot); letter-spacing: -0.02em; margin: 4px 0 12px; }
.label-line { margin-top: 6px; }
.label-line.small { font-size: 15px; }
.label-card hr { border: 0; border-top: 2px dashed rgba(26, 20, 16, .35); margin: 18px 0 12px; }
/* the stamp sits in normal flow under the address, so it can never cover a line of it */
.label-stamp {
  display: inline-block; margin-top: 30px; transform: rotate(-5deg); transform-origin: left center; /* margin clears the raised corner */
  border: 3px solid var(--red); color: var(--red); padding: 6px 10px; font: 700 14px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  opacity: .9;
}
.label figcaption { margin-top: 26px; font-size: 15px; line-height: 1.45; color: var(--paper-dim); max-width: 34em; }

/* ---------- repair ---------- */
/* the bench photo runs off the left edge of the page, the copy keeps the text column */
section.repair { padding-top: var(--sec-tight); }
.repair-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: stretch; }
.repair-photo { position: relative; overflow: hidden; margin-left: calc(-1 * var(--edge)); min-height: 520px; }
.repair-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: contrast(1.04); }
.repair-copy { padding-block: clamp(8px, 2vw, 32px); }
.brands { list-style: none; margin: 28px 0 0; padding: 0; font: 400 16px/1.7 var(--mono); color: var(--paper); max-width: 40em; }
.brands li { display: inline; white-space: nowrap; }
.brands li:last-child { white-space: normal; } /* the Minox note is a phrase, not a model name */
.brands li:not(:last-child)::after { content: ", "; color: var(--paper-dim); white-space: normal; }
.pl-repair { margin-top: 30px; font-size: 16px; max-width: 46em; }
.quote { margin: 30px 0 0; padding-left: 18px; border-left: 3px solid var(--amber); max-width: 34em; }
.quote p { font-size: 19px; line-height: 1.5; }
.quote footer { margin-top: 6px; font: 400 14px var(--mono); color: var(--paper-dim); }

/* ---------- scans: a contact sheet on fibre paper ---------- */
.scans {
  color: var(--ink);
  background: var(--print) url(../img/grain.webp) repeat; background-size: 128px 128px;
  /* deckled top and bottom edges, the way a fibre print comes off the roll */
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='10'%3E%3Cpath d='M0 10V2.7L5 2.0L9 1.8L15 2.8L18 5.5L21 2.2L28 4.3L31 4.6L36 3.2L43 4.1L46 1.5L53 1.5L57 2.3L60 4.8L63 3.5L69 2.9L75 4.3L78 3.6L82 2.8L85 5.4L92 4.9L98 2.5L101 4.2L108 4.0L111 5.8L115 5.1L122 2.7L125 6.4L132 1.8L139 3.4L145 5.2L148 2.0L152 3.8L155 1.4L162 4.7L170 2.7V10z'/%3E%3C/svg%3E") top left / 170px 10px repeat-x,
    linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 18px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='10'%3E%3Cpath d='M0 0V7.3L5 8.0L9 8.2L15 7.2L18 4.5L21 7.8L28 5.7L31 5.4L36 6.8L43 5.9L46 8.5L53 8.5L57 7.7L60 5.2L63 6.5L69 7.1L75 5.7L78 6.4L82 7.2L85 4.6L92 5.1L98 7.5L101 5.8L108 6.0L111 4.2L115 4.9L122 7.3L125 3.6L132 8.2L139 6.6L145 4.8L148 8.0L152 6.2L155 8.6L162 5.3L170 7.3V0z'/%3E%3C/svg%3E") bottom left / 170px 10px repeat-x;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='10'%3E%3Cpath d='M0 10V2.7L5 2.0L9 1.8L15 2.8L18 5.5L21 2.2L28 4.3L31 4.6L36 3.2L43 4.1L46 1.5L53 1.5L57 2.3L60 4.8L63 3.5L69 2.9L75 4.3L78 3.6L82 2.8L85 5.4L92 4.9L98 2.5L101 4.2L108 4.0L111 5.8L115 5.1L122 2.7L125 6.4L132 1.8L139 3.4L145 5.2L148 2.0L152 3.8L155 1.4L162 4.7L170 2.7V10z'/%3E%3C/svg%3E") top left / 170px 10px repeat-x,
    linear-gradient(#000 0 0) 0 9px / 100% calc(100% - 18px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='10'%3E%3Cpath d='M0 0V7.3L5 8.0L9 8.2L15 7.2L18 4.5L21 7.8L28 5.7L31 5.4L36 6.8L43 5.9L46 8.5L53 8.5L57 7.7L60 5.2L63 6.5L69 7.1L75 5.7L78 6.4L82 7.2L85 4.6L92 5.1L98 7.5L101 5.8L108 6.0L111 4.2L115 4.9L122 7.3L125 3.6L132 8.2L139 6.6L145 4.8L148 8.0L152 6.2L155 8.6L162 5.3L170 7.3V0z'/%3E%3C/svg%3E") bottom left / 170px 10px repeat-x;
}
.scans h2 { color: var(--ink); }
.scans :focus-visible { outline-color: var(--ink); }
/* strips of three frames, cut from one roll; the rebate prints dark, the holes darker */
.sheet { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; row-gap: 36px; }
.rebate {
  position: relative; padding: 24px 7px 36px;
  background-color: #261d16;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Crect x='6' y='4' width='10' height='8' rx='1.5' fill='%230c0907'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='16'%3E%3Crect x='6' y='4' width='10' height='8' rx='1.5' fill='%230c0907'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-size: 22px 16px; background-position: 0 2px, 0 calc(100% - 14px);
}
.rebate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.rebate .edge { top: auto; bottom: 4px; left: 14px; right: 14px; gap: 0; justify-content: space-between; color: #cdbb9f; opacity: .75; font-size: 10px; }
.shot figcaption { margin-top: 12px; padding-inline: 4px 14px; font: 400 13px/1.35 var(--mono); color: var(--print-dim); }
.shot figcaption b { display: block; color: var(--ink); font: 600 16px/1.3 var(--grot); margin-bottom: 2px; }
.sheet-note { margin-top: 28px; color: var(--print-dim); font-size: 15px; max-width: 40em; }

/* ---------- find us ---------- */
.find-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.find address { margin-top: 24px; font: 400 18px/1.5 var(--mono); font-style: normal; }
.hours { margin: 26px 0 0; font: 400 16px var(--mono); max-width: 22em; }
.hours > div { display: flex; justify-content: space-between; padding: 7px 0; }
.hours > div + div { border-top: 1px dashed var(--rule); }
.hours dt { color: var(--paper-dim); }
.hours dd { margin: 0; font-weight: 700; }
.how { margin-top: 24px; color: var(--paper-dim); max-width: 30em; }
.memo {
  position: relative; margin-top: 28px; max-width: 21em; padding: 18px 20px 16px; transform: rotate(-1.4deg);
  background: var(--print) url(../img/grain.webp); background-size: 128px; color: var(--ink);
  font: 400 15px/1.5 var(--mono); box-shadow: 2px 3px 2px rgba(8, 5, 3, .45);
}
.memo::before { /* a strip of masking tape */
  content: ""; position: absolute; top: -9px; left: 50%; width: 76px; height: 20px; margin-left: -38px; transform: rotate(3deg);
  background: rgba(233, 214, 160, .7);
}
.memo-date { font-weight: 700; color: var(--red); margin-bottom: 4px; }
.memo-sign { margin-top: 8px; text-align: right; }
.contact { margin-top: 18px; font: 700 17px/1.5 var(--mono); }
.contact a { display: inline-block; padding-block: 6px; text-decoration-color: var(--amber); text-underline-offset: 4px; transition: color .15s; }
.contact a:hover, .contact a:focus-visible { color: var(--amber); }
.map { margin-right: calc(-1 * var(--edge)); } /* the street plan runs off the right edge */
.map svg { display: block; width: 100%; height: clamp(420px, 36vw, 600px); }
.map figcaption { margin-top: 10px; font-size: 14px; color: var(--paper-dim); }

/* ---------- footer ---------- */
.foot { background: rgba(0, 0, 0, .28); padding: 32px 0 40px; }
.foot-in { display: grid; grid-template-columns: 4fr 6fr; gap: 16px clamp(32px, 5vw, 96px); font-size: 14px; line-height: 1.55; color: var(--paper-dim); }
.foot b { color: var(--paper); }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .top nav { gap: 16px; }
  .open { display: none; }
  .tickets { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .ticket:nth-child(2) { grid-column: 1 / -1; grid-row: 1; border-left: 0; }
  .ticket:nth-child(3) { border-left: 1px dashed var(--rule); }
  .ticket:nth-child(1) { border-left: 0; }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .open { display: flex; margin-left: auto; }
  .hero-bg { width: 100%; height: 64%; opacity: .36; object-position: 50% 20%; -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 60%); mask-image: linear-gradient(0deg, transparent 0, #000 60%); -webkit-mask-composite: source-over; mask-composite: add; }
  .tickets, .post-grid, .repair-grid, .find-grid { grid-template-columns: minmax(0, 1fr); }
  .ticket, .ticket:nth-child(3) { border-left: 0; }
  .ticket + .ticket, .ticket:nth-child(1) { border-top: 1px dashed var(--rule); padding-top: 30px; }
  .ticket:nth-child(2) { border-top: 0; padding-top: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .repair-photo { min-height: 0; margin-left: 0; }
  .repair-photo img { position: static; aspect-ratio: 3 / 2; }
  .map { margin-right: 0; }
  .map svg { height: 330px; }
  .label { justify-self: start; }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .rebate { padding-block: 20px 30px; }
  .rebate .edge { left: 10px; right: 10px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 38px; }
  .ticket { padding-inline: 16px; }
  .pl { font-size: 14px; }
  .label-card { --tilt: 1deg; padding: 24px 20px 22px; }
  .label-name { font-size: 28px; }
  .open { font-size: 13px; }
  .shot figcaption { padding-right: 6px; }
  .shot figcaption b { font-size: 15px; }
}

/* ---------- scroll-driven motion: only moves what is already on screen ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ticket { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .ticket:nth-child(2) { animation-range: entry 8% entry 63%; }
    .ticket:nth-child(3) { animation-range: entry 16% entry 71%; }
    @media (min-width: 861px) { .label-card { animation: lay-down linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; } }
    .repair-photo img { animation: settle linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* each print comes up like it does in the developer tray */
    .rebate img { animation: develop linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
  }
}
@keyframes rise { from { transform: translateY(20px); } to { transform: none; } }
@keyframes lay-down { from { transform: translateY(-22px) rotate(calc(var(--tilt) + 2.5deg)); } to { transform: rotate(var(--tilt)); } }
@keyframes settle { from { transform: scale(1.08) translateY(-2%); } to { transform: scale(1) translateY(1.5%); } }
@keyframes develop { from { filter: brightness(1.3) contrast(.75) sepia(.35); } to { filter: none; } }

@media (prefers-reduced-motion: reduce) {
  html, html:focus-within { scroll-behavior: auto; }
  .strip-track { animation: none !important; }
  .face-pos, .neg-card::after { transition: none; }
  .btn, .top nav a, .mark, .contact a { transition: none; }
}
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .top { position: static; }
  .scans { -webkit-mask: none; mask: none; }
}
