:root {
  --ink: #f3f0e8;
  --paper: #0c1020;
  --paper-soft: #141a2d;
  --paper-deep: #080b17;
  --muted: #aeb7cc;
  --faint: #737e9a;
  --line: rgba(192, 207, 235, .17);
  --lime: #c9f06b;
  --orange: #ffad70;
  --blue: #71d7e8;
  --violet: #b9a2ff;
  --width: min(1180px, calc(100% - 48px));
  --head: "Space Grotesk", sans-serif;
  --body: Inter, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(circle at 84% 4%, rgba(113, 215, 232, .12), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(185, 162, 255, .08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
.container { margin: auto; width: var(--width); }

main section { border-top: 1px solid var(--line); overflow: hidden; padding: 128px 0; position: relative; }
main section::after {
  border: 1px solid rgba(113, 215, 232, .12);
  border-radius: 50%;
  content: "";
  height: 22rem;
  pointer-events: none;
  position: absolute;
  right: -11rem;
  top: 8rem;
  width: 22rem;
}
main section:first-child { border-top: 0; }
.eyebrow {
  align-items: center;
  color: var(--blue);
  display: flex;
  font: 600 .7rem/1 var(--mono);
  gap: .7rem;
  letter-spacing: .16em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}
.eyebrow::before { background: var(--blue); content: ""; height: 1px; width: 28px; }
h1, h2, h3 { color: var(--ink); font-family: var(--head); letter-spacing: -.055em; line-height: 1.04; }
h1 { font-size: clamp(3.5rem, 7vw, 7rem); max-width: 760px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); max-width: 820px; }
h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
p { color: var(--muted); font-size: 1.03rem; }

nav {
  background: rgba(12, 16, 32, .8);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  transition: .25s ease;
  z-index: 99;
}
nav.scrolled { background: rgba(12, 16, 32, .96); border-color: var(--line); }
.nav-container { align-items: center; display: flex; justify-content: space-between; min-height: 76px; }
.logo { align-items: center; color: var(--ink); display: inline-flex; font: 700 1.15rem var(--head); gap: .65rem; text-decoration: none; }
.terminal-mark {
  align-items: center;
  color: var(--lime);
  display: inline-flex;
  font: 700 .88rem/1 var(--mono);
  justify-content: center;
  letter-spacing: -.14em;
  padding-bottom: .08rem;
}
.nav-links { display: flex; gap: 1.7rem; list-style: none; }
.nav-links a { color: var(--muted); font-size: .84rem; position: relative; text-decoration: none; transition: color .2s ease; }
.nav-links a::after { background: var(--blue); bottom: -.45rem; content: ""; height: 1px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: 100%; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.mobile-toggle { background: transparent; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); cursor: pointer; display: none; height: 2.7rem; width: 2.7rem; }

.hero { background: linear-gradient(120deg, transparent 45%, rgba(201, 240, 107, .05)); min-height: calc(100vh - 76px); padding: clamp(80px, 12vh, 150px) 0 110px; }
.hero-grid { align-items: end; display: grid; gap: clamp(3rem, 9vw, 8rem); grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr); }
.hero-copy { position: relative; }
.hero h1 { margin-bottom: 1.6rem; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 610px; }
.hero-note { align-items: center; color: var(--faint); display: flex; font: .75rem var(--mono); gap: .75rem; margin: 2.2rem 0 1.8rem; max-width: 490px; }
.hero-note span { color: var(--orange); }
.hero-context { border-left: 2px solid var(--blue); margin-bottom: .4rem; padding: 1rem 0 0 1.6rem; }
.context-kicker { color: var(--blue); font: .65rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.context-quote { color: var(--ink); font: 500 clamp(1.35rem, 2.3vw, 2rem)/1.15 var(--head); margin: 1.3rem 0 2.5rem; max-width: 310px; }
.context-list { display: grid; gap: .9rem; }
.context-list div { align-items: baseline; border-top: 1px solid var(--line); display: flex; gap: .8rem; padding-top: .65rem; }
.context-list span { color: var(--lime); font: .65rem var(--mono); }.context-list p { font-size: .85rem; }
.typing-block { border-left: 1px solid var(--lime); display: flex; flex-direction: column; gap: .35rem; margin: 2.3rem 0 1.8rem; padding: .1rem 0 .1rem 1rem; }
.typing-label { color: var(--faint); font: .65rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.typing-text { color: var(--lime); font: 600 1rem var(--mono); min-height: 1.5rem; }
.hero-meta, .skills, .project-tech { display: flex; flex-wrap: wrap; gap: .55rem; }
.hero-meta { margin-bottom: 2.2rem; }
.hero-aside { align-self: start; border-left: 1px solid var(--line); margin-top: 2.6rem; padding-left: 1.5rem; }
.aside-rule { background: var(--lime); height: 1px; margin-bottom: 1.5rem; width: 34px; }
.aside-label, .aside-details dt { color: var(--faint); font: .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.aside-title { color: var(--ink); font: 600 clamp(1.25rem, 2vw, 1.65rem)/1.15 var(--head); margin: .7rem 0 2rem; max-width: 240px; }
.aside-details { display: grid; gap: 1rem; margin-bottom: 2rem; }
.aside-details div { border-top: 1px solid var(--line); padding-top: .65rem; }
.aside-details dd { color: var(--muted); font-size: .83rem; margin-top: .25rem; }
.aside-link { align-items: center; color: var(--lime); display: inline-flex; font: 600 .78rem var(--mono); gap: .45rem; text-decoration: none; transition: color .3s ease; }
.aside-link:hover { color: var(--ink); }.aside-link .lucide { height: .9rem; width: .9rem; }
.meta-pill, .skill { border: 1px solid var(--line); color: var(--muted); font-size: .75rem; padding: .35rem .65rem; }
.meta-pill:first-child { border-color: rgba(197,232,108,.45); color: var(--lime); }
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn { align-items: center; background: var(--lime); border: 1px solid var(--lime); color: #18200b; display: inline-flex; font-weight: 700; gap: .65rem; padding: .85rem 1.2rem; text-decoration: none; transition: .25s var(--ease); }
.btn:hover, .btn:focus-visible { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn .lucide { height: 1rem; width: 1rem; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--paper-soft); border-color: var(--lime); color: var(--lime); }

.signal-panel { aspect-ratio: 1 / 1.06; border: 1px solid var(--line); overflow: hidden; position: relative; }
.signal-panel::before { background: linear-gradient(135deg, rgba(197,232,108,.1), transparent 45%), linear-gradient(315deg, rgba(240,161,92,.08), transparent 45%); content: ""; inset: 0; position: absolute; }
.network-svg { height: 100%; inset: 0; opacity: .82; position: absolute; width: 100%; }
.network-svg path { fill: none; stroke: var(--lime); stroke-linecap: round; stroke-width: 1; }
.network-svg circle { fill: var(--paper); stroke: var(--lime); stroke-width: 1.5; }
.floating-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; padding: .7rem .85rem; position: absolute; }
.card-label { color: var(--orange); font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.floating-card strong { font: 600 1rem var(--head); }
.card-one { left: 8%; top: 12%; }.card-two { right: 8%; top: 43%; }.card-three { bottom: 12%; left: 38%; }

.about { background: linear-gradient(135deg, rgba(185, 162, 255, .08), transparent 46%), var(--paper-soft); }
.about-grid, .contact-grid { align-items: start; display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr); }
.about-copy p { margin-bottom: 1rem; max-width: 650px; }
.skills { margin-top: 2rem; }
.skill { background: rgba(243,240,232,.03); }
.about-notes { border-left: 2px solid var(--violet); padding-left: 1.5rem; }
.about-notes > div { border-top: 1px solid var(--line); display: grid; gap: .35rem; padding: 1rem 0; }
.about-notes strong { color: var(--ink); font: 600 1.05rem var(--head); }.about-notes span { color: var(--muted); font-size: .85rem; }
.about-panel, .contact-panel { border: 1px solid var(--line); padding: 1.4rem; }
.mini-stack { display: grid; gap: .35rem; margin-bottom: 1.4rem; }
.stack-row { align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); display: flex; font-size: .85rem; gap: .7rem; padding: .7rem 0; }
.stack-dot, .signal-node { border-radius: 50%; display: inline-block; height: .55rem; width: .55rem; }
.dot-gold { background: var(--orange); }.dot-blue { background: var(--blue); }.dot-rose { background: var(--lime); }
.panel-orbit { border: 1px solid var(--line); border-radius: 50%; position: absolute; }
.orbit-one { height: 210px; width: 210px; }.orbit-two { border-color: rgba(197,232,108,.5); height: 135px; width: 135px; }
.panel-core { align-items: center; background: var(--lime); color: var(--paper); display: grid; height: 68px; justify-items: center; width: 68px; z-index: 1; }.panel-core .lucide { height: 1.6rem; width: 1.6rem; }

.section-heading { display: flex; justify-content: space-between; margin-bottom: 3.5rem; }
.section-heading h2 { max-width: 730px; }
.expertise-grid { display: grid; gap: 0; grid-template-columns: repeat(3, 1fr); }
.expertise-card { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 2rem 1.5rem 2.2rem; transition: background .4s ease, color .4s ease; }
.expertise-card:nth-child(3n) { border-right: 0; }.expertise-card:nth-child(-n+3) { border-top: 1px solid var(--line); }
.expertise-card:nth-child(3n + 1) h3 { color: var(--lime); }
.expertise-card:nth-child(3n + 2) h3 { color: var(--blue); }
.expertise-card:nth-child(3n) h3 { color: var(--orange); }
.expertise-card:hover { background: rgba(113, 215, 232, .1); }
.expertise-icon { color: var(--lime); margin-bottom: 1.5rem; }.expertise-icon .lucide { height: 1.5rem; width: 1.5rem; }
.expertise-card h3 { font-size: 1.3rem; margin-bottom: .75rem; }.expertise-card p { font-size: .9rem; }

.projects { background: linear-gradient(160deg, rgba(255, 173, 112, .08), transparent 50%), var(--paper-soft); }
.projects-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.project-card { border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .4s ease, transform .4s var(--ease), background .4s ease; }
.project-card:nth-child(2) { transform: translateY(1.5rem); }
.project-card:nth-child(2):hover { transform: translateY(1rem); }
.project-card:hover { background: rgba(255, 173, 112, .12); border-color: rgba(255, 173, 112, .7); transform: translateY(-6px); }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }.project-content h3 { font-size: 1.5rem; margin-bottom: .75rem; }.project-content p { font-size: .9rem; margin-bottom: 1.4rem; }.project-tech { margin-top: auto; }.project-tech span { border: 1px solid var(--line); color: var(--faint); font: .65rem var(--mono); padding: .3rem .5rem; }
.project-number { color: var(--orange); font: .7rem var(--mono) !important; margin-bottom: 2.5rem !important; }

.contact h2 { margin-bottom: 1.25rem; }.contact-copy > p { margin-bottom: 2rem; max-width: 540px; }
.contact-details { border-left: 2px solid var(--lime); padding: 1rem 0 0 1.5rem; }.contact-lead { color: var(--ink); font: 500 1.35rem/1.2 var(--head); margin: 1.2rem 0 3rem; max-width: 330px; }.contact-email { align-items: center; border-bottom: 1px solid var(--line); color: var(--lime); display: flex; font: .78rem var(--mono); justify-content: space-between; padding-bottom: .8rem; text-decoration: none; transition: color .3s ease, border-color .3s ease; }.contact-email:hover { border-color: var(--ink); color: var(--ink); }.contact-email .lucide { height: .9rem; width: .9rem; }
footer { border-top: 1px solid var(--line); padding: 6rem 0 2rem; }.footer-shell { display: grid; gap: 4rem; grid-template-columns: 1.1fr .9fr; }.footer-intro h2 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 600px; }.footer-side { align-self: end; }.footer-email { align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); display: flex; font: 600 1.05rem var(--head); justify-content: space-between; padding: .8rem 0 1rem; text-decoration: none; transition: color .3s ease, border-color .3s ease; }.footer-email:hover { border-color: var(--lime); color: var(--lime); }.footer-email .lucide { height: 1.1rem; width: 1.1rem; }.footer-bottom { align-items: center; display: flex; justify-content: space-between; padding-top: 2rem; }.social-links { display: flex; gap: .5rem; }.social-link { align-items: center; border: 1px solid var(--line); color: var(--muted); display: grid; height: 2.2rem; justify-items: center; transition: color .3s ease, border-color .3s ease; width: 2.2rem; }.social-link:hover { border-color: var(--lime); color: var(--lime); }.social-link .lucide { height: 1rem; width: 1rem; }.copyright { color: var(--faint); font: .65rem var(--mono); margin-top: 4rem; text-align: center; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 800px) {
  :root { --width: min(100% - 32px, 620px); }
  .nav-links { background: var(--paper); border: 1px solid var(--line); display: none; flex-direction: column; gap: 0; padding: .6rem; position: absolute; right: 16px; top: 68px; width: 190px; }
  .nav-links.active { display: flex; }.nav-links a { display: block; padding: .65rem .7rem; }.nav-links a::after { display: none; }.mobile-toggle { display: grid; place-items: center; }
  .hero { min-height: auto; padding-top: 90px; }.hero-grid, .about-grid, .contact-grid, .footer-shell { grid-template-columns: 1fr; }.hero-context, .about-notes, .contact-details { margin-top: 2rem; max-width: 480px; }.hero-visual { margin: 1rem auto 0; max-width: 520px; width: 100%; }
  .section-heading { display: block; }.section-heading h2 { margin-top: 1rem; }.expertise-grid, .projects-grid { grid-template-columns: 1fr 1fr; }.expertise-card:nth-child(3n) { border-right: 1px solid var(--line); }.expertise-card:nth-child(2n) { border-right: 0; }.expertise-card:nth-child(3) { border-top: 0; }.expertise-card:nth-child(4) { border-top: 1px solid var(--line); }
  .project-card:nth-child(2), .project-card:nth-child(2):hover { transform: none; }
}
@media (max-width: 520px) {
  main section { padding: 88px 0; }.hero-btns .btn { flex: 1; }.expertise-grid, .projects-grid { grid-template-columns: 1fr; }.expertise-card, .expertise-card:nth-child(3n), .expertise-card:nth-child(2n) { border-right: 0; border-top: 0; }.expertise-card:first-child { border-top: 1px solid var(--line); }.projects-grid { gap: 1.2rem; }.footer-shell { align-items: start; gap: 2.5rem; }.footer-bottom { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }.reveal { opacity: 1; transform: none; transition: none; }.btn, .project-card { transition: none; }
}
