@font-face { font-family: 'Djine Draft'; src: url(../assets/fonts/DjineDraft.woff2?v=5) format('woff2'); font-display: swap; }
@font-face { font-family: 'Djine Draft Solid'; src: url(../assets/fonts/DjineDraftSolid.woff2?v=5) format('woff2'); font-display: swap; }
@font-face { font-family: 'Djine Type'; src: url(../assets/fonts/DjineType-Regular.woff2?v=6) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Djine Type'; src: url(../assets/fonts/DjineType-Medium.woff2?v=6) format('woff2'); font-weight: 500 700; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --room: #0d0e10;
  --ink: #e8f1ff;
  --ink-2: rgba(232, 241, 255, 0.74);
  --ink-3: rgba(232, 241, 255, 0.56);
  --line: rgba(232, 241, 255, 0.22);
  --redline: #ff6a3d;
  --lamp: #ffb27a;
  --paper-ink: #24262b;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --draft: 'Djine Draft', 'Baskerville', Georgia, serif;
  --solid: 'Djine Draft Solid', 'Baskerville', Georgia, serif;
  --type: 'Djine Type', 'Rockwell', 'Courier New', serif;
  --gutter: clamp(16px, 3vw, 40px);
  --bleed: 0 0 0.6px rgba(232, 241, 255, 0.5), 0 0 12px rgba(255, 200, 150, 0.08);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--room);
  color: var(--ink);
  font-family: var(--type);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.js body { overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.label { font-family: var(--type); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--redline); outline-offset: 2px; }

/* (it comes in under the tabs, not over Intro and Portfolio) */
.skip { position: fixed; left: var(--gutter); top: -60px; z-index: 50; padding: 10px 14px; background: var(--room); border: 1px solid var(--line); text-decoration: none; transition: top 160ms var(--ease-out); }
.skip:focus { top: calc(max(14px, env(safe-area-inset-top)) + 66px); }   /* under the tabs, never over them */

/* ============ Stage ============ */
.stage { position: fixed; inset: 0; z-index: 0; touch-action: none; cursor: grab; }
.stage.is-dragging { cursor: grabbing; }
.stage.is-pointing { cursor: pointer; }
.stage__gl { display: block; width: 100%; height: 100%; }

/* ============ Tabs ============ */
.tabs {
  position: fixed; z-index: 20; top: max(14px, env(safe-area-inset-top)); left: var(--gutter);
  display: flex; gap: 2px; padding: 4px;
  background: rgba(13, 14, 16, 0.68); border: 1px solid rgba(232, 241, 255, 0.1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tabs__tab {
  position: relative; display: block; padding: 7px 11px 8px;
  font-size: 0.8125rem; letter-spacing: 0.02em; text-decoration: none; color: var(--ink-2);
  transition: color 160ms ease, background-color 160ms ease, transform 120ms var(--ease-out);
}
.tabs__tab::after {
  content: ''; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1px; background: var(--redline);
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
.tabs__tab.is-active { color: var(--ink); }
.tabs__tab.is-active::after { transform: scaleX(1); }
.tabs__tab:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .tabs__tab:hover { color: var(--ink); background: rgba(232, 241, 255, 0.05); } }
@media (min-width: 1900px) { .tabs__tab { font-size: 0.9rem; } }

/* ============ Intro ============ */
.intro {
  position: fixed; z-index: 10; left: var(--gutter); bottom: clamp(32px, 9vh, 96px);
  width: min(470px, calc(100vw - 2 * var(--gutter)));
  transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out), filter 500ms var(--ease-out);
  pointer-events: none;   /* the desk under the words stays draggable and clickable */
}
.intro__actions a { pointer-events: auto; }
.intro::before {
  /* a pool of shadow behind the words, so they read over a busy desk */
  content: ''; position: absolute; z-index: -1; inset: -34% -46% -34% -60%;
  background: radial-gradient(closest-side, rgba(8, 8, 10, 0.84), rgba(8, 8, 10, 0.55) 55%, transparent);
  pointer-events: none;
}
/* tall screens: the words sit over the desk's lower half, so the shadow behind them is a band
   across the whole width, darkest at the bottom */
@media (max-aspect-ratio: 1/1) {
  /* (dense enough under the name that the About sheet's text does not show through it) */
  .intro::before { position: fixed; inset: auto 0 0 0; height: 70vh; background: linear-gradient(to top, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.93) 52%, rgba(8, 8, 10, 0.62) 80%, transparent); }
}
.intro.is-away { opacity: 0; transform: scale(1.06) translateY(-12px); filter: blur(6px); pointer-events: none; }
.intro__eyebrow { margin: 0 0 14px; color: var(--lamp); }
.intro__name { margin: 0; font-family: var(--solid); font-weight: 400; font-size: clamp(4.4rem, 9vw, 7.4rem); line-height: 0.86; letter-spacing: -0.01em; text-shadow: var(--bleed); }
.intro__real { margin: 0.45em 0 0; font-family: var(--type); font-weight: 500; font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: 0.01em; color: var(--ink-2); }
.intro__lede { margin: 18px 0 0; max-width: 40ch; font-size: clamp(1rem, 1.2vw, 1.125rem); color: #e6e6e6; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7); text-wrap: pretty; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.intro__hint { margin: 22px 0 0; color: var(--ink-3); text-wrap: balance; }
.intro__hint--touch { display: none; }
@media (hover: none) { .intro__hint--mouse { display: none; } .intro__hint--touch { display: block; } }

.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 46px;
  border: 1px solid var(--line); text-decoration: none; font-size: 0.9375rem;
  background: rgba(13, 14, 16, 0.35);
  transition: transform 140ms var(--ease-out), background-color 180ms ease, border-color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ink); color: #111214; border-color: var(--ink); }
