/* road-atlas.css - Road Atlas Design System (PR 1–3) */

:root {
  --bg-primary: #E9EDF2;
  --bg-card: #D9E3EB;
  --brand-navy: #152838;
  --brand-slate: #3E5465;
  --brand-accent: #25577A;
  --brand-warm: #F2BF48;
  --brand-rule: #9AAFBF;
  --brand-error: #9B2C2C;

  /* Font families */
  --font-display: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Layout shell */
  --shell-max: 1320px;
  --gutter: 48px;
}

@media (max-width: 1023px) {
  :root {
    --gutter: 24px;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 16px;
  }
}

/* Global resets and typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--brand-navy);
  overflow-x: clip;
}

body {
  font-family: var(--font-display);
  background-color: var(--bg-primary);
  color: var(--brand-navy);
  margin: 0;
  padding: 0;
  line-height: 1.5;
  overflow-x: clip;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

#main:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

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

/* Max shell wrapper */
.site-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  width: 100%;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  transform: translateY(-200%);
  z-index: 1000;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  transform: none;
  padding: 10px 16px;
  border: 2px solid var(--brand-accent);
  border-radius: 4px;
  background: var(--bg-primary);
  color: var(--brand-navy);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

/* Header */
.site-header {
  padding-block: 8px;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--brand-rule);
  position: relative;
  z-index: 100;
}

.site-header .header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
}

.site-header .brand-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-navy);
  min-width: 0;
  text-decoration: none;
}

.site-header .brand-tile {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  background-color: var(--bg-card);
  border: 1px solid var(--brand-accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--brand-navy);
  user-select: none;
}

.site-header .brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  letter-spacing: -0.01em;
}

.site-header .contact-link {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: color 120ms ease-out;
}

.site-header .contact-link:hover {
  color: var(--brand-accent);
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.site-header .contact-link:active {
  color: var(--brand-accent);
}

.site-header .contact-link:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .site-header .header-inner {
    min-height: 44px;
  }
  .site-header .brand-tile {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

@media (max-width: 400px) {
  .site-header .header-inner {
    gap: 8px;
  }
  .site-header .brand-name {
    white-space: nowrap;
  }
  .site-header .contact-link {
    font-size: 14px;
    line-height: 20px;
    padding-inline: 4px;
  }
}

/* Intro Hero Section */
.intro-hero {
  padding-block: 32px 48px;
  position: relative;
}

.intro-content {
  max-width: 42rem;
}

.intro-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.intro-label::after {
  content: "";
  width: 32px;
  height: 1px;
  background-color: var(--brand-accent);
}

.intro-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  max-width: 620px;
  text-wrap: balance;
  margin: 0 0 16px;
}

.intro-title em {
  font-style: normal;
  color: var(--brand-accent);
}

.intro-lead {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 28px;
  color: var(--brand-slate);
  margin: 0 0 24px;
  max-width: 42rem;
}

@media (max-width: 680px) {
  .intro-hero {
    padding-block: 24px 32px;
  }
  .intro-lead {
    font-size: 16px;
    line-height: 24px;
  }
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Shared Amber CTA */
.hero-btn {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  background-color: var(--brand-warm);
  border: 0;
  border-radius: 4px;
  min-height: 44px;
  padding: 12px 24px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: text-decoration-color 120ms ease-out;
}

.hero-btn-arrow {
  display: inline-block;
  transition: transform 160ms ease-out;
}

.hero-btn:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-btn:hover .hero-btn-arrow {
  transform: translateX(4px);
}

.hero-btn:active {
  transform: translateY(1px);
  transition: none;
}

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

.hero-btn[aria-disabled="true"],
.hero-btn:disabled {
  cursor: not-allowed;
  opacity: 1;
  color: var(--brand-slate);
  background-color: var(--bg-card);
  text-decoration: none;
}

.hero-btn[aria-disabled="true"]:active,
.hero-btn:disabled:active {
  transform: none;
}

/* ---- Road Atlas route: sticky 40% SVG map across Intro + Chapters (releases at #software), sticky 64px strip <1024px ---- */
.atlas-nav {
  position: sticky;
  z-index: 90;
  background-color: var(--bg-card);
  color: var(--brand-navy);
}

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

.atlas-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-slate);
  position: relative;
  min-width: 44px;
  min-height: 44px;
  transition: color 120ms ease-out;
}

