:root {
  --ink: #111111;
  --paper: #f3f0e9;
  --line: rgba(17, 17, 17, 0.22);
  --acid: #d8ff36;
  --coral: #ff5a3d;
  --violet: #9181ff;
  --sky: #68dff4;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 1rem;
  padding: 0.8rem 1rem;
  background: var(--acid);
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #355cff;
  outline-offset: 4px;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.wordmark, .site-header nav a, .status { text-decoration: none; }
.wordmark { display: flex; align-items: center; gap: 0.65rem; }
.wordmark-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.site-header nav { display: flex; gap: clamp(1rem, 4vw, 3.5rem); }
.site-header nav a { transition: opacity 160ms ease; }
.site-header nav a:hover { opacity: 0.5; }
.status { justify-self: end; display: flex; align-items: center; gap: 0.55rem; }
.status span { width: 8px; height: 8px; border-radius: 50%; background: #2bbd63; box-shadow: 0 0 0 5px rgba(43, 189, 99, 0.12); }

.hero {
  min-height: calc(100svh - 72px);
  padding: clamp(2.5rem, 6vw, 6rem) var(--pad) 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hero-kicker { display: flex; justify-content: space-between; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.hero h1 {
  margin: auto 0;
  max-width: 13ch;
  font-size: clamp(3.1rem, 8.2vw, 8.7rem);
  line-height: 0.87;
  letter-spacing: -0.065em;
  font-weight: 800;
  text-transform: uppercase;
}
.hero h1 em { color: var(--coral); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-transform: none; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 34rem) auto; justify-content: space-between; align-items: end; gap: 2rem; }
.hero-bottom p { margin: 0; font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.35; }
.round-link {
  width: 76px;
  height: 76px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 180ms ease, transform 180ms ease;
}
.round-link:hover { background: var(--acid); transform: translateY(4px); }
.round-link svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.timeline {
  position: relative;
  height: 56px;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 40px 41px);
}
.track { position: absolute; height: 7px; top: 9px; border-radius: 2px; }
.track-one { left: 2%; width: 31%; background: var(--coral); }
.track-two { left: 34%; width: 42%; background: var(--violet); top: 23px; }
.track-three { left: 63%; width: 24%; background: var(--acid); top: 37px; }
.playhead { position: absolute; left: 48%; top: -7px; width: 1px; height: 68px; background: var(--ink); }
.playhead::before { content: ''; position: absolute; top: 0; left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid var(--ink); }

.work-section, .about-section, .skills-section { padding: clamp(5rem, 10vw, 9rem) var(--pad); }
.work-section { color: #fff; background: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1fr minmax(16rem, 26rem); gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-heading h2, .about-grid h2, .contact-section h2 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 1.25rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; }
.section-note { margin: 0; max-width: 31rem; font-size: 1rem; line-height: 1.55; opacity: 0.68; }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.8rem); align-items: start; }
.work-card {
  position: relative;
  display: block;
  min-height: 30rem;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #252525;
  border: 0;
  border-radius: 3px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
.card-wide { grid-column: span 7; aspect-ratio: 1.35; }
.card-tall { grid-column: span 5; aspect-ratio: 0.82; }
.card-square { grid-column: span 6; aspect-ratio: 1; }
.work-card:nth-child(5), .work-card:nth-child(9) { grid-column: span 7; }
.work-card:nth-child(6) { grid-column: span 5; }
.work-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 42%, rgba(0,0,0,0.82) 100%); }
.work-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(.2,.7,.2,1), filter 250ms ease; }
.work-card:hover img { transform: scale(1.035); filter: saturate(1.08); }
.card-index { position: absolute; top: 1.2rem; left: 1.2rem; padding: 0.35rem 0.5rem; background: rgba(17,17,17,0.72); font-size: 0.72rem; font-weight: 700; z-index: 3; }
.card-meta { position: absolute; right: 5.5rem; bottom: 1.25rem; left: 1.25rem; display: grid; gap: 0.35rem; z-index: 3; }
.card-meta b { font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.08; }
.card-meta small { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.78; }
.play {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.78rem;
  z-index: 3;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.work-card:hover .play { color: var(--ink); background: #fff; transform: scale(1.08); }
.visual { position: absolute; inset: 0; display: grid; place-items: center; transition: transform 450ms cubic-bezier(.2,.7,.2,1); }
.work-card:hover .visual { transform: scale(1.04); }
.visual-rings i { position: absolute; width: 55%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; }
.visual-rings i:nth-child(2) { width: 35%; }
.visual-rings i:nth-child(3) { width: 15%; background: var(--ink); }
.visual-type { align-content: center; justify-items: center; font-size: clamp(3rem, 6vw, 6rem); line-height: 0.72; font-weight: 900; letter-spacing: -0.08em; }
.visual-frame::before, .visual-frame::after { content: ''; position: absolute; width: 34%; height: 56%; border: 2px solid var(--ink); background: rgba(255,255,255,0.12); }
.visual-frame::before { transform: translate(-24%, -8%) rotate(-7deg); }
.visual-frame::after { transform: translate(24%, 8%) rotate(7deg); }
.visual-frame i { z-index: 1; padding: 0.4rem 0.6rem; color: #fff; background: var(--ink); font-style: normal; font-size: 0.72rem; }
.visual-wave { display: flex; align-items: center; justify-content: center; gap: 2.5%; }
.visual-wave i { display: block; width: 3%; height: 18%; background: var(--ink); }
.visual-wave i:nth-child(2), .visual-wave i:nth-child(6) { height: 35%; }
.visual-wave i:nth-child(3), .visual-wave i:nth-child(5) { height: 52%; }
.visual-wave i:nth-child(4) { height: 72%; }
.visual-crop i { width: 27%; height: 62%; border: 3px solid var(--ink); box-shadow: 18px 18px 0 var(--coral); }
.visual-crop b { position: absolute; font-size: clamp(4rem, 8vw, 8rem); opacity: 0.1; }
.visual-counter { font-size: clamp(8rem, 18vw, 18rem); line-height: 0.65; font-weight: 900; letter-spacing: -0.1em; text-align: center; }
.visual-counter small { font-size: 0.12em; letter-spacing: 0.2em; }
.visual-caption { align-content: center; gap: 0.35rem; }
.visual-caption i { padding: 0.25rem 0.55rem; color: #fff; background: var(--ink); font-size: clamp(1.3rem, 3vw, 3rem); font-weight: 800; font-style: normal; }
.visual-caption i:nth-child(2) { transform: rotate(-3deg); background: #fff; color: var(--ink); }
.visual-bars { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.visual-bars i { width: 9%; height: 20%; background: var(--ink); transform: skewX(-12deg); }
.visual-bars i:nth-child(2), .visual-bars i:nth-child(4) { height: 50%; }
.visual-bars i:nth-child(3) { height: 72%; background: var(--acid); }
.visual-end { text-align: center; align-content: center; gap: 2rem; }
.visual-end i { font-style: normal; font-size: clamp(4rem, 9vw, 9rem); font-weight: 900; line-height: 0.72; letter-spacing: -0.08em; }
.visual-end b { font-size: 0.72rem; letter-spacing: 0.2em; }

.about-section { border-bottom: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(3rem, 10vw, 10rem); align-items: start; }
.about-copy { padding-top: 0.6rem; }
.about-copy p { margin: 0 0 1.6rem; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.5; }

.section-heading.compact { margin-bottom: 4rem; }
.skills-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.skills-list li { display: grid; grid-template-columns: 5rem 0.8fr 1.2fr; gap: 2rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.skills-list li span { font-size: 0.72rem; opacity: 0.48; }
.skills-list li b { font-size: clamp(1.2rem, 2vw, 1.8rem); }
.skills-list li small { max-width: 36rem; font-size: 0.95rem; line-height: 1.45; opacity: 0.66; }

.contact-section { padding: clamp(5rem, 11vw, 10rem) var(--pad); color: #fff; background: #315cff; }
.contact-section h2 { max-width: 14ch; font-size: clamp(4rem, 10vw, 10rem); }
.contact-section > p:not(.eyebrow) { max-width: 34rem; margin: 2.5rem 0 4rem; font-size: 1.15rem; line-height: 1.5; opacity: 0.75; }
.contact-link { display: flex; justify-content: space-between; align-items: center; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.5); font-size: clamp(1.2rem, 3vw, 2.2rem); text-decoration: none; }
.contact-link span { transition: transform 180ms ease; }
.contact-link:hover span { transform: translate(6px, -6px); }
.contact-actions { display: grid; }

.player-dialog {
  width: min(92vw, 1100px);
  max-width: none;
  padding: 0;
  color: #fff;
  background: var(--ink);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 4px;
}
.player-dialog::backdrop { background: rgba(0,0,0,0.84); backdrop-filter: blur(8px); }
.player-shell { position: relative; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.8fr); }
.player-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; padding: 0.65rem 0.8rem; color: #fff; background: rgba(17,17,17,0.78); border: 1px solid rgba(255,255,255,0.5); border-radius: 2px; font: inherit; font-weight: 700; cursor: pointer; }
.player-close span { padding-left: 0.35rem; font-size: 1.25em; }
.player-frame { min-height: min(72vh, 720px); display: grid; place-items: center; background: #000; }
.player-frame video { display: block; width: 100%; max-height: min(72vh, 720px); object-fit: contain; background: #000; }
.player-copy { align-self: end; padding: clamp(2rem, 4vw, 3.5rem); }
.player-copy h2 { margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 0.95; letter-spacing: -0.05em; text-transform: uppercase; }
.player-copy > p:last-child { margin: 0; line-height: 1.55; opacity: 0.7; }
.player-format { margin: 0 0 1rem; color: var(--acid); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

footer { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem var(--pad); color: #fff; background: var(--ink); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
footer a { text-decoration: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .status { font-size: 0; }
  .status span { width: 10px; height: 10px; }
  .hero { min-height: 88svh; }
  .hero-kicker span:last-child { display: none; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 5rem); line-height: 0.9; }
  .hero-bottom { grid-template-columns: 1fr auto; }
  .round-link { width: 58px; height: 58px; }
  .section-heading, .about-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 2rem; }
  .work-grid { display: block; }
  .work-card, .card-wide, .card-tall, .card-square, .work-card:nth-child(5), .work-card:nth-child(6), .work-card:nth-child(9) { min-height: 0; width: 100%; aspect-ratio: 0.86; margin-bottom: 1rem; }
  .skills-list li { grid-template-columns: 2.5rem 1fr; gap: 1rem; }
  .skills-list li small { grid-column: 2; }
  .player-shell { grid-template-columns: 1fr; }
  .player-frame { min-height: 48vh; }
  .player-frame video { max-height: 62vh; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
