/* Plus Jakarta Sans (variable, 400–700), self-hosted. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens — single source. All styles use these. */

:root {
  --light: #fafafa;
  --light-a: #e5e5e5;
  --text: #fafafa;
  --text-muted: #a3a3a3;
  --dark: #0c0c0c;
  --dark-a: #171717;
  --dark-b: #1a1a1a;
  --dark-c: #0a0a0a;
  --error: #f87171;

  --focus-ring: 2px solid var(--light-a);
  --focus-offset: 2px;

  --width2: clamp(16rem, 88vw, 72rem);
  --width-reading: clamp(16rem, 88vw, 52rem);
  --content-padding-x: clamp(var(--space-3), 8vw, var(--space-4));
  --section-padding-y: clamp(var(--space-8), 14vw, 10rem);
  --cta-sticky-zone: 5rem;
  --cta-sticky-zone-footer: 5rem;

  --space-1: 0.5rem;
  --space-2: 1.5rem;
  --space-3: 2rem;
  --space-4: 3rem;
  --space-6: 4.5rem;
  --space-8: 6rem;

  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-normal: 1.65;
  --leading-relaxed: 1.75;

  --radius-btn: 1px;
  --input-padding-y: 0.6rem;
  --input-padding-x: 0.875rem;
  --textarea-min-height: 5rem;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-s: 0.6s;
  --dawn-copy-duration: 1.75s;
  --dawn-copy-delay-1: 0s;
  --dawn-copy-delay-2: 1.75s;
  --dawn-elements-delay: 3.5s;
  --dawn-element-duration: 1.375s;
  --section-fade-duration: 2s;
  --card-fade-duration: 1.5s;
  --card-stagger: 0.2s;
}

html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  cursor: default;
  font-weight: inherit;
}

p {
  line-height: 1.5;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text);
  background-color: var(--dark);
  min-height: 100vh;
}

/* Homepage fullscreen scroll: header fixed, main scrolls */

body:has(.home-fullscreen) .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  flex-shrink: 0;
}

body:has(.home-fullscreen) .layout {
  height: 100vh;
  overflow: hidden;
}

body:has(.home-fullscreen) .main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  z-index: 0;
  padding-top: var(--header-height);
}

@media (max-width: 768px) {
  body:has(.home-fullscreen) .layout {
      --header-height: 5rem;
    }
}

a {
  text-decoration: none;
  color: unset;
  transition: color 0.25s ease;
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

button {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  border: unset;
  font-family: inherit;
  cursor: pointer;
  background-color: inherit;
  width: inherit;
  text-align: inherit;
}

button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

p button {
  text-decoration: underline;
}

img,
svg,
picture {
  user-select: none;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

picture img {
  width: 100%;
  height: 100%;
}

::selection {
  background-color: #363635;
  color: var(--light);
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--light);
  background-image: unset;
}

#root {
  min-height: 100vh;
}

/**
 * Design system — single source for form controls, buttons, tabs, focus.
 * Use only tokens from globals.css. No hardcoded colours or spacing.
 * Accessibility: focus-visible only (keyboard focus), min touch targets.
 */

/* ---- Focus (all interactive elements) ---- */

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* ---- Form (.form = only form container that styles inputs) ---- */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light);
}

.form .required {
  color: var(--text-muted);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: var(--input-padding-y) var(--input-padding-x);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  background-color: var(--dark-b);
  border: 1px solid var(--dark-a);
  border-radius: var(--radius-btn);
  color: var(--light);
  box-sizing: border-box;
  transition: border-color var(--duration-s) ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: none;
  border-color: var(--light-a);
}

.form textarea {
  resize: vertical;
  min-height: var(--textarea-min-height);
}

.form .btn {
  align-self: flex-start;
  margin-top: var(--space-1);
}

.form-note {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: var(--input-padding-y) var(--space-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  cursor: pointer;
  text-align: center;
  border: none;
  border-radius: var(--radius-btn);
  transition: background-color var(--duration-s) ease, color var(--duration-s) ease;
}

.btn:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.btn-primary {
  background-color: var(--light);
  color: var(--dark);
}

.btn-primary:hover {
  background-color: var(--light-a);
  color: var(--dark);
}

.btn-primary:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

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

.btn-secondary:hover {
  color: var(--light);
  border-color: var(--light-a);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
      transform: scale(1.02);
    }
}

/* ---- Message block ---- */

.message {
  padding: var(--space-2);
  background: var(--dark-b);
  border: 1px solid var(--dark-a);
  border-radius: var(--radius-btn);
}

.message p {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-muted);
}

