/* ═════════════════════════════════════════════
   THEME VARIABLES
   Dark  = default terminal theme.
   Light = warm cream "vim light" theme.
   Edit colors here — everything else inherits.
   ═════════════════════════════════════════════ */
:root,
[data-theme="dark"] {
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #212121;
  --border: #2a2a2a;
  --border-accent: #3a3a2a;

  --gold: #f0c040;
  --gold-dim: #b89030;
  --gold-faint: rgba(240, 192, 64, 0.08);

  --text-primary: #d4d4d4;
  --text-muted: #969696;
  --text-dim: #787878;

  --green: #4ec994;
  --red: #e06c75;
  --blue: #61afef;

  --nav-bg: rgba(13, 13, 13, 0.92);
  --vim-bar-bg: var(--gold);
  --vim-bar-fg: #000;
  --sel-bg: var(--gold);
  --sel-fg: #000;
  --scanline: rgba(0, 0, 0, 0.03);
  --contact-accent: #b7c8de;

  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  --navbar-height: 52px;
  --content-width: 1100px;
  --radius: 4px;
}

/* Light theme — cream paper terminal, modeled on a gruvbox-light vim setup */
[data-theme="light"] {
  --bg-primary: #f3edd9;
  --bg-secondary: #ece5cd;
  --bg-card: #efe8d2;
  --bg-card-hover: #e8e0c4;
  --border: #d9cfad;
  --border-accent: #c9bd93;

  --gold: #8a6a00;
  --gold-dim: #a07d10;
  --gold-faint: rgba(138, 106, 0, 0.08);

  --text-primary: #3d3626;
  --text-muted: #665c46;
  --text-dim: #857a5f;

  --green: #1e7a4c;
  --red: #b04a52;
  --blue: #205f9e;

  --nav-bg: rgba(243, 237, 217, 0.92);
  --vim-bar-bg: #e0b62c;
  --vim-bar-fg: #1c1810;
  --sel-bg: #3d3626;
  --sel-fg: #f3edd9;
  --scanline: rgba(92, 80, 50, 0.04);
  --contact-accent: #4a5a72;
}

/* ═════════════════════════════════════════════
   RESET & BASE
   ═════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Stops iOS Safari from auto-inflating text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  line-height: 1.65;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-mono);
  cursor: pointer;
}

::selection {
  background: var(--sel-bg);
  color: var(--sel-fg);
}

/* Visible keyboard focus, in theme */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dim);
  border-radius: 3px;
}

/* Matrix mouse-trail canvas — decorative only */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

/* ═════════════════════════════════════════════
   NAVBAR
   ═════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* Inner container keeps the bar from spreading edge-to-edge on wide screens */
