@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  color-scheme: dark;
  --ink: #f3f7ea;
  --bg: #07110d;
  --panel: #0e1d16;
  --panel-2: #13271d;
  --line: #4f4a3d;
  --line-bright: #efe6cf;
  --green: #efe6cf;
  --mint: #f6efe0;
  --sage: #b9ad98;
  --muted: #b8c4b1;
  --paper: #f7f5e9;
  --black: #07110d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --grid-x: rgba(118, 163, 109, 0.08);
  --grid-y: rgba(118, 163, 109, 0.055);
  --glow: rgba(239, 230, 207, 0.12);
  --topbar-bg: rgba(7, 17, 13, 0.88);
  --panel-surface: linear-gradient(180deg, rgba(19, 39, 29, 0.96), rgba(10, 24, 17, 0.96));
  --contact-surface: linear-gradient(90deg, rgba(239, 230, 207, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(19, 39, 29, 0.98), rgba(9, 22, 16, 0.98));
  --page-wash: rgba(243, 247, 234, 0.03);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: #0c170f;
  --bg: #f5f7ec;
  --panel: #ffffff;
  --panel-2: #ecf4df;
  --line: #d4cab6;
  --line-bright: #2b261d;
  --green: #2b261d;
  --mint: #2b261d;
  --sage: #49634a;
  --muted: #4d594c;
  --paper: #07110d;
  --black: #f7f5e9;
  --shadow: 0 20px 60px rgba(29, 47, 34, 0.16);
  --grid-x: rgba(36, 91, 57, 0.1);
  --grid-y: rgba(36, 91, 57, 0.07);
  --glow: rgba(43, 38, 29, 0.12);
  --topbar-bg: rgba(245, 247, 236, 0.9);
  --panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 243, 225, 0.96));
  --contact-surface: linear-gradient(90deg, rgba(43, 38, 29, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(235, 243, 225, 0.98));
  --page-wash: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--grid-x) 1px, transparent 1px),
    linear-gradient(var(--grid-y) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, var(--glow), transparent 34rem),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 5rem clamp(1rem, 3vw, 2.5rem) auto;
  height: 12rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--page-wash);
  pointer-events: none;
  z-index: -2;
}

a {
  color: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: var(--black);
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(18px);
}

.chrome-melt {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(0.2px);
  opacity: 0.78;
}

.chrome-melt::before,
.chrome-melt::after {
  content: "";
  position: absolute;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.96), transparent 0.9rem),
    linear-gradient(120deg, #f8fff2 0%, #94a89e 20%, #111813 35%, #f0fff0 48%, #6f8178 62%, #d8ffd7 78%, #202a22 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 18px -18px 36px rgba(0, 0, 0, 0.28),
    inset -12px 18px 34px rgba(255, 255, 255, 0.32),
    0 24px 60px rgba(0, 0, 0, 0.24);
}

.chrome-melt-three {
  top: 44rem;
  right: 10vw;
  width: 13rem;
  height: 11rem;
  opacity: 0.36;
}

.chrome-melt-three::before {
  width: 12rem;
  height: 5.2rem;
  border-radius: 72% 28% 60% 40% / 52% 46% 54% 48%;
  transform: rotate(-11deg);
}

.chrome-melt-three::after {
  left: 4.5rem;
  top: 3.6rem;
  width: 1.1rem;
  height: 6.2rem;
  border-radius: 999px;
  transform: rotate(8deg);
}

.chrome-melt-one {
  top: 5.8rem;
  right: -2.8rem;
  width: 18rem;
  height: 18rem;
}

.chrome-melt-one::before {
  width: 15rem;
  height: 8.5rem;
  border-radius: 58% 42% 52% 48% / 48% 56% 44% 52%;
}

.chrome-melt-one::after {
  left: 8.2rem;
  top: 5.6rem;
  width: 2.2rem;
  height: 8.4rem;
  border-radius: 999px 999px 70% 70%;
}

.chrome-melt-two {
  left: -3rem;
  bottom: 12rem;
  width: 17rem;
  height: 13rem;
  opacity: 0.42;
}

