:root {
  --ink: #0b0b0b;
  --paper: #f2efe8;
  --acid: #d6ff3f;
  --purple: #8b5cf6;
  --red: #ff5a4f;
  --muted: #a8a8a2;
  --line: rgba(11, 11, 11, 0.18);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--acid); color: var(--ink); }

.mono { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 1000; background: var(--acid); padding: .8rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem clamp(1.2rem, 3vw, 3.25rem);
  background: rgba(242, 239, 232, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .8rem; letter-spacing: -.1em; }
.brand-mark span { color: var(--acid); }
nav { display: flex; gap: 2rem; }
nav a { font-size: .86rem; text-decoration: none; font-weight: 700; }
nav a:hover { text-decoration: underline; text-underline-offset: .35rem; }
.availability { justify-self: end; display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.availability span { width: .55rem; height: .55rem; border-radius: 50%; background: #57c84d; box-shadow: 0 0 0 .25rem rgba(87, 200, 77, .15); }

.hero { max-width: var(--max); min-height: calc(100svh - 73px); margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1.2rem, 3vw, 3.25rem) 0; display: flex; flex-direction: column; }
.hero-kicker { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: .8rem; }
.hero h1 { max-width: 1220px; margin: clamp(3rem, 7vw, 6.5rem) 0 3.5rem; font-size: clamp(3.55rem, 8.8vw, 9rem); letter-spacing: -.072em; line-height: .88; font-weight: 800; }
.hero h1 .accent { position: relative; z-index: 0; color: var(--ink); }
.hero h1 .accent::after { content: ""; position: absolute; left: -.02em; right: -.06em; bottom: .03em; height: .18em; background: var(--acid); z-index: -1; transform: rotate(-1deg); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-top: auto; padding-bottom: 3rem; }
.hero-bottom > p { max-width: 585px; margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.45; }
.hero-actions { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-width: 11.5rem; padding: .95rem 1.1rem; border: 1px solid var(--ink); text-decoration: none; font-size: .82rem; font-weight: 800; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 5px 5px 0 var(--ink); }
.button-primary { background: var(--acid); }
.button-ghost { background: transparent; }
.timeline { position: relative; margin: 0 calc(clamp(1.2rem, 3vw, 3.25rem) * -1); height: 98px; overflow: hidden; border-top: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.timeline-track { display: grid; grid-template-columns: 24% 43% 33%; height: 100%; padding: 12px 0 12px 7%; gap: 4px; }
.clip { display: flex; align-items: center; padding: 0 1rem; border: 1px solid rgba(255,255,255,.2); font: 500 .68rem "DM Mono", monospace; letter-spacing: .08em; color: var(--ink); }
.clip-a { background: var(--purple); }
.clip-b { background: var(--acid); }
.clip-c { background: var(--red); }
.playhead { position: absolute; top: 0; bottom: 0; left: 39%; width: 2px; background: white; }
.playhead span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 11px; height: 11px; background: white; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.timecode { position: absolute; top: 7px; left: .65rem; color: var(--acid); }

.ticker { overflow: hidden; border-block: 1px solid var(--ink); background: var(--acid); transform: rotate(-1deg) scale(1.02); }
.ticker-track { display: flex; align-items: center; width: max-content; padding: .8rem 0; animation: ticker 32s linear infinite; }
.ticker span { font-weight: 800; font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.ticker i { margin: 0 1.4rem; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(6rem, 11vw, 11rem) clamp(1.2rem, 3vw, 3.25rem); }
.section-heading { display: grid; grid-template-columns: 1.6fr .7fr; gap: 5rem; align-items: end; padding-bottom: 4rem; border-bottom: 1px solid var(--ink); }
.eyebrow { margin: 0 0 1.6rem; }
.section-heading h2, .about-lede { margin: 0; font-size: clamp(3rem, 6vw, 6.3rem); line-height: .95; letter-spacing: -.065em; }
.section-heading > p { max-width: 440px; margin: 0; font-size: 1.05rem; }
.section-heading > p a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: .2em; }

.project { display: grid; grid-template-columns: 1.45fr .75fr; gap: clamp(2rem, 5vw, 5rem); padding: 5rem 0; border-bottom: 1px solid var(--ink); }
.project-reverse { grid-template-columns: .75fr 1.45fr; }
.project-reverse .project-media { order: 2; }
.project-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #191919; border: 1px solid var(--ink); }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45)); pointer-events: none; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.project-media:hover img { transform: scale(1.035); filter: saturate(1.18); }
.project-number { position: absolute; z-index: 2; top: 1rem; left: 1rem; background: var(--acid); padding: .45rem .6rem; }
.play-button { position: absolute; z-index: 2; right: 1.1rem; bottom: 1.1rem; display: grid; place-items: center; width: 4.7rem; height: 4.7rem; border-radius: 50%; background: var(--acid); color: var(--ink); font-size: 1rem; transition: transform .25s ease; }
.project-media:hover .play-button { transform: scale(1.1) rotate(-5deg); }
.project-info { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2.5rem; }
.project-info h3 { margin: .8rem 0 0; font-size: clamp(2rem, 3.4vw, 3.8rem); line-height: 1; letter-spacing: -.05em; }
.project-info p { max-width: 420px; margin: 0; }
.project-info .mono { color: #5f5f5a; }
.text-link { display: inline-flex; gap: 1.5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--ink); text-decoration: none; font-weight: 800; }
.text-link:hover span { transform: translate(3px, -3px); }
.text-link span { transition: transform .2s ease; }

.about-section { background: var(--ink); color: var(--paper); max-width: none; }
.about-section > * { max-width: calc(var(--max) - 2 * clamp(1.2rem, 3vw, 3.25rem)); margin-inline: auto; }
.about-intro { display: grid; grid-template-columns: .65fr 1.6fr; gap: 5rem; align-items: start; padding-bottom: 5rem; border-bottom: 1px solid rgba(255,255,255,.28); }
.about-intro .eyebrow { color: var(--acid); }
.about-lede { max-width: 920px; }
.about-grid { display: grid; grid-template-columns: .65fr 1.6fr; gap: 5rem; padding-top: 5rem; }
.about-copy { font-size: clamp(1.05rem, 1.55vw, 1.35rem); }
.about-copy p:first-child { margin-top: 0; }
.about-copy p:last-child { color: var(--muted); }
.skill-stack { display: grid; }
.skill-card { display: grid; grid-template-columns: 4rem 1fr 1.2fr; gap: 2rem; align-items: baseline; padding: 1.7rem 0; border-top: 1px solid rgba(255,255,255,.28); }
.skill-card:last-child { border-bottom: 1px solid rgba(255,255,255,.28); }
.skill-card > span { color: var(--acid); }
.skill-card h3, .skill-card p { margin: 0; }
.skill-card h3 { font-size: 1.25rem; }
.skill-card p { color: var(--muted); }

.process-section .section-heading { grid-template-columns: 1fr 1fr; }
.process-list { list-style: none; margin: 0; padding: 2rem 0 0; }
.process-list li { display: grid; grid-template-columns: .25fr 1fr; border-bottom: 1px solid var(--ink); padding: 2.5rem 0; }
.process-list li > span { padding-top: .65rem; }
.process-list h3 { margin: 0; font-size: clamp(2rem, 4vw, 4.8rem); letter-spacing: -.055em; line-height: 1; }
.process-list p { max-width: 560px; margin: .7rem 0 0; color: #5f5f5a; }

.contact-section { background: var(--purple); color: var(--ink); padding: clamp(5rem, 10vw, 9rem) max(clamp(1.2rem, 3vw, 3.25rem), calc((100vw - var(--max)) / 2 + 3.25rem)) 2rem; }
.contact-top .eyebrow { margin-bottom: 3rem; }
.contact-top h2 { max-width: 1200px; margin: 0; font-size: clamp(3.3rem, 8vw, 8.5rem); line-height: .88; letter-spacing: -.07em; }
.contact-top h2 span { color: var(--acid); }
.contact-bottom { display: flex; align-items: end; justify-content: space-between; gap: 3rem; margin-top: 4.5rem; }
.contact-bottom p { max-width: 570px; margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); }
.contact-email { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.button-large { min-width: 18rem; padding: 1.25rem; }
.footer-line { display: flex; justify-content: space-between; gap: 2rem; margin-top: 7rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.footer-line a { text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-kicker span:last-child { display: none; }
  .hero-bottom, .contact-bottom { align-items: flex-start; flex-direction: column; }
  .hero-actions { justify-content: flex-start; }
  .section-heading, .about-intro, .about-grid, .process-section .section-heading { grid-template-columns: 1fr; gap: 2.5rem; }
  .project, .project-reverse { grid-template-columns: 1fr; }
  .project-reverse .project-media { order: 0; }
  .project-info { min-height: 360px; }
  .skill-card { grid-template-columns: 3rem 1fr; }
  .skill-card p { grid-column: 2; }
  .footer-line { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header { padding-block: .8rem; }
  .brand > span:last-child { display: none; }
  .hero { padding-top: 3rem; }
  .hero h1 { margin: 3.5rem 0 2.5rem; }
  .hero-bottom { padding-bottom: 2rem; }
  .hero-actions, .hero-actions .button { width: 100%; }
  .timeline { height: 76px; }
  .section { padding-block: 5.5rem; }
  .section-heading { padding-bottom: 2.7rem; }
  .project { padding-block: 3.2rem; }
  .project-info { min-height: 320px; }
  .play-button { width: 3.8rem; height: 3.8rem; }
  .process-list li { grid-template-columns: 1fr; gap: 1rem; }
  .contact-bottom .button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
