@charset "UTF-8";

/* ==========================================================================
   Matt Blackert — Portfolio
   Dark, sleek, techy. Space Grotesk display / Inter body / JetBrains Mono accents.
   ========================================================================== */

:root {
  --bg: #070a0f;
  --bg-raised: #0c1118;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e8edf4;
  --text-dim: #9aa7b8;
  --text-faint: #5c6a7d;
  --accent: #35e0c2;
  --accent-dim: rgba(53, 224, 194, 0.14);
  --accent-glow: rgba(53, 224, 194, 0.35);
  --violet: #8b7cf6;
  --amber: #f6b355;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-h: 72px;
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

html.lenis {
  height: auto;
  scroll-behavior: auto;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

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

/* ==========================================================================
   Ambient background
   ========================================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-glow--1 {
  width: 560px;
  height: 560px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(53, 224, 194, 0.14), transparent 65%);
}

.bg-glow--2 {
  width: 640px;
  height: 640px;
  bottom: -260px;
  left: -200px;
  background: radial-gradient(circle, rgba(139, 124, 246, 0.12), transparent 65%);
}

/* ==========================================================================
   Scroll progress
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 200;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(7, 10, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav__logo-dot {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__links a:hover {
  color: var(--text);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__links a.is-active {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-left: auto;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

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

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

/* Full-screen overlay, sits just below the nav bar so logo + toggle stay on top */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--nav-h) + 20px) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s var(--ease-out), visibility 0s;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.2s ease;
}

.mobile-menu__links a:active {
  color: var(--accent);
}

.mobile-menu__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu__cta {
  width: 100%;
}

.mobile-menu__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
}

.mobile-menu__social a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.mobile-menu__social a:hover,
.mobile-menu__social a:active {
  color: var(--accent);
}

.mobile-menu.is-open .mobile-menu__links a,
.mobile-menu.is-open .mobile-menu__footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-menu__footer { transition-delay: 0.3s; }

html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
}

.btn--primary {
  background: var(--accent);
  color: #04211b;
  box-shadow: 0 0 0 rgba(53, 224, 194, 0);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 0.8125rem;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--sm:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 32px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 11vw, 7.5rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__line > span {
  display: inline-block;
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text-dim);
  margin-bottom: 40px;
}

.hero__sub strong {
  color: var(--text);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  list-style: none;
}

.hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero__meta-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.hero__meta-label {
  font-size: 0.875rem;
  color: var(--text-faint);
  max-width: 140px;
  line-height: 1.35;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.hero__scroll-hint:hover {
  color: var(--accent);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--text-faint));
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-drip 2s var(--ease-out) infinite;
}

@keyframes scroll-drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section {
  padding: 130px 0;
  position: relative;
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 56px;
  max-width: 720px;
}

/* Reveal initial state — JS animates in; no-JS stays visible */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
}

.js.reduced-motion [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Cards (shared)
   ========================================================================== */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%),
    rgba(53, 224, 194, 0.09), transparent 45%);
  pointer-events: none;
}

.card:hover .card__glow {
  opacity: 1;
}

/* ==========================================================================
   About
   ========================================================================== */

.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.about__text p {
  color: var(--text-dim);
  font-size: 1.0625rem;
  margin-bottom: 20px;
}

.about__text p:last-child {
  margin-bottom: 0;
  color: var(--text);
}

.about__facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.fact:last-child {
  border-bottom: 0;
}

.fact__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.fact__value {
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ==========================================================================
   Current work
   ========================================================================== */

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.work__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.work__badge {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding: 5px 10px;
  border-radius: 6px;
}

.work__badge--p44 { background: var(--accent-dim); color: var(--accent); }
.work__badge--mb  { background: rgba(139, 124, 246, 0.14); color: var(--violet); }
.work__badge--ko  { background: rgba(246, 179, 85, 0.14); color: var(--amber); }

.work__role {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-align: right;
}

.work__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.work__desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}

.work__tags li {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.work__link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.work__arrow {
  transition: transform 0.25s var(--ease-out);
}

.work__link:hover .work__arrow {
  transform: translateX(4px);
}

.work__link--soon {
  color: var(--text-faint);
}

/* ==========================================================================
   Timeline
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: 40px;
  max-width: 760px;
}

.timeline__track {
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.timeline__progress {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--violet));
  transform-origin: top;
  transform: scaleY(0);
}

.timeline__item {
  position: relative;
  padding-bottom: 52px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text-faint);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline__item:hover .timeline__dot {
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.timeline__role {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline__co {
  color: var(--text-faint);
  font-weight: 500;
}

.timeline__desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
  max-width: 620px;
}

/* ==========================================================================
   Skills
   ========================================================================== */

.skills.section {
  padding: 44px 0 40px;
}

.skills .section__title {
  margin-bottom: 18px;
}

.skills__grid {
  column-count: 3;
  column-gap: 20px;
}

.skills__group {
  padding: 16px 18px;
  break-inside: avoid;
  margin-bottom: 16px;
}

.skills__group-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.chips li {
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.chips li:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ==========================================================================
   Credentials
   ========================================================================== */

.credentials__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: start;
}

.credentials__col-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credentials__col-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.credentials__list {
  list-style: none;
}

.credentials__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.credentials__list li:last-child {
  border-bottom: 0;
}

.credentials__list li::before {
  content: "▸";
  color: var(--accent);
  font-size: 0.75rem;
}

.credentials__name {
  font-weight: 500;
  font-size: 0.9375rem;
}

.credentials__meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.credentials__pub-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}

