/*
  Original portfolio design for Jerald Bucud.
  Dark technical/editorial direction inspired by modern developer portfolios.
*/

:root {
  --bg: #070907;
  --bg-soft: #0c0f0c;
  --panel: #101410;
  --panel-strong: #151a15;
  --line: rgba(238, 244, 234, 0.17);
  --line-strong: rgba(238, 244, 234, 0.34);
  --text: #edf2e9;
  --muted: #9aa398;
  --dim: #687067;
  --acid: #c9ff45;
  --cyan: #6ae4da;
  --orange: #ff8a4c;
  --purple: #ae8cff;
  --danger: #ff6b6b;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shell: 1240px;
  --header-height: 78px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(201, 255, 69, 0.07), transparent 24rem),
    radial-gradient(circle at 10% 42%, rgba(106, 228, 218, 0.045), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--acid);
  color: #080a07;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--acid);
  background: var(--bg);
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 12px;
  text-decoration: none;
}

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

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 255, 69, 0.055), transparent 67%);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 130px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: var(--header-height);
}

.section-code,
.mono-label {
  margin: 0;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.section-code::before {
  content: '[ ';
  color: var(--dim);
}

.section-code::after {
  content: ' ]';
  color: var(--dim);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 9, 7, .82);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-symbol {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.05em;
}

.brand-dot {
  color: var(--acid);
}

.brand-role {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::before {
  content: '• ';
  color: var(--acid);
}

.nav-links .nav-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.nav-links .nav-cta:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: #080a07;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform .25s ease;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: calc(var(--header-height) + 46px) 0 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid-bg,
.map-grid,
.contact-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .26;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 82%);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 20px rgba(201, 255, 69, .7);
}

.hero-orbit-one {
  top: 9%;
  right: -14%;
  width: 620px;
  height: 620px;
}

.hero-orbit-one::before {
  top: 31%;
  left: 2.4%;
}

.hero-orbit-one::after {
  right: 14%;
  bottom: 12%;
}

.hero-orbit-two {
  top: 18%;
  right: -4%;
  width: 430px;
  height: 430px;
  border-style: dashed;
}

.hero-orbit-two::before {
  top: 4%;
  right: 29%;
  background: var(--cyan);
}

.hero-orbit-two::after {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(201, 255, 69, .55);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(201, 255, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 255, 69, 0); }
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  min-height: 600px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 68px 64px 4px;
  border-right: 1px solid var(--line);
}

.hero h1 {
  max-width: 900px;
  margin: 28px 0 28px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(58px, 7.3vw, 112px);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .9;
}

.hero h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 242, 233, .78);
}

.hero-lead {
  max-width: 710px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.75;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 500;
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .25s var(--ease), border-color .25s ease, background .25s ease, color .25s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-solid {
  border-color: var(--acid);
  background: var(--acid);
  color: #080a07;
}

.button-ghost:hover {
  border-color: var(--text);
  background: var(--text);
  color: #080a07;
}

.hero-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 48px 48px;
}

.identity-frame {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid var(--line-strong);
  background: rgba(10, 13, 10, .78);
  box-shadow: 34px 34px 0 rgba(201, 255, 69, .035);
}

.identity-index {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.portrait-shell {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  place-items: end center;
  background:
    linear-gradient(160deg, rgba(201,255,69,.11), transparent 44%),
    radial-gradient(circle at center, #222a20, #0b0e0b 65%);
}

.portrait-rings {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(201,255,69,.38);
  border-radius: 50%;
}

.portrait-rings::before,
.portrait-rings::after {
  content: '';
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.portrait-rings::before {
  inset: 12%;
}

.portrait-rings::after {
  inset: 28%;
  border-style: dashed;
}

.portrait {
  position: relative;
  z-index: 2;
  width: 82%;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 8% 8%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.04);
}

.identity-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}

.identity-copy div {
  display: grid;
  gap: 4px;
}

.identity-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.identity-copy strong {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}

.identity-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--acid);
}

