/* ==========================================================================
   Mukund N. Mishra portfolio
   Tokens and rules follow CLAUDE.md (Design system).
   ========================================================================== */

:root {
  --ink: #0C1119;
  --navy: #121B2B;
  --raised: #1A2638;
  --paper: #EEF1F5;
  --text-light: #E9EDF3;
  --muted-light: #93A1B5;
  --text-dark: #121B2B;
  --muted-dark: #4A5870;
  --accent: #86AEDB;
  --accent-on-paper: #5A83B3; /* same blue, deepened for 3:1 outlines on paper */

  /* Line length: about 70 characters of Schibsted Grotesk at any size */
  --measure: 30em;

  --line-light: rgba(147, 161, 181, 0.22);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.5rem, 5vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.5rem;
}

/* Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-light);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

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

.btn-outline {
  border-color: rgba(233, 237, 243, 0.4);
  color: var(--text-light);
}
.btn-outline:hover { border-color: var(--text-light); }

/* Header and navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: calc(var(--header-h) - 1px); /* + 1px border = --header-h */
}

.wordmark {
  color: var(--text-light);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(233, 237, 243, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2vw, 2rem);
}

.nav-list {
  display: flex;
  gap: clamp(1rem, 1.6vw, 1.75rem);
}

.nav-list a {
  color: var(--muted-light);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-list a:hover { color: var(--text-light); }
.nav-list a[aria-current="true"] { color: var(--accent); }

.nav-cta { min-height: 2.5rem; padding-block: 0.5rem; }

/* Below 1024px the nav collapses behind the Menu button */
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; align-items: center; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--ink);
    border-bottom: 1px solid var(--line-light);
  }
  .site-nav.is-open { display: flex; }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-list a {
    display: block;
    padding: 0.625rem 0;
    font-size: 1.0625rem;
    color: var(--text-light);
  }
}

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

.hero { background: var(--ink); }

.hero-main {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 2rem 3rem;
}

.hero-eyebrow {
  color: var(--muted-light);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: normal;
}

.hero-heading {
  margin-top: 1rem;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-support {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-location {
  color: var(--muted-light);
  font-size: var(--fs-small);
}

/* Portrait: mobile first. Shown above the text, head and shoulders, no fade */
.hero-portrait {
  aspect-ratio: 5 / 4;
  overflow: hidden;
}
.hero-portrait picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

/* Headline wraps to three balanced lines wherever the width allows, so no
   word sits alone. 11.25em is the narrowest width that holds three lines. */

/* Phones: normal wrapping. Balanced wrapping spreads the headline over five
   lines at 360px. "to renewal." is joined by a non-breaking space in the
   HTML, so the last line never holds a single word. */
@media (max-width: 767.98px) {
  .hero-heading { text-wrap: wrap; }
}

/* Under 400px: smaller minimum size */
@media (max-width: 399.98px) {
  .hero-heading { font-size: 2.1rem; }
}

/* From 768px: text left, portrait right, left edge fading into ink.
   Hero + stat strip + marquee fill exactly one screen (capped on very
   tall screens). */
@media (min-width: 768px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: min(calc(100svh - var(--header-h)), 60rem);
  }

  .hero-main {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    min-height: 30rem;
  }

  .hero-content { padding-block: 3.5rem; }
  .hero-content > * { max-width: min(34rem, 56%); }
  .hero-content > .hero-heading { max-width: min(11.5em, 66%); }
  .hero-content > .hero-actions { max-width: none; }
  .hero-location { margin-left: 0.75rem; }

  .hero-portrait {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(52%, 46rem);
    aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
            mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  }
  .hero-portrait img { object-position: 50% 0%; }
}

/* 1024–1199px: the headline (11.25em at 5vw = 56.25vw) must end before the
   portrait's faded edge, so the portrait starts just after it. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .hero-content > .hero-heading { max-width: 11.25em; }
  .hero-portrait { width: calc(100% - var(--gutter) - 56.25vw - 1.5rem); }
}

@media (min-width: 1200px) {
  .hero-content > * { max-width: 36rem; }
  .hero-content > .hero-heading { max-width: 11.5em; }
}

/* Stat strip
   ========================================================================== */

.stats {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem 1rem 1.5rem 0;
}

.stat-num {
  order: -1;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-light);
}