.message p + p {
  margin-top: var(--space-1);
}

.message--error .btn {
  margin-top: var(--space-2);
}

.message a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.message a:hover {
  color: var(--light);
}

/* ========== Page (single wrapper: padding + max-width + center) ========== */

.page {
  width: 100%;
  max-width: var(--width-reading);
  margin-left: auto;
  margin-right: auto;
  padding: var(--section-padding-y) var(--content-padding-x);
  min-height: 60vh;
  box-sizing: border-box;
  min-width: 0;
}

.page.page--wide {
  max-width: var(--width2);
}

/* Home fullscreen: each section is a direct child of main (scroll container) */

.home-fullscreen > .content-section {
  min-height: 100vh;
  min-height: 100dvh;
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--section-padding-y) 0;
  margin: 0;
  border: none;
}

.home-fullscreen .content-section-inner {
  max-width: var(--width-reading);
  margin: 0 auto;
  padding: 0 var(--content-padding-x);
  width: 100%;
  box-sizing: border-box;
}

/* Mobile: extra bottom space so scroll-snap doesn’t jump ahead before user reads cards */

@media (max-width: 768px) {
  body:has(.home-fullscreen) .main {
      scroll-snap-type: none;
    }

  .home-fullscreen > .hero,
    .home-fullscreen > .content-section {
      scroll-snap-align: unset;
      scroll-snap-stop: unset;
    }

  .home-fullscreen > .content-section {
      min-height: auto;
      padding: var(--space-4) 0;
      justify-content: flex-start;
    }
}

/* Pulse on 0→1 arrow (left to right) */

@media (prefers-reduced-motion: no-preference) {
  .arrow-pulse {
      display: inline-block;
      font-size: 0.8em;
      margin: 0 0.35em;
      transform-origin: left center;
      animation: arrow-pulse 3.2s var(--ease-in-out-smooth) infinite;
    }
}

@keyframes arrow-pulse {
  0%, 100% {
    opacity: 1;
    transform: scaleX(1) translateX(0);
  }
  50% {
    opacity: 0.92;
    transform: scaleX(1.08) translateX(0.03em);
  }
}

.page-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  margin: 0 0 1rem;
  line-height: var(--leading-tight);
  color: var(--light);
  text-align: left;
  overflow-wrap: break-word;
}

.page-lead {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin: 0 0 2rem;
  overflow-wrap: break-word;
}

.blog-post-meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: var(--leading-normal);
}

.page-body p,
.page-body li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0 0 2.25rem;
  color: var(--text-muted);
  overflow-wrap: break-word;
}

.page-body ul,
.page-body ol {
  padding-left: 1.25rem;
  margin: 0 0 2.25rem;
}

/* Numbered lists: marker is the accent; body can mix strong (light) and normal (muted) */

.page-body ol {
  list-style-position: outside;
  padding-left: 2.25rem;
}

.page-body ol li {
  padding-left: 0.5rem;
  color: var(--text-muted);
}

.page-body ol li::marker {
  color: var(--light);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.page-body ol li strong {
  color: var(--light);
}

.page-body li {
  margin-bottom: 0.75rem;
}

.page-body li:last-child {
  margin-bottom: 0;
}

.page-body h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--light);
  margin: 2.5rem 0 0.75rem;
}

.page-body h2:first-of-type {
  margin-top: 0;
}

.page-body h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--light);
  margin: 3.5rem 0 1.25rem;
}

.page-body h3:first-of-type {
  margin-top: 0;
}

/* About: team photo (image above paragraph, centred) */

.page-body .about-team-figure {
  margin: 1rem auto 1.25rem;
  max-width: 28rem;
}

.page-body .about-team-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md, 0.375rem);
  display: block;
}

/* Manifesto: book-like chapter break (marker + title) */

.page-body .manifesto-chapter {
  text-align: center;
  margin: 6rem 0 4rem;
}

.page-body strong {
  color: var(--light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Block-level highlight: pull-out line or short paragraph to break up text */

.page-body .text-block-highlight {
  margin: 2.5rem 0;
  padding: 1.25rem 0 1.25rem 1.25rem;
  border-left: 3px solid var(--light-a);
  color: var(--light);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  font-weight: 500;
  transition: border-left-color var(--duration-s) ease;
}

.page-body .text-block-highlight p,
.page-body .text-block-highlight > div {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  color: inherit;
}

.page-body .text-block-highlight:first-child {
  margin-top: 0;
}

@media (hover: hover) {
  .page-body .text-block-highlight:hover {
      border-left-color: var(--light);
    }
}

/* Subtle rule to break up long sections (use between paragraphs) */

.page-body .text-break {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid var(--dark-a);
  padding: 0;
}

.page-body .text-break + p,
.page-body .text-break + .text-block-highlight {
  margin-top: 0;
}

.page-body .manifesto-chapter:first-of-type {
  margin-top: 0;
  padding-top: 3rem;
}

.manifesto-chapter-marker {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-3xl);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  transition: color 0.25s ease;
}

.manifesto-chapter:hover .manifesto-chapter-marker {
  color: var(--light-a);
}

.manifesto-chapter-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--light);
  margin: 0;
  line-height: var(--leading-tight);
}

