/* ============================================================
   DESIGN TOKENS
   Ink background · Off-white text · Neon green accents
   Fonts: Space Grotesk (display) · DM Sans (body) · JetBrains Mono (labels)
   ============================================================ */
:root {
  /* ── Palette ── */
  --ink:          #07090c;   /* page background — near-black with a blue-black depth */
  --ink-1:        #0e1217;   /* card backgrounds */
  --ink-2:        #161c24;   /* borders, dividers */
  --ink-3:        #1d252f;   /* subtle hover backgrounds */
  --off-white:    #ede9e0;   /* primary text — warm off-white */
  --pale:         #7a8290;   /* secondary text, metadata */
  --pale-2:       #3e4650;   /* very muted elements */
  --neon:         #00ff7e;   /* accent — electric green */
  --neon-dim:     rgba(0, 255, 126, 0.08);
  --neon-border:  rgba(0, 255, 126, 0.22);

  /* ── Typography ── */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* ── Spacing ── */
  --section-pad:    clamp(5rem, 10vw, 9rem);
  --container-max:  1280px;
  --container-pad:  clamp(1.25rem, 5vw, 3rem);

  /* ── Shape ── */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* ── Motion ── */
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur:   0.4s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

em {
  font-style: italic;
  color: var(--neon);
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--neon);
  z-index: 1000;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav.is-scrolled {
  background: rgba(7, 9, 12, 0.92);
  border-bottom: 1px solid var(--ink-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.25rem var(--container-pad);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
}

.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--off-white);
  letter-spacing: -0.02em;
  transition: color var(--dur);
}

.nav__logo:hover .nav__logo-mark,
.nav__logo:focus-visible .nav__logo-mark {
  color: var(--neon);
}

.nav__logo-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--pale);
  letter-spacing: 0.04em;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--pale);
  letter-spacing: 0.01em;
  transition: color var(--dur);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon);
  transition: width var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--off-white);
  outline: none;
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link--cta {
  color: var(--neon);
  font-weight: 500;
  border: 1px solid var(--neon-border);
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur), color var(--dur), border-color var(--dur);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  background: var(--neon);
  color: var(--ink);
  border-color: var(--neon);
  outline: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur);
}

.nav__toggle:hover,
.nav__toggle:focus-visible {
  background: var(--ink-2);
  outline: none;
}

.nav__toggle-bar {
  display: block;
  height: 1.5px;
  background: var(--off-white);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Mobile nav ── */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem;
    background: var(--ink-1);
    border-left: 1px solid var(--ink-2);
    transform: translateX(100%);
    transition: transform var(--dur) var(--ease);
    z-index: 800;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.125rem;
  }

  .nav__link--cta {
    padding: 0.5rem 1rem;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Subtle dot grid — editorial precision */
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Vignette over dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 20% 50%, transparent 0%, var(--ink) 80%);
  pointer-events: none;
}

/* Decorative large watermark "H" — signature editorial element */
.hero__grid {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(220px, 40vw, 520px);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

.hero__grid::after {
  content: 'H';
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: calc(var(--container-pad) + 5rem) var(--container-pad) var(--container-pad);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Greeting */
.hero__greeting {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 1.5vw, 0.9375rem);
  color: var(--pale);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

/* Name — the centrepiece */
.hero__name {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 168px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--off-white);
  display: flex;
  align-items: baseline;
  gap: 0.04em;
}

.hero__name-cursor {
  color: var(--neon);
  animation: blink-cursor 1s step-end infinite;
  font-weight: 300;
}

/* Role line */
.hero__role {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  color: var(--pale);
  margin-top: 1.25rem;
  letter-spacing: -0.01em;
}

.hero__role em {
  font-style: italic;
  color: var(--off-white);
  font-weight: 400;
}

/* Rotating specialty typewriter */
.hero__specialty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  min-height: 1.6em;
}

.hero__specialty-arrow {
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
}

.hero__specialty-text {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  color: var(--neon);
  letter-spacing: 0.02em;
}

.hero__specialty-cursor {
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  color: var(--neon);
  animation: blink-cursor 0.75s step-end infinite;
  line-height: 1;
}

/* Status bar */
.hero__status {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.hero__status-item {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--pale);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.hero__status-sep {
  color: var(--pale-2);
  font-size: 0.75rem;
}

.hero__status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--container-pad);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--pale-2);
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--pale-2), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--ink-2);
}

.section__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Section eyebrow label — JetBrains Mono bracket style */
.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--neon);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

/* Section heading */
.section__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--off-white);
  margin-bottom: 3rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about__headline h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--off-white);
}

.about__headline h2 em {
  font-style: italic;
  color: var(--neon);
}

.about__lead {
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--off-white);
  margin-bottom: 1.25rem;
}

.about__body p {
  color: var(--pale);
  margin-bottom: 1.125rem;
  font-size: 0.9375rem;
}

.about__body p:last-of-type {
  margin-bottom: 0;
}

/* Stats row */
.about__stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ink-2);
  flex-wrap: wrap;
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about__stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--neon);
  letter-spacing: -0.03em;
  line-height: 1;
}

.about__stat-label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--pale);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .about__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   SPECIALTIES
   ============================================================ */
.specialties__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.spec-card {
  padding: 1.75rem;
  background: var(--ink-1);
  transition: background var(--dur);
  position: relative;
}

.spec-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--neon);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur) var(--ease);
}

.spec-card:hover {
  background: var(--ink-2);
}

.spec-card:hover::after {
  transform: scaleY(1);
}

.spec-card__icon {
  font-size: 1.375rem;
  margin-bottom: 0.875rem;
  line-height: 1;
}

.spec-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: -0.01em;
  margin-bottom: 0.625rem;
}

