/* Ilan Chelly — v3.
   The story is full-bleed 3D with white type pinned bottom-left, like a departures board;
   the work sits on a cool, sky-haze paper. Instrument Serif for titles and years, Inter for reading
   and for the small uppercase labels. One accent per place. */

:root {
  color-scheme: light;
  --ink: #101316;
  --ink-2: #3a4049;
  --ink-3: #6a717c;
  --paper: #eef1f4;
  --paper-2: #e3e8ee;
  --card: #ffffff;
  --line: rgba(16, 19, 22, 0.1);
  --white: #ffffff;
  --white-2: rgba(255, 255, 255, 0.82);
  --white-3: rgba(255, 255, 255, 0.62);
  --accent: #2d62e0;
  --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

/* ---------------------------------------------------------------- type
   Instrument Serif and Inter (both SIL Open Font License), served from here rather than from Google Fonts: no other
   host to reach before the first words show. The files and ranges are the ones Google serves. */
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2?v=a04fc7ed18a8) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-italic-latin.woff2?v=6ee678c33f38) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-normal-latin-ext.woff2?v=a8c4bd7cd707) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-normal-latin.woff2?v=60c06664b5a9) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic-ext.woff2?v=fccca918fea4) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic.woff2?v=aebf2ab4a4ce) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-greek-ext.woff2?v=a2e2c783ca6f) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-greek.woff2?v=46dd4cdca58c) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-vietnamese.woff2?v=8db00ff46c67) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2?v=a28eb6d3ccb5) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2?v=c940764593d0) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic-ext.woff2?v=fccca918fea4) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic.woff2?v=aebf2ab4a4ce) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-greek-ext.woff2?v=a2e2c783ca6f) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-greek.woff2?v=46dd4cdca58c) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-vietnamese.woff2?v=8db00ff46c67) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2?v=a28eb6d3ccb5) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2?v=c940764593d0) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic-ext.woff2?v=fccca918fea4) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-cyrillic.woff2?v=aebf2ab4a4ce) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-greek-ext.woff2?v=a2e2c783ca6f) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-greek.woff2?v=46dd4cdca58c) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-vietnamese.woff2?v=8db00ff46c67) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin-ext.woff2?v=a28eb6d3ccb5) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/inter-latin.woff2?v=c940764593d0) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: #a9c7e6;
  color: var(--white);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- stage */
.webgl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
/* the studio's screenshots, laid over the monitor's screen by Stage.updateScreenFlow (a projective transform) */
.screen-flow { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; visibility: hidden; }
.screen-flow__shot {
  position: absolute; left: 0; top: 0; width: 1440px; height: 900px; transform-origin: 0 0; opacity: 0;
  background: #0b0d10; will-change: transform, opacity;
}
.screen-flow__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* a live site over its capture (Stage.liveFrame), shown once it has drawn; the visitor can use it (html.is-using) */
.screen-flow__shot iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff;
  opacity: 0; transition: opacity 0.6s; pointer-events: none;
}
.screen-flow__shot.is-live iframe { opacity: 1; }
/* the desk models that pass in front of the screen (showcase.js) */
.showcase { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; pointer-events: none; visibility: hidden; }
html.is-using .showcase { opacity: 0; }
html.over-screen, html.over-screen body { cursor: pointer; }
html.is-using { overflow: hidden; }
html.is-using .screen-flow { z-index: 3; }
html.is-using .screen-flow__shot.is-using iframe { pointer-events: auto; }
html.is-using main, html.is-using .nav { opacity: 0.25; transition: opacity 0.4s; }
.live-exit {
  position: fixed; top: 22px; left: 50%; z-index: 4; transform: translateX(-50%);
  display: none; align-items: center; gap: 10px; padding: 9px 16px; border-radius: 99px; cursor: pointer;
  font-size: 13px; color: var(--white); background: rgba(8, 11, 16, 0.62); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html.is-using .live-exit { display: flex; }
.shade {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(8, 11, 16, 0.58) 0%, rgba(8, 11, 16, 0.18) 34%, rgba(8, 11, 16, 0) 56%),
    linear-gradient(90deg, rgba(8, 11, 16, 0.34) 0%, rgba(8, 11, 16, 0) 52%);
  opacity: var(--shade, 0);
}
.nav::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.28), rgba(8, 11, 16, 0));
  transition: opacity 0.5s;
}
main { position: relative; z-index: 2; }
/* the work and the contact: part of the page on a desktop, a sheet of their own on a phone */
.tail { display: contents; }

