/* N Studio, own build. Light lavender pages with black opening and closing blocks, electric blue accent. */
:root {
  --paper: #f0f1fa;
  --card: #ffffff;
  --ink: #0f1015;
  --muted: #5d5f6e;
  --line: rgba(15, 16, 21, 0.12);
  --night: #0b0c10;
  --night-2: #11131a;
  --night-line: rgba(255, 255, 255, 0.14);
  --blue: #1a2ffb;
  --font: "Satoshi", "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(16px, 5vw, 72px);
  --radius: clamp(14px, 1.2vw, 20px);
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.big { font-weight: 400; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
.dark { background: var(--night); color: #fff; }

/* pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em; white-space: nowrap;
  height: 44px; padding: 0 1.25em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  background: #e2e4ef; color: var(--ink); transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.pill:hover { background: #d4d7e6; }
.pill-ink { background: var(--ink); color: #fff; }
.pill-ink:hover { background: var(--blue); }
.pill-blue { background: var(--blue); color: #fff; }
.pill-blue:hover { background: #3346ff; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* header */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 28px var(--pad) 0; pointer-events: none; }
.header > * { pointer-events: auto; }
.logo { width: 44px; height: 36px; display: block; }
.logo svg { width: 100%; height: 100%; fill: var(--ink); transition: fill 0.3s ease; }
.header.on-dark .logo svg { fill: #fff; }
.header-right { display: flex; gap: 8px; position: relative; }
.menu-panel {
  position: absolute; right: 0; top: 54px; width: min(420px, calc(100vw - 32px)); display: grid; gap: 8px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.header.menu-open .menu-panel { opacity: 1; transform: none; pointer-events: auto; }
.menu-box { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 14px; box-shadow: 0 30px 60px -30px rgba(10, 12, 40, 0.35); }
.menu-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 10px; border-radius: 12px; text-decoration: none; font-size: 22px; text-transform: uppercase; letter-spacing: -0.01em; }
.menu-links a:hover { background: var(--paper); }
.menu-box h3 { margin: 6px 6px 14px; font-weight: 400; font-size: 32px; letter-spacing: -0.02em; }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.member { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--paper); border-radius: 16px; padding: 10px; text-decoration: none; min-width: 0; transition: background 0.3s ease; }
.member:hover { background: #e3e5f1; }
.member-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #dfe3fc, #f6f7ff); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member b { font-weight: 400; font-size: clamp(20px, 2vw, 34px); letter-spacing: -0.02em; line-height: 1; }
.member .pill { height: 36px; font-size: 11px; padding: 0 1em; background: var(--ink); color: #fff; }
.member:hover .pill { background: var(--blue); }

/* hero (black block) */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 112px var(--pad) 26px; }
.hero-title { position: relative; z-index: 2; margin: 0 0 0 26%; max-width: 13em; font-weight: 400; font-size: clamp(26px, 2.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; pointer-events: none; }
.hero-frame { position: absolute; inset: 0; background: var(--night); }
.hero .crosses { position: relative; z-index: 2; pointer-events: none; }
.n-hero3d, .n-end3d { position: absolute; inset: 0; }
.n-hero3d canvas, .n-end3d canvas { display: block; width: 100%; height: 100%; }
.crosses { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; color: rgba(255, 255, 255, 0.8); }
.crosses span { font-size: 18px; line-height: 1; }
@media (max-width: 760px) { .hero-title { margin-left: 0; } .crosses span:nth-child(2), .crosses span:nth-child(4) { display: none; } }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* reel: the title lines slide apart and the reel grows to full screen as you scroll */
.reel { height: 280vh; position: relative; }
.reel-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.reel-title { position: absolute; left: var(--pad); right: var(--pad); top: 16vh; font-size: clamp(56px, 9.4vw, 170px); will-change: transform; }
.reel-title span { display: block; white-space: nowrap; will-change: transform; }
.reel-text { position: absolute; right: var(--pad); width: min(36vw, 520px); margin: 0; font-size: clamp(17px, 1.45vw, 24px); line-height: 1.35; }
.reel-video { position: absolute; border: 0; padding: 0; overflow: hidden; background: #d9dbeb; cursor: pointer; border-radius: var(--radius); will-change: left, top, width, height; }
.reel-video video { width: 100%; height: 100%; object-fit: cover; }
.reel-video .pill { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); height: 56px; padding: 0 1.6em; }
@media (max-width: 760px) { .reel-text { width: auto; left: var(--pad); } }

/* work */
.work { padding: clamp(60px, 10vh, 120px) var(--pad); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.work h2, .notes h2 { font-size: clamp(56px, 8.4vw, 150px); }
.work-note { color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vh, 44px); }
.filters .pill { font-family: var(--font); text-transform: none; letter-spacing: 0; font-size: 15px; height: 42px; padding: 0 1.2em; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.filters .pill:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(15,16,21,.35); }
.filters .pill[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px) clamp(14px, 1.4vw, 24px); }
@media (max-width: 680px) { .grid { grid-template-columns: 1fr; } }
.card[hidden] { display: none; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: #16171c; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), opacity 0.4s ease; }
.card.portrait .card-media img, .card.portrait .card-media video { object-fit: contain; }
.card-media video { opacity: 0; }
.card.is-playing .card-media video { opacity: 1; }
.card:not(.portrait):hover .card-media img, .card:not(.portrait):hover .card-media video { transform: scale(1.035); }
.card-open { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 18px; transition: background 0.3s ease, color 0.3s ease; }
.card:hover .card-open { background: var(--blue); color: #fff; }
.card-type { margin: 16px 0 6px; color: var(--muted); }
.card h3 { margin: 0; font-weight: 400; font-size: clamp(24px, 2.3vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.card p { margin: 10px 0 0; color: var(--muted); max-width: 34em; }
.world { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 3vw, 50px); align-items: center; margin-top: clamp(60px, 10vh, 110px); background: var(--card); border-radius: var(--radius); padding: 14px; }
.world-media { border-radius: calc(var(--radius) * 0.8); overflow: hidden; aspect-ratio: 16 / 10; background: #16171c; }
.world-media img { width: 100%; height: 100%; object-fit: cover; }
.world h3 { margin: 10px 0 12px; font-weight: 400; font-size: clamp(30px, 3.4vw, 60px); line-height: 1; letter-spacing: -0.03em; }
.world p { margin: 0 0 22px; color: var(--muted); max-width: 30em; }
@media (max-width: 860px) { .world { grid-template-columns: 1fr; } }
.more { display: flex; justify-content: center; margin-top: clamp(40px, 7vh, 70px); }

/* notes */
.notes { padding: clamp(80px, 12vh, 150px) var(--pad); }
.notes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4vw; flex-wrap: wrap; margin-bottom: 6vh; }
.notes-head p { margin: 0; max-width: 24em; color: var(--muted); font-size: clamp(15px, 1.15vw, 19px); }
.notes-grid { display: grid; gap: clamp(12px, 1.2vw, 22px); grid-template-columns: 1.35fr 1fr 1fr; }
.note { display: flex; flex-direction: column; gap: 1.1em; min-width: 0; background: var(--card); border-radius: 18px; padding: 12px 12px 24px; transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.5s ease; }
.note:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(20, 30, 120, 0.35); }
.note.lead { grid-row: span 2; }
.note-cover { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 16 / 10; background: #e4e2f2; }
.note.lead .note-cover { aspect-ratio: auto; flex: 1; min-height: 320px; }
.note-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(.2,.7,.2,1); }
.note:hover .note-cover img { transform: scale(1.05); }
.note-body { padding: 0 6px; }
.note-meta { display: flex; gap: 1em; flex-wrap: wrap; margin: 0 0 0.9em; color: #6c6a80; font-size: 12px; }
.note-meta b { color: var(--blue); font-weight: 400; }
.note h3 { margin: 0; font-weight: 400; font-size: clamp(19px, 1.45vw, 28px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.note.lead h3 { font-size: clamp(24px, 2.3vw, 44px); }
.note p { margin: 0.7em 0 0; color: #55546a; font-size: 15px; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } .note.lead { grid-row: auto; } .note.lead .note-cover { aspect-ratio: 16/10; min-height: 0; flex: none; } }

/* film */
.film { height: 700vh; }
.film-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.film-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film-intro { position: absolute; inset: 0; padding: 110px var(--pad) 0; pointer-events: none; }
.film-intro h2 { font-size: clamp(40px, 5.6vw, 104px); max-width: 12em; }
.film-intro .film-texts { position: absolute; right: var(--pad); width: min(30vw, 420px); font-size: clamp(15px, 1.15vw, 19px); }
.film-intro .film-texts p { margin: 0 0 1em; }
.film-scrim { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8,9,16,.6), rgba(8,9,16,0) 55%), linear-gradient(0deg, rgba(8,9,16,.45), rgba(8,9,16,0) 40%); }
.film-cap { position: absolute; left: var(--pad); bottom: 12vh; max-width: min(46vw, 680px); color: #fff; opacity: 0; visibility: hidden; }
.film-cap .mono { color: rgba(255,255,255,.75); margin: 0 0 1.2em; }
.film-cap h3 { margin: 0; font-weight: 400; font-size: clamp(40px, 5.6vw, 110px); line-height: 0.98; letter-spacing: -0.03em; }
.film-cap p { margin: 1.3em 0 0; max-width: 26em; font-size: clamp(15px, 1.15vw, 20px); color: rgba(255,255,255,.88); }
.film-cap.center { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); text-align: center; max-width: 90vw; }
@media (max-width: 760px) { .film-intro .film-texts { display: none; } .film-cap { max-width: none; right: var(--pad); } }

/* end (black block) */
.end { height: 160vh; position: relative; }
.end-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; display: grid; place-items: center; text-align: center; }
.end-inner .n-end3d { z-index: -1; }
.end-copy { padding: 0 var(--pad); }
.end-copy .mono { color: rgba(255,255,255,.8); margin: 0 0 1.4em; }
.end-copy a.big { display: block; text-decoration: none; font-size: clamp(64px, 11vw, 210px); transition: color 0.3s ease; }
.end-copy a.big:hover { color: #c9d1ff; }
.end-team { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); background: #fff; color: var(--ink); }

/* contact + footer */
.contact { padding: clamp(80px, 12vh, 140px) var(--pad) 30px; }
.contact h2 { font-size: clamp(48px, 6vw, 110px); margin-bottom: clamp(28px, 4vh, 44px); }
.contact .team { gap: clamp(12px, 1.4vw, 22px); }
.contact .member { background: var(--card); padding: 12px; border-radius: var(--radius); }
.contact .member b { font-size: clamp(30px, 3.4vw, 60px); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 40px var(--pad) 30px; color: var(--muted); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* projects page */
.page-head { padding: 150px var(--pad) 60px; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(72px, 14vw, 260px); }
.page-head p { margin: 0; max-width: 24em; color: rgba(255,255,255,.75); }

/* video player */
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: var(--radius); background: #000; overflow: hidden; }
.lightbox::backdrop { background: rgba(8, 9, 14, 0.82); backdrop-filter: blur(8px); }
.lightbox video { width: 100%; max-height: 82vh; background: #000; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px 12px 18px; background: var(--card); }
.lightbox-bar b { font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.header.on-dark .pill-ink { background: #fff; color: var(--ink); }
.header.on-dark .pill-ink:hover { background: var(--blue); color: #fff; }

/* website walkthroughs as vertical reels */
.sub { margin: clamp(70px, 11vh, 120px) 0 22px; font-weight: 400; font-size: clamp(34px, 3.6vw, 64px); letter-spacing: -0.03em; line-height: 1; }
.sub[hidden] { display: none; }
.reels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 20px); }
@media (max-width: 1000px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reels .card-media { aspect-ratio: 9 / 16; }
.reels .card.portrait .card-media img, .reels .card.portrait .card-media video { object-fit: cover; }
.reels .card:hover .card-media img, .reels .card:hover .card-media video { transform: scale(1.04); }
.reels .card h3 { font-size: clamp(18px, 1.5vw, 26px); }
.reels .card p { display: none; }

/* interactive world in a browser window */
.world { grid-template-columns: 0.8fr 1.4fr; background: var(--night); color: #fff; padding: clamp(18px, 2vw, 30px); }
.world p { color: rgba(255,255,255,.72); }
.world .mono { color: rgba(255,255,255,.6) !important; }
.browser { border-radius: 14px; overflow: hidden; background: #1b1d25; box-shadow: 0 40px 80px -40px rgba(26,47,251,.55); }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #24262f; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4d59; }
.browser-bar span { flex: 1; margin-left: 10px; height: 24px; border-radius: 8px; background: #16171d; color: rgba(255,255,255,.6); font-family: var(--mono); font-size: 12px; display: flex; align-items: center; padding: 0 10px; overflow: hidden; white-space: nowrap; }
.browser-view { position: relative; aspect-ratio: 16 / 10; background: #0d0e12; }
.browser-view iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.browser.is-live .browser-view iframe { pointer-events: auto; }
.browser-cover { position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer; background: linear-gradient(180deg, rgba(11,12,16,0) 40%, rgba(11,12,16,.55)); transition: opacity .4s ease; }
.browser-cover .pill { background: #fff; color: var(--ink); }
.browser.is-live .browser-cover { opacity: 0; pointer-events: none; }

/* custom cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1), background .3s ease, opacity .3s ease; }
.cursor b { font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.cursor.is-big { width: 86px; height: 86px; margin: -43px 0 0 -43px; }
.cursor.is-big b { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(26,47,251,.25); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }

/* footer heart */
.footer .heart { color: #ff3b5c; display: inline-block; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* team photos framed on the face */
.member-photo img[alt="Roberto"] { object-position: 45% 30%; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 34%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11,12,16,.85), rgba(11,12,16,0)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 16%; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(11,12,16,.8), rgba(11,12,16,0)); }

/* hero title: large, bottom left, above the scroll line */
.hero-title { position: absolute; left: var(--pad); bottom: 84px; margin: 0; max-width: 11em; font-size: clamp(44px, 5.6vw, 104px); line-height: 0.98; letter-spacing: -0.035em; }
.hero::after { height: 42%; background: linear-gradient(0deg, rgba(11,12,16,.92), rgba(11,12,16,0)); }
.hero::before { height: 18%; }
.hero .crosses { position: absolute; left: var(--pad); right: var(--pad); bottom: 26px; }

/* reel: starts as a blue duotone, blurs while it grows, ends in full colour */
.reel-tint { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, #1a2ffb 0%, #6b4dff 60%, #1a2ffb 100%); mix-blend-mode: color; }
.reel-video video { will-change: filter, transform; }

/* project lists bend slightly with scroll speed, like flicking through a feed */
#films .card, .reels .card { will-change: transform; transform-origin: 50% 50%; }
#films .card-media img, #films .card-media video { scale: 1; }

/* walkthrough titles sit a little lower under the reels */
.reels .card-type { margin-top: 18px; }
.reels .card h3 { margin-top: 2px; }

/* the interactive world is live without a click */
.browser-cover { display: none; }
.browser.is-live .browser-view iframe, .browser:hover .browser-view iframe { pointer-events: auto; }

/* reel, full screen: PLAY ▶ REEL across the video and corner crosses */
.reel-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 3vw, 48px); color: #fff; pointer-events: none; opacity: 0; }
.reel-play span { font-size: clamp(56px, 10vw, 190px); font-weight: 400; letter-spacing: -0.04em; line-height: 1; }
.reel-play i { width: clamp(64px, 7vw, 110px); aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.reel-play i::after { content: ""; margin-left: 12%; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent var(--ink); }
.reel-x { position: absolute; color: #fff; font-size: 22px; line-height: 1; opacity: 0; pointer-events: none; }

/* selected work: cards tilt in from below like a feed and settle flat at the centre */
#films { perspective: 1400px; }
#films .card { transform-style: preserve-3d; }
#films.is-reels { grid-template-columns: repeat(4, minmax(0, 1fr)); perspective: none; }
@media (max-width: 1000px) { #films.is-reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { #films.is-reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#films.is-reels .card-media { aspect-ratio: 9 / 16; }
#films.is-reels .card-media img, #films.is-reels .card-media video { object-fit: cover; scale: 1; }
#films.is-reels .card .card-type { margin-top: 18px; }
#films.is-reels .card h3 { font-size: clamp(18px, 1.5vw, 26px); }
#films.is-reels .card p { display: none; }
.filters .pill.pill-walk { box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.filters .pill.pill-walk[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* own cursor only: hide the system arrow on mouse devices */
@media (hover: hover) { html.has-cursor, html.has-cursor * { cursor: none !important; } }

/* hero title back at the top, in the column where it used to sit */
.hero-title { position: absolute; left: calc(var(--pad) + 26%); top: 112px; bottom: auto; max-width: 13em; font-size: clamp(26px, 2.4vw, 42px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; }
.hero::before { height: 30%; background: linear-gradient(180deg, rgba(11,12,16,.9), rgba(11,12,16,0)); }
.hero::after { height: 16%; background: linear-gradient(0deg, rgba(11,12,16,.8), rgba(11,12,16,0)); }
@media (max-width: 760px) { .hero-title { left: var(--pad); } }

/* reel: title and text first, then the reel grows inside a framed stage below them (never over the title) */
.reel { height: auto; }
.reel-intro { padding: clamp(110px, 18vh, 200px) var(--pad) clamp(30px, 5vh, 60px); }
.reel-intro .reel-title { position: static; }
.reel-intro-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 90px); margin-top: clamp(30px, 5vh, 60px); }
.reel-intro .reel-text { position: static; width: auto; max-width: 26em; }
.reel-stage { position: relative; height: 230vh; }
.reel-stage .reel-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.reel-stage .crosses { position: absolute; left: var(--pad); right: var(--pad); color: var(--ink); opacity: 0; }
.reel-play i { width: auto; height: auto; aspect-ratio: auto; padding: 0.42em 0.95em; border-radius: 999px; font-size: clamp(22px, 2.6vw, 46px); }
.reel-play i::after { margin-left: 0; display: block; border-width: 0.32em 0 0.32em 0.5em; }
@media (max-width: 760px) { .reel-intro-row { grid-template-columns: 1fr; } }

/* selected work: hovering a card slides an arrow in front of the title */
.card h3::before { content: "→"; display: inline-block; width: 0; overflow: hidden; vertical-align: top; transition: width .45s cubic-bezier(.2,.7,.2,1), margin .45s cubic-bezier(.2,.7,.2,1); }
.card:hover h3::before { width: 1.05em; margin-right: 0.15em; }
#films .card-media { transform-origin: 50% 0; will-change: transform; }

/* reel stage: crosses above and below the frame; deeper blue duotone on the small preview */
.reel-stage .crosses.top { color: var(--ink); }
.reel-tint { background: #2333ff; mix-blend-mode: color; }
.reel-video video { filter: contrast(1.05); }

/* note cards are links now */
a.note { text-decoration: none; color: inherit; }

/* article pages */
.article-head { padding: 150px var(--pad) 70px; }
.article-back { display: inline-block; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 48px; }
.article-back:hover { color: #fff; }
.article-head .note-meta { color: rgba(255,255,255,.55); }
.article-head .note-meta b { color: #8f9bff; }
.article-head h1 { margin: 0; max-width: 16em; font-weight: 400; font-size: clamp(40px, 5.6vw, 96px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.article-for { margin: 28px 0 0; max-width: 34em; color: rgba(255,255,255,.7); font-size: clamp(16px, 1.3vw, 20px); }
.article-cover { margin: 0 var(--pad); transform: translateY(-1px); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: var(--night); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) var(--pad) 40px; font-size: clamp(17px, 1.2vw, 19px); line-height: 1.65; color: #24252e; }
.article-body > p:first-child { font-size: clamp(20px, 1.6vw, 25px); line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; }
.article-body h2 { margin: 2.2em 0 0.6em; font-weight: 500; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.article-body p { margin: 0 0 1.1em; }
.article-body strong { font-weight: 700; color: var(--ink); }
.article-body a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-body ol, .article-body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.article-body li { margin: 0 0 0.55em; padding-left: 0.3em; }
.article-body li::marker { color: var(--blue); font-family: var(--mono); font-size: 0.85em; }
.article-faq { margin-top: 3em; border-top: 1px solid var(--line); }
.article-faq details { border-bottom: 1px solid var(--line); }
.article-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1em; padding: 20px 0; font-weight: 500; color: var(--ink); }
.article-faq summary::-webkit-details-marker { display: none; }
.article-faq summary::after { content: '+'; font-family: var(--mono); color: var(--blue); transition: transform .3s ease; }
.article-faq details[open] summary::after { transform: rotate(45deg); }
.article-faq details p { margin: 0 0 22px; color: var(--muted); }
.article-author { display: flex; gap: 20px; align-items: flex-start; margin-top: 3.2em; padding: 24px; border-radius: 18px; background: var(--card); font-size: 15px; line-height: 1.5; }
.article-author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.article-author p { margin: 0 0 0.6em; color: var(--muted); }
.article-author p b { font-weight: 500; color: var(--ink); }
.article-cta { margin-top: 16px; padding: 32px; border-radius: 18px; background: var(--night); color: #fff; }
.article-cta p { margin: 0 0 22px; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.4; }
.article-more { padding-top: 40px; }
.article-more .notes-grid { grid-template-columns: repeat(3, 1fr); }
.article-more h2 { font-size: clamp(44px, 6vw, 96px); }
@media (max-width: 900px) { .article-more .notes-grid { grid-template-columns: 1fr; } .article-cover { aspect-ratio: 16 / 10; } }

/* while the cursor is over the interactive world, the page itself stays put */
html.scroll-locked, html.scroll-locked body { overflow: hidden; }
html { scrollbar-gutter: stable; }