.atlas-label {
  position: relative;
  display: inline-block;
}

.atlas-label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background-color: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 120ms ease-out;
}

.atlas-link:hover {
  color: var(--brand-navy);
}

.atlas-link:hover .atlas-label::after {
  background-color: var(--brand-rule);
  transform: scaleX(1);
}

.atlas-link[aria-current="location"] {
  color: var(--brand-navy);
  font-weight: 600;
}

.atlas-link[aria-current="location"] .atlas-label::after {
  background-color: var(--brand-accent);
  transform: scaleX(1);
}

.atlas-link:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.atlas-dot {
  border-radius: 50%;
  flex: none;
  position: relative;
}

.atlas-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-color: var(--brand-accent);
}

.atlas-link[aria-current="location"] .atlas-dot {
  background-color: var(--brand-warm);
  border-color: var(--brand-navy);
}

.atlas-link[aria-current="location"] .atlas-dot::after {
  display: none;
}

.atlas-car {
  position: absolute;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.atlas-car svg {
  display: block;
}

.atlas-car[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .atlas-desktop-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40%;
    column-gap: 24px;
    align-items: start;
  }

  .intro-hero {
    grid-column: 1;
    grid-row: 1;
  }

  .atlas-main-content {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }

  .atlas-nav {
    grid-column: 2;
    grid-row: 1 / span 2;
    top: 24px;
    height: calc(100svh - 48px);
    margin: 24px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .atlas-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
  }

  .atlas-mobile-track {
    display: none;
  }

  .atlas-map-stage {
    position: relative;
    width: min(100%, calc((100svh - 48px) * 480 / 760));
    aspect-ratio: 480 / 760;
    max-height: 100%;
  }

  .atlas-route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    pointer-events: none;
  }

  .atlas-stops {
    position: absolute;
    inset: 0;
    z-index: 3;
  }

  .atlas-stop {
    position: absolute;
    left: var(--stop-x);
    top: var(--stop-y);
  }

  .atlas-link {
    transform: translate(-22px, -50%);
    padding: 0 8px 0 12px;
    gap: 20px;
  }

  .atlas-dot {
    width: 20px;
    height: 20px;
    background-color: var(--bg-primary);
    border: 2.5px solid var(--brand-accent);
  }

  .atlas-dot::after {
    width: 6px;
    height: 6px;
  }

  .atlas-link[aria-current="location"] .atlas-dot {
    width: 24px;
    height: 24px;
    border-width: 2px;
    margin-inline: -2px;
  }

  .atlas-car {
    width: 26px;
    height: 40px;
  }

  .atlas-car .car-desktop {
    display: block;
  }

  .atlas-car .car-mobile {
    display: none;
  }
}

@media (max-width: 1023px) {
  .atlas-desktop-container {
    display: contents;
  }

  .atlas-bg-svg,
  .atlas-route-svg {
    display: none;
  }

  .atlas-nav {
    top: 0;
    height: 64px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    border-bottom: 1px solid var(--brand-rule);
  }

  .atlas-map-stage {
    position: relative;
    height: 64px;
  }

  .atlas-mobile-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 36px;
    pointer-events: none;
  }

  .atlas-mobile-track::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 12.5%;
    top: 18px;
    height: 3px;
    margin-top: -1.5px;
    background-color: var(--brand-accent);
  }

  .atlas-stops {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 20px;
    height: 64px;
    position: relative;
    z-index: 3;
  }

  .atlas-stop {
    position: relative;
  }

  .atlas-link {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    height: 44px;
    font-size: 14px;
    line-height: 20px;
    padding-inline: 4px;
    white-space: nowrap;
  }

  .atlas-label {
    height: 28px;
    display: inline-flex;
    align-items: center;
  }

  .atlas-label::after {
    bottom: 2px;
  }

  .atlas-dot {
    position: absolute;
    left: 50%;
    top: -2px;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    border: 2px solid var(--brand-accent);
  }

  .atlas-dot::after {
    width: 4px;
    height: 4px;
  }

  .atlas-link[aria-current="location"] .atlas-dot {
    width: 14px;
    height: 14px;
    border-width: 2px;
  }

  .atlas-car {
    width: 48px;
    height: 30px;
  }

  .atlas-car .car-desktop {
    display: none;
  }

  .atlas-car .car-mobile {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Anchors clear the sticky strip by 12px on <1024px (76px total) */
#pizza,
#video,
#auto,
#software,
#about {
  scroll-margin-top: 24px;
}

