@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("fonts/martian-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --ink: #140b0a;
  --ink-2: #1d1110;
  --ink-3: #2a1916;
  --red-deep: #5c0f09;
  --red: #a81f15;
  --safelight: #e0301e;
  --print: #f6f3ec;
  --print-2: rgba(246, 243, 236, 0.74);
  --print-3: rgba(246, 243, 236, 0.58);
  --line: rgba(246, 243, 236, 0.12);
  --slip: #f2b705;
  --slip-2: #f7d257;
  --slip-ink: #1d1406;
  --slip-ink-2: rgba(29, 20, 6, 0.68);
  --wide: 125%;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--ink-3) var(--ink); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--print);
  font: 400 1.0625rem/1.6 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  caret-color: var(--safelight);
  overflow-x: hidden;
}
::selection { background: var(--safelight); color: var(--print); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--slip); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------- top bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 800; font-stretch: var(--wide); font-size: 1.2rem; letter-spacing: -0.01em; }
.brand small { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--print-2); border: 1px solid rgba(246, 243, 236, 0.28); border-radius: 4px; padding: 3px 6px 2px; text-transform: uppercase; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { text-decoration: none; color: var(--print-2); font-size: 0.9rem; padding: 8px 12px; border-radius: 8px; transition: color 150ms, background-color 150ms; }
.bar nav a:hover { color: var(--print); background: rgba(246, 243, 236, 0.08); }

