/* Inner pages: the darkroom carries on, white type on black. One system shared with the home page (style.css). */

/* ---- tokens ------------------------------------------------------------ */
:root {
  /* colour: the darkroom black for the page, warm white type, one safelight accent */
  --paper: #050202;
  --paper-2: #0d0605;
  --ink: #f3efe8;
  --ink-2: rgba(243, 239, 232, .66);
  --line: rgba(243, 239, 232, .14);
  --black: #050202;
  --black-2: #0d0605;
  --light: #f3efe8;
  --light-2: rgba(243, 239, 232, .7);
  --light-line: rgba(243, 239, 232, .14);
  --safe: #ff4a2e;            /* the accent, on dark */
  --red: #ff4a2e;             /* the accent where it marks something (focus, dots); the same as --safe on black */
  --glow: rgba(255, 60, 30, .32);

  /* type: five steps */
  --serif: "Google Sans", system-ui, sans-serif;
  --mono: var(--serif);       /* no monospace: small labels are set in the same typeface */
  --fs-display: clamp(40px, 8.4vw, 150px);
  --fs-title: clamp(30px, 5vw, 92px);
  --fs-lead: clamp(24px, 3.2vw, 52px);
  --fs-body: 17px;
  --fs-large: 20px;           /* list rows and details: body, one size up */
  --fs-label: 13px;
  --ls-tight: -.035em;        /* display, title, lead */
  --ls-text: -.01em;

  /* space: three section gaps, one page top */
  --sp-s: 10vh;
  --sp-m: 16vh;
  --sp-l: 22vh;
  --sp-top: 28vh;
  --gut: clamp(16px, 3vw, 40px);
  --pill: 10px 16px;
  --ease: cubic-bezier(.19, 1, .22, 1); /* expo-out: one curve for every transition */
}

/* ---- base -------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); overflow-x: clip; }
body { background: var(--paper); color: var(--ink); font-family: var(--serif); font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--serif); font-size: var(--fs-label); letter-spacing: 0; text-transform: none; } /* small label: the main typeface, sentence case */
.dim { color: var(--ink-2); }
.wrap { padding-left: var(--gut); padding-right: var(--gut); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
#main:focus { outline: none; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: var(--pill); }
.skip:focus { top: 10px; }

/* the type scale: display and title are always capitals */
.h1, .bio-title, .c-title, .mq-item { font-weight: 400; font-size: var(--fs-display); line-height: .9; letter-spacing: var(--ls-tight); text-transform: uppercase; }
.h2, .svc-title, .next-title { font-weight: 400; font-size: var(--fs-title); line-height: .92; letter-spacing: var(--ls-tight); text-transform: uppercase; }
.bio-lead, .cs-about { font-size: var(--fs-lead); line-height: 1.06; letter-spacing: var(--ls-tight); }

/* labels: [Label] in mono, the same everywhere */
.eyebrow { margin-bottom: 28px; }

/* buttons: pills for actions, circles with an arrow for going somewhere */
.btn, .film-toggle, .menu-btn { display: inline-flex; gap: 10px; align-items: center; padding: var(--pill); border: 1px solid currentColor; border-radius: 999px;
  background: transparent; color: inherit; text-decoration: none; cursor: pointer; font-family: var(--serif); font-size: 14px; letter-spacing: 0; text-transform: none;
  transition: background .4s var(--ease), color .4s var(--ease); }
.btn:hover, .btn:focus-visible, .film-toggle:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.next-arrow, .c-mail-arrow { flex: none; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center;
  transition: background .6s var(--ease), color .6s var(--ease), transform 1s var(--ease); }
.next-arrow svg, .c-mail-arrow svg { width: 40%; height: 40%; }

/* ---- header ------------------------------------------------------------ */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: var(--gut);
  background: linear-gradient(var(--paper) 55%, rgba(5, 2, 2, 0)); transition: color .4s, background .4s; }
.top.top-dark { color: var(--light); background: linear-gradient(rgba(0, 0, 0, .35), transparent); }
.brand { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.02em; text-decoration: none; line-height: 1; padding: 4px 0; } /* a 30px target */
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
@media (min-width: 761px) { .top .nav { font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: var(--ls-text); text-transform: none; } }
.menu-btn { display: none; position: relative; z-index: 12; }

