/* =====================================================
   STACKFORGE INC. — LANDING PAGE
   Dark-first · monochrome · scroll-driven
   ===================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Type */
  --font-sans: 'Geist', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'IBM Plex Mono', 'SF Mono', Consolas, monospace;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(5rem, 11vw, 9rem);

  /* Radii */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-md: 6px;
}

/* Dark theme (default) */
:root,
[data-theme='dark'] {
  --bg: #09090b;
  --bg-elev: #0f0f12;
  --bg-surface: #131317;
  --bg-raised: #1a1a1f;
  --bg-sunken: #050506;
  --bg-inverse: #fafafa;

  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-tertiary: #52525b;
  --text-inverse: #09090b;

  --border: #1f1f24;
  --border-soft: #17171b;
  --border-strong: #2a2a31;

  --grid-line: rgba(255, 255, 255, 0.035);
  --spot-color: rgba(255, 255, 255, 0.06);
  --grain-opacity: 0.06;

  color-scheme: dark;
}

/* Light theme */
[data-theme='light'] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-surface: #ffffff;
  --bg-raised: #f4f4f5;
  --bg-sunken: #ededee;
  --bg-inverse: #09090b;

  --text: #09090b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --text-inverse: #fafafa;

  --border: #e4e4e7;
  --border-soft: #ededee;
  --border-strong: #d4d4d8;

  --grid-line: rgba(0, 0, 0, 0.05);
  --spot-color: rgba(0, 0, 0, 0.05);
  --grain-opacity: 0.035;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease);
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

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

em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

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

::selection {
  background: var(--text);
  color: var(--bg);
}

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

@supports (animation-timeline: scroll()) {
  .scroll-progress {
    animation: sp linear both;
    animation-timeline: scroll(root);
  }
  @keyframes sp {
    to {
      transform: scaleX(1);
    }
  }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}

.is-in .reveal,
.reveal.is-in,
.reveal--in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    animation: reveal-in linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
    animation-delay: var(--d, 0ms);
  }
  @keyframes reveal-in {
    from {
      opacity: 0;
      transform: translateY(28px);
      filter: blur(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }

  /* Hero sits above the fold — use a page-load animation so it
     settles to crisp state immediately, instead of being stuck
     mid scroll-timeline with residual blur. */
  .hero .reveal {
    animation: hero-reveal 0.9s var(--ease) both;
    animation-timeline: auto;
    animation-delay: var(--d, 0ms);
  }

  @keyframes hero-reveal {
    from {
      opacity: 0;
      transform: translateY(20px);
      filter: blur(6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0);
    }
  }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow__dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 10%, transparent);
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 10%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--text) 5%, transparent);
  }
}

.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 1.5rem;
  padding: 0.35rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.section {
  position: relative;
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--border);
}

.section__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section__head {
  max-width: 780px;
  margin-bottom: clamp(2.75rem, 5vw, 4.5rem);
}

.section__title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

.section__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
}

/* Sticky editorial rail */
.section__rail {
  position: absolute;
  top: var(--section-pad);
  left: 1rem;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  z-index: 2;
}

@media (min-width: 1340px) {
  .section__rail {
    display: flex;
    position: sticky;
    top: calc(50vh - 60px);
    height: 120px;
    margin-left: calc(var(--container) / 2 * -1 - 50px);
    float: left;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  will-change: transform;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  box-shadow:
    0 0 0 1px transparent,
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.btn--primary:hover {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--text) 8%, transparent),
    0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: var(--bg-elev);
}

.btn--lg {
  padding: 1.125rem 1.875rem;
  font-size: 1rem;
}

.btn svg {
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: translateX(4px);
}

/* ======================================================
   NAV
   ====================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid var(--border);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.nav.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}

/* Fallback for browsers without backdrop-filter — solid bg so nav is never faint */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav {
    background: var(--bg);
  }
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9375rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
}

.nav__mark {
  width: 24px;
  height: auto;
  color: var(--text);
  transition:
    transform 0.35s var(--ease),
    color 0.3s var(--ease);
}
.nav__brand:hover .nav__mark {
  transform: translateY(-1px) scale(1.04);
}

.nav__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: 1rem;
}