/* Catch-22 loop: two nodes, one diagram */

.manifesto-catch22 {
  margin: 2.5rem auto 2.5rem;
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem 1.25rem;
}

.manifesto-catch22-node {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 14rem;
  background-color: var(--dark-b);
  border: 1px solid var(--dark-a);
  border-radius: var(--radius-btn);
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: border-color var(--duration-s) ease;
}

@media (prefers-reduced-motion: no-preference) {
  .manifesto-catch22-node:hover {
      border-color: rgba(250, 250, 250, 0.15);
    }
}

.manifesto-catch22-node strong {
  color: var(--light);
  font-size: 0.9375rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.manifesto-catch22-diagram {
  flex: 0 0 8rem;
  width: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
}

.manifesto-catch22-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.manifesto-catch22-diagram .loop-arrow {
  fill: none;
  stroke: var(--light-a);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
}

.manifesto-catch22-diagram .loop-arrow-head {
  fill: var(--light-a);
}

@media (prefers-reduced-motion: no-preference) {
  .manifesto-catch22-diagram .loop-arrow {
      animation: manifesto-arrow-flow 4s linear infinite;
    }
}

@keyframes manifesto-arrow-flow {
  to {
    stroke-dashoffset: -14;
  }
}

@media (max-width: 519px) {
  .manifesto-catch22 {
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
    }

  .manifesto-catch22-node {
      max-width: 20rem;
      width: 100%;
    }

  .manifesto-catch22-diagram {
      flex: 0 0 5rem;
      width: 5rem;
      padding: 0.25rem 0;
    }
}

@media (min-width: 520px) {
  .manifesto-catch22 {
      flex-wrap: nowrap;
      align-items: center;
      gap: 1.25rem;
    }
}

/* Manifesto card grid */

.page-body .manifesto-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0 2.5rem;
}

@media (min-width: 640px) {
  .page-body .manifesto-cards {
      grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
  .page-body .manifesto-cards {
      grid-template-columns: repeat(3, 1fr);
    }
}

.page-body .manifesto-card {
  background-color: var(--dark-b);
  border: 1px solid var(--dark-a);
  border-radius: var(--radius-btn);
  padding: 1.5rem 1.25rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  transition: transform var(--duration-s) var(--ease-out-expo), border-color var(--duration-s) ease, box-shadow var(--duration-s) ease;
}

@media (prefers-reduced-motion: no-preference) {
  .page-body .manifesto-card:hover {
      transform: translateY(-3px);
      border-color: rgba(250, 250, 250, 0.12);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

.page-body .manifesto-card:focus-visible {
  outline: 2px solid var(--light-a);
  outline-offset: 2px;
}

.page-body .manifesto-card-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--light);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.page-body .manifesto-card p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Manifesto tables */

.page-body .manifesto-table-wrap {
  margin: 2rem 0 2.5rem;
  overflow-x: auto;
  border-radius: var(--radius-btn);
  border: 1px solid var(--dark-a);
  background-color: var(--dark-b);
}

.page-body .manifesto-table {
  width: 100%;
  min-width: 18rem;
  border-collapse: collapse;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.page-body .manifesto-table th,
.page-body .manifesto-table td {
  text-align: left;
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 1px solid var(--dark-a);
  vertical-align: top;
  transition: background-color 0.2s ease;
}

.page-body .manifesto-table td {
  overflow-wrap: break-word;
}

.page-body .manifesto-table tr:last-child td {
  border-bottom: none;
}

.page-body .manifesto-table th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light);
  background-color: var(--dark-b);
  border-bottom: 1px solid var(--light-a);
}

.page-body .manifesto-table tbody tr:nth-child(even) td {
  background-color: rgba(26, 26, 26, 0.4);
}

@media (hover: hover) {
  .page-body .manifesto-table tbody tr:hover td {
      background-color: rgba(250, 250, 250, 0.04);
    }
}

.page-body .manifesto-table tbody tr:focus-within td {
  background-color: rgba(250, 250, 250, 0.04);
}

/* Blog: Old Way vs AI-Native comparison (high contrast) */

.page-body .comparison-old-vs-ai {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0 2.5rem;
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1px solid var(--dark-a);
}

@media (max-width: 640px) {
  .page-body .comparison-old-vs-ai {
      grid-template-columns: 1fr;
    }
}

.page-body .comparison-side {
  padding: 1.5rem 1.25rem;
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  border-left: 4px solid transparent;
}

@media (min-width: 641px) {
  .page-body .comparison-old-vs-ai .comparison-side:first-child {
      border-right: 1px solid var(--dark-a);
    }
}

.page-body .comparison-side.comparison-old {
  background-color: rgba(26, 26, 26, 0.9);
  border-left-color: rgba(163, 163, 163, 0.5);
  color: var(--text-muted);
}

.page-body .comparison-side.comparison-ai {
  background-color: var(--dark-b);
  border-left-color: var(--light-a);
  color: var(--text);
}

.page-body .comparison-side-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.page-body .comparison-old .comparison-side-label {
  color: var(--text-muted);
}

.page-body .comparison-ai .comparison-side-label {
  color: var(--light);
}

.page-body .comparison-side p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}