/* phone menu: black sheet, white capitals, the accent for the current page */
@media (max-width: 760px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; border-color: transparent; padding: 10px 0 10px 16px; font-size: 16px; font-weight: 600; } /* just the word */
  .menu-btn:hover, .menu-btn:focus-visible { background: none; color: inherit; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
  body.menu-open .top { color: var(--light); background: none; }
  body.menu-open .top .nav { display: flex; position: fixed; inset: 0; z-index: 11; flex-direction: column; justify-content: center; gap: 14px; padding: var(--gut);
    background: var(--black); color: var(--light); font-family: var(--serif); font-size: clamp(44px, 13.5vw, 64px); line-height: 1; letter-spacing: var(--ls-tight); text-transform: uppercase; }
  body.menu-open .top .nav a { align-self: flex-start; }
  body.menu-open .top .nav a::after { display: none; }
  body.menu-open .top .nav a[aria-current="page"], body.menu-open .top .nav a:hover, body.menu-open .top .nav a:focus-visible { color: var(--safe); }
  body.menu-open .top .brand, body.menu-open .top .menu-btn { position: relative; z-index: 12; }
}
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mc { display: inline-block; }

/* ---- page rhythm ------------------------------------------------------- */
main { padding-top: var(--sp-top); }
.case main, main:has(.case-hero) { padding-top: 0; }
section { padding-top: var(--sp-m); }
main > section:first-child { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 48px; }
#services .sec-head { border-bottom: 0; padding-bottom: 0; margin-bottom: 8px; } /* no line under SERVICES: the rows start right below */

/* ---- about ------------------------------------------------------------- */
/* bio: 12-column editorial block (the case pages open with the same structure) */
.bio-title { margin-bottom: clamp(64px, 12vh, 150px); max-width: 12ch; }
.bio-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.bio-label { grid-column: 1 / span 5; grid-row: 1; }
.bio-lead { grid-column: 6 / span 7; grid-row: 1; }
.bio-body { grid-column: 1 / span 4; grid-row: 2; align-self: end; font-size: var(--fs-body); line-height: 1.35; max-width: 34ch; }
.bio-photo { grid-column: 9 / span 4; grid-row: 2; margin: 6vh 0 0; }
.bio-frame { display: block; aspect-ratio: 1; overflow: hidden; background: #111; }
.bio-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%; }
.bio-photo figcaption { margin-top: 10px; }
@media (max-width: 900px) {
  .bio-label, .bio-lead, .bio-body, .bio-photo { grid-column: 1 / -1; grid-row: auto; }
  .bio-body { margin-top: 28px; }
  .bio-photo { margin-top: 24px; max-width: 420px; }
}

.a-stats { padding-top: var(--sp-s); }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats li { padding: 24px 0 24px 18px; border-right: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font-weight: 400; font-size: var(--fs-title); letter-spacing: var(--ls-tight); line-height: 1; margin-bottom: 8px; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stats li { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0; }
}

/* services: three full-width rows; hovering one turns its lights off */
.svc-list { list-style: none; margin: 0 calc(var(--gut) * -1); }
.svc { position: relative; isolation: isolate; display: grid; grid-template-columns: 72px minmax(0, 7fr) minmax(0, 5fr); gap: 20px var(--gut);
  align-items: start; padding: 5vh var(--gut) 5.5vh; border-bottom: 1px solid var(--line); transition: color .6s var(--ease); }
.svc-fill { position: absolute; inset: 0; z-index: -1; background: var(--safe); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .8s var(--ease); pointer-events: none; }
.svc-no { padding-top: .5em; color: var(--ink-2); transition: color .5s var(--ease); }
.svc-title { font-size: clamp(22px, 2.2vw, 36px); font-weight: 600; line-height: 1; letter-spacing: -.02em; transition: transform 1s var(--ease); } /* the three services: small and bold */
.svc-body { padding-top: .1em; }
.svc-body p { font-size: var(--fs-body); line-height: 1.55; max-width: 44ch; transition: color .5s var(--ease); }
.svc-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-tags li, .tags li { border: 1px solid currentColor; border-radius: 999px; padding: var(--pill); }
.svc-tags li { opacity: .55; }
@media (hover: hover) {
  .svc:hover { color: var(--black); } /* the row fills with the safelight; black type on it (≥ 4.5:1) */
  .svc:hover .svc-fill { transform: scaleY(1); }
  .svc:hover .svc-no { color: var(--black); }
  .svc:hover .svc-title { transform: translateX(1.4vw); }
  .svc:hover .svc-body p { color: rgba(5, 2, 2, .85); }
}
@media (max-width: 900px) { .svc { grid-template-columns: 1fr; gap: 10px; } .svc-no, .svc-body { padding-top: 0; } }