/* Footer mark matches nav sizing but runs a touch larger */
.footer__mark {
  width: 28px;
  height: auto;
  color: var(--text);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.nav__tm {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav__links > a {
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
  position: relative;
}

.nav__links > a:not(.nav__cta):hover {
  color: var(--text);
}

.nav__links > a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links > a:not(.nav__cta):hover::after {
  transform: scaleX(1);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text) !important;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease);
  will-change: transform;
}
.nav__cta:hover {
  background: var(--text);
  color: var(--bg) !important;
  border-color: var(--text);
}

.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition:
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text);
}

.theme-toggle__sun,
.theme-toggle__moon {
  position: absolute;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

[data-theme='dark'] .theme-toggle__sun {
  opacity: 1;
  transform: rotate(0);
}
[data-theme='dark'] .theme-toggle__moon {
  opacity: 0;
  transform: rotate(90deg);
}
[data-theme='light'] .theme-toggle__sun {
  opacity: 0;
  transform: rotate(-90deg);
}
[data-theme='light'] .theme-toggle__moon {
  opacity: 1;
  transform: rotate(0);
}

/* ---------- Mobile hamburger ---------- */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: var(--bg-elev);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.nav__toggle:hover,
.nav__toggle:focus-visible {
  border-color: var(--text);
}

.nav__toggle-bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition:
    transform 0.32s var(--ease),
    top 0.32s var(--ease),
    bottom 0.32s var(--ease),
    opacity 0.2s var(--ease);
}

.nav__toggle-bar:nth-child(1) { top: 14px; }
.nav__toggle-bar:nth-child(2) { top: 21px; }
.nav__toggle-bar:nth-child(3) { bottom: 14px; }

.nav.is-open .nav__toggle-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav.is-open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav.is-open .nav__toggle-bar:nth-child(3) {
  bottom: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 820px) {
  /* Fully opaque nav on mobile — no reliance on backdrop-filter */
  .nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav__inner {
    padding: 0.75rem var(--gutter);
    gap: 1rem;
  }

  .nav__toggle {
    display: inline-flex;
  }

  /* Turn the nav links row into a full-screen panel */
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.3s var(--ease);
    z-index: 55;
    overflow-y: auto;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__links > a:not(.nav__cta) {
    display: flex;
    align-items: center;
    min-height: 56px;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }

  .nav__links > a:not(.nav__cta)::after {
    display: none;
  }

  .nav__links .theme-toggle {
    width: 44px;
    height: 44px;
    align-self: flex-start;
    margin-top: 1.25rem;
  }

  .nav__links .nav__cta {
    margin-top: auto;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: var(--text);
    color: var(--bg) !important;
    border-color: var(--text);
    font-size: 1rem;
    min-height: 52px;
  }
}

@media (max-width: 480px) {
  .nav__inner {
    padding: 0.6875rem var(--gutter);
  }

  .nav__mark {
    width: 22px;
  }

  .nav__wordmark {
    font-size: 0.9375rem;
    gap: 0.3rem;
  }

  /* Hide the tiny "Inc." tag so brand stays readable next to hamburger */
  .nav__tm {
    display: none;
  }

  .nav__links {
    top: 66px;
  }
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) var(--gutter) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero__spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 40%),
    var(--spot-color),
    transparent 60%
  );
  pointer-events: none;
  transition: background 0.2s linear;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2rem, 7.5vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 2rem;
  max-width: 18ch;
}

.hero__line {
  display: block;
  overflow: visible;
}

.hero__word {
  display: inline-block;
  margin-right: 0.2em;
}

.hero__word--accent em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.hero__lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 58ch;
  margin: 0 0 2.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Monolith parallax ornament */
.monolith {
  position: absolute;
  right: clamp(-6rem, -8vw, 2rem);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.85;
  will-change: transform;
  z-index: 1;
}

.monolith__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.monolith__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.monolith__ver {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
}

.monolith__tower {
  width: 180px;
  height: 420px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg-elev) 80%, transparent),
    color-mix(in srgb, var(--bg-surface) 50%, transparent)
  );
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  backdrop-filter: blur(2px);
}

.monolith__band {
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 12px 16px;
}

.monolith__band:last-child {
  border-bottom: none;
}

.monolith__band--dark {
  background-color: var(--text);
  opacity: 0.88;
}

@media (max-width: 1100px) {
  .monolith {
    opacity: 0.25;
    right: -4rem;
  }
  .monolith__tower {
    width: 140px;
    height: 320px;
  }
}

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

/* ======================================================
   TICKER
   ====================================================== */
.ticker {
  overflow: hidden;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
  will-change: transform;
}

