* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0b0f12;
  --panel: #121a1e;
  --panel-2: #172329;
  --line: #2a3a3e;
  --text: #f5f1e7;
  --text-dim: #b5c0bb;
  --text-muted: #75827d;
  --amber: #ffb547;
  --violet: #f27d68;
  --green: #6fe3b2;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { position: relative; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.6; }
body::before, body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before { background: radial-gradient(ellipse 60% 40% at calc(15% + var(--pointer-x, 0px)) var(--pointer-y, 0px), rgba(242, 125, 104, .13), transparent 60%), radial-gradient(ellipse 50% 35% at 100% 20%, rgba(111, 227, 178, .09), transparent 60%); animation: atmosphere-drift 18s ease-in-out infinite alternate; }
body::after { opacity: .2; background-image: linear-gradient(rgba(111, 227, 178, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 227, 178, .08) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%); mask-image: linear-gradient(to bottom, black, transparent 72%); animation: grid-drift 24s linear infinite; }
@keyframes atmosphere-drift { from { transform: scale(1) translate3d(-1%, -1%, 0); } to { transform: scale(1.06) translate3d(1%, 1%, 0); } }
@keyframes grid-drift { to { background-position: 72px 72px; } }
.backdrop-streams { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: .62; }
.backdrop-streams .stream { position: absolute; top: -35%; width: 1px; height: 170%; background: linear-gradient(to bottom, transparent, rgba(255, 181, 71, .5) 35%, rgba(111, 227, 178, .18) 65%, transparent); transform: translate3d(0, var(--scroll-shift, 0px), 0); transition: transform .2s linear; }
.backdrop-streams .stream::after { content: attr(data-label); position: absolute; top: 48%; left: .7rem; color: rgba(255, 181, 71, .42); font: .65rem/1 var(--mono); letter-spacing: .15em; writing-mode: vertical-rl; }
.backdrop-streams .stream:nth-child(1) { left: 12%; opacity: .45; }
.backdrop-streams .stream:nth-child(2) { left: 67%; height: 145%; opacity: .28; transform: translate3d(0, calc(var(--scroll-shift, 0px) * -1), 0); }
.backdrop-streams .stream:nth-child(3) { left: 88%; opacity: .34; }
main, footer { position: relative; z-index: 1; }
a { color: var(--amber); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { color: var(--text); font-family: var(--display); font-weight: 700; }
p { color: var(--text-dim); }

.site-header { position: fixed; top: 1.1rem; left: 50%; z-index: 1000; display: flex; width: min(920px, 92vw); align-items: center; justify-content: space-between; padding: .7rem .8rem .7rem 1.2rem; border: 1px solid var(--line); border-radius: 100px; background: rgba(20, 18, 32, .72); backdrop-filter: blur(14px); transform: translateX(-50%); }
.site-header.scrolled { border-color: rgba(255, 182, 39, .3); background: rgba(20, 18, 32, .9); box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.logo { color: var(--text); font-family: var(--display); font-size: 1.05rem; font-weight: 700; }
.logo span { color: var(--amber); }
nav { display: flex; align-items: center; gap: 1.6rem; }
nav a { position: relative; color: var(--text-dim); font-size: .88rem; font-weight: 500; transition: color .2s ease; }
nav a:hover { color: var(--text); }
nav a:not(.nav-cta)::after { content: ''; position: absolute; right: 0; bottom: -.45rem; left: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
nav a:not(.nav-cta):hover::after, nav a.active:not(.nav-cta)::after { transform: scaleX(1); transform-origin: left; }
nav a.active:not(.nav-cta) { color: var(--text); }
.nav-cta { padding: .55rem 1.2rem; border-radius: 100px; background: var(--amber); color: #1a1400 !important; font-weight: 600; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--text); cursor: pointer; font: inherit; }

section { width: min(1180px, 100%); margin: 0 auto; padding: 6.5rem 2rem; }
.js section:not(.hero) { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js section.is-visible { opacity: 1; transform: translateY(0); }
.js .reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--reveal-delay, 0ms); }
.js .is-visible .reveal-item { opacity: 1; transform: translateY(0); }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 3rem; padding-top: 10.5rem; padding-bottom: 5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.6rem; padding: .4rem .9rem .4rem .6rem; border: 1px solid var(--line); border-radius: 100px; color: var(--text-dim); font-family: var(--mono); font-size: .78rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
.hero h1 { font-size: clamp(2.8rem, 8.6vw, 6.4rem); letter-spacing: -.03em; line-height: .92; }
.hero-role { max-width: 480px; margin-top: 1.4rem; color: var(--text-dim); font-size: clamp(1rem, 1.9vw, 1.2rem); font-weight: 500; }
.hero-role strong { color: var(--text); }
.tag-list, .social-links, .button-row { display: flex; flex-wrap: wrap; }
.tag-list { gap: .55rem; margin: 1.8rem 0; }
.tag-list span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text-dim); font-family: var(--mono); font-size: .78rem; }
.button-row { gap: .9rem; margin-top: .5rem; }
.button { display: inline-flex; align-items: center; padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 100px; font-size: .92rem; font-weight: 600; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button-fill { background: var(--amber); color: #1a1400; }
.button-fill:hover { background: #ffc352; transform: translateY(-2px); }
.button-outline { border-color: var(--line); color: var(--text); }
.button-outline:hover { border-color: var(--amber); color: var(--amber); }
.social-links { gap: 1.4rem; margin-top: 2rem; }
.social-links a { color: var(--text-dim); font-size: .88rem; font-weight: 500; }
.social-links a:hover { color: var(--amber); }

.terminal-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); transition: transform .4s ease, border-color .3s ease; }
.terminal-card:hover { border-color: rgba(255, 182, 39, .55); transform: translateY(-5px) rotateX(1deg) rotateY(-1deg); }
.terminal-bar { display: flex; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.terminal-bar span { width: 9px; height: 9px; border-radius: 50%; }
.terminal-bar span:nth-child(1) { background: #ff5f57; }
.terminal-bar span:nth-child(2) { background: #febc2e; }
.terminal-bar span:nth-child(3) { background: #28c840; }
.terminal-body { padding: 1.4rem; font-family: var(--mono); font-size: .82rem; line-height: 1.85; }
.terminal-body em { color: var(--violet); font-style: normal; }
.terminal-body b { color: var(--amber); }
.terminal-body strong { color: var(--green); font-weight: 400; }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: .15rem; background: var(--amber); vertical-align: middle; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; color: var(--amber); font-family: var(--mono); font-size: .8rem; }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.heading { margin-bottom: .75rem; font-size: clamp(2rem, 4.4vw, 3rem); }
.lede { max-width: 560px; margin-bottom: 3rem; font-size: 1.05rem; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 3.5rem; }
.about-grid p + p { margin-top: 1rem; }
.about-grid strong { color: var(--text); }
.portrait-frame { position: relative; overflow: hidden; margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 18px 6px 18px 6px; background: var(--panel); box-shadow: 0 22px 48px rgba(0, 0, 0, .22); }
.portrait-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 182, 39, .08), transparent 45%); pointer-events: none; }
.portrait-frame img { display: block; width: 100%; height: 210px; object-fit: cover; object-position: center 22%; filter: saturate(.82) contrast(1.04); transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .4s ease; }
.portrait-frame:hover img { transform: scale(1.045); filter: saturate(1) contrast(1.04); }
.portrait-frame figcaption { position: relative; z-index: 1; display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; background: rgba(20, 18, 32, .9); color: var(--text-dim); font-family: var(--mono); font-size: .7rem; }
.portrait-status { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 220, 151, .13); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0; }
.stat, .focus-box, .skill-card { border: 1px solid var(--line); background: var(--panel); }
.stat { padding: 1.1rem 1rem; border-radius: 14px 4px 14px 4px; }
.stat-label { margin-bottom: .4rem; color: var(--text-muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.stat-value { color: var(--amber); font-size: 1.05rem; font-weight: 700; }
.focus-box { padding: 1.6rem; border-radius: 16px; }
.focus-box h3 { margin-bottom: 1rem; font-size: 1rem; }
.focus-box ul { list-style: none; }
.focus-box li { padding: .5rem 0; border-top: 1px solid var(--line); color: var(--text-dim); font-size: .92rem; }
.focus-box li:first-child { border-top: 0; }
.panel-section { border-radius: 32px; background: var(--panel); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.skill-card { padding: 1.6rem; border-radius: 14px; background: var(--bg); }
.skill-mark { display: inline-grid; width: 2.2rem; height: 2.2rem; place-items: center; margin-bottom: 1rem; border: 1px solid rgba(255, 182, 39, .3); border-radius: 8px; background: rgba(255, 182, 39, .08); color: var(--amber); font-family: var(--mono); font-size: .7rem; font-weight: 700; transition: transform .35s ease, background .35s ease; }
.skill-card:hover .skill-mark { background: rgba(140, 124, 240, .16); transform: rotate(-7deg) translateY(-2px); }
.skill-card h3 { margin-bottom: 1rem; font-size: .98rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { padding: .32rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); color: var(--text-dim); font-family: var(--mono); font-size: .76rem; }
.timeline { position: relative; padding-left: 2.1rem; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 5px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 2.6rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; top: .35rem; left: -2.1rem; width: 7px; height: 7px; border: 2px solid var(--amber); border-radius: 50%; background: var(--bg); }
.timeline-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: .35rem; }
.timeline-head h3 { font-size: 1.1rem; }
.company { color: var(--amber); font-size: .92rem; font-weight: 600; }
.timeline time { color: var(--text-muted); font-family: var(--mono); font-size: .8rem; white-space: nowrap; }
.timeline-item p { max-width: 640px; margin: .6rem 0 .8rem; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.timeline-tags span { padding: .25rem .55rem; border: 1px solid rgba(255, 182, 39, .25); border-radius: 5px; background: rgba(255, 182, 39, .08); color: var(--amber); font-family: var(--mono); font-size: .72rem; }
.feature-card { overflow: hidden; margin-bottom: 2.5rem; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.feature-bar { display: flex; align-items: center; gap: .4rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.feature-bar > span { width: 9px; height: 9px; border-radius: 50%; }
.feature-bar > span:nth-child(1) { background: #ff5f57; }
.feature-bar > span:nth-child(2) { background: #febc2e; }
.feature-bar > span:nth-child(3) { background: #28c840; }
.feature-bar code { margin-left: .5rem; color: var(--text-muted); font-family: var(--mono); font-size: .76rem; }
.feature-body { padding: 2.4rem; }
.project-visual { position: relative; overflow: hidden; margin: 0 0 2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.project-visual img { display: block; width: 100%; max-height: 300px; object-fit: cover; object-position: center; opacity: .88; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .4s ease; }
.project-visual:hover img { opacity: 1; transform: scale(1.025); }
.project-visual figcaption { position: absolute; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .15rem; padding: .65rem .8rem; border: 1px solid rgba(255, 182, 39, .25); border-radius: 8px; background: rgba(11, 10, 18, .82); backdrop-filter: blur(8px); }
.project-visual figcaption span { color: var(--text); font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.project-visual figcaption small { color: var(--text-muted); font-size: .68rem; }
.live-badge { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.1rem; padding: .3rem .7rem; border: 1px solid rgba(61, 220, 151, .3); border-radius: 100px; background: rgba(61, 220, 151, .08); color: var(--green); font-family: var(--mono); font-size: .74rem; }
.live-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.feature-body h3 { margin-bottom: .25rem; font-size: 1.6rem; }
.feature-subtitle { margin-bottom: 1.2rem; color: var(--amber); font-size: .95rem; font-weight: 600; }
.feature-lead { max-width: 680px; margin-bottom: 1.6rem; }
.callout { margin: 1.6rem 0; padding: 1.4rem 1.5rem; border-left: 3px solid var(--amber); border-radius: 8px; background: var(--bg); }
.callout h4 { margin-bottom: .9rem; font-family: var(--display); font-size: .95rem; }
.callout ul { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 2rem; list-style: none; }
.callout li { position: relative; padding-left: 1.3rem; color: var(--text-dim); font-size: .92rem; }
.callout li::before { content: '-'; position: absolute; left: 0; color: var(--amber); }
.subhead { margin: 1.6rem 0 .8rem; color: var(--text-muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.project-actions { margin-top: 1.8rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.project-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: border-color .2s ease, transform .2s ease; }
.project-card:hover { border-color: var(--amber); transform: translateY(-5px); }
.project-card h3 { margin: .55rem 0 .5rem; font-size: 1.05rem; }
.project-card p { margin-bottom: 1rem; font-size: .9rem; }
.project-type { color: var(--amber); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.approach-grid article { padding: 1.7rem; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; background: var(--panel); }
.approach-grid h3 { margin-bottom: .7rem; color: var(--violet); font-size: 1rem; }
.approach-grid p { font-size: .92rem; }
.credential-group + .credential-group { margin-top: 2.6rem; }
.credential-group > h3 { margin-bottom: 1.3rem; color: var(--amber); font-size: 1rem; }
.credential-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.credential-grid article { padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.credential-grid h4 { margin-bottom: .25rem; font-size: .94rem; }
.credential-grid p { margin-bottom: .4rem; color: var(--amber); font-size: .82rem; }
.credential-grid time { color: var(--text-muted); font-family: var(--mono); font-size: .75rem; }
.contact-top { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-top .heading { margin-bottom: 0; }
.contact-top > p { max-width: 340px; margin: 0; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.contact-grid > div { display: flex; flex-direction: column; gap: .5rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.contact-grid small { color: var(--text-muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.contact-grid a, .contact-grid strong { color: var(--amber); font-size: .98rem; font-weight: 600; }
.contact-form { max-width: 640px; }
.contact-form > label { display: block; margin-bottom: 1.3rem; color: var(--text); font-size: .85rem; font-weight: 500; }
.contact-form input:not([type='hidden']), .contact-form textarea { display: block; width: 100%; margin-top: .5rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: .94rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--amber); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
footer { margin-top: 3rem; padding: 3rem 2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; max-width: 1180px; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; margin: 0 auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-links a { color: var(--text-dim); font-size: .88rem; }
.footer-inner > p { width: 100%; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--text-muted); font-family: var(--mono); font-size: .78rem; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 8rem; } }
@media (max-width: 860px) {
  nav { position: absolute; top: calc(100% + .7rem); left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
  nav.active { display: flex; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .stat-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .callout ul { grid-template-columns: 1fr; } .feature-body { padding: 1.5rem; } }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } .js section:not(.hero), .js .reveal-item { opacity: 1; transform: none; } .backdrop-streams { display: none; } }