/* ------------------------------------------------------------- hero: the lit room */
.room {
  position: relative;
  isolation: isolate;
  padding: 132px 0 64px;
  background:
    radial-gradient(120% 70% at 50% -8%, #c22a1b 0%, #9a1c12 26%, #64110a 52%, #2a0b08 78%, var(--ink) 100%);
}
.room::after { /* film grain keeps the red from looking like a flat screen color */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.22; pointer-events: none; mix-blend-mode: overlay;
  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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-copy { max-width: 980px; }
.hero h1 {
  font-weight: 800;
  font-stretch: var(--wide);
  font-size: clamp(2.5rem, 7.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.tag {
  display: inline-block;
  position: relative;
  color: var(--slip-ink);
  background: var(--slip);
  padding: 0.02em 0.16em 0.06em;
  border-radius: 0.12em;
  transform: rotate(-2deg);
  margin: 0 0.04em;
  box-shadow: 0 0.08em 0.22em rgba(0, 0, 0, 0.35);
}
.tag::after { /* the strike that unlabels it */
  content: ""; position: absolute; left: -6%; right: -6%; top: 50%; height: 0.11em; border-radius: 0.06em;
  background: var(--safelight);
  transform-origin: left center;
  transform: rotate(-4deg) scaleX(1);
  animation: strike 700ms var(--ease-out) 450ms both;
  box-shadow: 0 0 0 0.03em var(--slip);
}
@keyframes strike { from { transform: rotate(-4deg) scaleX(0); } }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.5; color: var(--print-2); max-width: 36em; margin: 0; }
.lede strong { color: var(--print); font-weight: 600; }

/* ------------------------------------------------------------- the tray (drop zone) */
.tray {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 44px;
  min-height: 300px;
  padding: 18px;
  border-radius: 34px;
  background: #24100d;
  box-shadow:
    inset 0 2px 0 rgba(255, 170, 150, 0.14),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 200ms var(--ease-out), box-shadow 250ms ease;
}
.tray:active { transform: scale(0.995); }
.bath {
  position: absolute; inset: 18px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 0%, #4a0f0a 0%, #220807 55%, #120403 100%);
  box-shadow: inset 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 -1px 0 rgba(255, 120, 100, 0.12);
}
.bath::before { /* safelight reflection moving on the liquid */
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(closest-side, rgba(255, 80, 55, 0.22), transparent 70%) 30% 20% / 46% 34% no-repeat,
    radial-gradient(closest-side, rgba(255, 110, 80, 0.12), transparent 70%) 70% 60% / 38% 30% no-repeat;
  animation: drift 14s ease-in-out infinite alternate;
}
.bath::after { /* ripple rings when a print goes in */
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%;
  border: 2px solid rgba(255, 120, 95, 0.55); opacity: 0;
}
@keyframes drift { to { transform: translate(6%, 5%) rotate(6deg); } }
.tray.busy .bath::after { animation: ripple 1.6s ease-out infinite; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(9); } }
.tray.over, body.dragging .tray { box-shadow: inset 0 2px 0 rgba(255, 170, 150, 0.2), 0 0 0 3px var(--slip), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.tray.over .bath, body.dragging .tray .bath { background: radial-gradient(90% 120% at 50% 0%, #7a160e 0%, #3a0b07 60%, #160504 100%); }

.tray-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 30px 16px; }
.tray-inner .sheet { width: 64px; height: 50px; margin-bottom: 4px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5)); transform: rotate(-6deg); transition: transform 300ms var(--ease-out); }
.tray:hover .sheet { transform: rotate(-2deg) translateY(-4px); }
.tray-inner strong { font-weight: 750; font-stretch: 112%; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -0.015em; }
.tray-inner .hint { font-family: var(--mono); font-size: 0.72rem; color: var(--print-3); letter-spacing: 0.02em; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-stretch: 108%; font-size: 0.98rem; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 120ms var(--ease-out), background-color 150ms, color 150ms, box-shadow 150ms;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-slip { background: var(--slip); color: var(--slip-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.12); }
.btn-slip:hover { background: var(--slip-2); }
.btn-ink { background: var(--slip-ink); color: var(--slip); }
.btn-ink:hover { background: #33240b; }
.btn-ghost { background: transparent; color: var(--print-2); padding: 0 14px; }
.btn-ghost:hover { color: var(--print); background: rgba(246, 243, 236, 0.08); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn[hidden] { display: none; }

.promises { display: flex; flex-wrap: wrap; gap: 8px 26px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 0.92rem; color: var(--print-2); }
.promises li { display: flex; align-items: center; gap: 8px; }
.promises svg { width: 16px; height: 16px; color: var(--slip); }

/* chase light: one bulb per photo */
.progress { display: flex; align-items: center; gap: 16px; margin-top: 22px; min-height: 22px; }
.progress[hidden] { display: none; }
.chase { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.chase i { width: 10px; height: 10px; border-radius: 50%; background: rgba(246, 243, 236, 0.16); transition: background-color 250ms, box-shadow 250ms; }
.chase i.on { background: var(--safelight); animation: blink 600ms ease-in-out infinite alternate; }
.chase i.done { background: var(--print); }
.chase i.fail { background: transparent; box-shadow: inset 0 0 0 2px var(--print-3); }
@keyframes blink { from { transform: scale(0.8); } to { transform: scale(1.35); background: #ff6a4d; } }
.progress-text { font-family: var(--mono); font-size: 0.72rem; color: var(--print-2); white-space: nowrap; }

/* ------------------------------------------------------------- results: the drying line */
.line-section { padding: 56px 0 24px; scroll-margin-top: 16px; }
.line-section[hidden] { display: none; }
.line-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.line-head h2 { margin: 0; font-weight: 800; font-stretch: var(--wide); font-size: clamp(1.6rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; }
.line-head .actions { display: flex; gap: 6px; align-items: center; }

.prints { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.job {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 230px) 1fr;
  gap: 36px;
  align-items: start;
  padding-top: 26px;
}
.job::before { /* the wire */
  content: ""; position: absolute; left: -28px; right: -28px; top: 9px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(246, 243, 236, 0.28) 6%, rgba(246, 243, 236, 0.28) 94%, transparent);
}
.print {
  position: relative;
  background: var(--print);
  padding: 9px 9px 34px;
  border-radius: 3px;
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.4deg);
  transform-origin: 50% -20px;
}
.job:nth-child(even) .print { transform: rotate(1.2deg); }
.print .photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #e9e4d8; }
.print img { width: 100%; height: 100%; object-fit: cover; }
.print figcaption { position: absolute; left: 10px; right: 10px; bottom: 9px; font-family: var(--mono); font-size: 0.72rem; color: #5b544a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip { position: absolute; left: 50%; top: -30px; width: 22px; height: 46px; margin-left: -11px; z-index: 2; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.5)); }

/* developing: blank paper, then the picture rises through sepia to full color */
.job.working .photo { background: #f2ede2; }
.job.working .photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(224, 48, 30, 0.16) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: wash 1.3s linear infinite;
}
@keyframes wash { to { background-position: -250% 0; } }
.job.developed img { animation: develop 1500ms var(--ease-out) both; }
@keyframes develop {
  0% { opacity: 0; filter: sepia(1) brightness(2.6) contrast(0.35); }
  35% { opacity: 1; filter: sepia(1) brightness(1.7) contrast(0.6); }
  70% { filter: sepia(0.5) brightness(1.15) contrast(0.9); }
  100% { opacity: 1; filter: none; }
}

/* the lab slip */
.slip {
  position: relative;
  background: var(--slip);
  color: var(--slip-ink);
  border-radius: 4px;
  padding: 22px 24px 20px;
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.7);
  -webkit-mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
          mask: radial-gradient(circle 5px at 50% 0, transparent 98%, #000) 0 0 / 16px 100% repeat-x;
}
.slip-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1.5px dashed rgba(29, 20, 6, 0.35); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em; text-transform: uppercase; }
.slip-head b { font-weight: 700; }
.slip-name { font-family: var(--display); font-weight: 750; font-stretch: 110%; font-size: 1.15rem; letter-spacing: -0.01em; margin: 12px 0 2px; overflow-wrap: anywhere; }
.slip-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--slip-ink-2); }
.removed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 2px 22px; }
.removed li {
  display: grid; grid-template-columns: 18px 1fr; gap: 9px; padding: 7px 0; border-top: 1px solid rgba(29, 20, 6, 0.14);
  opacity: 0; animation: printline 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms + 500ms);
}
@keyframes printline { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.removed svg { width: 17px; height: 17px; margin-top: 2px; }
.removed b { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.removed span { display: block; font-size: 0.86rem; line-height: 1.35; color: var(--slip-ink-2); }
.removed s { text-decoration-thickness: 1.2px; text-decoration-color: rgba(168, 31, 21, 0.85); }
.removed li.ai { grid-column: 1 / -1; background: var(--slip-ink); color: var(--slip); border-radius: 6px; padding: 10px 12px; border: 0; margin-bottom: 6px; }
.removed li.ai b { font-family: var(--display); font-stretch: var(--wide); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; text-transform: none; }
.removed li.ai span { color: rgba(242, 183, 5, 0.75); }
.removed li.ai s { text-decoration-color: var(--safelight); }
.slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.stamp { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8a150d; border: 2px solid currentColor; border-radius: 4px; padding: 4px 8px 3px; transform: rotate(-3deg); }
.nothing { margin: 14px 0 0; font-size: 0.92rem; color: var(--slip-ink-2); }
.developing-note { margin: 16px 0 0; font-family: var(--mono); font-size: 0.72rem; color: var(--slip-ink-2); }
.developing-note::after { content: ""; display: inline-block; width: 1.2em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.job.error .slip { background: #e9e4d8; }
.job.error .stamp { color: #6b6257; }

.after { margin: 34px 0 0; color: var(--print-2); font-size: 0.95rem; }

/* ------------------------------------------------------------- content */
.content section { padding: 84px 0 0; }
.content h2 { font-weight: 800; font-stretch: var(--wide); font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.02; margin: 0 0 18px; max-width: 18em; text-wrap: balance; }
.content p { color: var(--print-2); margin: 0 0 14px; max-width: 40em; }
.content p strong, .content li strong { color: var(--print); font-weight: 600; }
.content .answer { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; color: var(--print); max-width: 34em; }

.chart { margin: 30px 0 0; border-top: 1px solid var(--line); }
.chart div { display: grid; grid-template-columns: minmax(170px, 260px) 1fr; gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.chart dt { font-family: var(--mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding-top: 3px; }
.chart dd { margin: 0; color: var(--print-2); }
.chart div.lead { background: var(--red); border-color: transparent; padding: 22px 22px; border-radius: 6px; margin: 10px 0; }
.chart div.lead dt { font-family: var(--display); font-stretch: var(--wide); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: none; padding: 0; }
.chart div.lead dd { color: var(--print); }

.keeps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.keeps li { list-style: none; padding: 22px 26px 4px 0; }
.keeps li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.keeps strong { display: block; font-stretch: 112%; font-weight: 750; font-size: 1.15rem; margin-bottom: 6px; color: var(--print); }
.keeps span { color: var(--print-2); font-size: 0.97rem; }
.keeps { padding: 0; }

.steps { list-style: none; counter-reset: s; margin: 26px 0 0; padding: 0; max-width: 46em; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--print-2); }
.steps li::before { content: counter(s); font-weight: 800; font-stretch: var(--wide); font-size: 2rem; line-height: 1; color: var(--safelight); }

.faq details { border-top: 1px solid var(--line); max-width: 52em; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 650; font-stretch: 106%; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--slip); border-bottom: 2px solid var(--slip); transform: translateY(-70%) rotate(45deg); transition: transform 220ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: -6px 0 20px; }

.close { margin-top: 96px; padding: 72px 0; background: radial-gradient(90% 140% at 50% 120%, #b8231a 0%, #6a120b 45%, var(--ink) 85%); text-align: center; }
.close h2 { font-weight: 800; font-stretch: var(--wide); font-size: clamp(1.8rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; line-height: 1; margin: 0 auto 26px; max-width: 14em; text-wrap: balance; }

footer { padding: 30px 0 46px; color: var(--print-3); font-size: 0.86rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer a { color: var(--print-2); text-decoration: none; }
footer a:hover { color: var(--print); }

@media (prefers-reduced-motion: reduce) {
  .bath::before, .tray.busy .bath::after, .job.working .photo::after, .chase i.on { animation: none; }
  .tag::after { animation: none; }
  .job.developed img { animation: fade 300ms ease both; }
  .removed li { animation: fade 200ms ease both; animation-delay: 0ms; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .bar .wrap { height: 64px; }
  .bar nav a.hide-sm, .brand small { display: none; }
  .room { padding: 104px 0 44px; }
  .tray { min-height: 250px; margin-top: 32px; border-radius: 26px; padding: 12px; }
  .bath { inset: 12px; border-radius: 18px; }
  .job { grid-template-columns: 1fr; gap: 22px; }
  .job::before { left: -18px; right: -18px; }
  .print { width: min(52%, 210px); margin: 0 auto; }
  .chart div { grid-template-columns: 1fr; }
  .keeps { grid-template-columns: 1fr; }
  .keeps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .content section { padding-top: 64px; }
  .slip { padding: 20px 18px 18px; }
}
