/* brennanharmatz.com — v5
   Scenes, not sections. Paper / stone / charcoal. Condensed caps (700) + serif accent words, kept smaller than v4.
   Orange: the period after the name, the Contact button, serif words in dark scenes, progress rules. Nothing else.
   Mobile is a separate layout: see the @media (max-width: 760px) blocks at the end of each scene. */

:root {
  --paper: #f2f1ec;
  --stone: #e6e4dd;
  --char: #1f1e1a;
  --ink: #15140f;
  --ink-2: #4a4841;
  --mute: #8a867d;
  --line: rgba(21, 20, 15, .14);
  --line-d: rgba(242, 241, 236, .16);
  --orange: #ff6e11;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gl: max(clamp(20px, 4.4vw, 64px), env(safe-area-inset-left, 0px));
  --gr: max(clamp(20px, 4.4vw, 64px), env(safe-area-inset-right, 0px));
  --nav: 72px;
  --r: 10px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
::selection { background: var(--orange); color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
/* the code field sits above everything except nav/menu/veil; difference blend makes it read on light and dark */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; pointer-events: none; mix-blend-mode: difference; }
.page { position: relative; z-index: 1; }

/* ---------- type ---------- */
.d { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .9; letter-spacing: 0; }
.d i, .serif { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; letter-spacing: 0; font-variation-settings: "SOFT" 100, "opsz" 144; }
.d i { font-size: 1.02em; line-height: .9; }
.d .o { color: var(--orange); }
.dot { color: var(--orange); }
.h1 { font-size: clamp(44px, 7.6vw, 128px); }
.h2 { font-size: clamp(36px, 5.2vw, 84px); }
.h3 { font-size: clamp(26px, 2.6vw, 40px); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .6; }
.lede { font-weight: 300; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; letter-spacing: -.005em; max-width: 38ch; text-wrap: pretty; }
.body { font-size: clamp(15px, 1.05vw, 17px); line-height: 1.62; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
.cap { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.dark { background: var(--char); color: var(--paper); }
.dark .body { color: rgba(242, 241, 236, .72); }
.dark .eyebrow, .dark .cap { color: rgba(242, 241, 236, .55); }
.stone { background: var(--stone); }

/* ---------- controls ---------- */
.wrap { padding-left: var(--gl); padding-right: var(--gr); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; transition: background .3s, color .3s, border-color .3s, transform .3s; background: rgba(242, 241, 236, .6); }
.pill:hover { border-color: var(--ink); transform: translateY(-1px); }
.pill.ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.ink:hover { background: var(--paper); color: var(--ink); }
.pill.orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.pill.orange:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.dark .pill { border-color: var(--line-d); background: rgba(242, 241, 236, .06); color: var(--paper); }
.dark .pill:hover { border-color: var(--paper); }
.dark .pill.ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.ico { width: 15px; height: 15px; flex: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- nav: monogram left, mark centre on desktop, contact + burger right ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: calc(var(--nav) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gr) 0 var(--gl); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.nav > * { pointer-events: auto; }
.nav.hide { transform: translateY(-110%); }
.nav .logo { width: 40px; display: block; mix-blend-mode: difference; color: #fff; }
.nav .logo svg { width: 100%; height: auto; display: block; }
.nav .right { display: flex; gap: 8px; align-items: center; }
.nav .burgerwrap { mix-blend-mode: difference; color: #fff; }
.nav .burger { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); display: grid; place-items: center; }
.nav .burger i { width: 16px; height: 1.5px; background: #fff; display: block; position: relative; }
.nav .burger i::before, .nav .burger i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: #fff; top: -5px; }
.nav .burger i::after { top: 5px; }
.nav .cta { box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .4); }
.menu { position: fixed; inset: 0; z-index: 45; background: var(--char); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gr) calc(22px + env(safe-area-inset-bottom, 0px)) var(--gl); transform: translateY(-100%); transition: transform .65s cubic-bezier(.76, 0, .24, 1); }
.menu.open { transform: translateY(0); }
.menu .top { display: flex; justify-content: space-between; align-items: center; }
.menu .top .logo { width: 40px; color: var(--paper); }
.menu .top .logo svg { width: 100%; height: auto; }
.menu .close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-d); display: grid; place-items: center; font-size: 22px; line-height: 1; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; gap: 4px; }
.menu li a { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(42px, 9vw, 96px); line-height: .95; display: flex; align-items: baseline; gap: 18px; }
.menu li a small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: rgba(242, 241, 236, .5); font-weight: 400; }
.menu li a:hover, .menu li a[aria-current] { color: var(--orange); }
.menu .mfoot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: rgba(242, 241, 236, .6); }