.stat-label {
  max-width: 16rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.45;
}

/* Mobile: 2 × 2 grid with dividers */
@media (max-width: 767px) {
  .stat:nth-child(odd) { padding-right: 1rem; border-right: 1px solid var(--line-light); }
  .stat:nth-child(even) { padding-left: 1.25rem; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line-light); }
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 2rem 1.5rem; border-left: 1px solid var(--line-light); }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

/* Industry marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: 1.125rem;
  color: var(--muted-light);
  font-size: 0.9375rem;
  font-weight: 500;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-list {
  display: flex;
  flex-shrink: 0;
}

.marquee-list li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.marquee-list li::after {
  content: "·";
  padding-inline: 1.5rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-navy { background: var(--navy); color: var(--text-light); }

.section-heading {
  max-width: 22ch;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}

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

.about-grid {
  display: grid;
  gap: 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.about-text {
  display: grid;
  gap: 1.25rem;
  max-width: var(--measure);
}

.about-themes { display: grid; }

.about-theme {
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.about-theme:last-child { border-bottom: 1px solid var(--line-light); }

.about-theme dt {
  font-weight: 600;
  color: var(--text-light);
}

.about-theme dd {
  margin-top: 0.375rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.55;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
  .about-themes { padding-top: 0.375rem; }
}

/* Tags (Commercial, Technical, Deployment)
   ========================================================================== */

