
:root {
  --bg:        #08090b;
  --bg-2:      #0c0d10;
  --surface:   #0f1014;
  --card:      rgba(15, 16, 20, 0.018);
  --card-hover: rgba(7, 8, 11, 0.016);
  --card-blur: 5px;
  --line:      #1a1c21;
  --line-2:    #24262c;
  --text:      #e6e7ea;
  --text-2:    #a1a3a9;
  --muted:     #6a6c73;
  --dim:       #45474d;
  --accent:    #a3e635;   /* lime — used sparingly */
  --accent-2:  #c6f76d;
  --warn:      #f59e0b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease:      cubic-bezier(.2,.7,.2,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);

  --gutter:    clamp(20px, 4vw, 64px);
  --max:       1240px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(163, 230, 53, 0.025), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(120, 160, 220, 0.02), transparent 60%),
    var(--bg);
}

::selection { background: rgba(163, 230, 53, .25); color: #fff; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
}

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--text); }

/* ----------------------------------------------------------
   global decoration
---------------------------------------------------------- */
#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, .nav, .foot { position: relative; z-index: 2; }

/* ----------------------------------------------------------
   nav
---------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px var(--gutter);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 11, 0.55);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--text);
}
.nav__logo svg { stroke: var(--text-2); stroke-width: 1; fill: var(--text); transition: all .3s var(--ease); }
.nav__logo:hover svg { stroke: var(--accent); fill: var(--accent); }

.nav__links {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.nav__links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-2);
}
.nav__links a::before {
  content: attr(data-label);
  margin-right: 8px;
  color: var(--dim);
  transition: color .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::before { color: var(--accent); }

.nav__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 16, 20, .6);
}

/* burger */
.nav__burger {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  background: rgba(15, 16, 20, .55);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav__burger:hover { border-color: var(--text-2); }
.nav__burger span {
  position: absolute;
  left: 10px;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transform-origin: center;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav.is-open .nav__burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: 17px; transform: rotate(-45deg); }
.nav.is-open .nav__burger { border-color: var(--accent); }

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(163, 230, 53, .6);
  animation: pulse 2.2s var(--ease) infinite;
}
.status-dot--inline { display: inline-block; margin-right: 8px; vertical-align: 1px; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

/* ----------------------------------------------------------
   hero
---------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100dvh - 64px);
  padding: clamp(60px, 10vh, 120px) var(--gutter) clamp(80px, 14vh, 160px);
  display: flex;
  align-items: center;
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.hero__main { min-width: 0; max-width: 760px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(15, 16, 20, .5);
}
.kicker--muted { color: var(--muted); border-color: var(--line); background: transparent; }

.hero__name {
  font-size: clamp(48px, 9.5vw, 132px);
  line-height: .96;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0 0 28px;
}
.hero__name .reveal {
  display: block;
  overflow: hidden;
}
.hero__name .reveal > span {
  display: block;
  transform: translateY(105%);
  animation: rise .9s var(--ease-out) forwards;
}
.hero__name .reveal:nth-child(2) > span { animation-delay: .08s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__role {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.hero__role .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.hero__desc {
  max-width: 580px;
  color: var(--text);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}

.hero__summary {
  max-width: 580px;
  color: var(--text-2);
  font-size: clamp(14.5px, 1.2vw, 16px);
  line-height: 1.6;
}

/* CTA buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  background: rgba(15, 16, 20, .55);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.cta svg { transition: transform .25s var(--ease); flex-shrink: 0; }
.cta:hover {
  border-color: var(--text-2);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}
.cta:hover svg { transform: scale(1.08); }
.cta--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}
.cta--primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #0a0a0a;
}
.cta--primary:hover svg { transform: scale(1.08); }


.scroll-cue {
  position: absolute;
  right: 0;
  bottom: -56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .15em;
  color: var(--muted);
  text-transform: uppercase;
  grid-column: 1 / -1;
  justify-self: end;
}
.scroll-cue svg { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.scroll-cue:hover { color: var(--text); }

/* ----------------------------------------------------------
   sections
---------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}

.section__head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(40px, 6vh, 64px);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
}

.section__rule {
  height: 1px;
  background: linear-gradient(to right, var(--line) 0%, var(--line) 60%, transparent 100%);
}

/* ----------------------------------------------------------
   about
---------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.about__lede {
  display: grid;
  gap: 22px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-2);
  max-width: 56ch;
}
.about__lede em { color: var(--text); font-weight: 500; }

/* single glass surface — children stay transparent so backdrop shows through */
.about__side,
.work,
.highlights,
.projects,
.stack,
.contact__list {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

.about__side {
  display: flex;
  flex-direction: column;
}

.kv__head {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.kv {
  display: grid;
  gap: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}
.kv li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
  background: transparent;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.kv li:last-child { border-bottom: none; }
.kv__k { color: var(--muted); }
.kv__v { color: var(--text); }

/* ----------------------------------------------------------
   work
---------------------------------------------------------- */
.work { display: grid; gap: 0; }
.work__item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 32px);
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.work__item:last-child { border-bottom: none; }
.work__item:hover { background: rgba(255, 255, 255, 0.035); }
.work__when {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.work__year { color: var(--text); }
.work__role {
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}
.work__org {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 18px;
}
.work__points {
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: var(--text-2);
}
.work__points li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}
.work__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--line-2);
}
.work__points strong { color: var(--text); font-weight: 500; }

