/* Phold — phold.photo. "Retro mono": Space Mono on a warm dark brown ground, cream type, film-edge orange. */

@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ground: #261a12;
  --ground-2: #312218;
  --ground-3: #3d2b1e;
  --cream: #f3ead9;
  --cream-dim: #d8cbb5;     /* 10.9:1 on --ground */
  --muted: #b9a88f;         /* 7.4:1 on --ground */
  --film: #f2a03d;          /* film-edge orange, 8.3:1 on --ground */
  --film-deep: #c9761f;
  --line: rgba(243, 234, 217, 0.14);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 16px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  background-image: radial-gradient(ellipse 120% 60% at 50% 0%, #3a2819 0%, var(--ground) 70%);
  background-repeat: no-repeat;
  color: var(--cream);
  font-family: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 16px; } }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--film); text-underline-offset: 3px; }
a:hover { color: #ffbe6b; }
:focus-visible { outline: 2px solid var(--film); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--cream); font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--film); color: #1b120b; padding: 8px 14px; border-radius: 999px; font-weight: 700;
}
.skip:focus { left: 8px; }

/* Labels: bold capitals with a little tracking, as in the app. */
.label, h1, h2, h3, .pill, .nav a, .edge {
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.edge { color: var(--film); font-size: 12px; letter-spacing: 0.12em; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(30px, 7.2vw, 60px); letter-spacing: 0.01em; }
h2 { font-size: clamp(21px, 4.4vw, 32px); }
h3 { font-size: 16px; }
p { margin: 0 0 1em; color: var(--cream-dim); }
.lede { font-size: 1.07em; color: var(--cream); max-width: 40em; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(38, 26, 18, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--cream-dim); text-decoration: none; font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cream); background: var(--glass); }
@media (max-width: 520px) { .nav .wide { display: none; } }

/* Glass pills */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font-size: 13px; text-decoration: none;
  color: var(--cream); background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 6px 20px rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill:hover { color: var(--cream); background: rgba(255,255,255,0.14); }
.pill.lit { background: rgba(242, 160, 61, 0.92); color: #1f140c; border-color: rgba(255, 210, 150, 0.7); }
.pill.lit:hover { background: #ffb257; color: #1f140c; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
@media (min-width: 720px) { section { padding: 96px 0; } }
.section-head { max-width: 44em; margin-bottom: 32px; }

/* Hero */
.hero { border-top: 0; padding: 40px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; } .hero { padding: 72px 0 96px; } }
.hero h1 { margin-bottom: 0.4em; }
.hero h1 em { font-style: normal; color: var(--film); }
.status { display: inline-block; margin-bottom: 18px; padding: 5px 12px; border: 1px dashed rgba(242,160,61,0.6); border-radius: 999px; }

/* The wall of prints */
.wall { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 8px; }
@media (min-width: 600px) { .wall { gap: 18px; } }
.wall figure { margin: 0; }
.print {
  background: #f5efe3; padding: 0; box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease;
}
.print img { width: 100%; }
.wall .print:hover { transform: rotate(0deg) scale(1.03); }
@media (prefers-reduced-motion: reduce) { .print, .wall .print:hover { transition: none; transform: rotate(var(--tilt, 0deg)); } }
.wall figure:nth-child(1) { --tilt: -3deg; }
.wall figure:nth-child(2) { --tilt: 2deg; margin-top: 18px; }
.wall figure:nth-child(3) { --tilt: -1.5deg; }
.wall figure:nth-child(4) { --tilt: 2.5deg; }
.wall figure:nth-child(5) { --tilt: -2deg; margin-top: -10px; }
.wall figure:nth-child(6) { --tilt: 1.5deg; }
.wall figure:nth-child(7) { --tilt: -1deg; }
.wall figure:nth-child(8) { --tilt: 3deg; margin-top: 10px; }
.wall figure:nth-child(9) { --tilt: -2.5deg; }

/* How it works: numbered steps, numbers in film-edge orange */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero) " / 04"; display: block; color: var(--film); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; margin-bottom: 10px; }
.steps p { margin: 0; font-size: 0.93em; }

.after { display: grid; gap: 28px; margin-top: 48px; align-items: center; }
@media (min-width: 860px) { .after { grid-template-columns: 1fr 1fr; gap: 48px; } }
.post { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.post li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.post li span[aria-hidden] { color: var(--film); font-weight: 700; font-size: 20px; line-height: 1.3; }
.post p { margin: 0; }

/* Phone screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 860px) { .shots.four { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; }
.shot img { border-radius: 22px; border: 1px solid var(--glass-edge); box-shadow: 0 14px 30px rgba(0,0,0,0.4); background: #120c08; }
.shot figcaption, .cam figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Cameras */
.cams { display: grid; gap: 18px; }
@media (min-width: 720px) { .cams { grid-template-columns: repeat(2, 1fr); } }
.cam { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.cam header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: baseline; margin-bottom: 4px; }
.cam h3 { margin: 0; }
.cam .meta { color: var(--film); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.cam p { font-size: 0.93em; margin: 6px 0 16px; }
.cam .prints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; margin-top: auto; }
.cam .prints.two { grid-template-columns: repeat(2, 1fr); }
.cam .prints a { display: block; }
.cam .print { --tilt: 0deg; box-shadow: 0 6px 14px rgba(0,0,0,0.4); }
.digital-note { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--film); background: var(--ground-2); border-radius: 0 var(--radius) var(--radius) 0; }
.digital-note p { margin: 0; }

