:root {
  --night: #060910;
  --night-soft: #0a0f19;
  --surface: #101722;
  --surface-2: #151e2b;
  --ink: #f4f7fb;
  --muted: #929dac;
  --muted-2: #6d7887;
  --line: rgba(233, 241, 251, .13);
  --line-strong: rgba(233, 241, 251, .24);
  --accent: #65dff1;
  --accent-blue: #5f7cff;
  --success: #78edb2;
  --paper: #e9ebea;
  --paper-soft: #f5f6f4;
  --paper-ink: #10141b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-synthesis: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #02070a; }
.site-root { position: relative; overflow: clip; }
.site-root:before { content: ""; position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .32; background: radial-gradient(520px circle at var(--pointer-x, 50vw) var(--pointer-y, 40vh), rgba(101,223,241,.075), transparent 58%); }
.section-shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.scroll-progress { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 2px; pointer-events: none; transform: scaleX(var(--page-progress, 0)); transform-origin: left; background: linear-gradient(90deg, var(--accent), var(--accent-blue)); }

.site-header {
  position: fixed; z-index: 50; top: 20px; left: 50%; transform: translateX(-50%);
  width: min(1240px, calc(100% - 36px)); height: 72px; padding: 0 12px 0 22px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  border: 1px solid var(--line); background: rgba(7, 11, 18, .76);
  backdrop-filter: blur(22px) saturate(150%); box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  transition: top .3s ease, height .3s ease, background .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { top: 10px; height: 62px; background: rgba(7, 11, 18, .93); box-shadow: 0 18px 50px rgba(0, 0, 0, .42); }
.wordmark { display: flex; align-items: center; gap: 12px; width: fit-content; }
.wordmark b { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--night); font-size: 13px; letter-spacing: -.04em; }
.wordmark > span { color: #c7d0db; font: 700 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 34px; }
.site-header nav a { position: relative; color: #b0bac7; font-size: 13px; font-weight: 700; transition: color .2s ease; }
.site-header nav a span { margin-right: 6px; color: #718094; font: 700 10px ui-monospace, monospace; }
.site-header nav a:after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-header nav a:hover { color: #fff; }
.site-header nav a:hover:after { transform: scaleX(1); }
.site-header nav a.is-active { color: #fff; }
.site-header nav a.is-active:after { transform: scaleX(1); }
.nav-contact { justify-self: end; min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; gap: 16px; background: var(--accent); color: #061015; font-size: 12px; font-weight: 800; transition: background .2s, transform .2s; }
.nav-contact:hover { background: #95effa; transform: translateY(-2px); }

.hero {
  min-height: 100svh; padding-top: 142px; padding-bottom: 74px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 7vw; align-items: center; position: relative;
}
.hero:before { content: ""; position: absolute; z-index: -2; width: 760px; height: 760px; left: -460px; top: calc(-60px + var(--scroll-shift, 0px)); border-radius: 50%; background: rgba(65, 94, 255, .17); filter: blur(120px); transition: top .15s linear; }
.hero:after { content: ""; position: absolute; z-index: -2; inset: 0; background-image: linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 86%); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { width: fit-content; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; color: #b9c4d1; font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; letter-spacing: .1em; }
.eyebrow i { width: 1px; height: 12px; background: var(--line-strong); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(120,237,178,.09); }
.hero h1 { position: relative; width: fit-content; margin: 34px 0 22px; font-size: clamp(72px, 8.8vw, 128px); line-height: .8; letter-spacing: -.078em; font-weight: 800; text-transform: uppercase; }
.hero h1:before { content: ""; position: absolute; z-index: 4; inset: -5% -3%; pointer-events: none; background: linear-gradient(110deg,transparent 35%,rgba(101,223,241,.13) 48%,transparent 61%); transform: translateX(-120%); }
.hero h1 span { position: relative; color: transparent; -webkit-text-stroke: 1.2px #778596; }
.hero h1 span:after { content: ""; position: absolute; left: 1.5%; right: 0; bottom: -10px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-blue), transparent 78%); }
.hero-title { margin: 31px 0 0; display: flex; align-items: center; gap: 12px; color: #d7dfe8; font-size: 14px; font-weight: 700; letter-spacing: .025em; }
.hero-title i { width: 4px; height: 4px; background: var(--accent); transform: rotate(45deg); }
.hero-intro { max-width: 650px; margin: 24px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; flex-wrap: wrap; }
.button { min-height: 51px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--ink); color: var(--night); }
.button.primary:hover { background: var(--accent); }
.button.secondary { border-color: var(--line-strong); color: #dbe2ea; }
.button.secondary:hover { border-color: var(--accent); }
.social-row { display: flex; gap: 12px; margin-top: 36px; color: #9ba8b8; font: 700 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.social-row a { min-height: 42px; padding: 0 13px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); transition: color .2s, border-color .2s, background .2s, transform .2s; }
.social-row a svg { width: 17px; height: 17px; }
.social-row a > span:last-child { margin-left: 3px; }
.social-row a:hover { color: var(--accent); border-color: rgba(101,223,241,.55); background: rgba(101,223,241,.06); transform: translateY(-2px); }
.scroll-cue { width: fit-content; margin-top: 48px; display: flex; align-items: center; gap: 13px; color: #758294; font: 700 9px ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; transition: color .25s ease; }
.scroll-cue i { position: relative; width: 56px; height: 1px; overflow: hidden; background: var(--line-strong); }
.scroll-cue i:after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: translateX(-100%); animation: scrollLine 2.1s ease-in-out infinite; }
.scroll-cue:hover { color: var(--accent); }

.portrait-wrap { position: relative; min-height: 610px; display: flex; align-items: center; justify-content: center; }
.portrait-grid { position: absolute; inset: 6% -7%; border: 1px solid var(--line); background-image: linear-gradient(rgba(101,223,241,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(101,223,241,.14) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 85%, transparent); }
.portrait-grid:after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(101,223,241,.18); }
.portrait-index { position: absolute; z-index: 3; top: 62px; right: -7px; writing-mode: vertical-rl; color: #7d8b9d; font: 700 10px ui-monospace, monospace; letter-spacing: .16em; }
.portrait-frame { width: min(400px, 89%); aspect-ratio: .75; position: relative; overflow: hidden; background: #17202d; clip-path: polygon(14% 0, 100% 0, 100% 88%, 86% 100%, 0 100%, 0 12%); box-shadow: 0 42px 100px rgba(0,0,0,.5); }
.portrait-frame:before { content: ""; position: absolute; z-index: 2; inset: 0; border: 1px solid rgba(255,255,255,.16); clip-path: inherit; pointer-events: none; }
.portrait-frame:after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(to top, rgba(5,9,15,.44), transparent 52%); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 52% center; filter: saturate(.72) contrast(1.08); transform: perspective(900px) translate3d(var(--portrait-x,0),var(--portrait-y,0),0) rotateX(var(--portrait-rotate-x,0)) rotateY(var(--portrait-rotate-y,0)) scale(1.04); transition: filter .45s, transform .28s cubic-bezier(.2,.8,.2,1); }
.portrait-frame:hover img { filter: saturate(.96) contrast(1.04); }
.portrait-note { position: absolute; z-index: 4; left: -12px; bottom: 71px; min-width: 210px; padding: 17px 19px; border-left: 3px solid var(--accent); background: rgba(10,15,24,.9); backdrop-filter: blur(16px); box-shadow: 0 20px 45px rgba(0,0,0,.32); }
.portrait-note span { display: block; margin-bottom: 6px; color: var(--accent); font: 700 10px ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.portrait-note strong { font-size: 14px; }

.proof-strip { padding-inline: max(32px, calc((100% - 1240px)/2)); border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(4,1fr); background: #080c14; }
.proof-strip div { min-height: 118px; padding: 26px 31px; border-right: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.proof-strip div:first-child { border-left: 1px solid var(--line); }
.proof-strip strong { color: var(--accent); font-size: 30px; letter-spacing: -.055em; }
.proof-strip span { color: #aeb9c6; font: 700 11px/1.5 ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }

.split-section { padding-block: 138px; display: grid; grid-template-columns: 190px 1fr; gap: 76px; }
.section-label { position: relative; color: #8996a7; font: 700 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; padding-top: 8px; }
.section-label:before { content: ""; display: block; width: 34px; height: 1px; margin-bottom: 14px; background: var(--accent); }
.lead-copy { margin: 0; max-width: 960px; color: #e7edf4; font-size: clamp(30px, 3.35vw, 46px); line-height: 1.28; letter-spacing: -.035em; font-weight: 650; }
.about-grid { margin-top: 74px; padding-top: 38px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; }
.about-grid>p { margin: 0; color: #a4afbd; font-size: 16px; line-height: 1.82; }
.principles>span,.skill-footer span { color: #8996a7; font: 700 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.principles ul { margin: 15px 0 0; padding: 0; list-style: none; counter-reset: principle; }
.principles li { counter-increment: principle; padding: 16px 0; border-top: 1px solid var(--line); color: #dce4ed; font-size: 15px; }
.principles li:before { content: "0" counter(principle); display: inline-block; width: 40px; color: var(--accent); font: 700 10px ui-monospace, monospace; }
.section-heading { margin-bottom: 58px; display: flex; justify-content: space-between; align-items: flex-end; }
.kicker { color: var(--accent); font: 800 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .14em; }
.section-heading h2,.projects-heading h2,.contact-inner h2 { margin: 13px 0 0; font-size: clamp(42px, 5.1vw, 68px); line-height: 1.02; letter-spacing: -.055em; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 31px; padding: 39px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s, background .25s; }
.timeline-item:hover { padding-left: 14px; background: linear-gradient(90deg, rgba(101,223,241,.04), transparent 70%); }
.timeline-mark { width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--accent); background: #0c131e; font: 800 11px ui-monospace, monospace; letter-spacing: .09em; }
.timeline-item .meta { color: #8795a7; font: 700 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .09em; }
.timeline-item h3 { margin: 10px 0 5px; font-size: 25px; letter-spacing: -.035em; }
.org-link { color: var(--accent); font-size: 14px; font-weight: 800; }
.timeline-item p { max-width: 740px; margin: 16px 0 0; color: #a3aebb; font-size: 15px; line-height: 1.75; }
.timeline-item.compact { border-bottom: 0; padding-bottom: 0; }

.projects-section { position: relative; padding-block: 138px; color: var(--paper-ink); background: var(--paper); overflow: hidden; }
.project-grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: .48; background-image: linear-gradient(rgba(18,25,34,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(18,25,34,.055) 1px,transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom,#000,transparent 28%); }
.projects-section .section-shell { position: relative; }
.projects-section .section-label:before { background: #3156dc; }
.projects-heading { margin: 26px 0 72px 266px; display: flex; align-items: flex-end; justify-content: space-between; gap: 52px; }
.projects-heading .kicker { color: #3156dc; }
.projects-heading p { max-width: 390px; margin: 0 0 7px; color: #555e69; font-size: 16px; line-height: 1.7; }
.featured-project { position: relative; isolation: isolate; min-height: 570px; padding: 42px 46px 38px; overflow: hidden; color: #eef5f8; border: 1px solid #111923; background: radial-gradient(circle at 78% 18%,rgba(68,105,255,.23),transparent 27%),linear-gradient(145deg,#080d15,#111b28 68%,#071117); box-shadow: 0 34px 90px rgba(19,26,34,.16); transform: perspective(1400px) rotateX(var(--card-rotate-x,0deg)) rotateY(var(--card-rotate-y,0deg)); transition: transform .28s cubic-bezier(.22,1,.36,1),box-shadow .35s ease; }
.featured-project:before { content: "01"; position: absolute; z-index: -1; right: -2vw; bottom: -6vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07); font-size: clamp(230px,32vw,480px); line-height: .8; font-weight: 900; letter-spacing: -.1em; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.featured-project:after,.project-card:before { content: ""; position: absolute; z-index: 3; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(460px circle at var(--card-x,50%) var(--card-y,50%), rgba(101,223,241,.16), transparent 54%); transition: opacity .35s ease; }
.featured-project:hover:after,.project-card:hover:before { opacity: 1; }
.featured-project:hover:before { transform: translate3d(-12px,-8px,0); }
.feature-top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.winner-badge { padding: 11px 13px; border-left: 2px solid var(--accent); background: rgba(101,223,241,.08); color: var(--accent); font: 800 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .1em; }
.feature-index { color: #7d8999; font: 800 10px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .13em; }
.feature-body { position: relative; z-index: 4; margin-top: 82px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 8vw; }
.project-type,.card-top { color: #8491a1; font: 800 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .12em; }
.feature-body h3 { margin: 17px 0 0; font-size: clamp(58px,7.2vw,96px); line-height: .88; letter-spacing: -.07em; text-transform: uppercase; }
.project-summary { margin: 0 0 8px; color: #b4bfcb; font-size: 17px; line-height: 1.7; }
.feature-footer { position: relative; z-index: 4; margin-top: 70px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: .7fr .7fr 1.2fr 1.2fr; gap: 24px; }
.feature-footer span { display: block; margin-bottom: 8px; color: #738094; font: 800 9px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .12em; }
.feature-footer strong { color: #e3eaf1; font-size: 13px; line-height: 1.45; }
.feature-tags { position: relative; z-index: 4; margin-top: 28px; color: #b9c6d3; }
.tag-row { display: flex; gap: 7px; flex-wrap: wrap; }
.tag-row span { padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font: 800 10px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .05em; opacity: .78; }
.project-grid { margin-top: 26px; display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.project-card { position: relative; isolation: isolate; min-height: 510px; padding: 32px; overflow: hidden; border: 1px solid #c9cdcb; background: var(--paper-soft); transform: perspective(1200px) translateY(0) rotateX(var(--card-rotate-x,0deg)) rotateY(var(--card-rotate-y,0deg)); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
.project-card > * { position: relative; z-index: 4; }
.project-card:hover { transform: perspective(1200px) translateY(-7px) rotateX(var(--card-rotate-x,0deg)) rotateY(var(--card-rotate-y,0deg)); box-shadow: 0 28px 70px rgba(20,27,35,.12); }
.project-ghost-number { position: absolute; z-index: 0; right: -12px; bottom: -40px; color: transparent; -webkit-text-stroke: 1px rgba(15,20,27,.1); font-size: 220px; line-height: .8; font-weight: 900; letter-spacing: -.1em; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .project-ghost-number { transform: translate(-10px,-8px); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-top a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #c3c8c6; border-radius: 50%; font-size: 18px; transition: background .2s,color .2s,transform .2s; }
.card-top a:hover { background: var(--paper-ink); color: white; transform: rotate(45deg); }
.card-accent { width: 82px; height: 4px; margin: 66px 0 28px; background: linear-gradient(90deg,#b51591,#5035e9,#36c8db); transform-origin: left; transition: width .45s cubic-bezier(.2,.8,.2,1); }
.project-card:hover .card-accent { width: 145px; }
.resonance-card .card-accent { height: 25px; display: flex; align-items: center; gap: 5px; background: none; }
.resonance-card .card-accent span { width: 4px; height: 9px; border-radius: 3px; background: #167eaa; animation: equalize 1.2s ease-in-out infinite alternate; }
.resonance-card .card-accent span:nth-child(2),.resonance-card .card-accent span:nth-child(4){height:20px;animation-delay:-.35s}.resonance-card .card-accent span:nth-child(3){height:13px;animation-delay:-.7s}
.project-card h3 { margin: 0 0 19px; font-size: clamp(40px,4vw,56px); line-height: .96; letter-spacing: -.057em; }
.project-card>p { min-height: 75px; color: #555e68; font-size: 15px; line-height: 1.7; }
.project-card .tag-row { margin: 21px 0 25px; }
.project-link { display: inline-flex; gap: 8px; color: #294dbd; font-size: 13px; font-weight: 800; }

.skill-groups { border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 190px 1fr; gap: 36px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.skill-group h3 { margin: 8px 0 0; color: #9aa7b7; font: 800 11px ui-monospace, monospace; text-transform: uppercase; letter-spacing: .11em; }
.skill-group>div { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group>div span { padding: 10px 13px; border: 1px solid var(--line); color: #dae3ed; font-size: 13px; transition: border-color .2s,background .2s,color .2s; }
.skill-group>div span:hover { border-color: var(--accent); background: var(--accent); color: #071015; }
.skill-footer { margin-top: 42px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; }
.skill-footer strong { display: block; margin-top: 11px; color: #dce4ec; font-size: 15px; line-height: 1.7; }

.contact-section { position: relative; border-top: 1px solid var(--line); background: linear-gradient(135deg,#0d1521,#070b12 68%); }
.contact-section:before { content: "DG"; position: absolute; right: -2vw; bottom: -5vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.045); font-size: 29vw; line-height: .8; font-weight: 900; letter-spacing: -.1em; pointer-events: none; }
.contact-inner { position: relative; z-index: 2; padding-block: 138px 94px; }
.contact-inner h2 span { color: var(--accent); }
.email-link { display: inline-flex; align-items: center; gap: 16px; margin: 50px 0 74px; padding-bottom: 9px; border-bottom: 1px solid rgba(101,223,241,.5); color: #e1e9f1; font-size: clamp(21px,3vw,39px); letter-spacing: -.035em; transition: color .2s,border-color .2s; }
.email-link:hover { color: var(--accent); border-color: var(--accent); }
.contact-grid { padding-top: 31px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.contact-grid span { color: #8d9bad; font: 800 10px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .12em; }
.contact-grid a,.contact-grid p { margin: 10px 0 0; color: #dbe3ec; font-size: 15px; }
.contact-grid a:hover { color: var(--accent); }
.contact-socials { display: flex; gap: 9px; margin-top: 10px; }
.contact-socials a { width: 42px; height: 42px; margin: 0; display: grid; place-items: center; border: 1px solid var(--line-strong); color: #dbe3ec; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.contact-socials a svg { width: 18px; height: 18px; }
.contact-socials a:hover { color: #061015; border-color: var(--accent); background: var(--accent); transform: translateY(-3px); }
footer { min-height: 82px; padding-inline: max(32px,calc((100% - 1240px)/2)); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: #8d9bad; font: 700 11px ui-monospace,monospace; text-transform: uppercase; letter-spacing: .09em; }
footer a:hover { color: var(--accent); }

/* Motion is activated only after JavaScript loads, so content stays visible without it. */
.motion-ready [data-reveal] { opacity: 0; transform: translateY(34px); filter: blur(4px); transition: opacity .78s cubic-bezier(.22,1,.36,1), transform .78s cubic-bezier(.22,1,.36,1),filter .55s ease; }
.motion-ready [data-reveal="left"] { transform: translateX(-24px); }
.motion-ready [data-reveal="scale"] { transform: translateY(18px) scale(.975); }
.motion-ready [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
.motion-ready .timeline-item:nth-child(2),.motion-ready .project-card:nth-child(2),.motion-ready .skill-group:nth-child(2) { transition-delay: .09s; }
.motion-ready .timeline-item:nth-child(3),.motion-ready .skill-group:nth-child(3) { transition-delay: .18s; }

.motion-ready .hero-copy > * { opacity: 0; animation: heroRise .75s cubic-bezier(.22,1,.36,1) forwards; }
.motion-ready .hero-copy > :nth-child(1) { animation-delay: .06s; }
.motion-ready .hero-copy > :nth-child(2) { animation-delay: .14s; }
.motion-ready .hero-copy > :nth-child(3) { animation-delay: .23s; }
.motion-ready .hero-copy > :nth-child(4) { animation-delay: .31s; }
.motion-ready .hero-copy > :nth-child(5) { animation-delay: .39s; }
.motion-ready .hero-copy > :nth-child(6) { animation-delay: .47s; }
.motion-ready .portrait-grid { opacity: 0; animation: fadeIn 1s .18s ease forwards; }
.motion-ready .portrait-frame { opacity: 0; animation: portraitReveal 1s .17s cubic-bezier(.22,1,.36,1) forwards; }
.motion-ready .portrait-index,.motion-ready .portrait-note { opacity: 0; animation: heroRise .7s .52s cubic-bezier(.22,1,.36,1) forwards; }
.motion-ready .hero h1:before { animation: nameSheen 1.1s .72s cubic-bezier(.22,1,.36,1) both; }
.motion-ready .portrait-note { animation: heroRise .7s .52s cubic-bezier(.22,1,.36,1) forwards, noteFloat 4.8s 1.5s ease-in-out infinite; }
.motion-ready .proof-strip > div { opacity: 0; animation: heroRise .65s cubic-bezier(.22,1,.36,1) forwards; }
.motion-ready .proof-strip > div:nth-child(1) { animation-delay: .45s; }
.motion-ready .proof-strip > div:nth-child(2) { animation-delay: .53s; }
.motion-ready .proof-strip > div:nth-child(3) { animation-delay: .61s; }
.motion-ready .proof-strip > div:nth-child(4) { animation-delay: .69s; }

@keyframes heroRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes nameSheen { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes noteFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes portraitReveal { from { opacity: 0; transform: translateY(30px) scale(.96); clip-path: polygon(14% 45%,100% 45%,100% 88%,86% 100%,0 100%,0 55%); } to { opacity: 1; transform: none; clip-path: polygon(14% 0,100% 0,100% 88%,86% 100%,0 100%,0 12%); } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@keyframes speedShift { from { transform: scale(1.4) translateX(0); } to { transform: scale(1.4) translateX(18px); } }
@keyframes audioPulse { to { transform: scaleY(.6); opacity: .65; } }
@keyframes equalize { to { transform: scaleY(1.55); opacity: .58; } }
@keyframes scrollLine { 0%,15% { transform: translateX(-100%); } 55%,70% { transform: translateX(0); } 100% { transform: translateX(100%); } }
@keyframes gridDrift { to { background-position: 72px 72px; } }

.motion-ready .hero:after { animation: gridDrift 18s linear infinite; }
.motion-ready .status-dot { animation: statusPulse 2.4s ease-in-out infinite; }
@keyframes statusPulse { 50% { box-shadow: 0 0 0 9px rgba(120,237,178,.02),0 0 18px rgba(120,237,178,.48); } }

/* Section-specific choreography keeps the page from feeling like one repeated fade. */
.motion-ready .section-label:before { transform: scaleX(0); transform-origin: left; transition: transform .8s .12s cubic-bezier(.22,1,.36,1); }
.motion-ready .section-label.is-visible:before { transform: scaleX(1); }
.motion-ready .timeline-item:before { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: linear-gradient(90deg,var(--accent),transparent 78%); transform: scaleX(0); transform-origin: left; transition: transform 1s .16s cubic-bezier(.22,1,.36,1); }
.motion-ready .timeline-item.is-visible:before { transform: scaleX(1); }
.motion-ready .timeline-item.is-visible .timeline-mark { animation: markPop .6s .18s cubic-bezier(.22,1,.36,1) both; }
@keyframes markPop { 0% { transform: scale(.72) rotate(-5deg); border-color: var(--accent); } 100% { transform: scale(1) rotate(0); } }

.motion-ready .featured-project.is-visible .feature-top,.motion-ready .featured-project.is-visible .feature-body,.motion-ready .featured-project.is-visible .feature-footer,.motion-ready .featured-project.is-visible .feature-tags { animation: projectLayer .75s cubic-bezier(.22,1,.36,1) both; }
.motion-ready .featured-project.is-visible .feature-body { animation-delay: .12s; }
.motion-ready .featured-project.is-visible .feature-footer { animation-delay: .23s; }
.motion-ready .featured-project.is-visible .feature-tags { animation-delay: .32s; }
@keyframes projectLayer { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.motion-ready .skill-group > div span { opacity: 0; transform: translateY(12px) scale(.96); }
.motion-ready .skill-group.is-visible > div span { animation: tagReveal .5s calc(var(--tag-index,0) * 55ms + 130ms) cubic-bezier(.22,1,.36,1) forwards; }
@keyframes tagReveal { to { opacity: 1; transform: none; } }

.motion-ready .email-link { position: relative; border-bottom-color: transparent; }
.motion-ready .email-link:after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .9s .28s cubic-bezier(.22,1,.36,1); }
.motion-ready .email-link.is-visible:after { transform: scaleX(1); }
.motion-ready .proof-strip strong { display: inline-block; animation: numberBreathe 3.8s 1.2s ease-in-out infinite; }
@keyframes numberBreathe { 50% { color: #b9f6ff; text-shadow: 0 0 18px rgba(101,223,241,.28); } }

@media(max-width:980px){
  .site-header{grid-template-columns:1fr auto}.site-header nav{display:none}.hero{grid-template-columns:1fr;gap:38px;padding-top:150px}.portrait-wrap{min-height:530px}.portrait-frame{height:500px;width:365px}.proof-strip{grid-template-columns:1fr 1fr;padding-inline:32px}.proof-strip div:nth-child(3){border-left:1px solid var(--line)}.split-section{grid-template-columns:1fr;gap:38px;padding-block:105px}.projects-heading{margin-left:0}.feature-body{grid-template-columns:1fr;gap:28px}.feature-footer{grid-template-columns:repeat(2,1fr)}.project-grid{grid-template-columns:1fr}
}
@media(max-width:640px){
  .section-shell{width:min(100% - 30px,1240px)}.site-header{top:10px;width:calc(100% - 20px);height:62px;padding-left:13px}.wordmark>span{display:none}.nav-contact{min-height:40px;padding-inline:13px}.hero{padding-top:112px;padding-bottom:58px}.hero h1{font-size:62px;line-height:.84}.eyebrow{font-size:9px;gap:7px}.hero-title{font-size:12px;gap:8px}.hero-intro{font-size:15px}.button{width:100%}.social-row{justify-content:center;font-size:10px}.social-row a{padding:0 10px}.portrait-wrap{min-height:430px}.portrait-frame{width:286px;height:395px}.portrait-note{left:0;bottom:24px}.portrait-index{right:0;top:30px}.proof-strip{padding-inline:15px}.proof-strip div{min-height:105px;padding:18px 14px;gap:10px}.proof-strip strong{font-size:22px}.proof-strip span{font-size:9px}.lead-copy{font-size:29px}.about-grid,.skill-footer,.contact-grid{grid-template-columns:1fr;gap:29px}.projects-section{padding-block:95px}.projects-heading{margin:25px 0 45px;align-items:flex-start;flex-direction:column}.featured-project{min-height:0;padding:25px 21px 28px}.feature-top{align-items:flex-start}.feature-body{margin-top:58px}.feature-body h3{font-size:47px}.project-summary{font-size:15px}.feature-footer{margin-top:46px;grid-template-columns:1fr 1fr;gap:22px}.feature-tags{margin-top:25px}.project-card{min-height:470px;padding:22px}.card-accent{margin-top:54px}.skill-group{grid-template-columns:1fr;gap:15px}.contact-inner{padding-block:95px 70px}.email-link{font-size:19px;overflow-wrap:anywhere}footer{padding-inline:15px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition:none!important}
  .motion-ready [data-reveal],.motion-ready .hero-copy>* ,.motion-ready .portrait-grid,.motion-ready .portrait-frame,.motion-ready .portrait-index,.motion-ready .portrait-note,.motion-ready .proof-strip>div{opacity:1!important;transform:none!important}
  .motion-ready .skill-group>div span{opacity:1!important;transform:none!important}
  .site-root:before{display:none}
}
