/* WRLDRNWND — brand site styles.
   Brand colour: Flight Recorder Orange (#FF4F00) — the colour of a plane's "black box",
   the device that records the journey. Dark, grainy, cinematic; no framework. */

:root {
  --bg: #0b0b0b;
  --bg-2: #111110;
  --surface: #171716;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f3f0e8;
  --muted: #9a978f;
  --orange: #ff4f00;          /* Flight Recorder Orange */
  --orange-ink: #0b0b0b;      /* text on orange */
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #0b0b0b; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 200; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--orange-ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.o { color: var(--orange); }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.92; margin: 0; }
.h2 { font-size: clamp(38px, 6vw, 92px); }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.8vw, 26px); text-transform: uppercase; line-height: 1.05; margin: 0; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--orange); background: var(--orange); color: var(--orange-ink); cursor: pointer;
  box-shadow: 0 0 0 rgba(255, 79, 0, 0); transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 79, 0, 0.35); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); box-shadow: none; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: var(--bg); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
/* Phones: frosted glass, so it blends with Safari's dimmed status-bar strip */
@media (max-width: 820px) { .header { background: rgba(11, 11, 11, 0.55); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border-bottom-color: rgba(255, 255, 255, 0.08); } .menu-open .header { background: var(--bg); } }

.header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 72px; max-width: none; }
.header__inner .nav { grid-column: 1; justify-self: start; }
.header__inner .logo { grid-column: 2; justify-self: center; }
.header__right { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; }
.header__right .btn { height: 40px; padding: 0 18px; font-size: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; letter-spacing: 0.04em; }
.logo svg { width: 62px; height: 46px; flex: none; overflow: visible; }
.hero__title.hero__brand { font-size: clamp(34px, 10.4vw, 132px); line-height: 0.9; letter-spacing: -0.015em; }
.hero__label { opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards; }
.hero__tag { margin: clamp(12px, 1.6vw, 20px) 0 0; font-family: var(--mono); font-size: clamp(13px, 1.2vw, 17px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); opacity: 0; animation: fadeUp 1s var(--ease) 1.4s forwards; }
.footer__mark { display: block; width: 84px; margin: clamp(40px, 5vw, 64px) auto 0; color: var(--text); transition: color 0.3s; }
.footer__mark:hover { color: var(--orange); }
.footer__mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.rec-dot { animation: blink 1.6s steps(1) infinite; filter: drop-shadow(0 0 3px #ff4f00); }
@keyframes blink { 50% { opacity: 0.25; } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; transition: opacity 0.2s, color 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--orange); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 12px; opacity: 1; color: var(--orange-ink); }
.nav .btn:hover { color: var(--orange-ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 26px; height: 2px; background: var(--text); margin: 6px 0; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; padding: calc(72px + env(safe-area-inset-top) + 28px) var(--pad) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; }



.menu-open { overflow: hidden; }

/* ---------- Socials ---------- */
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.socials a:hover { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.socials svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; filter: saturate(0.9) contrast(1.05); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,0.6) 0%, rgba(11,11,11,0) 26%, rgba(11,11,11,0) 48%, rgba(11,11,11,0.92) 100%); }
.hero::before, .hero::after { content: ""; position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 3; animation: barsOpen 1.6s var(--ease) 0.2s forwards; }
.hero::before { top: 0; }
.hero::after { bottom: 0; }
.hero__content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(40px, 8vh, 96px); }
.hero__title { font-size: clamp(32px, 11.2vw, 128px); line-height: 0.86; } /* "UNSCRIPTED." is ~7.5em wide: always fits the screen */
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.04em; }
.hero__title .word > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .word:nth-child(1) > span { animation-delay: 1.0s; }
.hero__title .word:nth-child(3) > span { animation-delay: 1.15s; }
.hero__title .word:nth-child(5) > span { animation-delay: 1.3s; }
.hero__bottom { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: clamp(22px, 3vw, 36px); opacity: 0; animation: fadeUp 1s var(--ease) 1.7s forwards; }
.hero__sub { margin: 0; font-size: clamp(17px, 1.4vw, 21px); max-width: 28em; color: rgba(243,240,232,0.86); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .eyebrow { color: rgba(243,240,232,0.8); opacity: 0; animation: fadeUp 1s var(--ease) 0.9s forwards; }
.rec { position: absolute; z-index: 2; top: 92px; right: var(--pad); display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: rgba(243,240,232,0.85); opacity: 0; animation: fadeUp 1s var(--ease) 1.9s forwards; }
.rec b { color: var(--orange); font-weight: 500; }
@keyframes barsOpen { to { height: clamp(16px, 4vh, 40px); } }
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(52px, 6vw, 88px) 0; position: relative; }
.section--tight { padding-top: clamp(52px, 6vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head > p { margin: 0; max-width: 34em; font-family: var(--mono); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: rgba(243,240,232,0.8); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* Places ticker */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; }
.marquee__track { display: flex; width: max-content; animation: scroll 45s linear infinite; }
.marquee__track span { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; padding: 0 22px; white-space: nowrap; color: var(--muted); }
.marquee__track span::before { content: "\2708"; color: var(--orange); margin-right: 22px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Brand hub (bento) ---------- */
.hub { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.tile { position: relative; grid-column: span 2; border-radius: var(--radius); overflow: hidden; background: var(--surface); min-height: 260px; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(18px, 2vw, 26px); border: 1px solid var(--line); transition: border-color 0.4s, transform 0.5s var(--ease); }
.tile--lg { grid-column: span 3; min-height: clamp(320px, 34vw, 440px); }
.tile:hover { border-color: rgba(255, 79, 0, 0.6); }
.tile__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(0.85) brightness(0.8); transition: transform 1.2s var(--ease), filter 0.6s; }
.tile:hover .tile__media { transform: scale(1.05); filter: saturate(1) brightness(0.9); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.82) 100%); }
.tile__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 3.4vw, 50px); line-height: 0.92; margin: 0; }
.tile--sm .tile__title { font-size: clamp(24px, 2.2vw, 32px); }
.tile__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.tile__link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(11,11,11,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.tile:hover .tile__link { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.tile__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243,240,232,0.7); }
.tile__tag { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(11,11,11,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.tile--orange { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.tile--orange::after { display: none; }
.tile--orange .tile__link { border-color: rgba(11,11,11,0.4); background: transparent; color: var(--orange-ink); }
.tile--orange:hover .tile__link { background: var(--orange-ink); color: var(--orange); border-color: var(--orange-ink); }
.tile--orange .tile__meta { color: rgba(11,11,11,0.7); }
.tile__stamp { position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: 4px; padding: 4px 8px; transform: rotate(4deg); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.stat { padding: 26px 10px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(32px, 4vw, 54px); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Work grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.card { position: relative; border-radius: 10px; overflow: hidden; cursor: pointer; isolation: isolate; }
.card__frame { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.4s; }
.card:hover .card__frame { border-color: rgba(255, 79, 0, 0.6); }
.card__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.6s; filter: saturate(0.9) brightness(0.9); }
.card:hover .card__media { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.card__play { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,11,11,0.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.card:hover .card__play { background: var(--orange); color: var(--orange-ink); transform: scale(1.08); }
.card__play svg { width: 14px; height: 14px; }
.card__tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(11,11,11,0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card__cap { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.card__cap b { font-weight: 500; }
.card__cap span { color: var(--muted); text-align: right; }
.card[hidden] { display: none; }
.work-more { margin-top: clamp(32px, 4vw, 52px); display: flex; justify-content: center; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }

/* ---------- Process (how we work) ---------- */
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 120px 1fr 1.2fr; gap: 24px; align-items: baseline; padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--orange); }
.step .h3 { font-size: clamp(26px, 3.2vw, 46px); transition: color 0.3s, transform 0.5s var(--ease); }
.step p { margin: 0; color: var(--muted); max-width: 32em; }
.step:hover .h3 { color: var(--orange); transform: translateX(8px); }
.makes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3vw, 40px); }
.makes span { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.founder__photo { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__badge { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--orange); color: var(--orange-ink); }
.founder blockquote { margin: 0 0 28px; padding-left: 22px; border-left: 2px solid var(--orange); }
.founder blockquote p { color: rgba(243,240,232,0.85); margin: 0 0 1em; max-width: 36em; }
.founder blockquote footer { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); margin: 0; }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.2vw, 16px); }
.quote { margin: 0; padding: clamp(24px, 2.4vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); display: flex; flex-direction: column; gap: 26px; }
.quote blockquote { margin: 0; font-size: clamp(16px, 1.05vw, 17px); line-height: 1.6; color: rgba(243,240,232,0.88); }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 54px; line-height: 0.6; color: var(--orange); margin-bottom: 12px; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); font-family: var(--mono); font-weight: 500; font-size: 13px; }
.quote cite { font-style: normal; font-weight: 600; display: block; }
.quote figcaption span span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,11,0.55) 30%, rgba(11,11,11,0.75) 70%, var(--bg) 100%); }
.contact .wrap { position: relative; z-index: 2; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.contact__copy p { color: rgba(243,240,232,0.82); max-width: 30em; }
.contact__copy .h2 { margin-bottom: 28px; }
.contact__alt { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.contact__alt a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.contact__alt a:hover { color: var(--orange); }
.contact__alt svg { width: 18px; height: 18px; }
.form { background: rgba(17,17,16,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 16px; transition: border-color 0.2s, background 0.2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.06); }
.form .btn { width: 100%; margin-top: 4px; }
.form__status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form__status.ok { color: #9be39b; }
.form__status.err { color: #ff9b8a; }
.hp { display: none !important; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 0; background: radial-gradient(120% 70% at 50% 120%, rgba(255, 79, 0, 0.55) 0%, rgba(255, 79, 0, 0.12) 45%, rgba(11, 11, 11, 0) 75%); }
.footer__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 24px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.footer__nav a { opacity: 0.8; }
.footer__nav a:hover { opacity: 1; color: var(--orange); }
.rbf { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 18px 10px 12px; background: var(--orange); color: var(--orange-ink); font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 4px 14px 14px 4px; transform: rotate(-3deg); border: 0; cursor: pointer; transition: transform 0.3s var(--ease); }
.rbf:hover { transform: rotate(-7deg) translateY(-2px); }
/* Click: a little tug, then the tag flies off; "Cleared for takeoff" takes its place */
.rbf.is-gone { pointer-events: none; animation: rbfFly 1.4s cubic-bezier(0.55, 0, 0.75, 0.2) forwards; }
@keyframes rbfFly {
  0% { transform: rotate(-3deg); }
  14% { transform: translate(-4px, 8px) rotate(-10deg); }
  28% { transform: translate(6px, -4px) rotate(4deg); opacity: 1; }
  100% { transform: translate(55vw, -95vh) rotate(-38deg) scale(0.55); opacity: 0; }
}
.rbf-wrap { position: relative; display: inline-block; margin-top: 28px; min-height: 44px; }
.rbf-wrap .rbf { margin-top: 0; }
.rbf-cleared { position: absolute; left: 0; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); opacity: 0; transition: opacity 0.6s var(--ease) 0.6s; }
.rbf-cleared::before { content: "\2708"; margin-right: 10px; }
.rbf.is-gone + .rbf-cleared { opacity: 1; }
.rbf::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px rgba(0,0,0,0.3); }
.footer small { display: block; margin-top: 30px; color: rgba(243,240,232,0.6); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer__big { display: block; width: 100%; height: auto; margin: clamp(30px, 5vw, 60px) 0 -1px; color: var(--text); }
.footer__big text { font-family: var(--display); fill: currentColor; }

/* ---------- Page hero (work page) ---------- */
.page-hero { padding: clamp(140px, 17vw, 220px) 0 clamp(36px, 5vw, 60px); }
.page-hero .h2 { font-size: clamp(44px, 8vw, 130px); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.94); display: grid; place-items: center; padding: clamp(16px, 4vw, 60px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
/* zoom-from-thumbnail: the flying copy sits above the viewer; the real media fades in once it lands */
.lb-ghost { position: fixed; z-index: 101; object-fit: cover; pointer-events: none; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); }
.lightbox__stage { transition: opacity 0.25s; }
.lightbox.is-zooming .lightbox__stage { opacity: 0; transition: none; }
.lightbox.is-closing .lightbox__stage { opacity: 0; transition: none; }
.lightbox__stage { width: min(100%, 1400px); max-height: 100%; display: grid; gap: 16px; }
.lightbox__stage video, .lightbox__stage img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 10px; background: #000; }
.lightbox__caption { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.lightbox__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.06); cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: var(--orange); color: var(--orange-ink); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }

/* ---------- v3: brand story components ---------- */
.hero__title .bang { color: var(--orange); display: inline-block; transform: rotate(8deg); }
.hero__lines { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(243,240,232,0.8); margin: 0 0 6px; }

/* Name story strip */
.name { padding: clamp(60px, 8vw, 110px) 0; border-bottom: 1px solid var(--line); }
.name__eq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; font-family: var(--display); text-transform: uppercase; font-size: clamp(30px, 5.4vw, 80px); line-height: 1; margin: 0; }
.name__eq .gone { color: transparent; -webkit-text-stroke: 1.5px rgba(243,240,232,0.35); }
.name__eq .eq { color: var(--orange); }
.name__note { margin: 26px 0 0; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.name__note b { color: var(--text); font-weight: 500; }

/* Globe / log */
.log { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; }
.globe canvas { width: 100%; height: 100%; cursor: grab; contain: layout paint size; opacity: 0; transition: opacity 1.4s var(--ease); }
.globe canvas.ready { opacity: 1; }
.globe canvas:active { cursor: grabbing; }
.globe__ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(255, 79, 0, 0.35); pointer-events: none; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.globe__hint { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.flightlog { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.flightlog li { display: grid; grid-template-columns: 1.5fr 1fr 64px; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.25s, padding 0.4s var(--ease); }
.flightlog li span:nth-child(2) { color: var(--muted); }
.flightlog li span:last-child { text-align: right; color: var(--orange); }
.flightlog li:hover { color: var(--orange); padding-left: 8px; }

/* Cursor glow on cards and passes */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 79, 0, 0.22), transparent 60%); }
.glow:hover::before { opacity: 1; }

/* Boarding passes (Connections) */
.passes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.pass { --notch: 12px; display: grid; grid-template-rows: auto 1fr auto; border-radius: var(--radius); background:
    radial-gradient(circle at 0 calc(100% - 88px), transparent var(--notch), var(--bg-2) calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% calc(100% - 88px), transparent var(--notch), var(--bg-2) calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  filter: drop-shadow(0 0 0.5px rgba(255,255,255,0.35)); overflow: hidden; }
.pass__top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.pass__body { padding: 22px; }
.pass__route { display: flex; align-items: center; gap: 12px; font-family: var(--display); text-transform: uppercase; font-size: 22px; margin-bottom: 18px; }
.pass__route i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 11px); position: relative; }
.pass__route i::after { content: "\2708"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%); font-style: normal; font-size: 14px; color: var(--orange); background: var(--bg-2); padding: 0 6px; }
.pass blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(243,240,232,0.86); }
.pass__stub { display: flex; align-items: center; gap: 14px; height: 88px; padding: 0 22px; border-top: 1.5px dashed var(--line-strong); }
.conn-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }

/* Founder v3 */
.founder__photo figcaption { position: absolute; left: 16px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; background: var(--orange); color: var(--orange-ink); }
.founder__photo { margin: 0; }
.honest { margin: 26px 0 28px; padding: 16px 18px; border: 1px dashed var(--line-strong); border-radius: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.7; color: var(--muted); }
.honest b { color: var(--orange); font-weight: 500; }

/* Pillars: big word left, statement right (mission / vision / purpose, what we do) */
.pillars { border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px 48px; align-items: center; padding: clamp(26px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--line); }
.pillar__title { font-family: var(--display); text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); line-height: 0.95; margin: 0; transition: color 0.3s, transform 0.5s var(--ease); }
.pillar__title { position: relative; }
.pillar__title small { position: absolute; left: 0; bottom: 100%; margin-bottom: 10px; white-space: nowrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--orange); }
.pillar p { margin: 0; font-family: var(--mono); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: rgba(243,240,232,0.86); max-width: 38em; }
.pillar:hover .pillar__title { color: var(--orange); transform: translateX(8px); }
.bracket { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); margin: 0 0 18px; }
.intro-mono { font-family: var(--mono); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: rgba(243,240,232,0.8); max-width: 34em; margin: 18px 0 0; }

/* Boarding pass passenger photo */
.pass__stub img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--orange); flex: none; }
.pass__who { display: grid; gap: 2px; min-width: 0; }
.pass__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pass__name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.pass__role { font-size: 13px; color: var(--muted); }