/* the statement as a marquee, full bleed */
.marquee { margin: var(--sp-m) calc(var(--gut) * -1) 0; overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 3vh 0; }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-set { display: flex; align-items: center; flex: none; }
.mq-item { line-height: 1; white-space: nowrap; padding: 0 .35em; }
.mq-dot { flex: none; width: .9vw; min-width: 8px; aspect-ratio: 1; border-radius: 50%; background: var(--red); }
@media (prefers-reduced-motion: reduce) { .mq-set + .mq-set { display: none; } }

/* awards: hovering a row brings up its award card, in its own colours */
.awards-lp { --lp-bg: transparent; --lp-fg: var(--ink); --lp-active-fg: var(--paper); --lp-highlight: var(--ink);
  --lp-cols: 44% 34% 22%; --lp-img-left: 52%; --lp-img-w: 15rem; --lp-img-h: 20.85rem; /* the award cards are portrait (480×667) */ --lp-smooth: .4s;
  font-family: var(--serif); } /* no top line: the heading above already draws one */
.awards-lp .lp-row { border-bottom: 1px solid var(--line); }
.awards-lp .lp-images { mix-blend-mode: normal; } /* no negative: the cards keep their colours */
.awards-lp .lp-row > :not(.lp-thumb) { padding: 18px 12px; font-size: var(--fs-large); letter-spacing: var(--ls-text); text-transform: none; }
.awards-lp .lp-row > :nth-child(n+2):not(.lp-thumb) { font-size: 15px; color: var(--ink-2); padding-top: 21px; }
.awards-lp .lp-row > :nth-child(3) { text-align: right; }
.awards-lp a.lp-row::after { content: "↗"; position: absolute; right: -18px; top: 18px; opacity: 0; transition: opacity .3s; }
.awards-lp a.lp-row.is-active::after { opacity: 1; }
@media (max-width: 1023px), (hover: none) {
  .awards-lp .lp-row { min-height: 0; padding: 14px 0; }
  .awards-lp .lp-row > :not(.lp-thumb) { padding: 0; font-size: 18px; }
  .awards-lp .lp-row > :nth-child(n+2):not(.lp-thumb) { padding: 4px 0 0; font-size: 10px; text-align: left; opacity: .75; }
  .awards-lp .lp-thumb { display: none; }
}
.after { margin-top: 26px; display: flex; gap: 24px; flex-wrap: wrap; }
.after a { display: inline-block; padding: 5px 0; }

/* About › marquee in WebGL (gl-surface): a transparent canvas draws the running line, under the header */
.about-gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); }
.about-gl.is-on { opacity: 1; }
.marquee.gl-mirrored .mq-track { clip-path: inset(50%); } /* drawn by the canvas instead; the mirror ignores clip-path */

/* ---- contact ----------------------------------------------------------- */
.c-title { max-width: 12ch; }
.c-mail-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; padding-top: var(--sp-s); padding-bottom: 28px; } /* the details below open with the only line */
.c-mail { display: inline-flex; align-items: center; gap: clamp(14px, 2vw, 32px); text-decoration: none; font-size: var(--fs-display); line-height: .95; letter-spacing: var(--ls-tight); }
.c-mail-txt { background: linear-gradient(currentColor, currentColor) 0 100% / 0 .04em no-repeat; transition: background-size 1s var(--ease); padding-bottom: .06em; }
.c-mail:hover .c-mail-txt, .c-mail:focus-visible .c-mail-txt { background-size: 100% .04em; }
.c-mail-arrow { width: .62em; }
.c-mail:hover .c-mail-arrow, .c-mail:focus-visible .c-mail-arrow { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.c-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 1.2vw; }
.c-dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gut); border-top: 1px solid var(--line); padding-top: 24px; }
.c-dl dt { margin-bottom: 10px; }
.c-dl dd { font-size: var(--fs-large); letter-spacing: var(--ls-text); line-height: 1.5; }
.after a, .c-dl a, .foot-cols a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.after a:hover, .c-dl a:hover, .foot-cols a:hover { background-size: 100% 1px; }
@media (max-width: 900px) { .c-dl { grid-template-columns: 1fr 1fr; } }