/* ---------------------------------------------------------------- loader */
/* the name as a title page, the stops of the story along the bottom lighting up as the first city loads */
.loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 32px);
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(246, 223, 196, 0.9) 0%, rgba(246, 223, 196, 0) 60%),
    linear-gradient(180deg, #2c5fa8 0%, #6e9dd4 58%, #c9d8e6 100%);
  color: var(--white);
  transition: opacity 1s var(--ease), visibility 1s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader.is-done .loader__center { transform: translateY(-14px) scale(1.02); filter: blur(4px); }
.loader__center {
  display: grid; place-content: center; justify-items: center; text-align: center;
  transition: transform 1s var(--ease), filter 1s var(--ease);
  animation: loader-in 1.2s var(--ease) both;
}
@keyframes loader-in { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
.loader__words {
  position: relative; height: 1.4em; width: 10em; margin: 0 0 10px; text-align: center;
  font-family: var(--display); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--white-2);
}
.loader__words span { position: absolute; inset: 0; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.5s var(--ease); }
.loader__words span.is-on { opacity: 1; transform: none; }
.loader__name {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 13vw, 200px); line-height: 0.88; letter-spacing: -0.02em;
  text-shadow: 0 2px 50px rgba(20, 50, 100, 0.25);
}
.loader__sub {
  display: flex; align-items: center; gap: 16px; margin: 14px 0 0;
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); color: var(--white-2);
}
.loader__sub::before, .loader__sub::after { content: ''; width: clamp(28px, 5vw, 64px); height: 1px; background: currentColor; opacity: 0.6; }
.loader__foot {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 16px 24px; width: min(760px, 100%); margin: 0 auto;
  color: #13203a; /* the foot sits on the pale end of the sky: navy, not white, so it reads */
}
.loader__route {
  grid-column: 1 / -1; display: flex; justify-content: space-between; list-style: none; margin: 0; padding: 0;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.loader__route li { opacity: 0.55; transition: opacity 0.5s; }
.loader__route li.is-on { opacity: 1; }
.loader__bar { align-self: center; height: 3px; border-radius: 3px; background: rgba(19, 32, 58, 0.15); overflow: hidden; }
.loader__bar i { display: block; height: 100%; border-radius: inherit; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }
.loader__num {
  margin: 0; min-width: 2.2ch; text-align: right; font-family: var(--display); font-size: 40px; line-height: 0.8;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- arriving: a place reached before it has loaded */
/* it sits on the cloud the place builds itself under, in the boarding pass's ink; shown a moment after the wait begins
   (a place that is only just late never flashes it), gone as soon as the place is in */
.arriving {
  position: fixed; left: 50%; top: 50%; z-index: 3; pointer-events: none;
  display: grid; justify-items: center; gap: 14px;
  color: var(--ink); text-shadow: 0 0 28px rgba(255, 255, 255, 0.75), 0 0 2px rgba(255, 255, 255, 0.5);
  opacity: 0; visibility: hidden; transform: translate(-50%, calc(-50% + 8px)); filter: blur(4px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease), visibility 0s 0.5s;
}
.arriving.is-on {
  opacity: 1; visibility: visible; transform: translate(-50%, -50%); filter: none;
  transition: opacity 0.6s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s, filter 0.6s var(--ease) 0.3s, visibility 0s 0.3s;
}
.arriving__line { margin: 0; display: flex; gap: 14px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #262b33; }
.arriving__line b { font-weight: 400; opacity: 0.6; font-variant-numeric: tabular-nums; min-width: 4ch; text-align: right; }
.arriving__bar { width: min(220px, 56vw); height: 2px; background: rgba(38, 43, 51, 0.18); overflow: hidden; border-radius: 2px; }
.arriving.is-queued .arriving__line b { opacity: 0; }
.arriving__bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gutter) 18px;
  color: var(--white);
  transition: color 0.4s, background 0.4s;
}
.nav__name {
  justify-self: start; text-decoration: none;
  font-family: var(--display); font-size: 24px; line-height: 1; letter-spacing: -0.01em;
}
.nav__links { justify-self: end; display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
.nav__links a { text-decoration: none; opacity: 0.9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
/* (a phone, in the sheet of work at the end: back to the story) */
.nav__journey { display: none; padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 500; }

.route { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.route li { display: flex; align-items: center; gap: 7px; font-family: var(--display); font-style: italic; font-size: 16px; }
.route li + li::before { content: ''; width: 16px; height: 1px; background: currentColor; opacity: 0.35; margin-right: 1px; }
.route i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.6; transition: background 0.3s, opacity 0.3s; }
.route span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width 0.6s var(--ease), opacity 0.4s; }
.route li.is-seen { cursor: pointer; }
.route li.is-seen:hover span { opacity: 1; }
.route li.is-seen i { background: currentColor; opacity: 0.9; }
.route li.is-seen span { max-width: 10em; opacity: 0.55; }
.route li.is-now span { opacity: 1; }
.route li.is-now i { background: var(--dot, currentColor); border-color: var(--dot, currentColor); opacity: 1; }

body[data-tone='paper'] .nav { color: var(--ink); background: rgba(238, 241, 244, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body[data-tone='paper'] .nav::before { opacity: 0; }

/* ---------------------------------------------------------------- hero */
/* centred and bright: a warm glow over the sky, dark type on it */
.hero { height: var(--len); }
.hero__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; text-align: center;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + clamp(28px, 5vh, 52px));
  opacity: var(--vis, 1);
  color: #13203a;
}
.hero__pin::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 52%, rgba(255, 251, 244, 0.82) 0%, rgba(255, 249, 240, 0.45) 45%, rgba(255, 248, 238, 0) 100%),
    linear-gradient(0deg, rgba(255, 244, 230, 0.55) 0%, rgba(255, 244, 230, 0) 45%),
    linear-gradient(180deg, rgba(190, 215, 245, 0.25) 0%, rgba(190, 215, 245, 0) 30%);
}
.hero__center { align-self: center; display: grid; justify-items: center; padding-top: 40px; animation: hero-in 1.4s var(--ease) 0.2s both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
.hero__kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 6px;
  font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); color: #3b4a66;
}
.hero__kicker::before, .hero__kicker::after { content: ''; width: clamp(24px, 4vw, 56px); height: 1px; background: currentColor; opacity: 0.5; }
.hero__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(68px, 14vw, 220px); line-height: 0.88; letter-spacing: -0.025em;
}
.hero__line { max-width: 36ch; margin: 24px 0 0; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; color: #2c3a55; text-wrap: balance; }
.hero__foot { display: grid; justify-items: center; gap: 10px; }
.hero__cue {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #13203a;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.9);
}
.hero__cue > span { animation: cue-glow 2s ease-in-out infinite; }
@keyframes cue-glow { 0%, 100% { opacity: 1; transform: translateY(0); } 50% { opacity: 0.7; transform: translateY(4px); } }
.hero__cue::after { content: ''; width: 2px; height: 52px; border-radius: 2px; background: currentColor; transform-origin: top; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero__phone { display: none; margin: 0; font-family: var(--display); font-style: italic; font-size: 17px; color: #3b4a66; }
@media (max-width: 760px), (pointer: coarse) {
  .hero__phone { display: block; }
}
/* a phone taps through the stops with the dock at the bottom: the cue sits above it (the pin is fixed, as the page
   doesn't scroll; see the phone's section below) */
html.tap .hero__pin { position: fixed; inset: 0; height: auto; pointer-events: none; padding-bottom: calc(var(--dock) + 26px); }
html.tap .hero:not(.is-here) .hero__pin { visibility: hidden; }
html.tap .hero__cue::after { display: none; }
.cue-phone { display: none; }
@media (max-width: 760px), (pointer: coarse) {
  .cue-desk { display: none; }
  .cue-phone { display: inline; }
}
/* over the bright hero the header and a phone's dock go dark */
html.on-hero .nav { color: #13203a; }
html.on-hero .nav::before { opacity: 0; }

/* ---------------------------------------------------------------- stations */
.station, .flight { height: var(--len); }
.station__pin, .flight__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(36px, 8vh, 88px);
  pointer-events: none;
}
/* a flight's strip holds the middle of the screen for the whole flight (a sticky pin would only hold while the
   section's last screen is in view, and scroll the strip away as it fades) */
.flight__pin { position: fixed; inset: 0; height: auto; padding: 0 var(--gutter); }
.copy {
  width: min(560px, 100%);
  opacity: var(--vis, 1);
  transform: translateY(calc((1 - var(--vis, 1)) * 26px));
  pointer-events: auto;
}
.copy__kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--white-2); }
.copy__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); }
.copy__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 8.4vw, 136px); line-height: 0.9; letter-spacing: -0.02em; text-wrap: balance;
  font-variant-numeric: lining-nums; white-space: nowrap;
  text-shadow: 0 2px 40px rgba(8, 11, 16, 0.25);
}
.copy__title .dash { opacity: 0.8; }
.copy__title em { font-style: italic; }