/* Start-a-project panel */
.start { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1fr minmax(0, 620px); background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.start.is-open { opacity: 1; visibility: visible; }
.start__panel { grid-column: 2; height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--line); padding: calc(clamp(28px, 4vw, 56px) + env(safe-area-inset-top)) clamp(28px, 4vw, 56px) calc(clamp(28px, 4vw, 56px) + env(safe-area-inset-bottom)); transform: translateX(40px); transition: transform 0.6s var(--ease); display: flex; flex-direction: column; gap: 22px; }
.start.is-open .start__panel { transform: none; }
.start__panel .h2 { font-size: clamp(38px, 4.6vw, 64px); }
.start__panel > p { margin: 0; color: rgba(243,240,232,0.8); }
.start__top { display: flex; justify-content: space-between; align-items: center; }
.start__close { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; }
.start__close:hover { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.start__panel .form { background: var(--bg-2); }
.start-open { overflow: hidden; }

/* About page: founder polaroid */
.polaroid { position: relative; margin: 0 auto; max-width: 460px; width: 100%; background: #f3f0e8; padding: 14px 14px 58px; border-radius: 4px; rotate: -3deg; box-shadow: 0 30px 70px rgba(0,0,0,0.55); transition: rotate 0.6s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.polaroid:hover { rotate: -1deg; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #0b0b0b; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.polaroid::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 28px; background: rgba(255, 79, 0, 0.88); transform: translateX(-50%) rotate(3deg); }
.about-intro { font-family: var(--mono); font-size: clamp(14px, 1.1vw, 17px); line-height: 1.75; color: rgba(243,240,232,0.82); max-width: 40em; margin: 26px 0 0; }
.bio p { color: rgba(243,240,232,0.85); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(30px, 4vw, 48px); }

/* Phone menu */
.mobile-menu__nav { border-top: 1px solid var(--line); margin: 0 0 28px; }
.mobile-menu__nav a { display: flex; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: clamp(28px, 8.4vw, 40px); line-height: 1; text-transform: uppercase; }
.mobile-menu__nav a span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--orange); transform: translateY(-0.6em); }
.mobile-menu__nav a::after { content: "\2192"; margin-left: auto; font-family: var(--mono); font-size: 18px; color: var(--muted); transition: transform 0.3s var(--ease), color 0.3s; }
.mobile-menu__nav a:hover::after, .mobile-menu__nav a[aria-current="page"]::after { color: var(--orange); transform: translateX(4px); }
.mobile-menu__nav a[aria-current="page"] { color: var(--orange); }
.mobile-menu__cta { width: 100%; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mobile-menu__foot .mono { color: var(--muted); font-size: 11px; }
.menu-open .mobile-menu__nav a, .menu-open .mobile-menu__cta, .menu-open .mobile-menu__foot { animation: fadeUp 0.6s var(--ease) both; }
.menu-open .mobile-menu__nav a:nth-child(2) { animation-delay: 0.05s; }
.menu-open .mobile-menu__nav a:nth-child(3) { animation-delay: 0.1s; }
.menu-open .mobile-menu__cta { animation-delay: 0.15s; }
.menu-open .mobile-menu__foot { animation-delay: 0.2s; }

/* REC dot on "From the black box" */
.rec-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); vertical-align: 1px; animation: blink 1.6s steps(1) infinite; }

