:root {
  --base: #0d0d0d;
  --ink: #f3efe6;
  --mute: #9a968d;
  --line: rgba(243, 239, 230, .18);
  --b1: #c69b2b;
  --t1: #1f1700;
  --b2: #2b7786;
  --t2: #e9f6f8;
  --b3: #aa4e2c;
  --t3: #fdeee6;
  --gutter: clamp(16px, 3vw, 32px);
  --display: 'Anton', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-hard: cubic-bezier(.2, .9, .2, 1);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --base: #f3efe6;
    --ink: #0d0d0d;
    --mute: #6a665e;
    --line: rgba(13, 13, 13, .18);
    color-scheme: light;
  }
}

html, body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 0; }
[hidden] { display: none !important; }

@keyframes pageShift { 0% { background: var(--base); } 22% { background: var(--b1); } 46% { background: var(--b2); } 70% { background: var(--b3); } 100% { background: var(--base); } }
@keyframes slash { from { clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); } to { clip-path: polygon(0 0, 140% 0, 100% 100%, 0 100%); } }
@keyframes slashR { from { clip-path: polygon(100% 0, 100% 0, 140% 100%, 140% 100%); } to { clip-path: polygon(-40% 0, 100% 0, 100% 100%, 0 100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { transform: scaleY(0); } to { transform: none; } }
@keyframes shrink { from { transform: scale(1); } to { transform: scale(.28); } }
@keyframes tilt { from { transform: rotate(10deg) translateY(60px); opacity: 0; } to { transform: rotate(3deg); opacity: 1; } }
@keyframes slam { from { transform: translateY(70%) skewY(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slab { from { transform: rotate(-1.5deg) scaleX(0); } to { transform: rotate(-1.5deg) scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }

.page { position: relative; min-height: 100vh; overflow: clip; }
.page-shift { position: fixed; inset: 0; z-index: 0; background: var(--base); }
.corner-mark {
  position: fixed; top: 16px; left: var(--gutter); z-index: 60;
  font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  mix-blend-mode: difference; color: #fff;
}
.display { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; }

/* Hero */
.hero {
  position: sticky; top: 0; z-index: 1; min-height: 100vh; box-sizing: border-box;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  padding-top: clamp(56px, 8vh, 96px);
}
.hero-block {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: var(--b1); clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  transform-origin: bottom; animation: drop .9s .1s var(--ease) both;
}
.hero-meta {
  position: relative; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; padding: 0 var(--gutter) 8px; animation: rise .7s both;
}
.chip {
  flex: none; white-space: nowrap; display: inline-flex; padding: 6px 10px;
  background: var(--b2); color: var(--t2);
  font-family: var(--display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
}
.hero-meta-right { display: flex; gap: 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hero-main { position: relative; display: grid; align-content: center; gap: clamp(6px, 1.2vh, 16px); }
.hero-name {
  margin: 0 -0.02em; padding-top: .14em;
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 19.2vw, 420px); line-height: .8; letter-spacing: -.005em;
  white-space: nowrap; text-align: center;
  animation: slam .8s .05s var(--ease-hard) both;
}
.hero-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 3vw, 40px); align-items: end; padding: 0 var(--gutter);
}
.slab {
  margin: 0; justify-self: start; transform: rotate(-1.5deg); transform-origin: left;
  background: var(--b2); color: var(--t2);
  padding: clamp(14px, 2vw, 28px) clamp(16px, 2.4vw, 32px);
  font-family: var(--display); font-size: clamp(26px, 3.6vw, 64px); line-height: .95;
  text-transform: uppercase; letter-spacing: .005em; max-width: 16ch; text-wrap: balance;
  animation: slab .7s .5s var(--ease-hard) both;
}
.reel { justify-self: end; width: min(100%, 440px); transform: rotate(3deg); animation: tilt 1.1s .6s var(--ease) both; }
.reel-frame {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink); padding: 10px; box-sizing: border-box;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .6);
}
.reel-media { position: absolute; inset: 10px; background: rgba(128, 128, 128, .14); }
.reel-media > * { display: block; width: 100%; height: 100%; object-fit: cover; }
.marquee {
  position: relative; margin-top: clamp(14px, 2vh, 28px);
  background: var(--ink); color: var(--b2); overflow: hidden; white-space: nowrap; padding: 12px 0;
  font-family: var(--display); font-size: clamp(18px, 2vw, 30px); letter-spacing: .1em; text-transform: uppercase;
}
.marquee-track { display: inline-flex; gap: 44px; padding-right: 44px; animation: marquee 20s linear infinite; }
.marquee-track .alt { color: var(--base); }

/* Pinned shrinking titles */
.pin {
  position: sticky; top: 0; z-index: 3; padding: 52px var(--gutter) 0; pointer-events: none;
  display: flex; align-items: baseline; gap: 18px;
}
.pin h2 { transform-origin: left top; }

/* Work */
.work {
  position: relative; z-index: 2; background: var(--b1); color: var(--t1);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, .35); padding-bottom: clamp(64px, 10vh, 120px);
  view-timeline-name: --work;
}
.work .pin { background: linear-gradient(var(--b1) 60%, transparent); }
.work-title { font-size: clamp(48px, 11vw, 200px); white-space: nowrap; }
.work-content { padding: clamp(16px, 3vh, 40px) var(--gutter) 0; display: grid; gap: 24px; }

.player { position: relative; aspect-ratio: 16 / 9; max-height: 74vh; width: 100%; margin: 0 auto; background: #000; overflow: hidden; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-idle, .player-soon { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.player-idle { background: #161616; color: #f3efe6; }
.player-idle:hover { background: #1f1f1f; }
.player-idle-inner { display: grid; gap: 12px; justify-items: center; }
.play-btn { width: 92px; height: 92px; border-radius: 50%; background: var(--b2); display: grid; place-items: center; }
.play-btn::after {
  content: ''; width: 0; height: 0; border-style: solid; border-width: 13px 0 13px 24px;
  border-color: transparent transparent transparent var(--t2); margin-left: 6px;
}
.play-label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.player-soon { background: var(--b2); color: var(--t2); }
.player-soon-inner { display: grid; gap: 8px; text-align: center; text-transform: uppercase; }
.soon-title { font-family: var(--display); font-size: clamp(40px, 8vw, 120px); line-height: .9; }
.soon-note { font-size: 12px; font-weight: 600; letter-spacing: .1em; }
.lower-third {
  position: absolute; left: 0; bottom: 0; pointer-events: none; max-width: 92%;
  background: var(--b2); color: var(--t2); padding: 12px 18px; display: grid; gap: 2px;
  transform-origin: bottom; animation: drop .5s var(--ease) both;
}
.lower-third-title { font-family: var(--display); font-size: clamp(20px, 2.4vw, 34px); line-height: 1; text-transform: uppercase; }
.lower-third-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.filmstrip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 0 16px;
  scrollbar-width: thin; scrollbar-color: var(--t1) transparent;
}
.thumb { flex: 0 0 clamp(200px, 23vw, 290px); scroll-snap-align: start; text-align: left; display: grid; gap: 10px; color: inherit; }
.thumb-img {
  position: relative; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, .25); overflow: hidden;
  outline: 3px solid transparent; outline-offset: -3px;
}
.thumb:hover .thumb-img { outline-color: var(--t1); }
.thumb-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-pressed="true"] .thumb-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  outline: 4px solid var(--b2); outline-offset: -4px;
}
.thumb-num {
  position: absolute; left: 0; top: 0; pointer-events: none;
  font-family: var(--display); font-size: clamp(34px, 4vw, 56px); line-height: .85;
  padding: 6px 8px; color: var(--t1); mix-blend-mode: difference;
}
.thumb-caption { display: grid; gap: 4px; }
.thumb-title { font-family: var(--display); font-size: 18px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.thumb-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* Awards */
.awards {
  position: relative; z-index: 3; background: var(--b2); color: var(--t2);
  padding-bottom: clamp(64px, 10vh, 140px); view-timeline-name: --awards;
}
.awards .pin { background: linear-gradient(var(--b2) 60%, transparent); }
.awards-title, .about-title { font-size: clamp(72px, 16vw, 260px); }
.awards-list { padding: clamp(16px, 3vh, 40px) var(--gutter) 0; display: grid; border-top: 3px solid var(--t2); }
.award {
  display: grid; grid-template-columns: minmax(72px, auto) minmax(0, 1fr) auto;
  gap: clamp(12px, 3vw, 40px); align-items: center; padding: 14px 0; border-bottom: 2px solid var(--t2);
}
.award-year { font-family: var(--display); font-size: clamp(28px, 4vw, 56px); line-height: .9; }
.award-body { display: grid; gap: 2px; min-width: 0; }
.award-name { font-family: var(--display); font-size: clamp(20px, 2.4vw, 34px); line-height: 1; text-transform: uppercase; }
.award-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.badge { font-family: var(--display); font-size: 14px; letter-spacing: .1em; }
.badge-won { padding: 8px 12px; background: var(--t2); color: var(--b2); }
.badge-nom { padding: 6px 10px; border: 2px solid var(--t2); }

/* About */
.about {
  position: sticky; top: 0; z-index: 4; min-height: 100vh; box-sizing: border-box;
  background: var(--b3); color: var(--t3);
  display: grid; align-content: center; gap: clamp(20px, 4vh, 40px);
  padding: clamp(64px, 9vh, 110px) var(--gutter) 96px;
}
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 5vw, 80px); align-items: start;
}
.bio { margin: 0; max-width: 48ch; font-size: clamp(19px, 1.8vw, 27px); line-height: 1.35; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.facts { margin: 0; display: grid; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-top: 2px solid var(--t3); }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid var(--t3); }
.facts dt { opacity: .7; }
.facts dd { margin: 0; text-align: right; }

