/* ===================================================================
   ELARIS LABS - "The Blueprint" Design System
   Option A: Technical drawing translated to web.
   =================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Color system - dark theme */
  --bg:            #0C0C0C;
  --bg-dot:        #1A1A1A;
  --surface:       #161618;
  --ink:           #E0DDD8;
  --ink-secondary: #A09C96;
  --muted:         #807C76;
  --line:          #2A2A2C;
  --line-heavy:    #3A3A3C;
  --accent:        #5BB8CE;
  --accent-hover:  #7DCCE0;
  --accent-subtle: rgba(91, 184, 206, 0.08);
  --diagram:       #3A3A3C;
  --dark-surface:  #080808;
  --dark-text:     #E0DDD8;

  /* Layout */
  --content:   75rem;
  --gutter:    clamp(1.25rem, 3vw, 2rem);
  --grid-dot:  24px;

  /* 8px spacing scale */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Type scale - fluid */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm:   clamp(0.8125rem, 0.78rem + 0.16vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.19vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --text-3xl:  clamp(2.5rem, 2rem + 2.5vw, 3.75rem);

  /* Type families */
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", "Fira Code", monospace;

  /* Radius - barely there */
  --radius: 2px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--bg-dot) 1px, transparent 1px);
  background-size: var(--grid-dot) var(--grid-dot);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

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

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

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

/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-2);
  background: var(--ink);
  color: var(--surface);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  z-index: 100;
}

.skip-link:focus { left: var(--space-2); }

/* ===== LAYOUT ===== */
.container {
  width: min(var(--content), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12, 12, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  text-decoration: none;
}

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

.brand__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav { flex: 1; }

.site-nav__list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--ink);
}

.header-cta {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-6);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 500;
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(91, 184, 206, 0.2);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-heavy);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-sm);
}

/* ===== SECTION SYSTEM ===== */
.section {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: none;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.section-heading {
  font-size: var(--text-2xl);
  max-width: 24ch;
  margin-bottom: var(--space-4);
}

.section-subheading {
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  max-width: 52ch;
  line-height: 1.55;
  font-weight: 400;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: clamp(32rem, 80vh, 48rem);
  overflow: hidden;
}

/* Diagram background - absolute, fills entire hero */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-diagram {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 64rem);
  height: auto;
  opacity: 0.5;
}

.arch-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Frosted overlay - radial, strongest at center where text sits */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 60% 65% at 50% 50%,
      rgba(12, 12, 12, 0.9) 0%,
      rgba(12, 12, 12, 0.6) 55%,
      rgba(12, 12, 12, 0.15) 100%
    );
  pointer-events: none;
}

/* Text content - centered on top of everything */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(6rem, 14vw, 10rem) 0 clamp(5rem, 10vw, 8rem);
}

.hero__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-3xl);
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.hero__sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--ink-secondary);
  max-width: 40ch;
  line-height: 1.55;
  font-weight: 400;
}

.hero .cta-row {
  margin-top: var(--space-8);
  justify-content: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Traveling dot - appears after diagram build completes */
.traveling-dot {
  opacity: 0;
  animation: dotAppear 0.6s ease forwards;
  animation-delay: 6s;
}

@keyframes dotAppear {
  to { opacity: 1; }
}

/* ===== HERO DIAGRAM (SVG architecture) ===== */

.arch-annotation {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--muted);
}

.arch-annotation--accent {
  fill: var(--accent);
}

.arch-layer-label {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--muted);
}

.arch-layer-label--accent {
  fill: var(--accent);
}

.arch-node-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink);
}

.arch-node-label--accent {
  fill: var(--accent);
}

.arch-node-sub {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 400;
  fill: var(--ink-secondary);
}

.arch-node-detail {
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
  fill: var(--muted);
}

/* Staggered reveal: each <g class="arch-step"> fades in sequentially.
   --step is set as an inline custom property (0-27).
   Base delay staggers at 120ms per step, starting after the hero text lands. */
.arch-step {
  opacity: 0;
  animation: archReveal 0.5s ease forwards;
  animation-delay: calc(0.5s + var(--step) * 0.18s);
}

@keyframes archReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===== PROBLEM GRID - shared-edge cells ===== */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.problem-cell {
  padding: var(--space-8);
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.problem-cell:last-child {
  border-right: none;
}

.problem-cell__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

.problem-cell h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.problem-cell p {
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

.problem-stat {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-left: 3px solid var(--accent);
  background: var(--accent-subtle);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 56ch;
}

.problem-stat p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
}

.problem-stat strong {
  color: var(--ink);
}

/* ===== SERVICE GRID - shared-edge table cells ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-cell {
  padding: var(--space-8);
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-cell:nth-child(2n) {
  border-right: none;
}

.service-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.service-cell__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.service-cell h3 {
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.service-cell p {
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

/* ===== PROCESS FLOW - horizontal pipeline diagram ===== */
.process-pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: var(--space-8);
  position: relative;
}