.ticker__group {
  display: inline-flex;
  gap: 2.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ticker__dot {
  color: var(--text-tertiary);
  font-size: 0.5rem;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

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

/* ======================================================
   MANIFESTO
   ====================================================== */
.manifesto {
  padding: var(--section-pad) 0;
}

.manifesto__lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 920px;
  margin-top: 2rem;
}

.manifesto__line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--text);
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.manifesto__line:first-of-type {
  border-top: 1px solid var(--border);
}

.manifesto__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: 0.8rem;
}

.manifesto__line em {
  font-family: var(--font-serif);
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .manifesto__line {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 1.125rem;
  }
}

/* ======================================================
   SERVICES
   ====================================================== */
.svc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 880px) {
  .svc-list {
    grid-template-columns: 1fr;
  }
}

.svc {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-elev);
  transition: background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--sx, 50%) var(--sy, 50%),
    color-mix(in srgb, var(--text) 5%, transparent),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.svc:hover::before {
  opacity: 1;
}

.svc:hover {
  background: var(--bg-surface);
}

/* Make the last one span both columns if odd */
.svc:nth-child(5) {
  grid-column: span 2;
}
@media (max-width: 880px) {
  .svc:nth-child(5) {
    grid-column: span 1;
  }
}

.svc__figure {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.svc__figure::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 6px;
  height: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.svc__diagram {
  width: 100%;
  height: auto;
  color: var(--text);
  display: block;
  max-height: 160px;
  transition: transform 0.6s var(--ease);
}

.svc:hover .svc__diagram {
  transform: translateY(-2px);
}

.svc__figure figcaption {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  text-align: center;
}

/* Invert filled-bar text to sit readably on the filled rectangle */
.svc__label-inverse {
  fill: var(--bg-elev) !important;
}

.svc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.svc__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
}

.svc__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}

.svc__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.svc__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  max-width: 52ch;
}

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

.svc__tags li {
  padding: 0.35rem 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

/* ======================================================
   APPROACH
   ====================================================== */
.approach {
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-bottom-color: var(--bg-inverse);
}

.approach .section__title,
.approach .section__kicker {
  color: var(--bg);
}

.approach .section__kicker {
  background: color-mix(in srgb, var(--bg) 15%, transparent);
  border-color: color-mix(in srgb, var(--bg) 18%, transparent);
  color: color-mix(in srgb, var(--bg) 70%, transparent);
}

.approach .section__sub {
  color: color-mix(in srgb, var(--bg) 60%, transparent);
}

.phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 900px) {
  .phases {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .phases {
    grid-template-columns: 1fr;
  }
}

.phase {
  padding: 2.5rem 1.75rem 2.5rem 1.75rem;
  border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  position: relative;
}

.phase:first-child {
  padding-left: 0;
}

.phase:last-child {
  border-right: none;
  padding-right: 0;
}

@media (max-width: 900px) {
  .phase,
  .phase:first-child,
  .phase:last-child {
    padding: 2rem 1.5rem;
    border-right: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  }
  .phase:nth-child(2n) {
    border-right: none;
  }
  .phase:nth-child(n + 3) {
    border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  }
}

@media (max-width: 560px) {
  .phase,
  .phase:first-child,
  .phase:last-child {
    padding: 1.75rem 0;
    border-right: none;
  }
  .phase + .phase {
    border-top: 1px solid color-mix(in srgb, var(--bg) 14%, transparent);
  }
}

.phase__glyph {
  width: 40px;
  height: 40px;
  color: var(--bg);
  opacity: 0.85;
  margin-bottom: 1.5rem;
  transition:
    transform 0.5s var(--ease),
    opacity 0.3s var(--ease);
}

.phase:hover .phase__glyph {
  transform: rotate(-6deg) scale(1.05);
  opacity: 1;
}

.phase__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.phase__num {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--bg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.phase__week {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bg) 50%, transparent);
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--bg) 20%, transparent);
  border-radius: var(--radius-sm);
}

.phase__title {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
  color: var(--bg);
}

.phase__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: color-mix(in srgb, var(--bg) 65%, transparent);
  margin: 0;
  max-width: 34ch;
}

/* ======================================================
   FITS
   ====================================================== */
.fits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

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

.fit {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-elev);
  transition: background 0.3s var(--ease);
}
.fit:hover {
  background: var(--bg-surface);
}

.fit__stage {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  margin-bottom: 1.25rem;
}

.fit p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  max-width: 52ch;
}

/* ======================================================
   STACK
   ====================================================== */
