:root {
  color-scheme: dark;
  --black: #101513;
  --panel: #171d1a;
  --panel-2: #1d2420;
  --cream: #edf0eb;
  --paper: #d7ddd6;
  --muted: #a1aaa3;
  --line: #303934;
  --lime: #9bc5ad;
  --orange: #d8aa83;
  --soft-lime: rgba(155, 197, 173, 0.09);
  --body-glow: rgba(155, 197, 173, 0.055);
  --signal-bg: rgba(24, 31, 27, .84);
  --signal-shadow: rgba(0, 0, 0, .2);
  --feature-bg: #dfe4dc;
  --feature-text: #17201b;
  --feature-accent: #477762;
  --feature-muted: #5e6962;
}

:root[data-theme="light"] {
  color-scheme: light;
  --black: #f4f5ef;
  --panel: #ebece5;
  --panel-2: #e4e6de;
  --cream: #19211d;
  --paper: #29352f;
  --muted: #647068;
  --line: #cfd4cc;
  --lime: #39765e;
  --orange: #9a5e32;
  --soft-lime: rgba(57, 118, 94, .1);
  --body-glow: rgba(57, 118, 94, .08);
  --signal-bg: rgba(239, 241, 234, .88);
  --signal-shadow: rgba(38, 48, 42, .12);
  --feature-bg: #25322c;
  --feature-text: #f2f4ee;
  --feature-accent: #a8d2bd;
  --feature-muted: #c1c9c2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 80% 8%, var(--body-glow), transparent 30rem),
    var(--black);
  color: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

::selection {
  background: var(--lime);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
  border-radius: 2px;
}

button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--cream);
  color: var(--black);
  padding: .6rem;
  z-index: 10;
}

.site-header {
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: max-content;
  font: 700 1rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.brand-mark { letter-spacing: -.05em; }

.cursor {
  display: block;
  width: 7px;
  height: 16px;
  background: var(--lime);
  border-radius: 1px;
  animation: blink 1.3s step-end infinite;
}

@keyframes blink { 50% { opacity: .2; } }

nav {
  display: flex;
  gap: 1.8rem;
  font-size: .76rem;
  font-weight: 650;
}

nav span,
.section-label span {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 500;
  margin-right: .3rem;
}

.header-link {
  font-size: .8rem;
  border-bottom: 1px solid var(--muted);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  position: relative;
  width: 42px;
  height: 28px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--cream);
  cursor: pointer;
  transition: border-color .2s ease, background-color .25s ease, color .25s ease;
}

.theme-toggle:hover { border-color: var(--lime); }

.theme-toggle span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: opacity .2s ease, transform .25s ease;
}

.theme-toggle-sun {
  opacity: 0;
  transform: translateY(18px) rotate(35deg);
}

.theme-toggle-moon {
  opacity: 1;
  transform: translateY(0);
}