.spec-card__desc {
  font-size: 0.875rem;
  color: var(--pale);
  line-height: 1.65;
}

/* ============================================================
   STACK
   ============================================================ */
.stack__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 2.5rem;
}

.stack__category {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stack__cat-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--pale);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ink-2);
}

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

/* ============================================================
   TAGS & PILLS
   ============================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.03em;
  color: var(--pale);
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}

.tag:hover {
  color: var(--off-white);
  border-color: var(--pale-2);
}

.tag--accent {
  color: var(--neon);
  background: var(--neon-dim);
  border-color: var(--neon-border);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--neon);
  color: var(--ink);
  font-weight: 600;
}

.btn--primary:hover {
  background: #00cc64;
}

.btn--ghost {
  background: transparent;
  color: var(--off-white);
  border: 1px solid var(--ink-3);
}

.btn--ghost:hover {
  border-color: var(--pale-2);
  background: var(--ink-2);
}

.btn--small {
  font-size: 0.8125rem;
  padding: 0.4375rem 0.875rem;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects__header {
  margin-bottom: 3rem;
}

.projects__subtitle {
  font-size: 1rem;
  color: var(--pale);
  margin-top: 0.5rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}

/* Loading state */
.projects__loading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 3rem;
  color: var(--pale);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon);
  animation: loading-bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.loading-dots span:nth-child(3) { animation-delay: 0.3s; }

/* Project card */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-1);
  border: 1px solid var(--ink-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur), transform var(--dur) var(--ease), box-shadow var(--dur);
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--neon-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Image / visual area */
.project-card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

/* Gradient placeholder (shown when image is absent/fails) */
.project-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__img-placeholder-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.08);
  user-select: none;
}

/* Featured badge */
.project-card__badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--neon);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* Card body */
.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
  gap: 0.875rem;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--off-white);
  line-height: 1.25;
}

.project-card__summary {
  font-size: 0.875rem;
  color: var(--pale);
  line-height: 1.65;
}

/* Expandable case study */
.project-card__case-study {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-2);
  animation: fade-in 0.3s var(--ease);
}

.case-study__item {
  display: flex;
  flex-direction: column;
  gap: 0.3125rem;
}

.case-study__label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pale-2);
}

.case-study__text {
  font-size: 0.8125rem;
  color: var(--pale);
  line-height: 1.65;
}

.case-study__outcome {
  color: var(--neon);
  font-weight: 400;
}

/* Stack tags inside card */
.project-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Card footer with links + expand button */
.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--ink-2);
  flex-wrap: wrap;
}

.project-card__links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  color: var(--pale);
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--ink-3);
  border-radius: var(--radius-sm);
  transition: color var(--dur), border-color var(--dur), background var(--dur);
}

.btn-expand:hover,
.btn-expand:focus-visible {
  color: var(--off-white);
  border-color: var(--pale-2);
  background: var(--ink-2);
  outline: none;
}

.btn-expand[aria-expanded="true"] {
  color: var(--neon);
  border-color: var(--neon-border);
  background: var(--neon-dim);
}

.btn-expand__icon {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
  line-height: 1;
}

.btn-expand[aria-expanded="true"] .btn-expand__icon {
  transform: rotate(180deg);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.contact__headline h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--off-white);
  margin-bottom: 1rem;
}

.contact__headline h2 em {
  font-style: italic;
  color: var(--neon);
}

.contact__sub {
  font-size: 0.9375rem;
  color: var(--pale);
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact__social {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3125rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--pale);
  transition: color var(--dur);
}

.contact__social-link:hover,
.contact__social-link:focus-visible {
  color: var(--neon);
  outline: none;
}

@media (max-width: 767px) {
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--ink-2);
  padding: 2rem 0;
}

.footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy,
.footer__made {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--pale-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* Staggered reveal for grid children */
.specialties__grid .spec-card.reveal.is-visible:nth-child(2) { transition-delay: 0.07s; }
.specialties__grid .spec-card.reveal.is-visible:nth-child(3) { transition-delay: 0.14s; }
.specialties__grid .spec-card.reveal.is-visible:nth-child(4) { transition-delay: 0.21s; }
.specialties__grid .spec-card.reveal.is-visible:nth-child(5) { transition-delay: 0.28s; }
.specialties__grid .spec-card.reveal.is-visible:nth-child(6) { transition-delay: 0.35s; }
.specialties__grid .spec-card.reveal.is-visible:nth-child(7) { transition-delay: 0.42s; }

.projects__grid .project-card.reveal.is-visible:nth-child(2) { transition-delay: 0.1s; }
.projects__grid .project-card.reveal.is-visible:nth-child(3) { transition-delay: 0.2s; }
.projects__grid .project-card.reveal.is-visible:nth-child(4) { transition-delay: 0.3s; }
.projects__grid .project-card.reveal.is-visible:nth-child(5) { transition-delay: 0.4s; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  40%  { transform: scaleY(1); transform-origin: top; }
  60%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes loading-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   REDUCED MOTION
   Override all animations / transitions for users who prefer it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__name-cursor,
  .hero__specialty-cursor {
    animation: none;
  }

  .hero__status-dot {
    animation: none;
  }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet ── */
@media (max-width: 1023px) {
  .about__layout {
    grid-template-columns: 1fr;
  }

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

/* ── Mobile ── */
@media (max-width: 767px) {
  :root {
    --section-pad: clamp(3.5rem, 8vw, 5.5rem);
  }

  .hero__scroll {
    display: none;
  }

  .hero__grid {
    font-size: clamp(160px, 50vw, 260px);
    opacity: 0.5;
  }

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

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

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

  .about__stats {
    gap: 1.5rem;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
  }
}

/* ── Focus visible (keyboard accessibility) ── */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}