.chrome-melt-two::before {
  width: 13rem;
  height: 7rem;
  border-radius: 48% 52% 42% 58% / 52% 44% 56% 48%;
}

.chrome-melt-two::after {
  left: 5.5rem;
  top: 4.5rem;
  width: 1.4rem;
  height: 5.8rem;
  border-radius: 999px;
}

.brand-mark {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  background: var(--panel-2);
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

.topnav a,
.contact-links a,
.text-link {
  text-decoration-color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.top-actions {
  display: flex;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-surface);
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
  cursor: pointer;
}

.theme-icon {
  width: 0.85rem;
  height: 0.85rem;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset -4px 0 0 var(--panel);
}

html[data-theme="light"] .theme-icon {
  box-shadow: inset 0 0 0 3px var(--panel);
}

.top-actions .button:not(:first-child) {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.68rem 0.95rem;
  border: 1px solid var(--line-bright);
  border-radius: 2px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--green);
  background: rgba(239, 230, 207, 0.12);
}

.button.primary {
  background: var(--green);
  color: var(--black);
}

.button.secondary {
  background: rgba(223, 245, 207, 0.06);
  color: var(--mint);
}

.intro-section,
.section-band,
.contact-section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(460px, 1.16fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1.2rem, 3vw, 2.25rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.intro-copy,
.proof-stack,
.receipt-card,
.feature-card,
.skill-grid article,
.timeline-item,
.resume-band,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel-surface);
  box-shadow: var(--shadow);
}

.intro-copy {
  display: grid;
  align-content: center;
  min-height: 35rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.headshot-card {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.8rem;
  align-items: center;
  width: fit-content;
  margin: 0 0 1.4rem;
  padding: 0.45rem 0.9rem 0.45rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.035);
}

html[data-theme="light"] .headshot-card {
  background: rgba(255, 255, 255, 0.72);
}

.headshot-card img {
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  object-fit: cover;
}

.headshot-card figcaption {
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-weight: 680;
  line-height: 1;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  color: var(--paper);
  font-size: clamp(3rem, 6vw, 5.35rem);
  letter-spacing: 0;
}

h2 {
  max-width: 15ch;
  margin-bottom: 1rem;
  color: var(--paper);
  font-size: clamp(2rem, 4.8vw, 4.4rem);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--paper);
  font-size: 1.12rem;
  line-height: 1.18;
}

.role-line {
  max-width: 620px;
  margin-bottom: 1rem;
  color: var(--mint);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 560;
  line-height: 1.06;
}

.intro-text {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.proof-stack {
  display: block;
  overflow: hidden;
  position: relative;
}

.proof-stack::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border: 1px solid rgba(239, 230, 207, 0.28);
  border-radius: 2px;
  pointer-events: none;
}

.console-kicker {
  margin: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 560;
  text-transform: uppercase;
}

.proof-stack img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #07110d;
}

.photo-band {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(170px, 0.65fr) minmax(170px, 0.65fr);
  grid-auto-rows: 9.25rem;
  gap: 0.9rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(1rem, 2vw, 1.6rem);
  border-bottom: 1px solid var(--line);
}

.photo-panel {
  position: relative;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.photo-panel-large {
  grid-row: span 2;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.74);
}

html[data-theme="light"] .photo-panel img {
  filter: saturate(0.9) contrast(1.02) brightness(0.94);
}

.photo-panel::after {
  display: none;
}

.snapshot-list {
  display: grid;
  margin: 0;
}

.snapshot-list div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.68rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.snapshot-list div:last-child {
  border-bottom: 0;
}

dt {
  color: var(--sage);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 560;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: var(--paper);
  font-weight: 560;
}

.section-band {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -0.75rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

#experience .section-heading {
  display: block;
}

#experience .section-heading::after {
  display: none;
}

.section-heading::after {
  content: "";
  height: 4.2rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(239, 230, 207, 0.12), transparent 42%),
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(145, 170, 134, 0.18) 18px 19px);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.receipt-grid .receipt-card:last-child:nth-child(3n + 1) {
  grid-column: auto;
}

.receipt-card {
  min-height: 19rem;
  padding: 1rem;
}