@media (max-width: 1023px) {
  #pizza,
  #video,
  #auto,
  #software,
  #about {
    scroll-margin-top: 76px;
  }
}

/* ---- Story chapters (#pizza, #video, #auto) ---- */
.story-chapter {
  border-top: 1px solid var(--brand-rule);
  padding-top: 48px;
  padding-bottom: 96px;
}

@media (max-width: 1023px) {
  .story-chapter {
    border-top: 0;
    padding-bottom: 64px;
  }
}

@media (max-width: 680px) {
  .story-chapter {
    padding-bottom: 48px;
  }
}

.story-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin: 0 0 16px;
}

.eyebrow-date {
  white-space: nowrap;
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy);
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 0 16px;
}

.story-title .accent {
  color: inherit;
}

@media (max-width: 680px) {
  .story-title {
    font-size: 28px;
    line-height: 32px;
  }
}

.story-lead {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 28px;
  font-weight: 400;
  color: var(--brand-slate);
  max-width: 34em;
  margin: 0 0 24px;
}

.story-lead strong {
  color: var(--brand-navy);
  font-weight: 600;
}

@media (max-width: 680px) {
  .story-lead {
    font-size: 16px;
    line-height: 24px;
  }
}

.story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin: 0 0 32px;
}

.story-chips span {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-slate);
  border: 1px solid var(--brand-rule);
  border-radius: 4px;
  padding: 6px 8px;
  background: transparent;
}

.story-figure {
  margin: 0 0 32px;
  width: 100%;
  max-width: 560px;
}

.story-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--brand-rule);
  border-radius: 4px;
  background-color: var(--bg-card);
}

.story-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-figure.is-missing .story-media img {
  display: none;
}

.story-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--brand-slate);
}

.story-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--brand-slate);
}

.story-lesson {
  margin: 0;
  max-width: 34em;
  border-left: 2px solid var(--brand-accent);
  padding-left: 16px;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: var(--brand-navy);
}

.story-lesson-tag {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-accent);
}

.story-lesson-text {
  display: block;
}

.story-lesson-text::first-letter {
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .js-reveal .story-figure .story-media {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 480ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js-reveal .story-figure.is-revealed .story-media {
    clip-path: inset(0 0 0 0);
  }
}

/* ---- Stop 04 · Web (#software) 2x2 project grid with live-site background screens ---- */
.software-section {
  border-top: 1px solid var(--brand-rule);
  padding-top: 48px;
  padding-bottom: 96px;
}

@media (max-width: 1023px) {
  .software-section {
    border-top: 0;
    padding-bottom: 64px;
  }
}

@media (max-width: 680px) {
  .software-section {
    padding-top: 24px;
    padding-bottom: 48px;
  }
}

.software-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  text-wrap: balance;
  margin: 0 0 32px;
}

.software-title .accent {
  color: inherit;
}

@media (max-width: 680px) {
  .software-title {
    font-size: 36px;
    line-height: 38px;
    margin-bottom: 24px;
  }
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

@media (max-width: 680px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 16px;
  }
}

.proj {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--brand-rule);
  border-radius: 4px;
  min-width: 0;
  transition: border-color 120ms ease-out, background-color 120ms ease-out;
}

.proj > :not(.proj-bg) {
  position: relative;
  z-index: 1;
}

.proj-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
  transition: opacity 160ms ease-out;
}

.proj-has-bg:hover .proj-bg,
.proj-has-bg:focus-visible .proj-bg {
  opacity: 0.18;
}

.proj-compact {
  background-color: var(--bg-primary);
  padding: 28px 24px;
}

@media (min-width: 681px) {
  .proj-compact {
    min-height: 220px;
  }
}