/* Blog: featured and inline images */

.blog-featured {
  margin: 0 0 2rem;
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1px solid var(--dark-a);
  aspect-ratio: 1200 / 630;
  position: relative;
  background-color: var(--dark-b);
}

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

.page-body .blog-inline-image {
  display: block;
  margin: 1.5rem 0;
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1px solid var(--dark-a);
}

.page-body .blog-inline-img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Blog hub: section nav (filter tabs) */

.blog-section-nav {
  margin-bottom: 2rem;
}

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

.blog-section-nav-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-btn);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--dark-a);
  background-color: transparent;
}

.blog-section-nav-link:hover {
  color: var(--light);
  border-color: var(--dark-b);
}

.blog-section-nav-link.active {
  color: var(--light);
  border-color: var(--light-a);
  background-color: var(--dark-b);
}

/* Shared breadcrumb (blog section, manual term, manual common concerns) */

.page-breadcrumb,
.blog-section-breadcrumb {
  font-size: var(--text-sm);
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.page-breadcrumb-link,
.blog-section-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.page-breadcrumb-link:hover,
.blog-section-breadcrumb-link:hover {
  color: var(--light);
}

.page-breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.7;
  user-select: none;
}

.page-breadcrumb-current {
  color: var(--light);
  font-weight: 500;
}

/* Blog hub: cards with Title, Image, Intro */

.blog-hub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.blog-hub-item {
  min-width: 0;
}

.blog-hub-link {
  display: block;
  color: inherit;
  height: 100%;
}

.blog-hub-link:hover .blog-hub-title {
  color: var(--light-a);
}

.blog-hub-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-hub-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-base);
  margin: 0;
  line-height: var(--leading-tight);
  color: var(--light);
  flex-shrink: 0;
}

.blog-hub-image {
  display: block;
  width: 100%;
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1px solid var(--dark-a);
  aspect-ratio: 400 / 210;
  background-color: var(--dark-c);
  flex-shrink: 0;
}

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

.blog-hub-intro {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.manual-back {
  margin-top: 3rem;
  margin-bottom: 0;
}

.manual-back-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
}

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

.manual-back-sep {
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0 0.35em;
}

.content-section {
  margin-bottom: var(--space-3);
}

.content-section + .content-section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--dark-a);
}

.content-section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  margin: 0 0 var(--space-2);
  line-height: var(--leading-tight);
  color: var(--light);
  text-align: left;
  overflow-wrap: break-word;
}

.content-section p,
.content-section li {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
}

.content-section ul {
  padding-left: var(--space-2);
  margin: 0;
}

.content-section li {
  margin-bottom: var(--space-1);
}

.content-contact {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--dark-a);
  font-size: var(--text-base);
  color: var(--text-muted);
}

.content-contact a,
.content-contact-link {
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.content-contact a:hover,
.content-contact-link:hover {
  color: var(--light);
}

.content-item {
  margin-bottom: var(--space-2);
}

.content-item dt {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  margin: 0 0 var(--space-1);
  color: var(--light);
}

.content-item dd {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0;
  color: var(--text-muted);
}

/* ========== Card (single style, no variants) ========== */

.card {
  background-color: var(--dark-b);
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius-btn);
  box-sizing: border-box;
  border: 1px solid var(--dark-a);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.25rem;
  min-height: 0;
  height: 100%;
  text-align: left;
  transition: transform var(--duration-s) var(--ease-out-expo), border-color var(--duration-s) ease, box-shadow var(--duration-s) ease;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
      transform: translateY(-3px);
      border-color: rgba(250, 250, 250, 0.12);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    }
}