.btn__ball { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #111214; color: var(--ink); transition: transform 220ms var(--ease-out); }
.btn__ball svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: rgba(232, 241, 255, 0.5); background: rgba(232, 241, 255, 0.06); }
  .btn--solid:hover { background: #fff; }
  .btn--solid:hover .btn__ball { transform: translate(2px, -2px); }
}

/* ============ Sheets pinned onto the desk ============ */
/* What you see of a sheet is painted onto its paper by js/paint.js from these styles (it switches
   .is-painting on the sheet for the moment it reads it). The live layer pinned over the painting is
   invisible: only the caret, the selection and the keyboard focus ring show. */
.sheets { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: clip; }
.sheet {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  color: #e6eef8; visibility: hidden;
}
/* only what you use takes the pointer: a drag or a wheel anywhere else on the sheet moves the camera */
.sheet.is-on :is(a, button, input, textarea, label) { pointer-events: auto; }
.sheet.is-painting { visibility: visible; transition: none; }
.sheet.is-on { visibility: visible; pointer-events: none; }
/* (the card on its way back from a film: focusable during the flight, nothing to click yet) */
.sheet.is-held { visibility: visible; pointer-events: none; }
html:not(.no-gl) :is(.sheet:not(.is-painting), .sheet:not(.is-painting) *) {
  color: transparent !important; text-shadow: none !important; border-color: transparent !important;
  background-color: transparent !important; box-shadow: none !important;
}
html:not(.no-gl) .sheet:not(.is-painting) ::placeholder { color: transparent !important; }
.sheet :is(input, textarea) { caret-color: var(--redline); }
.sheet ::selection { background: rgba(255, 106, 61, 0.34); }
.sheet--a4 { width: 630px; height: 891px; padding: 52px 54px 44px; display: flex; flex-direction: column; }
.sheet__head { margin-bottom: 30px; }
.sheet__no { margin: 0 0 12px; color: rgba(230, 238, 248, 0.62); }
.sheet__title { margin: 0; font-family: var(--solid); font-weight: 400; font-size: 76px; line-height: 0.95; letter-spacing: -0.01em; }
.sheet__lede { margin: 16px 0 0; font-size: 21px; line-height: 1.45; color: rgba(230, 238, 248, 0.82); }
.sheet__body p { margin: 0 0 18px; font-size: 22px; line-height: 1.55; color: rgba(230, 238, 248, 0.9); text-wrap: pretty; }
.sheet__foot { margin-top: auto; display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(230, 238, 248, 0.3); color: rgba(230, 238, 248, 0.65); }
.sheet__foot a { text-decoration: none; color: #ffd2bd; }
/* the drafting title block in the sheet's lower right, over the footer */
.tblock { margin: auto 0 0 auto; width: 64%; border: 1px solid rgba(230, 238, 248, 0.45); }
.tblock__row { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px 6px; border-top: 1px solid rgba(230, 238, 248, 0.3); }
.tblock__row:first-child { border-top: 0; }
.tblock__k { color: rgba(230, 238, 248, 0.5); font-size: 10px; }
.tblock__v { margin-right: auto; color: rgba(230, 238, 248, 0.85); font-size: 14px; }
.tblock + .sheet__foot { margin-top: 18px; }
.sheet__foot a:hover { color: #ff9c78; }
.sheet .label { font-size: 13px; }

.parts { list-style: none; margin: 0; padding: 0; }
.part { display: grid; grid-template-columns: 44px 1fr; gap: 6px; padding: 18px 0 20px; border-bottom: 1px solid rgba(230, 238, 248, 0.32); }
.part:first-child { border-top: 1px solid rgba(230, 238, 248, 0.32); }
.part__n { padding-top: 9px; color: #ff7c55; font-size: 15px; }
.part__name { margin: 0; font-family: var(--solid); font-weight: 400; font-size: 34px; line-height: 1.1; }
.part__scope { margin: 6px 0 0; font-size: 19px; line-height: 1.45; color: rgba(230, 238, 248, 0.82); }

/* the slate: 344 × 304 mm of face, chalked in cells (rows 62, 54, 132, 56 mm; the bottom row
   split 60 : 40), laid out at 2.5 px/mm */
.sheet--slate { width: 860px; height: 760px; color: #e9e6dd; }
.slate { position: absolute; inset: 0; margin: 0; border: 3px solid rgba(233, 230, 221, 0.85); }
.slate__cell { position: absolute; display: flex; flex-direction: column; gap: 6px; padding: 16px 22px 12px; min-width: 0; border: 0 solid rgba(233, 230, 221, 0.8); }
.slate__cell--title { left: 0; top: 0; width: 100%; height: 20.395%; justify-content: center; border-bottom-width: 3px; }
.slate__cell--from { left: 0; top: 20.395%; width: 50%; height: 17.763%; border-bottom-width: 3px; border-right-width: 3px; }
.slate__cell--subject { left: 50%; top: 20.395%; width: 50%; height: 17.763%; border-bottom-width: 3px; }
.slate__cell--message { left: 0; top: 38.158%; width: 100%; height: 43.421%; border-bottom-width: 3px; }
.slate__cell--mail { left: 0; top: 81.579%; width: 60%; height: 18.421%; justify-content: center; border-right-width: 3px; }
.slate__cell--send { left: 60%; top: 81.579%; width: 40%; height: 18.421%; align-items: center; justify-content: center; }
.slate__label { color: rgba(233, 230, 221, 0.62); font-size: 14px !important; }
.slate__cell:focus-within .slate__label { color: #ff8a62; }
.slate__cell:focus-within { border-color: rgba(233, 230, 221, 0.8); }
.slate__title { margin: 0; font-family: var(--draft); font-weight: 400; font-size: 74px; line-height: 0.95; letter-spacing: -0.01em; color: #f1eee6; }
.slate__input {
  display: block; width: 100%; padding: 2px 0; border: 0; background: transparent; outline: none; resize: none;
  font: 24px/1.35 var(--type); color: #f4f1ea;
}
.slate__input::placeholder { color: rgba(233, 230, 221, 0.36); }   /* (0.55 looked typed in, UX4-5) */
.slate__text { flex: 1; min-height: 0; scrollbar-width: none; }
.slate__text::-webkit-scrollbar { display: none; }
.slate__err { display: block; min-height: 22px; color: #ff9c7a; font-size: 19px; line-height: 1.2; }
/* the message's error only shows while it is empty: it sits over the box's foot, so the text can use the whole cell */
.slate__cell--message .slate__err { position: absolute; left: 22px; right: 22px; bottom: 8px; min-height: 0; }
.slate__mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.slate__mail { font-family: var(--solid); font-size: 26px; color: #f4f1ea; text-decoration: none; border-bottom: 2px solid rgba(233, 230, 221, 0.4); }
.slate__mail:hover { border-bottom-color: #ff8a62; }
.copy { position: relative; padding: 4px 10px; border: 2px solid rgba(233, 230, 221, 0.5); background: transparent; color: #e9e6dd; cursor: pointer; font-size: 13px; }
/* bigger, invisible hit areas than the chalk shows */
.copy::after, .slate__mail::after, .stamp::after { content: ''; position: absolute; inset: -16px -10px; }
.slate__mail { position: relative; }
.copy:hover { border-color: #ff8a62; color: #ff8a62; }
.copy:active { transform: scale(0.96); }
/* what happened after Send: a line of its own, along the foot of the message cell */
.form__status { position: absolute; left: 22px; right: 22px; top: calc(81.579% - 40px); margin: 0; color: #ffc6ab; font-size: 21px; line-height: 1.2; }
.form__status:empty { display: none; }
.copy.is-hint { border-color: #ff8a62; color: #ffc6ab; }
.stamp {
  position: relative; flex: none; padding: 14px 40px 16px; border: 3px solid #ff7448; background: transparent; color: #ff7448;
  font-family: var(--solid); font-size: 40px; line-height: 1; cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.stamp:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .stamp:hover { background: rgba(255, 116, 72, 0.16); color: #ff9670; border-color: #ff9670; } }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* phones: the sheets are drawn at about 0.6 of their size (the slate at about 0.45), so their
   type is set larger */
@media (max-width: 600px) {
  .sheet--a4 { padding: 62px 42px 36px; }
  .sheet__title { font-size: 86px; }
  .sheet__lede { font-size: 27px; }
  .sheet__body p { font-size: 30px; line-height: 1.45; }
  .sheet .label { font-size: 17px; }
  .part { grid-template-columns: 40px 1fr; padding: 14px 0 16px; }
  .part__name { font-size: 40px; }
  .part__scope { font-size: 25px; line-height: 1.4; }
  /* the slate is laid out smaller on phones (600 × 530 px, the same 344 × 304 mm), so it is drawn
     at about 0.63 and its type lands at a readable size: labels ≥ 12 px, fields ≥ 16 px */
  .sheet--slate { width: 600px; height: 530px; }
  .slate { border-width: 2px; }
  .slate__cell { padding: 9px 14px 5px; gap: 2px; border-width: 0; }
  .slate__cell--title, .slate__cell--from, .slate__cell--subject, .slate__cell--message { border-bottom-width: 2px; }
  .slate__cell--from, .slate__cell--mail { border-right-width: 2px; }
  .slate__label { font-size: 20px !important; line-height: 1.1; letter-spacing: 0.08em; }
  .slate__title { font-size: 60px; }
  .slate__input { font-size: 25px; line-height: 1.2; }
  .slate__err { font-size: 19px; min-height: 20px; line-height: 1.05; }
  .slate__cell--mail { width: 62%; }
  .slate__cell--send { left: 62%; width: 38%; }
  .slate__mail { font-size: 25px; }
  .copy { font-size: 17px; padding: 3px 8px; }
  .copy::after { inset: -22px -12px; }
  .form__status { font-size: 20px; left: 14px; right: 14px; top: calc(81.579% - 52px); }
  .stamp { font-size: 42px; padding: 12px 26px 14px; }
  .card__title { font-size: 84px; }
  .card__lede { display: none; }
  .sheet--card .card__hint { margin-top: 20px; font-size: 50px !important; line-height: 1.1; letter-spacing: 0.04em; }
}

/* the index card on the film pile: cream paper, dark ink */
.sheet--card { width: 444px; height: 315px; padding: 30px 36px; color: var(--paper-ink); }
.card__no { margin: 0 0 8px; color: #4f4a42; font-size: 12px !important; }
.card__title { margin: 0; font-family: var(--solid); font-weight: 400; font-size: 64px; line-height: 0.95; }
.card__lede { margin: 12px 0 0; font-size: 23px; line-height: 1.38; color: #3a3c42; }
.card__hint { margin: 14px 0 0; color: #a3361a; font-size: 26px !important; letter-spacing: 0.08em; }
.card__films { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; padding: 0; }
.card__films button { padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; font-size: 14px; color: var(--paper-ink); }

/* ============ The film playing ============ */
.screen { position: fixed; left: 0; top: 0; z-index: 6; transform-origin: 0 0; background: #000; opacity: 0; transition: opacity 300ms var(--ease-out); }
.screen.is-on { opacity: 1; }
.screen__media, .screen__media iframe { display: block; width: 100%; height: 100%; border: 0; }
.reel { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity 260ms var(--ease-out); }
.reel.is-on { opacity: 1; }
.reel.is-on > * { pointer-events: auto; }
.reel__arrow {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px;
  display: grid; place-items: center; border: 1px solid rgba(232, 241, 255, 0.28); border-radius: 50%;
  background: rgba(13, 14, 16, 0.5); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer;
  transition: transform 140ms var(--ease-out), border-color 180ms ease, background-color 180ms ease;
}
.reel__arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.reel__arrow:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .reel__arrow:hover { border-color: var(--redline); background: rgba(13, 14, 16, 0.7); } }
/* on a phone they sit in a row under the frame, over the next strips: solid enough to read as controls */
@media (max-width: 760px) { .reel__arrow { background: rgba(13, 14, 16, 0.84); width: 48px; height: 48px; margin: -24px 0 0 -24px; } }
.reel__caption { position: absolute; left: 0; top: 0; text-align: left; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.reel__title { margin: 0; font-family: var(--solid); font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.1; }
.reel__kind { margin: 6px 0 0; color: var(--ink-2); }
.reel__tools { position: absolute; left: 0; top: 0; display: flex; gap: 16px; align-items: center; }
.reel__yt, .reel__close { padding: 8px 10px; border: 1px solid rgba(232, 241, 255, 0.25); background: rgba(13, 14, 16, 0.5); text-decoration: none; cursor: pointer; }
.reel__close:active, .reel__yt:active { transform: scale(0.97); }
.reel__full svg { display: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }
@media (max-width: 760px) {
  .reel__tools { gap: 8px; }
  .reel__full { min-width: 44px; min-height: 44px; padding: 7px 9px; }
  .reel__full svg { display: inline-block; }
  .reel__full span { display: none; }
}

/* ============ The tag by the pointer ============ */
.tag {
  position: fixed; left: 0; top: 0; z-index: 8; margin: 0; padding: 5px 9px 4px; pointer-events: none;
  background: #d9cfb9; color: #2a2c31; font-size: 11px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  opacity: 0; transition: opacity 160ms var(--ease-out);
}
.tag.is-on { opacity: 1; }
/* in the Portfolio view every strip carries its title on a small tag, as on a negative sleeve
   (no hover on a phone: you see what you tap) */
.filmtags { position: fixed; inset: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity 260ms var(--ease-out); }
.filmtags.is-on { opacity: 1; }
.filmtag { position: absolute; left: 0; top: 0; margin: 0; padding: 3px 7px 2px; white-space: nowrap;
  background: rgba(217, 207, 185, 0.92); color: #2a2c31; font-size: 10.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.filmtag b { font-weight: 700; margin-right: 5px; }
.filmtag.is-hidden { opacity: 0; }
@media (hover: none) {
  .filmtags.is-on .filmtag:not(.is-hidden) { pointer-events: auto; cursor: pointer; }
  .filmtag::before { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
}
.filmtag.is-hot { background: #f2e9d6; color: #14161a; box-shadow: 0 0 0 1px var(--redline), 0 2px 10px rgba(0, 0, 0, 0.45); }
@media (max-width: 600px) { .filmtag { font-size: 9px; letter-spacing: 0.06em; padding: 2px 5px 1px; } }
.focusmark { position: fixed; inset: 0; z-index: 8; width: 100%; height: 100%; pointer-events: none !important; opacity: 0; }
.focusmark.is-on { opacity: 1; }
.focusmark polygon { fill: none; stroke: var(--redline); stroke-width: 1.5; stroke-linejoin: round; }

/* ============ Loader, HUD ============ */
.loader {
  position: fixed; inset: 0; z-index: 40; display: grid; place-content: center; text-align: center;
  background: var(--room); transition: opacity 900ms var(--ease-out), visibility 0s linear 900ms;
}
.loader.is-done { opacity: 0; visibility: hidden; }
/* the poster (index.html): the curtain becomes a photograph of the first frame, a little out of
   focus while the desk loads (it comes into focus as the live desk fades in over it), under the tabs
   and the intro; in its middle the line and the bar. The cursor says it is not there yet. */
.loader.is-poster { z-index: 1; padding-bottom: 14vh; background: var(--room); cursor: progress; }
.loader__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(5px) brightness(0.82); transform: scale(1.03);
}
.loader.is-poster .loader__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.loader.is-poster .loader__line { position: relative; margin: 0; color: var(--ink-2); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.loader__bar { position: relative; display: block; width: min(240px, 56vw); height: 2px; margin: 12px auto 0; background: rgba(232, 241, 255, 0.18); overflow: hidden; }
.loader__fill { display: block; height: 100%; background: var(--lamp); transform-origin: 0 50%; transform: scaleX(0); transition: transform 500ms var(--ease-out); }
@media (max-width: 600px) { .loader.is-poster { padding-bottom: 36vh; } }   /* (above the intro's words) */
/* (gone: the first click or drag reaches the desk already while it fades) */
.loader.is-done { pointer-events: none; }
/* ?poster: only the desk, for tools/dev/poster.mjs */
.poster-shot :is(.tabs, .intro, .hud, .skip, .tag, .focusmark, .loader) { opacity: 0 !important; transition: none !important; }
.loader__name { margin: 0; font-family: var(--solid); font-size: 3.2rem; line-height: 1; color: var(--ink); text-shadow: var(--bleed); }
.loader__line { margin: 14px 0 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hud {
  position: fixed; z-index: 20; right: var(--gutter); bottom: max(14px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.hud__sep { width: 18px; height: 1px; background: rgba(232, 241, 255, 0.3); }
@media (max-width: 600px) {
  .hud { display: none; }
  .tabs { padding: 2px; background: rgba(13, 14, 16, 0.42); }
  /* a finger's height (40 px), not a cursor's */
  .tabs__tab { display: flex; align-items: center; min-height: 40px; padding: 6px 9px 6px; }
}
/* six tabs on a narrow phone: tighter, edge to edge */
@media (max-width: 430px) {
  .tabs { right: var(--gutter); justify-content: space-between; }
  .tabs__tab { padding: 6px 5px; font-size: 0.75rem; letter-spacing: 0; }
  .tabs__tab::after { left: 5px; right: 5px; }
}
.no-hud .hud { opacity: 0; }
.hud { transition: opacity 300ms var(--ease-out); }

/* phones on their side: the words compact, so the tabs don't sit on them */
@media (max-height: 500px) {
  .intro { bottom: 16px; width: min(420px, 60vw); }
  .intro__eyebrow, .intro__lede, .intro__hint { display: none; }
  .intro__name { font-size: 4rem; }
  .intro__actions { margin-top: 14px; }
}

/* ============ Without WebGL: the sheets as a plain page ============ */
/* ============ Photographs ============ */
/* on the desk they are prints (js/photos.js); the list is for screen readers (and the fallback) */
.album { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.album__title { margin: 0; }
.album-ui .reel__title { font-variant-numeric: tabular-nums; }
.album-ui__caption { text-align: center; }
.album-ui__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.no-gl body { overflow: auto; }
.no-gl .album { position: static; width: auto; height: auto; overflow: visible; clip-path: none; margin: 0 var(--gutter) 80px; }
.no-gl .album__title { font-family: var(--solid); font-weight: 400; font-size: 2.4rem; }
.no-gl .stage, .no-gl .hud, .no-gl .loader { display: none; }
.no-gl .intro { position: static; margin: 120px var(--gutter) 60px; }
.no-gl .intro__hint { display: none; }
.no-gl .sheets { position: static; display: grid; gap: 40px; padding: 0 var(--gutter) 80px; pointer-events: auto; }
.no-gl .sheet { position: static; opacity: 1; visibility: visible; transform: none !important; max-width: 630px; height: auto; background: #21405f; }
.no-gl .sheet--slate { position: relative; background: #232427; max-width: 860px; }
.no-gl .sheet--card { background: #d6cdb9; }
.no-gl .card__films { position: static; width: auto; height: auto; overflow: visible; clip-path: none; list-style: none; padding: 0; margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .intro, .screen, .reel, .loader { transition-duration: 1ms; }
  .intro.is-away { transform: none; filter: none; }
}
/* on a phone the film's caption sits over the next strip's stills: a soft dark backing keeps it legible */
@media (max-width: 600px) {
  #reel .reel__caption { padding: 4px 10px 6px; margin-left: -10px; background: rgba(8, 8, 10, 0.55); border-radius: 2px; }
}

/* how to go through the prints: keys and clicks with a mouse, swipes and taps on a touch screen */
.album-ui__how { opacity: 0.7; margin-top: 4px; }
.album-ui__how .how-touch { display: none; }
@media (hover: none) { .album-ui__how .how-mouse { display: none; } .album-ui__how .how-touch { display: inline; } }

/* lost past the mat (on the walnut or over the floor): the way back */
.home { position: fixed; z-index: 21; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px);
  padding: 9px 14px 8px; background: rgba(13, 14, 16, 0.72); border: 1px solid rgba(232, 241, 255, 0.16); color: var(--ink);
  text-decoration: none; opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.home.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
/* the controls again, after the intro (UX3-7): a small "?" in the corner, the line for a few seconds */
.help { position: fixed; z-index: 21; right: var(--gutter); bottom: max(12px, env(safe-area-inset-bottom)); width: 34px; height: 34px;
  padding: 0; border: 1px solid rgba(232, 241, 255, 0.28); border-radius: 50%; background: rgba(13, 14, 16, 0.55); color: var(--ink);
  font-size: 14px; letter-spacing: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out); }
.help.is-on { opacity: 1; pointer-events: auto; }
.help:focus-visible { opacity: 1; outline: 2px solid var(--redline); outline-offset: 3px; }
@media (hover: none) { .help { width: 44px; height: 44px; } }
.help__tip { position: fixed; z-index: 21; right: calc(var(--gutter) + 52px); bottom: max(18px, env(safe-area-inset-bottom)); margin: 0;
  padding: 6px 10px 5px; max-width: calc(100vw - 2 * var(--gutter) - 60px); background: rgba(13, 14, 16, 0.72); color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease-out); }
.help__tip.is-on { opacity: 1; }
.home:focus-visible { opacity: 1; outline: 2px solid var(--redline); outline-offset: 3px; }
.poster-shot .home { opacity: 0 !important; }

/* (no title block on narrow screens: the Services sheet runs long there, it pushed the footer and its link off the sheet) */
@media (max-width: 600px) { .tblock { display: none; } }
/* a short laptop screen: the film fills more, its caption may lie over the strip's edge print */
@media (min-width: 900px) and (max-height: 999px) and (orientation: landscape) {
  #reel .reel__caption { padding: 4px 10px 6px; margin-left: -10px; background: rgba(8, 8, 10, 0.62); border-radius: 2px; }
}