/* ---------- veil ---------- */
.veil { position: fixed; inset: 0; z-index: 60; background: var(--orange); color: #fff; display: grid; place-items: center; pointer-events: none; }
.veil .mark { width: clamp(84px, 14vw, 150px); }
.veil .mark svg { width: 100%; height: auto; }
.veil .mark path { stroke-dasharray: 1; }
.veil .count, .veil .note { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.veil .count { left: var(--gl); } .veil .note { right: var(--gr); opacity: .8; }
.veil.off { display: none; }
.veil .flash { position: absolute; inset: 0; display: grid; place-items: center; }
.veil .flash img { width: min(42vw, 300px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; opacity: 0; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--char); color: var(--paper); }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .5)); }
.hero .name { position: absolute; inset: 0; pointer-events: none; }
.hero .name .l { position: absolute; font-size: clamp(64px, 15vw, 230px); will-change: transform; }
.hero .name .l1 { left: var(--gl); top: 28%; }
.hero .name .l2 { right: var(--gr); bottom: 12%; }
.hero .role { position: absolute; right: var(--gr); top: 46%; text-align: right; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.45; color: rgba(242, 241, 236, .85); max-width: 22ch; }
.hero .role b { font-weight: 500; color: #fff; display: block; }
.hero .cue { position: absolute; left: var(--gl); bottom: calc(26px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 241, 236, .75); }
.hero .cue i { width: 40px; height: 1px; background: currentColor; display: block; transform-origin: left; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

/* ---------- manifesto (dark) ---------- */
.manifesto { min-height: 92svh; display: grid; place-items: center; padding: clamp(96px, 14vh, 160px) var(--gr) clamp(96px, 14vh, 160px) var(--gl); text-align: center; position: relative; }
.manifesto .sig { width: clamp(150px, 20vw, 260px); margin: 0 auto; display: block; opacity: .95; }
.manifesto .sig img { clip-path: inset(0 100% 0 0); }
.manifesto .sig img { width: 100%; height: auto; }
.manifesto p { font-size: clamp(34px, 5.6vw, 92px); max-width: 15ch; margin-inline: auto; text-wrap: balance; line-height: .95; }
.manifesto p .w { display: inline-block; }
.manifesto .sub { margin-top: clamp(24px, 4vh, 40px); }

/* ---------- doors: Work / Life, images bleeding from the edges (Lando's On/Off Track) ---------- */
.doors { --edge: clamp(220px, 27vw, 460px); --bleed: clamp(40px, 5vw, 90px); position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; padding-block: clamp(80px, 10vh, 140px); }
.doors .edge { position: absolute; top: 50%; transform: translateY(-50%); width: var(--edge); aspect-ratio: 3 / 4; overflow: hidden; z-index: 1; border-radius: var(--r); }
.doors .edge.l { left: calc(-1 * var(--bleed)); clip-path: polygon(0 0, 100% 6%, 92% 100%, 0 100%); }
.doors .edge.r { right: calc(-1 * var(--bleed)); clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 94%); }
.doors .edge video, .doors .edge img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.doors .pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 120px); width: min(760px, 100% - 2 * var(--edge) + 2 * var(--bleed) - 64px); margin-inline: auto; }
.doors a { display: grid; gap: 14px; justify-items: start; position: static; }
.doors a h2 { font-size: clamp(56px, 7.6vw, 124px); }
.doors a h2 i { display: block; font-size: .78em; }
.doors a p { font-size: 15px; color: var(--ink-2); max-width: 26ch; }
.doors a .go { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s, border-color .3s; }
.doors a:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }

/* ---------- record panels ---------- */
.panel { position: relative; display: grid; grid-template-rows: 1fr auto; padding: clamp(72px, 10vh, 120px) var(--gr) 0 var(--gl); overflow: hidden; }
.panel .grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: start; position: relative; z-index: 1; }
.panel .left { display: grid; gap: clamp(24px, 4vh, 44px); align-content: start; }
.panel h2 { font-size: clamp(44px, 6.4vw, 104px); }
.panel .side { display: grid; gap: 26px; align-content: start; padding-top: .4em; }
.panel ul { list-style: none; padding: 0 0 0 20px; margin: 0; display: grid; gap: 10px; border-left: 1px solid var(--line); font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.5; }
.panel ul li::before { content: "• "; color: var(--mute); }
.panel ul b { font-weight: 500; }
.panel.dark ul { border-color: var(--line-d); }
.panel .logo { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.panel .logo img { height: clamp(36px, 4.6vw, 72px); width: auto; }
.panel .logo .word { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: .9; letter-spacing: .01em; }
.panel .logo .word i { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; }
.panel .numbers { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 32px; align-items: end; justify-content: start; }
.panel .numbers b { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3vw, 48px); line-height: .9; display: block; }
.panel .numbers small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); display: block; margin-top: 8px; }
.panel .meta { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 18px 0 20px; margin-top: clamp(32px, 6vh, 64px); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.panel.dark .meta { border-color: var(--line-d); }
.panel .meta .bar { height: 1px; background: currentColor; opacity: .25; position: relative; }
.panel .meta .bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); opacity: 1; }
.panel .media { width: min(100%, 520px); aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%); }
.panel .media video, .panel .media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }

/* ---------- ledger: compact track record ---------- */
.ledger { display: grid; }
.ledger .row { display: grid; grid-template-columns: 72px 1.2fr 1fr auto; gap: 20px; align-items: baseline; padding: clamp(16px, 2.2vh, 24px) 0; border-top: 1px solid var(--line); flex-wrap: nowrap; }
.ledger .row:last-child { border-bottom: 1px solid var(--line); }
.dark .ledger .row { border-color: var(--line-d); }
.ledger .y { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--mute); }
.ledger .n { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.8vw, 44px); line-height: .95; }
.ledger .n i { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; }
.ledger .r { font-size: 14.5px; color: var(--ink-2); }
.dark .ledger .r { color: rgba(242, 241, 236, .7); }
.ledger .t a:hover { color: var(--orange); }
.ledger .t { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); text-align: right; }

/* ---------- mega line ---------- */
.mega { position: relative; height: 450svh; }
.mega .stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--char); color: var(--paper); display: grid; align-items: center; }
.mega .bg { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: blur(3px) brightness(.5) saturate(1.05); transform: scale(1.04); }
.mega .bg video, .mega .bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.mega .line { position: relative; white-space: nowrap; font-size: clamp(72px, 17vw, 260px); font-style: italic; letter-spacing: -.005em; will-change: transform; padding-left: 100vw; }
.mega .line i { font-size: 1em; color: var(--orange); }
.mega .tag { position: absolute; left: var(--gl); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* ---------- fan ---------- */
.fan { padding: clamp(80px, 12vh, 140px) 0 clamp(56px, 8vh, 100px); overflow: hidden; }
.fan .head { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 0 var(--gr) 0 var(--gl); }
.fan h2 { font-size: clamp(40px, 6.4vw, 96px); }
.fan .deck { position: relative; height: clamp(360px, 50vw, 560px); margin-top: clamp(16px, 3vh, 36px); }
.fan .card { position: absolute; left: 50%; bottom: 0; width: clamp(150px, 20vw, 250px); aspect-ratio: 9 / 15; margin-left: calc(clamp(150px, 20vw, 250px) / -2); transform-origin: 50% 160%; border-radius: 18px; overflow: hidden; background: var(--stone); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); will-change: transform; transition: filter .4s; }
.fan .card img, .fan .card video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.fan .card .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 14px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); display: grid; gap: 2px; }
.fan .card .lbl b { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(20px, 1.8vw, 26px); line-height: .9; display: block; }
.fan .card .lbl span { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; opacity: .8; }
.fan .card:hover { filter: brightness(1.05); z-index: 5; }
.fan .all { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- chapter ---------- */
.chapter { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center; padding-block: clamp(72px, 11vh, 130px); }
.chapter .txt { display: grid; gap: 20px; max-width: 46ch; }
.chapter .txt .rule { height: 1px; background: var(--line); width: 100%; }
.chapter h2 { font-size: clamp(38px, 4.8vw, 76px); }
.chapter .pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
.chapter .pic.wide { aspect-ratio: 16 / 11; clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%); }
.chapter .pic.tall { aspect-ratio: 3 / 4; }
.chapter .pic img, .chapter .pic video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.chapter.flip .pic { order: -1; }
.dark .chapter .txt .rule { background: var(--line-d); }

