@font-face {
    font-family: 'Unbounded';
    src: url('assets/fonts/Unbounded.woff2') format('woff2');
    font-weight: 200 900;
    font-style: normal;
    font-display: swap;
}
:root {
    color-scheme: dark;
    --bg: #0b0d0c;
    --bg-deep: #070908;
    --bg-panel: #111512;
    --bg-raise: #1b211c;
    --sage: #a5b59d;
    --sage-bright: #d0dcc8;
    --bone: #e3dfd1;
    --text-main: #eeeFE9;
    --text-muted: #a6afa3;
    --line: rgba(180, 199, 169, .24);
    --line-soft: rgba(180, 199, 169, .14);
    --font-heading: 'Unbounded', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --e-expo: cubic-bezier(.16, 1, .3, 1);
    --pad: clamp(20px, 4.5vw, 80px);
    --header-h: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--text-main); font: 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
main { overflow: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button, a { -webkit-tap-highlight-color: rgba(165, 181, 157, .22); touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
::selection { background: var(--sage); color: var(--bg); }
:focus-visible { outline: 2px solid var(--sage-bright); outline-offset: 5px; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
section[tabindex="-1"]:focus, main[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--sage-bright); color: var(--bg); padding: 12px 20px; transform: translateY(-160%); font: 14px var(--font-mono); }
.skip-link:focus-visible { transform: none; }
.hero-scan, .portrait-scan, #vignette { display: none; }
#scroll-progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
#scroll-progress span { display: block; height: 100%; width: 100%; background: var(--sage-bright); transform: scaleX(0); transform-origin: left; }
#hud { position: absolute; z-index: 2; top: calc(var(--header-h) + 20px); right: var(--pad); display: flex; align-items: center; gap: 12px; color: var(--sage-bright); font: 12px var(--font-mono); letter-spacing: .03em; pointer-events: none; }
.hud-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.hud-sep { color: var(--text-muted); }
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); padding: 0 var(--pad); z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.is-stuck { background: rgba(11, 13, 12, .95); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 44px; flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; transition: transform .65s var(--e-expo); }
.brand:hover .brand-mark { transform: rotate(90deg); }
.brand-type { display: flex; flex-direction: column; font: 12px/1.25 var(--font-heading); }
.brand-type b { font-weight: 800; }
.brand-type i { font-size: 10px; font-style: normal; font-weight: 300; color: var(--sage); letter-spacing: .12em; }
.site-nav { display: flex; gap: clamp(16px, 2vw, 36px); }
.nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-muted); font: 13px var(--font-mono); text-transform: uppercase; position: relative; }
.nav-link em { font: 12px var(--font-mono); color: var(--sage); }
.nav-link::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: var(--sage); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--e-expo); }
.nav-link:hover, .nav-link.is-here { color: var(--text-main); }
.nav-link:hover::after, .nav-link.is-here::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.keys-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text-muted); font: 14px var(--font-mono); transition: color .2s, border-color .2s; }
.keys-toggle:hover { color: var(--sage-bright); border-color: var(--sage); }
.menu-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 30px; font: 12px var(--font-mono); }
.mt-bars { display: flex; flex-direction: column; gap: 5px; width: 15px; }
.mt-bars i { display: block; height: 1px; background: currentColor; }

