:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --line: #2a2a2e;
  --text: #f4f2f5;
  --muted: #a9a5ad;
  --pink: #ea3fd7;
  --lime: #c8f53c;
  --display: 'Clash Display', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Satoshi', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--lime); color: #000; padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; color: var(--pink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.brand svg { width: 16px; height: 16px; }
.nav { display: flex; align-items: center; gap: clamp(4px, 2vw, 24px); }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--muted); padding: 12px 6px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.nav .btn { padding: 10px 18px; color: #000; }
@media (max-width: 480px) { .nav a.hide-sm { display: none; } }
.nav a { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; background: var(--lime); color: #000; font-weight: 700; text-decoration: none; border: 0; font: 700 1rem var(--body); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.btn:hover { transform: translateY(-2px); background: #d9ff5c; }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: var(--surface); }

/* Hero */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(32px, 5vw, 64px); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 7rem); max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--pink); }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--muted); max-width: 52ch; margin: 28px 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.reel { margin-top: clamp(40px, 6vw, 72px); border-radius: 20px; overflow: hidden; background: var(--surface); aspect-ratio: 16 / 9; }
.reel video { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
section { padding: clamp(48px, 8vw, 112px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(24px, 4vw, 48px); padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 3.5rem); }
.section-head a { color: var(--pink); font-weight: 500; padding: 10px 0; }
.page-head { padding: clamp(40px, 7vw, 96px) 0 0; }
.page-head h1 { font-size: clamp(2.4rem, 7vw, 5.5rem); max-width: 16ch; }
.page-head .lede { margin-bottom: 0; }

/* Work grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.card { text-decoration: none; display: block; }
.card .thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; background: var(--surface); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover img { transform: scale(1.05); }
.card h3 { font-size: 1.35rem; margin: 16px 0 4px; letter-spacing: -0.02em; line-height: 1.15; }
.card:hover h3 { color: var(--pink); }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.services a, .services div { background: var(--bg); padding: 28px 24px 32px; text-decoration: none; display: block; transition: background 0.2s; }
.services a:hover { background: var(--surface); }
.services h3 { font-size: 1.4rem; margin-bottom: 12px; }
.services p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.services span { display: block; color: var(--pink); font-size: 0.85rem; margin-bottom: 28px; font-variant-numeric: tabular-nums; }

/* Clients */
.clients { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.clients li { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 2rem); letter-spacing: -0.02em; padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; }

/* CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2.2rem, 7vw, 5.5rem); margin: 0 auto 28px; max-width: 14ch; }
.cta h2 em { font-style: normal; color: var(--pink); }
.cta .actions { justify-content: center; }

/* Project page */
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { padding: 12px 0; display: inline-block; }
.project-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 64px) 0; }
@media (max-width: 800px) { .project-layout { grid-template-columns: 1fr; } }
.prose { max-width: 62ch; font-size: 1.125rem; }
.meta { margin: 0; display: grid; gap: 16px; align-content: start; }
.meta div { border-top: 1px solid var(--line); padding-top: 12px; }
.meta dt { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 4px 0 0; }
.meta a { color: var(--pink); }
.videos { display: grid; gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(32px, 5vw, 56px); }
.videos.multi { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.player { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface); width: 100%; padding: 0; border: 0; cursor: pointer; display: block; }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; transition: transform 0.2s; }
.player:hover .play { transform: scale(1.08); }
.player .play svg { width: 28px; height: 28px; margin-left: 4px; }
.frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.frames img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface); }
.sub { font-size: clamp(1.5rem, 3vw, 2.25rem); margin: clamp(40px, 6vw, 72px) 0 24px; }

/* About */
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; padding: clamp(32px, 5vw, 64px) 0; }
@media (max-width: 800px) { .about-layout { grid-template-columns: 1fr; } }
.about-layout img { border-radius: 18px; width: 100%; height: auto; background: var(--surface); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 8px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; } }
.timeline .years { color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }
.timeline h3 span { color: var(--pink); }
.timeline p { color: var(--muted); margin: 6px 0 0; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 5vw, 72px); padding: clamp(32px, 5vw, 64px) 0; }
.bigmail { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2.4rem); color: var(--pink); letter-spacing: -0.02em; word-break: break-word; display: inline-block; padding: 8px 0; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--muted); }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-height: 48px; width: 100%; }
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--pink); outline: none; }
.note { font-size: 0.85rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { padding: 12px 0; display: inline-block; }
.site-footer a:hover { color: var(--text); }

/* Motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card img, .btn, .player .play { transition: none; }
}

/* Small phones: keep the header on one line */
.brand, .nav .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .brand { font-size: 1rem; gap: 6px; }
  .nav { gap: 2px; }
  .nav a { padding: 12px 5px; font-size: 0.9rem; }
  .nav .btn { padding: 8px 14px; min-height: 44px; margin-left: 6px; }
}

.services div { cursor: default; }
.services div:hover { background: var(--bg); }
@media (max-width: 480px) { .nav a { padding: 12px 4px; font-size: 0.85rem; } .brand svg { display: none; } }

/* Articles */
.article a, .note a { color: var(--pink); }
.article .sub { margin: 48px 0 16px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

.timeline.awards li { grid-template-columns: 16rem 1fr; }
@media (max-width: 560px) { .timeline.awards li { grid-template-columns: 1fr; } }