.receipt-topline {
  display: flex;
  min-height: 4.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.receipt-topline span,
.feature-card span,
.timeline-item span {
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 560;
  text-transform: uppercase;
}

.receipt-topline strong {
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 620;
  line-height: 0.9;
  text-align: right;
}

.receipt-topline strong .metric-stacked {
  display: block;
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  line-height: 1.3;
}

.receipt-card p,
.feature-card p,
.timeline p,
.skill-grid p,
.resume-band p,
.contact-section p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-card,
.skill-grid article {
  padding: 1rem;
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 1.7rem;
  padding: 0.22rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(239, 230, 207, 0.08);
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.experience-linkedin {
  display: block;
  margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  width: fit-content;
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  text-transform: uppercase;
  text-decoration-color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

.marquee {
  width: 100%;
  margin: clamp(1rem, 2vw, 1.6rem) 0;
  padding: 0.85rem 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--page-wash);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-track span {
  flex: none;
  padding-right: 3rem;
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.85rem, 1.6vw, 1.1rem);
  text-transform: uppercase;
  white-space: nowrap;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding: 1.05rem;
}

.timeline-link {
  grid-column: 2;
  align-self: end;
  color: var(--green);
  font-weight: 560;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline-item li + li {
  margin-top: 0.6rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.free-time-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.free-time-grid article {
  min-height: 11.5rem;
  padding: 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

html[data-theme="light"] .free-time-grid article {
  background: rgba(255, 255, 255, 0.56);
}

.free-time-grid span {
  display: block;
  margin-bottom: clamp(1.5rem, 3.5vw, 3.25rem);
  color: var(--sage);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.free-time-grid p {
  max-width: 18rem;
  color: var(--paper);
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  line-height: 1.25;
}

.free-time-grid em {
  font-style: italic;
}

.resume-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.45fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.resume-preview {
  display: block;
  max-height: 32rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.resume-preview img {
  width: 100%;
}

.contact-section {
  margin-bottom: 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--contact-surface);
}

.contact-section h2 {
  max-width: 16ch;
}

.contact-section p {
  max-width: 760px;
  font-weight: 600;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  color: var(--green);
  font-weight: 620;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.25rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--green);
  font-family: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .intro-section,
  .photo-band,
  .section-heading,
  .timeline-item,
  .resume-band {
    grid-template-columns: 1fr;
  }

  .top-actions {
    display: none;
  }

  .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .topnav {
    grid-column: 1 / -1;
  }

  .intro-copy {
    min-height: auto;
  }

  .proof-stack img {
    height: 280px;
    min-height: 0;
    object-fit: cover;
  }

  .receipt-grid,
  .feature-grid,
  .skill-grid,
  .free-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .topbar {
    gap: 0.8rem;
  }

  .topnav {
    gap: 0.25rem 0.75rem;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.4rem);
  }

  .headshot-card {
    grid-template-columns: 4.6rem 1fr;
  }

  .headshot-card img {
    width: 4.6rem;
    height: 4.6rem;
  }

  .proof-stack img {
    height: 220px;
    min-height: 0;
    object-fit: cover;
  }

  .chrome-melt-one {
    top: 8rem;
    right: -7rem;
    transform: scale(0.72);
  }

  .chrome-melt-two {
    display: none;
  }

  .chrome-melt-three {
    display: none;
  }

  .receipt-grid,
  .feature-grid,
  .skill-grid,
  .free-time-grid {
    grid-template-columns: 1fr;
  }

  .photo-band {
    grid-template-columns: 1fr;
    grid-auto-rows: 12rem;
  }

  .photo-panel-large {
    grid-row: span 1;
  }

  .snapshot-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .receipt-card {
    min-height: auto;
  }

  .contact-section {
    width: calc(100% - 1rem);
    padding: 2rem 1rem;
  }

  .marquee {
    margin: 0.75rem 0;
    padding: 0.7rem 0;
  }

  .marquee-track span {
    padding-right: 2rem;
    font-size: 0.78rem;
  }

  .experience-linkedin {
    font-size: 0.82rem;
    text-align: center;
  }
}