/* Oversized type and a quiet field of texture keep the folio's original character. */
.hero { position: relative; min-height: min(960px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--header-h) + 130px) var(--pad) clamp(36px, 6vh, 70px); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img { position: absolute; inset: -3%; background: #13271e url('assets/texture/hero-b.jpg') center/cover no-repeat; transform: scale(1.04); transition: transform 1.2s var(--e-expo); }
#hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .85; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 15, 11, .28), rgba(8, 14, 11, .05) 40%, var(--bg) 100%); }
.hero-inner { width: 100%; }
.hero-kicker { display: flex; justify-content: space-between; max-width: 820px; gap: 14px; margin-bottom: clamp(22px, 4vh, 50px); color: var(--sage-bright); font: 12px var(--font-mono); letter-spacing: .12em; }
.hero-title { display: flex; flex-direction: column; font-family: var(--font-heading); line-height: .86; margin-left: -.04em; }
.ht-row { display: flex; align-items: baseline; }
.ht-thin, .ht-bold, .ht-dot { font-size: clamp(60px, 15.5vw, 250px); }
.hero-title .ch {
    display: inline-block;
    font-variation-settings: 'wght' var(--w);
    transition: font-variation-settings .45s cubic-bezier(.16, 1, .3, 1);
}
.ht-thin .ch { --w: 250; }
.ht-bold .ch { --w: 850; }
.ht-thin { font-weight: 250; color: var(--sage); letter-spacing: .012em; }
.ht-dot { color: var(--sage-bright); font-weight: 800; }
.ht-bold { color: var(--text-main); font-weight: 850; letter-spacing: -.04em; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: clamp(28px, 4.5vh, 60px); padding-top: 24px; border-top: 1px solid var(--line); }
.hero-sub { display: flex; flex-direction: column; gap: 10px; }
.hero-sub-big { font: 650 clamp(18px, 2.4vw, 32px)/1.3 var(--font-heading); color: var(--bone); }
.hero-sub-small { font: 12px/1.7 var(--font-mono); color: var(--text-muted); letter-spacing: .04em; max-width: 62ch; }
.scroll-cue { display: flex; align-items: center; gap: 22px; flex-shrink: 0; min-height: 52px; padding: 0 20px; border: 1px solid var(--sage); border-radius: 2px; color: var(--sage-bright); font: 12px var(--font-mono); letter-spacing: .06em; transition: color .2s, background .2s; }
.scroll-cue:hover { background: var(--sage-bright); color: var(--bg); }
.cue-arrow { font-size: 24px; transition: transform .3s var(--e-expo); }
.scroll-cue:hover .cue-arrow { transform: translate(3px, 3px); }
.chapter-index { padding: clamp(50px, 8vw, 110px) var(--pad); border-bottom: 1px solid var(--line-soft); }
.chapters { list-style: none; }
.chapter { border-bottom: 1px solid var(--line); }
.chapter:first-child { border-top: 1px solid var(--line); }
.chapter a { display: flex; align-items: center; gap: clamp(14px, 3vw, 44px); min-width: 0; padding: clamp(18px, 2.7vw, 36px) 0; }
.c-num { flex-shrink: 0; width: 38px; font: 12px var(--font-mono); color: var(--sage); }
.c-label { font: 300 clamp(26px, 5.8vw, 80px)/1.1 var(--font-heading); color: var(--text-muted); letter-spacing: -.04em; transition: color .3s, transform .4s var(--e-expo); }
.c-dots { flex: 1; height: 1px; background: var(--line-soft); }
.c-go { flex-shrink: 0; color: var(--text-muted); font: 12px var(--font-mono); }
.c-go span { margin-left: 10px; }
.chapter a:hover .c-label, .chapter a:focus-visible .c-label, .chapter .is-here .c-label { color: var(--sage-bright); transform: translateX(6px); }
.chapter a:hover .c-go { color: var(--text-main); }
.sec-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(28px, 4vw, 54px); }
.sec-num { font: 12px var(--font-mono); color: var(--sage); white-space: nowrap; }
.sec-title { font: 700 clamp(28px, 4.6vw, 64px)/1.1 var(--font-heading); letter-spacing: -.04em; }
.about, .work, .gratitude { padding: clamp(64px, 8vw, 120px) var(--pad); }
.about-grid { display: grid; grid-template-columns: minmax(200px, .72fr) 1.28fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.portrait-frame { overflow: hidden; aspect-ratio: 4/5; background: var(--bg-deep); }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.about-portrait figcaption { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.pc-name { font: 600 13px/1.5 var(--font-heading); }
.pc-role { color: var(--text-muted); font: 12px/1.6 var(--font-mono); }
.about-copy { display: flex; flex-direction: column; gap: 22px; max-width: 60ch; }
.about-copy p { color: #c9d0c5; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; }
.about-copy p:first-child { font: 300 clamp(21px, 2.3vw, 32px)/1.5 var(--font-heading); letter-spacing: -.03em; color: var(--text-main); }
.about-facts { display: flex; flex-wrap: wrap; gap: 24px 36px; padding-top: 28px; margin-top: 36px; border-top: 1px solid var(--line); }
.about-facts div { display: flex; flex-direction: column; gap: 8px; }
.about-facts dt { color: var(--text-muted); font: 12px var(--font-mono); }
.about-facts dd { color: var(--sage-bright); font: 500 14px var(--font-heading); }
.disciplines { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.disciplines li { font: 12px/1.5 var(--font-mono); color: var(--text-muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; }
.marquee { margin-top: clamp(48px, 6vw, 90px); padding: 26px 0 0; border-top: 1px solid var(--line); }
.marquee-track { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.marquee-track span { font: 400 12px/1.6 var(--font-mono); letter-spacing: .04em; color: var(--text-muted); }

/* The quadrant grid is the only layout, so the controls carry the filters alone. */
.work { border-top: 1px solid var(--line); background: var(--bg-deep); }
.work-head { flex-direction: column; align-items: stretch; gap: 30px; }
.work-headline { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.work-count { margin-left: auto; color: var(--text-muted); font: 12px var(--font-mono); text-transform: uppercase; }
.work-controls { display: flex; align-items: center; gap: 14px; }
.filters { display: flex; gap: 6px; min-width: 0; flex-wrap: wrap; }
.filter { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 20px; border: 1px solid var(--line); border-radius: 3px; font: 12px var(--font-mono); color: var(--text-muted); transition: color .2s, background .2s, border-color .2s; }
.filter em { font: inherit; opacity: .7; }
.filter i { display: none; }
.filter:hover { border-color: var(--sage); color: var(--text-main); }
.filter.is-on { color: #0b100a; background: var(--sage-bright); border-color: var(--sage-bright); }
.project-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 58px) clamp(18px, 2.5vw, 40px); }
.p-row { min-width: 0; }
.p-link { display: block; position: relative; height: 100%; }
.p-shot { display: block; position: relative; overflow: hidden; aspect-ratio: 16/10; background: #111511; border: 1px solid var(--line-soft); }
.p-shot > img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--e-expo), filter .4s; }
.p-image-count { position: absolute; left: 14px; top: 14px; color: #ecf0e8; background: rgba(7, 10, 8, .82); padding: 5px 8px; font: 11px var(--font-mono); }
.p-open { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 12px; align-items: center; min-height: 34px; padding: 8px 12px; font: 11px var(--font-mono); background: var(--sage-bright); color: var(--bg); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s; }
.p-link:hover .p-shot > img { transform: scale(1.035); }
.p-link:hover .p-open, .p-link:focus-visible .p-open { opacity: 1; transform: none; }
.p-body { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.p-topline { display: flex; gap: 12px; align-items: center; }
.p-num { color: var(--sage); font: 12px var(--font-mono); }
.p-kind, .p-year { color: var(--text-muted); font: 12px var(--font-mono); text-transform: capitalize; }
.p-kind::before { content: '/'; margin-right: 12px; color: var(--line); }
.p-year { margin-left: auto; }
.p-arrow { display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; color: var(--sage-bright); border: 1px solid var(--line); border-radius: 50%; font-size: 17px; transition: transform .3s var(--e-expo), color .2s, background .2s; }
.p-link:hover .p-arrow { background: var(--sage-bright); color: var(--bg); transform: translate(2px, -2px); }
.p-title { font: 500 clamp(20px, 2.3vw, 34px)/1.25 var(--font-heading); letter-spacing: -.035em; overflow-wrap: anywhere; }
.p-meta { display: flex; flex-direction: column; gap: 5px; }
.p-client { color: var(--sage-bright); font: 12px/1.6 var(--font-mono); }
.p-tag { color: var(--text-muted); font: 14px/1.6 var(--font-body); }

.gratitude { position: relative; isolation: isolate; border-top: 1px solid var(--line); overflow: hidden; }
.gratitude::after { content: ''; position: absolute; right: -5%; top: 15%; width: min(65vw, 660px); aspect-ratio: 1; background: url('assets/logo/virtual-logo.svg') center/contain no-repeat; opacity: .045; z-index: -1; }
.closing { max-width: 860px; }
.quote-mark { display: none; }
.closing p { font: 300 clamp(23px, 3.6vw, 46px)/1.45 var(--font-heading); letter-spacing: -.03em; text-wrap: pretty; }
.contact-block { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-top: clamp(40px, 7vw, 90px); padding-top: 26px; border-top: 1px solid var(--line); }
.contact-mail { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cm-label { color: var(--text-muted); font: 12px var(--font-mono); letter-spacing: .08em; }
.cm-value { font: 400 clamp(22px, 3.4vw, 48px)/1.4 var(--font-body); letter-spacing: -.04em; color: var(--sage-bright); overflow-wrap: anywhere; }
.contact-mail:hover .cm-value { color: var(--text-main); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.contact-links { display: flex; gap: 26px; }
.c-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 12px var(--font-mono); color: var(--text-muted); white-space: nowrap; }
.c-link i { font-style: normal; color: var(--sage-bright); }
.c-link:hover { color: var(--text-main); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px var(--pad); color: var(--text-muted); font: 12px/1.6 var(--font-mono); }
.foot-mark { opacity: .7; width: 26px; height: 26px; }

/* Native modal dialogs provide focus containment, Escape and an inert background. */
dialog { position: fixed; inset: 0; border: 0; max-width: none; max-height: none; color: var(--text-main); background: transparent; }
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(3, 6, 4, .86); backdrop-filter: blur(10px); }
dialog[open] { animation: dialog-in .22s var(--e-expo); }
.menu { width: 100%; height: 100%; padding: max(90px, env(safe-area-inset-top)) var(--pad) max(30px, env(safe-area-inset-bottom)); background: var(--bg); overflow-y: auto; }
.menu-close { display: flex; align-items: center; gap: 18px; min-height: 44px; margin-left: auto; margin-bottom: 36px; font: 14px var(--font-mono); }
.menu-close span { font-size: 26px; }
.menu-inner { display: flex; flex-direction: column; }
.menu-link { display: flex; align-items: center; gap: 14px; padding: 24px 0; border-top: 1px solid var(--line); }
.m-num { color: var(--sage); width: 28px; flex-shrink: 0; font: 12px var(--font-mono); }
.m-label { font: 400 clamp(21px, 5.8vw, 44px)/1.3 var(--font-heading); letter-spacing: -.04em; }
.m-arrow { margin-left: auto; color: var(--sage); }
.menu-link.is-here .m-label { color: var(--sage-bright); }
.menu-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 30px; border-top: 1px solid var(--line); }
.menu-foot a { display: flex; align-items: center; min-height: 44px; font: 13px var(--font-mono); color: var(--text-muted); }
.menu-foot .menu-mail { color: var(--sage-bright); }
.viewer { width: 100%; height: 100%; padding: clamp(0px, 1.6vw, 26px); overflow: hidden; }
.viewer-bg { position: absolute; inset: 0; }
.viewer-shell { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--bg-panel); border: 1px solid var(--line); border-top: 2px solid var(--project-accent, var(--sage)); }
.viewer-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.vh-left { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.v-index { white-space: nowrap; font: 12px var(--font-mono); color: var(--sage); }
.v-titles { min-width: 0; }
.v-titles h2 { font: 650 clamp(18px, 2.5vw, 36px)/1.2 var(--font-heading); letter-spacing: -.03em; overflow-wrap: anywhere; }
.v-titles p { font: 12px/1.6 var(--font-mono); color: var(--text-muted); margin-top: 8px; }
.vh-right { flex-shrink: 0; }
.v-close { min-width: 44px; min-height: 44px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); padding: 0 14px; border-radius: 3px; font: 12px var(--font-mono); }
.v-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.v-close:hover { background: var(--sage-bright); color: var(--bg); }
.viewer-main { display: flex; flex: 1; min-height: 0; }
.viewer-meta { flex: 0 0 28%; max-width: 350px; padding: 28px; border-right: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 24px; }
.v-intro { font-size: 16px; line-height: 1.8; color: #d3dbce; }
.v-roles { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.v-roles li { color: var(--sage-bright); font: 12px/1.5 var(--font-mono); padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; }
.v-facts { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; margin-top: auto; border-top: 1px solid var(--line); }
.v-facts div { display: flex; justify-content: space-between; gap: 16px; }
.v-facts dt, .v-facts dd { font: 12px/1.5 var(--font-mono); }
.v-facts dt { color: var(--text-muted); }
.v-facts dd { color: var(--sage-bright); }
.info-toggle { display: none; }
.viewer-reel-wrap { position: relative; flex: 1; min-width: 0; min-height: 0; background: var(--bg-deep); }
.viewer-reel { display: flex; height: 100%; width: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; position: relative; }
.viewer-reel::-webkit-scrollbar { display: none; }
.viewer-reel.is-dragging, .viewer-reel.is-wheeling { scroll-snap-type: none; }
.viewer-reel.is-dragging, .viewer-reel.is-dragging * { cursor: grabbing; user-select: none; }
.reel-item { position: relative; display: flex; flex-direction: column; flex: 0 0 100%; min-width: 0; min-height: 0; height: 100%; padding: 32px 50px 46px; scroll-snap-align: center; scroll-snap-stop: always; }
.image-expand { display: flex; align-items: center; justify-content: center; position: relative; flex: 1; min-height: 0; width: 100%; cursor: zoom-in; }
.image-expand img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .25s; }
.image-expand img.loaded { opacity: 1; }
.expand-label { position: absolute; bottom: 12px; right: 12px; padding: 8px 10px; background: rgba(8, 13, 9, .86); color: var(--sage-bright); font: 11px/1.5 var(--font-mono); opacity: 0; transition: opacity .2s; }
.image-expand:hover .expand-label, .image-expand:focus-visible .expand-label { opacity: 1; }
.image-expand.image-failed { border: 1px dashed var(--line); cursor: pointer; }
.image-failed .expand-label { opacity: 1; position: static; }
.image-failed img { display: none; }
.r-num { display: flex; flex-shrink: 0; gap: 18px; margin-top: 16px; font: 12px/1.6 var(--font-mono); color: var(--sage); }
.r-num span { color: var(--text-muted); font-family: var(--font-body); }
.reel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(12, 18, 13, .9); color: var(--sage-bright); font-size: 22px; }
.reel-arrow-prev { left: 4px; }
.reel-arrow-next { right: 4px; }
.reel-arrow:hover { border-color: var(--sage); }
.reel-arrow[aria-disabled="true"] { opacity: .3; cursor: default; }
.reel-hint { position: absolute; bottom: 13px; left: 50px; right: 50px; text-align: center; font: 11px/1.5 var(--font-mono); color: var(--text-muted); pointer-events: none; }
.viewer-foot { flex-shrink: 0; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 10px 28px; }
.v-nav { display: flex; align-items: center; gap: 12px; min-height: 44px; min-width: 0; color: var(--text-muted); font: 12px var(--font-mono); text-align: left; }
.v-nav-direction { display: none; }
.v-nav i { font-style: normal; font-size: 22px; color: var(--sage-bright); }
.v-nav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-nav:hover { color: var(--text-main); }
.v-nav-next { justify-content: flex-end; text-align: right; }
.v-frames { display: flex; align-items: center; gap: 14px; }
.v-frame-count { color: var(--sage-bright); font: 12px var(--font-mono); white-space: nowrap; }
.v-pips { display: flex; }
.v-pip { position: relative; width: 44px; height: 44px; }
.v-pip::after { content: ''; position: absolute; top: 21px; left: 8px; right: 8px; height: 2px; background: #586651; transition: background .2s, transform .2s; }
.v-pip.is-on::after { background: var(--sage-bright); transform: scaleY(2); }
.v-pip:hover::after { background: var(--text-main); }
.zoom { width: 100%; height: 100%; background: #070a08; display: flex; flex-direction: column; overflow: hidden; }
.zoom-tools { display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 12px 24px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); }
#zoom-label { flex: 1; min-width: 0; font: 12px/1.5 var(--font-mono); color: var(--text-muted); }
.zoom-tools button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); font: 12px var(--font-mono); white-space: nowrap; }
.zoom-tools button:hover { background: var(--bg-raise); }
.zoom-canvas { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 24px; }
.zoom-canvas img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.zoom.is-zoomed .zoom-canvas img { width: max(1600px, 150%); height: auto; max-width: none; cursor: zoom-out; }
.keys-panel { width: min(520px, calc(100% - 32px)); height: max-content; max-height: calc(100% - 32px); margin: auto; background: var(--bg-panel); border: 1px solid var(--line); overflow-y: auto; }
.keys-card { padding: 32px; }
.keys-card h2 { color: var(--sage); font: 13px var(--font-mono); letter-spacing: .04em; margin-bottom: 26px; }
.keys-card ul { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.keys-card li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.keys-card li span { margin-left: auto; text-align: right; }
kbd { font: 12px var(--font-mono); color: var(--sage-bright); padding: 4px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; }
.keys-close { width: 100%; min-height: 48px; border: 1px solid var(--line); margin-top: 30px; font: 12px var(--font-mono); }
.keys-close:hover { background: var(--sage-bright); color: var(--bg); }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 65; transform: translate(-50%, 10px); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; border: 1px solid var(--line); background: var(--sage-bright); color: var(--bg); font: 14px/1.5 var(--font-body); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.noscript-note { padding: 30px var(--pad); border-top: 1px solid var(--line); }
.noscript-note a { text-decoration: underline; }
.reveal, .closing { transition: opacity .5s var(--e-expo), transform .5s var(--e-expo); }
.js .reveal:not(.in), .js .closing:not(.in) { opacity: .5; transform: translateY(12px); }

@media (min-width: 1700px) { .about-grid { grid-template-columns: 460px 1fr; } .about-copy { max-width: 70ch; } }
@media (max-width: 1000px) {
    .site-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .keys-toggle { display: none; }
    #hud { font-size: 11px; gap: 10px; }
    #hud-coord, #hud .hud-sep:first-of-type { display: none; }
    .about-grid { grid-template-columns: .7fr 1fr; gap: 30px; }
    .work-controls { align-items: flex-start; }
    .v-frame-count { display: none; }
    .viewer-meta { flex-basis: 31%; padding: 22px; }
}
@media (max-width: 860px) {
    .hero-sub-small { max-width: 40ch; }
    .chapter .c-go { font-size: 11px; }
    .viewer { padding: 0; }
    .viewer-shell { border-left: 0; border-right: 0; }
    .viewer-head { padding: max(16px, env(safe-area-inset-top)) 18px 16px; }
    .vh-left { gap: 10px; }
    .v-index { display: none; }
    .v-titles h2 { font-size: clamp(17px, 3.6vw, 27px); }
    .v-titles p { font-size: 12px; margin-top: 6px; }
    .v-close { padding: 0 12px; }
    .v-close span { display: none; }
    .viewer-main { flex-direction: column; }
    .info-toggle { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 100%; min-height: 46px; padding: 0 18px; border-bottom: 1px solid var(--line); font: 12px var(--font-mono); color: var(--sage-bright); }
    .info-toggle span { font-size: 20px; }
    .viewer-meta { display: none; width: 100%; max-width: none; max-height: 38%; flex: 0 1 auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; gap: 20px; }
    .viewer.show-info .viewer-meta { display: flex; }
    .v-intro { font-size: 16px; line-height: 1.65; }
    .v-facts { flex-direction: row; flex-wrap: wrap; padding-top: 16px; gap: 10px 24px; }
    .v-facts div { gap: 10px; }
    .reel-item { padding: 20px 20px 80px; }
    .reel-arrow { top: auto; bottom: 18px; transform: none; width: 48px; height: 44px; }
    .reel-arrow-prev { left: 20px; }
    .reel-arrow-next { right: 20px; }
    .reel-hint { bottom: 31px; font-size: 0; left: 74px; right: 74px; }
    .reel-hint::after { content: 'SWIPE TO EXPLORE'; font-size: 11px; }
    .expand-label { opacity: 1; bottom: 8px; right: 8px; font-size: 10px; }
    .viewer-foot { padding: 8px 20px max(8px, env(safe-area-inset-bottom)); gap: 8px; }
    .v-nav span { display: none; }
    .v-nav { min-width: 44px; flex-direction: column; justify-content: center; gap: 0; }
    .v-nav .v-nav-direction { display: block; font: 10px/1.3 var(--font-mono); white-space: normal; text-align: center; }
    .v-nav i { line-height: 1.2; }
    .v-nav-next { justify-self: end; }
    .v-frames { flex-direction: column; gap: 0; }
    .v-frame-count { display: block; font-size: 11px; }
    .v-pip { height: 44px; }
    .v-pip::after { top: 21px; }
}
@media (max-width: 640px) {
    :root { --header-h: 68px; }
    #hud { top: calc(var(--header-h) + 18px); right: var(--pad); }
    #hud-coord, #hud-sec, .hud-sep { display: none; }
    .hero { min-height: 86svh; padding-top: 180px; padding-bottom: 36px; }
    .ht-thin, .ht-bold, .ht-dot { font-size: 23vw; }
    .hero-kicker { font-size: 11px; letter-spacing: .04em; }
    .hero-foot { flex-direction: column; align-items: stretch; gap: 26px; }
    .hero-sub-small { max-width: 100%; font-size: 11px; line-height: 1.8; }
    .scroll-cue { justify-content: space-between; width: 100%; }
    .chapter a { gap: 10px; padding: 22px 0; }
    .c-num { width: 24px; }
    .c-label { font-size: clamp(23px, 5.7vw, 37px); }
    .c-go { font-size: 0 !important; }
    .c-go span { font-size: 18px; }
    .c-dots { background: none; }
    .sec-head, .work-headline { gap: 12px; }
    .sec-title { font-size: clamp(24px, 6vw, 38px); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-portrait { max-width: 370px; }
    .about-copy p:first-child { font-size: 23px; }
    .about-facts { gap: 26px; }
    .work-headline .work-count { width: 100%; margin-left: 0; }
    .work-controls { flex-wrap: wrap; gap: 14px; }
    .filters { gap: 5px; width: 100%; }
    .filter { font-size: 11px; padding: 0 12px; flex: 1; justify-content: center; }
    .filter em { display: none; }
    .project-list { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .p-title { font-size: 23px; }
    .p-shot { aspect-ratio: 16/10; }
    .p-open { opacity: 1; transform: none; font-size: 10px; }
    .p-kind::before { margin-right: 8px; }
    .closing p { font-size: 25px; }
    .cm-value { font-size: clamp(22px, 6.6vw, 34px); }
    .contact-links { gap: 24px; }
    .site-footer { font-size: 11px; }
    .foot-meta { display: none; }
    .menu { padding-top: 22px; }
    .menu-link { gap: 10px; }
    .m-num { width: 22px; }
    .m-label { font-size: clamp(21px, 5.5vw, 34px); }
    .zoom-tools { gap: 8px; padding: 10px 12px; }
    #zoom-label { font-size: 10px; }
    .zoom-tools button { padding: 8px 10px; font-size: 11px; }
    .zoom-canvas { padding: 12px; }
    .keys-card { padding: 24px; }
    .keys-card li { font-size: 12px; }
    .r-num { gap: 10px; margin-top: 10px; }
    .r-num span { font-size: 12px; }
}
@media (max-width: 360px) {
    :root { --pad: 16px; }
    .ht-thin, .ht-bold, .ht-dot { font-size: 23vw; }
    .v-pip { width: 36px; }
    .filter { padding: 0 8px; }
    .p-title { font-size: 21px; }
    .about-copy p:first-child { font-size: 21px; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .hero { min-height: 650px; }
    .viewer-head { padding-top: 10px; padding-bottom: 10px; }
    .v-titles h2 { font-size: 18px; }
    .v-titles p, .r-num, .reel-hint { display: none; }
    .viewer-foot { padding-top: 2px; padding-bottom: 2px; }
    .v-frame-count { display: none; }
    .reel-item { padding: 10px 60px; }
    .reel-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
    .info-toggle { min-height: 36px; }
}
@media (hover: none) { .p-open { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    .reveal, .closing { opacity: 1 !important; transform: none !important; }
    .hero-img { transform: none !important; }
}


/* =====================================================================
   POINTER FLOURISHES
   ===================================================================== */

/* `translate` is used instead of `transform` so these never fight the
   transforms already declared on buttons and marks. */
[data-magnetic] { translate: var(--mx, 0) var(--my, 0); transition: translate .45s cubic-bezier(.16, 1, .3, 1); }
[data-magnetic].is-pulled { transition: translate .12s linear; }

.sec-title.is-scrambling { color: var(--sage-bright); }

@media (prefers-reduced-motion: reduce) {
    [data-magnetic] { translate: none; }
    .hero-title .ch { transition: none; }
}
@media (hover: none), (pointer: coarse) {
    [data-magnetic] { translate: none; }
}


/* =====================================================================
   ADDED INTERACTION
   ===================================================================== */

/* Counts on the filters, so the split is legible before you click. */
.f-count { font: inherit; font-weight: 400; opacity: .55; font-variant-numeric: tabular-nums; }
.filter.is-on .f-count { opacity: .75; }

/* A chapter row fills toward its label on hover instead of only tinting. */
.chapter a { position: relative; isolation: isolate; }
.chapter a::before {
    content: ''; position: absolute; z-index: -1; inset: 0 auto 0 0; width: 0;
    background: linear-gradient(90deg, rgba(165, 181, 157, .12), transparent);
    transition: width .5s var(--e-expo);
}
.chapter a:hover::before, .chapter a:focus-visible::before { width: 100%; }
.c-dots { position: relative; overflow: hidden; }
.c-dots::after {
    content: ''; position: absolute; inset: 0; background: var(--sage);
    transform: scaleX(0); transform-origin: left; transition: transform .5s var(--e-expo);
}
.chapter a:hover .c-dots::after, .chapter a:focus-visible .c-dots::after { transform: scaleX(1); }
.c-go { opacity: .5; transition: opacity .3s, transform .4s var(--e-expo); }
.chapter a:hover .c-go, .chapter a:focus-visible .c-go { opacity: 1; transform: translateX(4px); }

/* Client list scrolls again, and holds still for anyone reading it. */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee.is-rolling .marquee-track { flex-wrap: nowrap; width: max-content; animation: marquee-roll 46s linear infinite; }
.marquee.is-rolling:hover .marquee-track, .marquee.is-rolling:focus-within .marquee-track { animation-play-state: paused; }
.marquee.is-rolling .marquee-track span { white-space: nowrap; display: flex; align-items: center; gap: 32px; }
.marquee.is-rolling .marquee-track span::after { content: '/'; color: var(--sage); opacity: .5; }
@keyframes marquee-roll { to { transform: translateX(-50%); } }

/* The footer mark doubles as back to top, so no floating control is needed. */
.foot-mark-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; transition: background .25s; }
.foot-mark-link:hover { background: rgba(165, 181, 157, .12); }
.foot-mark { opacity: .7; transition: opacity .25s, transform .45s var(--e-expo); }
.foot-mark-link:hover .foot-mark { opacity: 0; transform: translateY(-8px); }
.foot-mark-arrow { position: absolute; color: var(--sage-bright); font-size: 17px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .45s var(--e-expo); }
.foot-mark-link:hover .foot-mark-arrow { opacity: 1; transform: none; }

/* Project cards arrive in sequence rather than all at once. */
.p-row { transition: opacity .6s var(--e-expo), transform .6s var(--e-expo); }
.js .p-row:not(.in) { opacity: 0; transform: translateY(20px); }

@media (prefers-reduced-motion: reduce) {
    .marquee.is-rolling .marquee-track { animation: none; }
    .chapter a::before, .c-dots::after { transition: none; }
    .js .p-row:not(.in) { opacity: 1; transform: none; }
    .foot-mark, .foot-mark-arrow { transition: none; }
}
