/* ============================================================
   Portfolio stylesheet — "midnight gallery" design system
   Tokens are taken from DESIGN.md (Apple style reference).
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --color-obsidian: #000000;
  --color-graphite: #0e0e0e;
  --color-carbon: #1d1d1f;
  --gradient-carbon: linear-gradient(#1d1d1f, #000000 288px);
  --color-steel: #333336;
  --color-slate: #6e6e73;
  --color-ash: #86868b;
  --color-porcelain: #f5f5f7;
  --color-white: #ffffff;
  --color-apple-blue: #0071e3;
  --color-electric-link: #2997ff;
  --color-copper-new: #b64400;
  --color-status: #30d158;

  /* Fonts — Inter is the recommended SF Pro substitute */
  --font-text: 'Inter', 'SF Pro Text', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', 'SF Pro Display', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Radii */
  --radius-cards: 28px;
  --radius-nav: 20px;
  --radius-pill: 980px;

  /* Keylines (the design uses 1px outlines instead of shadows) */
  --keyline: rgb(40, 40, 40) 0 0 0 1px;
  --keyline-strong: rgb(110, 110, 115) 0 0 0 1px;

  /* Layout */
  --container: 1080px;
  --gutter: 22px;
  --section-pad: clamp(90px, 12vw, 144px);
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px; /* keeps headings clear of the sticky nav */
}

body {
  margin: 0;
  background: var(--color-obsidian);
  color: var(--color-porcelain);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-electric-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--color-apple-blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 720px;
}

.muted {
  color: var(--color-ash);
}

/* ---------- 3. Navigation (44px utility bar, blur-backed) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav__inner {
  max-width: var(--container);
  height: 44px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__brand {
  color: var(--color-porcelain);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.228px;
}

.nav__brand:hover {
  text-decoration: none;
}

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

.nav__links a:not(.pill) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  letter-spacing: -0.12px;
  transition: color 0.2s;
}

.nav__links a:not(.pill):hover {
  color: var(--color-white);
  text-decoration: none;
}

.nav__toggle {
  display: none;
}

/* ---------- 4. Pills (buttons) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 11px 22px;
  font: inherit;
  font-size: 17px;
  line-height: 1.18;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.pill:hover {
  text-decoration: none;
}

.pill--sm {
  padding: 4px 11px;
  font-size: 12px;
  line-height: 1.33;
  letter-spacing: -0.12px;
}

.pill--lg {
  width: 100%;
  padding: 16px 28px;
}

.pill--blue {
  background: var(--color-apple-blue);
  color: var(--color-white);
}

.pill--blue:hover {
  background: #0077ed;
}

.pill--blue:disabled {
  opacity: 0.5;
  cursor: progress;
}

.pill--outline {
  background: transparent;
  color: var(--color-porcelain);
  box-shadow: var(--keyline-strong);
}

.pill--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- 5. Hero (Obsidian Stage) ---------- */
.hero {
  background: var(--color-obsidian);
  padding: clamp(40px, 6vw, 72px) 0 var(--section-pad);
  text-align: center;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Portrait as a background layer behind the hero text ----
   --portrait-size is the photo's width AND height (it's square).
   min() picks the smaller value: 720px on desktop, full width on phones. */
.hero--photo {
  --portrait-size: min(720px, 100vw);
  position: relative;
  padding-top: 0;
}

.hero__portrait {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;             /* centres an absolutely positioned box */
  width: var(--portrait-size);
  height: var(--portrait-size);
  z-index: 0;                 /* behind .hero__inner (z-index: 1) */
  pointer-events: none;
  animation: portrait-in 1.4s ease both;
}

.hero__portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* An oval "spotlight": solid in the middle, fading to transparent at the
     edges, so the photo dissolves into the black stage with no hard border. */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 42%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 42%, #000 45%, transparent 100%);
}

/* A dark scrim over the lower half keeps the headline readable over the shirt */
.hero__portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(0, 0, 0, 0.55) 62%, #000 92%);
}

@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: none; }
}

/* Text layer sits on top; push it down so the face stays clear
   and the headline lands across the chest. */
.hero--photo .hero__inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--portrait-size) * 0.56);
}

/* Subtle shadow lifts the text off the photo without looking like a "glow" */
.hero--photo .hero__eyebrow,
.hero--photo .hero__intro {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

/* The title's gradient fill (background-clip: text) doesn't work with
   text-shadow, so it gets a drop-shadow filter instead. */
.hero--photo .hero__title {
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.6));
}

.hero__eyebrow {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: 0.128px;
  color: var(--color-porcelain);
}

.hero__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1a6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__intro {
  max-width: 640px;
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.38;
  color: var(--color-ash);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--color-ash);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.15);
}

.hero--404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* The "product render": a code window lit like hardware on a black stage */
.code-window {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin-top: 72px;
  border-radius: var(--radius-cards);
  background: var(--color-graphite);
  box-shadow: var(--keyline);
  text-align: left;
}