.nav-inner {
  max-width: calc(var(--content-width) + 4rem);
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo-prefix {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.nav-logo {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
  letter-spacing: 0.03em;
}

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

.nav-links a .bracket {
  color: var(--gold);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Vim-style theme switch  →  :set bg=light / :set bg=dark */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

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

.btn-resume {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-resume:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  gap: 0.35rem;
  z-index: 999;
  max-height: calc(100vh - var(--navbar-height));
  max-height: calc(100dvh - var(--navbar-height));
  overflow-y: auto;
}

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

.mobile-nav a {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--gold);
}

/* ═════════════════════════════════════════════
   HERO
   ═════════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--navbar-height) + 2rem) 2rem 3rem;
  position: relative;
}

/* Keeps hero content from spreading too wide on big screens */
.hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.hero-import {
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.hero-import .keyword {
  color: var(--blue);
}

.hero-import .module {
  color: var(--green);
}

.hero-name {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Cursor blink */
.hero-name::after {
  content: '|';
  color: var(--gold);
  animation: blink 1.1s step-end infinite;
  margin-left: 4px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--text-primary);
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.hero-taglines {
  margin-top: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 2;
  /* Reserve space so the typewriter doesn't shift the layout */
  min-height: calc(2 * 2em);
}

.hero-taglines .comment {
  color: var(--text-dim);
}

/* Typewriter caret on the line currently being typed */
.hero-taglines .comment.typing::after {
  content: '▌';
  color: var(--gold);
  animation: blink 0.9s step-end infinite;
  margin-left: 2px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-secondary {
  padding: 0.6rem 1.4rem;
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

/* Vim status bar pinned to the bottom of the hero */
.vim-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--vim-bar-bg);
  color: var(--vim-bar-fg);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 26px;
  letter-spacing: 0.04em;
}

/* Left segment truncates with an ellipsis instead of wrapping on narrow screens */
.vim-left {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vim-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.vim-sep {
  opacity: 0.5;
}

/* fx=on / fx=off — toggles the matrix mouse trail */
.fx-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0 2px;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}

.fx-toggle:hover {
  text-decoration-style: solid;
}

/* ═════════════════════════════════════════════
   SECTION SHARED STYLES
   ═════════════════════════════════════════════ */
section {
  padding: 5rem 2rem;
  max-width: var(--content-width);
  margin: 0 auto;
  /* Anchor links land below the fixed navbar */
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section-title::before {
  content: '>_ ';
  color: var(--text-dim);
}

.section-title .section-right {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

/* ═════════════════════════════════════════════
   EXPERIENCE
   ═════════════════════════════════════════════ */
.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem;
  transition: border-color 0.2s, background 0.2s;
}

.exp-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
}

.exp-card.full {
  grid-column: 1 / -1;
}

.exp-company {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.exp-role {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
  letter-spacing: 0.04em;
}

/* Second role inside the same company card */
.exp-role-second {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.exp-role .date {
  color: var(--gold-dim);
}

.exp-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.exp-desc ul {
  padding-left: 1.1rem;
}

.exp-desc ul li {
  list-style: disc;
  margin-bottom: 0.45rem;
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  border-radius: var(--radius);
}

.tag.gold {
  border-color: var(--gold-dim);
  color: var(--gold-dim);
}

.tag.green {
  border-color: var(--green);
  color: var(--green);
}

.tag.blue {
  border-color: var(--blue);
  color: var(--blue);
}

/* Vim-style blinking cursor bar under each section */
.section-cursor-bar {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  user-select: none;
}

.vim-pipe {
  color: var(--gold);
  font-weight: 700;
}

.blink-pipe {
  animation: blink 1.1s step-end infinite;
}

/* ═════════════════════════════════════════════
   ARCHITECTURE / PROJECTS
   ═════════════════════════════════════════════ */
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.6rem 1.6rem 3.2rem;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.arch-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
}

.arch-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  word-break: break-word;
}

.arch-name::before {
  content: './';
  color: var(--gold-dim);
}

.arch-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.arch-footer {
  position: absolute;
  bottom: 1.1rem;
  left: 1.6rem;
  right: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-cmd {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--text-dim);
  /* Pad the hit area outwards without moving the text */
  padding: 0.55rem 0.55rem 0.55rem 0;
  margin: -0.55rem -0.55rem -0.55rem 0;
  transition: color 0.2s, text-shadow 0.2s;
}

.arch-cmd:hover {
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-faint);
}

.arch-cmd .prompt,
.arch-desc .prompt {
  color: var(--gold-dim);
}

.arch-cmd:hover .prompt {
  color: var(--gold);
}

/* "Coming soon" slot for future DevOps projects */
.arch-card-placeholder {
  border-style: dashed;
  padding-bottom: 1.6rem;
}

.arch-card-placeholder .arch-name::before {
  content: '~/';
}

.arch-card-placeholder:hover {
  border-color: var(--border-accent);
  background: var(--bg-card);
}

/* ═════════════════════════════════════════════
   CERTIFICATIONS
   ═════════════════════════════════════════════ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1.2rem 1.3rem;
  transition: border-color 0.2s, background 0.2s;
}

a.cert-card:hover {
  border-color: var(--gold-dim);
  background: var(--bg-card-hover);
}

.cert-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* "In progress" slot — next AWS certification (exam Sep 2026).
   Swap for a real <a class="cert-card"> once it's passed. */
.cert-card-pending {
  border-style: dashed;
}

.cert-card-pending .cert-name {
  color: var(--text-muted);
}

/* ═════════════════════════════════════════════
   OPERATIONAL MATRIX / SKILLS
   ═════════════════════════════════════════════ */
/* Second heading inside the stacks section (currently Certifications) —
   gives breathing room between the two blocks */
.stacks-subtitle {
  margin-top: 3rem;
}

.skills-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2rem;
}

.skill-group {
  margin-bottom: 1.8rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.45rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  font-size: 0.82rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

/* ═════════════════════════════════════════════
   CONTACT / FOOTER
   ═════════════════════════════════════════════ */
#contact {
  text-align: center;
  border-top: 1px solid var(--border);
  padding: 4.5rem 2rem 3rem;
  scroll-margin-top: calc(var(--navbar-height) + 1rem);
}

.contact-comment {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.contact-title-code {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--contact-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.contact-title-code .comment-sym {
  color: var(--gold-dim);
}

.contact-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 2.75rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2.75rem;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  transition: transform 0.2s;
}

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

.social-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.social-item:hover .social-icon {
  border-color: var(--gold);
  color: var(--gold);
}

.social-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-copy {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ═════════════════════════════════════════════
   TOUCH FEEDBACK
   Hover means nothing on a touch screen — these
   give the same feedback on tap.
   ═════════════════════════════════════════════ */
.btn-primary:active,
.btn-resume:active {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn-secondary:active {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.theme-toggle:active,
.nav-links a:active,
.mobile-nav a:active,
.arch-cmd:active {
  color: var(--gold);
}

a.cert-card:active,
.arch-card:active,
.exp-card:active {
  border-color: var(--gold-dim);
}

/* ═════════════════════════════════════════════
   RESPONSIVE — NAV
   The full link row needs ~950px of width; below
   that the hamburger takes over. The Resume button
   stays visible until phone size (600px).
   ═════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ═════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═════════════════════════════════════════════ */
@media (max-width: 900px) {
  .exp-grid {
    grid-template-columns: 1fr;
  }

  .exp-card.full {
    grid-column: 1;
  }

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

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

/* ═════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═════════════════════════════════════════════ */
@media (max-width: 600px) {
  .nav-inner {
    padding: 0 1rem;
  }

  /* Resume lives in the mobile dropdown instead */
  .btn-resume {
    display: none;
  }

  /* Slightly bigger toggle = easier tap target */
  .theme-toggle {
    font-size: 0.7rem;
    padding: 0.4rem 0.55rem;
  }

  #hero {
    padding: calc(var(--navbar-height) + 1.5rem) 1.25rem 3.25rem;
  }

  .hero-import {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }

  /* Scales with the screen; wraps to two lines instead of overflowing */
  .hero-name {
    font-size: clamp(2.1rem, 10vw, 2.6rem);
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
  }

  .hero-taglines {
    font-size: 0.9rem;
  }

  /* Stacked, full-width buttons — comfortable thumb targets */
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: min(100%, 280px);
    text-align: center;
    padding: 0.8rem 1.4rem;
  }

  .vim-bar {
    font-size: 0.7rem;
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .exp-card {
    padding: 1.3rem 1.15rem;
  }

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

  .arch-card {
    padding: 1.3rem 1.15rem 3.2rem;
  }

  .arch-card-placeholder {
    padding-bottom: 1.3rem;
  }

  .arch-footer {
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1rem;
  }

  .arch-desc {
    font-size: 0.9rem;
  }

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

  .cert-card {
    padding: 1.1rem 1.15rem;
  }

  .stacks-subtitle {
    margin-top: 2.5rem;
  }

  .skills-wrapper {
    padding: 1.2rem;
  }

  #contact {
    padding: 3.5rem 1.25rem 2.5rem;
  }

  .social-links {
    gap: 1.6rem;
  }

  .social-icon {
    width: 46px;
    height: 46px;
  }

  .footer-copy {
    margin-top: 2.25rem;
  }
}

/* ═════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES
   ═════════════════════════════════════════════ */
@media (max-width: 420px) {
  .nav-inner {
    padding: 0 0.9rem;
  }

  .nav-logo-prefix {
    display: none;
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.25rem;
  }

  section {
    padding: 3.5rem 0.9rem;
  }

  .exp-desc ul {
    padding-left: 1rem;
  }
}

/* ═════════════════════════════════════════════
   UTILITY
   ═════════════════════════════════════════════ */
.gold {
  color: var(--gold);
}

.green {
  color: var(--green);
}

.dim {
  color: var(--text-dim);
}

/* Subtle scanline overlay for terminal feel (paper grain in light mode) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0) 0px,
      rgba(0, 0, 0, 0) 2px,
      var(--scanline) 2px,
      var(--scanline) 4px);
  z-index: 9999;
}

/* ═════════════════════════════════════════════
   REDUCED MOTION
   Blinking, typing, and the mouse trail all stand
   down when the visitor prefers reduced motion.
   ═════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .hero-name::after,
  .blink-pipe,
  .hero-taglines .comment.typing::after {
    animation: none;
  }

  #fx-canvas {
    display: none;
  }
}