.card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  margin: 0;
  padding: 0;
  color: var(--light);
  line-height: var(--leading-tight);
  flex-shrink: 0;
  text-align: left;
}

.card p,
.card ul {
  font-size: var(--text-xs);
  line-height: 1.55;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  flex: 0 1 auto;
  min-width: 0;
}

.card p {
  text-align: left;
}

.card ul {
  padding-left: 1.25rem;
  margin: 0;
  list-style-type: disc;
  list-style-position: outside;
}

.card li {
  font-size: var(--text-xs);
  margin-bottom: 0.5rem;
  padding-left: 0.25em;
  text-align: left;
}

.card li:last-child {
  margin-bottom: 0;
}

.card-meta {
  font-size: var(--text-xs);
  margin: 0.25rem 0 0.75rem;
  padding: 0;
  color: var(--text-muted);
  font-weight: 500;
  line-height: var(--leading-tight);
  flex-shrink: 0;
}

/* ========== Grid ========== */

.grid {
  display: grid;
  gap: 3rem;
  align-items: stretch;
}

/* Max 2 cards per row: 2x2 for four, 2+1 for three, 1x2 for two */

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

.grid-3 {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}

/* Triangular: one centered on top (same size as bottom two), two below */

.grid-3 .card:nth-child(1) {
  grid-column: 1 / -1;
  max-width: calc((100% - 3rem) / 2); /* same width as one column (grid gap is 3rem) */
  justify-self: center;
}

.grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
}

@media (max-width: 600px) {
  .grid-2,
    .grid-3,
    .grid-4 {
      grid-template-columns: 1fr;
    }

  .grid-3 .card:nth-child(1) {
      grid-column: 1;
      max-width: none;
      justify-self: stretch;
    }

  .card {
      padding: 2rem 1.75rem;
    }
}

/* ========== Links (body text) ========== */

.link-inline {
  color: var(--light-a);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.link-inline:hover {
  color: var(--light);
}

.link-inline:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-btn);
}

.link-secondary {
  font-size: var(--text-base);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  color: var(--text-muted);
}

.link-secondary:hover {
  color: var(--light);
}

/* Reserve space for Back so Next/Send doesn’t shift when Back appears */

/* Align both buttons: .form .btn adds margin-top; reset here so BACK and SEND line up */

