/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #faf9f6;
  --bg-soft: #f1efe9;
  --ink: #14130f;
  --muted: #6f6c63;
  --line: rgba(20, 19, 15, 0.12);
  --accent: #3457a6;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --side: clamp(1.5rem, 6vw, 6rem);
  --gap-xl: clamp(4rem, 10vw, 9rem);
  --gap-lg: clamp(2.5rem, 6vw, 5rem);
  --gap-md: clamp(1.5rem, 3vw, 2.5rem);
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

strong {
  font-weight: 600;
}

ul {
  list-style: none;
}

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

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: 90rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.logo-mark {
  height: 1.6rem;
  width: auto;
}

.site-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

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

.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(3rem, 10vw, 7rem);
  padding-bottom: var(--gap-xl);
}

.hero-eyebrow {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 18ch;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-text {
  margin-top: clamp(2rem, 5vw, 3rem);
  max-width: 42ch;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--muted);
}

/* ---------- Section heading ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: var(--gap-md);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--gap-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chip {
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  transition: all 0.25s ease;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- Project list ---------- */
.project-list {
  padding-bottom: var(--gap-xl);
}

.project-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s ease;
}

.project-row.is-hidden {
  display: none;
}

.project-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 400;
  transition: transform 0.35s ease;
}

.project-row:hover .project-row-title {
  transform: translateX(0.5rem);
}

.project-row-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s ease;
}

.project-row:hover .project-row-meta {
  color: var(--accent);
}

.project-row-badge {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.3s ease;
}

.project-row:hover .project-row-badge {
  border-color: var(--accent);
}

.project-row-arrow {
  transition: transform 0.3s ease;
}

.project-row:hover .project-row-arrow {
  transform: translate(0.25rem, -0.25rem);
}

/* Floating hover preview image */
.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  aspect-ratio: 4 / 3;
  pointer-events: none;
  overflow: hidden;
  border-radius: 6px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transition: opacity 0.25s ease, transform 0.35s ease;
  z-index: 40;
  will-change: transform, opacity;
}

.hover-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.hover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 720px) {
  .hover-preview {
    display: none;
  }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Burger ---------- */
.burger {
  box-sizing: border-box;
  position: fixed;
  top: clamp(1.25rem, 3.5vw, 2.1rem);
  right: calc(var(--side) - 1rem + max(0px, (100vw - 90rem) / 2));
  z-index: 110;
  width: 3.25rem;
  height: 3.25rem;
  padding: 1.125rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.burger.is-active {
  background: transparent;
  border-color: rgba(250, 249, 246, 0.25);
}

.burger:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.burger span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 50%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s ease, background 0.4s ease;
}

.burger span:nth-child(1) {
  transform: translateY(calc(-50% - 7px));
}

.burger span:nth-child(2) {
  transform: translateY(calc(-50% + 7px));
}

.burger.is-active span {
  background: var(--bg);
}

.burger.is-active span:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  transform: translateY(-50%) rotate(-45deg);
}

/* ---------- Fullscreen nav overlay ---------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.nav-overlay.is-open {
  pointer-events: auto;
}

.nav-overlay-bg {
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.nav-overlay.is-open .nav-overlay-bg {
  transform: scaleY(1);
}

.nav-overlay-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  padding: 0 var(--side);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-overlay.is-open .nav-overlay-panel.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.4s;
}

.nav-overlay-link {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 400;
  color: var(--bg);
  opacity: 0.85;
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.nav-overlay-link:hover {
  opacity: 1;
  transform: translateX(0.4rem);
}

.nav-overlay-link--project {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

.nav-overlay-back {
  align-self: flex-start;
  text-align: left;
  font-size: 0.9rem;
  color: var(--bg);
  opacity: 0.6;
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.nav-overlay-back:hover {
  opacity: 1;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-top: var(--gap-lg);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
}

.footer-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Project detail page ---------- */
.project-hero {
  padding-top: clamp(2rem, 6vw, 3.5rem);
  padding-bottom: var(--gap-lg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: var(--gap-md);
}

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

.project-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 400;
  max-width: 20ch;
  margin-bottom: var(--gap-md);
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  max-width: 60rem;
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
}

.project-meta-grid dt {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.project-meta-grid dd {
  font-size: 1rem;
}

.project-media {
  margin-bottom: var(--gap-lg);
  border-radius: 6px;
  overflow: hidden;
}

.project-body {
  max-width: 56rem;
  margin-bottom: var(--gap-xl);
}

.project-lede {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  line-height: 1.4;
  margin-bottom: var(--gap-md);
}

.project-body p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: var(--gap-md);
}

.project-tags li {
  font-size: 0.95rem;
}

.project-tags li::before {
  content: "+ ";
  color: var(--accent);
}

/* ---------- Case study sections ---------- */
.case-section {
  padding-top: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-top: 1px solid var(--line);
}

.case-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.case-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 26ch;
  margin-bottom: var(--gap-md);
}

.case-title-accent {
  display: block;
  color: var(--accent);
  font-style: italic;
}

.case-text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 1.25rem;
}

.case-credits {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--line);
  max-width: 42rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-md) 3rem;
  margin-top: var(--gap-md);
}

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

.process-item-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.process-item-title::before {
  content: "";
  width: 3px;
  height: 1em;
  background: var(--accent);
  flex-shrink: 0;
}

.process-item-text {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ---------- Project media gallery ---------- */
.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--gap-lg);
}

.gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 720px) {
  .gallery-duo {
    grid-template-columns: 1fr;
  }
}

