:root {
  --bg: #0B0B0C; --surface: #151517; --border: #26262A; --line: #3A3A3F;
  --text: #F5F5F0; --muted: #9A9A9F; --accent: #C6F432; --on-accent: #0B0B0C;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--text); font-family: "Inter", system-ui, -apple-system, sans-serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }

/* type */
.display { font-size: 64px; font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.heading { font-size: 44px; font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.title { font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.label { font-size: 13px; font-weight: 600; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.meta { font-size: 15px; font-weight: 500; color: var(--text); }
.meta-muted { font-size: 15px; font-weight: 500; color: var(--muted); }
.measure { max-width: 560px; }
.link { transition: color .2s; } .link:hover { color: var(--accent); }

/* layout */
.wrap { width: 1080px; max-width: 100%; margin: 0 auto; }
.section { padding: 120px 40px; }
.bordered { border-top: 1px solid rgba(255,255,255,.06); }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.head { display: flex; flex-direction: column; gap: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }
.dot-sm { width: 8px; height: 8px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; padding: 0 40px; background: rgba(11,11,12,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 100px; font-size: 15px; font-weight: 600; line-height: 1; transition: opacity .25s, transform .25s var(--ease), background .25s; }
.btn:hover { opacity: .85; } .btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-sm { padding: 10px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* intro */
.intro { padding-top: 96px; }
.intro-grid { display: flex; align-items: center; gap: 64px; flex-wrap: wrap; }
.intro-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.iam { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.iam-word { font-size: 22px; font-weight: 600; }
.flipper { perspective: 800px; }
.flip-card { display: inline-flex; align-items: center; gap: 18px; padding: 14px 22px; border-radius: 16px; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 0 rgba(198,244,50,.25); transform-origin: 50% 0%; transition: transform .45s var(--ease), opacity .45s; }
.flip-card.out { transform: rotateX(-90deg); opacity: 0; }
.flip-card.in { transition: none; transform: rotateX(90deg); opacity: 0; }
.flip-role { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.meta-row { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 8px; }
.meta-item { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--muted); }
.intro-reel { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: 0 auto; }
.phone { width: 300px; height: 533px; padding: 8px; border-radius: 44px; background: var(--surface); border: 1px solid #2E2E33; box-shadow: 0 24px 32px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(198,244,50,.06), 0 0 48px rgba(198,244,50,.10); }
.screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.screen video { width: 100%; height: 100%; object-fit: cover; }

/* work */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.media { height: 600px; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.media video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media video { transform: scale(1.03); }
.card-meta { display: flex; align-items: center; gap: 12px; }
.yt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt img { object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .yt img { transform: scale(1.03); }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: 0; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; background: var(--accent); color: var(--on-accent); cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.yt-play:hover { transform: scale(1.08); }
.yt-play:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.tags, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span, .chips span { padding: 8px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--muted); }
.chips.accent span { border-color: var(--accent); color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

/* about */
.about-grid { display: flex; flex-wrap: wrap; gap: 64px; }
.about-grid > * { flex: 1 1 320px; }
.tool-card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 18px; }
.tool-card.ai { border-color: rgba(198,244,50,.35); }
.tool-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }

/* services */
.svc { list-style: none; }
.svc li { display: grid; grid-template-columns: 64px minmax(240px, 1fr) minmax(260px, 1fr); gap: 16px 24px; padding: 28px 0; border-top: 1px solid var(--border); align-items: start; }
.svc li:last-child { border-bottom: 1px solid var(--border); }
.svc .label { padding-top: 6px; }

/* experience */
.exp-grid { display: flex; gap: 80px; align-items: flex-start; }
.exp-sticky { position: sticky; top: 120px; width: 360px; flex: none; display: flex; flex-direction: column; gap: 48px; }
.year-box { display: flex; flex-direction: column; gap: 14px; }
.year { height: 112px; overflow: hidden; }
.year-num { display: block; font-size: 112px; font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; transition: transform .5s var(--ease), opacity .5s; }
.year-num.out { transform: translateY(-100%); opacity: 0; }
.year-num.in { transition: none; transform: translateY(100%); opacity: 0; }
.year-idx { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.year-idx .line { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.year-idx .line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .33)); transition: transform .5s var(--ease); }
.timeline { flex: 1; border-left: 1px solid #2E2E33; }
.job { position: relative; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 64px 0 64px 48px; min-height: 320px; align-items: flex-start; }
.job-main { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; }
.job-main .org { margin-bottom: 4px; }
.job-dot { position: absolute; left: -6px; top: 70px; width: 11px; height: 11px; border-radius: 50%; background: var(--line); transition: background .4s, box-shadow .4s; }
.job.current .job-dot { background: var(--accent); box-shadow: 0 0 0 6px rgba(198,244,50,.12); }
.job-date { font-variant-numeric: tabular-nums; }

/* contact */
.contact { padding-bottom: 48px; }
.contact-h { max-width: 820px; }
.mail { display: inline-flex; align-items: center; gap: 14px; width: fit-content; transition: opacity .25s; }
.mail:hover { opacity: .8; }
.mail svg { transition: transform .3s var(--ease); } .mail:hover svg { transform: translate(4px,-4px); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border); }

/* motion */
.load-in { animation: rise .9s var(--ease) both; }
.load-in.delay-1 { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.d1 { transition-delay: .1s; } .js .reveal.d2 { transition-delay: .2s; }
.js .reveal.visible { opacity: 1; transform: none; }

/* tablet */
@media (max-width: 1199.98px) {
  .section { padding: 96px 32px; } .intro { padding-top: 72px; } .contact { padding-bottom: 40px; }
  .nav { padding: 0 32px; }
  .display { font-size: 52px; } .heading { font-size: 38px; } .title { font-size: 21px; }
  .exp-sticky { width: 300px; } .exp-grid { gap: 56px; }
  .year { height: 96px; } .year-num { font-size: 96px; }
  .nav-links a:nth-child(3) { display: none; }
}
/* phone */
@media (max-width: 809.98px) {
  .section { padding: 72px 20px; } .intro { padding-top: 40px; } .contact { padding-bottom: 32px; }
  .nav { padding: 0 20px; } .nav-links { display: none; }
  .display { font-size: 40px; } .heading { font-size: 32px; } .title { font-size: 20px; } .body { font-size: 16px; }
  .stack-56 { gap: 40px; } .stack-48 { gap: 40px; }
  .intro-grid { gap: 48px; } .intro-reel { width: 100%; }
  .flip-role { font-size: 24px; } .flip-card { padding: 12px 18px; gap: 14px; }
  .media { height: 560px; }
  .yt-grid { grid-template-columns: 1fr; }
  .svc li { grid-template-columns: 48px 1fr; } .svc li .body { grid-column: 2; }
  .exp-grid { flex-direction: column; gap: 40px; }
  .exp-sticky { position: relative; top: 0; width: 100%; gap: 32px; }
  .job { padding: 40px 0 40px 28px; min-height: 0; }
  .job-dot { top: 46px; }
  .mail .heading { font-size: 22px; } .mail svg { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
