:root {
  --bg: #050404;
  --ink: #f6f2ee;
  --mute: #b9b0a8;
  --orange: #f7a21b;
  --orange-2: #ffb846;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Montserrat", system-ui, sans-serif;
  --gut: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* warm ember glow like the resume background */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 0% 0%, rgba(98, 36, 22, .55), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(96, 52, 18, .5), transparent 70%),
    radial-gradient(40% 30% at 85% 35%, rgba(60, 22, 12, .35), transparent 70%);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--orange); color: #000; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60;
  background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

/* cursor (fine pointers only) */
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; mix-blend-mode: difference; }
  .cursor span { display: block; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff;
    transition: width .25s, height .25s, margin .25s; }
  .cursor.big span { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
}

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px var(--gut); transition: background .3s, padding .3s; }
.nav.solid { background: rgba(5, 4, 4, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-block: 12px; }
.brand { font: 900 15px/1 var(--display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--orange); }
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 28px); align-items: center; }
.nav nav a { font-size: 13px; font-weight: 500; text-decoration: none; letter-spacing: .04em; opacity: .85; }
.nav nav a:hover { opacity: 1; color: var(--orange); }
.nav .nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--orange); color: #111; opacity: 1; font-weight: 600; }
.nav .nav-cta:hover { color: #111; background: var(--orange-2); }
@media (max-width: 560px) { .nav nav a:not(.nav-cta) { display: none; } }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px var(--gut) 70px; overflow: hidden; }
.waves { position: absolute; left: -4%; top: -6%; width: min(62vw, 720px); height: 115%; opacity: .9; pointer-events: none; }
.waves path { fill: none; stroke: #fff; stroke-width: .7; vector-effect: non-scaling-stroke; }
.grid-lines { position: absolute; right: 0; top: 0; width: min(36vw, 420px); aspect-ratio: 1 / 1.05; pointer-events: none;
  background-image: linear-gradient(#fff 1.5px, transparent 1.5px), linear-gradient(90deg, #fff 1.5px, transparent 1.5px);
  background-size: 25% 20%; background-position: -1px 52px;
  -webkit-mask: linear-gradient(200deg, #000 40%, transparent 92%); mask: linear-gradient(200deg, #000 40%, transparent 92%); opacity: .85; }
.dots { position: absolute; inset: 0; pointer-events: none; }
.dots i { position: absolute; border-radius: 50%; background: #f3eee8; will-change: transform; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  max-width: 1280px; width: 100%; margin: 0 auto; }
.name { margin: 0; font: 900 clamp(52px, 11vw, 170px)/.86 var(--display); letter-spacing: -.01em; }
.name .line { display: block; overflow: hidden; padding-bottom: .04em; }
.name .word { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2, .8, .1, 1) forwards; }
.name .line:nth-child(2) .word { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }
.pill { display: inline-block; margin: clamp(22px, 3vw, 36px) 0 0; padding: .55em 2.4em; border-radius: 999px; background: var(--orange); color: #111;
  font: 500 clamp(15px, 1.6vw, 21px)/1 var(--body); letter-spacing: .04em; }
.lede { max-width: 640px; margin: 28px 0 0; font-style: italic; font-size: clamp(15px, 1.35vw, 19px); color: #ece6e0; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.scroll-cue i { width: 26px; height: 42px; border: 1.5px solid #fff; border-radius: 14px; position: relative; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange);
  animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.portrait { position: relative; margin: 0; justify-self: center; width: min(100%, 400px); will-change: transform; }
.oval { aspect-ratio: 3 / 4.1; border-radius: 50%; overflow: hidden; background: #eef0ef; transform: rotate(10deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); clip-path: ellipse(0% 0% at 50% 50%); animation: open 1.2s .35s cubic-bezier(.2, .8, .1, 1) forwards; }
.oval img { width: 100%; height: 100%; object-fit: cover; transform: rotate(-10deg) scale(1.22); }
@keyframes open { to { clip-path: ellipse(75% 75% at 50% 50%); } }
.spark { position: absolute; width: 30px; height: 30px; background: #fff; z-index: 2;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%); animation: twinkle 2.6s ease-in-out infinite; }
.s1 { left: -8%; top: 14%; }
.s2 { right: -2%; bottom: 2%; width: 22px; height: 22px; animation-delay: 1.3s; }
@keyframes twinkle { 50% { transform: scale(.45) rotate(45deg); opacity: .6; } }

@media (max-width: 820px) {
  .hero { padding-top: 96px; }
  .hero-inner { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(62vw, 300px); }
  .grid-lines { width: 70vw; }
  .waves { width: 110vw; }
}

/* marquee */
.marquee { border-block: 1px solid rgba(255, 255, 255, .25); padding: 18px 0; overflow: hidden; background: rgba(0, 0, 0, .35); }
.marquee-track { display: flex; gap: 32px; width: max-content; animation: slide 30s linear infinite; font: 900 clamp(22px, 3.4vw, 44px)/1 var(--display); white-space: nowrap; }
.marquee-track span:nth-of-type(odd) { color: transparent; -webkit-text-stroke: 1.2px #fff; }
.marquee-track b { color: var(--orange); font-weight: 400; }
@keyframes slide { to { transform: translateX(-50%); } }

/* statement (scroll scrub) */
.statement { padding: clamp(90px, 16vw, 200px) var(--gut); max-width: 1180px; margin: 0 auto; }
.scrub { margin: 0; font: 800 clamp(28px, 4.6vw, 64px)/1.12 var(--display); letter-spacing: -.01em; }
.scrub .w { opacity: .14; transition: opacity .25s, color .25s; }
.scrub .w.on { opacity: 1; }
.scrub .w.hot { color: var(--orange); }

/* work: horizontal pinned scroll */
.work { position: relative; }
.work-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.work-head { flex: 0 0 auto; position: relative; z-index: 2; align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  width: clamp(280px, 32vw, 440px); padding-left: var(--gut); padding-right: 32px;
  background: linear-gradient(90deg, var(--bg) 78%, rgba(5, 4, 4, 0)); margin-right: -32px; }
.kicker { margin: 0 0 14px; color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.title { margin: 0; font: 900 clamp(38px, 5.2vw, 76px)/.92 var(--display); }
.sub { margin: 18px 0 0; color: var(--mute); max-width: 320px; }
.track { display: flex; gap: clamp(16px, 2vw, 28px); padding-right: var(--gut); will-change: transform; }
.reel { position: relative; flex: 0 0 auto; width: clamp(220px, 21vw, 300px); max-height: 80svh; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #111; border: 1px solid rgba(255, 255, 255, .14); cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left;
  transition: transform .5s cubic-bezier(.2, .8, .1, 1), border-color .3s; }
.reel:hover { transform: translateY(-10px) rotate(-1deg); border-color: var(--orange); }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0, transparent 22%, transparent 55%, rgba(0, 0, 0, .85)); }
.reel .num { position: absolute; z-index: 1; top: 14px; left: 16px; font: 900 15px/1 var(--display); }
.reel .play { position: absolute; z-index: 1; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  transform: scale(.8); opacity: 0; transition: .3s; }
.reel .play::before { content: ""; margin-left: 3px; border-left: 11px solid #111; border-block: 7px solid transparent; }
.reel:hover .play, .reel:focus-visible .play { transform: none; opacity: 1; }
.reel .meta { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px; }
.reel h3 { margin: 0; font: 900 clamp(17px, 1.5vw, 21px)/1.05 var(--display); }
.reel p { margin: 6px 0 0; font-size: 12px; color: #ddd; }
.reel .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.reel .tags span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .45); }

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .work { height: auto !important; }
  .work-pin { position: static; height: auto; display: block; padding: 70px 0; overflow: visible; }
  .work-head { width: auto; padding-right: var(--gut); margin: 0 0 28px; background: none; }
  .track { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px var(--gut) 16px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .reel { scroll-snap-align: center; width: min(72vw, 300px); }
}

/* career */
.career { max-width: 1180px; margin: 0 auto; padding: clamp(90px, 12vw, 160px) var(--gut); }
.role { margin: 14px 0 0; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.timeline { list-style: none; margin: 48px 0 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 36px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: rgba(255, 255, 255, .15); }
.timeline::after { content: ""; position: absolute; left: 0; top: 6px; width: 2px; height: calc((100% - 12px) * var(--fill, 0)); background: var(--orange); }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -35px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); }
.year { font: 900 clamp(26px, 3vw, 40px)/1 var(--display); color: var(--orange); }
.year small { display: block; margin-top: 6px; font: 600 12px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.timeline h3 { margin: 0; font: 900 20px/1.2 var(--display); }
.timeline p { margin: 6px 0 0; color: var(--mute); max-width: 560px; }
.duties { margin: 56px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.duties li { padding: 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; background: rgba(255, 255, 255, .03); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* skills */
.skills { position: relative; max-width: 1180px; margin: 0 auto; padding: clamp(60px, 10vw, 140px) var(--gut); display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.skills .title { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 24px; }
.skill-list { margin: 0; padding: 0; list-style: none; }
.skill-list li { padding: 14px 0 14px 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; }
.skill-list li::before { content: "✦"; position: absolute; left: 0; color: var(--orange); }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-style: italic; transition: .25s; }
.chips li:hover { background: var(--orange); color: #111; border-color: var(--orange); }
.rings { position: absolute; right: 0; bottom: 0; width: 240px; pointer-events: none; opacity: .6; z-index: -1; }
.rings i { display: block; height: 46px; margin-top: -18px; border: 1.5px solid #fff; border-radius: 50%; animation: bob 4s ease-in-out infinite; }
.rings i:nth-child(2) { animation-delay: .2s; } .rings i:nth-child(3) { animation-delay: .4s; } .rings i:nth-child(4) { animation-delay: .6s; } .rings i:nth-child(5) { animation-delay: .8s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 820px) { .skills { grid-template-columns: 1fr; gap: 48px; } .rings { display: none; } }

/* contact */
.contact { padding: clamp(100px, 14vw, 200px) var(--gut) 90px; text-align: center; max-width: 1280px; margin: 0 auto; }
.big { margin: 0; font: 900 clamp(34px, 8.4vw, 132px)/.92 var(--display); }
.big span { display: inline-block; }
.big .o { color: var(--orange); }
.mail { display: inline-block; margin-top: 36px; font: 500 clamp(17px, 2.4vw, 30px)/1.2 var(--body); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 6px; overflow-wrap: anywhere; }
.mail:hover { color: var(--orange); }
.contact-row { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 40px; }
.contact-row li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.contact-row a { text-decoration: none; }
.ic { width: 40px; height: 40px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; }
.ic svg { width: 20px; height: 20px; fill: #111; }

.foot { display: flex; align-items: center; gap: 16px; margin: 0 var(--gut); padding: 28px 0 40px; color: var(--mute); font-size: 13px; text-align: center; }
.foot i { flex: 1; height: 1px; background: rgba(255, 255, 255, .5); }
.foot p { margin: 0; }
.foot span { color: #fff; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2, .8, .1, 1), transform .9s cubic-bezier(.2, .8, .1, 1); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-delay: .5s; }
.hero .lede.reveal { transition-delay: .65s; }
.hero .scroll-cue.reveal { transition-delay: .8s; }

/* player */
.player { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; margin: 0; }
.player[open] { display: grid; place-items: center; align-content: center; gap: 12px; }
.player::backdrop { background: rgba(5, 4, 4, .92); backdrop-filter: blur(8px); }
.player video { height: min(84dvh, 163vw); aspect-ratio: 9 / 16; max-width: 92vw; object-fit: contain; border-radius: 18px; background: #000; }
.player-title { margin: 0; font: 900 16px/1.2 var(--display); text-align: center; color: #fff; }
.player .close { position: fixed; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--orange); color: #111; font-size: 18px; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .name .word { transform: none; }
  .oval { clip-path: none; }
  .reveal { opacity: 1; transform: none; }
  .scrub .w { opacity: 1; }
}
