/* Jeff Mentch - dark editorial portfolio (2026) */
:root {
  --bg: #08090a;
  --bg-elevated: #111315;
  --bg-soft: #171a1d;
  --text: #f2f2ee;
  --text-muted: #a7aaa8;
  --text-faint: #717672;
  --accent: #8ee7c8;
  --accent-2: #f0c36a;
  --accent-3: #f58b6c;
  --accent-hover: #bcf7e4;
  --border: #252a2c;
  --radius: 0.5rem;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --space: 1.25rem;
  --max-width: 68rem;
  --content-width: 48rem;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(ellipse at 20% 0%, rgba(142, 231, 200, 0.10), transparent 34rem),
    radial-gradient(ellipse at 80% 15%, rgba(240, 195, 106, 0.08), transparent 30rem),
    var(--bg);
  background-size: 4rem 4rem, 4rem 4rem, auto, auto, auto;
  -webkit-font-smoothing: antialiased;
}

/* Motion: opacity + transform only (compositor-friendly). `motion-init` is set in head.html when reduced-motion is off. */
@keyframes motion-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes motion-header-in {
  from {
    opacity: 0;
    transform: translate3d(0, -0.35rem, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes motion-hero-glow {
  from {
    opacity: 0.34;
  }
  to {
    opacity: 0.62;
  }
}

/* Typography – single font, minimal */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: 0;
}

h1 {
  font-size: 2.35rem;
  margin: 0 0 0.5em;
}

h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.6rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.4rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* Layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 10, 0.78);
  backdrop-filter: blur(18px);
}

