/* rytterfalk.com — three layers, one image */

@font-face { font-family: "Didot"; src: url("../fonts/GFSDidot-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-RegularItalic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("../fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Press Start 2P"; src: url("../press-start-2p.ttf") format("truetype"); font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #0e0e0e;
  --graphite: #5c5c5c;
  --rule: #e4e4e4;
  --tint: #f4f4f4;

  /* process inks — used as marks and fills, never as body text */
  --c: #00a3e0;
  --m: #e4007c;
  --y: #ffe100;

  --didot: "Didot", "Bodoni 72", "Didot LT", serif;
  --sans: "Plex Sans", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;

  --page: min(1280px, calc(100vw - 64px));
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--y); color: var(--ink); }
:focus-visible { outline: 2px solid var(--m); outline-offset: 3px; }
@media (max-width: 720px) { :root { --page: calc(100vw - 36px); } }

/* ---------- small type ---------- */
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.plate-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--ink)); vertical-align: 0; }

/* ---------- top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; gap: 28px;
  padding: 18px 32px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  mix-blend-mode: multiply;
}
.bar__name { text-decoration: none; }
.bar__nav { margin-left: auto; display: flex; gap: 26px; }
.bar__nav a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.bar__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bar--solid { position: sticky; background: var(--paper); mix-blend-mode: normal; border-bottom: 1px solid var(--rule); }
@media (max-width: 720px) {
  .bar { padding: 14px 18px; gap: 16px; }
  .bar__nav { gap: 14px; }
  .bar__nav .plate-dot { display: none; }
}

/* ---------- hero: the three plates ---------- */
.plates { position: relative; height: 320vh; }
.plates__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.plates__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plates__fallback { position: absolute; right: 6vw; top: 50%; width: min(46vw, 80vh); transform: translateY(-50%); }
.plates.is-live .plates__fallback { display: none; }

.plates__text {
  position: absolute; left: max(32px, calc((100vw - 1280px) / 2)); bottom: 13vh;
  width: min(560px, 44vw); pointer-events: none;
}
.plates__text > * { pointer-events: auto; }
.plates__kicker { margin: 0 0 22px; color: var(--graphite); }
.plates__name { margin: 0; font: 400 clamp(76px, 9vw, 170px)/0.84 var(--didot); letter-spacing: -0.035em; }
.plates__name span { display: block; }
.plates__name span + span { padding-left: 0.62em; }
.plates__lede { margin: 34px 0 0; max-width: 30ch; font: 400 clamp(19px, 1.6vw, 23px)/1.45 var(--sans); }
.plates__hint { margin: 30px 0 0; display: flex; align-items: center; gap: 12px; color: var(--graphite); transition: opacity 400ms; }
.plates__hint::before { content: ""; width: 36px; height: 1px; background: currentColor; }

/* the legend that replaces the name once the plates separate */
.plates__legend { position: absolute; left: max(32px, calc((100vw - 1280px) / 2)); bottom: 13vh; width: min(440px, 36vw); }
.layer { display: grid; grid-template-columns: 18px 1fr; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--rule); text-decoration: none; }
.layer::before { content: ""; grid-row: span 2; width: 16px; height: 16px; margin-top: 14px; border-radius: 50%; background: var(--dot); }
.layer b { font: 400 clamp(44px, 4.4vw, 68px)/1 var(--didot); letter-spacing: -0.02em; }
.layer span { color: var(--graphite); font-size: 16px; line-height: 1.45; }
.layer:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }

/* print-proof furniture */
.crop { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 22px; height: 1px; top: 11px; }
.crop::after { width: 1px; height: 22px; left: 11px; }
.crop--tl { left: 14px; top: 64px; } .crop--tr { right: 14px; top: 64px; }
.crop--bl { left: 14px; bottom: 14px; } .crop--br { right: 14px; bottom: 14px; }
.regmark { position: absolute; right: 48px; bottom: 40px; width: 26px; height: 26px; border: 1px solid var(--ink); border-radius: 50%; }
.regmark::before, .regmark::after { content: ""; position: absolute; background: var(--ink); }
.regmark::before { left: -7px; right: -7px; top: 12px; height: 1px; }
.regmark::after { top: -7px; bottom: -7px; left: 12px; width: 1px; }
.colorbar { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); display: flex; height: 14px; }
.colorbar i { width: 22px; background: var(--s); }
@media (max-width: 900px) {
  .plates { height: 260vh; }
  .plates__text { left: 18px; right: 18px; width: auto; bottom: 7vh; }
  .plates__fallback { right: 50%; transform: translate(50%, -62%); width: 78vw; }
  .plates__name { font-size: clamp(64px, 19vw, 120px); }
  .plates__lede { font-size: 18px; margin-top: 20px; }
  .colorbar, .regmark, .crop--tr, .crop--tl { display: none; }
  .plates__legend { left: 18px; right: 18px; width: auto; bottom: 5vh; }
  .layer { padding: 10px 0; }
  .layer b { font-size: 36px; }
  .layer span { font-size: 14px; }
}

/* ---------- sections ---------- */
.section { width: var(--page); margin: 0 auto; padding-top: 160px; }
.section__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--ink); }
.section__plate { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; }
.section__plate .plate-dot { width: 14px; height: 14px; }
.section__title { margin: 0; font: 400 clamp(72px, 11vw, 176px)/0.84 var(--didot); letter-spacing: -0.035em; }
.section__intro { margin: 0; max-width: 42ch; font-size: 19px; line-height: 1.5; }
.sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 96px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.sub h3 { margin: 0; font: 400 40px/1 var(--didot); }
.sub p { margin: 0; color: var(--graphite); }
@media (max-width: 820px) {
  .section { padding-top: 112px; }
  .section__head { grid-template-columns: 1fr; }
  .sub { flex-direction: column; gap: 6px; }
}