.tag {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

/* How I deploy
   Default: stacked cards. .is-pinned (added by main.js from 1024px,
   motion allowed): rail on top, one stage panel at a time.
   ========================================================================== */

.section-ink { background: var(--ink); color: var(--text-light); }

.deploy-rail { display: none; }

.deploy-stages {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.deploy-stage {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--raised);
  border-radius: 12px;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.stage-name {
  flex-basis: 100%;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.stage-where {
  color: var(--muted-light);
  font-size: var(--fs-small);
}

.stage-body {
  display: grid;
  gap: 1.25rem;
}

.stage-did { max-width: var(--measure); }

.stage-outcome {
  max-width: var(--measure);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

/* Pinned desktop layout */
.deploy.is-pinned {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  padding-block: 3rem;
}

.is-pinned .deploy-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 2.5rem;
  border-top: 2px solid var(--line-light);
}

/* Progress fill along the top of the rail; width set by main.js */
.is-pinned .deploy-rail::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  height: 2px;
  width: calc(var(--rail-progress, 0) * 100%);
  background: var(--accent);
}

.deploy-rail-step {
  width: 100%;
  padding: 1rem 1rem 0 0;
  border: 0;
  background: none;
  color: var(--muted-light);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.deploy-rail-step:hover { color: var(--text-light); }
.deploy-rail-step[aria-current="step"] { color: var(--accent); }

.is-pinned .deploy-stages {
  grid-template-areas: "stage";
  margin-top: 2rem;
}

.is-pinned .deploy-stage {
  grid-area: stage;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 3.5vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.is-pinned .deploy-stage.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}

.is-pinned .stage-head { align-content: start; }
.is-pinned .stage-name { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }

/* Experience
   ========================================================================== */

.section-paper {
  --line-dark: rgba(18, 27, 43, 0.14);
  background: var(--paper);
  color: var(--text-dark);
}
.section-paper a { color: var(--text-dark); }

/* The accent is too pale on paper (2:1). On light sections tags use dark
   text and a deeper shade of the accent blue for the outline (3:1+). */
.section-paper .tag {
  border-color: var(--accent-on-paper);
  color: var(--text-dark);
}

.roles-full,
.roles-compact {
  display: grid;
  gap: 1rem;
}
.roles-full { margin-top: clamp(2rem, 4vw, 3rem); }
.roles-compact { margin-top: 1rem; }

.role {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
}

.role-company {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.role-title {
  margin-top: 0.25rem;
  font-weight: 500;
}

.role-meta {
  margin-top: 0.25rem;
  color: var(--muted-dark);
  font-size: var(--fs-small);
}

.role-details,
.role-lines {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.role-details > div {
  display: grid;
  gap: 0.25rem;
}

.role-details dt {
  color: var(--muted-dark);
  font-size: var(--fs-small);
  font-weight: 600;
}

.role-details dd { max-width: var(--measure); }

.role-outcomes {
  display: grid;
  gap: 0.625rem;
}

.role-outcomes li,
.role-lines li { max-width: var(--measure); }

.role-outcomes .tag,
.role-lines .tag {
  margin-left: 0.375rem;
  vertical-align: 0.1em;
}

.role-lines li + li {
  padding-top: 1rem;
  border-top: 1px solid var(--line-dark);
}

.role-compact .role-company { font-size: 1.1875rem; }

.education {
  max-width: var(--measure);
  margin-top: clamp(2rem, 4vw, 3rem);
  color: var(--muted-dark);
  font-size: var(--fs-small);
}

.education-label {
  margin-right: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

@media (min-width: 768px) {
  .role-details > div {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .roles-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-compact .role-details > div { grid-template-columns: 6rem minmax(0, 1fr); }

  .role-full {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 5vw, 4rem);
  }
  .role-full .role-details { margin-top: 0; }
}

/* Industries & clients
   ========================================================================== */

.section-intro {
  max-width: var(--measure);
  margin-top: 1rem;
  color: var(--muted-light);
}

.client-wall { margin-top: clamp(2rem, 4vw, 3rem); }

.wall-row {
  display: grid;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.wall-row:last-child { border-bottom: 1px solid var(--line-light); }

.wall-industry h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.wall-industry p {
  max-width: 44ch;
  margin-top: 0.25rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* Logos: single colour, text-light on navy. Text wordmark where no file exists.
   Five equal cells per row (three columns on phones, so rows read 3 then 2).
   Every cell is the same size; names are never shortened and wrap to two
   lines inside their cell. Logo images all get the same height. */
/* Column counts and font sizes are chosen so the longest name ("British
   American Tobacco") always fits in two lines:
   under 420px 2 columns · 420–767px 3 columns · 768px+ 5 columns
   (industry name above the cells until 1200px, beside them from 1200px). */
.wall-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}

.wall-logos li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.25rem;
  background: var(--raised);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: normal;
  hyphens: none;
}

.wall-logos img {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 420px) {
  .wall-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .wall-logos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
  }
  .wall-logos li {
    min-height: 4.25rem;
    padding: 0.375rem;
  }
}

@media (min-width: 900px) {
  .wall-logos li { font-size: 1rem; }
}

@media (min-width: 1200px) {
  .wall-row {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 2.5rem;
    align-items: center;
  }
  .wall-logos { gap: 0.625rem; }
  .wall-logos li {
    min-height: 4.5rem;
    padding: 0.625rem;
  }
}

/* "View all" panels (details element). Height transition in main.js. */
.disclosure { margin-top: 2rem; }

.disclosure summary {
  list-style: none;
}
.disclosure summary::-webkit-details-marker { display: none; }

.all-clients-list {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
}

.all-group {
  display: grid;
  gap: 0.375rem;
}

.all-group h3 {
  font-size: 1rem;
  font-weight: 600;
}

.all-group p {
  max-width: var(--measure);
  color: var(--muted-light);
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .all-group {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
}

.footnote {
  margin-top: 2rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
}

/* Capabilities & stack
   ========================================================================== */

.cap-table { margin-top: clamp(2rem, 4vw, 3rem); }

.cap-row {
  display: grid;
  gap: 0.75rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
}
.cap-row:last-child { border-bottom: 1px solid var(--line-dark); }

.cap-row dt {
  font-weight: 600;
}

/* Items separated by a middle dot, as in the spec */
.cap-items {
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.375rem;
}

.cap-items li {
  white-space: nowrap;
}
.cap-items li:not(:last-child)::after {
  content: "·";
  padding-inline: 0.75rem;
  color: var(--muted-dark);
}

.cap-domains {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--muted-dark);
}

@media (min-width: 768px) {
  .cap-row {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
}

/* Recommendations
   ========================================================================== */

.section-intro a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target */
  color: var(--accent);
}

/* "View all 27" appears only once main.js has built the list */
.recs-all { display: none; }
.recs-ready .recs-all { display: block; }

.rec-rel {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.rec figure { margin: 0; }
.rec blockquote { margin: 0; }

.rec-name,
.rec-role { display: block; }

.rec-name {
  color: var(--text-light);
  font-weight: 600;
}

.rec-role {
  margin-top: 0.125rem;
  color: var(--muted-light);
  font-size: var(--fs-small);
  line-height: 1.45;
}

/* Featured six: 2 × 3 on desktop, 1 column on mobile */
.recs-featured {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.rec-featured {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--raised);
  border-radius: 12px;
}

.rec-featured figure {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.rec-featured .rec-text {
  font-size: 1.125rem;
  line-height: 1.55;
}

@media (min-width: 768px) {
  .recs-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Filters */
.recs-filters {
  display: grid;
  gap: 1.25rem;
  padding-top: 2rem;
}

.filter-group {
  display: grid;
  gap: 0.625rem;
}

.filter-label {
  color: var(--muted-light);
  font-size: var(--fs-small);
  font-weight: 600;
}

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

.filter-btn {
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--muted-light); /* 6.6:1 on navy */
  border-radius: 999px;
  background: transparent;
  color: var(--text-light);
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--text-light); }
.filter-btn[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

@media (min-width: 768px) {
  .filter-group {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
  }
}

/* Full list */
.recs-list {
  display: grid;
  margin-top: 2rem;
}

.recs-list .rec {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.recs-list .rec:last-child { border-bottom: 1px solid var(--line-light); }

.recs-list figure {
  display: grid;
  gap: 1rem;
}

.recs-list .rec-text { max-width: var(--measure); }

@media (min-width: 1024px) {
  .recs-list figure {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2.5rem;
  }
  .recs-list figcaption { order: -1; }
}

.recs-empty {
  margin-top: 2rem;
  color: var(--muted-light);
}

/* Contact and footer
   ========================================================================== */

.contact-line {
  max-width: var(--measure);
  margin-top: 1rem;
  color: var(--muted-light);
  font-size: 1.1875rem;
}

.contact-list {
  display: grid;
  margin-top: clamp(2rem, 4vw, 3rem);
  max-width: 44rem;
}

.contact-item {
  display: grid;
  gap: 0.25rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.contact-item:last-child { border-bottom: 1px solid var(--line-light); }

.contact-item dt {
  color: var(--muted-light);
  font-size: var(--fs-small);
  font-weight: 600;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* comfortable tap target */
  color: var(--text-light);
  font-size: clamp(1.125rem, 2.2vw, 1.5rem);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.contact-item a:hover { color: var(--accent); }

@media (min-width: 768px) {
  .contact-item {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
  }
}

.site-footer {
  padding-block: 2rem;
  background: var(--ink);
  border-top: 1px solid var(--line-light);
  color: var(--muted-light);
  font-size: var(--fs-small);
}

/* Hero load sequence: hidden before JS reveals them (see main.js).
   The script in <head> removes .motion after 2.5s as a safety net. */
.motion [data-hero] { opacity: 0; }

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

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

  .marquee-track {
    animation: none;
    width: auto;
  }
  .marquee-copy { display: none; }
  .marquee-list {
    flex-wrap: wrap;
    flex-shrink: 1;
    row-gap: 0.25rem;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
  }
  .marquee-list li:last-child::after { content: none; }
}