/* Contact */
.contact {
  position: relative; z-index: 5; min-height: 100vh; box-sizing: border-box;
  background: var(--base); display: grid; grid-template-rows: 1fr auto;
}
.contact-content { display: grid; align-content: end; gap: clamp(20px, 4vh, 40px); padding: clamp(64px, 9vh, 110px) var(--gutter) 40px; }
.contact-title { font-size: clamp(72px, 17vw, 300px); line-height: .86; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.form { display: grid; gap: 12px; max-width: 640px; }
.form-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.field {
  width: 100%; box-sizing: border-box; padding: 16px; border: 3px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 500;
}
.field::placeholder { color: var(--mute); opacity: 1; }
textarea.field { resize: vertical; }
.check { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 16px; border: 3px dashed var(--ink); }
.check label { flex: 1 1 200px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.check-input { width: 80px; padding: 10px 12px; font-weight: 600; text-align: center; }
.check-error { flex: 1 1 100%; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--b1); }
.submit-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; font-family: var(--display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.btn-send { padding: 20px 32px; background: var(--b1); color: var(--t1); }
.btn-send:hover { background: var(--ink); color: var(--base); }
.btn-outline { padding: 17px 32px; border: 3px solid var(--ink); color: var(--ink); }
.sent { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.linkedin { display: grid; gap: 12px; justify-items: start; }
.linkedin-note { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--gutter) 40px; border-top: 3px solid var(--ink);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.to-top { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
.to-top:hover { opacity: .7; }

/* Scroll-driven motion (Chrome/Edge 115+, Safari 26+). Elsewhere everything is simply visible. */
@supports (animation-timeline: view()) {
  .page-shift { animation: pageShift 1ms linear both; animation-timeline: scroll(root); }
  .work-title { animation: shrink 1ms linear both; animation-timeline: --work; animation-range: cover 14% cover 36%; }
  .awards-title { animation: shrink 1ms linear both; animation-timeline: --awards; animation-range: cover 12% cover 34%; }
  .awards, .contact { animation: slashR 1ms linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .about { animation: slash 1ms linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  .award { animation: slash 1ms linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
}
/* Without the shrink, a pinned full-size title would cover the content. */
@supports not (animation-timeline: view()) {
  .pin { position: relative; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .pin { position: relative; }
}