/* ---------- a framed proof: image with crop marks ---------- */
.proof { position: relative; margin: 0; padding: 18px; }
.proof::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 18px / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 18px 0 / 1px 11px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 18px / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 18px) 0 / 1px 11px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 calc(100% - 18px) / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 18px 100% / 1px 11px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% calc(100% - 18px) / 11px 1px no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 18px) 100% / 1px 11px no-repeat;
}
.proof__img { position: relative; overflow: hidden; background: var(--tint); aspect-ratio: 16 / 10; }
.proof__img > img { width: 100%; height: 100%; object-fit: cover; }
.proof__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--graphite); }

/* ---------- work rows ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--rule); }
.work--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.work--flip .proof { order: 2; }
.work__title { margin: 0; font: 400 clamp(52px, 5.6vw, 88px)/0.9 var(--didot); letter-spacing: -0.02em; }
.work__meta { margin: 18px 0 0; color: var(--graphite); }
.work__text { margin: 18px 0 0; max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 99px; background: var(--ink); color: var(--paper);
  font: 500 16px/1 var(--sans); text-decoration: none;
  transition: transform 180ms;
}
.btn:hover { transform: translateY(-2px); }
.link { font: 500 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-underline-offset: 5px; }

/* ---------- apps you can open now ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 24px; margin-top: 38px; }
.app-card { display: flex; min-width: 0; flex-direction: column; border-top: 1px solid var(--ink); padding-top: 16px; }
.app-card__cover { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; place-items: center; background: var(--tint); }
.app-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 300ms; }
.app-card__cover:hover img { transform: scale(1.025); }
.app-card__cover--phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18%; background: #1b1b1b; }
.app-card__cover--phones a { display: block; min-width: 0; height: 100%; overflow: hidden; border-radius: 14px; }
.app-card__cover--phones img { object-fit: contain; }
.app-card__body { display: flex; flex: 1; flex-direction: column; padding-top: 17px; }
.app-card__meta { margin: 0; color: var(--graphite); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.app-card h3 { margin: 9px 0 0; font: 400 36px/1 var(--didot); letter-spacing: -.02em; }
.app-card__body > p:not(.app-card__meta) { margin: 10px 0 0; color: var(--graphite); font-size: 15px; line-height: 1.5; }
.app-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: auto; padding-top: 20px; }
.app-card .btn { height: 42px; padding: 0 18px; font-size: 14px; }
.app-card__extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.app-card__extras:empty { display: none; }
.app-card__extras a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.app-card__extras img { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms; }
.app-card__extras a:hover img { opacity: .82; }
.app-card__cover--stock { padding: 10px; background: #f6f4f0; }
.app-card__cover--stock .stock { width: 100%; height: 100%; gap: 3px; padding: 12px; grid-template-columns: 5.8em repeat(var(--cols, 18), minmax(0, 1fr)); font-size: 8px; }
.app-card__cover--stock .stock i { width: min(100%, 11px); }
.app-card__cover--arcade { background: #171717; color: #fff; text-decoration: none; }
.app-card__cover--arcade span { max-width: 85%; text-align: center; font: 400 15px/1.8 "Press Start 2P", monospace; }
.app-card__cover--arcade i { position: absolute; bottom: 25%; width: 44%; height: 7px; background: var(--m); box-shadow: -22px -19px 0 -1px var(--c), 22px -38px 0 -1px var(--y); }
.app-card--tetris .app-card__cover--arcade i { background: var(--c); box-shadow: -22px -19px 0 -1px var(--m), 22px -38px 0 -1px var(--y); }
.app-card--fyra .app-card__cover--arcade i { background: var(--y); box-shadow: -22px -19px 0 -1px var(--c), 22px -38px 0 -1px var(--m); }
@media (max-width: 980px) { .apps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 22px; } }
@media (max-width: 600px) { .apps-grid { grid-template-columns: 1fr; gap: 38px; } }
@media (max-width: 860px) {
  .work, .work--flip { grid-template-columns: 1fr; gap: 20px; padding: 40px 0; }
  .work--flip .proof { order: 0; }
}

/* phones side by side (7 min) */
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: #1b1b1b; padding: 28px 12%; aspect-ratio: 16 / 10; }
.phones img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }

/* stock illustration: halftone dots in process colors */
.stock { display: grid; grid-template-columns: 7.2em repeat(var(--cols, 18), 1fr); grid-auto-rows: 1fr; gap: 5px; padding: 26px; height: 100%; background: var(--paper); font: 400 11px/1 var(--mono); color: var(--graphite); }
.stock span { display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.stock i { display: block; margin: auto; width: min(100%, 18px); aspect-ratio: 1; border-radius: 50%; background: var(--v); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; padding: 0; list-style: none; color: var(--graphite); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--v); }

/* arcade */
.arcade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--ink); }
.arcade a { display: grid; gap: 18px; padding: 26px 26px 30px 0; text-decoration: none; border-bottom: 1px solid var(--rule); }
.arcade a + a { padding-left: 26px; border-left: 1px solid var(--rule); }
.arcade b { font: 400 14px/1.6 "Press Start 2P", monospace; }
.arcade span { color: var(--graphite); font-size: 15px; }
.arcade a:hover b { color: var(--m); }
@media (max-width: 760px) { .arcade { grid-template-columns: 1fr; } .arcade a + a { padding-left: 0; border-left: 0; } }

/* internal apps */
.inside { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.inside__card { text-decoration: none; display: grid; gap: 0; }
.inside__card .proof__img { aspect-ratio: 4 / 3; display: grid; padding: 26px; background: var(--tint); }
.inside__title { margin: 8px 0 0; font: 400 48px/1 var(--didot); }
.inside__text { margin: 12px 0 0; color: var(--graphite); max-width: 46ch; }
.inside__more { margin-top: 18px; }
.inside__card:hover .inside__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.locked { display: inline-flex; align-items: center; gap: 8px; color: var(--graphite); }
.locked svg { width: 11px; height: 11px; }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } }

.inside--shots .inside__card .proof__img { padding: 0; background: #fff; }
.inside--shots .inside__card .proof__img img { width: 100%; height: 100%; object-fit: contain; }
.proof__img--full { padding: 0 !important; background: #111 !important; }
.proof__img--full img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.films-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.films-row figure { margin: 0; }
.films-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.films-row figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; }
.films-row b { font: 400 22px/1.1 var(--didot); }
.films-row .mono { color: var(--graphite); }
@media (max-width: 860px) { .films-row { grid-template-columns: 1fr 1fr; } }

/* drawn app mockups (never real screenshots of internal apps) */
.mock { border-radius: 8px; background: #0e0f1a; box-shadow: 0 20px 40px -24px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.08); overflow: hidden; display: grid; font: 500 9px/1 var(--mono); color: rgba(255,255,255,.55); }
.mock--ll { grid-template-rows: 14px 1fr 36%; }
.mock__chrome { display: flex; gap: 4px; align-items: center; padding: 0 6px; background: #1a1b27; }
.mock__chrome i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock__frame { margin: 8px auto; aspect-ratio: 16/9; height: calc(100% - 16px); border-radius: 3px; background: linear-gradient(170deg, #f7c77a 0%, #e4895c 38%, #6c4a7a 70%, #2b2446 100%); position: relative; }
.mock__frame::after { content: ""; position: absolute; left: 28%; bottom: 14%; width: 16%; aspect-ratio: 1; border-radius: 50% 50% 40% 40%; background: #2b2446; box-shadow: 18px -6px 0 -6px #2b2446; }
.mock__tracks { display: grid; gap: 3px; padding: 5px 6px; background: #151622; align-content: center; }
.mock__tracks div { display: flex; gap: 2px; height: 7px; }
.mock__tracks b { display: block; border-radius: 2px; background: var(--c1); flex: var(--f); }
.mock--omt { background: radial-gradient(circle at 50% 0%, #3c1f7a, #120a2e 70%); align-content: center; justify-items: center; gap: 12px; padding: 14px; text-align: center; }
.mock--omt strong { font: 600 clamp(13px, 1.4vw, 18px)/1.35 var(--sans); color: #fff; max-width: 17ch; text-wrap: balance; }
.mock--omt u { text-decoration: none; display: inline-block; width: 3.4em; border-bottom: 2px solid #b58cff; }
.mock__answers { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.mock__answers span { padding: 5px 9px; border-radius: 99px; background: rgba(255,255,255,.1); color: #fff; }
.mock__answers span:nth-child(2) { background: #b58cff; color: #120a2e; }
.mock--hub { grid-template-columns: 26% 1fr; background: #f5f5f7; color: #6e6e73; }
.mock__side { background: #e9e9ee; padding: 8px 6px; display: grid; gap: 5px; align-content: start; }
.mock__side span { height: 7px; border-radius: 3px; background: #d2d2d8; }
.mock__side span:first-child { background: #0071e3; }
.mock__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; align-content: start; }
.mock__blocks div { background: #fff; border-radius: 5px; padding: 6px; display: grid; gap: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); color: #1d1d1f; font-size: 8px; }
.mock__blocks div:first-child { grid-column: 1 / -1; }
.mock__blocks p { margin: 0; height: 4px; border-radius: 2px; background: #e5e5ea; width: var(--w, 90%); }

/* ---------- sound ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-top: 56px; text-decoration: none; }
.feature .proof__img { aspect-ratio: 16 / 10; display: grid; padding: 32px; background: var(--tint); }
.feature .mock { font-size: 11px; }
.feature .mock__tracks div { height: 11px; gap: 3px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 20px; } }

.records { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 64px; margin-top: 28px; }
.records h4 { margin: 0 0 6px; color: var(--graphite); font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 14px 0; }
.song {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center;
  width: 100%; padding: 13px 0; border: 0; border-top: 1px solid var(--rule);
  background: none; color: var(--ink); font: 400 17px/1.2 var(--sans); text-align: left; cursor: pointer;
}
.song__no { font: 400 12px/1 var(--mono); color: var(--graphite); }
.song__time { font: 400 13px/1 var(--mono); color: var(--graphite); font-variant-numeric: tabular-nums; }
.song__title { transition: transform 200ms; }
.song:hover .song__title { transform: translateX(6px); }
.song::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--m); }
.song[aria-pressed="true"] .song__no { color: var(--m); }
.song[aria-pressed="true"] .song__no::before { content: "▶ "; }
@media (max-width: 820px) { .records { grid-template-columns: 1fr; } }

/* ---------- light ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; border-top: 1px solid var(--ink); }
.facts div { padding: 22px 24px 26px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.facts b { display: block; font: 400 56px/1 var(--didot); margin-bottom: 10px; }
.facts span { color: var(--graphite); font-size: 15px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } }

/* contact sheet: one frame per camera, in the order they arrived */
.sheet { margin-top: 36px; background: #141414; color: #efe9dc; padding: 26px 22px 20px; }
.sheet__edge { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: 0.12em; color: #f2a93b; margin-bottom: 14px; }
.sheet__row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.frame {
  position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 180px; padding: 14px;
  background: #232323; text-decoration: none; color: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: background-color 200ms;
}
.frame:hover { background: #2e2e2e; }
.frame b { font: 400 34px/0.95 var(--didot); }
.frame small { display: block; font: 400 13px/1.4 var(--sans); color: #b8b2a6; }
.frame__no { font: 500 11px/1 var(--mono); color: #f2a93b; letter-spacing: 0.1em; }
.frame__year { font: 500 12px/1 var(--mono); color: #efe9dc; }
.sheet__edge--bottom { margin: 14px 0 0; }
@media (max-width: 980px) { .sheet__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sheet__row { grid-template-columns: 1fr 1fr; } }

.light-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 96px; }
.light-grid h3 { margin: 0 0 18px; font: 400 40px/1 var(--didot); }
.posts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 13px 0; text-decoration: none; }
.posts time { font: 400 13px/1.5 var(--mono); color: var(--graphite); }
.posts a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.years { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; align-items: end; height: 170px; margin: 0 0 8px; padding: 0; list-style: none; border-bottom: 1px solid var(--ink); }
.years li { position: relative; height: calc(var(--n) / 124 * 100%); min-height: 1px; background: var(--ink); }
.years li[data-n="0"] { background: transparent; }
.years li span { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font: 400 11px/1 var(--mono); color: var(--graphite); }
.years-axis { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; font: 400 11px/1 var(--mono); color: var(--graphite); text-align: center; }
.years-note { margin: 16px 0 0; color: var(--graphite); font-size: 15px; }
@media (max-width: 860px) { .light-grid { grid-template-columns: 1fr; gap: 56px; } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: end; }
.about .proof__img { aspect-ratio: 1; background: #fff; }
.about__quote { margin: 0; font: 400 clamp(34px, 3.6vw, 54px)/1.08 var(--didot); letter-spacing: -0.01em; }
.about__text { margin: 28px 0 0; max-width: 46ch; }
.stack { margin: 36px 0 0; display: grid; border-top: 1px solid var(--ink); }
.stack div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.stack dt { color: var(--graphite); }
.stack dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- footer ---------- */
.foot { margin-top: 180px; background: var(--ink); color: var(--paper); }
.foot__in { width: var(--page); margin: 0 auto; padding: 56px 0 44px; display: grid; gap: 40px; }
.foot__big { margin: 0; font: 400 clamp(56px, 9vw, 150px)/0.9 var(--didot); letter-spacing: -0.03em; }
.foot__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: #a9a9a9; }
.foot__bar { display: flex; height: 12px; }
.foot__bar i { flex: 1; background: var(--s); }

/* ---------- project pages ---------- */
.page { width: var(--page); margin: 0 auto; padding-top: 88px; }
.page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; color: var(--graphite); }
.page__title { margin: 22px 0 0; font: 400 clamp(76px, 13vw, 220px)/0.84 var(--didot); letter-spacing: -0.04em; }
.page__lede { margin: 30px 0 0; max-width: 32ch; font: 400 clamp(22px, 2.2vw, 30px)/1.35 var(--sans); }
.page__media { margin-top: 64px; }
.page__media .proof__img { aspect-ratio: 16 / 9; }
/* Project media should use the source image's proportions. Fixed 16:9 frames
   crop portrait and 4:3 photography, making those photos look incorrectly sized. */
.page__media .proof__img:not(.phones):has(> img, > a.lb) { height: auto; aspect-ratio: auto; }
.page__media .proof__img:not(.phones):has(> img, > a.lb) > img,
.page__media .proof__img:not(.phones):has(> img, > a.lb) > a.lb,
.page__media .proof__img:not(.phones):has(> img, > a.lb) > a.lb > img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.page__media--mock .proof__img { display: grid; padding: clamp(18px, 5vw, 72px); }
.page__media--mock .mock { font-size: 13px; }
.page__media--mock .mock--omt strong { font-size: clamp(20px, 3.2vw, 44px); }
.page__media--mock .mock__tracks div { height: 14px; gap: 4px; }
.page__media--mock .mock__blocks div { font-size: 13px; padding: 12px; gap: 8px; }
.page__media--mock .mock__blocks p { height: 7px; }
.page__media--mock .mock__side span { height: 12px; }
.page__media--mock .mock__side { gap: 9px; padding: 14px 12px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair .proof__img { aspect-ratio: 16 / 10; }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }

.block { margin-top: 136px; }
.block__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.block__head h2 { margin: 0; font: 400 clamp(44px, 5.4vw, 84px)/0.92 var(--didot); letter-spacing: -0.02em; }
.block__head p { margin: 0; color: var(--graphite); max-width: 46ch; }
@media (max-width: 820px) { .block__head { grid-template-columns: 1fr; } }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.features div { padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.features h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--sans); }
.features p { margin: 0; color: var(--graphite); }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* steps: only where order is real */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: 26px 24px 30px 0; border-bottom: 1px solid var(--rule); }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: block; margin-bottom: 16px; font: 400 64px/0.9 var(--didot); }
.steps h3 { margin: 0 0 6px; font: 600 18px/1.3 var(--sans); }
.steps p { margin: 0; color: var(--graphite); font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { padding-left: 0 !important; border-left: 0 !important; } }

.specs { margin: 0; padding: 0; list-style: none; }
.specs li { display: grid; grid-template-columns: 12em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.specs b { font: 500 12px/1.9 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
@media (max-width: 720px) { .specs li { grid-template-columns: 1fr; gap: 2px; } }

.films { margin: 0; padding: 0; list-style: none; }
.films li { display: grid; grid-template-columns: 5em minmax(0, 15em) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.films time { font: 400 14px/1 var(--mono); color: var(--graphite); }
.films strong { font: 400 28px/1.1 var(--didot); }
.films span { color: var(--graphite); }
@media (max-width: 720px) { .films li { grid-template-columns: 4em 1fr; } .films span { grid-column: 2; } }

.compass { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 0; margin-top: 28px; border: 1px solid var(--ink); }
.compass > div { padding: 22px; min-height: 150px; }
.compass b { display: block; margin-bottom: 12px; color: var(--graphite); }
.compass h3 { margin: 0 0 6px; font: 400 30px/1 var(--didot); }
.compass p { margin: 0; color: var(--graphite); font-size: 15px; }
.compass__n { grid-column: 2; grid-row: 1; border-bottom: 1px solid var(--rule); }
.compass__w { grid-column: 1; grid-row: 2; }
.compass__mid { grid-column: 2; grid-row: 2; background: var(--ink); color: var(--paper); text-align: center; display: grid; align-content: center; }
.compass__mid b, .compass__mid p { color: #bdbdbd; }
.compass__e { grid-column: 3; grid-row: 2; }
.compass__s { grid-column: 2; grid-row: 3; border-top: 1px solid var(--rule); }
@media (max-width: 760px) {
  .compass { grid-template-columns: 1fr; }
  .compass > div { grid-column: 1 !important; grid-row: auto !important; border: 0; border-bottom: 1px solid var(--rule); }
}

.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; margin: 28px 0 0; padding: 0; list-style: none; border: 1px solid var(--ink); }
.swatches li + li { border-left: 1px solid var(--rule); }
.swatches i { display: block; height: 96px; background: var(--s); }
.swatches span { display: block; padding: 10px 12px 12px; font-size: 14px; }
.swatches small { display: block; font: 400 12px/1.5 var(--mono); color: var(--graphite); }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.promises div { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--rule); }
.promises div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.promises strong { display: block; font: 400 36px/1 var(--didot); margin-bottom: 10px; }
.promises p { margin: 0; color: var(--graphite); }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } .promises div + div { padding-left: 0; border-left: 0; } }

.notice { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 96px; padding: 26px 28px; background: var(--tint); }
.notice svg { width: 22px; height: 22px; }
.notice p { margin: 0; }
.notice p + p { color: var(--graphite); font-size: 15px; margin-top: 4px; }
@media (max-width: 720px) { .notice { grid-template-columns: 1fr; } }

.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; width: var(--page); margin: 160px auto 0; padding-top: 24px; border-top: 1px solid var(--ink); text-decoration: none; }
.next small { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--graphite); }
.next strong { font: 400 clamp(56px, 8vw, 132px)/0.88 var(--didot); letter-spacing: -0.03em; }
.next span { font: 400 64px/1 var(--didot); transition: transform 220ms; }
.next:hover span { transform: translateX(10px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* app screenshots with their own window shadow: keep the paper white around them */
.proof__img--shot { background: #fff; }
.proof__img--shot > img { object-fit: contain; }

/* ---------- galleries: uncropped proofs in columns ---------- */
.g { columns: 3 280px; column-gap: 22px; margin-top: 28px; }
.g figure { break-inside: avoid; margin: 0 0 30px; }
.g a { position: relative; display: block; background: var(--tint); }
.g img { width: 100%; height: auto; transition: opacity 200ms; }
.g a:hover img { opacity: 0.9; }
.g figcaption { padding-top: 10px; color: var(--graphite); font-size: 14px; line-height: 1.45; }
.g--films { columns: 2 380px; }
.play { position: absolute; left: 12px; bottom: 12px; padding: 7px 10px 6px; background: var(--ink); color: var(--paper); }
.page__media .proof__img--hero > img { object-position: center 60%; }

/* homepage strips: a row of square crops that open the lightbox or a page */
.strip { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.strip figure { margin: 0; }
.strip a { position: relative; display: block; background: var(--tint); text-decoration: none; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.strip--contain img { object-fit: contain; background: #fff; }
.strip figcaption { padding-top: 8px; color: var(--graphite); font-size: 14px; line-height: 1.35; }
.strip b { display: block; color: var(--ink); font: 400 22px/1.1 var(--didot); margin-bottom: 2px; }
@media (max-width: 860px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .strip { grid-template-columns: 1fr 1fr; } }
.films-row a { position: relative; display: block; }
.more { display: flex; justify-content: flex-end; margin-top: 22px; }

/* photographs on the home page: a loose contact print */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 10px; margin-top: 28px; }
.mosaic a { display: block; overflow: hidden; background: var(--tint); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms; }
.mosaic a:hover img { transform: scale(1.03); }
.mosaic .w2 { grid-column: span 2; } .mosaic .h2 { grid-row: span 2; }
@media (max-width: 860px) { .mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 120px; } }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(255,255,255,.98); color: var(--ink); overflow: hidden; }
.lightbox::backdrop { background: rgba(255,255,255,.8); }
.lightbox__stage { position: absolute; inset: 64px 84px 104px; display: grid; place-items: center; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 30px 60px -34px rgba(0,0,0,.45); }
.lightbox__stage video { background: #000; }
.lightbox__cap { position: absolute; left: 84px; right: 84px; bottom: 30px; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.lightbox__cap p { margin: 0; max-width: 70ch; }
.lightbox__count { color: var(--graphite); white-space: nowrap; }
.lightbox button { position: absolute; z-index: 2; border: 0; padding: 14px; background: none; color: var(--ink); cursor: pointer; }
.lightbox__close { top: 12px; right: 18px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); font: 400 48px/1 var(--didot); }
.lightbox__prev { left: 14px; } .lightbox__next { right: 14px; }
.lightbox__prev:hover, .lightbox__next:hover { color: var(--m); }
.lightbox .crop--tl, .lightbox .crop--tr { top: 18px; }
@media (max-width: 720px) {
  .lightbox__stage { inset: 56px 10px 130px; }
  .lightbox__cap { left: 18px; right: 18px; bottom: 74px; flex-direction: column; gap: 6px; font-size: 15px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; }
  .lightbox .crop { display: none; }
}
.proof__img > a.lb { display: block; width: 100%; height: 100%; }
.proof__img > a.lb > img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- top bar: solid once the hero is gone ---------- */
.bar { transition: background-color 250ms, box-shadow 250ms, padding 250ms; }
.bar--scrolled { mix-blend-mode: normal; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--rule); padding-top: 14px; padding-bottom: 14px; }
.bar__cta { padding: 9px 14px 8px; border: 1px solid var(--ink); border-radius: 99px; transition: background-color 180ms, color 180ms; }
.bar__nav a.bar__cta:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
@media (max-width: 720px) {
  .bar__nav a:not(.bar__cta) { display: none; }
  .bar__nav { gap: 0; }
}

/* ---------- apps: one feature, two even rows, then the arcade ---------- */
.app-card__extras { display: none; }
.app-card { transition: transform 260ms; }
.app-card__cover { border-radius: 2px; }
.app-card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 0 44px; align-items: stretch; }
.app-card--feature .app-card__cover { aspect-ratio: 16 / 9.4; }
.app-card--feature .app-card__body { padding-top: 6px; justify-content: center; }
.app-card--feature h3 { font-size: clamp(56px, 6vw, 92px); line-height: .9; margin-top: 16px; }
.app-card--feature .app-card__body > p:not(.app-card__meta) { font-size: 17px; color: var(--ink); max-width: 38ch; margin-top: 18px; }
.app-card--feature .app-card__actions { margin-top: 30px; padding-top: 0; }
.app-card--feature .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.app-card__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 28px; margin: 26px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--rule); color: var(--graphite); font-size: 11px; }
.app-card__facts b { display: block; margin-bottom: 4px; color: var(--ink); font: 400 30px/1 var(--didot); letter-spacing: 0; text-transform: none; }
@media (max-width: 860px) { .app-card--feature { grid-template-columns: 1fr; } .app-card--feature .app-card__body { padding-top: 18px; } }

.apps-grid--arcade { gap: 24px; margin-top: 28px; }
.apps-grid--arcade .app-card { border-top: 0; padding-top: 0; display: grid; grid-template-columns: 112px 1fr; gap: 0 18px; align-items: start; }
.apps-grid--arcade .app-card__cover { aspect-ratio: 1; border-radius: 6px; }
.apps-grid--arcade .app-card__cover--arcade span { display: none; }
.apps-grid--arcade .app-card__cover--arcade i { bottom: 34%; width: 50%; height: 6px; box-shadow: -14px -14px 0 -1px var(--c), 14px -28px 0 -1px var(--y); }
.apps-grid--arcade .app-card--tetris .app-card__cover--arcade i { box-shadow: -14px -14px 0 -1px var(--m), 14px -28px 0 -1px var(--y); }
.apps-grid--arcade .app-card--fyra .app-card__cover--arcade i { box-shadow: -14px -14px 0 -1px var(--c), 14px -28px 0 -1px var(--m); }
.apps-grid--arcade .app-card__body { padding-top: 2px; }
.apps-grid--arcade .app-card h3 { font: 400 13px/1.6 "Press Start 2P", monospace; letter-spacing: 0; margin-top: 8px; }
.apps-grid--arcade .app-card__body > p:not(.app-card__meta) { font-size: 14px; margin-top: 6px; }
.apps-grid--arcade .app-card__actions { padding-top: 12px; }
.apps-grid--arcade .btn { height: 36px; padding: 0 14px; font-size: 13px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.apps-grid--arcade .btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 980px) { .apps-grid--arcade { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .apps-grid--arcade { grid-template-columns: 1fr; } }

.mosaic .trim img { transform: scale(1.07); }
.mosaic .trim:hover img { transform: scale(1.1); }

/* ---------- contact: a printer's job ticket ---------- */
.regdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--c) 0 25%, var(--m) 0 50%, var(--y) 0 75%, var(--ink) 0); }
.ticket { position: relative; margin-top: 56px; padding: 0 0 40px; background: var(--paper); border: 1px solid var(--ink); }
.ticket__bar { display: flex; height: 10px; }
.ticket__bar i { flex: 1; background: var(--s); }
.ticket__edge { display: flex; justify-content: space-between; gap: 16px; padding: 16px 32px; border-bottom: 1px dashed #bdbdbd; color: var(--graphite); }
.ticket__edge b { margin-left: 10px; color: var(--ink); font-weight: 500; }
.ticket__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px 56px; padding: 34px 32px 0; }
.ticket__label { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; padding: 0; color: var(--ink); }
.ticket__label > span { color: var(--m); }
.ticket__label em { margin-left: auto; font-style: normal; color: var(--graphite); }
.ticket__jobs { margin: 0; padding: 0; border: 0; min-width: 0; }
.ticket__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.job { position: relative; display: grid; grid-template-columns: 22px 1fr; align-content: start; gap: 6px 14px; padding: 18px 18px 18px 16px; border: 1px solid var(--rule); cursor: pointer; transition: border-color 160ms, background-color 160ms, transform 160ms; }
.job:hover { border-color: var(--ink); }
.job input { position: absolute; opacity: 0; pointer-events: none; }
.job__box { grid-row: span 2; width: 20px; height: 20px; margin-top: 3px; border: 1.5px solid var(--ink); background: var(--paper); }
.job b { font: 400 25px/1.05 var(--didot); }
.job small { color: var(--graphite); font-size: 14px; line-height: 1.4; }
.job:has(input:checked) { border-color: var(--ink); background: #fafafa; box-shadow: inset 4px 0 0 var(--dot); }
.job input:checked + .job__box { background: radial-gradient(circle, var(--dot) 1.3px, transparent 1.6px) 0 0 / 4px 4px, var(--paper); }
.job input:checked + .job__box::after { content: ""; display: block; width: 6px; height: 11px; margin: 1px 0 0 5.5px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.job input:focus-visible + .job__box { outline: 2px solid var(--m); outline-offset: 3px; }
.ticket__fields { display: grid; gap: 22px; align-content: start; }
.field { display: grid; }
.field .ticket__label { margin-bottom: 8px; }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 400 19px/1.45 var(--sans); outline: none; resize: vertical; }
.field textarea { min-height: 128px; padding: 12px 14px; border: 1px solid var(--ink); background: repeating-linear-gradient(transparent 0 33px, var(--rule) 33px 34px); background-position: 0 12px; background-attachment: local; line-height: 34px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a9a; }
.field input:focus, .field textarea:focus { border-color: var(--m); box-shadow: 0 1px 0 var(--m); }
.ticket__send { display: grid; gap: 14px; margin-top: 6px; }
.btn--send { justify-self: start; height: 56px; padding: 0 28px; border: 0; font-size: 17px; cursor: pointer; }
.btn--send span { transition: transform 200ms; }
.btn--send:hover span { transform: translateX(4px); }
.ticket__note { margin: 0; color: var(--graphite); font-size: 15px; }
.ticket__note a { color: var(--ink); text-underline-offset: 3px; }
.ticket__note.is-alert { color: var(--m); }
.regmark--ticket { right: 22px; bottom: 18px; }
@media (max-width: 900px) {
  .ticket__grid { grid-template-columns: 1fr; padding: 28px 20px 0; }
  .ticket__edge { padding: 14px 20px; }
}
@media (max-width: 560px) { .ticket__options { grid-template-columns: 1fr; } .regmark--ticket { display: none; } }
.ticket__direct { margin-top: 34px; padding-top: 22px; border-top: 1px dashed #bdbdbd; }
.ticket__direct .mono { margin: 0 0 10px; color: var(--graphite); }
.ticket__direct a { font: 400 clamp(30px, 3.2vw, 44px)/1 var(--didot); text-decoration: none; background: linear-gradient(var(--y), var(--y)) 0 88% / 100% 0.28em no-repeat; }
.ticket__direct a:hover { background-size: 100% 0.5em; }
.ticket__direct p:last-child { margin: 12px 0 0; color: var(--graphite); font-size: 15px; }

/* ---------- review round 1 ---------- */
/* one rule for images: tinted frame, nothing floating */
.inside--shots .inside__card .proof__img { padding: 22px; background: var(--tint); }
.inside--shots .inside__card .proof__img img { object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }
.strip--contain a { background: var(--tint); }
.strip--contain img { aspect-ratio: 4 / 3; object-fit: contain; background: var(--tint); padding: 10px; }
.strip img { aspect-ratio: 4 / 3; }

/* project page media: never taller than the window */
.page__media .proof__img:not(.phones):has(> img, > a.lb) { background: var(--tint); }
.page__media .proof__img:not(.phones):has(> img, > a.lb) > img,
.page__media .proof__img:not(.phones):has(> img, > a.lb) > a.lb > img { max-height: 78vh; }
.page__media > .proof + .proof, .page__media > .proof + .pair { margin-top: 40px; }

/* galleries: an even contact grid instead of ragged columns */
.g { columns: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 34px 22px; }
.g figure { margin: 0; display: flex; flex-direction: column; }
.g a { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: contain; }
.g--films { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.g--films a { aspect-ratio: 16 / 9; background: #111; }
.g--films img { object-fit: cover; }
.g figcaption { text-wrap: pretty; }

/* no doubled rules */
.section__head + .facts { margin-top: 0; border-top: 0; }
.section__head + .apps-grid { margin-top: 48px; }
.section__head + .apps-grid .app-card--feature { border-top: 0; padding-top: 0; }

/* contact sheet: names on one baseline */
.frame { grid-template-rows: auto 1fr auto; align-content: stretch; }
.frame > div { align-self: start; }
.years { margin-top: 30px; }

/* typography details */
.section__intro, .work__text, .app-card__body > p, .page__lede, .inside__text, .about__text, .features p, .block__head p { text-wrap: pretty; }
.features h3 { font: 400 26px/1.1 var(--didot); margin-bottom: 10px; }
.page__meta > span + span::before { content: "/"; margin-right: 22px; color: #c4c4c4; }
.app-card__facts b { white-space: nowrap; }
.ticket__options { grid-auto-rows: 1fr; }
.foot { margin-top: 120px; }

/* mobile */
@media (max-width: 720px) {
  .bar__nav a:not(.bar__cta) { display: inline-flex; font-size: 0; padding: 8px 5px; }
  .bar__nav a:not(.bar__cta) .plate-dot { display: inline-block; width: 12px; height: 12px; }
  .bar__nav a[href$="#about"] { display: none !important; }
  .bar__nav { gap: 4px; align-items: center; }
  .bar__cta { margin-left: 8px; }
  .ticket__edge span:last-child { display: none; }
  .ticket__edge { white-space: nowrap; }
  .job { grid-template-columns: 18px 1fr; padding: 12px; gap: 0 10px; }
  .job small { display: none; }
  .job b { font-size: 18px; }
  .job__box { width: 16px; height: 16px; margin-top: 1px; grid-row: auto; }
  .job input:checked + .job__box::after { width: 5px; height: 9px; margin: 0 0 0 4px; }
  .app-card__facts b { font-size: 24px; }
}
@media (max-width: 560px) { .ticket__options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .plates__legend { padding: 14px 16px 6px; background: rgba(255,255,255,.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.page__media .proof__img.proof__img--full { background: var(--tint) !important; }
.g a.is-video img { object-fit: cover; }
.page__media .proof__img.proof__img--paper { background: #fff; }
.page__media .proof__img.proof__img--paper > img { max-height: 58vh; }

/* ---------- review round 2 ---------- */
/* gallery cells: the image always fits inside, never clipped */
.g a { position: relative; display: block; }
.g a > img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 6%; object-fit: contain; mix-blend-mode: multiply; }
.g--films a > img, .g a.is-video > img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.g .play { z-index: 1; }
/* photographs: prints on paper, bottoms aligned, no grey bars */
.g--photos a { background: transparent; aspect-ratio: 4 / 3; }
.g--photos a > img { padding: 0; object-position: center bottom; mix-blend-mode: normal; }
.g--photos a.is-video { background: #111; }

/* white artwork on tint becomes ink on paper */
.strip--contain img, .page__media .proof__img--hero > img, .inside--shots .inside__card .proof__img img { mix-blend-mode: multiply; }
.inside--shots .inside__card .proof__img { position: relative; aspect-ratio: 4 / 3; }
.inside--shots .inside__card .proof__img img { position: absolute; inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); filter: none; }
.inside--shots .inside__card .proof__img img[src$="omt-intro.jpg"] { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); mix-blend-mode: normal; }

/* screenshots run full width, uncapped */
.page__media .proof__img.proof__img--full > img,
.page__media .proof__img.proof__img--full > a.lb > img { max-height: none; }
.proof + .proof { margin-top: 56px; }

/* small alignments */
.inside__card .proof__img { aspect-ratio: 4 / 3; }
.about__quote { text-wrap: balance; }

@media (max-width: 900px) {
  .plates__legend { padding: 12px 0 4px; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 720px) {
  .bar__nav a:not(.bar__cta)::after { content: attr(data-k); font: 500 11px/1 var(--mono); letter-spacing: .06em; margin-left: 5px; }
  .bar__nav a:not(.bar__cta) .plate-dot { width: 9px; height: 9px; }
  .bar__nav a:not(.bar__cta) { gap: 0; padding: 8px 4px; }
}
@media (max-width: 560px) {
  .ticket__options { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 8px; }
  .job { padding: 13px 14px; align-items: center; }
  .job b { font-size: 19px; }
}
.inside--shots .inside__card .proof__img img[src$="omt-intro.jpg"] { transform: scale(1.3); object-position: center 46%; }
@media (max-width: 720px) { .bar { mix-blend-mode: normal; background: rgba(255,255,255,.94); box-shadow: 0 1px 0 var(--rule); } }

/* ---------- review round 3 ---------- */
/* photos fill their cell; flat artwork (.g--art) sits on paper with a margin */
.g a > img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.g--art a > img { padding: 6%; object-fit: contain; mix-blend-mode: multiply; }
.g--art a.is-video > img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.g--photos a > img { object-fit: contain; object-position: center top; }

/* screenshots: full width, centred, never capped */
.page__media .proof__img--full img { height: auto !important; max-height: none !important; object-fit: initial !important; object-position: center !important; }

.inside__card { align-content: start; }

@media (max-width: 600px) { .proof__cap { flex-direction: column; gap: 4px; } }

/* mobile hero legend: compact two-by-two so the plates have room */
@media (max-width: 900px) {
  .plates__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; bottom: 4vh; }
  .plates__legend .plates__kicker { grid-column: 1 / -1; margin-bottom: 10px; }
  .plates__legend .layer { padding: 10px 0; grid-template-columns: 12px 1fr; gap: 0 10px; }
  .plates__legend .layer::before { width: 10px; height: 10px; margin-top: 12px; }
  .plates__legend .layer b { font-size: 34px; }
  .plates__legend .layer span { display: none; }
}

/* ---------- review round 4 ---------- */
.proof__img--mat { display: grid; place-items: center; padding: 6%; background: var(--tint); }
.proof__img--mat > img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.kern { letter-spacing: -0.06em; margin-right: 0.02em; }
.mosaic .trim img { transform: none; }
.mosaic .trim:hover img { transform: scale(1.03); }
.g a.is-video > img { transform: scale(1.1); }
/* Built at Apple: both screenshots matted the same way */
.inside--shots .inside__card .proof__img img[src$="omt-intro.jpg"] { inset: 26px; width: calc(100% - 52px); height: calc(100% - 52px); object-fit: contain; transform: none; mix-blend-mode: multiply; }

/* project headers: title left, lede and actions right */
@media (min-width: 901px) {
  .page > section:first-child { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 64px; align-items: end; padding-bottom: 8px; }
  .page > section:first-child > .page__meta { grid-column: 1 / -1; }
  .page > section:first-child > .page__title { grid-column: 1; grid-row: 2 / span 2; font-size: clamp(76px, 8.4vw, 150px); align-self: end; }
  .page > section:first-child > .page__lede { grid-column: 2; grid-row: 2; margin-top: 0; font-size: clamp(20px, 1.7vw, 25px); }
  .page > section:first-child > .actions { grid-column: 2; grid-row: 3; margin-top: 24px; }
}
@media (max-width: 600px) {
  .page__meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page__meta > span + span::before { content: none; }
}
@media (max-width: 720px) { .bar, .bar--scrolled { background: #fff; } }
/* mobile hero: legend sits just under the plates */
@media (max-width: 900px) { .plates__legend { bottom: auto; top: 56svh; } }
@media (max-width: 900px) { .plates__legend { background: transparent; } }

/* ---------- review round 5 ---------- */
.proof__img--mat { position: relative; display: block; padding: 0; }
.proof__img--mat > img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; }
.g a.is-video > img { transform: scale(1.24); transform-origin: center 42%; }
.kern { letter-spacing: 0; margin: 0 -0.1em 0 -0.04em; }
/* photographs: every print on the same tinted mat, caption right under it */
.g--photos a { background: var(--tint); aspect-ratio: 4 / 3; }
.g--photos a > img { padding: 5%; object-fit: contain; object-position: center; }
.g--photos a.is-video > img { padding: 0; object-fit: cover; }
.g { align-items: start; }
/* project header: same split as the block heads below it */
@media (min-width: 901px) {
  .page > section:first-child { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; }
  .page > section:first-child > .page__title { font-size: clamp(64px, 6.6vw, 120px); }
}
@media (max-width: 900px) { .plates { height: 205vh; } }
@media (max-width: 600px) { .page__meta > span + span { padding-left: 26px; } }

/* ---------- final polish (review 8.1) ---------- */
@media (max-width: 900px) { .plates { height: 185vh; } }
.g--photos a { aspect-ratio: 3 / 2; }
.g--photos a > img { padding: 2.5%; }
.g a.is-video > img { transform: scale(1.3); object-position: 40% 42%; }
.proof__img--mat > img { inset: 3%; width: 94%; height: 94%; }

/* lightbox: flex so max-height: 100% resolves against the stage, and the whole image always fits */
.lightbox__stage { display: flex; align-items: center; justify-content: center; }
.lightbox__stage img, .lightbox__stage video { flex: 0 1 auto; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__close { right: 48px; top: 10px; }
