:root {
  --navy: #0f172a;
  --navy-light: #16213a;
  --slate: #94a3b8;
  --slate-light: #cbd5e1;
  --white: #e2e8f0;
  --teal: #5eead4;
  --teal-dark: rgba(45, 212, 191, 0.1);
  --max-width: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--slate);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
strong { color: var(--slate-light); font-weight: 500; }
::selection { background: rgba(94, 234, 212, 0.25); color: var(--white); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  border-radius: 0.25rem;
  background: var(--teal);
  color: var(--navy);
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }
.spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--x, 50%) var(--y, 0%), rgba(29, 78, 216, 0.14), transparent 78%);
}

.page-shell {
  width: min(var(--max-width), 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 5rem;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(440px, 1.08fr);
  gap: 6rem;
}
.intro {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 6rem 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.brand { display: inline-block; }
h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.65rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.intro h2 {
  margin: 0.85rem 0 0;
  color: var(--slate-light);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}
.tagline { max-width: 22rem; margin: 1rem 0 0; line-height: 1.5; }

.section-nav { margin-top: 4.5rem; }
.section-nav a {
  width: max-content;
  margin: 1.1rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.section-nav a span {
  display: block;
  width: 2rem;
  height: 1px;
  background: #475569;
  transition: width 0.25s, background 0.25s;
}
.section-nav a:hover, .section-nav a.active { color: var(--white); }
.section-nav a:hover span, .section-nav a.active span { width: 4rem; background: var(--white); }

.socials { display: flex; gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.socials a { display: block; color: var(--slate); transition: color 0.2s, transform 0.2s; }
.socials a:hover { color: var(--white); transform: translateY(-2px); }
.socials svg { display: block; width: 1.35rem; height: 1.35rem; fill: currentColor; }

.content-column { padding: 6rem 0; }
.section { padding-bottom: 8rem; scroll-margin-top: 5rem; }
.mobile-heading {
  display: none;
  margin: 0 0 2rem;
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.prose p { margin: 0 0 1.15rem; }
.prose a, .contact-link { color: var(--slate-light); font-weight: 500; transition: color 0.2s; }
.prose a:hover, .contact-link:hover { color: var(--teal); }

.card-list { margin: 0; padding: 0; list-style: none; }
.card-list > li { margin-bottom: 1rem; }
.card {
  position: relative;
  display: grid;
  margin: 0 -1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(148, 163, 184, 0.05);
  box-shadow: 0 14px 30px -18px rgba(2, 6, 23, 0.8);
}
.card:hover h3 a { color: var(--teal); }
.card:hover .arrow { display: inline-block; transform: translate(3px, -3px); }
.experience-card { grid-template-columns: 8rem 1fr; gap: 1.5rem; }
.date { margin: 0.2rem 0 0; color: #64748b; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.card h3 { margin: 0; color: var(--slate-light); font-size: 0.92rem; line-height: 1.4; font-weight: 500; }
.card p:not(.date) { margin: 0.55rem 0 0; font-size: 0.82rem; line-height: 1.55; }
.arrow { transition: transform 0.2s; }
.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.tags li { border-radius: 999px; background: var(--teal-dark); color: var(--teal); padding: 0.25rem 0.7rem; font-size: 0.67rem; font-weight: 500; }
.placeholder-card { opacity: 0.74; }
.text-link { display: inline-block; margin-top: 1.5rem; color: var(--slate-light); font-size: 0.85rem; font-weight: 600; }
.text-link::after { content: ""; display: block; width: 100%; height: 1px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.2s; }
.text-link:hover::after { transform: scaleX(1); }

.project-card { grid-template-columns: 9.5rem 1fr; gap: 1.5rem; }
.project-visual {
  position: relative;
  height: 5.75rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.3rem;
  background: #17233d;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover .project-visual { border-color: rgba(94, 234, 212, 0.35); transform: translateY(-2px); }
.visual-serverless { display: grid; place-items: center; background: radial-gradient(circle at 75% 20%, rgba(94,234,212,.32), transparent 36%), linear-gradient(135deg,#16223a,#111b30); }
.visual-serverless::before, .visual-serverless::after { content: ""; position: absolute; width: 6rem; height: 6rem; border: 1px solid rgba(94,234,212,.13); transform: rotate(45deg); }
.visual-serverless::after { width: 3rem; height: 3rem; }
.visual-serverless span { z-index: 1; color: var(--teal); font-size: 2rem; font-weight: 600; }
.visual-observability { display: flex; align-items: end; justify-content: center; gap: 0.45rem; padding: 1.25rem; background: linear-gradient(160deg,#101b30,#1b2944); }
.visual-observability i { width: 12%; border-radius: 2px 2px 0 0; background: linear-gradient(var(--teal), #2563eb); opacity: .7; }
.visual-observability i:nth-child(1) { height: 35%; }.visual-observability i:nth-child(2) { height: 65%; }.visual-observability i:nth-child(3) { height: 48%; }.visual-observability i:nth-child(4) { height: 82%; }
.visual-portfolio { display: grid; place-items: center; background: linear-gradient(135deg, rgba(94,234,212,.18), transparent 55%), #17233d; }
.visual-portfolio span { color: var(--white); font-size: 1.3rem; font-weight: 700; letter-spacing: -.08em; }

.contact { padding-bottom: 7rem; }
.contact p { max-width: 32rem; margin: 0 0 1rem; }
.contact-link { font-size: 1.05rem; }
footer { max-width: 28rem; color: #64748b; font-size: 0.72rem; line-height: 1.6; }
footer p { margin: 0 0 0.75rem; }
.draft-note { color: #7890ad; }

@media (max-width: 900px) {
  .page-shell { display: block; padding: 0 3rem; }
  .intro { position: static; height: auto; padding: 5rem 0 6rem; }
  .section-nav { display: none; }
  .socials { margin-top: 2.2rem; }
  .content-column { padding: 0 0 5rem; }
  .section { padding-bottom: 6rem; }
  .mobile-heading { display: block; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .spotlight { display: none; }
  .page-shell { padding: 0 1.5rem; }
  .intro { padding: 3rem 0 5rem; }
  h1 { font-size: 2.2rem; }
  .intro h2 { font-size: 1.05rem; }
  .tagline { max-width: 18rem; }
  .section { padding-bottom: 5rem; scroll-margin-top: 1rem; }
  .mobile-heading { position: sticky; top: 0; z-index: 10; margin: 0 -1.5rem 1.5rem; padding: 1rem 1.5rem; background: rgba(15,23,42,.88); backdrop-filter: blur(10px); }
  .card { margin: 0 -0.75rem; padding: 1rem 0.75rem; }
  .experience-card { display: block; }
  .date { margin-bottom: 0.5rem; }
  .project-card { display: flex; flex-direction: column-reverse; gap: 1rem; }
  .project-visual { width: 12rem; height: 6.5rem; }
}

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