/* a stop's badge: the logo of where it happened, and the place */
.stamp { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.stamp__logo {
  flex: none; width: 52px; height: 52px; padding: 5px; border-radius: 12px; object-fit: contain;
  background: var(--white); box-shadow: 0 8px 24px -10px rgba(8, 11, 16, 0.5);
}
.stamp__logo--wide { width: 96px; padding: 6px 8px; }
.stamp__logo--big { display: block; width: 180px; height: 86px; padding: 10px 14px; border-radius: 16px; margin: 0 0 18px; }
.copy__title--name { white-space: normal; font-size: clamp(48px, 6.4vw, 104px); }
.stamp__logo--flag { display: flex; padding: 0; overflow: hidden; }
.stamp__logo--flag i { flex: 1; }
.stamp__logo--flag i:nth-child(1) { background: #0055a4; }
.stamp__logo--flag i:nth-child(2) { background: #fff; }
.stamp__logo--flag i:nth-child(3) { background: #ef4135; }
.stamp__place, .copy > .stamp__place {
  margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-2);
  text-shadow: 0 1px 12px rgba(8, 11, 16, 0.55), 0 0 2px rgba(8, 11, 16, 0.35);
}
.stamp .stamp__place { color: var(--white); }
.copy > .stamp__place { margin-bottom: 12px; }
.copy__line { margin: 18px 0 0; max-width: 46ch; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--white); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.chips li {
  padding: 6px 12px; border-radius: 99px; font-size: 13px; line-height: 1.2;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.school { display: flex; align-items: center; gap: 12px; margin: 18px 0 0; }
.school img { width: 44px; height: 44px; border-radius: 10px; background: var(--white); padding: 4px; object-fit: contain; }
.school img.school__wordmark { width: 92px; padding: 5px; }
.school p { margin: 0; display: grid; line-height: 1.3; }
.school b { font-weight: 600; font-size: 15px; }
.school span { font-size: 13px; color: var(--white-2); }

/* a place whose copy runs almost to its end (the studio's last projects): the copy is fixed to the screen for the whole
   place, as a flight's strip is, rather than pinned to its last screen and scrolled away with it */
.station[data-fixed] .station__pin { position: fixed; inset: 0; height: auto; }
.station[data-fixed]:not(.is-here) .station__pin { visibility: hidden; }

/* beats: several pieces of copy in one place, each on screen for its own stretch of the walk */
.copy[data-beat], .copy[data-at] {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 8vh, 88px);
  width: auto; max-width: 560px;
  opacity: calc(var(--vis, 1) * var(--beat, 0));
  transform: translateY(calc((1 - var(--beat, 0)) * 18px));
  pointer-events: none;
}
.copy[data-beat].is-on, .copy[data-at].is-on { pointer-events: auto; }

/* the studio's monitor: one project at a time */
.browser__name {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; letter-spacing: -0.02em;
}
.browser__meta { margin: 12px 0 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-2); }
.browser .copy__line { margin-top: 14px; }
.browser__nav { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; }
.browser__arrow {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font: inherit; font-size: 18px; line-height: 1; color: var(--white);
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s;
}
.browser__arrow:hover { background: rgba(255, 255, 255, 0.3); }
.browser__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 20px 0 0; }
.browser__live {
  padding: 8px 16px; border-radius: 99px; cursor: pointer; font-size: 14px; color: #111;
  background: var(--white); border: 0; transition: transform 0.2s;
}
.browser__live:hover { transform: translateY(-1px); }
.browser__links .browser__visit { margin-left: 0; }
.browser__visit { margin-left: 8px; color: var(--white); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

/* the Galleria's windows: Marangoni projects */
.exhibit__team { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: var(--white-2); }
.exhibit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 18px 0 0; }
.exhibit .browser__visit { margin: 0; }
.exhibit__open {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 99px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--ink); background: var(--white); border: 0;
  box-shadow: 0 10px 30px -12px rgba(8, 11, 16, 0.6); transition: transform 0.2s var(--ease);
}
.exhibit__open span { font-weight: 500; color: var(--ink-3); font-size: 12px; }
.exhibit__open:hover { transform: translateY(-1px); }
html.over-exhibit, html.over-exhibit * { cursor: pointer; }