@media (max-width: 680px) {
  .proj-compact {
    padding: 24px;
  }
}

.proj-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-slate);
  margin: 0 0 8px;
}

.proj-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-navy);
  text-wrap: balance;
  margin: 0;
}

.proj-compact .proj-name {
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

@media (max-width: 680px) {
  .proj-compact .proj-name {
    font-size: 20px;
    line-height: 26px;
  }
}

.proj-desc {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--brand-slate);
  margin: 0 0 24px;
}

.proj-domain {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  overflow-wrap: anywhere;
}

.proj-arrow {
  display: inline-block;
  flex: none;
  transition: transform 160ms ease-out;
}

.proj:hover,
.proj:focus-visible {
  border-color: var(--brand-accent);
}

.proj:hover .proj-name,
.proj:focus-visible .proj-name {
  text-decoration: underline;
  text-decoration-color: var(--brand-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.proj:hover .proj-arrow,
.proj:focus-visible .proj-arrow {
  transform: translate(2px, -2px);
}

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

.proj-compact:active {
  background-color: var(--bg-card);
  transition: none;
}

.software-details {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  .software-details {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .software-lead-group {
    grid-column: span 7;
  }
  .term {
    grid-column: span 5;
  }
}

@media (max-width: 680px) {
  .software-details {
    margin-top: 32px;
  }
}

.software-lead-group .story-chips {
  margin-bottom: 0;
}

.term {
  background-color: var(--brand-navy);
  color: var(--bg-primary);
  border-radius: 4px;
  padding: 24px;
  width: 100%;
  min-width: 0;
}

.term-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--bg-primary);
}

.term-body .ln {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.term-body .ln + .ln {
  margin-top: 4px;
}

/* ---- PR 3: About (#about) & Footer ---- */
.about-section {
  border-top: 1px solid var(--brand-rule);
  padding-top: 48px;
  padding-bottom: 96px;
}

@media (max-width: 1023px) {
  .about-section {
    padding-bottom: 64px;
  }
}

@media (max-width: 680px) {
  .about-section {
    padding-bottom: 48px;
  }
}

.about-inner {
  max-width: 40em;
}

.about-inner .story-lead {
  max-width: 40em;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--brand-rule);
  padding-block: 32px;
  text-align: center;
  color: var(--brand-slate);
}

.footer-links {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--brand-slate);
}

.footer-group {
  white-space: nowrap;
}

@media (max-width: 680px) {
  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-sep {
    display: none;
  }
}

.footer-links a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  transition: text-decoration-color 120ms ease-out;
}

.footer-links a:hover {
  text-decoration-thickness: 2px;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}

.footer-signoff {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  color: var(--brand-slate);
}

.nowrap {
  white-space: nowrap;
}

/* ---- PR 3: Contact Page (contact.html) ---- */
.contact-main {
  padding-block: 48px 96px;
}

@media (max-width: 1023px) {
  .contact-main {
    padding-block: 32px 64px;
  }
}

@media (max-width: 680px) {
  .contact-main {
    padding-block: 24px 48px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  max-width: 40rem;
  margin-inline: auto;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  text-wrap: balance;
  margin: 0 0 16px;
}

.contact-title em {
  font-style: normal;
  color: inherit;
}

.contact-pitch {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 28px;
  color: var(--brand-slate);
  max-width: 34em;
  margin: 0 0 32px;
}

@media (max-width: 680px) {
  .contact-pitch {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 24px;
  }
}

.contact-direct {
  border-top: 1px solid var(--brand-rule);
  padding-top: 24px;
  font-size: 16px;
  line-height: 24px;
  color: var(--brand-slate);
}

.contact-direct strong {
  color: var(--brand-navy);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.contact-copy-btn {
  margin-top: 16px;
  background-color: var(--brand-warm);
  border: 0;
  border-radius: 4px;
  padding: 12px 24px;
  min-height: 44px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  color: var(--brand-navy);
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.contact-copy-btn:hover {
  text-decoration: underline;
  text-decoration-color: var(--brand-navy);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-copy-btn:active {
  transform: translateY(1px);
}

.contact-copy-btn:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
}