@media (prefers-reduced-motion: no-preference) {
  .drawer-slot > .message {
      animation: message-in 1.1s var(--ease-out-expo);
    }
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message--success {
  text-align: center;
}

.message--error {
  text-align: center;
}

.drawer-slot--centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout {
  --header-height: 4.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0;
  box-sizing: border-box;
  background-color: var(--dark);
  border-bottom: 1px solid var(--dark-a);
  transform: translateY(0);
  transition: transform 0.35s var(--ease-out-expo), background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

.site-header--scrolled {
  background-color: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header--hidden {
  transform: translateY(-100%);
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
      transition: background-color 0.25s ease, border-color 0.25s ease;
    }
}

/* When mobile menu is open, header (and nav) sit above the backdrop so links are clickable */

.site-header--menu-open {
  z-index: 51;
}

.site-header-inner {
  max-width: var(--width2);
  margin: 0 auto;
  padding: 0 var(--content-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* When menu is open, backdrop is inside header; this keeps logo, toggle and nav above it and clickable */

.site-header-inner--over-backdrop {
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .logo {
  display: block;
  width: clamp(7rem, 18vw, 10rem);
}

.site-header .logo img {
  width: 100%;
  height: auto;
}

.header-right {
  display: flex;
  align-items: center;
  position: relative;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background-color: var(--light);
  border-radius: var(--radius-btn);
  transition: background-color 0.25s ease;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  .menu-toggle {
      min-width: 2.75rem;
      min-height: 2.75rem;
      width: 2.75rem;
      height: 2.75rem;
    }
}

/* Hamburger icon: three lines */

.menu-toggle-icon {
  display: block;
  width: 1rem;
  height: 2px;
  background-color: var(--dark);
  position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
}

.menu-toggle-icon::before {
  top: -5px;
}

.menu-toggle-icon::after {
  top: 5px;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  min-width: 10rem;
  padding: 0.75rem;
  background-color: var(--dark-b);
  border: 1px solid var(--dark-a);
  border-radius: var(--radius-btn);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  flex-direction: column;
  z-index: 12;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity var(--duration-s) var(--ease-out-expo), visibility var(--duration-s) ease, transform var(--duration-s) var(--ease-out-expo);
}

.nav-open.nav {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .nav-open .nav-links .nav-link,
    .nav-open .nav-locale {
      animation: nav-item-in 0.6s var(--ease-out-expo) backwards;
    }

  .nav-open .nav-links .nav-link:nth-child(1) { animation-delay: 0.08s; }

  .nav-open .nav-links .nav-link:nth-child(2) { animation-delay: 0.16s; }

  .nav-open .nav-links .nav-link:nth-child(3) { animation-delay: 0.24s; }

  .nav-open .nav-links .nav-locale { animation-delay: 0.32s; }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-links .nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-sm);
  border-radius: var(--radius-btn);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.nav-links .nav-link:hover {
  background-color: var(--dark-a);
}

.nav-links .nav-link.active {
  color: var(--light);
}

.nav-locale {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  border-radius: var(--radius-btn);
}

.nav-locale-link {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: var(--radius-btn);
  background: none;
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-locale-link:hover {
  color: var(--light);
}

.nav-locale-link.active {
  color: var(--light);
}

.nav-locale-sep {
  opacity: 0.5;
  pointer-events: none;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
  transition: opacity 0.4s ease;
}

.main {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: var(--space-8);
}

.site-credit {
  position: fixed;
  bottom: var(--space-3);
  right: var(--content-padding-x);
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  font-size: var(--text-xs);
  color: var(--text-muted);
  pointer-events: auto;
}

@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  .site-credit {
      animation: dawn-fade var(--dawn-element-duration) var(--ease-out-expo) calc(var(--dawn-elements-delay) + 3 * var(--dawn-element-duration)) both;
    }
}

@keyframes dawn-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dawn-fade-headline {
  from {
    opacity: 0;
    transform: translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

/* Mobile only: show email footer when scroll is finished (logic in Home.tsx) */

@media (max-width: 768px) {
  .site-credit {
      opacity: 0;
      visibility: hidden;
      transform: translateY(0.5rem);
      transition: opacity 0.65s var(--ease-out-expo), visibility 0.65s ease, transform 0.65s var(--ease-out-expo);
    }

  .site-credit.site-credit--last-section {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
}

.site-credit-year {
  letter-spacing: 0.02em;
}

.site-credit-email {
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

.site-credit-email:hover {
  color: var(--light);
  text-decoration: underline;
}

/* Shared CTA size and look (sticky + in-section) */

.cta-primary {
  display: inline-block;
  box-sizing: border-box;
  width: max-content;
  min-width: 14rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  background-color: var(--light);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background-color var(--duration-s) ease, color var(--duration-s) ease, transform var(--duration-s) var(--ease-out-expo), box-shadow var(--duration-s) ease;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.cta-primary:hover {
  background-color: var(--light-a);
  color: var(--dark);
}

.cta-primary:focus-visible {
  outline: 2px solid var(--light-a);
}

@media (prefers-reduced-motion: no-preference) {
  .cta-primary:hover {
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }
}

/* Key phrase emphasis */

.emphasis {
  color: var(--light);
  font-weight: 700;
}

.cta-sticky {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  /* Matches --cta-sticky-zone: 2rem + this button’s height */
}

/* Critical: cancel entrance animation when swapping to section CTA so hide is immediate */

.cta-sticky--hidden {
  animation: none;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.cta-in-section {
  display: block;
  margin-top: var(--space-3);
  margin-left: auto;
  margin-right: auto;
}

/* Hidden until swap point (sticky CTA hides); keeps layout for position check */

.cta-in-section-wrap--hidden {
  visibility: hidden;
}

.cta-note {
  margin: var(--space-2) 0 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-in-section:hover {
      transform: scale(1.02);
    }
}

/* Drawer (contact form from bottom) */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: drawer-fade-in 0.55s var(--ease-out-expo);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

/* Phone portrait aspect ratio (9:19.5) so it displays correctly on phone and as phone-shaped on desktop */

.drawer-panel {
  pointer-events: auto;
  width: 100%;
  max-width: min(27rem, 100vw);
  aspect-ratio: 9 / 19.5;
  max-height: 90vh;
  height: auto;
  overflow: hidden;
  background-color: var(--dark);
  border-top-left-radius: var(--radius-btn);
  border-top-right-radius: var(--radius-btn);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: drawer-slide-up 0.75s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.drawer-inner {
  flex: 1;
  min-height: 0;
  padding: 2rem var(--content-padding-x) 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-slot {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer-close {
  position: absolute;
  top: 1rem;
  right: var(--content-padding-x);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.drawer-close:hover {
  color: var(--light);
}

@keyframes drawer-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawer-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .drawer-backdrop,
    .drawer-panel {
      animation: none;
    }

  .nav {
      transform: none;
      transition: opacity var(--duration-s) ease, visibility var(--duration-s) ease;
    }

  .nav-open.nav {
      transform: none;
    }

  .site-credit {
      animation: none;
    }
}

@media (prefers-reduced-motion: reduce) and (max-width: 768px) {
  .site-credit {
      transform: none;
      transition: opacity 0.4s ease, visibility 0.4s ease;
    }

  .site-credit.site-credit--last-section {
      transform: none;
    }
}

@media (min-width: 700px) {
  .menu-toggle {
      display: none;
    }

  .site-header-inner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
    }

  .header-left {
      justify-content: flex-start;
      justify-self: start;
    }

  .nav {
      position: static;
      width: auto;
      max-width: none;
      padding: 0;
      margin: 0;
      border: none;
      box-shadow: none;
      opacity: 1;
      visibility: visible;
      transform: none;
      display: flex;
      justify-content: flex-end;
      justify-self: end;
    }

  .nav-links {
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

  .nav-links .nav-link {
      border: none;
      padding: 0.75rem 1rem;
      margin: 0;
      border-radius: var(--radius-btn);
    }

  .nav-links .nav-link:hover {
      background-color: var(--light);
      color: var(--dark);
    }

  .nav-links .nav-link.active {
      background-color: var(--light);
      color: var(--dark);
    }

  .nav-locale {
      margin-left: 0.5rem;
    }

  .nav-locale-link:hover,
    .nav-locale-link.active {
      background-color: var(--light);
      color: var(--dark);
    }
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2fr;
  min-height: 100vh;
  min-height: 100dvh;
  flex-shrink: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border-top: none;
}

.hero-text {
  padding: var(--section-padding-y) var(--content-padding-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 6rem; /* above sticky CTA (CTA is bottom: 2rem + height) */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-btn);
  transition: color var(--duration-s) ease;
}

.scroll-indicator:hover {
  color: var(--light);
}

.scroll-indicator:focus-visible {
  outline: 2px solid var(--light-a);
  outline-offset: 2px;
}

.scroll-indicator-icon {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-indicator-icon {
      animation: scroll-indicator-bounce 2s var(--ease-in-out-smooth) infinite;
    }
}

@keyframes scroll-indicator-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.25rem); }
}

.hero-image {
  position: relative;
  background-image: url("/OQVA_header.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: min(50vh, 24rem);
}

.hero-headline-overlay {
  position: absolute;
  top: 33.333%;
  right: var(--content-padding-x);
  transform: translateY(-50%);
  width: max-content;
  max-width: 55%;
  background-color: var(--dark);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  box-sizing: border-box;
}

.hero-headline {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin: 0;
  line-height: 1.1;
  color: var(--light);
}

.hero-body {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .hero {
      grid-template-columns: 1fr;
      grid-template-rows: min(40vh, 20rem) auto;
      min-height: 100vh;
      min-height: 100dvh;
      height: auto;
    }

  .hero-image {
      min-height: 0;
      order: -1;
    }

  .hero-text {
      min-height: 0;
    }
}

/* Spacing after hero copy (app shell zeros .page-lead margin-bottom) */

.services-page-head {
  margin-bottom: var(--space-2);
}

/* AnimateInView wraps each block; mirror .content-section + .content-section rhythm from content.css */

.services-content-block + .services-content-block {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--dark-a);
}

/* Journey paths: vertical numbered steps (after à la carte carousels) */

.services-paths-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-2);
}

.services-path-flow {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.services-path-flow-header {
  margin-bottom: var(--space-2);
  max-width: 40rem;
}

.services-path-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  margin: 0 0 0.35rem;
  color: var(--light);
  line-height: var(--leading-tight);
}

.services-path-desc {
  font-size: var(--text-xs);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin: 0;
}

.services-path-track {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.services-path-node {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
}

.services-path-node-link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  padding: 0.35rem 0;
  min-width: 0;
  border-radius: var(--radius-btn);
  transition: color 0.2s ease;
}

.services-path-node-link:hover .services-path-step-name,
.services-path-node-link:focus-visible .services-path-step-name {
  color: var(--light);
}

.services-path-node-link:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.services-path-node-index {
  flex-shrink: 0;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 9999px;
  border: 1px solid var(--dark-a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--light-a);
  background: var(--dark-b);
}

.services-path-node-link:hover .services-path-node-index,
.services-path-node-link:focus-visible .services-path-node-index {
  border-color: rgba(250, 250, 250, 0.2);
  color: var(--light);
}

.services-path-node-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.services-path-step-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--light-a);
  line-height: var(--leading-snug);
  transition: color 0.2s ease;
}

.services-path-step-note {
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--text-muted);
}

/* Scrollable row */

.services-scroll-row {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-3);
  margin: 0 calc(-1 * var(--content-padding-x));
  padding-left: var(--content-padding-x);
  padding-right: var(--content-padding-x);
  /* Buffer so lifted cards don't clip at top */
  padding-top: 12px;
  margin-top: -12px;
}

.services-scroll-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
}

/* Service Card (rendered as <a> via Next Link) */

.service-card {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 22rem;
  scroll-snap-align: start;
  min-height: 26rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* Narrower than the viewport so the next card peeks; no gradient or copy needed */

@media (max-width: 768px) {
  .service-card {
      width: min(20rem, calc(100vw - 4.75rem));
    }
}

/* Override global .card height:100% so row flex stretch sets one height for all cards */

.card.service-card {
  height: auto;
  align-self: stretch;
}

.service-card:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.service-card-name {
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  margin: 0;
  padding: 0;
  color: var(--light);
  line-height: var(--leading-tight);
}

.service-card-price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--light);
  margin: 0;
  letter-spacing: -0.01em;
}

.service-card-desc {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.service-card-summary {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

/* Beat `.card ul { flex: 0 1 auto }` so summary absorbs space and CTAs align */

.card.service-card .service-card-summary {
  flex: 1 1 auto;
  min-height: 0;
}

.service-card-summary li {
  list-style: none;
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--text-muted);
  padding-left: 1em;
  position: relative;
  margin: 0;
}

.service-card-summary li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* CTA row at bottom of card */

.service-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--light-a);
  transition: color 0.25s ease, gap 0.25s ease;
}

.service-card:hover .service-card-cta,
.service-card:focus-visible .service-card-cta {
  color: var(--light);
  gap: 0.75rem;
}

.service-card-arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-expo);
}

