/* styles.css */
/* =========================
   CSS Variables & Tokens
   ========================= */
:root {
  --font-display: 'Barlow Condensed', sans-serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Analog Print - Mid-century technical editorial */
  --bg-deep: #F6F3EE;
  --bg-surface: #FFFFFF;
  --bg-alt: #EDEAD5;
  --border: rgba(17, 17, 17, 0.12);
  --border-strong: #111111;

  /* Text */
  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #666666;

  /* Accents */
  --accent: #C94B2A;
  /* Vermillion */
  --accent-glow: rgba(201, 75, 42, 0.25);
  --secondary: #2B5F84;
  /* Steel Blue */
  --secondary-glow: rgba(43, 95, 132, 0.25);
  --success: #1a875f;

  /* Terminal Specific */
  --terminal-bg: #111111;
  --terminal-text: #F59E0B;
  /* Amber phosphor */

  /* Dimensions */
  --nav-h: 70px;
  --radius: 0px;

  --dock-w: 220px;
}

/* =========================
   Reset & Base
   ========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Polish: Selection & Scrollbar */
::selection {
  background: var(--accent-glow);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Container */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Desktop Sidebar Offset - ONLY applies to body content & Nav */
@media (min-width: 1024px) {

  body,
  .nav {
    padding-left: calc(var(--dock-w) + 20px);
  }
}

/* =========================
   Components
   ========================= */
/* Editorial Card */
.card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translate(4px, 4px);
  box-shadow: -4px -4px 0 0 var(--border-strong);
}

/* Buttons */
.miniBtn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 0;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: 0.2s;
  text-transform: uppercase;
}

.miniBtn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-weight: 600;
  border-radius: 0;
  transition: all 0.2s ease;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border: 1.5px solid var(--accent);
}

.btn--primary:hover {
  background: #fff;
  color: var(--accent);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}

.btn--secondary:hover {
  background: var(--border-strong);
  color: #fff;
}

.btn--secondary.btn--talk {
  border-color: var(--accent);
  color: var(--accent);
  position: relative;
}

.btn--secondary.btn--talk:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Accent Text */
.accent {
  color: var(--accent);
  font-weight: 800;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Children for Grids */
/* When the parent section is visible, we animate the cards inside with delays */
.reveal .card {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}

.reveal.is-visible .card {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays up to 10 items */
.reveal.is-visible .card:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal.is-visible .card:nth-child(2) {
  transition-delay: 0.15s;
}

.reveal.is-visible .card:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal.is-visible .card:nth-child(4) {
  transition-delay: 0.25s;
}

.reveal.is-visible .card:nth-child(5) {
  transition-delay: 0.3s;
}

.reveal.is-visible .card:nth-child(6) {
  transition-delay: 0.35s;
}

.reveal.is-visible .card:nth-child(7) {
  transition-delay: 0.4s;
}

.reveal.is-visible .card:nth-child(8) {
  transition-delay: 0.45s;
}

.reveal.is-visible .card:nth-child(9) {
  transition-delay: 0.5s;
}

.reveal.is-visible .card:nth-child(n+10) {
  transition-delay: 0.55s;
}

/* =========================
   Navigation
   ========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-deep);
  border-bottom: 3px solid var(--border-strong);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  position: relative;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1100;
  grid-column: 3;
  justify-self: end;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--border-strong);
  position: relative;
  transition: background 0.2s;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--border-strong);
  transition: transform 0.2s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

.nav--open .hamburger {
  background: transparent;
}

.nav--open .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.nav--open .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  overflow-x: auto;
  padding-bottom: 2px;
  grid-column: 2;
  justify-self: center;
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__links a {
  padding: 8px 16px;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.nav .nav__cta {
  grid-column: 1;
  justify-self: end;
  border: 1.5px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  /* More prominent bottom border */
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0;
  padding: 6px 14px !important;
  width: fit-content;
  white-space: nowrap;
}

.nav .nav__cta:hover {
  background: var(--accent);
  color: #fff !important;
}

@media (max-width: 1024px) {
  .nav__inner {
    justify-content: space-between;
    padding: 0 4%;
  }

  .nav__toggle {
    display: block;
  }

  .nav .nav__cta {
    justify-self: start;
    font-size: 0.85rem;
    padding: 4px 10px !important;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    margin-top: 19px;
    /* Anchor to black border */
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 1px solid var(--border-strong);
    overflow-x: hidden;
    gap: 0;
  }

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

  .nav__links a {
    width: 100%;
    text-align: center;
    padding: 16px;
    border-bottom: 1.5px solid var(--border-strong);
  }

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

  .nav__links a.active {
    color: var(--accent);
    background: rgba(201, 75, 42, 0.05);
    font-weight: 700;
  }
}

/* =========================
   Hero Section
   ========================= */
.hero {
  padding: 2rem 0;
  position: relative;
}

.hero__nameBlock {
  border-bottom: 3px solid var(--border-strong);
  padding-bottom: 1rem;
  margin-bottom: 3rem;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  margin: 0;
  text-transform: uppercase;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badgeRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  background: var(--border-strong);
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--bg-surface);
  font-size: 1.2rem;
}

.pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 4px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201, 75, 42, 0.7);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 75, 42, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(201, 75, 42, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(201, 75, 42, 0);
  }
}

.hero__micro {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  /* Changed top margin to 0 */
}

.hero__summary {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 60ch;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Right: Terminal */
.terminal {
  background: var(--terminal-bg);
  border-radius: var(--radius);
  box-shadow: 6px 8px 0 rgba(17, 17, 17, 0.15);
  border: 2px solid var(--border-strong);
  overflow: hidden;
  font-family: var(--font-mono);
  position: relative;
}

.terminal__top {
  background: var(--border-strong);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal__dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 0;
  border: 1px solid var(--text-muted);
}

.dot--r {
  background: var(--accent);
}

.dot--y {
  background: var(--secondary);
}

.dot--g {
  background: transparent;
}

.terminal__title {
  color: var(--bg-surface);
  font-size: 0.8rem;
}

.terminal__body {
  padding: 1.5rem;
  margin: 0;
  color: var(--terminal-text);
  font-size: 0.85rem;
  height: 240px;
  overflow-y: hidden;
  white-space: pre-wrap;
}

.caret {
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Stats Bar */
.statsBar {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--bg-alt);
  border: 1.5px solid var(--border-strong);
  border-radius: 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat:not(:last-child) {
  border-right: 1.5px solid var(--border-strong);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Proof Row */
.proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.proof__card {
  background: transparent;
  padding: 1rem 0;
}

.proof__card:not(:last-child) {
  border-right: 1.5px solid var(--border-strong);
  /* Internal desktop separator */
}

.proof__kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.proof__title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.proof__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================
   Sections Generic
   ========================= */
.section {
  padding: 5rem 0;
}

/* Currently Building Banner */
.currently-building {
  padding: 1.5rem 0;
}

.building-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-left: 5px solid var(--accent);
}

.building-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.building-content {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.building-content strong {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.section__titleRule {
  height: 2px;
  width: 100%;
  background: var(--border-strong);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  margin: 0 0 0.5rem 0;
  position: relative;
  padding-left: 4.5rem;
}

.section__title::before {
  content: attr(data-num);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: 0.25;
  font-weight: 900;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 3rem 4.5rem;
  max-width: 60ch;
}

/* =========================
   Skills
   ========================= */
.grid--skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card--skill h4 {
  margin-bottom: 1rem;
}

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

.chip {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.chip--power {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--text-primary);
}

.card--skill.priority {
  border-left: 4px solid var(--accent);
}

/* =========================
   Levels
   ========================= */
.grid--levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.level .tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 4px 8px;
  border-radius: 4px;
}

.level__list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  counter-reset: level-counter;
}

.level__list li {
  margin-bottom: 0.75rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .level__list li {
    margin-bottom: 0.25rem;
  }
}

.level__list li::before {
  counter-increment: level-counter;
  content: counter(level-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* =========================
   Projects
   ========================= */
.grid--projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.badge-wip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 2px 8px;
  border-radius: 0;
  vertical-align: middle;
  margin-left: 8px;
}

.badge-egg {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  border: 1px dashed var(--accent);
  padding: 2px 8px;
  border-radius: 0;
  vertical-align: middle;
  margin-left: 8px;
  white-space: nowrap;
  display: inline-block;
}

.card--featured {
  grid-column: 1 / -1;
  border-left: 5px solid var(--accent);
}

.card--project {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.card__top .tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  max-width: 50%;
  font-family: var(--font-mono);
}

.card__text {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.card__why {
  background: var(--bg-alt);
  border-left: 3px solid var(--secondary);
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  border-radius: 0 8px 8px 0;
}

.bullets {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.bullets li {
  margin-bottom: 0.5rem;
}

.about-me {
  font-style: italic;
  border-left: 3px solid var(--secondary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.bullets .highlight {
  color: var(--success);
  font-weight: 600;
}

.projectLinks {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.tagLink {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
}

.tagLink:hover {
  background: var(--border-strong);
  color: #fff;
}

/* =========================
   Approach
   ========================= */
.grid--approach {
  display: grid;
  grid-template-columns: 1fr;
  /* Make both cards full width */
  gap: 2rem;
}

/* =========================
   Timeline
   ========================= */
.timeline {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 2rem;
  margin-top: 3rem;
}

.timeline__item {
  display: contents;
  /* Makes children part of the grid */
}

.timeline__when {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 800;
  text-align: right;
  padding-top: 4px;
}

.timeline__content {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 2.5rem;
  border-left: 2px solid var(--border-strong);
}

.timeline__content::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--border-strong);
  /* Changed to ink color */
  border: 2px solid var(--border-strong);
  border-radius: 0;
}

.timeline__content h4 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
}

.role__stack {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

/* =========================
   Contact
   ========================= */
#contact .section__title {
  padding-left: 0;
}

#contact .section__title::before {
  content: none;
}

#contact .section__subtitle {
  margin-left: 0;
}

.contact.card {
  padding: 0;
}

.contact__header {
  padding: 2rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1.5px solid var(--border-strong);
}

.contact__item {
  display: block;
  padding: 1.5rem;
  text-align: center;
}

.contact__item:not(:last-child) {
  border-right: 1.5px solid var(--border-strong);
}

.contact__item:hover {
  background: var(--bg-alt);
}

.contact__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact__value {
  font-weight: 600;
  font-size: 1rem;
  word-break: break-all;
  font-family: var(--font-mono);
}

/* =========================
   Side Dock (Desktop)
   ========================= */
.socialDock {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 900;
  background: var(--bg-deep);
  border: 1.5px solid var(--border-strong);
  transition: box-shadow 0.3s ease;
}

.socialDock:hover {
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.1);
}

.socialBtn {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 100;
  transition: background-color 0.2s, color 0.2s;
}

.socialBtn:not(:last-child) {
  border-bottom: 2px solid var(--border-strong);
}

.socialBtn:hover {
  background: var(--accent);
  color: #fff;
}

.socialBtn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.socialBtn__text {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-left 0.3s ease;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.socialDock:hover .socialBtn__text {
  max-width: 200px;
  opacity: 1;
  margin-left: 12px;
}

/* =========================
   Mobile Bottom Bar
   ========================= */
.mobileBar {
  display: none;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  body {
    padding-left: 0;
  }

  .socialDock {
    display: none;
  }

  .hero__name {
    font-size: clamp(3.5rem, 16vw, 7rem);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__content {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .grid--skills,
  .grid--levels,
  .grid--projects,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .grid--approach .card {
    border-left: none;
    border-top: 4px solid var(--secondary);
    padding: 1rem;
  }

  .contact__item:not(:last-child) {
    border-right: none;
    border-bottom: 1.5px solid var(--border-strong);
  }

  .statsBar {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .stat:nth-child(odd) {
    border-right: 1.5px solid var(--border-strong);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1.5px solid var(--border-strong);
  }

  .proof {
    grid-template-columns: 1fr;
    gap: 0;
    border: 1.5px solid var(--border-strong);
  }

  .proof__card {
    padding: 1.5rem;
  }

  .proof__card:not(:last-child) {
    border-right: none;
    border-bottom: 1.5px solid var(--border-strong);
  }

  .section__title {
    font-size: 1.8rem;
    padding-left: 3.5rem;
  }

  .section__title::before {
    font-size: 2.2rem;
  }

  .section__subtitle {
    margin-left: 3.5rem;
  }

  .card__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .card__top .tag {
    text-align: left;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 4px 10px;
  }

  .badge-wip {
    display: inline-block;
    margin: 8px 0 0 0;
    padding: 4px 10px;
    line-height: 1.4;
    border-radius: 0;
    font-size: 0.65rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
    white-space: nowrap;
    letter-spacing: -0.01em;
  }

  .hero__summary {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 2rem;
  }

  .terminal__body {
    height: 305px;
    overflow-y: auto;
  }

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

  .timeline__when {
    text-align: left;
  }

  .mobileBar {
    display: flex;
    justify-content: space-evenly;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-top: 2px solid var(--border-strong);
    padding: 6px 0;
    z-index: 2000;
  }

  .mobileBar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .mobileBar__btn svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto;
  }

  .mobileBar__text {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav__links a {
    padding: 12px 16px;
  }

  .tagLink {
    padding: 12px 16px;
  }

  body {
    padding-bottom: 80px;
  }
}

/* fx-lite: disable backdrop-filter */
.fx-lite .card,
.fx-lite .nav,
.fx-lite .statsBar,
.fx-lite .socialBtn,
.fx-lite .mobileBar {
  backdrop-filter: none;
}

/* =========================
   Memorability Artifacts
   ========================= */

/* Pipeline Ticker */
.pipeline-ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: var(--border-strong);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  gap: 2rem;
  z-index: 2000;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker__item span {
  opacity: 0.5;
  margin-right: 4px;
}

.ticker__item .success {
  color: #4ade80;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .pipeline-ticker {
    display: none;
  }

  body {
    padding-top: var(--nav-h);
  }
}

@media (min-width: 1025px) {
  body {
    padding-top: calc(var(--nav-h) + 24px);
  }

  .nav {
    top: 24px;
  }
}

/* Red Ink Stamp - REMOVED */

/* Jira Easter Egg */
.card.jira-egg {
  grid-column: 1 / -1;
  /* Span full width to allow centering */
  justify-self: center;
  /* Center horizontally in grid */
  width: 100%;
  max-width: 500px;
  /* Keep consistent size */
  transform: translateY(15px) rotate(-3deg);
  border-color: var(--accent);
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease !important;
}

.reveal.is-visible .card.jira-egg {
  transform: translateY(0) rotate(-3deg);
}

.card.jira-egg:hover {
  transform: translateY(-5px) rotate(0deg) scale(1.02);
  box-shadow: -8px -8px 0 0 var(--accent);
}

.card.jira-egg .tag {
  white-space: nowrap;
}

/* Jira Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(17, 17, 17, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.modal__content {
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: #f4f5f7;
  /* Classic Jira Grey */
  padding: 2rem !important;
  border: 2px solid var(--border-strong);
}

.jira-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(17, 17, 17, 0.1);
  padding-bottom: 1rem;
}

.jira-breadcrumbs {
  font-size: 0.75rem;
  color: #5e6c84;
  font-family: var(--font-sans);
}

.jira-title {
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
  color: #172b4d;
}

.jira-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.jira-status {
  background: #deebff;
  color: #0747a6;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.jira-priority {
  color: #bf2600;
  font-size: 0.7rem;
  font-weight: 700;
}

.jira-body h5 {
  margin: 1.5rem 0 0.5rem 0;
  color: #5e6c84;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.jira-body p,
.jira-body li {
  color: #172b4d;
  font-size: 0.95rem;
}

.terminal-log {
  background: #111;
  color: #00ff00;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 1rem;
  border-left: 4px solid #5e6c84;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* Global Grain Filter */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  filter: url(#grain);
  opacity: 0.15;
}

/* =========================
   Bridge Diagram
   ========================= */

.bridge-viz {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px dashed var(--border-strong);
}

.bridge-side {
  flex: 1;
}

.bridge-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-strong);
}

.bridge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bridge-list li {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-mono);
}

.bridge-list li::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
}

.bridge-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding-top: 3rem;
}

.bridge-arrow svg {
  width: 100%;
  color: var(--border-strong);
}

.bridge-transfer {
  font-size: 0.6rem;
  font-weight: 800;
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .bridge-viz {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .bridge-side {
    width: 100%;
  }

  .bridge-arrow {
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 1.5rem auto;
    transform: rotate(90deg);
  }

  .bridge-transfer {
    display: none;
  }
}

/* Field Reports (Testimonials) */
.reports-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.field-report {
  background: #FFF9C4;
  /* Yellowed paper */
  border: 1px solid var(--border-strong);
  padding: 2rem;
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.1);
  position: relative;
  overflow: hidden;
}

.field-report::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAB1JREFUGFdjZEADJ06c+M/AwMDIAAYMDIwMYAAMAgAgIgEnmZ8vPAAAAABJRU5ErkJggg==');
  opacity: 0.05;
  pointer-events: none;
}

.report-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(17, 17, 17, 0.2);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.report-tag {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.report-id {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.report-body p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  color: #263238;
}

.report-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(17, 17, 17, 0.2);
  text-align: right;
}

.report-sig {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .reports-grid {
    grid-template-columns: 1fr;
  }
}