:root {
  --ink: #111a1d;
  --muted: #5d696b;
  --paper: #f2f0e9;
  --paper-deep: #e7e4da;
  --night: #0a1215;
  --night-soft: #111d20;
  --line: rgba(17, 26, 29, 0.16);
  --line-light: rgba(255, 255, 255, 0.14);
  --accent: #b8f253;
  --accent-dark: #7db516;
  --cyan: #83e6dc;
  --shell: min(1180px, calc(100vw - 48px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

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

.section-shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #f7f8f2;
  background: rgba(10, 18, 21, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.site-nav { display: flex; align-items: center; gap: 30px; }

.site-nav a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }

.site-nav .nav-cta {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fff;
}

.menu-button {
  display: none;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding-block: clamp(72px, 10vw, 138px);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 76px 0 auto;
  height: calc(100vh - 76px);
  min-height: 680px;
  content: "";
  background:
    radial-gradient(circle at 78% 38%, rgba(131, 230, 220, 0.1), transparent 28%),
    linear-gradient(115deg, transparent 0 54%, rgba(255, 255, 255, 0.025) 54% 54.15%, transparent 54.15% 100%),
    var(--night);
}

.hero-copy { color: #f7f8f2; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--accent); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(184, 242, 83, 0.12);
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(58px, 7.3vw, 108px);
  line-height: 0.94;
}

h1 em { color: var(--accent); font-weight: 400; }

.hero-lede {
  max-width: 710px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary { color: var(--night); background: var(--accent); }
.button-primary:hover { background: #ccff72; }
.button-secondary { border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.button-secondary:hover { border-color: rgba(255, 255, 255, 0.5); }

.availability {
  max-width: 710px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.architecture-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.3);
}

.terminal-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.terminal-bar small { margin-left: auto; color: rgba(255, 255, 255, 0.38); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.system-map { position: relative; height: 370px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }

.map-node {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 108px;
  min-height: 44px;
  padding: 8px 12px;
  place-items: center;
  border: 1px solid rgba(131, 230, 220, 0.28);
  color: rgba(255, 255, 255, 0.76);
  background: #102125;
}

.map-client { top: 34px; left: 50%; transform: translateX(-50%); }
.map-api { top: 111px; left: 50%; transform: translateX(-50%); }
.map-workflow { top: 188px; left: 50%; border-color: var(--accent); color: var(--accent); transform: translateX(-50%); }
.map-events { bottom: 38px; left: 16%; }
.map-data { right: 16%; bottom: 38px; }

.map-line, .map-branch { position: absolute; z-index: 1; background: rgba(131, 230, 220, 0.26); }
.line-a { top: 78px; left: 50%; width: 1px; height: 33px; }
.line-b { top: 155px; left: 50%; width: 1px; height: 33px; }
.branch-a, .branch-b { top: 232px; width: 1px; height: 60px; transform-origin: top; }
.branch-a { left: 49%; transform: rotate(39deg); }
.branch-b { right: 49%; transform: rotate(-39deg); }

.architecture-note {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.architecture-note strong { color: #fff; font-weight: 700; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--ink);
  background: var(--accent);
}

.proof-strip div { padding: 26px clamp(22px, 3.2vw, 54px); border-right: 1px solid rgba(10, 18, 21, 0.18); }
.proof-strip div:last-child { border: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.proof-strip span { margin-top: 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; }

.content-section { padding-block: clamp(92px, 11vw, 160px); }

.section-heading { display: grid; grid-template-columns: 1fr 1.65fr; column-gap: 48px; align-items: start; margin-bottom: 62px; }
.section-heading .eyebrow { grid-row: 1 / span 2; }
.section-heading h2 { margin-bottom: 20px; font-size: clamp(43px, 5.7vw, 76px); line-height: 1; }
.section-heading > p:last-child { max-width: 660px; color: var(--muted); font-size: 18px; }

.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.capability-card {
  position: relative;
  min-height: 390px;
  padding: clamp(30px, 4vw, 54px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-number { display: block; margin-bottom: 72px; color: var(--accent-dark); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.capability-card h3 { margin-bottom: 16px; font-size: 27px; letter-spacing: -0.035em; }
.capability-card p { max-width: 520px; color: var(--muted); }
.capability-card ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 28px 0 0; padding: 0; list-style: none; }
.capability-card li, .tag-row span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; }

.work-section { color: #eef4ee; background: var(--night); }
.section-heading-light > p:last-child { color: rgba(255, 255, 255, 0.55); }
.work-list { border-top: 1px solid var(--line-light); }
.work-item { display: grid; grid-template-columns: 0.7fr 1.8fr 1fr; gap: 42px; padding: 44px 0; border-bottom: 1px solid var(--line-light); }
.work-meta span { display: block; color: rgba(255, 255, 255, 0.45); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.work-meta span + span { margin-top: 5px; }
.work-item h3 { margin-bottom: 12px; font-size: clamp(23px, 2.7vw, 36px); line-height: 1.15; letter-spacing: -0.035em; }
.work-item p { margin: 0; color: rgba(255, 255, 255, 0.58); }
.tag-row { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; }
.tag-row span { border-color: var(--line-light); color: rgba(255, 255, 255, 0.66); }

.repo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.repo-card { display: flex; min-height: 360px; padding: 34px; flex-direction: column; border: 1px solid var(--line); text-decoration: none; transition: transform 180ms ease, background 180ms ease; }
.repo-card:hover, .repo-card:focus-visible { background: var(--paper-deep); transform: translateY(-5px); }
.repo-icon { display: grid; width: 46px; height: 46px; margin-bottom: 54px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent-dark); font-size: 21px; }
.repo-card h3 { margin-bottom: 14px; font-size: 24px; letter-spacing: -0.03em; }
.repo-card p { color: var(--muted); }
.repo-link { margin-top: auto; padding-top: 28px; font-size: 13px; font-weight: 800; }
.text-link { display: inline-flex; gap: 10px; margin-top: 32px; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.experience-section { background: var(--paper-deep); }
.experience-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 8vw, 130px); }
.experience-layout .section-heading { display: block; margin: 0; }
.experience-layout .section-heading h2 { font-size: clamp(46px, 5vw, 70px); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.timeline-item > span { color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { font-size: 19px; }
.timeline-item small { margin-top: 5px; color: var(--muted); font-size: 14px; }

.contact-section { padding-block: clamp(90px, 12vw, 170px); color: #fff; background: var(--night); }
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(48px, 9vw, 140px); align-items: end; }
.contact-layout h2 { max-width: 760px; margin: 0; font-size: clamp(50px, 7vw, 92px); line-height: 0.98; }
.contact-copy p { color: rgba(255, 255, 255, 0.6); }
.email-link { display: inline-flex; gap: 14px; margin-top: 25px; color: var(--accent); font: 400 clamp(22px, 3vw, 35px) Georgia, "Times New Roman", serif; text-decoration: none; }
.social-links { display: flex; gap: 20px; margin-top: 48px; }
.social-links a { color: rgba(255, 255, 255, 0.7); font-size: 13px; font-weight: 800; text-underline-offset: 5px; }

.site-footer { display: flex; justify-content: space-between; padding-block: 25px; color: var(--muted); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }

.reveal { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero::before { min-height: 1100px; }
  .architecture-card { width: min(520px, 100%); }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid rgba(10, 18, 21, 0.18); }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading .eyebrow { grid-row: auto; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-card { min-height: 280px; }
  .work-item { grid-template-columns: 0.55fr 1.45fr; }
  .work-item .tag-row { grid-column: 2; }
  .experience-layout, .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 32px, 1180px); }
  .site-header { min-height: 66px; padding-inline: 16px; }
  .brand > span:last-child { display: none; }
  .menu-button { display: block; }
  .site-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 22px 16px 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    border-bottom: 1px solid var(--line-light);
    background: var(--night);
  }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; padding-block: 84px; }
  .hero::before { inset-block-start: 66px; min-height: 1170px; }
  h1 { font-size: clamp(50px, 16vw, 76px); }
  .architecture-note { display: block; }
  .architecture-note strong { display: block; margin-top: 6px; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid rgba(10, 18, 21, 0.18); }
  .section-heading { margin-bottom: 42px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { min-height: auto; }
  .card-number { margin-bottom: 42px; }
  .work-item { grid-template-columns: 1fr; gap: 18px; }
  .work-item .tag-row { grid-column: auto; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .email-link { font-size: 21px; }
  .social-links { flex-wrap: wrap; }
  .site-footer { gap: 15px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