@media (prefers-reduced-motion: no-preference) {
  .site-header {
    animation: motion-header-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
}

.site-title {
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-title a {
  color: var(--text);
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.15rem;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .nav a:hover::after,
  .nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }
}

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

.main {
  padding: 3.25rem 0 5rem;
}

/* Home hero */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  text-align: left;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  top: 2rem;
  width: 17rem;
  height: 17rem;
  border: 1px solid rgba(142, 231, 200, 0.2);
  background:
    linear-gradient(90deg, rgba(142, 231, 200, 0.14), transparent 2px),
    linear-gradient(rgba(142, 231, 200, 0.14), transparent 2px);
  background-size: 1.4rem 1.4rem;
  opacity: 0.6;
  transform: rotate(7deg);
  clip-path: polygon(15% 0, 100% 0, 86% 100%, 0 84%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero::before {
    animation: motion-hero-glow 16s ease-in-out infinite alternate;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .motion-hero > * {
    animation: motion-fade-up 0.68s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .motion-hero > *:nth-child(1) {
    animation-delay: 0.04s;
  }

  .motion-hero > *:nth-child(2) {
    animation-delay: 0.1s;
  }

  .motion-hero > *:nth-child(3) {
    animation-delay: 0.16s;
  }

  .motion-hero > *:nth-child(4) {
    animation-delay: 0.22s;
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 47rem;
  font-size: 4rem;
  line-height: 1.02;
  margin-bottom: 1rem;
}

.hero .tagline {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 41rem;
  margin: 0 0 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.68rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: no-preference) {
  .btn:hover {
    transform: translateY(-1px);
  }

  .btn:active {
    transform: translateY(0);
  }
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

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

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

.btn-ghost:hover {
  color: var(--text);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 5rem;
}

.signal-card,
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 19, 21, 0.74);
  box-shadow: var(--shadow);
}

.signal-card {
  min-height: 13rem;
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.signal-card:hover,
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(142, 231, 200, 0.45);
  background: rgba(21, 24, 26, 0.88);
}

.signal-kicker {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
}

.signal-card h2 {
  margin-top: 0;
}

.signal-card p {
  color: var(--text-muted);
}

.featured-work {
  margin: 0 0 2rem;
}

.section-heading {
  max-width: var(--content-width);
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin-top: 0;
  font-size: 1.9rem;
}

.work-list {
  border-top: 1px solid var(--border);
}

.work-row {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.work-row span {
  font-weight: 600;
}

.work-row em {
  color: var(--text-muted);
  font-style: normal;
}

.work-row:hover em {
  color: var(--text);
}

/* Page content */
.page-content {
  max-width: var(--content-width);
}

.page-content-wide {
  max-width: none;
}

.page-content h1 {
  margin-bottom: 0.75rem;
}

.page-content .lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.projects-intro,
.project-grid {
  max-width: none;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  display: block;
  color: var(--text);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.project-card:hover {
  color: var(--text);
}

.project-card.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
}

.project-visual {
  min-height: 13rem;
  background: var(--bg-soft);
  overflow: hidden;
}

.project-card.feature .project-visual {
  min-height: 18rem;
}

.project-visual img {
  width: 100%;
  height: 100%;
  min-height: 13rem;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
}

.project-body {
  padding: 1.15rem;
}

.project-type {
  margin-bottom: 0.8rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-body h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.project-body p {
  color: var(--text-muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.project-tags li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.project-visual-code,
.project-visual-speech {
  display: grid;
  place-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(142, 231, 200, 0.16), transparent 44%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 0.9rem),
    #101315;
}

.project-visual-code span,
.project-visual-speech span {
  color: var(--text);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}

.project-visual-code small,
.project-visual-speech small {
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-visual-speech .project-visual-speech-line {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.25;
}

.project-visual-speech .project-visual-speech-line:first-of-type {
  margin-top: 0.45rem;
}

/* Feature card — dual headline stats */
.project-visual-metrics {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0 0.85rem;
  padding: 1rem 1.25rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(142, 231, 200, 0.14), transparent 48%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 0.85rem),
    #101315;
}

.project-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.project-metric-value {
  color: var(--text);
  font-size: clamp(1.85rem, 4.2vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
}

.project-metric-label {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-metric-sep {
  width: 1px;
  align-self: stretch;
  min-height: 4.5rem;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(255, 255, 255, 0.12) 85%,
    transparent
  );
}

@media (max-width: 520px) {
  .project-visual-metrics {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.75rem;
    padding: 1.1rem;
  }

  .project-metric-sep {
    width: 100%;
    height: 1px;
    min-height: 0;
    align-self: center;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.12) 20%,
      rgba(255, 255, 255, 0.12) 80%,
      transparent
    );
  }
}

.project-visual-wave {
  position: relative;
  background:
    linear-gradient(90deg, transparent, rgba(245, 139, 108, 0.12), transparent),
    #111315;
}

.project-visual-wave::before {
  content: "";
  position: absolute;
  inset: 2rem 0;
  background:
    linear-gradient(90deg, transparent 0 4%, var(--accent-3) 4% 4.5%, transparent 4.5% 8%),
    linear-gradient(90deg, transparent 0 10%, var(--accent) 10% 10.4%, transparent 10.4% 16%);
  background-size: 4rem 100%, 5rem 100%;
  opacity: 0.75;
  clip-path: polygon(0 50%, 7% 42%, 13% 62%, 20% 25%, 28% 70%, 37% 36%, 45% 52%, 54% 30%, 63% 66%, 71% 44%, 80% 58%, 89% 34%, 100% 51%, 100% 100%, 0 100%);
}

/* VR / 360 gaze — avoids reusing unrelated hardware photos */
.project-visual-vr {
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 80% at 50% 42%, rgba(120, 180, 255, 0.14), transparent 55%),
    linear-gradient(168deg, #0f1419 0%, #080c12 100%);
}

.project-visual-vr span {
  color: var(--text);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
}

.project-visual-vr small {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Project card thumbs — text badges (no image) */
.project-visual-badge {
  display: grid;
  place-content: center;
  text-align: center;
  min-height: 13rem;
  padding: 0.75rem;
}

.project-card.feature .project-visual-badge {
  min-height: 18rem;
}

.project-visual-badge span {
  color: var(--text);
  font-size: clamp(1.35rem, 3.8vw, 2.15rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 100%;
  padding: 0 0.35rem;
}

.project-visual-badge small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  line-height: 1.35;
  max-width: 100%;
  padding: 0 0.35rem;
}

.project-visual-badge--viz {
  background:
    radial-gradient(ellipse 100% 80% at 30% 30%, rgba(100, 220, 180, 0.2), transparent 50%),
    linear-gradient(155deg, #0c1210 0%, #080b0a 100%);
}
.project-visual-badge--viz small {
  color: #6ee7b7;
}

.project-visual-badge--web {
  background:
    radial-gradient(circle at 70% 40%, rgba(129, 140, 248, 0.18), transparent 45%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 24px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 0 1px,
      transparent 1px 28px
    ),
    #0e1018;
}
.project-visual-badge--web small {
  color: #a5b4fc;
}

.project-visual-badge--pharma {
  background:
    radial-gradient(ellipse 90% 70% at 50% 60%, rgba(248, 113, 113, 0.12), transparent 55%),
    linear-gradient(168deg, #141016 0%, #0a090c 100%);
}
.project-visual-badge--pharma small {
  color: #fca5a5;
}

.project-visual-badge--eeg {
  position: relative;
  background: linear-gradient(180deg, #0f1218 0%, #0a0c12 100%);
  overflow: hidden;
}
.project-visual-badge--eeg::before {
  content: "";
  position: absolute;
  inset: 2rem 12% 2.25rem;
  background:
    radial-gradient(ellipse 120% 45% at 20% 70%, rgba(56, 189, 248, 0.35), transparent 55%),
    radial-gradient(ellipse 100% 40% at 78% 35%, rgba(129, 140, 248, 0.28), transparent 50%);
  opacity: 0.85;
  pointer-events: none;
}
.project-visual-badge--eeg span,
.project-visual-badge--eeg small {
  position: relative;
  z-index: 1;
}
.project-visual-badge--eeg small {
  color: #7dd3fc;
}

.project-visual-badge--music {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.14), transparent 42%),
    linear-gradient(225deg, rgba(245, 158, 11, 0.08), transparent 48%),
    #14110c;
}
.project-visual-badge--music small {
  color: #fcd34d;
}

.project-visual-badge--clinical {
  background:
    radial-gradient(circle at 50% 30%, rgba(96, 165, 250, 0.15), transparent 50%),
    linear-gradient(165deg, #0f141c 0%, #090c11 100%);
}
.project-visual-badge--clinical small {
  color: #93c5fd;
}

.project-visual-badge--field {
  background:
    linear-gradient(180deg, rgba(14, 116, 144, 0.35) 0%, rgba(15, 23, 42, 0.95) 55%, #070b12 100%);
}
.project-visual-badge--field small {
  color: #67e8f9;
}

/* Marine / sonification — GOM mosaic prototype */
.project-visual-badge--soni {
  background:
    radial-gradient(ellipse 80% 60% at 40% 75%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 25%, rgba(56, 189, 248, 0.14), transparent 45%),
    linear-gradient(175deg, #0a1418 0%, #060d12 100%);
}
.project-visual-badge--soni small {
  color: #5eead4;
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
}

.figure-grid img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.figure-grid figcaption,
.project-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.project-caption img {
  width: 100%;
  max-width: 52rem;
  height: auto;
  display: block;
  margin-top: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.project-detail {
  max-width: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.back-link:hover {
  color: var(--text);
}

.project-hero-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
  gap: 2rem;
  align-items: end;
  padding: 2.25rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.project-hero-detail h1 {
  max-width: 42rem;
  font-size: 3.4rem;
  line-height: 1.05;
}

.project-hero-detail .lead {
  max-width: 38rem;
}

.project-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.project-facts div {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: rgba(17, 19, 21, 0.74);
}

.project-facts dt {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0.18rem 0 0;
  color: var(--text);
  font-size: 0.98rem;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 3rem;
}

.project-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.project-links a:hover {
  border-color: rgba(142, 231, 200, 0.55);
  color: var(--text);
}

.project-detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: var(--content-width);
}

.project-detail-content h2 {
  margin-top: 2.25rem;
}

.project-detail-content ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin-top: auto;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.85rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem var(--space);
}

.error-page h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Scroll reveals: `motion-init` on <html> + assets/js/site.js (IntersectionObserver). */
@media (prefers-reduced-motion: no-preference) {
  html.motion-init .motion-reveal:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 0.85rem, 0);
  }

  html.motion-init .motion-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.motion-init .motion-reveal-stagger:not(.is-visible) > * {
    opacity: 0;
    transform: translate3d(0, 0.9rem, 0);
  }

  html.motion-init .motion-reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
      opacity 0.46s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.46s cubic-bezier(0.22, 1, 0.36, 1);
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(1) {
    transition-delay: 0.04s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(2) {
    transition-delay: 0.08s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(3) {
    transition-delay: 0.12s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(4) {
    transition-delay: 0.16s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(5) {
    transition-delay: 0.2s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(6) {
    transition-delay: 0.24s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(7) {
    transition-delay: 0.28s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(8) {
    transition-delay: 0.32s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(9) {
    transition-delay: 0.36s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(10) {
    transition-delay: 0.4s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(11) {
    transition-delay: 0.44s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(12) {
    transition-delay: 0.48s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(13) {
    transition-delay: 0.52s;
  }

  html.motion-init .motion-reveal-stagger.is-visible > *:nth-child(14) {
    transition-delay: 0.56s;
  }
}

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

  .motion-hero > *,
  .site-header {
    animation: none !important;
  }

  .hero::before {
    animation: none !important;
  }

  .nav a::after {
    display: none;
  }
}

/* Fonts – DM Sans only for minimal look */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600&display=swap");

@media (max-width: 760px) {
  :root {
    --space: 1rem;
  }

  .site-header {
    position: static;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .hero::before {
    width: 10rem;
    height: 10rem;
    opacity: 0.32;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .signal-grid,
  .project-grid,
  .project-card.feature {
    grid-template-columns: 1fr;
  }

  .signal-card {
    min-height: auto;
  }

  .signal-kicker {
    margin-bottom: 1.6rem;
  }

  .work-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .project-card.feature {
    display: block;
  }

  .project-hero-detail {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .project-hero-detail h1 {
    font-size: 2.45rem;
  }

  .site-footer .wrap {
    align-items: flex-start;
    flex-direction: column;
  }
}
