:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0b0f0b;
  --panel-2: #081008;
  --text: #d8e3d2;
  --muted: #5c6b5f;
  --accent: #7ee787;
  --border: rgba(126, 231, 135, .18);
  --border-strong: rgba(126, 231, 135, .34);
  --shadow: rgba(126, 231, 135, .12);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(126, 231, 135, .08), transparent 26rem),
    linear-gradient(rgba(126, 231, 135, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 231, 135, .018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 40px 40px, 40px 40px, auto;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", "Liberation Mono", monospace;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 5px),
    radial-gradient(circle at center, transparent, rgba(0, 0, 0, .66));
  content: "";
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 12px;
  background: var(--accent);
  color: #071007;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
  background: rgba(5, 5, 5, .78);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero__actions,
.contact-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: .78rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand__mark {
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  background: rgba(126, 231, 135, .2);
  box-shadow: 0 0 18px var(--shadow);
}

.nav {
  gap: clamp(12px, 2vw, 24px);
  color: var(--muted);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav a,
.contact-links a {
  text-decoration: none;
}

.nav a:hover,
.contact-links a:hover {
  color: var(--accent);
}

.section-shell {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 12vw, 138px) 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: .94;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.hero__subtitle {
  max-width: 720px;
  color: #aebcad;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
}

.hero__actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid var(--border-strong);
  background: rgba(126, 231, 135, .08);
  color: var(--text);
  font-size: .78rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
}

.button--primary {
  background: var(--accent);
  color: #051005;
}

.button--ghost:hover,
.module-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 34px var(--shadow);
}

.status-panel,
.proof-card,
.module-card,
.profile-panel,
.experience-item,
.terminal,
.contact-panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(126, 231, 135, .055), rgba(126, 231, 135, .018)), var(--panel);
}

.status-panel {
  padding: 18px;
}

.status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span,
.module-card__meta,
.terminal__bar,
.site-footer {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.status-row strong {
  color: var(--accent);
  font-size: .88rem;
  font-weight: 600;
}

.section-heading {
  margin-bottom: 28px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 0;
}

.proof-card {
  padding: 20px;
}

.proof-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.proof-card p {
  margin-bottom: 0;
  color: #aebcad;
  font-size: .92rem;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 245px;
  padding: 22px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.module-card:hover {
  transform: translateY(-2px);
}

.module-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 34px;
}

.module-card p,
.profile-panel p,
.contact-panel p {
  color: #aebcad;
}

.tag-list,
.status-lines,
.telemetry-feed {
  padding: 0;
  list-style: none;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
}

.tag-list li {
  padding: 5px 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: .7rem;
}

.split-section {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(24px, 6vw, 72px);
}

.profile-panel {
  padding: clamp(22px, 4vw, 38px);
}

.experience-section {
  padding-top: 0;
}

.experience-list {
  display: grid;
  gap: 14px;
}

.experience-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px 24px;
  padding: 20px;
}

.experience-item span {
  grid-row: span 3;
  color: var(--muted);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.experience-item h3 {
  margin-bottom: 0;
}

.experience-item strong {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.experience-item p {
  margin-bottom: 0;
  color: #aebcad;
}

.now-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
}

.status-lines {
  display: grid;
  gap: 12px;
  margin: 0;
}

.status-lines li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 11, .62);
  color: #b7c4b3;
}

.status-lines span {
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--shadow);
}

.console-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.terminal {
  min-height: 390px;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.terminal__bar span {
  width: 9px;
  height: 9px;
  border: 1px solid var(--border-strong);
}

.terminal__bar strong {
  margin-left: auto;
  font-weight: 500;
}

.terminal__output {
  min-height: 280px;
  max-height: 380px;
  overflow: auto;
  padding: 18px;
  color: #b7c4b3;
}

.terminal__output p {
  margin-bottom: 10px;
}

kbd {
  padding: 2px 6px;
  border: 1px solid var(--border);
  color: var(--accent);
}

.terminal__form {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.terminal__form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.terminal__form span {
  color: var(--accent);
}

.terminal__form input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.telemetry-feed {
  display: grid;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--border);
  background: rgba(11, 15, 11, .44);
}

.telemetry-feed li {
  color: var(--muted);
  font-size: .78rem;
  animation: telemetry 6s ease-in-out infinite;
}

.telemetry-feed li:nth-child(2) { animation-delay: .6s; }
.telemetry-feed li:nth-child(3) { animation-delay: 1.2s; }
.telemetry-feed li:nth-child(4) { animation-delay: 1.8s; }
.telemetry-feed li:nth-child(5) { animation-delay: 2.4s; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 70px;
  padding: clamp(24px, 5vw, 44px);
}

.contact-links {
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-links a {
  padding: 10px 12px;
  border: 1px solid var(--border);
  color: var(--text);
}

.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--border);
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, .96);
  transition: opacity .35s ease, visibility .35s ease;
}

.boot.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.boot__panel {
  width: min(520px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  box-shadow: 0 0 48px rgba(126, 231, 135, .08);
}

.boot__panel p {
  margin-bottom: 8px;
  color: #aebcad;
  opacity: 0;
  animation: boot-line 1.4s ease forwards;
}

.boot__panel p:nth-child(2) { animation-delay: .25s; }
.boot__panel p:nth-child(3) { animation-delay: .5s; }
.boot__panel p:nth-child(4) {
  color: var(--accent);
  animation-delay: .75s;
}

.boot__skip {
  margin-top: 16px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

@keyframes boot-line {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes telemetry {
  0%, 100% {
    color: var(--muted);
  }
  40% {
    color: var(--accent);
  }
}

@media (max-width: 880px) {
  .site-header,
  .hero__actions,
  .contact-links {
    align-items: flex-start;
  }

  .site-header,
  .hero,
  .split-section,
  .now-section,
  .console-layout,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

  .site-header {
    display: grid;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(calc(100% - 36px), var(--max));
    padding: 58px 0;
  }

  .hero,
  .hero > *,
  .section-heading,
  .profile-panel,
  .contact-panel,
  .terminal {
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    width: min(100%, 12ch);
    font-size: clamp(1.9rem, 9.8vw, 2.75rem);
    line-height: 1;
    word-break: break-word;
  }

  .eyebrow {
    width: min(100%, 30ch);
    overflow-wrap: anywhere;
  }

  .hero__actions {
    display: grid;
    width: 100%;
  }

  .hero__subtitle {
    width: min(100%, 32ch);
    font-size: .96rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .button {
    width: 100%;
    letter-spacing: .08em;
  }

  .module-card__meta {
    display: grid;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .experience-item span {
    grid-row: auto;
  }

  .terminal__output {
    max-height: 320px;
  }
}

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

  .boot {
    display: none;
  }
}