.hero-metrics {
  display: grid;
  grid-template-columns: .75fr .9fr .75fr 1.4fr;
  border-top: 1px solid var(--line);
}

.metric {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 24px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
}

.metric-value span {
  color: var(--acid);
}

.metric-label,
.metric-kicker {
  max-width: 210px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.metric-wide {
  justify-content: center;
  gap: 14px;
  background: linear-gradient(120deg, rgba(201,255,69,.06), transparent 75%);
}

.metric-statement {
  max-width: 300px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.25;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  color: #080a07;
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 26px;
  min-height: 49px;
  padding-right: 26px;
  animation: ticker 26s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.ticker-track i {
  font-style: normal;
}

@keyframes ticker {
  to { transform: translateX(-50%); }
}

.section-intro {
  max-width: 940px;
  margin-bottom: 78px;
}

.section-intro h2,
.contact-copy h2 {
  margin: 24px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}

.section-intro h2 em,
.contact-copy h2 em {
  color: var(--acid);
  font-style: normal;
}

.section-intro-split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.35fr .65fr;
  align-items: end;
  gap: 80px;
}

.section-side-copy {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.about {
  background: linear-gradient(180deg, rgba(201,255,69,.025), transparent 35%);
}

.about-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 100px;
}

.about-main {
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.about-main p {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.about-main .large-copy {
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(24px, 2.7vw, 38px);
  letter-spacing: -.035em;
  line-height: 1.35;
}

.profile-facts {
  border-top: 1px solid var(--line-strong);
}

.fact-row {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.fact-row span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.fact-row strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.stack {
  background: #090c09;
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(440px, .95fr) 1.05fr;
  gap: 60px;
  align-items: stretch;
}

.system-map {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: radial-gradient(circle at center, rgba(201,255,69,.06), transparent 43%);
}

.map-grid {
  opacity: .28;
  background-size: 44px 44px;
  mask-image: none;
}

.system-core,
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.system-core {
  z-index: 4;
  display: grid;
  width: 215px;
  height: 215px;
  align-content: center;
  place-items: center;
  border: 1px solid var(--acid);
  background: #0b0e0b;
  box-shadow: 0 0 80px rgba(201,255,69,.09);
}

.core-eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.system-core strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: .98;
  text-align: center;
}

.orbit {
  border: 1px solid var(--line);
  animation: rotate 40s linear infinite;
}

.orbit span {
  position: absolute;
  display: grid;
  min-width: 62px;
  min-height: 28px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #0b0e0b;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
  transform: translate(-50%, -50%);
}

.orbit-a {
  width: 310px;
  height: 310px;
}

.orbit-a span:nth-child(1) { top: 0; left: 50%; }
.orbit-a span:nth-child(2) { top: 100%; left: 50%; }

.orbit-b {
  width: 440px;
  height: 440px;
  border-style: dashed;
  animation-direction: reverse;
  animation-duration: 54s;
}

.orbit-b span:nth-child(1) { top: 13%; left: 15%; }
.orbit-b span:nth-child(2) { top: 48%; left: 100%; }
.orbit-b span:nth-child(3) { top: 91%; left: 28%; }

.orbit-c {
  width: 560px;
  height: 560px;
  animation-duration: 70s;
}

.orbit-c span:nth-child(1) { top: 10%; left: 77%; }
.orbit-c span:nth-child(2) { top: 66%; left: 98%; }
.orbit-c span:nth-child(3) { top: 96%; left: 44%; }
.orbit-c span:nth-child(4) { top: 40%; left: 1%; }

@keyframes rotate {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.stack-groups {
  border-top: 1px solid var(--line-strong);
}

.stack-group {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  min-height: 118px;
  padding: 23px 8px;
  border-bottom: 1px solid var(--line);
  transition: padding .25s var(--ease), background .25s ease;
}

.stack-group:hover {
  padding-left: 22px;
  background: rgba(201,255,69,.035);
}

.stack-number {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
}

.stack-group h3 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -.03em;
}

.stack-group p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .035em;
  line-height: 1.7;
}

.work {
  background: #070907;
}

.case-study {
  display: grid;
  grid-template-columns: 115px minmax(0, 1fr) minmax(330px, .75fr);
  gap: 44px;
  padding: 54px 0;
  border-top: 1px solid var(--line-strong);
}

.case-study + .case-study {
  border-top-color: var(--line);
}

.case-index {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.case-index span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .11em;
  line-height: 1.5;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.case-index strong {
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: -.08em;
}

.case-copy {
  padding-right: 20px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.case-meta span,
.support-status {
  padding: 6px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.case-copy > h3 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 500;
  letter-spacing: -.065em;
  line-height: .98;
}

.case-copy > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.case-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.case-details span {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.case-details p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tech-pills li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .04em;
}

.text-link {
  display: inline-flex;
  gap: 18px;
  margin-top: 30px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--acid);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.architecture-card,
.score-card,
.incident-card {
  align-self: stretch;
  min-height: 485px;
  border: 1px solid var(--line-strong);
  background: #0b0e0b;
}

.architecture-header,
.score-top,
.incident-top {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.architecture-body {
  position: relative;
  height: calc(100% - 42px);
  min-height: 440px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(237,242,233,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,242,233,.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

.arch-node {
  position: absolute;
  z-index: 3;
  display: grid;
  min-width: 145px;
  gap: 4px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  background: #0e120e;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}

.arch-node span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  font-weight: 400;
}

.node-client { top: 34px; left: 30px; border-color: rgba(201,255,69,.6); }
.node-api { top: 170px; right: 30px; border-color: rgba(106,228,218,.6); }
.node-data { right: 30px; bottom: 36px; }
.node-offline { left: 30px; bottom: 70px; border-style: dashed; }

.arch-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  background: var(--line-strong);
  transform-origin: left center;
}

.line-one { top: 105px; left: 145px; width: 190px; transform: rotate(28deg); }
.line-two { top: 250px; right: 96px; width: 140px; transform: rotate(90deg); }

.arch-sync {
  position: absolute;
  bottom: 145px;
  left: 50%;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: #0b0e0b;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 7px;
  transform: translateX(-50%);
}

.score-card {
  padding-bottom: 18px;
  background: radial-gradient(circle at 50% 42%, rgba(106,228,218,.07), transparent 42%), #0b0e0b;
}

.score-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.score-ring {
  display: grid;
  width: 210px;
  height: 210px;
  margin: 34px auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b0e0b 56%, transparent 57%),
    conic-gradient(var(--cyan) 0 82%, rgba(106,228,218,.1) 82% 100%);
}

.score-ring > div {
  display: grid;
  text-align: center;
}

.score-ring strong {
  font-family: var(--font-display);
  font-size: 66px;
  font-weight: 400;
  letter-spacing: -.08em;
  line-height: .9;
}

.score-ring span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.score-bars {
  display: grid;
  gap: 15px;
  padding: 0 24px;
}

.score-bars div {
  display: grid;
  gap: 6px;
}

.score-bars span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.score-bars i {
  position: relative;
  display: block;
  height: 3px;
  background: var(--line);
}

.score-bars i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  background: var(--cyan);
}

.score-note {
  margin-top: 20px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 7px;
  text-align: center;
  text-transform: uppercase;
}

.incident-card {
  background: #0b0e0b;
}

.incident-top span:last-child {
  color: var(--orange);
}

.incident-map {
  position: relative;
  height: 330px;
  overflow: hidden;
  background:
    linear-gradient(45deg, transparent 48%, rgba(255,138,76,.08) 49%, transparent 51%),
    linear-gradient(-45deg, transparent 48%, rgba(255,138,76,.06) 49%, transparent 51%),
    radial-gradient(circle at center, rgba(255,138,76,.05), transparent 48%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}

.map-radar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,138,76,.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.map-radar::before,
.map-radar::after {
  content: '';
  position: absolute;
  inset: 25%;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.map-radar::after {
  inset: 49% -30%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.map-point {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 18px var(--orange);
}

.point-one { top: 25%; left: 32%; }
.point-two { top: 52%; right: 28%; }
.point-three { bottom: 22%; left: 46%; }

.incident-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.incident-stats div {
  display: grid;
  gap: 5px;
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}

.incident-stats div:last-child { border-right: 0; }

.incident-stats strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.incident-stats span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.supporting-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 100px 0 28px;
}

.supporting-heading h3 {
  max-width: 620px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.045em;
}

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

.support-card {
  position: relative;
  min-height: 380px;
  padding: 30px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 55%);
  transition: background .25s ease;
}

.support-card:hover {
  background: linear-gradient(145deg, rgba(201,255,69,.07), transparent 58%);
}

.support-number {
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -.06em;
}

.support-status {
  position: absolute;
  top: 30px;
  right: 30px;
}

.support-card h3 {
  margin: 66px 0 15px;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -.045em;
}

.support-card > p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.support-links a {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.support-card-next {
  background:
    linear-gradient(135deg, rgba(174,140,255,.08), transparent 60%),
    repeating-linear-gradient(-45deg, transparent, transparent 11px, rgba(237,242,233,.02) 11px, rgba(237,242,233,.02) 12px);
}

.journey {
  background: #090c09;
}

.timeline {
  position: relative;
  border-top: 1px solid var(--line-strong);
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 187px;
  width: 1px;
  background: var(--line);
}

.timeline-entry {
  display: grid;
  grid-template-columns: 160px 55px 1fr;
  min-height: 190px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -.04em;
}

.timeline-marker {
  position: relative;
}

.timeline-marker::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 21px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: var(--bg-soft);
}

.timeline-entry > div:last-child {
  padding-left: 30px;
}

.timeline-type {
  margin: 0 0 12px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.timeline-entry h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 37px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.timeline-entry p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact {
  border-bottom: 0;
}

.contact-panel {
  position: relative;
  display: grid;
  min-height: 580px;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 18% 20%, rgba(201,255,69,.11), transparent 24rem),
    #0b0e0b;
}

.contact-grid {
  opacity: .2;
  mask-image: none;
}

.contact-copy,
.contact-actions {
  position: relative;
  z-index: 2;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  border-right: 1px solid var(--line);
}

.contact-copy h2 {
  font-size: clamp(48px, 6vw, 78px);
}

.contact-copy > p:last-child {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--muted);
}

.contact-actions {
  display: grid;
  align-content: center;
}

.contact-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 20px;
  min-height: 145px;
  align-content: center;
  padding: 30px 38px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background .25s ease;
}

.contact-link:hover {
  background: rgba(201,255,69,.06);
}

.contact-link span {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-link strong {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
}

.contact-link i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 16px;
  font-style: normal;
}

.contact-link-static {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  min-height: 130px;
  align-items: center;
  gap: 30px;
}

.footer-inner > div {
  display: grid;
  gap: 4px;
}

.footer-inner strong {
  font-family: var(--font-display);
  font-weight: 500;
}

.footer-inner span,
.footer-inner p,
.footer-inner a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-inner p {
  margin: 0;
  text-align: center;
}

.footer-inner a:hover {
  color: var(--acid);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero-layout {
    grid-template-columns: 1fr 370px;
  }

  .hero-copy {
    padding-right: 40px;
  }

  .hero h1 {
    font-size: clamp(54px, 7vw, 82px);
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .metric-wide {
    grid-column: 1 / -1;
    min-height: 100px;
    border-top: 1px solid var(--line);
  }

  .stack-layout {
    grid-template-columns: 1fr;
  }

  .system-map {
    min-height: 670px;
  }

  .case-study {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .architecture-card,
  .score-card,
  .incident-card {
    grid-column: 2;
    min-height: 440px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  .shell {
    width: min(calc(100% - 30px), var(--shell));
  }

  .section {
    padding: 94px 0;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    min-height: calc(100vh - var(--header-height));
    align-content: start;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 20px 15px;
    border-top: 1px solid var(--line);
    background: rgba(7,9,7,.98);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .nav-cta {
    min-height: 64px;
    padding: 0 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 620px;
    padding: 70px 4px 54px;
    border-right: 0;
  }

  .hero-identity {
    padding: 50px 0;
    border-top: 1px solid var(--line);
  }

  .identity-frame {
    width: min(100%, 480px);
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(3) {
    border-top: 1px solid var(--line);
  }

  .metric-wide {
    grid-column: 2;
    border-top: 1px solid var(--line);
  }

  .section-intro-split,
  .about-layout,
  .contact-panel {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .contact-panel {
    gap: 0;
  }

  .contact-copy {
    min-height: 430px;
    padding: 45px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .supporting-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 127px;
  }

  .timeline-entry {
    grid-template-columns: 105px 45px 1fr;
  }

  .timeline-marker::before {
    left: 16px;
  }
}

@media (max-width: 640px) {
  .brand-role,
  .hero-topline .mono-label,
  .cursor-glow {
    display: none;
  }

  .hero-topline {
    justify-content: flex-start;
  }

  .hero h1 {
    margin-top: 25px;
    font-size: clamp(48px, 15vw, 76px);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:nth-child(2),
  .metric:nth-child(3),
  .metric-wide {
    grid-column: auto;
    min-height: 110px;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .section-intro {
    margin-bottom: 54px;
  }

  .section-intro h2,
  .contact-copy h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .section-intro-split {
    gap: 25px;
  }

  .fact-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .system-map {
    min-height: 510px;
  }

  .system-core {
    width: 160px;
    height: 160px;
  }

  .system-core strong {
    font-size: 22px;
  }

  .orbit-a { width: 235px; height: 235px; }
  .orbit-b { width: 345px; height: 345px; }
  .orbit-c { width: 455px; height: 455px; }

  .stack-group {
    grid-template-columns: 45px 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-index {
    flex-direction: row;
    align-items: end;
  }

  .case-index span {
    writing-mode: initial;
  }

  .case-index strong {
    font-size: 48px;
  }

  .case-copy {
    padding-right: 0;
  }

  .case-details {
    grid-template-columns: 1fr;
  }

  .architecture-card,
  .score-card,
  .incident-card {
    grid-column: 1;
    min-height: 400px;
  }

  .architecture-body {
    min-height: 390px;
  }

  .arch-node {
    min-width: 124px;
    font-size: 12px;
  }

  .node-client { left: 16px; }
  .node-api { right: 16px; }
  .node-data { right: 16px; }
  .node-offline { left: 16px; }

  .support-card {
    min-height: 350px;
    padding: 24px;
  }

  .support-status {
    top: 24px;
    right: 24px;
  }

  .support-card h3 {
    margin-top: 72px;
  }

  .supporting-heading {
    align-items: start;
    flex-direction: column;
  }

  .timeline::before {
    left: 14px;
  }

  .timeline-entry {
    grid-template-columns: 35px 1fr;
    gap: 0;
  }

  .timeline-year {
    grid-column: 2;
    margin-bottom: 15px;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-marker::before {
    top: 10px;
    left: 9px;
  }

  .timeline-entry > div:last-child {
    grid-column: 2;
    padding-left: 0;
  }

  .contact-copy {
    min-height: 390px;
    padding: 34px 26px;
  }

  .contact-link {
    padding: 26px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 34px 0;
    text-align: left;
  }

  .footer-inner p {
    text-align: left;
  }
}

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