.placeholder-media {
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(193, 84, 31, 0.1), rgba(52, 87, 166, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  overflow: hidden;
}

.placeholder-media:has(img) {
  padding: 0;
  border: none;
  background: none;
}

.placeholder-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.gallery-duo .placeholder-media {
  aspect-ratio: 4 / 3;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: var(--gap-md);
  max-width: 48rem;
}

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

.gallery-grid .placeholder-media {
  aspect-ratio: 4 / 3;
}

.gallery-trio {
  grid-template-columns: repeat(3, 1fr);
  max-width: none;
}

@media (max-width: 720px) {
  .gallery-trio {
    grid-template-columns: 1fr;
  }
}

.gallery-trio .placeholder-media {
  aspect-ratio: 1 / 1;
}

/* Mosaïque photo : 1 verticale + 1 horizontale + 2 carrés */
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--gap-md);
}

.gallery-mosaic > *:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}

.gallery-mosaic > *:nth-child(2) {
  grid-column: 2 / span 2;
  grid-row: 1;
  aspect-ratio: 2 / 1;
}

.gallery-mosaic > *:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

.gallery-mosaic > *:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

/* Variante miroir : horizontale en haut à gauche, verticale à droite */
.gallery-mosaic--alt > *:nth-child(1) {
  grid-column: 1 / span 2;
  grid-row: 1;
  aspect-ratio: 2 / 1;
}

.gallery-mosaic--alt > *:nth-child(2) {
  grid-column: 3;
  grid-row: 1 / span 2;
  aspect-ratio: auto;
}

.gallery-mosaic--alt > *:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

.gallery-mosaic--alt > *:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

/* Variante sans verticale : bandeau panoramique + 3 carrés */
.gallery-mosaic--wide > *:nth-child(1) {
  grid-column: 1 / span 3;
  grid-row: 1;
  aspect-ratio: 2 / 1;
}

.gallery-mosaic--wide > *:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

.gallery-mosaic--wide > *:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

.gallery-mosaic--wide > *:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
  aspect-ratio: 1 / 1;
}

@media (max-width: 720px) {
  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .gallery-mosaic > *:nth-child(1),
  .gallery-mosaic > *:nth-child(2),
  .gallery-mosaic > *:nth-child(3),
  .gallery-mosaic > *:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .gallery-mosaic > *:nth-child(1) {
    aspect-ratio: 3 / 4;
  }

  .gallery-mosaic > *:nth-child(2) {
    aspect-ratio: 3 / 2;
  }

  .gallery-mosaic--alt > *:nth-child(1) {
    aspect-ratio: 3 / 2;
  }

  .gallery-mosaic--alt > *:nth-child(2) {
    aspect-ratio: 3 / 4;
  }

  .gallery-mosaic--wide > *:nth-child(1) {
    aspect-ratio: 3 / 2;
  }

  .gallery-mosaic--wide > *:nth-child(2) {
    aspect-ratio: 1 / 1;
  }
}

.placeholder-media--wide {
  aspect-ratio: 16 / 9;
  margin-top: var(--gap-md);
}

/* ---------- Photo series blocks ---------- */
.series-block {
  padding-top: var(--gap-md);
  padding-bottom: var(--gap-md);
}

.series-block + .series-block {
  border-top: 1px solid var(--line);
  padding-top: var(--gap-lg);
  margin-top: var(--gap-sm, 1rem);
}

.series-number {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.series-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.series-text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 42rem;
  margin-bottom: var(--gap-md);
}

.placeholder-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Related content card ---------- */
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: var(--gap-md);
  transition: border-color 0.25s ease;
}

.related-card:hover {
  border-color: var(--accent);
}

/* Deux cartes côte à côte, alignées sur la grille des étapes */
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--gap-md);
}

.related-cards .related-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 0;
  max-width: none;
}

@media (max-width: 720px) {
  .related-cards {
    grid-template-columns: 1fr;
  }
}

.related-card-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.related-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ff0000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.related-card-icon--figma {
  background: #a259ff;
}

.related-card-icon--vimeo {
  background: #1ab7ea;
}

.related-card-icon svg {
  width: 20px;
  height: 20px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.related-card-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.related-card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Project prev/next nav ---------- */
.project-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.pager-link {
  min-width: 0;
  padding: var(--gap-md) var(--side);
  transition: background 0.25s ease;
}

.pager-title {
  overflow-wrap: break-word;
}

.pager-link--prev {
  border-right: 1px solid var(--line);
}

.pager-link:hover {
  background: var(--bg-soft);
}

.pager-link--next {
  grid-column: 2;
  text-align: right;
}

.pager-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.pager-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ---------- Contact page ---------- */
.contact-hero {
  padding-top: clamp(3rem, 10vw, 7rem);
  padding-bottom: var(--gap-xl);
}

.contact-email {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  display: inline-block;
  margin-top: var(--gap-md);
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.25s ease;
}

.contact-email:hover {
  opacity: 0.6;
}

.contact-socials {
  display: flex;
  gap: 2rem;
  margin-top: var(--gap-lg);
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-socials a:hover {
  color: var(--ink);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0 1.5rem;
}

.marquee-item::after {
  content: "•";
  color: var(--accent);
  margin-left: 3rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Stats ---------- */
.stats-section {
  padding-top: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--line);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@media (max-width: 720px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
  }
}

.stat-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.25rem);
}

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

.stat-suffix {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--accent);
}

.stat-label {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--bg-soft);
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
}

.cta-title-accent {
  color: var(--accent);
  font-style: italic;
}

.cta-side {
  max-width: 26rem;
}

.cta-text {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cta-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.cta-button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ---------- Final footer ---------- */
.site-footer-final {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.75rem 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer-final a:hover {
  color: var(--ink);
}
