:root {
  --bg: #0a0a0b;
  --bg-2: #141416;
  --line: rgba(242, 240, 235, .12);
  --text: #f2f0eb;
  --muted: #9a968f;
  --accent: #ff5a36;
  --ok: #3ddc84;
  --pad: clamp(20px, 4vw, 56px);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px var(--pad); transition: background .3s, backdrop-filter .3s; }
.site-header.solid { background: rgba(10, 10, 11, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 650; letter-spacing: -.01em; font-size: 18px; }
.brand span { color: var(--muted); font-weight: 400; margin-left: 10px; font-size: 14px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.status { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; color: var(--text) !important; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
.menu-btn { display: none; }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero video, .hero .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,10,11,.72) 0%, rgba(10,10,11,.25) 55%, rgba(10,10,11,0) 80%), linear-gradient(180deg, rgba(10,10,11,.55) 0%, rgba(10,10,11,0) 26%, rgba(10,10,11,.35) 60%, rgba(10,10,11,.97) 100%); }
.hero-inner { width: 100%; padding: 0 var(--pad) clamp(36px, 7vh, 72px); }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero .eyebrow { color: rgba(242, 240, 235, .78); }
h1, .h1 { font-size: clamp(44px, 8.2vw, 132px); line-height: .94; letter-spacing: -.045em; font-weight: 650; max-width: 12ch; }
.hero p.lead { margin-top: 22px; max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: rgba(242, 240, 235, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; padding: 14px 24px; font-weight: 550; font-size: 16px; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-ghost { border: 1px solid rgba(242, 240, 235, .35); }
.btn-ghost:hover { background: rgba(242, 240, 235, .08); }
.play-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.play-dot::after { content: ""; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; margin-left: 2px; }
.hero-meta { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-top: clamp(36px, 6vh, 64px); padding-top: 18px; border-top: 1px solid rgba(242, 240, 235, .18); font-size: 14px; color: rgba(242, 240, 235, .7); }

/* Sections */
section { padding: clamp(72px, 11vw, 150px) var(--pad); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
h2 { font-size: clamp(34px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; font-weight: 650; }
.link-arrow { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.link-arrow:hover { color: var(--text); border-color: var(--text); }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.2vw, 32px) clamp(14px, 1.8vw, 24px); }
.card { grid-column: span 4; }
.card.big { grid-column: span 6; }
.card a { display: block; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.frame img, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.frame video { opacity: 0; }
.card.playing .frame video { opacity: 1; }
.card a:hover .frame img, .card a:hover .frame video { transform: scale(1.035); }
.cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.cap h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.cap p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cap .tag { color: var(--muted); font-size: 13px; white-space: nowrap; padding-top: 3px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 var(--pad); }
.stat { padding: clamp(28px, 4vw, 52px) 0; border-right: 1px solid var(--line); padding-right: 24px; }
.stat + .stat { padding-left: clamp(18px, 3vw, 40px); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 76px); font-weight: 650; letter-spacing: -.045em; line-height: 1; }
.stat span { display: block; color: var(--muted); margin-top: 12px; max-width: 28ch; }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cap-item { background: var(--bg); padding: clamp(24px, 2.6vw, 36px); min-height: 260px; display: flex; flex-direction: column; }
.cap-item .num { color: var(--accent); font-size: 14px; font-weight: 600; }
.cap-item h3 { font-size: 23px; letter-spacing: -.02em; font-weight: 600; margin: 40px 0 10px; }
.cap-item p { color: var(--muted); font-size: 15.5px; }
.cap-item .tools { margin-top: auto; padding-top: 22px; font-size: 13px; color: rgba(242, 240, 235, .62); }

/* Credits strip */
.credits { display: grid; grid-template-columns: 1fr 2fr; gap: 24px 48px; padding-top: 0; }
.credits h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding-top: 10px; }
.credits ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: clamp(22px, 2.6vw, 36px); letter-spacing: -.03em; font-weight: 550; }
.credits ul li { color: rgba(242, 240, 235, .9); }
.credits .row { display: contents; }
.credits .row + .row h3, .credits .row + .row ul { border-top: 1px solid var(--line); padding-top: 26px; }

/* About teaser */
.about-teaser { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.portrait { border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--bg-2); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.about-teaser p.big { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.02em; }
.about-teaser p.big em { font-style: normal; color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); text-align: left; }
.contact .h1 { max-width: 14ch; }
.contact .mail { display: inline-block; margin-top: 34px; font-size: clamp(24px, 3.6vw, 52px); letter-spacing: -.03em; font-weight: 550; border-bottom: 2px solid var(--accent); padding-bottom: 4px; word-break: break-all; }
.contact .row-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.copy-status { color: var(--ok); font-size: 14px; margin-left: 6px; min-height: 1em; display: inline-block; }

/* Footer */
.site-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad) 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