/* ---------- duo: two frames side by side ---------- */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 2vw, 32px); align-items: end; padding-block: 0 clamp(72px, 11vh, 130px); }
.duo .pic { position: relative; overflow: hidden; border-radius: var(--r); }
.duo .pic.a { aspect-ratio: 16 / 10; clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%, 0 92%); }
.duo .pic.b { aspect-ratio: 4 / 5; clip-path: polygon(0 0, 96% 0, 100% 8%, 100% 100%, 0 100%); }
.duo .pic img, .duo .pic video { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.duo.even { grid-template-columns: 1fr 1fr; align-items: start; }
.duo.even .pic.a, .duo.even .pic.b { aspect-ratio: 4 / 5; }
.duo.even .pic.a { clip-path: polygon(0 0, 100% 0, 100% 94%, 96% 100%, 0 100%); }

/* ---------- strip (horizontal scrub) ---------- */
.strip { position: relative; }
.strip .pin { height: 100svh; display: grid; grid-template-rows: auto 1fr; gap: 20px; padding-block: calc(var(--nav) + 2vh) 28px; overflow: hidden; }
.strip .track { display: flex; gap: clamp(14px, 1.8vw, 28px); align-items: stretch; width: max-content; padding-inline: var(--gl) var(--gr); will-change: transform; }
.strip .case { flex: none; width: clamp(290px, 32vw, 480px); display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: clamp(20px, 2.2vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: rgba(242, 241, 236, .5); }
.dark .case, .strip.dark .case { border-color: var(--line-d); background: rgba(242, 241, 236, .05); }
.strip .case h3 { font-size: clamp(26px, 2.6vw, 40px); }
.strip .case p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.dark .case p, .strip.dark .case p { color: rgba(242, 241, 236, .7); }
.strip .case .n { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 54px); line-height: .9; }
.strip .case .n small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-top: 6px; font-weight: 400; }
.strip .case .more { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; }
.strip .bar { position: absolute; left: var(--gl); right: var(--gr); bottom: 14px; height: 1px; background: var(--line); }
.strip .bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }

/* ---------- link list ---------- */
.biglinks { display: grid; }
.biglinks a { display: grid; grid-template-columns: 56px 1fr auto; gap: 20px; align-items: baseline; padding: clamp(16px, 2.4vh, 26px) 0; border-top: 1px solid var(--line); transition: padding-left .4s cubic-bezier(.2, .7, .2, 1); }
.biglinks a:last-child { border-bottom: 1px solid var(--line); }
.biglinks a:hover { padding-left: 14px; }
.biglinks .n { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--mute); }
.biglinks .t { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(34px, 5.6vw, 88px); line-height: .92; }
.biglinks .t i { font-family: var(--serif); font-style: italic; font-weight: 300; text-transform: none; font-size: 1.02em; }
.biglinks a:hover .t i { color: var(--orange); }
.biglinks .h { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--mute); text-align: right; }