/* Split feature rows */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.flip > :first-child { order: 2; } }

.facedown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 460px; }
.facedown div { aspect-ratio: 2 / 3; background: linear-gradient(160deg, #efe6d4, #d9ccb4); border-radius: 3px; box-shadow: 0 10px 22px rgba(0,0,0,.45); display: grid; place-items: center; color: #8a7558; font-weight: 700; font-size: 34px; }
.facedown div:nth-child(1) { transform: rotate(-4deg); }
.facedown div:nth-child(2) { transform: rotate(2deg) translateY(10px); }
.facedown div:nth-child(3) { transform: rotate(-1deg); }
.quirks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.quirks figure { margin: 0; }
.quirks figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.fold-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.fold-list li { padding-left: 22px; position: relative; color: var(--cream-dim); }
.fold-list li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 10px; height: 2px; background: var(--film); }

/* Prices: a lab ticket */
.tickets { display: grid; gap: 16px; }
@media (min-width: 720px) { .tickets { grid-template-columns: repeat(3, 1fr); } }
.ticket { background: #f3ead9; color: #2b1f16; border-radius: 6px; padding: 0; overflow: hidden; box-shadow: 0 12px 26px rgba(0,0,0,0.4); }
.ticket .band { background: #241811; color: var(--cream); padding: 8px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 3px solid var(--film); }
.ticket .body { padding: 18px 16px 16px; }
.ticket h3 { color: #2b1f16; margin-bottom: 4px; }
.ticket .price { font-size: 30px; font-weight: 700; margin: 4px 0 2px; color: #1f140c; }
.ticket p { color: #4b3a2b; font-size: 0.9em; margin: 0; }
.ticket .stub { border-top: 2px dashed #c9b99d; padding: 10px 16px; font-size: 12px; color: #5c4834; }
.small { font-size: 0.86em; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; list-style: none; position: relative; color: var(--cream); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--film); font-size: 20px; }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding-bottom: 14px; }

/* Coming soon */
.soon { text-align: center; }
.soon .pills { justify-content: center; }
.soon p { margin-left: auto; margin-right: auto; max-width: 36em; }

/* Text pages (privacy, terms, support) */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(26px, 6vw, 40px); }
.doc h2 { font-size: 18px; margin-top: 2.2em; color: var(--cream); }
.doc h3 { margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; color: var(--cream-dim); }
.doc li { margin-bottom: 0.5em; }
.updated { display: inline-block; padding: 6px 12px; border: 1px solid var(--film); color: var(--film); border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 20px; }
.box { background: var(--ground-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 1.2em 0; }
.box p:last-child { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.88em; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--cream-dim); }
th { color: var(--cream); font-weight: 700; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: grid; gap: 16px; }
@media (min-width: 720px) { .foot .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { color: var(--cream-dim); }
.foot p { margin: 0; color: var(--muted); }

/* Refinements */
.ticket { display: flex; flex-direction: column; }
.ticket .stub { margin-top: auto; }
.cam .prints.two { max-width: 78%; }
@media (max-width: 859px) { .facedown { display: none; } }
.pill.mail { text-transform: none; letter-spacing: 0.02em; }
@media (min-width: 480px) and (max-width: 719px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 479px) { .steps li { padding: 16px; } }

/* Phone shots in a drawn iPhone frame: the JPEG is the phone body, its corners rounded here */
.phone { margin: 0; }
.phone img { display: block; width: 100%; height: auto; border-radius: 8.5% / 5.9%; box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.35); }
.phone figcaption { font-size: 12px; color: var(--muted); margin-top: 10px; text-align: center; }
/* The hero: a pile of prints on a walnut desk. The track is tall; the stage sticks while it scrolls past, and each
   scroll step slides the top print off the pile (CSS scroll-driven animation where supported, else the inline script). */
.hero { background: linear-gradient(90deg, rgba(20,13,8,0.92) 0%, rgba(20,13,8,0.6) 38%, rgba(20,13,8,0.1) 70%),
  radial-gradient(ellipse 55% 60% at 70% 45%, rgba(255,214,160,0.16), transparent 70%), #2a1b11 url(img/desk.jpg) center / cover; padding-bottom: 0; overflow: clip; }
@media (min-width: 900px) { .hero { padding: 0; } .hero-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.hero-text { padding-top: 8px; }
@media (min-width: 900px) { .hero-text { position: sticky; top: 56px; min-height: calc(100vh - 56px); display: flex; flex-direction: column; justify-content: center; } }
.pile-track { position: relative; height: calc(100vh + var(--k) * 32vh); view-timeline: --pile block; }
.pile-stage { position: sticky; top: 56px; height: calc(100vh - 56px); display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: center; gap: 8px; padding: 12px 0 20px; }
@media (min-width: 900px) { .pile-stage { grid-template-columns: 30% 1fr; grid-template-rows: none; gap: 24px; } }
.hero-phone { width: min(30vw, 130px); position: relative; z-index: 2; margin: 0; }
@media (min-width: 900px) { .hero-phone { width: 100%; max-width: 230px; transform: rotate(-3deg); } }
.pile-wrap { width: 100%; display: grid; justify-items: center; gap: 10px; align-self: center; }
.pile { position: relative; width: min(100%, 520px, 52vh); aspect-ratio: 1; }
.pp { position: absolute; left: 50%; top: 50%; margin: 0; width: var(--pw); z-index: var(--z);
  transform: translate(-50%, -50%) translate(var(--dx), var(--dy)) rotate(var(--r)); transition: scale .18s ease; }
.pp a { display: block; outline: none; }
.pp img { color: transparent; font-size: 0; background: #efe7d8; } /* a print not loaded yet: just its paper */
.pp .print, .wall .pp .print:hover { --tilt: 0deg; transform: none; display: block; width: 100%; height: auto;
  box-shadow: 0 1px 1px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.45); }
.pp a:focus-visible .print { box-shadow: 0 0 0 3px var(--film), 0 14px 30px rgba(0,0,0,.55); }
@media (hover: hover) { .pp.top:hover, .pp:has(a:focus-visible) { scale: 1.07; } .pp.top:hover .print { box-shadow: 0 2px 2px rgba(0,0,0,.3), 0 24px 46px rgba(0,0,0,.55); } }
.pile-cap { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--film); text-align: center; min-height: 1.5em; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pile-hint { margin: 0; font-size: 11px; color: var(--muted); }
@keyframes slide-off {
  0% { translate: 0 0; rotate: 0deg; opacity: 1; }
  25% { translate: 6% -5%; rotate: 3deg; opacity: 1; }
  70% { opacity: 1; }
  100% { translate: 130% 24%; rotate: 18deg; opacity: 0; }
}
/* Desktop: the first --k prints (6) roll off with the scroll; after that the page carries on. */
@supports (animation-timeline: --a) {
  @media (min-width: 821px) and (hover: hover), (min-width: 821px) and (pointer: fine) {
    .pp.rolls { animation: slide-off linear both; animation-timeline: --pile;
      animation-range: contain calc(var(--i) * 100% / var(--k)) contain calc((var(--i) + 1) * 100% / var(--k)); }
  }
}
.pile-nav { display: flex; align-items: center; gap: 14px; }
.pile-nav[hidden] { display: none; }
.pile-nav button { font: inherit; font-size: 22px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  color: var(--cream); background: var(--glass); border: 1px solid var(--glass-edge); }
.pile-nav button:hover { background: rgba(255,255,255,0.14); }
.pile-scroll a { color: var(--film); }
@media (min-width: 821px) and (hover: hover) and (prefers-reduced-motion: no-preference), (min-width: 821px) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .pile-nav { display: none !important; } }
/* Phones, touch screens and reduced motion: no scroll-through. The pile sits at its own height and the prints
   flip with a swipe, a tap on the top print or the ‹ › buttons, so the page scrolls straight past. */
@media (max-width: 820px), (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .pile-track { height: auto; } .pile-stage, .hero-text { position: static; height: auto; min-height: 0; }
  .pile-stage { padding: 8px 0 40px; }
  .pile { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .pp { animation: none !important; transition: translate .45s ease, rotate .45s ease, opacity .45s ease, scale .18s ease; }
  .pp.gone { translate: 130% 24%; rotate: 18deg; opacity: 0; pointer-events: none; }
  .pile-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pp { transition: none; } }
.cams-head { display: grid; gap: 24px; align-items: center; margin-bottom: 32px; }
.cams-head .section-head { margin-bottom: 0; }
.cam-phone { width: min(56%, 240px); justify-self: center; }
@media (min-width: 860px) { .cams-head { grid-template-columns: 1fr 240px; gap: 56px; } }
.duo-shot img { border: 0; box-shadow: none; background: none; border-radius: 0; }
.shots:has(.duo-shot) { grid-template-columns: 1.5fr 1fr; align-items: center; }
.duo-shot figcaption { text-align: center; }