/* ---------------------------------------------------------------- a Marangoni deck, open (ui/viewer.js) */
.viewer {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #0f0e0d; color: var(--white);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.viewer.is-open { opacity: 1; visibility: visible; }
.viewer__bar {
  position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 18px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 14px;
  background: linear-gradient(180deg, rgba(15, 14, 13, 0.95), rgba(15, 14, 13, 0.75));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.viewer__title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.viewer__title b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3vw, 38px); line-height: 1; white-space: nowrap; }
.viewer__title span { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer__count { font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--white-3); font-variant-numeric: tabular-nums; }
.viewer__close {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--white);
}
.viewer__close:hover { background: rgba(255, 255, 255, 0.18); }
.viewer__pages { display: grid; gap: clamp(12px, 2vw, 24px); width: min(880px, 100%); margin: 0 auto; padding: 8px var(--gutter) 80px; }
.viewer--wide .viewer__pages { width: min(1280px, 100%); }
.viewer__page { margin: 0; background: #1b1a18; border-radius: 4px; overflow: hidden; transform: translateY(14px); opacity: 0; transition: none; }
.viewer.is-open .viewer__page { transform: none; opacity: 1; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.viewer__page img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 560px) {
  .viewer__title span { display: none; }
  .viewer__pages { padding-inline: 0; gap: 8px; }
  .viewer__page { border-radius: 0; }
}
@media (max-width: 760px) {
  /* on a phone the display stands above the caption: keep the caption short */
  .exhibit .copy__line { display: none; }
  .exhibit .browser__name { font-size: 40px; }
}

/* ---------------------------------------------------------------- flights: a boarding-pass strip over the cloud */
/* --vis: in through the cloud's thickening, held while it is solid, out as it thins (main.js); --fly: the flight's
   progress over the same stretch, which the plane and a slow drift follow */
.flight__pin { align-items: center; justify-content: center; }
.pass {
  display: grid; grid-template-columns: auto auto auto; align-items: center; justify-items: center; column-gap: 22px; row-gap: 14px;
  color: var(--ink);
  opacity: var(--vis, 0);
  visibility: hidden;
  transform: translateY(calc((0.5 - var(--fly, 0.5)) * 36px)) scale(calc(0.965 + var(--vis, 0) * 0.035));
  filter: blur(calc((1 - var(--vis, 0)) * 7px));
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.75), 0 0 2px rgba(255, 255, 255, 0.5);
}
.flight.is-on .pass { visibility: visible; }
.pass__code {
  font-family: var(--display); font-weight: 400; font-size: clamp(56px, 9vw, 128px); line-height: 1;
  letter-spacing: calc(-0.02em + (1 - var(--vis, 0)) * 0.12em);
}
.pass__path { position: relative; width: clamp(70px, 14vw, 220px); height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); opacity: 0.55; }
.pass__path i {
  position: absolute; top: 50%; left: calc(var(--fly, 0.5) * 100%); width: 18px; height: 18px; margin: -9px 0 0 -9px;
  background: var(--ink); -webkit-mask: var(--plane) center / contain no-repeat; mask: var(--plane) center / contain no-repeat;
  --plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 16v-2l-8-5V3.5a1.5 1.5 0 0 0-3 0V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5z' transform='rotate(90 12 12)'/%3E%3C/svg%3E");
}
.pass__meta { grid-column: 1 / -1; font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #262b33; }
.pass:not(:has(.pass__path)) { grid-template-columns: auto; }

/* ---------------------------------------------------------------- work */
.work { position: relative; background: var(--paper); color: var(--ink); padding-block: clamp(90px, 14vh, 160px) clamp(80px, 12vh, 140px); border-radius: 28px 28px 0 0; }
.work__inner { width: min(1320px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.work__head { display: grid; gap: 14px; margin-bottom: clamp(36px, 6vh, 64px); max-width: 760px; }
.work__head .mono { margin: 0; color: var(--ink-3); }
.work__head h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 7.4vw, 112px); line-height: 0.95; letter-spacing: -0.02em;
}
.work__intro { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 46ch; }

.work__grid { display: grid; gap: clamp(56px, 8vh, 88px); }
.shelf { display: grid; gap: 22px; }
.shelf__head { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.shelf__head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.01em; }
.shelf__head p { margin: 0; font-size: 14px; color: var(--ink-3); }
.shelf__count { font-family: var(--display); font-size: 20px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.shelf__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 22px; }
.shelf--client .shelf__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.shelf--client .card__top h3 { font-size: 21px; }
.shelf--client .card__blurb { font-size: 13.5px; }

.card { display: grid; align-content: start; gap: 6px; text-decoration: none; color: var(--ink); }
.card__media {
  aspect-ratio: 4 / 3; margin-bottom: 10px; padding: 9% 9% 0; border-radius: 12px; overflow: hidden;
  background: var(--tint); display: flex; align-items: flex-end;
  box-shadow: inset 0 0 0 1px rgba(16, 19, 22, 0.06);
}
.card__media img {
  width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: 6px 6px 0 0; box-shadow: 0 10px 30px -14px rgba(16, 19, 22, 0.45);
  transform: translateY(4%); transition: transform 0.6s var(--ease);
}
.card:hover .card__media img, .card:focus-visible .card__media img { transform: translateY(0); }
.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 12px; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__top h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.05; letter-spacing: -0.005em; }
.card:hover .card__top h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card__year { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card__blurb { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.card__meta { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.card__meta span { margin: 0 4px; opacity: 0.6; }

@media (max-width: 900px) {
  .shelf__grid, .shelf--client .shelf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf__head { grid-template-columns: 1fr auto; }
  .shelf__head p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .shelf__grid, .shelf--client .shelf__grid { grid-template-columns: 1fr; gap: 32px; }
  .card__media { aspect-ratio: 16 / 9; padding: 6% 12% 0; }
}

.earlier { margin-top: clamp(56px, 8vh, 88px); }
.earlier .shelf__head { grid-template-columns: auto 1fr; }
.earlier__list { list-style: none; margin: 0; padding: 0; display: grid; }
.earlier__list li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 22px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.school__logo { display: grid; place-items: center; width: 72px; height: 72px; padding: 7px; border-radius: 14px; background: var(--white, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.school__logo img { width: 100%; height: 100%; object-fit: contain; }
.school__body { display: grid; gap: 4px; }
.school__body h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; }
.school__body h3 span { margin-left: 8px; font-family: var(--text, inherit); font-size: 14px; color: var(--ink-3); }
.school__body p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.school__body a { color: var(--ink); text-underline-offset: 3px; }
.school__when { font-family: var(--display); font-size: 20px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .earlier__list li { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; align-items: start; }
  .school__logo { width: 56px; height: 56px; padding: 9px; border-radius: 12px; grid-row: span 2; }
  .school__when { grid-column: 2; font-size: 17px; }
  .school__body h3 span { display: block; margin: 4px 0 0; }
}

/* ---------------------------------------------------------------- finale */
.finale { height: var(--len); }
.finale__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 36px;
  padding: 0 var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 28px);
}
.finale__copy { max-width: 1000px; opacity: var(--vis, 1); transform: translateY(calc((1 - var(--vis, 1)) * 26px)); }
.finale__copy .mono { margin: 0 0 16px; color: var(--white-2); }
.finale__title {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 7.6vw, 120px); line-height: 0.92; letter-spacing: -0.02em; text-wrap: balance;
}
.finale__title span { font-style: italic; opacity: 0.6; }
.finale__line { margin: 20px 0 0; max-width: 48ch; font-size: clamp(17px, 1.4vw, 20px); }
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 28px; max-width: 1000px; }
.contact__item {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px 10px 10px; border-radius: 16px;
  color: var(--white); text-decoration: none;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.25s, transform 0.25s var(--ease);
}
a.contact__item:hover, a.contact__item:focus-visible { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
.contact__logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--white); color: #13203a; }
.contact__logo svg { width: 20px; height: 20px; }
.contact__logo--linkedin { background: #0a66c2; color: var(--white); }
.contact__logo--github { background: #181717; color: var(--white); }
.contact__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.contact__text small { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.contact__text > span { font-size: 15px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.contact .email { user-select: all; }
.contact__go { flex: none; font-size: 16px; opacity: 0.7; }
.contact button {
  flex: none; padding: 7px 12px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600;
  color: #13203a; background: var(--white); border: 0;
}
.contact button:hover { background: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; max-width: 420px; } }
.foot { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--white-3); font-size: 10.5px; }
.foot__credits {
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.foot__credits:hover { color: var(--white); }
.credits {
  width: min(560px, calc(100vw - 32px)); max-height: min(80vh, 640px); padding: 26px 28px 28px; border: 0; border-radius: 20px;
  background: var(--paper, #f3f5f8); color: var(--ink, #13203a); box-shadow: 0 30px 80px -20px rgba(10, 20, 40, 0.45);
}
.credits::backdrop { background: rgba(10, 18, 34, 0.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.credits__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.credits__head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; }
.credits__close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line, rgba(0,0,0,0.12)); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.credits__close:hover { background: rgba(19, 32, 58, 0.06); }
.credits__list { list-style: none; margin: 0; padding: 0; display: grid; }
.credits__list li { padding: 11px 0; border-top: 1px solid var(--line, rgba(0,0,0,0.1)); font-size: 14px; line-height: 1.5; color: var(--ink-2, #3b4a66); }
.credits__list a { color: var(--ink, #13203a); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- a phone's way through the story (main.js tap) */
/* The page doesn't scroll: the story moves on with the dock's buttons, in reach of the thumb. Every place's copy is
   fixed to the screen and stands in a card just above the dock, the same size and in the same spot at every stop, so
   the scene behind never gets in the way of reading it. The work and the contact are a sheet that rises at the end. */
.dock, .tap-cut { display: none; }
html.tap { --dock: calc(env(safe-area-inset-bottom, 0px) + 70px); }
html.tap, html.tap body { overflow: hidden; overscroll-behavior: none; }

html.tap .station__pin { position: fixed; inset: 0; height: auto; padding: 0; }
html.tap .station:not(.is-here) .station__pin { visibility: hidden; }
/* (small: the place stays the picture, the card a caption under it) */
html.tap .station .copy {
  position: absolute; left: 10px; right: 10px; bottom: var(--dock); width: auto; max-width: 440px; margin-inline: auto;
  padding: 12px 14px 13px; border-radius: 16px;
  background: rgba(12, 15, 20, 0.56); border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
}
/* (a card that isn't showing isn't drawn: its blur would still cost a frame) */
html.tap .copy[data-beat]:not(.is-shown), html.tap .copy[data-at]:not(.is-shown) { visibility: hidden; }
html.tap .copy__title { font-size: 30px; }
html.tap .copy__title--name, html.tap .browser__name { font-size: 25px; }
html.tap .copy__line, html.tap .browser .copy__line { margin-top: 6px; font-size: 13px; line-height: 1.4; }
html.tap .stamp { gap: 8px; margin-bottom: 8px; }
html.tap .stamp__logo { width: 28px; height: 28px; padding: 3px; border-radius: 7px; }
html.tap .stamp__logo--flag { padding: 0; }
html.tap .stamp__logo--big { width: 78px; height: 38px; padding: 5px 7px; border-radius: 9px; margin-bottom: 8px; }
html.tap .stamp__place { font-size: 9.5px; letter-spacing: 0.12em; }
html.tap .copy > .stamp__place { margin-bottom: 5px; }
html.tap .chips { margin-top: 8px; gap: 4px; }
html.tap .chips li {
  padding: 3px 8px; font-size: 10.5px; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.tap .browser__meta { margin-top: 4px; font-size: 9.5px; }
html.tap .browser__links { gap: 10px; margin-top: 8px; }
html.tap .browser__visit { font-size: 12.5px; }
html.tap .exhibit__team { margin-top: 5px; font-size: 11.5px; line-height: 1.4; }
html.tap .exhibit__actions { gap: 6px 12px; margin-top: 9px; }
html.tap .exhibit__open { gap: 8px; padding: 7px 12px; font-size: 12px; }
html.tap .exhibit__open span { font-size: 10.5px; }
html.tap .exhibit .stamp__place { letter-spacing: 0.08em; }
/* the contact, at the sheet's end: a little tighter, so it clears the header on a small phone */
html.tap .finale__pin { gap: 22px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
html.tap .finale__copy .mono { margin-bottom: 12px; }
html.tap .finale__title { font-size: 44px; }
html.tap .finale__line { margin-top: 14px; font-size: 15px; line-height: 1.45; }
html.tap .contact { margin-top: 20px; gap: 8px; }
html.tap .contact__item { padding: 8px 12px 8px 8px; }
html.tap .contact__logo { width: 38px; height: 38px; }
@media (max-height: 700px) {
  html.tap .finale__pin { gap: 16px; }
  html.tap .finale__copy .mono { display: none; }
  html.tap .finale__title { font-size: 34px; }
  html.tap .finale__line { margin-top: 12px; font-size: 14.5px; }
  html.tap .contact { margin-top: 16px; gap: 6px; }
  html.tap .contact__item { padding: 6px 10px 6px 6px; }
  html.tap .contact__logo { width: 34px; height: 34px; border-radius: 9px; }
  html.tap .contact__text > span { font-size: 14px; }
  html.tap .foot { gap: 6px 14px; font-size: 10px; }
}
/* the card does the reading's work: the shade only keeps the header clear */
html.tap .shade {
  background:
    linear-gradient(0deg, rgba(8, 11, 16, 0.4) 0%, rgba(8, 11, 16, 0) 42%),
    linear-gradient(180deg, rgba(8, 11, 16, 0.22) 0%, rgba(8, 11, 16, 0) 16%);
}

/* the dock: Back, where the story is, Next */
html.tap .dock {
  position: fixed; z-index: 21; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  max-width: 560px; margin-inline: auto;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s;
}
html.tap-up .dock, html.is-viewing .dock {
  opacity: 0; transform: translateY(16px); visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}
.dock button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.dock__back {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  color: var(--white); background: rgba(12, 15, 20, 0.5); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.3s, background 0.2s;
}
.dock__back:active { background: rgba(12, 15, 20, 0.72); }
.dock__back:disabled { opacity: 0; pointer-events: none; }
.dock__next {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 22px; border: 0; border-radius: 99px;
  font-size: 15px; font-weight: 600; color: var(--ink); background: var(--white);
  box-shadow: 0 12px 30px -12px rgba(8, 11, 16, 0.55);
  transition: opacity 0.3s, transform 0.2s var(--ease), background 0.3s, color 0.3s;
}
.dock__next:active { transform: scale(0.96); }
/* (on the way: a tap now is let go, main.js step) */
.dock.is-moving button:not(:disabled) { opacity: 0.45; pointer-events: none; }
.dock__where { min-width: 0; display: grid; gap: 8px; color: var(--white); text-shadow: 0 1px 10px rgba(8, 11, 16, 0.6); transition: color 0.3s; }
.dock__where p {
  display: flex; justify-content: space-between; gap: 8px; min-height: 1.3em; margin: 0;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.dock__where b { font-weight: 500; letter-spacing: 0.08em; opacity: 0.75; font-variant-numeric: tabular-nums; }
.dock__track { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.28); overflow: hidden; }
.dock__track i { display: block; height: 100%; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
/* over the bright hero, and the thick of a flight's cloud: dark */
html.on-hero .dock__where, html.in-cloud .dock__where { color: #13203a; text-shadow: none; }
html.on-hero .dock__track, html.in-cloud .dock__track { background: rgba(19, 32, 58, 0.18); }
html.on-hero .dock__next { color: var(--white); background: #13203a; }

/* the sheet at the end: it rises with the story's last stretch (or over any place, from Work in the header), then
   scrolls as a page does */
html.tap .tail {
  display: block; position: fixed; inset: 0; z-index: 1; overflow: hidden; overscroll-behavior: contain;
  visibility: hidden; pointer-events: none; will-change: transform;
}
html.tap .tail.is-up { visibility: visible; }
html.tap-page .tail { overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; }
html.tap-page .nav__journey { display: inline; }
html.tap-page .nav__links a[href='#work'] { display: none; }

/* a jump across the story (to the start): a quick fade through the sky */
html.tap .tap-cut {
  display: block; position: fixed; inset: 0; z-index: 19; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, #c9d8ea 0%, #f4ece2 100%);
  transition: opacity 0.6s var(--ease);
}
html.tap .tap-cut.is-on { opacity: 1; transition-duration: 0.35s; }

/* ---------------------------------------------------------------- no WebGL: the page still reads */
.no-webgl { background: linear-gradient(180deg, #3d77c4, #87b0de 60%, #f6dfc4); background-attachment: fixed; }
.no-webgl .shade { --shade: 0.6; }
.no-webgl .flight__pin { position: sticky; top: 0; height: 100vh; }
.no-webgl .pass { --vis: 1; visibility: visible; color: var(--white); filter: none; text-shadow: none; }
.no-webgl .pass__path { background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 14px); }
/* (a phone: the page doesn't scroll, so each flight's strip shows over its own stretch, as with the 3D) */
html.tap .no-webgl .flight__pin { position: fixed; inset: 0; height: auto; }
html.tap .no-webgl .pass { --vis: inherit; visibility: hidden; }
html.tap .no-webgl .flight.is-on .pass { visibility: visible; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 900px) {
  .route { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links { gap: 14px; }
  .nav__links a[href='#contact'] { display: none; }
  .copy__line { font-size: 16px; }
  .shade {
    background: linear-gradient(0deg, rgba(8, 11, 16, 0.66) 0%, rgba(8, 11, 16, 0.25) 42%, rgba(8, 11, 16, 0) 64%);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