.service-card:hover .service-card-arrow {
  transform: translateX(4px);
}

/* Scrollbar styling */

.services-scroll-row::-webkit-scrollbar {
  height: 4px;
}

.services-scroll-row::-webkit-scrollbar-track {
  background: var(--dark-a);
  border-radius: 2px;
}

.services-scroll-row::-webkit-scrollbar-thumb {
  background: var(--dark-a);
  border-radius: 2px;
}

.services-scroll-row::-webkit-scrollbar-thumb:hover {
  background: var(--light-a);
}

@media (max-width: 768px) {
  .services-scroll-row {
      scrollbar-color: var(--light-a) var(--dark-a);
    }

  .services-scroll-row::-webkit-scrollbar-thumb {
      background: var(--light-a);
    }

  .services-scroll-row::-webkit-scrollbar-thumb:hover {
      background: var(--light);
    }
}

/* ========== Service Detail Page ========== */

/* .page already supplies padding; narrow column for long-form copy (app shell sets .page to --width2) */

.service-detail {
  margin-left: auto;
  margin-right: auto;
}

.service-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.service-detail-back:hover {
  color: var(--light);
}

.service-detail-back svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out-expo);
}

.service-detail-back:hover svg {
  transform: translateX(-3px);
}

.service-detail-header {
  margin-bottom: var(--space-4);
}

.service-detail-price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  color: var(--light);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.service-detail-name {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
  margin: 0 0 1.25rem;
  line-height: var(--leading-tight);
  color: var(--light);
}

.service-detail-lead {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: var(--leading-relaxed);
}

.service-detail-divider {
  border: none;
  border-top: 1px solid var(--dark-a);
  margin: var(--space-4) 0;
}

.service-detail-section {
  margin-bottom: var(--space-4);
}

.service-detail-section:last-of-type {
  margin-bottom: 0;
}

.service-detail-section h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-sm);
  color: var(--light);
  margin: 0 0 var(--space-2);
}

.service-detail-section p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
}

.service-detail-section p:last-child {
  margin-bottom: 0;
}

.service-detail-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail-deliverables li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

.service-detail-deliverables li::before {
  content: '–';
  color: var(--text-muted);
  flex-shrink: 0;
}

.service-detail-cta {
  margin-top: var(--space-4);
}

/* Contact form honeypot: off-screen for people, still in the DOM for bots that fill every field. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