.stack__table {
  border-top: 1px solid var(--border);
}

.stack__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

@media (max-width: 700px) {
  .stack__row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }
}

.stack__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

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

.stack__tags li {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.stack__tags li:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ======================================================
   CONTACT
   ====================================================== */
.contact {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--bg-elev);
  border-bottom: none;
}

.contact__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000, transparent 75%);
  pointer-events: none;
}

.contact .section__inner {
  position: relative;
}

.contact__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 0;
  max-width: 18ch;
}

.contact__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--text-secondary);
}

.contact__sub {
  margin: 1.25rem 0 clamp(2.5rem, 5vw, 4rem);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.6;
  max-width: 54ch;
}

.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

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

/* Address card */
.contact__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.contact__row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.contact__row:last-child {
  border-bottom: none;
}

.contact__row--feature {
  padding: 1.75rem 1.5rem;
  background: var(--bg-raised);
}

.contact__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding-top: 0.2rem;
}

.contact__value {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.contact__email:hover {
  border-bottom-color: var(--text);
}

/* Booking banner */
.booking {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--bg-inverse);
  color: var(--text-inverse);
  border-radius: var(--radius);
  border: 1px solid var(--bg-inverse);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}

.booking::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to right,
      color-mix(in srgb, var(--text-inverse) 8%, transparent) 1px,
      transparent 1px
    ),
    linear-gradient(
      to bottom,
      color-mix(in srgb, var(--text-inverse) 8%, transparent) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 40%, #000, transparent 70%);
  pointer-events: none;
}

.booking:hover {
  box-shadow:
    0 0 0 6px color-mix(in srgb, var(--bg-inverse) 10%, transparent),
    0 18px 50px -18px color-mix(in srgb, var(--bg-inverse) 40%, transparent);
}

@media (max-width: 820px) {
  .booking {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.booking__copy {
  position: relative;
  z-index: 1;
}

.booking__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-inverse) 60%, transparent);
}

.booking__dot {
  width: 6px;
  height: 6px;
  background: var(--text-inverse);
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-inverse) 14%, transparent);
  animation: pulse-inverse 2.8s ease-in-out infinite;
}

@keyframes pulse-inverse {
  0%, 100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--text-inverse) 14%, transparent);
  }
  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--text-inverse) 6%, transparent);
  }
}

.booking__title {
  font-size: clamp(1.75rem, 3.8vw, 2.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--text-inverse);
}

.booking__title em {
  font-family: var(--font-serif);
  font-weight: 400;
  color: color-mix(in srgb, var(--text-inverse) 65%, transparent);
}

.booking__sub {
  margin: 0 0 1.75rem;
  color: color-mix(in srgb, var(--text-inverse) 70%, transparent);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42ch;
}

.booking__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.9375rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition:
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.booking:hover .booking__cta {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--bg) 15%, transparent);
}

.booking__cta svg {
  transition: transform 0.3s var(--ease);
}

.booking:hover .booking__cta svg {
  transform: translate(3px, -3px);
}

.booking__meta {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-inverse) 50%, transparent);
}

/* Calendar visual */
.booking__visual {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--text-inverse) 14%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--text-inverse) 4%, transparent);
}

.booking__cal-head,
.booking__cal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-inverse) 55%, transparent);
}

.booking__cal-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--text-inverse) 14%, transparent);
}

.booking__cal-foot {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed color-mix(in srgb, var(--text-inverse) 14%, transparent);
}

.booking__cal {
  width: 100%;
  height: auto;
  color: var(--text-inverse);
  overflow: visible;
}

.booking__slot {
  animation: slot-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes slot-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.75;
  }
}

.booking__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--text-inverse) 24%, transparent);
  border-radius: var(--radius-sm);
  color: var(--text-inverse);
}

.booking__chip::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-inverse);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text-inverse) 20%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .booking__dot,
  .booking__slot {
    animation: none !important;
  }
}

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

.contact__social a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.contact__social a:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
}

.contact__form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact__form-label,
.contact__form-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.contact__form-label {
  color: var(--text);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

.field label,
.field__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.field input,
.field textarea {
  padding: 0.8125rem 0.9375rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition:
    border-color 0.25s var(--ease),
    background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-tertiary);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 10%, transparent);
}

.field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

/* Chip radio group */
.field__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.chip:hover span {
  color: var(--text);
  border-color: var(--border-strong);
}

.chip input:checked + span {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.chip input:focus-visible + span {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 18%, transparent);
}