/* Reel modal */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(5, 5, 6, .94); display: none; align-items: center; justify-content: center; padding: var(--pad); }
.modal.open { display: flex; }
.modal video { width: min(1400px, 100%); max-height: 86vh; border-radius: 6px; background: #000; }
.modal .close { position: absolute; top: 18px; right: var(--pad); font-size: 15px; border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; }

/* Project page */
.page-top { padding-top: clamp(110px, 14vw, 170px); padding-bottom: clamp(28px, 4vw, 48px); }
.back { color: var(--muted); font-size: 15px; display: inline-block; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.project-title { font-size: clamp(42px, 7vw, 110px); line-height: .95; letter-spacing: -.045em; font-weight: 650; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.meta dt { color: var(--muted); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.meta dd { margin-top: 6px; font-size: 16.5px; }
.player-wrap { padding: 0 var(--pad); }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player button { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45)); }
.player button span { display: inline-flex; align-items: center; gap: 12px; background: var(--text); color: var(--bg); border-radius: 99px; padding: 16px 26px; font-weight: 600; }
.project-body { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(28px, 5vw, 80px); padding-top: clamp(48px, 6vw, 90px); }
.project-body p { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; letter-spacing: -.01em; }
.project-body .note { color: var(--muted); font-size: 15px; margin-top: 18px; }
.next { display: block; border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 100px) var(--pad); }
.next .eyebrow { margin-bottom: 10px; }
.next strong { font-size: clamp(34px, 5.5vw, 84px); letter-spacing: -.045em; font-weight: 650; line-height: 1; transition: color .2s; }
.next:hover strong { color: var(--accent); }

/* Archive */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.list { list-style: none; border-top: 1px solid var(--line); }
.list li a { display: grid; grid-template-columns: 112px 1fr auto auto; gap: 22px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); transition: background .2s; }
.list li a:hover { background: rgba(242, 240, 235, .03); }
.list img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--bg-2); }
.list .t { font-size: 18px; font-weight: 550; letter-spacing: -.01em; }
.list .c, .list .d { color: var(--muted); font-size: 14px; }
.list .d { min-width: 56px; text-align: right; }

/* About page */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(28px, 5vw, 90px); }
.prose p { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; margin-bottom: 20px; }
.prose p.small { font-size: 15px; color: var(--muted); }
.timeline { list-style: none; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 15px; padding-top: 2px; }
.timeline b { font-weight: 600; font-size: 18px; }
.timeline p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.tools-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tools-list h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1000px) {
  .card, .card.big { grid-column: span 6; }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .credits { grid-template-columns: 1fr; }
  .credits .row + .row h3 { border-top: 0; padding-top: 0; }
  .project-body, .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand span { display: none; }
  .menu-btn { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; }
  .nav { position: fixed; inset: 64px 12px auto; flex-direction: column; align-items: stretch; gap: 0; background: rgba(20, 20, 22, .97); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 18px; color: var(--text); }
  .status { justify-content: center; margin-top: 6px; }
  .card, .card.big { grid-column: span 12; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-left: 0 !important; }
  .stat:last-child { border-bottom: 0; }
  .caps { grid-template-columns: 1fr; }
  .cap-item { min-height: 0; }
  .about-teaser { grid-template-columns: 1fr; }
  .portrait { max-width: 260px; }
  .list li a { grid-template-columns: 84px 1fr; }
  .list img { width: 84px; }
  .list .c, .list .d { grid-column: 2; text-align: left; margin-top: -14px; }
  .list .d { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .tools-list { grid-template-columns: 1fr; }
}