.process-node {
  flex: 1;
  position: relative;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.process-node + .process-node {
  margin-left: var(--space-12);
}

/* Connector lines between nodes */
.process-node + .process-node::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: var(--space-12);
  height: 1px;
  background: var(--diagram);
  transform: translateY(-50%);
}

/* Arrow dot at connector end */
.process-node + .process-node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.process-node__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.process-node__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.process-node__desc {
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

.process-callout {
  margin-top: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.process-callout p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
}

.process-callout strong {
  color: var(--ink);
}

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  padding: var(--space-8);
  background: var(--surface);
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat-cell:last-child {
  border-right: none;
}

.stat-cell__number {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(91, 184, 206, 0.25);
}

.stat-cell__label {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.results-note {
  margin-top: var(--space-8);
  max-width: 56ch;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

/* ===== FIT CHECK - split layout ===== */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fit-col {
  padding: var(--space-8);
  background: var(--surface);
}

.fit-col:first-child {
  border-right: 1px solid var(--line);
}

.fit-col h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

.checklist,
.anti-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li,
.anti-checklist li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.5;
}

.checklist li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}

.anti-checklist li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--muted);
}

/* ===== ABOUT TEASER ===== */
.about-content {
  max-width: 52ch;
}

.about-content p {
  color: var(--ink-secondary);
  margin: 0 0 var(--space-4);
  line-height: 1.65;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content a {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

/* ===== DARK SECTION (CTA) ===== */
.section--dark {
  background: var(--dark-surface);
  color: var(--ink);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--line);
  background-image: radial-gradient(circle, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: var(--grid-dot) var(--grid-dot);
}

.section--dark .section-heading {
  color: var(--ink);
  max-width: 28ch;
}

.section--dark .cta-sub {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  margin: var(--space-4) 0 var(--space-8);
  max-width: 60ch;
  letter-spacing: 0.02em;
}

/* ===== PROSE (About page) ===== */
.prose {
  max-width: 58ch;
}

.prose p {
  margin: 0 0 var(--space-4);
  color: var(--ink-secondary);
  line-height: 1.7;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ===== FOUNDERS ===== */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.founder-cell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--surface);
}

.founder-cell:first-child {
  border-right: 1px solid var(--line);
}

.founder-cell__image {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

.founder-cell__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.founder-cell h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.founder-cell p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ===== PHILOSOPHY GRID ===== */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: var(--space-8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.philosophy-cell {
  padding: var(--space-8);
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.philosophy-cell:nth-child(2n) {
  border-right: none;
}

.philosophy-cell:nth-last-child(-n+2) {
  border-bottom: none;
}

.philosophy-cell__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-3);
}

.philosophy-cell h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}

.philosophy-cell p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--space-4);
}

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

.footer-nav a,
.footer-legal {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.footer-rule {
  height: 1px;
  background: var(--line);
  margin: var(--space-8) 0 var(--space-6);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0;
}

/* ===== HERO STAGGER ===== */
.hero__label,
.hero__title,
.hero__sub,
.hero .cta-row {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.45s ease forwards;
}

.hero__label   { animation-delay: 0s; }
.hero__title   { animation-delay: 0.08s; }
.hero__sub     { animation-delay: 0.16s; }
.hero .cta-row { animation-delay: 0.24s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* ===== SCROLL REVEAL ===== */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    animation: revealUp linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  @keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 64rem) {
  .hero-diagram {
    width: max(160%, 48rem);
    opacity: 0.3;
  }

  .process-pipeline {
    flex-direction: column;
    gap: var(--space-4);
  }

  .process-node + .process-node {
    margin-left: 0;
  }

  .process-node + .process-node::before {
    top: -var(--space-4);
    right: 50%;
    width: 1px;
    height: var(--space-4);
    transform: none;
  }

  .process-node + .process-node::after {
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 48rem) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .problem-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .problem-cell:last-child {
    border-bottom: none;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .service-cell:last-child {
    border-bottom: none;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat-cell:last-child {
    border-bottom: none;
  }

  .fit-grid {
    grid-template-columns: 1fr;
  }

  .fit-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .founders-grid {
    grid-template-columns: 1fr;
  }

  .founder-cell:first-child {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .philosophy-cell:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 56rem) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: var(--space-3);
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .site-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ===== UTILITIES ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