.contact__form-foot {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 0.75rem;
  flex-wrap: wrap;
}

.contact__disclaimer {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  max-width: 34ch;
  line-height: 1.5;
}

/* Success state */
.contact__form.is-sent {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 380px;
  padding: 3rem 2rem;
}

.contact__sent-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.contact__sent-title {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.contact__sent-body {
  color: var(--text-secondary);
  max-width: 38ch;
  font-size: 0.9375rem;
  margin: 0;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
}

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

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.footer__name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.footer__tag {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

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

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__col-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 0.5rem;
}

.footer__col a,
.footer__col span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__rule {
  height: 1px;
  background: var(--border);
  max-width: var(--container);
  margin: clamp(3rem, 5vw, 4rem) auto 1.5rem;
}

.footer__meta {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__mono {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  font-size: 0.6875rem;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .footer__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ======================================================
   MOTION GUARDS
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
  .monolith {
    transform: translateY(-50%) !important;
  }
  .ticker__track {
    animation: none !important;
  }
  .eyebrow__dot {
    animation: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ======================================================
   MOBILE POLISH — legibility, tap targets, spacing
   ====================================================== */
@media (max-width: 640px) {
  :root {
    --section-pad: clamp(3.5rem, 12vw, 5rem);
    --gutter: 1.25rem;
  }

  /* Hero — tighter padding, clearer type */
  .hero {
    min-height: 0;
    padding: 3.5rem var(--gutter) 3rem;
  }
  .hero__title {
    font-size: clamp(2.25rem, 10vw, 3rem);
    margin-bottom: 1.5rem;
  }
  .hero__lede {
    font-size: 1.0625rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  /* Full-width CTAs are easier to tap one-handed */
  .hero__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }
  .hero__ctas .btn {
    justify-content: center;
    width: 100%;
    padding: 1rem 1.25rem;
    min-height: 52px;
  }

  /* Section headers breathe less on small screens */
  .section__head {
    margin-bottom: 2rem;
  }
  .section__title {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  .section__sub {
    font-size: 1rem;
  }

  /* Eyebrow + kicker pill need a touch more air */
  .eyebrow {
    margin-bottom: 1.5rem;
  }

  /* Services: tighter card padding so lines don't wrap awkwardly */
  .svc {
    padding: 1.5rem 1.25rem;
  }
  .svc__title {
    font-size: 1.375rem;
  }
  .svc__body {
    font-size: 0.9375rem;
  }
  .svc__figure {
    margin-bottom: 1.25rem;
  }

  /* Ticker runs a bit tighter */
  .ticker {
    padding: 1rem 0;
  }
  .ticker__group {
    gap: 1.5rem;
    font-size: 0.75rem;
  }
  .ticker__track {
    gap: 1.5rem;
  }

  /* Booking — stack and breathe */
  .booking {
    padding: 1.75rem 1.25rem;
  }
  .booking__title {
    font-size: 1.625rem;
  }
  .booking__cta {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    min-height: 52px;
  }

  /* Contact card rows stack — the 110px label column crushes values */
  .contact__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem 1.25rem;
  }
  .contact__row--feature {
    padding: 1.5rem 1.25rem;
  }
  .contact__email {
    font-size: 1.125rem;
    word-break: break-word;
  }

  /* Form — 16px input prevents iOS auto-zoom, bigger hit area */
  .contact__form {
    padding: 1.25rem;
    gap: 1rem;
  }
  .field input,
  .field textarea {
    font-size: 16px;
    padding: 0.875rem 1rem;
  }
  .contact__form-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .contact__form-foot .btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    min-height: 52px;
  }
  .contact__disclaimer {
    max-width: none;
  }

  /* Chip targets */
  .chip span {
    padding: 0.625rem 0.875rem;
    font-size: 0.75rem;
  }

  /* Stack tags sit big enough to tap */
  .stack__tags li {
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
  }

  /* Footer — readable nav columns, aligned meta */
  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
  }
  .footer__col a,
  .footer__col span {
    font-size: 1rem;
    padding: 0.25rem 0;
  }
  .footer__meta {
    font-size: 0.75rem;
  }

  /* Social / contact pill links — bigger tap */
  .contact__social a {
    padding: 0.625rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Hide the decorative ticker on very narrow screens — it just wastes height */
@media (max-width: 420px) {
  .hero {
    padding-top: 2.75rem;
  }
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  .section__kicker {
    font-size: 0.6875rem;
  }
}