.credentials__pub-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.credentials__pub-desc {
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  text-align: center;
  padding-bottom: 160px;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.contact__sub {
  color: var(--text-dim);
  font-size: 1.125rem;
  max-width: 480px;
  margin: 0 auto 48px;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-faint);
}

.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

  .skills__grid {
    column-count: 1;
  }

  .about__grid,
  .credentials__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 90px 0;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 64px;
  }

  .container,
  .nav__inner {
    width: min(1120px, 100% - 40px);
  }

  /* --- Nav: logo left, compact CTA + hamburger right --- */
  .nav__inner {
    gap: 14px;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    margin-left: auto;
    padding: 8px 16px;
  }

  .nav__toggle {
    display: flex;
    margin-left: 0;
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }

  /* --- Hero: tighter rhythm, full-width CTAs, stat grid --- */
  .hero {
    padding: calc(var(--nav-h) + 32px) 0 72px;
  }

  .hero__eyebrow {
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    line-height: 1.7;
    align-items: flex-start;
    padding: 8px 14px;
    border-radius: 18px;
    margin-bottom: 28px;
  }

  .hero__eyebrow .status-dot {
    flex-shrink: 0;
    margin-top: 5px;
  }

  .hero__title {
    font-size: clamp(3rem, 16vw, 4.5rem);
    margin-bottom: 24px;
  }

  .hero__sub {
    margin-bottom: 32px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 44px;
  }

  .hero__actions .btn {
    width: 100%;
    padding: 15px 26px;
  }

  .hero__meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
  }

  .hero__meta li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .hero__meta-num {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .hero__meta-label {
    max-width: none;
    font-size: 0.8125rem;
  }

  .hero__scroll-hint {
    display: none;
  }

  /* --- Sections: mobile rhythm --- */
  .section {
    padding: 84px 0;
  }

  .section__title {
    margin-bottom: 40px;
  }

  .about__text p {
    font-size: 1rem;
  }

  /* --- Cards: tighter padding, drop expensive blur --- */
  .card {
    padding: 24px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .skills__group {
    padding: 16px 18px;
  }

  .work__card-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .work__name {
    font-size: 1.5rem;
  }

  /* --- Timeline --- */
  .timeline {
    padding-left: 30px;
  }

  .timeline__dot {
    left: -30px;
    width: 14px;
    height: 14px;
    top: 7px;
  }

  .timeline__item {
    padding-bottom: 44px;
  }

  .timeline__role {
    font-size: 1.125rem;
  }

  /* --- Credentials: keep the bullet beside long names when they wrap --- */
  .credentials__list li::before {
    flex-shrink: 0;
  }

  .credentials__name {
    flex: 1 1 0;
    min-width: 0;
  }

  /* --- Contact + footer --- */
  .contact {
    padding-bottom: 110px;
  }

  .contact__sub {
    font-size: 1.0625rem;
    margin-bottom: 40px;
  }

  .contact__actions {
    flex-direction: column;
    gap: 12px;
  }

  .contact__actions .btn {
    width: 100%;
  }

  .footer {
    padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .footer__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 14px;
  }

  /* --- Lighter ambient effects for mobile GPUs --- */
  .bg-glow {
    filter: blur(80px);
    opacity: 0.45;
  }

  .bg-glow--1 {
    width: 360px;
    height: 360px;
    top: -120px;
    right: -100px;
  }

  .bg-glow--2 {
    width: 420px;
    height: 420px;
    bottom: -160px;
    left: -140px;
  }
}

@media (max-width: 380px) {
  .container,
  .nav__inner {
    width: min(1120px, 100% - 32px);
  }

  .card {
    padding: 20px;
  }
}

@media (max-width: 340px) {
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    margin-left: auto;
  }
}

/* ==========================================================================
   Touch feedback — hover effects don't exist on touch, :active does
   ========================================================================== */

@media (hover: none) {
  .btn:active {
    transform: scale(0.97);
    transition-duration: 0.1s;
  }

  .btn--primary:active {
    box-shadow: 0 4px 24px var(--accent-glow);
  }

  .btn--ghost:active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
  }

  .card:active {
    border-color: var(--border-strong);
    background: var(--surface-hover);
  }

  .chips li:active,
  .work__tags li:active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
  }

  .work__link:active .work__arrow {
    transform: translateX(4px);
  }

  .footer__links a:active {
    color: var(--accent);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@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;
    transition-delay: 0s !important;
  }
}