:root[data-theme="light"] .theme-toggle-sun {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

:root[data-theme="light"] .theme-toggle-moon {
  opacity: 0;
  transform: translateY(-18px);
}

nav a,
.header-link,
.hero-links a,
footer a {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

nav a:hover,
.header-link:hover,
.hero-links > a:not(.primary-link):hover,
footer a:hover {
  color: var(--lime);
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
  padding: 5.5rem 2rem 6.5rem;
  max-width: 1260px;
  margin: auto;
  position: relative;
}

.hero-copy,
.signal-board {
  position: relative;
  z-index: 1;
}

.status {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--muted);
  font: 600 .68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px var(--soft-lime);
}

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

.hello {
  margin: 2.7rem 0 .6rem !important;
  color: var(--paper) !important;
  font-size: 1rem !important;
  font-weight: 650;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 1.8rem;
  font-size: clamp(3rem, 5.1vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: -.058em;
  font-weight: 720;
}

.hero h1 em,
.contact h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: var(--lime);
}

.hero-copy > p {
  max-width: 590px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 680px;
  margin: 2.4rem 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-facts div { padding: 1.1rem 1rem 1.1rem 0; }

.hero-facts div + div {
  border-left: 1px solid var(--line);
  padding-left: 1rem;
}

.hero-facts dt {
  color: var(--muted);
  font: 500 .62rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-facts dd {
  margin: .4rem 0 0;
  color: var(--paper);
  font-size: .77rem;
  font-weight: 650;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-top: 2.4rem;
  font-size: .8rem;
  font-weight: 650;
}

.primary-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 190px;
  background: var(--paper);
  color: var(--black);
  padding: .9rem 1.05rem;
  border-radius: 4px;
}

.primary-link:hover { background: var(--lime); }

.signal-board {
  overflow: hidden;
  background: var(--signal-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 70px var(--signal-shadow);
  backdrop-filter: blur(14px);
}

.signal-head,
.signal-foot {
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  color: var(--muted);
  font: 600 .64rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
}

.signal-head { border-bottom: 1px solid var(--line); }
.live-dot { color: var(--lime); }

.signal-intro { padding: 2.2rem 1.35rem 2.4rem; }

.signal-intro p {
  color: var(--orange);
  font: 600 .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}

.signal-intro strong {
  display: block;
  max-width: 290px;
  font-size: 1.7rem;
  line-height: 1.18;
  letter-spacing: -.038em;
}

.signal-board ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.signal-board li {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: .8rem;
  align-items: center;
  padding: 1.05rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.signal-board li span {
  color: var(--paper);
  font-weight: 650;
  font-size: .84rem;
}

.signal-board li i {
  color: var(--muted);
  font-size: .73rem;
  font-style: normal;
}

.signal-board li b {
  color: var(--lime);
  font: 500 .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.signal-foot { padding: 1rem 1.35rem; }

.section {
  padding: 8rem 2rem;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 3.5rem;
  max-width: 1260px;
  margin: auto;
  border-top: 1px solid var(--line);
}

.section-label {
  font: 600 .68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding-top: .5rem;
}

.manifesto-copy h2 {
  max-width: 900px;
  font-size: clamp(2.5rem, 4.2vw, 4.45rem);
  line-height: 1.05;
  letter-spacing: -.052em;
}

.two-column-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 900px;
  margin-top: 3.3rem;
}

.two-column-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.principle-grid article {
  min-height: 270px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.principle-number {
  color: var(--lime);
  font: 500 .7rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.principle-grid h3 {
  margin-top: auto;
  margin-bottom: .8rem;
  font-size: 1.4rem;
  letter-spacing: -.035em;
}

.principle-grid p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
  margin: 0;
}

.experience-list { border-top: 1px solid var(--line); }

.experience-list article {
  display: grid;
  grid-template-columns: 110px minmax(230px, .8fr) 1.25fr;
  gap: 2.2rem;
  padding: 2.3rem 0;
  border-bottom: 1px solid var(--line);
}

.role-date {
  color: var(--lime);
  font: 500 .66rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .04em;
  padding-top: .25rem;
}

.role-title h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin-bottom: .5rem;
}

.role-title p,
.role-copy {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.7;
  margin: 0;
}

.role-copy { max-width: 570px; }

.tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.tool-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .68rem .95rem;
  color: var(--paper);
  background: var(--panel);
  font: 500 .75rem ui-monospace, SFMono-Regular, Consolas, monospace;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

.tool-cloud span:hover {
  border-color: var(--lime);
  color: var(--cream);
  background: var(--soft-lime);
}

.elsewhere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.elsewhere-grid article {
  min-height: 300px;
  padding: 1.7rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, background-color .2s ease;
}

.elsewhere-grid article:nth-child(2) {
  background: var(--feature-bg);
  color: var(--feature-text);
  border-color: transparent;
}

.elsewhere-grid article:hover { border-color: var(--lime); }

.card-top {
  display: flex;
  justify-content: space-between;
  font: 600 .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .08em;
  color: var(--lime);
}

.elsewhere-grid article:nth-child(2) .card-top { color: var(--feature-accent); }

.elsewhere-grid h3 {
  margin-top: auto;
  margin-bottom: .8rem;
  font-size: 1.9rem;
  letter-spacing: -.04em;
}

.elsewhere-grid p {
  max-width: 450px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.72;
}

.elsewhere-grid article:nth-child(2) p { color: var(--feature-muted); }

.contact {
  max-width: 1260px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 8rem 2rem 8.5rem;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 3.5rem;
}

.contact-kicker {
  color: var(--orange);
  font: 600 .7rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact h2 {
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: .98;
  letter-spacing: -.06em;
  max-width: 900px;
  margin-bottom: 3.2rem;
}

.email {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  font-weight: 650;
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--muted);
}

.email:hover {
  color: var(--lime);
  border-color: var(--lime);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  max-width: 1260px;
  margin: auto;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 500 .64rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}

footer a { justify-self: end; }

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .signal-board { max-width: 560px; }

  .section,
  .contact {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article { min-height: 210px; }

  .experience-list article {
    grid-template-columns: 100px 1fr;
  }

  .role-copy { grid-column: 2; }
  .section-label { padding: 0; }
  .two-column-copy { gap: 1.8rem; }
}

@media (max-width: 650px) {
  .site-header {
    height: 66px;
    grid-template-columns: 1fr auto;
    padding: 0 1.2rem;
  }

  .site-header nav { display: none; }

  .header-actions { gap: .7rem; }

  .hero {
    min-height: auto;
    padding: 5rem 1.2rem;
  }

  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-facts { grid-template-columns: 1fr; }

  .hero-facts div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .hero-links { flex-wrap: wrap; }
  .primary-link { width: 100%; }

  .section,
  .contact {
    padding: 5.5rem 1.2rem;
  }

  .two-column-copy,
  .elsewhere-grid {
    grid-template-columns: 1fr;
  }

  .experience-list article {
    grid-template-columns: 1fr;
    gap: .6rem;
  }

  .role-copy {
    grid-column: 1;
    margin-top: .65rem;
  }

  .principle-grid article { min-height: 200px; }
  .elsewhere-grid article { min-height: 250px; }
  .contact h2 { font-size: 3.2rem; }

  footer {
    grid-template-columns: 1fr auto;
    padding: 1.3rem 1.2rem;
  }

  footer span:nth-child(2) { display: none; }
}