/* ---- case pages -------------------------------------------------------- */
.foot { border-top: 1px solid var(--line); } /* every page is dark: a line marks where the footer starts */
/* hero: the title first, then the picture below it, in a frame on the white page (assets/case-hero.js develops it) */
.case-hero { position: relative; padding: 14vh 0 0; padding-top: 14svh; } /* svh: the height with the browser bar, as the home page measures it (main.js caseFrame) */
.case-hero-txt { position: relative; z-index: 2; padding-bottom: 5vh; padding-bottom: 5svh; }
.case-hero .h1 { font-size: var(--fs-title); max-width: 16ch; overflow-wrap: anywhere; }
.case-hero-frame { position: relative; aspect-ratio: 4 / 3; margin: 0 var(--gut); overflow: hidden; background: var(--paper-2); }
.case-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case-hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; } /* assets/case-hero.js: the print developing */
.case-hero.gl-ready .case-hero-img { visibility: hidden; }

/* body: info first, in one column that stays at the left; the pictures pass in the centre column,
   at the width of the hero frame (25vw … 75vw). Phones and tablets: info on top, pictures full width. */
.cs-body { padding-top: var(--sp-s); }
.cs-info { font-size: 15px; line-height: 1.45; }
.cs-sum { font-size: var(--fs-body); line-height: 1.4; margin-bottom: 28px; }
.cs-dl { display: grid; gap: 14px; margin: 0; }
.cs-dl dt { margin-bottom: 2px; }
.cs-dl dd a { display: inline-block; padding: 3px 0; text-decoration: underline 1px; text-underline-offset: 3px; transition: text-decoration-thickness .3s, text-underline-offset .3s; } /* ≥ 24px to tap */
.cs-dl dd a:hover, .cs-dl dd a:focus-visible { text-decoration-thickness: 2px; text-underline-offset: 5px; }
.cs-col { display: grid; gap: 6vh; }
.cs-about { margin-bottom: 4vh; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -.02em; } /* a paragraph: a step under the lead size */
.cs-shot { margin: 0; }
.cs-frame { display: block; overflow: hidden; background: var(--paper-2); }
.cs-frame picture, .cs-frame img { display: block; width: 100%; height: auto; }
.cs-shot figcaption, .film-bar figcaption { margin-top: 10px; font-size: 14px; }
@media (min-width: 1100px) {
  .cs-info { position: fixed; z-index: 5; left: var(--gut); top: 14vh; width: calc(25vw - var(--gut) * 2); max-height: calc(100vh - 14vh - var(--gut));
    overflow-y: auto; scrollbar-width: none; opacity: 0; pointer-events: none; transition: opacity .8s var(--ease); }
  .cs-info::-webkit-scrollbar { display: none; }
  .cs-info.is-on { opacity: 1; pointer-events: auto; }
  .cs-col { margin-left: calc(25vw - var(--gut)); width: 50vw; }
  .case-hero-txt { padding-left: 25vw; } /* title and picture line up with the column */
  .case-hero-frame { margin-left: 25vw; width: 50vw; }
}
@media (max-width: 1099px) { .cs-info { margin-bottom: var(--sp-s); max-width: 60ch; } }

/* in motion: the recording in a plain frame, with cue boxes */
.film-screen { position: relative; aspect-ratio: 16 / 10; background: #000; overflow: hidden; }
.film-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-cue { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h); border: 1px solid var(--safe); opacity: 0; transition: opacity .4s; pointer-events: none; }
.film-cue b { position: absolute; left: -1px; top: -24px; background: var(--safe); color: #fff; font: 500 12px/1 var(--serif); letter-spacing: 0; padding: 6px 8px; background: #c22a16; /* white on it ≥ 4.5:1 */ white-space: nowrap; }
.film-cue.on { opacity: 1; }
.film-bar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.film-bar figcaption { max-width: 60ch; }
.film-toggle { margin-top: 6px; }
@media (max-width: 760px) { .film-cue b { font-size: 8px; top: -18px; padding: 4px 5px; } }


/* next case: the next print waits in the same column as the pictures, still undeveloped; hovering develops it */
.case-next { padding-top: var(--sp-l); } /* a clear pause before the next case */
.next { position: relative; display: block; text-decoration: none; color: var(--ink); }
.next-meta { display: block; margin-bottom: 14px; font-size: 14px; }
/* the next print only shows on hover, opening above the title (like the awards list on About) */
.next-print { position: absolute; z-index: 2; right: 8%; bottom: 62%; width: 36%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); pointer-events: none;
  clip-path: inset(50% 50%); transition: clip-path .8s var(--ease); }