/* ----------------------------------------------------------
   projects
---------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.project {
  background: transparent;
  padding: clamp(28px, 3.5vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.project:nth-child(2n) { border-right: none; }
.project:nth-last-child(-n+2) { border-bottom: none; }
.project::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 0;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transition: height .6s var(--ease);
  opacity: .6;
}
.project:hover { background: rgba(255, 255, 255, 0.035); }
.project:hover::after { height: 100%; }

.project__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.project__link {
  color: var(--text-2);
  transition: color .25s var(--ease);
}
.project__link:hover { color: var(--accent); }
.project__link--muted { color: var(--dim); }

.project__title {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  color: var(--text);
}
.project__sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}
.project__desc {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.project__bullets {
  display: grid;
  gap: 8px;
  color: var(--text-2);
  font-size: 14.5px;
  border-top: 1px dashed var(--line-2);
  padding-top: 18px;
}
.project__bullets li {
  position: relative;
  padding-left: 18px;
}
.project__bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--dim);
  font-size: 10px;
  top: 4px;
}
.project__bullets strong { color: var(--text); font-weight: 500; }
.project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.project__tags li {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  background: rgba(0,0,0,.15);
}

/* ----------------------------------------------------------
   stack
---------------------------------------------------------- */
.stack {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stack__col {
  background: transparent;
  padding: clamp(24px, 3vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stack__col:nth-child(4n) { border-right: none; }
.stack__col:nth-last-child(-n+4) { border-bottom: none; }
.stack__h {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.stack__list { display: grid; gap: 8px; }
.stack__list li {
  font-size: 14px;
  color: var(--text-2);
  transition: color .2s var(--ease), padding-left .3s var(--ease);
  cursor: default;
}
.stack__list li:hover {
  color: var(--text);
  padding-left: 6px;
}

/* ----------------------------------------------------------
   contact
---------------------------------------------------------- */
.section--contact { padding-bottom: clamp(100px, 14vh, 160px); }

.contact {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.contact__lede {
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text);
  max-width: 32ch;
  line-height: 1.5;
}
.contact__list {
  display: grid;
  gap: 0;
}
.contact__list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: center;
  background: transparent;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.contact__list li:last-child { border-bottom: none; }
.contact__list li:hover { background: rgba(255, 255, 255, 0.035); }
.contact__k { color: var(--muted); }
.contact__v { color: var(--text); transition: color .25s var(--ease); }
.contact__v:hover { color: var(--accent); }

/* ----------------------------------------------------------
   highlights
---------------------------------------------------------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}
.highlight {
  background: transparent;
  padding: clamp(26px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.highlight:nth-child(2n) { border-right: none; }
.highlight:nth-last-child(-n+2) { border-bottom: none; }
.highlight::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  transition: width .6s var(--ease);
  opacity: .55;
}
.highlight:hover { background: rgba(255, 255, 255, 0.035); }
.highlight:hover::after { width: 100%; }

.highlight__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: .06em;
}
.highlight__title {
  font-size: clamp(18px, 1.9vw, 21px);
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.highlight__desc {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ----------------------------------------------------------
   project visuals
---------------------------------------------------------- */
.project__viz {
  margin: 6px 0 8px;
  padding: 18px 16px;
  background: rgba(0,0,0, 0.22);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.project__viz svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 320px;
}

/* ----------------------------------------------------------
   footer
---------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 24px var(--gutter);
}
.foot__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.foot__meta { color: var(--dim); }

/* ----------------------------------------------------------
   reveal-on-scroll
---------------------------------------------------------- */
.section, .project, .work__item {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.section.is-in,
.project.is-in,
.work__item.is-in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------
   responsive
---------------------------------------------------------- */
@media (max-width: 960px) {
  .nav { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav__links { gap: 18px; overflow-x: auto; }
  .nav__links a::before { display: none; }

  .about, .contact { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work__item { grid-template-columns: 1fr; }
  .work__when { flex-direction: row; gap: 14px; }

  .project,
  .highlight {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .project:nth-last-child(-n+2),
  .highlight:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .project:last-child,
  .highlight:last-child { border-bottom: none; }

  .stack__col:nth-child(4n) { border-right: 1px solid var(--line); }
  .stack__col:nth-child(2n) { border-right: none; }
  .stack__col:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .stack__col:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 600px) {
  .nav__status { display: none; }
  .stack { grid-template-columns: 1fr; }

  .stack__col {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stack__col:nth-child(2n) { border-right: none; }
  .stack__col:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stack__col:last-child { border-bottom: none; }
  .scroll-cue { display: none; }
  .kv li, .contact__list li { grid-template-columns: 80px 1fr; }
  .cta { padding: 10px 14px; font-size: 12.5px; }
  .foot__inner { flex-direction: column; gap: 6px; align-items: flex-start; }
}

/* burger nav (phone) */
@media (max-width: 720px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__burger { display: block; justify-self: end; }

  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 18px;
    background: rgba(8, 9, 11, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity .2s var(--ease),
      transform .25s var(--ease),
      visibility 0s linear .25s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity .25s var(--ease),
      transform .3s var(--ease-out),
      visibility 0s linear 0s;
  }
  .nav__links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-2);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__links a::before {
    display: inline-block;
    margin-right: 12px;
    color: var(--dim);
  }
  .nav__links a:hover::before { color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .hero__name .reveal > span { transform: none; }
}
