:root {
  --ink: #090d0b;
  --panel: #101613;
  --panel-raised: #151c18;
  --line: #2a332e;
  --lime: #b8ff25;
  --lime-deep: #8fdb00;
  --text: #f3f6f4;
  --muted: #919b95;
  --measure: 1180px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(184, 255, 37, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 37, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.hero,
.signal-strip,
.section,
.site-footer {
  width: min(calc(100% - 48px), var(--measure));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 14px; width: max-content; }
.brand-mark { color: var(--lime); font-size: 1.2rem; font-weight: 900; letter-spacing: -0.05em; }
.brand-label { color: var(--muted); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: var(--muted); font-size: 0.875rem; transition: color 180ms ease; }
.site-nav a:hover { color: var(--text); }

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-size: 0.875rem;
  font-weight: 800;
  transition: background-color 180ms ease, transform 180ms ease;
}
.header-cta:hover { background: #cbff61; transform: translateY(-2px); }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  gap: 70px;
  align-items: center;
  min-height: 690px;
  padding-block: 82px 64px;
}

.eyebrow,
.section-index {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow-line { width: 32px; height: 2px; background: var(--lime); }

.hero h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(4.6rem, 9.1vw, 8.2rem);
  font-weight: 850;
  line-height: 0.78;
  letter-spacing: -0.075em;
}
.hero h1 span { color: var(--lime); }

.hero-role {
  margin: 36px 0 14px;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero-role em { color: var(--muted); font-style: normal; font-weight: 500; }
.hero-intro { max-width: 600px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { border-color: var(--lime); color: var(--ink); background: var(--lime); }
.button-primary:hover { background: #cbff61; }
.button-quiet:hover { border-color: var(--muted); }

.hero-visual { position: relative; min-height: 520px; overflow: clip; perspective: 1100px; }
.code-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid #354139;
  border-radius: 22px;
  background: #111713;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
}
.code-card-main {
  top: 18px;
  left: 72px;
  z-index: 2;
  width: 325px;
  min-height: 430px;
  transform: rotateY(-12deg) rotateZ(7deg);
}
.code-card-main header,
.console-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 700 0.7rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; }
.status { color: var(--lime); }
.code-window { display: grid; gap: 18px; padding: 42px 22px; color: #c8d0ca; font: 500 0.78rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-window b { color: #566159; font-weight: 400; }
.code-window .accent { color: var(--lime); }
.code-card-main footer { position: absolute; inset: auto 22px 22px; display: grid; gap: 4px; }
.code-card-main footer span { color: var(--lime); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.14em; }
.code-card-main footer strong { font-size: 1.4rem; }
.code-card-small { right: 2px; bottom: 15px; z-index: 3; display: grid; gap: 14px; width: 245px; padding: 26px; transform: rotateZ(-9deg); }
.mini-label { color: var(--lime); font: 800 0.68rem/1 ui-monospace, Consolas, monospace; letter-spacing: 0.12em; }
.code-card-small strong { font-size: 1.25rem; }
.progress { height: 7px; overflow: hidden; border-radius: 99px; background: #263029; }
.progress i { display: block; width: 76%; height: 100%; background: var(--lime); }
.visual-note { position: absolute; right: 12px; top: 54px; z-index: 4; font-size: 0.9rem; font-weight: 800; line-height: 1.25; transform: rotate(-8deg); }
.visual-note span { color: var(--lime); }
.orbit { position: absolute; z-index: 5; border: 1px solid rgba(184, 255, 37, 0.65); border-radius: 50%; pointer-events: none; }
.orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.orbit-one { top: 95px; left: 2px; width: 470px; height: 170px; transform: rotate(16deg); }
.orbit-one::after { top: 16px; left: 68px; }
.orbit-two { right: 12px; bottom: 44px; width: 390px; height: 130px; transform: rotate(-26deg); }
.orbit-two::after { right: 38px; bottom: 26px; }

.signal-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.avatar-stack { display: flex; }
.avatar-stack span { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -8px; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--lime); font-size: 0.65rem; font-weight: 900; }
.avatar-stack span:first-child { margin-left: 0; }
.signal-strip p { display: flex; gap: 12px; align-items: baseline; margin: 0; }
.signal-strip p span { color: var(--muted); font-size: 0.88rem; }
.signal-pulse { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--lime); border-radius: 50%; }
.signal-pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }

.section { padding-block: 140px; border-bottom: 1px solid var(--line); }
.section-heading h2,
.experience h2,
.project h2 { margin: 0; font-size: clamp(2.6rem, 5.8vw, 5.4rem); font-weight: 760; line-height: 0.98; letter-spacing: -0.06em; }
.section-heading h2 span,
.experience h2 span,
.project h2 span { color: var(--lime); }
.section-heading.compact { max-width: 830px; }

.profile { display: grid; grid-template-columns: 1.45fr 0.8fr; gap: 90px 70px; }
.profile-copy { padding-top: 48px; }
.profile-copy p { margin: 0 0 18px; color: var(--muted); font-size: 1rem; }
.profile-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.profile-stats article { display: grid; gap: 8px; padding: 30px 34px; border-right: 1px solid var(--line); }
.profile-stats article:last-child { border-right: 0; }
.profile-stats strong { color: var(--lime); font-size: 2.4rem; line-height: 1; letter-spacing: -0.04em; }
.profile-stats span { color: var(--muted); font-size: 0.85rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; margin-top: 82px; }
.expertise-card { display: grid; grid-template-rows: auto 1fr auto; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-right: 0; background: rgba(9, 13, 11, 0.85); }
.expertise-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.expertise-card:last-child { border-right: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
.expertise-card.featured { margin: -24px 0; padding-block: 52px; border: 0; color: var(--ink); background: var(--lime); }
.card-number { color: var(--lime); font-weight: 850; }
.featured .card-number { color: var(--ink); }
.expertise-card h3 { max-width: 210px; margin: 54px 0 14px; font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.03em; }
.expertise-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.featured p { color: #354000; }
.card-tag, .card-link { align-self: end; width: max-content; margin-top: 32px; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.card-link { color: var(--ink); border-bottom: 1px solid var(--ink); }

.experience { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; }
.experience-aside { position: sticky; top: 40px; align-self: start; }
.experience-aside > p:last-child { max-width: 440px; margin-top: 28px; color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: 30px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline-meta { display: flex; gap: 14px; align-items: center; color: var(--lime); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-meta i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.timeline h3 { margin: 0 0 10px; font-size: 1.32rem; line-height: 1.3; }
.timeline p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.project { display: grid; grid-template-columns: 1fr 0.9fr; gap: 100px; align-items: center; }
.project-console { overflow: hidden; min-height: 410px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); transform: rotate(-2deg); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.console-body { display: flex; flex-direction: column; justify-content: space-between; min-height: 350px; padding: 42px; }
.console-kicker { color: var(--lime); font: 800 0.72rem/1 ui-monospace, Consolas, monospace; letter-spacing: 0.15em; }
.console-body strong { font-size: clamp(2.2rem, 4.5vw, 4.2rem); line-height: 0.98; letter-spacing: -0.055em; }
.console-metrics { display: flex; gap: 10px; }
.console-metrics span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.project-copy > p:not(.section-index) { max-width: 520px; margin: 28px 0 32px; color: var(--muted); }

.sources-intro { max-width: 640px; margin: 28px 0 0; color: var(--muted); }
.source-list { margin-top: 70px; border-top: 1px solid var(--line); }
.source-list > a { display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center; min-height: 100px; border-bottom: 1px solid var(--line); transition: padding 180ms ease, background-color 180ms ease; }
.source-list > a:hover { padding-inline: 14px; background: rgba(184, 255, 37, 0.035); }
.source-index { color: var(--lime); font-size: 0.76rem; font-weight: 850; }
.source-list a > span:nth-child(2) { display: grid; }
.source-list strong { font-size: 1.05rem; }
.source-list small, .source-domain { color: var(--muted); font-size: 0.82rem; }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 150px; color: var(--muted); font-size: 0.82rem; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { justify-self: end; color: var(--text); }

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 600ms ease; }
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--panel); font: inherit; font-size: 0.82rem; }
  .site-nav { position: absolute; top: 78px; right: 0; display: none; flex-direction: column; align-items: flex-start; width: min(280px, calc(100vw - 48px)); padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45); }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-visual { width: min(100%, 540px); margin: 0 auto; }
  .profile, .experience, .project { grid-template-columns: 1fr; gap: 65px; }
  .profile-copy { padding-top: 0; }
  .experience-aside { position: static; }
  .expertise-grid { grid-template-columns: 1fr; gap: 14px; }
  .expertise-card, .expertise-card:first-child, .expertise-card:last-child { min-height: 260px; border: 1px solid var(--line); border-radius: var(--radius); }
  .expertise-card.featured { margin: 0; padding-block: 28px; }
}

@media (max-width: 620px) {
  body { background-size: 48px 48px; }
  .site-header, .hero, .signal-strip, .section, .site-footer { width: min(calc(100% - 32px), var(--measure)); }
  .site-header { min-height: 76px; }
  .brand-label { display: none; }
  .site-nav { top: 65px; width: calc(100vw - 32px); }
  .hero { min-height: auto; padding-block: 66px 34px; }
  .hero h1 { font-size: clamp(4rem, 21vw, 6.4rem); line-height: 0.8; }
  .hero-role { margin-top: 28px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 420px; transform: scale(0.82); transform-origin: top center; margin-bottom: -70px; }
  .code-card-main { left: 50%; transform: translateX(-56%) rotateY(-8deg) rotateZ(6deg); }
  .code-card-small { right: -30px; }
  .orbit-one { left: -100px; }
  .orbit-two { right: -120px; }
  .signal-strip { grid-template-columns: auto 1fr; }
  .signal-strip p { display: grid; gap: 0; }
  .signal-pulse { display: none; }
  .section { padding-block: 92px; }
  .section-heading h2, .experience h2, .project h2 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .profile-stats { grid-template-columns: 1fr; }
  .profile-stats article { border-right: 0; border-bottom: 1px solid var(--line); }
  .profile-stats article:last-child { border-bottom: 0; }
  .expertise-grid { margin-top: 52px; }
  .timeline li { grid-template-columns: 1fr; gap: 12px; }
  .project-console { min-height: 360px; }
  .console-body { min-height: 300px; padding: 30px 24px; }
  .source-list > a { grid-template-columns: 42px 1fr; padding-block: 22px; }
  .source-domain { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr auto; gap: 20px; padding-block: 30px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