.next:hover .next-print, .next:focus-visible .next-print { clip-path: inset(0); }
.next-print img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); } /* its own colours, it only settles out of a zoom */
.next-row { display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 2.4vw, 36px); margin-top: 18px; min-width: 0; }
.next-title { min-width: 0; overflow-wrap: anywhere; transition: transform 1s var(--ease); }
.next-arrow { width: clamp(48px, 4.6vw, 76px); }
.next:hover .next-title, .next:focus-visible .next-title { transform: translateX(1.2vw); }
.next:hover .next-arrow, .next:focus-visible .next-arrow { background: var(--ink); color: var(--paper); transform: rotate(-45deg); }
.next:hover .next-print img, .next:focus-visible .next-print img { transform: none; }
.next:focus-visible { outline: none; }
@media (min-width: 1100px) { .next { margin-left: calc(25vw - var(--gut)); width: 50vw; } }
@media (hover: none) { .next-print { display: none; } } /* touch: no hover, no picture */
@media (prefers-reduced-motion: reduce) { .next * { transition: none !important; } }

/* ---- footer: at the end of every page the lights go out again ---------- */
.foot { position: relative; margin-top: var(--sp-l); background: var(--black); color: var(--light); overflow: hidden; padding-top: clamp(64px, 12vh, 140px); isolation: isolate; }
.foot-glow { position: absolute; inset: auto 0 0; height: 70%; z-index: -1; pointer-events: none; /* the glow rises from the bottom edge */
  background: radial-gradient(55% 60% at 50% 100%, var(--glow), rgba(255, 40, 20, .06) 60%, transparent 80%); }
.foot a { color: inherit; text-decoration: none; }
.foot :focus-visible { outline-color: var(--safe); }


.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gut); }
.foot-cols > * { display: grid; gap: 8px; align-content: start; }
.foot-cols a { justify-self: start; }
.foot-cols p { color: var(--light-2); max-width: 34ch; }
.foot-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; flex-wrap: wrap; }
.to-top { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; }
.to-top:hover { color: var(--safe); }
/* the wordmark is sized by site.js to run edge to edge; hovering it shines a safelight torch that develops the letters */
@property --fw-r { syntax: "<length>"; inherits: true; initial-value: 0px; }
.foot-word { --fw-r: 0px; --mx: 50%; --my: 50%; position: relative; font-size: 25vw; line-height: .74; letter-spacing: -.07em; text-align: center; white-space: nowrap;
  margin: 6vh 0 0; padding-bottom: .02em; user-select: none; color: transparent; -webkit-text-stroke: 1px rgba(255, 74, 46, .45); transition: --fw-r .9s var(--ease); cursor: crosshair; }
.foot-word span { display: inline-block; pointer-events: none; } /* the glyphs' hit area reaches far above the box and would swallow clicks (Back to top) */
/* the glyphs rise above the tight line box and the mask only paints inside the box: the box reaches .2em further
   up and down (padding keeps the letters where they were) so the lit letters fill to the top like the outline */
