/* ==========================================================================
   Leandro Balladas — portfolio
   Colors, fonts and spacing live in the :root block below.
   ========================================================================== */

@font-face { font-family: 'Inter Tight'; src: url('../fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-latin-400-italic.woff2') format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #141416;
  --fg: #efeae0;
  --muted: #8d8a84;
  --line: rgba(239, 234, 224, .14);
  --accent: #ff4b2b;

  --font-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --pad: clamp(20px, 3.4vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { color-scheme: dark; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; padding: 0; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: #000; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Lenis (smooth scroll) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }

html.is-loading, html.is-loading body, html.is-project, html.is-project body { overflow: hidden; }

/* ---------- Utilities ---------- */
.mono { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.display { font-size: clamp(2.6rem, 8.5vw, 8.5rem); font-weight: 600; line-height: .92; letter-spacing: -.05em; }
.section { padding: clamp(80px, 12vw, 180px) var(--pad); position: relative; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 6px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Word-mask reveal (see splitWords in render.js) */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .1em .1em .04em; margin: -.06em -.1em -.1em -.04em; }
.mw__in { display: inline-block; will-change: transform; }
/* Hidden until GSAP positions them (see motion.js), so there is no flash of unstyled content */
.motion [data-split] .mw__in, .motion [data-hero-title] .mw__in { opacity: 0; }
.motion [data-reveal] { opacity: 0; }

/* ---------- Overlays: grain, progress, cursor, toast ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 -.1'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor, .hover-preview { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--fg); mix-blend-mode: difference;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .25s, opacity .3s; opacity: 0;
  }
  .cursor.is-on { opacity: 1; }
  .cursor[data-state='link'] { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .cursor[data-state='view'], .cursor[data-state='play'] {
    width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); mix-blend-mode: normal;
  }
  .cursor__label { font: 600 .68rem/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
  .cursor[data-state='view'] .cursor__label, .cursor[data-state='play'] .cursor__label { opacity: 1; }

  .hover-preview {
    display: block; position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none; opacity: 0;
    width: clamp(260px, 24vw, 420px); aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
  }
  .hover-preview img { width: 100%; height: 100%; object-fit: cover; }
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 500; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 999px; transition: .4s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Preloader ---------- */
.preloader { display: none; position: fixed; inset: 0; z-index: 600; background: var(--bg); place-items: center; align-content: center; gap: 18px; text-align: center; }
html.is-loading .preloader { display: grid; }
.preloader__tc { font: 500 clamp(2.4rem, 9vw, 7rem)/1 var(--font-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.preloader__name { font: .8rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preloader__bar { width: min(320px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad); color: var(--fg); transition: background .4s, backdrop-filter .4s, padding .4s var(--ease);
}
.nav.is-solid { background: rgba(11, 11, 12, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.nav__brand { font-weight: 600; letter-spacing: -.02em; justify-self: start; }
.nav__brand-short { display: none; }
.nav__tc { font-variant-numeric: tabular-nums; opacity: .85; }
.nav__right { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); justify-self: end; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 34px); }
.lang { display: inline-flex; align-items: center; gap: 4px; padding-left: clamp(12px, 1.6vw, 22px); border-left: 1px solid var(--line); font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; }
.lang button { padding: 6px 3px; opacity: .45; transition: opacity .3s; }
.lang button:hover, .lang button[aria-pressed='true'] { opacity: 1; }
.lang button[aria-pressed='true'] { box-shadow: 0 1px 0 var(--accent); }
.lang span { opacity: .3; }
.nav__links a { position: relative; padding-block: 4px; }
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; }
.hero__inner {
  position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px var(--pad) var(--pad); gap: clamp(28px, 5vw, 64px);
}
.hero__title { font-size: clamp(4rem, 17.5vw, 19rem); line-height: .84; letter-spacing: -.065em; font-weight: 600; margin-left: -.04em; }
.hero__title .line { display: block; }
.hero__title .line:nth-child(2) { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.045em; font-size: 1.04em; padding-left: .5em; }
.hero__foot { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 24px 48px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero__tagline { font-size: clamp(1.15rem, 2vw, 1.9rem); line-height: 1.12; letter-spacing: -.02em; }
.hero__tagline { max-width: 30ch; }
.hero__tagline em { font-size: 1.12em; color: var(--accent); white-space: nowrap; }
.hero__meta { color: var(--muted); text-align: right; line-height: 1.7; }
.hero__scroll { display: inline-flex; gap: 10px; align-items: center; }
.hero__scroll span { display: inline-block; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.wall {
  position: absolute; inset: -14% -12%; z-index: -2; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  transform: rotate(-6deg); opacity: .5;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(110% 80% at 25% 80%, rgba(11, 11, 12, .1), rgba(11, 11, 12, .82) 75%),
    linear-gradient(to top, var(--bg) 0%, transparent 38%);
}
.wall__row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.wall__row img { height: 28svh; width: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; flex: none; filter: saturate(.9) contrast(1.05); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: clamp(18px, 2.6vw, 34px) 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item { font-size: clamp(2.2rem, 7vw, 6.5rem); font-weight: 600; letter-spacing: -.045em; text-transform: uppercase; line-height: 1; padding-inline: .3em; white-space: nowrap; }
.marquee__item.is-outline { color: transparent; -webkit-text-stroke: 1.3px var(--fg); }
.marquee__dot { width: clamp(10px, 1.4vw, 20px); height: clamp(10px, 1.4vw, 20px); border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Work ---------- */
.work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.count { font-size: .9rem; vertical-align: top; color: var(--accent); margin-left: .4em; letter-spacing: .04em; font-weight: 500; position: relative; top: .35em; }
.work__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.filters, .views { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .view-btn {
  font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: .85em 1.15em; border: 1px solid var(--line); border-radius: 999px; transition: background .3s, color .3s, border-color .3s;
}
.chip:hover, .view-btn:hover { border-color: var(--fg); }
.chip[aria-pressed='true'], .view-btn[aria-pressed='true'] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.views { padding-left: 20px; border-left: 1px solid var(--line); }

.plist { margin-top: clamp(32px, 5vw, 64px); border-top: 1px solid var(--line); }
.prow[hidden], .pcard[hidden] { display: none; }
.prow a {
  display: grid; grid-template-columns: 3rem minmax(0, 5.4fr) minmax(0, 2.8fr) minmax(0, 2fr) 4rem; align-items: center; gap: 20px;
  padding: clamp(18px, 2.2vw, 30px) 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), opacity .35s, background .35s;
}
.prow__thumb { display: none; }
.prow__title { font-size: clamp(1.6rem, 3.7vw, 3.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.prow__fmt { font-size: .92rem; line-height: 1.3; color: var(--fg); }
.prow__fmt em { display: block; color: var(--muted); font-size: 1.15em; }
.prow__role { color: var(--muted); }
.prow__idx, .prow__year { color: var(--muted); }
.prow__year { text-align: right; }
@media (hover: hover) {
  .plist:has(a:hover) .prow a:not(:hover) { opacity: .3; }
  .prow a:hover { padding-left: clamp(8px, 1.6vw, 24px); }
  .prow a:hover .prow__title { color: var(--accent); }
}

.pgrid { margin-top: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3.4vw, 56px) clamp(16px, 2vw, 32px); }
.pgrid[hidden], .plist[hidden] { display: none; }
@media (min-width: 981px) { .pgrid .pcard:nth-child(3n + 2) { margin-top: clamp(40px, 6vw, 96px); } }
.pcard a { display: block; }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--bg-2); position: relative; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.pcard a:hover .pcard__media img { transform: scale(1.06); }
.pcard__info { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; }
.pcard__title { font-size: clamp(1.15rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.pcard__sub { color: var(--muted); margin-top: 4px; }
.pcard__year { color: var(--muted); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 6fr); gap: var(--pad); border-top: 1px solid var(--line); }
.about__label { color: var(--muted); position: sticky; top: 96px; align-self: start; }
.statement { font-size: clamp(1.8rem, 4.6vw, 4.6rem); font-weight: 500; line-height: 1.04; letter-spacing: -.045em; }
.statement .w { display: inline-block; margin-right: .22em; }
.motion .statement .w { opacity: .14; }
.about__cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 96px); margin-top: clamp(48px, 7vw, 110px); }
.about__text p { color: #cfcac0; max-width: 56ch; }
.about__text p + p { margin-top: 1.1em; }
.stats { display: grid; gap: 0; align-content: start; }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0; }
.stat:last-child { border-bottom: 1px solid var(--line); }
.stat dt { color: var(--muted); }
.stat dd { font-size: clamp(2.2rem, 4.2vw, 4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.subhead { margin: clamp(64px, 9vw, 140px) 0 20px; color: var(--muted); }

.services { counter-reset: s; border-top: 1px solid var(--line); }
.service { display: grid; grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: baseline; padding: clamp(20px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s; }
.service__n { color: var(--muted); }
.service__t { font-size: clamp(1.4rem, 2.8vw, 2.6rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.service__d { color: #b9b4a9; max-width: 52ch; }
@media (hover: hover) { .service:hover { padding-left: 16px; } .service:hover .service__t { color: var(--accent); } }

.edu { border-top: 1px solid var(--line); }
.edu__row { display: grid; grid-template-columns: 5rem minmax(0, 5fr) minmax(0, 6fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.edu__y { color: var(--muted); }
.edu__t { font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.edu__p { color: var(--muted); margin-top: 4px; }
.edu__d { color: #b9b4a9; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact { border-top: 1px solid var(--line); overflow: hidden; }
.contact__kicker { color: var(--muted); margin-bottom: 28px; }
.contact__title { max-width: 12ch; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: clamp(40px, 7vw, 110px); }
.contact__mail {
  font-size: clamp(1.3rem, 6.4vw, 6.4rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.05; position: relative; display: inline-block; cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 .06em no-repeat; transition: background-size .6s var(--ease), color .3s;
}
.contact__mail:hover { background-size: 100% .06em; }
.copy { border: 1px solid var(--line); border-radius: 999px; padding: 1em 1.5em; font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.copy:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.social { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(32px, 5vw, 64px); }
.social a { border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.social a:hover { color: var(--accent); border-color: var(--accent); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px var(--pad); border-top: 1px solid var(--line); color: var(--muted); }
.footer a:hover { color: var(--fg); }

/* ---------- Project overlay ---------- */
.project { position: fixed; inset: 0; z-index: 200; background: var(--bg); }
.project[hidden] { display: none; }
.project__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad); pointer-events: none;
}
.project__bar > * { pointer-events: auto; }
.project__nav { display: flex; gap: 8px; }
.pbtn, .project__count { display: inline-flex; align-items: center; gap: 10px; font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 1em 1.3em; border: 1px solid rgba(239, 234, 224, .28); border-radius: 999px; background: rgba(11, 11, 12, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .3s, color .3s; }
.pbtn:hover { background: var(--fg); color: var(--bg); }
.project__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #333 transparent; }

.phero { position: relative; height: min(94svh, 1000px); min-height: 520px; overflow: hidden; display: flex; align-items: flex-end; padding: 0 var(--pad) clamp(28px, 4vw, 56px); isolation: isolate; }
.phero__media { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--bg) 0%, rgba(11, 11, 12, .72) 34%, rgba(11, 11, 12, .2) 68%, rgba(11, 11, 12, .45) 100%); }
.phero__text { max-width: 100%; }
.phero__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.phero__kicker::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.phero__title { font-size: clamp(2.6rem, 9.5vw, 10rem); line-height: .9; letter-spacing: -.055em; font-weight: 600; max-width: 14ch; text-wrap: balance; }

.pmeta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px 24px; padding: 28px var(--pad); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.pmeta dt { color: var(--muted); margin-bottom: 6px; }
.pmeta dd { font-size: 1.02rem; line-height: 1.3; }

.pbody { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 6fr); gap: var(--pad); padding: clamp(48px, 8vw, 120px) var(--pad); }
.pbody__label { color: var(--muted); }
.lead { font-size: clamp(1.15rem, 1.9vw, 1.75rem); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; max-width: 42ch; }
.pbody__text p + p { margin-top: 1.1em; }
.pbody__text p:not(.lead) { color: #cfcac0; max-width: 62ch; }
.pbody__text a { border-bottom: 1px solid currentColor; }
.hl { margin-top: 28px; border-top: 1px solid var(--line); max-width: 78ch; }
.hl__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hl__l { font-weight: 500; }
.hl__t { color: #b9b4a9; }
.linkrow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: .85em 1.2em; font: 500 .72rem/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; transition: .3s; }
.pill:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.pvideos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); padding: 0 var(--pad) clamp(56px, 8vw, 120px); }
.pvideos.is-single { grid-template-columns: 1fr; }
.vid { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; }
.vid img { width: 100%; height: 100%; object-fit: cover; opacity: .86; transition: transform 1s var(--ease), opacity .4s; }
.vid:hover img { transform: scale(1.04); opacity: 1; }
.vid__play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: transform .4s var(--ease); }
.vid__play::before { content: ''; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #000; margin-left: 4px; }
.vid:hover .vid__play { transform: scale(1.12); }
.vid__cap { position: absolute; left: 16px; bottom: 14px; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid--link img { filter: blur(6px) saturate(.8); transform: scale(1.1); }
.vid--link span.vid__link { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -.02em; }

.pnext { display: block; position: relative; overflow: hidden; padding: clamp(64px, 11vw, 160px) var(--pad); border-top: 1px solid var(--line); isolation: isolate; }
.pnext__bg { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease); }
.pnext__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); }
.pnext:hover .pnext__bg { opacity: 1; }
.pnext__k { color: var(--muted); margin-bottom: 14px; }
.pnext__t { font-size: clamp(2.2rem, 8vw, 8rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; }
.pnext__m { margin-top: 18px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__label { position: static; }
  .about__cols { grid-template-columns: 1fr; }
  .pbody { grid-template-columns: 1fr; gap: 20px; }
  .prow a { grid-template-columns: 2.4rem minmax(0, 4fr) minmax(0, 3fr) 3rem; }
  .prow__role { display: none; }
}

@media (max-width: 720px) {
  .nav__tc { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .hero__foot { grid-template-columns: 1fr; gap: 14px; }
  .hero__meta { text-align: left; }
  .hero__scroll { display: none; }
  .hero__title .line:nth-child(2) { padding-left: .25em; }
  .wall__row img { height: 24svh; }
  .wall { opacity: .42; }
  .hero__title { font-size: clamp(4rem, 23vw, 9rem); }

  .work__controls { width: 100%; }
  .views { padding-left: 0; border-left: 0; }

  .prow a { grid-template-columns: 78px minmax(0, 1fr) auto; grid-template-areas: 'thumb title year' 'thumb fmt fmt'; gap: 2px 14px; padding: 14px 0; }
  .prow__idx { display: none; }
  .prow__thumb { display: block; grid-area: thumb; grid-row: 1 / span 2; }
  .prow__thumb img { width: 78px; height: 58px; object-fit: cover; border-radius: 4px; }
  .prow__title { grid-area: title; font-size: 1.35rem; align-self: end; }
  .prow__year { grid-area: year; align-self: end; }
  .prow__fmt { grid-area: fmt; font-size: .78rem; color: var(--muted); align-self: start; }
  .prow__fmt em { display: inline; font-size: 1em; }
  .prow__fmt em::before { content: ' · '; }

  .pgrid { grid-template-columns: 1fr; }
  .service, .edu__row { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .service__d, .edu__d { grid-column: 2; }
  .edu__row { grid-template-columns: 4rem minmax(0, 1fr); }
  .hl__row { grid-template-columns: 1fr; gap: 4px; }
  .phero { height: 64svh; min-height: 420px; }
  .pmeta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project__bar .pbtn span { display: none; }
  .project__count { display: none; }
  .footer__mid { display: none; }
}

@media (max-width: 520px) {
  .nav__brand-full { display: none; }
  .nav__brand-short { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .hero__scroll span { animation: none; }
  * { scroll-behavior: auto !important; }
}