/* The method (home) + Mission/Vision/Purpose (About): an orange line draws across each row, then the word and text rise in */
:is(#process, #mission) .pillar { position: relative; }
:is(#process, #mission) .pillar.reveal { opacity: 1; transform: none; }
:is(#process, #mission) .pillar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease); }
:is(#process, #mission) .pillar .pillar__title, :is(#process, #mission) .pillar p { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), color 0.3s; }
:is(#process, #mission) .pillar.in::before { transform: scaleX(1); }
/* ...and the closing line under the last row draws in too, so the whole block ends up framed in orange */
:is(#process, #mission) .pillar:last-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 0.4s; }
:is(#process, #mission) .pillar.in:last-child::after { transform: scaleX(1); }
:is(#process, #mission) .pillar.in .pillar__title { opacity: 1; transform: none; transition-delay: 0.3s; }
:is(#process, #mission) .pillar.in p { opacity: 1; transform: none; transition-delay: 0.5s; }
:is(#process, #mission) .pillar.in:hover .pillar__title { transform: translateX(8px); transition-delay: 0s; }

/* ---------- Flight log folders: pick a place, the globe flies there, its folder opens ---------- */
.log { position: relative; }
.log > div:first-child { transition: opacity 0.4s var(--ease); }
@media (min-width: 821px) { .log.is-focused > div:first-child { opacity: 0; pointer-events: none; } }
.flightlog li[data-place] { cursor: pointer; }
.flightlog li[data-place]:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.flightlog li.is-active { color: var(--orange); padding-left: 8px; }
.globe__focus { position: absolute; left: var(--fx, 50%); top: var(--fy, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; pointer-events: none; }
.log.is-focused .globe__focus { animation: focusPulse 1.6s ease-out 0.9s infinite; }
@keyframes focusPulse { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.4); } }
.log.is-focused .globe__ring { border-color: rgba(255, 79, 0, 0.6); }

.folder { position: absolute; top: 0; left: var(--pad); width: calc(48% - var(--pad)); max-height: 100%; display: flex; flex-direction: column; z-index: 5; opacity: 0; visibility: hidden; transform: translateX(-24px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s; }
.folder.is-open { opacity: 1; visibility: visible; transform: none; }
.folder__tab { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 10px 26px 9px 14px; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 100%, 0 100%); }
.folder__icon { width: 16px; height: 12px; position: relative; border: 1.5px solid currentColor; border-radius: 1px 2px 2px 2px; }
.folder__icon::before { content: ""; position: absolute; left: -1.5px; top: -5px; width: 7px; height: 4px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 1px 2px 0 0; }
.folder__body { background: var(--bg-2); border: 1px solid var(--orange); padding: clamp(18px, 2vw, 26px); overflow-y: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.folder__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.folder__coords { margin: 0 0 8px; }
.folder__title { font-size: clamp(26px, 2.6vw, 38px); }
.folder__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; --cut: 8px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.folder__close:hover { background: var(--orange); color: var(--orange-ink); }
.folder__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.folder__item { position: relative; display: block; padding: 0; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; color: var(--text); overflow: hidden; }
.folder__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.folder__item:hover img { transform: scale(1.05); }
.folder__item:hover { border-color: rgba(255, 79, 0, 0.6); }
.folder__kind { position: absolute; top: 8px; left: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; background: rgba(11, 11, 11, 0.6); --cut: 5px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.folder__label { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.folder__label span { color: var(--muted); }
.folder__count { margin: 16px 0 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 820px) {
  /* Phones/tablets: the folder slides up from the bottom as a sheet */
  .folder { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 56vh; z-index: 90; transform: translateY(100%); padding: 0 12px; }
  .folder.is-open { transform: none; }
  .folder__body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .folder-open { overflow: hidden; }
}

/* ---------- Split-flap letters (airport departure board) ---------- */
.flap-line { display: inline-flex; flex-wrap: nowrap; gap: 1px; perspective: 400px; vertical-align: middle; }
.flap { position: relative; display: inline-block; width: 0.78em; height: 1.32em; line-height: 1.32em; text-align: center; font-family: var(--mono); font-weight: 500; color: var(--text); background: linear-gradient(180deg, #1d1d1c 0 50%, #171716 50% 100%); border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); overflow: hidden; }
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.75); }
.flap.is-blank { background: linear-gradient(180deg, #181817 0 50%, #131312 50% 100%); }
.flap > i { display: block; font-style: normal; transform-origin: 50% 50%; }
.flap.tick > i { animation: flapTick 0.07s linear; }
@keyframes flapTick { 0% { transform: rotateX(80deg); filter: brightness(1.8); } 100% { transform: rotateX(0); } }
.o .flap, .flap-line.o .flap { color: var(--orange); }

/* hero tagline as a board line */
.hero__tag[data-flap] { font-size: clamp(11px, 1.15vw, 17px); letter-spacing: 0; }
.hero__tag .flap { background: linear-gradient(180deg, rgba(20,20,19,0.85) 0 50%, rgba(14,14,13,0.85) 50% 100%); }

/* ---------- Departures board ---------- */
#log .wrap.log { max-width: 1480px; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.log .globe { max-width: 760px; }
.board { margin-top: 30px; background: #0e0e0d; border: 1px solid var(--line); padding: 14px 14px 10px; font-size: clamp(9px, 0.8vw, 12px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 30px 60px rgba(0,0,0,0.35); }
.board__bar { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.board__title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(16px, 1.5vw, 22px); text-transform: uppercase; color: var(--orange); }
.board__title svg { width: 20px; height: 20px; transform: rotate(45deg); }
.board__clock { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
/* column width = number of letter tiles x tile width (0.78em + 1px gap), so every tile always fits */
.board__head, .board__row { display: grid; grid-template-columns: calc(7 * 0.78em + 6px) calc(13 * 0.78em + 12px) calc(14 * 0.78em + 13px) calc(8 * 0.78em + 7px); justify-content: space-between; column-gap: 0.6em; align-items: center; }
.board__head { padding: 6px 6px; font-family: var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.board__head span { font-size: 9px; white-space: nowrap; }
@media (max-width: 1100px) {
  .board__head, .board__row { grid-template-columns: calc(7 * 0.78em + 6px) calc(13 * 0.78em + 12px) calc(8 * 0.78em + 7px); }
  .board__coords { display: none; }
}
.board__row { width: 100%; padding: 6px; border: 0; border-top: 1px solid rgba(255,255,255,0.05); background: transparent; color: inherit; cursor: pointer; text-align: left; font: inherit; transition: background 0.25s; }
.board__row:hover, .board__row:focus-visible, .board__row.is-active { background: rgba(255, 79, 0, 0.08); outline: none; }
.board__row.is-active .flap { color: var(--orange); }
.board__status .flap { color: var(--orange); }
.board__cell { white-space: nowrap; overflow: hidden; }

/* "Next departure: your story" line */
.next-dep { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: clamp(36px, 5vw, 56px) 0 0; font-size: clamp(12px, 1.2vw, 17px); }

/* ---------- 3D tilt (cards, boarding passes) + magnetic buttons ---------- */
.btn.magnetic { transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, translate 0.35s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tilt { transform-style: preserve-3d; will-change: transform; }
}

@media (max-width: 820px) {
  #log .wrap.log { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  /* phones: heading, then the globe, then the board */
  #log .wrap.log > div:first-child { display: contents; }
  .log .globe { order: 1; max-width: 100%; margin-top: 18px; }
  #log .board { order: 2; }
  .board { font-size: clamp(9px, 3vw, 13px); padding: 10px 8px 6px; }
}

/* ================= Hero: viewfinder HUD, handheld depth, scroll film-ending (on via html[data-hud|handheld|scroll]) ================= */

/* 1) Viewfinder HUD */
.hud { position: absolute; z-index: 2; inset: calc(72px + 4vh) 4vw 6vh; pointer-events: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 240, 232, 0.78); opacity: 0; animation: fadeUp 1s var(--ease) 1.5s forwards; }
html:not([data-hud]) .hud { display: none; }
.hud__c { position: absolute; width: 34px; height: 34px; border: solid rgba(243, 240, 232, 0.7); }
.hud__c--tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.hud__c--tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.hud__c--bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.hud__c--br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.hud__top { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hud__bottom { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); display: flex; gap: 22px; white-space: nowrap; color: rgba(243, 240, 232, 0.55); }
.hud__batt { position: absolute; top: 14px; left: 52px; display: inline-flex; align-items: center; gap: 8px; }
.hud__batt i { position: relative; width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 2px; background: linear-gradient(90deg, currentColor 0 var(--batt, 100%), transparent var(--batt, 100%)) 2px 2px / calc(100% - 4px) calc(100% - 4px) no-repeat; }
.hud__batt b { font-weight: inherit; font-variant-numeric: tabular-nums; }
.hud__batt.is-low { color: var(--orange); }
.hud__batt.is-dead { animation: battBlink 1s steps(2, start) infinite; }
@keyframes battBlink { to { visibility: hidden; } }
.hud__batt i::after { content: ""; position: absolute; right: -4px; top: 2px; width: 2px; height: 5px; background: currentColor; }
html[data-hud] .rec { top: calc(72px + 4vh + 14px); right: calc(4vw + 52px); }

/* Handheld depth + scroll film-ending are driven by JS (site.js); the scroll letterbox bars: */
.lb { position: absolute; left: 0; right: 0; z-index: 3; height: var(--lb, 0px); background: #000; pointer-events: none; }
.lb--top { top: 0; }
.lb--bottom { bottom: 0; }


@media (max-width: 820px) {
  .hud { inset: calc(72px + 2vh) 16px 4vh; font-size: 9px; }
  .hud__top { display: none; }
  .hud__bottom { gap: 12px; top: 40px; }
  .hud__c { width: 22px; height: 22px; }
  .hud__batt { left: 30px; }
  html[data-hud] .rec { right: 46px; top: calc(72px + 2vh + 14px); }
}

/* =====================================================================
   SELECTED FILMS: expanding panels
   ===================================================================== */
.films-stage:empty { display: none; }
#work.films-alt .grid { display: none; }

/* ---- Expanding panels ---- */
.panel__watch { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; --cut: 8px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.panels { display: flex; gap: 8px; height: clamp(380px, 46vw, 600px); }
.panel { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 10px; background: #000; cursor: pointer; transition: flex 0.7s var(--ease); border: 0; padding: 0; color: var(--text); text-align: left; }
.panel.is-open { flex: 5; }
.panel img, .panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.6s var(--ease), opacity 0.5s; }
.panel:not(.is-open) img { filter: grayscale(0.6) brightness(0.55); }
.panel video { opacity: 0; }
.panel.is-open video { opacity: 1; }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8)); pointer-events: none; }
.panel__v { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; font-family: var(--display); text-transform: uppercase; font-size: 18px; transition: opacity 0.3s; }
.panel.is-open .panel__v { opacity: 0; }
.panel__h { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; opacity: 0; transform: translateY(10px); transition: opacity 0.4s 0.25s, transform 0.5s var(--ease) 0.25s; }
.panel.is-open .panel__h { opacity: 1; transform: none; }
.panel__h b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 40px); line-height: 0.95; }
.panel__h small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(243,240,232,0.75); }
.panel__num { position: absolute; z-index: 2; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; color: var(--orange); }

@media (max-width: 820px) {
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 64px; transition: height 0.6s var(--ease); }
  .panel.is-open { flex: none; height: 320px; }
  .panel__v { writing-mode: horizontal-tb; transform: none; left: 16px; bottom: 50%; translate: 0 50%; font-size: 16px; }
}

/* ---------- Header hides on scroll down ---------- */
.header { transition: transform 0.45s var(--ease); }
.header.is-hidden { transform: translateY(-100%); }

/* ---------- Flight log: countries -> cities ---------- */
.globe canvas { border-radius: 50%; }                     /* zooming in reads like a lens, never a square crop */
.globe__label { position: absolute; left: var(--fx, 50%); top: calc(var(--fy, 50%) + 28px); transform: translateX(-50%); font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); background: rgba(11,11,11,0.6); padding: 4px 8px; pointer-events: none; white-space: nowrap; opacity: 0; transition: opacity 0.4s; }
.log.is-hovering .globe__label { opacity: 1; }
.log.is-hovering .globe__focus { animation: focusPulse 1.6s ease-out 0.4s infinite; }
/* zoomed into a country: the pins do the labelling, so the center label/ring step aside */
.log.is-zoomed .globe__label, .log.is-zoomed .globe__focus { opacity: 0 !important; animation: none; }

/* ---------- City pins on the globe (dot + leader line + clickable tag) ---------- */
.globe__pins { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease) 0.35s; }
.globe__pins.is-on { opacity: 1; }
.globe__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.globe__lines polyline { fill: none; stroke: rgba(243, 239, 230, 0.4); stroke-width: 1; stroke-dasharray: 3 3; transition: stroke 0.2s; }
.globe__lines .pin__root { fill: var(--orange); stroke: #0b0b0b; stroke-width: 1.5; }
.globe__lines polyline.is-hot, .globe__lines polyline.is-active { stroke: var(--orange); stroke-width: 1.5; }
.pin__dot { position: absolute; left: 0; top: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px rgba(11, 11, 11, 0.85), 0 0 8px rgba(255, 79, 0, 0.7); }
.pin__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--orange); opacity: 0; }
.pin__dot.is-hot::after, .pin__dot.is-active::after { animation: focusPulse 1.4s ease-out infinite; }
.pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 11px; border: 0; background: rgba(11, 11, 11, 0.82); color: var(--text); font-family: var(--mono); text-transform: uppercase; cursor: pointer; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); --cut: 7px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); transition: background 0.2s, color 0.2s, opacity 0.3s; }
.pin__name { font-size: 12px; letter-spacing: 0.14em; }
.pin__code { font-size: 9px; letter-spacing: 0.12em; color: var(--orange); }
.pin:hover, .pin:focus-visible, .pin.is-hot, .pin.is-active { background: var(--orange); color: var(--orange-ink); outline: none; }
.pin:hover .pin__code, .pin.is-hot .pin__code, .pin.is-active .pin__code { color: var(--orange-ink); }
.board__row.is-hot { background: rgba(255, 79, 0, 0.08); }
.board__row.is-hot .flap { color: var(--orange); }
@media (max-width: 520px) { .pin { padding: 5px 8px; gap: 6px; } .pin__name { font-size: 10px; } .pin__code { display: none; } }
.board__bar { flex-wrap: wrap; gap: 10px 12px; }
.board__side { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.board__back { white-space: nowrap; }
.board__back { border: 0; background: rgba(255,255,255,0.08); color: var(--text); padding: 6px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; --cut: 6px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.board__back:hover { background: var(--orange); color: var(--orange-ink); }
.board__back[hidden] { display: none; }
.board__title span { white-space: nowrap; }

/* ---------- Tearable boarding passes ---------- */
.tixes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.tix { display: grid; perspective: 1200px; }
.tix > * { grid-area: 1 / 1; }
.tix__front { position: relative; color: #0b0b0b; transition: opacity 0.5s var(--ease) 0.25s, transform 0.7s var(--ease) 0.2s; transform-origin: 50% 0; }
.tix__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--orange); border-radius: 16px 16px 0 0; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.tix__top span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.tix__top svg { width: 16px; height: 16px; transform: rotate(45deg); }
.tix__body { background: #f3efe6; padding: 18px 20px 16px; }
.tix__route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(48px, 0.9fr) minmax(0, 1fr); align-items: end; gap: 6px 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(11,11,11,0.12); }
.tix__route small, .tix__pax small, .tix__seat small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(11,11,11,0.5); }
.tix__route b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.tix__route em { grid-column: 1 / -1; display: block; margin-top: 2px; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11,11,11,0.55); }
.tix__to { text-align: right; }
.tix__route i { height: 1px; align-self: center; margin-top: 14px; background: repeating-linear-gradient(90deg, rgba(11,11,11,0.35) 0 5px, transparent 5px 10px); position: relative; }
.tix__route i::before { content: "\2708"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); padding: 0 6px; background: #f3efe6; font-style: normal; color: var(--orange); font-size: 16px; line-height: 1; }
.tix__pax { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-top: 14px; }
.tix__pax img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.tix__pax strong { display: block; font-weight: 600; font-size: 16px; line-height: 1.2; }
.tix__pax span { display: block; font-size: 13px; color: rgba(11,11,11,0.55); }
.tix__seat { text-align: right; }
.tix__seat b { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); color: var(--orange); line-height: 1; }
.tix__stub { position: relative; background: #f3efe6; padding: 14px 20px 18px; border-radius: 0 0 16px 16px; border-top: 2px dashed rgba(11,11,11,0.2); cursor: grab; touch-action: none; user-select: none; transition: transform 0.5s var(--ease); }
.tix__stub:active { cursor: grabbing; }
.tix__stub::before, .tix__stub::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.tix__stub::before { left: -10px; }
.tix__stub::after { right: -10px; }
.tix__stub-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(11,11,11,0.5); }
.tix__stub-row .o { color: var(--orange); }
.tix__stub:hover .tix__stub-row .o, .tix__stub:focus-visible .tix__stub-row .o { animation: tugHint 0.9s ease-in-out infinite; }
@keyframes tugHint { 50% { transform: translateY(3px); } }
.tix__barcode { height: 48px; background:
  repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px, #111 8px 11px, transparent 11px 12px, #111 12px 13px, transparent 13px 17px);
  opacity: 0.88; }
/* torn: the stub drops away, the ticket turns into the review */
.tix.is-torn .tix__stub { animation: stubFall 0.9s cubic-bezier(0.5, 0, 0.75, 0) forwards; pointer-events: none; }
@keyframes stubFall { 0% { transform: translateY(0) rotate(0); } 18% { transform: translateY(14px) rotate(3deg); } 100% { transform: translateY(70vh) rotate(18deg); opacity: 0; } }
.tix.is-torn .tix__front { opacity: 0; transform: rotateX(-12deg) translateY(-10px); pointer-events: none; }
.tix__back { opacity: 0; visibility: hidden; transform: translateY(14px) scale(0.98); transition: opacity 0.5s var(--ease) 0.55s, transform 0.6s var(--ease) 0.55s, visibility 0s linear 1.1s; background: #121211; border: 1px solid rgba(255, 79, 0, 0.45); border-radius: 16px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 18px; }
.tix.is-torn .tix__back { opacity: 1; visibility: visible; transform: none; transition: opacity 0.5s var(--ease) 0.55s, transform 0.6s var(--ease) 0.55s, visibility 0s; }
.tix__back-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tix__back-top .o { color: var(--orange); }
.tix__back blockquote { margin: 0; font-size: 15px; }
.tix__front { align-self: start; }
.tix__back-pax { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.tix__back-pax img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.tix__back-pax strong { display: block; font-weight: 600; }
.tix__back-pax span { display: block; font-size: 13px; color: var(--muted); }
.tix__rebook { border: 0; background: rgba(255,255,255,0.08); color: var(--text); padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; --cut: 7px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.tix__rebook:hover { background: var(--orange); color: var(--orange-ink); }
.tix-hint { margin: 16px 0 0; font-size: clamp(11px, 1vw, 14px); }

@media (max-width: 1024px) { .tixes { grid-template-columns: 1fr; max-width: 520px; } }

/* Scramble text keeps its width */
[data-scramble] { font-variant-numeric: tabular-nums; }

@media (max-width: 1024px) {
  .passes { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; }
  .pillar__title small { position: static; display: block; }
  .start { grid-template-columns: 1fr; }
  .start__panel { grid-column: 1; border-left: 0; }
  .log { grid-template-columns: 1fr; }
  .globe { max-width: 440px; }
}
@media (max-width: 600px) {
  .flightlog li { grid-template-columns: 1.4fr 1fr 52px; font-size: 11px; }
  .name__eq { font-size: clamp(26px, 9vw, 40px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tile, .tile--lg { grid-column: span 3; }
  .tile--sm:last-child { grid-column: span 6; }
  .quotes { grid-template-columns: 1fr; }
  .step { grid-template-columns: 90px 1fr; }
  .step p { grid-column: 2; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .header__right .btn { display: none; }
  .menu-btn { display: block; position: relative; z-index: 60; }
  .founder, .contact__grid { grid-template-columns: 1fr; }
  .founder__photo { max-width: 460px; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rec { top: 84px; }
}
@media (max-width: 600px) {
  .footer__row { flex-direction: column; align-items: center; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer small { text-align: center; }
  .rbf-cleared { left: 50%; transform: translate(-50%, -50%); }
  .tile, .tile--lg, .tile--sm:last-child { grid-column: span 6; min-height: 240px; }
  .tile--lg { min-height: 320px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__cap span { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 4px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step p { grid-column: 1; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; padding: 0 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track, body::after { animation: none; }
}

/* Button shape: Flight tag. Clipped corners like a cockpit panel or luggage tag; tinted fills instead of outlines */
.btn, .chip, .makes span, .card__tag,
.socials a, .card__play, .lightbox__close, .start__close {
  border-radius: 0; --cut: 12px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.chip, .makes span, .socials a, .card__play, .lightbox__close, .start__close { --cut: 8px; }
.card__tag { --cut: 6px; }
.btn:hover { box-shadow: none; }
.btn--ghost, .chip, .makes span, .socials a, .start__close, .lightbox__close { border-color: transparent; background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover, .chip:hover { background: rgba(255, 79, 0, 0.16); color: var(--orange); }
.socials a:hover, .start__close:hover, .lightbox__close:hover { background: var(--orange); color: var(--orange-ink); }
.chip[aria-pressed="true"] { background: var(--orange); color: var(--orange-ink); }
.field input, .field select, .field textarea, .form { border-radius: 2px; }

/* =====================================================================
   TYPE SYSTEM (one style per role, the same on every page)
   label ........ .bracket            mono 12px, orange, [ BRACKETS ]
   page title ... .page-hero .h2      Archivo Black (About, Films)
   section head . .h2                 Archivo Black
   row title .... .pillar__title      Archivo Black, regular weight (the font has one weight)
   description .. mono, 14-16px, line-height 1.75
   intro line ... Figtree, 18-21px
   quote ........ Figtree 16px
   ===================================================================== */
.bracket, .bio .bracket { color: var(--orange); }
h3.pillar__title, .pillar__title { font-weight: 400; }
.section-head > p, .intro-mono, .about-intro, .pillar p {
  font-family: var(--mono); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.75; color: rgba(243, 240, 232, 0.82);
}
.hero__sub, .lead, .bio .lead {
  font-family: var(--body); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.55; color: rgba(243, 240, 232, 0.86);
}
.tix__back blockquote, .pass blockquote, .quote blockquote, .founder blockquote p, .start__panel > p {
  font-family: var(--body); font-size: 16px; line-height: 1.65; color: rgba(243, 240, 232, 0.86);
}
/* ---------- The method: giant words (fill with orange as you scroll) ---------- */
.gw-scroll { position: relative; }
#connections { padding-bottom: clamp(24px, 3vw, 40px); }
.gw-pin { position: sticky; top: 0; display: flex; align-items: flex-start; padding: clamp(70px, 11vh, 120px) 0 clamp(16px, 3vh, 36px); box-sizing: border-box; overflow: hidden; }
.gw-spacer { height: 150vh; }   /* the words stay pinned while this scrolls past */
.gw-inner { width: 100%; }
.gw-inner > .bracket { margin: 0 0 clamp(14px, 3vh, 30px); }
.gw { position: relative; display: flex; flex-direction: column; gap: clamp(4px, 1.4vh, 14px); }
.gw__word { display: inline-block; font-family: var(--display); font-size: clamp(36px, 10.5vw, 168px); line-height: 0.9; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(243, 239, 230, 0.35); background: linear-gradient(90deg, var(--orange) 0 var(--f, 0%), transparent var(--f, 0%)); -webkit-background-clip: text; background-clip: text; transition: -webkit-text-stroke-color 0.4s; }
.gw__row.done .gw__word { -webkit-text-stroke-color: var(--orange); }
.gw__side { position: absolute; right: 0; top: 0.5vh; width: min(460px, 38%); opacity: 0; transform: translateX(24px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); pointer-events: none; }
.gw__row.now.on .gw__side { opacity: 1; transform: none; }
.gw__kicker { margin: 0 0 10px; font-family: var(--mono); font-size: clamp(12px, 0.95vw, 14px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--orange); }
.gw__desc { margin: 0; font-family: var(--mono); font-size: clamp(16px, 1.35vw, 21px); line-height: 1.6; color: rgba(243, 239, 230, 0.85); }
@media (max-width: 900px) {
  .gw__side { position: static; width: auto; display: none; margin-top: 10px; opacity: 1; transform: none; }
  .gw__row.now .gw__side { display: block; }
  .gw__desc { font-size: 16px; }
  .gw__word { font-size: 11.6vw; }
}
#process.section--tight { padding-top: 0; }
#process .makes { margin-top: clamp(16px, 2.5vw, 32px); }

/* ---------- Globe detail map (real coastlines once you fly into a country) ---------- */
.globe__map { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; clip-path: circle(50%); pointer-events: none; opacity: 0; transform: scale(0.92); transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.log.is-detail .globe__map { opacity: 1; transform: none; transition-delay: 0.55s; }
.globe canvas { transition: opacity 0.8s var(--ease); }
.log.is-detail .globe canvas { opacity: 0.06; transition-delay: 0.45s; }
.log.is-detail .globe__ring { border-color: rgba(255, 79, 0, 0.55); }

/* bigger globe */
@media (min-width: 821px) {
  #log .wrap.log { max-width: 1680px; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.3fr); }
  #log .h2 { font-size: clamp(38px, 4.3vw, 80px); }
  .log .globe { max-width: 960px; }
}

.globe__hint { z-index: 3; }

.log.is-behind .globe__focus, .log.is-behind .globe__label { visibility: hidden; }   /* country still round the back while the globe turns */

/* ---------- Films page: destination chapters ---------- */
.ch { padding: clamp(34px, 5vw, 64px) 0 0; scroll-margin-top: 80px; }
.ch__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ch__name { font-family: var(--display); font-weight: 400; font-size: clamp(54px, 10vw, 150px); line-height: 0.85; text-transform: uppercase; margin: 0; }
.ch__name span { color: var(--orange); }
.ch__meta { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.7; }
.ch__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 14vw, 230px); gap: 10px; }
.ch__item { position: relative; overflow: hidden; border-radius: 6px; background: #000; cursor: pointer; }
.ch__item > img, .ch__item > video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s var(--ease); }
.ch__item:hover > img, .ch__item:hover > video, .ch__item:focus-visible > video, .ch__item:focus-visible > img { transform: scale(1.04); }
.ch__item:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.ch__item.big { grid-column: span 2; grid-row: span 2; }
.ch__item.tall { grid-row: span 2; }
.ch__item.wide { grid-column: span 2; }
.ch__item.solo { grid-column: span 4; grid-row: span 2; }
.ch__kind { position: absolute; top: 10px; left: 10px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 8px; background: rgba(11, 11, 11, 0.65); --cut: 5px; clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.ch__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; gap: 10px; padding: 26px 12px 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); }
.ch__cap b { font-weight: 500; }
@media (max-width: 760px) {
  .ch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .ch__item.solo { grid-column: span 2; }
  .ch__meta { text-align: left; }
}

/* ---------- Films page: polaroid table ("off the record") ---------- */
.pt__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.pt__head .h2 { margin: 0 0 12px; }
.pt__head .intro-mono { margin: 0; }
.pt__btns { display: flex; gap: 8px; }
.pt__btns .chip { cursor: pointer; }
.pt { position: relative; height: clamp(620px, 88vh, 900px); border-radius: 10px; background: radial-gradient(ellipse at 50% 40%, #1c1b19, #0d0d0c 75%); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.pol { position: absolute; left: 0; top: 0; margin: 0; width: clamp(150px, 15vw, 230px); padding: 9px 9px 0; background: #f3efe6; color: #1a1a18; border-radius: 3px; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); cursor: grab; user-select: none; touch-action: none; transform: rotate(var(--r, 0deg)); transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.2s; }
.pol.drag { transition: box-shadow 0.2s; cursor: grabbing; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); }
.pol img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.pol figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.pol figcaption b { font-weight: 500; }
.pol__sticker { position: absolute; top: 16px; right: 16px; padding: 3px 7px; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 760px) {
  .pt { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; padding: 18px 12px; }
  .pol { position: relative; width: auto; touch-action: auto; cursor: pointer; }
  .pt__btns { display: none; }
}

@media (max-width: 760px) { .pt__drag { display: none; } }

/* ================= Films page: passports (one per country, from places.json) ================= */
.pp-head { max-width: 640px; margin-bottom: 20px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pp-chips .chip { cursor: pointer; }
.pp-chips .chip[aria-pressed="true"] { background: var(--orange); color: var(--orange-ink); }
/* the shelf scrolls sideways once there are lots of countries */
.pp-shelf { display: flex; gap: clamp(14px, 2vw, 26px); overflow-x: auto; padding: 22px 6px 26px; margin-bottom: clamp(10px, 2vw, 24px); scrollbar-width: thin; }
.pp-pass { position: relative; flex: none; width: clamp(104px, 9.5vw, 138px); aspect-ratio: 0.7; border: 0; padding: 0; border-radius: 4px 10px 10px 4px; background: var(--c); color: #e8c9a0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; overflow: hidden;
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.28), inset 0 0 0 6px var(--c), inset 0 0 0 7px rgba(232,201,160,0.35), 0 14px 26px rgba(0,0,0,0.5); transform: rotate(var(--r)); transition: transform 0.35s var(--ease), box-shadow 0.35s, opacity 0.3s; }
.pp-pass::after, .pp-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 230, 190, 0.22) 45%, transparent 60%); transform: translateX(-120%); transition: transform 0.9s var(--ease); pointer-events: none; }
.pp-pass:hover::after, .pp-pass.on::after, .pp-cover:hover::after { transform: translateX(120%); }
.pp-pass:hover, .pp-pass:focus-visible { transform: translateY(-10px) rotate(0deg); outline: none; }
.pp-pass.on { transform: translateY(-14px) rotate(0deg); box-shadow: inset 6px 0 0 rgba(0,0,0,0.28), inset 0 0 0 6px var(--c), inset 0 0 0 7px rgba(232,201,160,0.35), 0 0 0 2px var(--orange), 0 22px 36px rgba(0,0,0,0.55); }
.pp-pass[hidden] { display: none; }
.pp-pass svg { width: 44%; }
.pp-pass b { font-family: var(--display); font-weight: 400; font-size: clamp(11px, 1.15vw, 16px); letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.05; padding: 0 8px; max-width: 100%; overflow-wrap: anywhere; }
.pp-pass small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.pp-pass i { position: absolute; top: 8px; right: 8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--orange-ink); font: 500 10px/20px var(--mono); font-style: normal; }

/* the open book (desktop) */
.pp-stage { display: grid; justify-items: center; gap: 18px; }
.pp-book { position: relative; width: min(100%, 1000px); aspect-ratio: 1.42; perspective: 2600px; transition: transform 0.8s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.35s; touch-action: pan-y; }
.pp-book.is-closed { transform: translateX(-25%); }
.pp-book.is-end { transform: translateX(25%); }
.pp-book.swap { opacity: 0; transform: translateX(-25%) translateY(30px); }
.pp-edge { position: absolute; top: 1.2%; bottom: 1.2%; width: var(--t, 0px); background: repeating-linear-gradient(90deg, #e9e3d6 0 1px, #cfc8b9 1px 2px); transition: width 0.6s; border-radius: 2px; }
.pp-edge--l { left: 0; transform: translateX(-100%); }
.pp-edge--r { right: 0; }
.pp-edge--r { transform: translateX(100%); }
.pp-leaf { position: absolute; left: 50%; top: 0; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform 0.95s cubic-bezier(0.3, 0.7, 0.2, 1); }
.pp-leaf.flipped { transform: rotateY(-180deg); }
.pp-leaf > .pp-page { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0 10px 10px 0; box-shadow: inset 14px 0 20px -12px rgba(0,0,0,0.38), 0 12px 34px rgba(0,0,0,0.38); }
.pp-leaf > .pp-page.back { transform: rotateY(180deg); border-radius: 10px 0 0 10px; box-shadow: inset -14px 0 20px -12px rgba(0,0,0,0.38), 0 12px 34px rgba(0,0,0,0.38); }

/* a page (book or phone swipe card). Sizes use cqw = % of the page's own width */
.pp-page { position: relative; container-type: inline-size; overflow: hidden; display: flex; flex-direction: column; padding: 8% 7% 6%; background: #efe9dc; color: #1a1a18;
  background-image: repeating-radial-gradient(circle at 75% 28%, transparent 0 11px, rgba(255, 79, 0, 0.055) 11px 12px), repeating-linear-gradient(0deg, transparent 0 22px, rgba(26, 26, 24, 0.03) 22px 23px); }
.pp-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 2.7cqw; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(26, 26, 24, 0.55); border-bottom: 1px dashed rgba(26, 26, 24, 0.25); padding-bottom: 2.4cqw; }
.pp-title { margin: 5cqw 0 1.6cqw; font-family: var(--display); font-weight: 400; font-size: 10.5cqw; line-height: 0.95; text-transform: uppercase; }
.pp-meta { margin: 0; font-family: var(--mono); font-size: 3cqw; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(26, 26, 24, 0.7); }
.pp-mrz { margin-top: auto; padding-top: 3cqw; font-family: var(--mono); font-size: 2.9cqw; letter-spacing: 0.16em; line-height: 1.5; color: #1a1a18; word-break: break-all; }

/* cover */
.pp-cover { position: relative; align-items: center; justify-content: center; text-align: center; gap: 3.4cqw; cursor: pointer; background: var(--c, #161615) !important; background-image: none !important; color: #e8c9a0; box-shadow: inset 0 0 0 14px var(--c, #161615), inset 0 0 0 15px rgba(232, 201, 160, 0.45), 0 20px 50px rgba(0, 0, 0, 0.6) !important; }
.pp-cover svg { width: 30cqw; }
.pp-cover h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 8.4cqw; letter-spacing: 0.08em; text-transform: uppercase; }
.pp-cover p { margin: 0; font-family: var(--mono); font-size: 2.5cqw; letter-spacing: 0.3em; text-transform: uppercase; color: #b9a78d; }
.pp-cover .o { color: var(--orange); margin-top: 4cqw; }

/* holder data page */
.pp-data { display: grid; grid-template-columns: auto 1fr; gap: 3cqw 5cqw; margin-top: 6cqw; font-family: var(--mono); font-size: 3.3cqw; letter-spacing: 0.1em; text-transform: uppercase; }
.pp-data dt { color: rgba(26, 26, 24, 0.5); }
.pp-data dd { margin: 0; font-weight: 500; }
.pp-sign { margin: 6cqw 0 0; color: #1d2a4a; }
.pp-sign small { display: block; font-family: var(--mono); font-size: 2.3cqw; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(26, 26, 24, 0.5); border-top: 1px solid rgba(26, 26, 24, 0.3); padding-top: 1.4cqw; width: 52cqw; }
.pp-sign span { display: block; margin: 0 0 -2.5cqw 2cqw; font-family: "Mrs Saint Delafield", cursive; font-size: 15cqw; line-height: 1; }

/* route map page */
.pp-map { position: relative; margin-top: 4cqw; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 45%, #1d1d1b, #0d0d0c 70%); box-shadow: inset 0 0 0 1px rgba(26, 26, 24, 0.3); }
.pp-map svg { width: 100%; height: 100%; display: block; }
.pp-map text { font-family: var(--mono); font-size: 26px; letter-spacing: 2px; fill: #f3efe6; text-transform: uppercase; }

/* visa page + stamps */
.pp-stamps { position: relative; flex: 1; margin-top: 3cqw; }
.pp-stamp { position: absolute; left: var(--x); top: var(--y); width: var(--w); color: var(--ink); opacity: 0; transform: translate(-50%, -50%) scale(1.7) rotate(var(--r)); mix-blend-mode: multiply; }
.pp-stamp text { font-family: var(--mono); fill: currentColor; }
.pp-stamp .big { font-family: var(--display); }
.pp-page.inked .pp-stamp { animation: ppThud 0.38s cubic-bezier(0.2, 1.5, 0.4, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes ppThud { to { opacity: 0.9; transform: translate(-50%, -50%) scale(1) rotate(var(--r)); } }

/* photo page */
.pp-frame { position: relative; flex: 1; margin-top: 4cqw; border-radius: 4px; overflow: hidden; background: #000; cursor: pointer; box-shadow: 0 0 0 1px rgba(26, 26, 24, 0.2); }
.pp-frame > video, .pp-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pp-frame .pp-watch { position: absolute; right: 2.4cqw; bottom: 2.4cqw; padding: 1.4cqw 2.2cqw; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 2.3cqw; letter-spacing: 0.14em; text-transform: uppercase; }
.pp-thumbs { display: flex; gap: 1.6cqw; margin-top: 2.4cqw; overflow-x: auto; }
.pp-thumbs button { flex: none; width: 11cqw; aspect-ratio: 1; border: 0; padding: 0; border-radius: 3px; overflow: hidden; cursor: pointer; opacity: 0.55; box-shadow: 0 0 0 1px rgba(26, 26, 24, 0.25); }
.pp-thumbs button.on { opacity: 1; box-shadow: 0 0 0 2px var(--orange); }
.pp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-cap { display: flex; justify-content: space-between; gap: 8px; margin-top: 2.6cqw; font-family: var(--mono); font-size: 2.8cqw; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26, 26, 24, 0.65); }
.pp-cap b { font-weight: 500; color: #1a1a18; }

/* last page */
.pp-end { justify-content: center; gap: 3cqw; }
.pp-end .pp-title { margin: 0; }
.pp-end .btn { align-self: flex-start; font-size: 2.6cqw; }

.pp-ctrl { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pp-ctrl .chip { cursor: pointer; }
.pp-ctrl .chip:disabled { opacity: 0.35; cursor: default; }

/* phones: a swipeable stack of full-size pages instead of a tiny book */
.pp-swipe { display: none; }
/* Safari doesn't reliably hide the back of a turned page (videos / tilted photos showed through),
   so the side facing away is hidden outright, switching exactly at the halfway point of the turn */
.pp-leaf > .pp-page { transition: visibility 0s linear 0.47s; }
.pp-leaf.flipped > .pp-page:not(.back), .pp-leaf:not(.flipped) > .pp-page.back { visibility: hidden; }

/* phones: one tall passport page at a time; a turned page swings away to the left like the desktop book */
@media (max-width: 760px) {
  .pp-stage { overflow: hidden; padding-bottom: 4px; }
  .pp-book, .pp-book.is-closed, .pp-book.is-end { width: min(100%, 380px); aspect-ratio: 0.7; perspective: 1600px; transform: none; }
  .pp-book.swap { transform: translateX(40px); }
  .pp-edge { display: none; }
  .pp-leaf { left: 0; width: 100%; transform-origin: left center; transition: transform 0.85s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.3s 0.55s; }
  .pp-leaf.flipped { transform: rotateY(-180deg); opacity: 0; }
  .pp-leaf > .pp-page { border-radius: 4px 10px 10px 4px; box-shadow: inset 10px 0 16px -10px rgba(0, 0, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.4); }
  .pp-leaf > .pp-page.back { border-radius: 10px 4px 4px 10px; }
}

/* pin board built by films.js (re-uses the .pt / .pol polaroid styles) */
.pol figcaption span { white-space: nowrap; }

.folder__pass { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.folder__pass:hover { text-decoration: underline; }

/* ---------- passport city page: a taped-down travel-journal collage ---------- */
.pp-collage { position: relative; flex: 1; margin-top: 5cqw; }
.pp-print { position: absolute; left: var(--x); top: var(--y); width: var(--w); margin: 0; padding: 2.2cqw 2.2cqw 0; background: #fbf8f1; border-radius: 2px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.2); transform: rotate(var(--r)); cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.pp-print:hover, .pp-print:focus-visible { transform: rotate(0deg) scale(1.05); z-index: 20 !important; box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3); outline: none; }
.pp-print__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #000; }
.pp-print__img img, .pp-print__img video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-print figcaption { padding: 1.6cqw 0.4cqw 2cqw; font-family: var(--mono); font-size: 2.3cqw; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(26, 26, 24, 0.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-tape { position: absolute; left: 50%; top: -2.4cqw; width: 34%; height: 5cqw; margin-left: -17%; background: rgba(255, 79, 0, 0.55); transform: rotate(var(--tr)); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); z-index: 2; }
.pp-print:nth-child(even) .pp-tape { background: rgba(232, 201, 160, 0.85); }
.pp-play { position: absolute; left: 2cqw; bottom: 2cqw; padding: 0.8cqw 1.6cqw; background: var(--orange); color: var(--orange-ink); font-family: var(--mono); font-size: 2.2cqw; letter-spacing: 0.1em; }
.pp-stamp--city { left: auto; top: auto; right: 4%; bottom: 3%; width: 30cqw; transform: scale(1.7) rotate(var(--r)); z-index: 30; pointer-events: none; }
.pp-page.inked .pp-stamp--city { animation: ppThudC 0.38s cubic-bezier(0.2, 1.5, 0.4, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes ppThudC { to { opacity: 0.88; transform: scale(1) rotate(var(--r)); } }
.pp-notes { background-image: repeating-linear-gradient(0deg, transparent 0 7.6cqw, rgba(26, 26, 24, 0.12) 7.6cqw calc(7.6cqw + 1px)) !important; }

/* desktop: just Back / Next (the page label only shows on phones, where there are no buttons) */
.pp-ctrl [data-pp-page] { display: none; }
.pp-ctrl { gap: 10px; }

/* ---------- Films page motion ---------- */
/* headlines rise in word by word from behind a mask */
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
[data-words] .w > span { display: inline-block; transform: translateY(108%); transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
[data-words].in .w > span { transform: none; }
/* passports are dealt onto the shelf */
.pp-shelf:not(.dealt) .pp-pass { opacity: 0; }
.pp-shelf.dealt .pp-pass { animation: ppDeal 0.75s cubic-bezier(0.2, 0.9, 0.3, 1) backwards; animation-delay: calc(var(--i, 0) * 80ms); }
@keyframes ppDeal { from { opacity: 0; transform: translateY(70px) rotate(calc(var(--r) + 14deg)) scale(0.9); } }
/* polaroids drop onto the pin board */
.pol.dropping { transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s; }
@media (prefers-reduced-motion: reduce) {
  [data-words] .w > span { transform: none; transition: none; }
  .pp-shelf:not(.dealt) .pp-pass { opacity: 1; }
  .pp-shelf.dealt .pp-pass { animation: none; }
}

@media (max-width: 1024px) {
  .tix { position: relative; }
  .tix:not(.is-torn) .tix__back { position: absolute; top: 0; left: 0; right: 0; }
  .tix.is-torn .tix__front { position: absolute; top: 0; left: 0; right: 0; }
}
/* no dotted ring around the globe */
.globe__ring { display: none !important; }