/* ---------- photos ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.masonry { columns: 3; column-gap: clamp(12px, 1.6vw, 22px); }
.masonry figure { break-inside: avoid; margin: 0 0 clamp(12px, 1.6vw, 22px); cursor: zoom-in; }
.masonry figure img { border-radius: 8px; width: 100%; height: auto; }
.masonry figure.hidden { display: none; }
.lb { position: fixed; inset: 0; z-index: 70; background: rgba(20, 19, 16, .96); display: grid; grid-template-rows: auto 1fr auto; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gr) calc(16px + env(safe-area-inset-bottom, 0px)) var(--gl); color: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb .top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.lb .top button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); display: grid; place-items: center; font-size: 20px; }
.lb .body { display: grid; place-items: center; min-height: 0; }
.lb .body img { max-height: 100%; max-width: 100%; height: 78svh; width: auto; object-fit: contain; border-radius: 10px; }
.lb .bot { display: flex; justify-content: flex-end; gap: 8px; }
.lb .bot button { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); font-size: 14px; }

/* ---------- page header ---------- */
.phead { padding-top: calc(var(--nav) + 8vh); display: grid; gap: 18px; }
.phead h1 { font-size: clamp(48px, 10vw, 170px); }
.phead .sub { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; }

/* ---------- contact ---------- */
.emailpill { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 999px; padding: 14px 22px; font-size: clamp(18px, 2.2vw, 32px); font-weight: 300; letter-spacing: -.01em; max-width: 100%; }
.emailpill span { overflow: hidden; text-overflow: ellipsis; }
.emailpill button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, color .3s; flex: none; }
.emailpill button:hover, .emailpill button.ok { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.socialrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.socialrow a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; transition: background .3s, color .3s, border-color .3s; }
.socialrow a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- footer ---------- */
.foot { position: relative; padding-top: clamp(72px, 12vh, 140px); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 8vh, 96px); overflow: hidden; }
.foot .row { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: end; }
.foot .contact { display: grid; gap: 10px; justify-items: start; }
.foot .squiggle { height: 100px; width: 100%; color: var(--ink); }
.foot .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.foot .sig { width: clamp(140px, 16vw, 220px); }
.foot .sig img { width: 100%; height: auto; clip-path: inset(0 100% 0 0); }
.foot .big { display: flex; align-items: stretch; gap: clamp(8px, 1.2vw, 20px); font-size: clamp(48px, 10.6vw, 176px); line-height: .85; white-space: nowrap; }
.foot .big .pic { width: 0; border-radius: 6px; overflow: hidden; align-self: stretch; flex: none; will-change: width; position: relative; }
.foot .big .pic video, .foot .big .pic img { position: absolute; inset: 0; }
.foot .big .pic img, .foot .big .pic video { width: clamp(70px, 11vw, 180px); height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.foot .base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.foot .base a:hover { color: var(--orange); }

.rv { will-change: transform, opacity; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.only-m { display: none !important; }

/* =====================================================================
   PHONE LAYOUT (≤ 760px). Every scene is re-composed, not just shrunk.
   ===================================================================== */
@media (max-width: 760px) {
  :root { --gl: max(18px, env(safe-area-inset-left, 0px)); --gr: max(18px, env(safe-area-inset-right, 0px)); --nav: 64px; }
  body { font-size: 15.5px; }
  .only-m { display: block !important; }
  .only-d { display: none !important; }
  .nav .logo { width: 34px; }
  .nav .cta { padding: 11px 16px; font-size: 13px; }
  .menu li a { font-size: clamp(40px, 12vw, 64px); gap: 12px; }

  /* hero: portrait clip, name stacked at the bottom, role above it */
  .hero { height: 100svh; min-height: 0; }
  .hero .shade { background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .15) 55%, rgba(0, 0, 0, .7)); }
  .hero .name .l { position: static; font-size: clamp(56px, 19vw, 92px); display: block; }
  .hero .name { position: absolute; inset: auto var(--gr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gl); display: grid; gap: 2px; }
  .hero .role { position: absolute; left: var(--gl); right: var(--gr); bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 2 * clamp(56px, 19vw, 92px) + 22px); top: auto; text-align: left; max-width: 30ch; font-size: 14px; }
  .hero .cue { display: none; }

  .manifesto { min-height: 0; padding-block: 88px; }
  .manifesto .sig { width: 140px; }
  .manifesto p { font-size: clamp(30px, 9.6vw, 44px); max-width: 12ch; }

  .panel { padding-top: 64px; }
  .panel .grid { grid-template-columns: 1fr; gap: 28px; }
  .panel h2 { font-size: clamp(44px, 14vw, 68px); }
  .panel .media { width: 100%; aspect-ratio: 4 / 3; }
  .panel .side { padding-top: 0; gap: 22px; }
  .panel .numbers { grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; }
  .panel .numbers b { font-size: clamp(24px, 7.6vw, 34px); }
  .panel .numbers small { font-size: 9.5px; letter-spacing: .06em; }
  .panel .meta { grid-template-columns: 1fr auto; }
  .panel .meta .bar { display: none; }

  .ledger .row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .ledger .r { grid-column: 1 / -1; font-size: 14px; }
  .ledger .t { text-align: right; }

  .mega { height: 320svh; }
  .mega .bg { filter: blur(1.5px) brightness(.55) saturate(1.05); }
  .mega .line { font-size: clamp(64px, 24vw, 110px); }

  .fan { padding: 72px 0 48px; }
  .fan .deck { height: 380px; }
  .fan .card { width: 150px; margin-left: -75px; }

  .chapter { grid-template-columns: 1fr; gap: 26px; padding-block: 64px; }
  .chapter.flip .pic { order: 0; }
  .chapter .pic, .chapter .pic.wide, .chapter .pic.tall { aspect-ratio: 4 / 5; clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%); }
  .chapter .txt { max-width: none; }
  .chapter h2 { font-size: clamp(36px, 11vw, 52px); }

  .duo { grid-template-columns: 1fr 1fr !important; gap: 12px; align-items: start; padding-bottom: 64px; }
  .duo .pic { aspect-ratio: 3 / 4 !important; }
  .duo .pic img, .duo .pic video, .chapter .pic img, .chapter .pic video, .mega .bg video, .mega .bg img, .hero video { object-position: var(--pos-m, var(--pos, 50% 50%)); }
  .duo .pic.a { aspect-ratio: 3 / 4; }
  .duo .pic.b { aspect-ratio: 3 / 4; }

  .strip .pin { height: auto; padding-block: 56px 24px; }
  .strip .track { flex-direction: column; width: auto; padding-inline: var(--gl) var(--gr); gap: 14px; }
  .strip .case { width: auto; }
  .strip .bar { display: none; }

  .biglinks a { grid-template-columns: 1fr; gap: 6px; }
  .biglinks .h { text-align: left; }
  .biglinks .t { font-size: clamp(34px, 11vw, 52px); }

  .masonry { columns: 2; column-gap: 10px; }
  .masonry figure { margin-bottom: 10px; }

  .phead { padding-top: calc(var(--nav) + 32px); }
  .phead h1 { font-size: clamp(44px, 14vw, 72px); }
  .phead .sub { grid-template-columns: 1fr; }

  .foot { padding-top: 64px; gap: 40px; }
  .foot .row { grid-template-columns: 1fr; gap: 24px; }
  .foot .row > span { display: none; }
  .foot .squiggle { display: none; }
  .foot .sig { width: 160px; }
  .foot .big { font-size: clamp(44px, 15vw, 72px); flex-wrap: wrap; }
  .foot .big .pic img, .foot .big .pic video { width: 56px; }
  .foot .base { flex-direction: column; gap: 8px; }
}
@media (max-width: 900px) {
  /* doors: two stacked cards with the media inside the frame */
  .doors { min-height: 0; padding-block: 56px 72px; display: block; }
  .doors .edge { position: relative; top: auto; transform: none !important; width: 100%; aspect-ratio: 4 / 5; margin: 0; }
  .doors .edge.l { left: 0; clip-path: polygon(0 0, 100% 0, 100% 94%, 94% 100%, 0 100%); }
  .doors .edge.r { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 6% 100%, 0 94%); }
  .doors .pair { display: grid; grid-template-columns: 1fr; gap: 48px; width: auto; margin: 0 var(--gr) 0 var(--gl); }
  .doors a { gap: 12px; }
  .doors a .edge { margin-bottom: 8px; }
  .doors a h2 { font-size: clamp(48px, 15vw, 72px); }
  .doors a h2 i { display: inline; font-size: 1em; }

}
@media (hover: none) { .nav.hide { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .veil { display: none !important; }
  .foot .sig img, .manifesto .sig img { clip-path: none; }
}