/* Soft rim light behind the window — the only glow on the page */
.code-window::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(closest-side, rgba(41, 151, 255, 0.18), transparent);
  z-index: -1;
  pointer-events: none;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid #1f1f21;
}

.code-window__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-steel);
}

.code-window__bar p {
  margin-left: auto;
  margin-right: auto;
  padding-right: 60px; /* optically centre the filename */
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ash);
}

.code-window__body {
  margin: 0;
  padding: 24px 28px 28px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
  color: #d1d1d6;
}

/* Syntax colours — kept restrained to fit the monochrome palette */
.t-kw  { color: #ff7ab2; }
.t-cls { color: #dabaff; }
.t-var { color: #6bdfff; }
.t-fn  { color: #67b7a4; }
.t-str { color: #ff8170; }
.t-num { color: #d9c97c; }
.t-com { color: var(--color-slate); }

/* ---------- 6. Sections ---------- */
.section {
  padding: var(--section-pad) 0;
  background: var(--color-obsidian);
}

.section--carbon {
  background: var(--gradient-carbon);
  background-color: var(--color-obsidian);
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-ash);
}

.eyebrow--center,
.section__title--center {
  text-align: center;
}

.section__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: var(--color-porcelain);
}

.section__lead {
  margin-top: 20px;
  text-align: center;
  font-size: 19px;
  color: var(--color-ash);
}

/* Carbon comparison panel */
.panel {
  background: var(--color-carbon);
  border-radius: var(--radius-cards);
  padding: 16px;
}

/* Black feature tiles */
.tile {
  border-radius: var(--radius-cards);
  background: var(--color-obsidian);
}

.tile--dark {
  box-shadow: var(--keyline);
}

/* ---------- 7. About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  align-items: start;
}

.about__text p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-ash);
}

.about__text p + p {
  margin-top: 20px;
}

.about__text p:first-child {
  color: var(--color-porcelain);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.tile--stat {
  padding: 32px 24px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile__value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--color-porcelain);
}

.tile__label {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
  color: var(--color-ash);
}

/* ---------- 8. Skills ---------- */
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.skill-group {
  padding: 32px 28px;
}

.skill-group__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.196px;
}

.skill-list {
  margin-top: 24px;
}

.skill {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid #1f1f21;
}

.skill__name {
  font-size: 17px;
}

.skill__years {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-ash);
}

/* ---------- 9. Experience timeline ---------- */
.timeline {
  margin-top: 56px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--color-steel);
}

.timeline__item:last-child {
  border-bottom: 1px solid var(--color-steel);
}

.timeline__dates {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-ash);
}

/* Text-only status label — never inside a coloured badge (per DESIGN.md) */
.marker-new {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--color-copper-new);
  filter: brightness(1.35); /* lifts contrast on the dark band */
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.timeline__company {
  margin-top: 4px;
  color: var(--color-ash);
}

.timeline__points {
  margin-top: 20px;
}

.timeline__points li {
  position: relative;
  padding-left: 20px;
  color: #d1d1d6;
}

.timeline__points li + li {
  margin-top: 10px;
}

.timeline__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-slate);
}

/* Certifications & education tiles */
.subhead {
  margin-top: 72px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.credentials {
  display: grid;
  /* auto-fit: as many 260px+ columns as fit, stretched to fill the row —
     so 2 tiles split the width in half and 3 tiles in thirds */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.credential {
  padding: 28px;
}

.credential__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: 0.228px;
}

.credential__detail {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.224px;
  color: var(--color-ash);
}

/* ---------- 10. Projects (media frames) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.project {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-cards);
  background: var(--color-carbon);
  box-shadow: var(--keyline);
  overflow: hidden;
}

.project__stage {
  position: relative;
  aspect-ratio: 16 / 8;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(41, 151, 255, 0.22), transparent 70%),
    var(--color-obsidian);
}

.project__badge {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff, #6e6e73);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project:hover .project__badge {
  transform: scale(1.06);
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}

.project__name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
}

.project__desc {
  margin-top: 12px;
  color: var(--color-ash);
}

/* "Show more": extra projects are hidden only when JS is running (no JS = all shown),
   and the button itself only appears when JS can make it work. */
.js .project-grid--collapsed .project--extra {
  display: none;
}

.show-more {
  display: none;
  justify-content: center;
  margin-top: 40px;
}

.js .show-more {
  display: flex;
}

/* Featured projects: full grid width, stage on the left, text on the right */
.project--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.project--featured .project__stage {
  flex: 0 0 38%;
  aspect-ratio: auto;
  min-height: 320px;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(41, 151, 255, 0.24), transparent 70%),
    var(--color-obsidian);
}

.project--featured .project__badge {
  font-size: clamp(48px, 6vw, 80px);
}