.foot-word::after { content: attr(data-text); position: absolute; inset: -.2em 0; padding: .2em 0 0; color: var(--safe); -webkit-text-stroke: 0; pointer-events: none;
  text-shadow: 0 0 .12em rgba(255, 60, 30, .55);
  -webkit-mask-image: radial-gradient(circle var(--fw-r) at var(--mx) calc(var(--my) + .2em), #000 0, #000 30%, transparent 100%);
          mask-image: radial-gradient(circle var(--fw-r) at var(--mx) calc(var(--my) + .2em), #000 0, #000 30%, transparent 100%); }
.foot-word.lit { --fw-r: 30vw; }
/* about: the drifting glow (assets/about-orb.js) bursts into the wordmark and lights all of it */
.foot-word.burst { --fw-r: 120vw; transition-duration: 1.6s; }
.foot-glow { transition: transform 1.6s var(--ease), filter 1.6s var(--ease); transform-origin: 50% 100%; }
.foot-glow.burst { transform: scaleY(1.35); filter: brightness(1.7); }
.about-orb { position: fixed; left: 0; top: 0; z-index: 40; width: min(46vmax, 620px); aspect-ratio: 1; pointer-events: none;
  mix-blend-mode: screen; will-change: transform, opacity; opacity: 0; }
/* the glow behind the drop (blurred once, moved by transform only) */
.orb-halo { position: absolute; inset: -10%; border-radius: 50%; filter: blur(40px); opacity: .4;
  background: radial-gradient(closest-side, rgba(255, 74, 46, .55), rgba(255, 40, 20, .12) 55%, transparent); }
/* the drop: a smooth liquid outline (one slow wave of noise, not a ragged cloud), the safelight glow inside it */
.orb-goo { position: absolute; inset: 10%; filter: url(#orb-warp) blur(16px); will-change: transform; }
.orb-goo b { position: absolute; border-radius: 50%; will-change: transform; }
.orb-goo b:nth-child(1) { inset: 12%;
  background: radial-gradient(closest-side at 46% 44%, rgba(255, 140, 100, .85) 0, rgba(255, 90, 56, .75) 35%, rgba(242, 64, 36, .55) 65%, rgba(232, 54, 26, 0) 100%); }
.orb-goo b:nth-child(2) { inset: 22% 8% 18% 30%; border-radius: 46% 54% 40% 60%;
  background: radial-gradient(closest-side, rgba(255, 80, 48, .6) 0, rgba(240, 60, 30, .4) 60%, rgba(240, 60, 30, 0) 100%); }
.orb-goo b:nth-child(3) { inset: 8% 28% 30% 14%; border-radius: 58% 42% 52% 48%;
  background: radial-gradient(closest-side, rgba(255, 110, 70, .5) 0, rgba(235, 64, 34, .35) 60%, rgba(235, 64, 34, 0) 100%); }
/* the tray's film grain: fine, per pixel, stepping at film rate (about-orb.js moves it), faded out at the edges */
.orb-grain { position: absolute; inset: 0; mix-blend-mode: overlay; opacity: .55; background-size: 128px 128px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 70%); mask: radial-gradient(closest-side, #000 30%, transparent 70%); }
@media (max-width: 759px) { .about-orb { width: 90vw; } }
@media (hover: none), (prefers-reduced-motion: reduce) { .foot-word { cursor: default; } }
@media (max-width: 900px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } .foot-base { flex-direction: column; align-items: flex-start; } }

/* ---- motion ------------------------------------------------------------ */
/* reveals (JS adds .js on <html>) */
.js [data-reveal="up"] { opacity: 0; transform: translateY(24px); }
.rl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; } /* line reveal: each line is a mask */
.rl > span { display: inline-block; }
.lw { white-space: nowrap; } /* a word is measured whole: never let it break at its hyphen (Real-time) while the lines are counted */
[data-reveal="mask"] { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; } /* one line, its children rise inside */
/* ink text (assets/ink-text.js): the canvas draws the title; the HTML text stays for selection and screen readers */
.ink-text-on { position: relative; color: transparent !important; }
.ink-text-gl { position: absolute; display: block; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="up"] { opacity: 1; transform: none; }
}

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
/* no visible scrollbar anywhere: it vanished whenever a menu locked the scroll and the page jumped sideways */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* cursor: a round ball, inverts what is under it, grows over links */
.ball { position: fixed; left: 0; top: 0; z-index: 200; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff;
  mix-blend-mode: difference; pointer-events: none; opacity: 0; transition: opacity .3s, width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease); }
html.ball-on .ball { opacity: 1; }
.ball.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
@media (hover: hover) and (pointer: fine) { html.ball-on, html.ball-on * { cursor: none !important; } }

/* lights coming on after the darkroom */
.lights-in { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--black);
  background-image: radial-gradient(60% 55% at 50% 0%, rgba(255, 60, 30, .45), transparent 75%); }

/* page-change curtain: black, its moving edge glows warm (the gradient travels with the edge) */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; transform-origin: 50% 100%; background: var(--black); } /* plain black as it closes over the page; the warm edge only shows as it lifts on the next page */
.curtain.curtain-up { z-index: 150; background: linear-gradient(to top, var(--safe) 0, var(--red) 1.2vh, #5a130a 5vh, #070303 16vh, var(--black) 100%); }
/* arriving through the curtain: black until site.js lifts it */
html.curtain-in body::after { content: ""; position: fixed; inset: 0; z-index: 150; background: var(--black); }