.project--featured .project__body {
  padding: 40px;
}

.project--featured .project__name {
  font-size: 40px;
  line-height: 1.1;
}

.project__highlights {
  margin-top: 20px;
}

.project__highlights li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.47;
  color: #d1d1d6;
}

.project__highlights li + li {
  margin-top: 10px;
}

.project__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-electric-link);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--color-steel);
  font-size: 12px;
  letter-spacing: -0.12px;
  color: #d1d1d6;
}

.link-arrow {
  margin-top: 20px;
  font-size: 17px;
}

.link-arrow::after {
  content: ' ›';
}

/* ---------- 10b. Life (off the clock) ---------- */
.life__intro {
  max-width: 680px;
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.38;
  color: var(--color-ash);
}

.life-panel {
  margin-top: 56px;
}

.life-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.life-tile {
  padding: 40px 36px;
}

/* The big number — same treatment as the hero title: white fading to grey */
.life-tile__value {
  font-family: var(--font-display);
  font-size: clamp(56px, 7vw, 80px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #ffffff 30%, #6e6e73);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.life-tile__kicker {
  margin-top: 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-electric-link);
}

.life-tile__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.196px;
}

.life-tile__text {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-ash);
}

/* ---------- 11. Contact form ---------- */
.contact-form {
  margin-top: 48px;
  padding: 32px;
  display: grid;
  gap: 20px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  padding-left: 4px;
  font-size: 14px;
  letter-spacing: -0.224px;
  color: var(--color-ash);
}

.input {
  width: 100%;
  padding: 14px 24px;
  border: 1px solid var(--color-slate);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-porcelain);
  font: inherit;
  transition: border-color 0.2s;
}

.input--area {
  border-radius: 20px;
  resize: vertical;
  min-height: 140px;
}

.input:focus {
  outline: 1px solid var(--color-apple-blue);
  outline-offset: 1px;
  border-color: var(--color-apple-blue);
}

.input[aria-invalid='true'] {
  border-color: #ff453a;
}

.field__error {
  min-height: 0;
  margin-top: 6px;
  padding-left: 4px;
  font-size: 12px;
  color: #ff6961;
}

.field__error:empty {
  display: none;
}

.form-status {
  text-align: center;
  font-size: 14px;
}

.form-status:empty {
  display: none;
}

.form-status--ok {
  color: var(--color-status);
}

.form-status--error {
  color: #ff6961;
}

/* Email / LinkedIn buttons shown while the form is disabled */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.contact-actions .pill--lg {
  width: auto;
}

/* Honeypot: moved off-screen rather than display:none (some bots skip hidden fields) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- 12. Footer ---------- */
.footer {
  padding: 32px 0;
  background: var(--color-carbon);
  font-size: 12px;
  letter-spacing: -0.12px;
  color: var(--color-ash);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer__links {
  display: flex;
  gap: 20px;
}

/* ---------- 13. Scroll reveal animation ---------- */
/* Only hide elements when JS is running, so the page works without it */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .project__badge { transition: none; }
  .hero__portrait { animation: none; }
}

/* ---------- 14. Responsive ---------- */
@media (max-width: 900px) {
  .about,
  .skill-groups,
  .credentials,
  .life-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Featured cards stack like regular ones on smaller screens */
  .project--featured {
    flex-direction: column;
  }

  .project--featured .project__stage {
    flex: none; /* in a column, a 38% flex-basis would mean 38% of the HEIGHT */
    min-height: 0;
    aspect-ratio: 16 / 8;
  }

  .project--featured .project__body {
    padding: 28px;
  }

  .project--featured .project__name {
    font-size: 28px;
  }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; }

  /* Mobile menu: the two-line toggle becomes an "×" when open */
  .nav__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -12px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav__toggle span {
    display: block;
    height: 1.5px;
    background: var(--color-porcelain);
    transition: transform 0.3s;
  }

  .nav__toggle[aria-expanded='true'] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
  }

  .nav__toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
  }

  .nav__links {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px var(--gutter) 28px;
    background: var(--color-obsidian);
    border-bottom: 1px solid var(--color-steel);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }

  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav__links li {
    width: 100%;
  }

  .nav__links a:not(.pill) {
    display: block;
    padding: 12px 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--color-porcelain);
  }

  .nav__links .pill {
    margin-top: 16px;
    padding: 11px 22px;
    font-size: 17px;
  }

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

  .tile--stat {
    min-height: 140px;
    padding: 24px 20px;
  }

  .tile__value {
    font-size: 36px;
  }

  .code-window {
    margin-top: 48px;
    border-radius: 20px;
  }

  .code-window__body {
    padding: 20px;
    font-size: 12px;
  }

  .contact-form {
    padding: 20px;
  }

  .life-tile {
    padding: 32px 24px;
  }

  .life__intro {
    font-size: 19px;
  }
}
