/* printr. / style.css — Art directed design system for 3D plastic manufacturing
   Strict tasteskill v2 compliance: 2-line headlines, 5 canonical type sizes, no shadows at rest, no gradients, no thin rules */

:root {
  /* Brand Guidelines Paleta de Colores */
  --color-dark: #0D1B2A;       /* Azul Oscuro: Dominante, profesionalismo, estabilidad */
  --color-accent: #6EC1F4;     /* Azul Principal: Tecnología, confianza, creatividad */
  --color-accent-ink: #0D1B2A; /* Contraste sobre azul principal */
  --color-gray-med: #687280;   /* Gris Medio: Neutralidad */
  --color-gray-light: #F2F4F7; /* Gris Claro: Fondos alternos y contraste */
  --color-white: #FFFFFF;      /* Blanco puro */
  --color-chamber: #070E17;    /* Fondo de cámara técnica de impresión */

  /* Default chapter roles */
  --bg: var(--color-dark);
  --surface: #142436;
  --ink: var(--color-white);
  --muted: #8E9BAA;
  --accent: var(--color-accent);
  --accent-ink: var(--color-accent-ink);
  --header-ink: var(--color-white);

  /* Typography */
  --font-display: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-text: "Source Serif 4", Georgia, serif;
  --font-tech: "Libre Franklin", -apple-system, BlinkMacSystemFont, sans-serif;

  /* 5 Canonical fluid type steps */
  --step-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem); /* ~13-14px */
  --step-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);       /* ~16-18px */
  --step-lead: clamp(1.2rem, 1.1rem + 0.5vw, 1.375rem);       /* ~20-22px */
  --step-head: clamp(1.85rem, 1.4rem + 2vw, 2.75rem);         /* ~30-44px */
  --step-display: clamp(2.4rem, 1.6rem + 3.8vw, 4.5rem);      /* ~38-72px */

  /* Layout */
  --margin: clamp(1.25rem, 3.5vw, 3.5rem);
  --gutter: clamp(1rem, 2vw, 2.5rem);
  --radius: 0px;

  /* Motion tokens */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --t-press: 120ms;
  --t-hover: 180ms;
  --t-ui: 280ms;
  --t-reveal: 650ms;
}

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

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

body {
  margin: 0;
  background-color: var(--color-dark);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

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

img, video {
  height: auto;
  background-color: var(--surface);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

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

::selection {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

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

/* Typography elements */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
  hyphens: none;
}

/* Strict House Rule: Headlines are TWO LINES OR FEWER at every viewport (1440, 768, 390) */
.hero-title {
  font-size: var(--step-display);
  line-height: 0.96;
  max-width: 14ch;
  color: var(--color-white);
}

.chapter-title {
  font-size: var(--step-head);
  line-height: 1.04;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-family: var(--font-text);
  font-size: var(--step-lead);
  line-height: 1.4;
  max-width: 44ch;
  color: #D6DEE7;
}

.lead {
  font-family: var(--font-text);
  font-size: var(--step-lead);
  line-height: 1.45;
  max-width: 52ch;
}

p {
  max-width: 58ch;
}

.small {
  font-family: var(--font-tech);
  font-size: var(--step-small);
  line-height: 1.4;
}

.muted {
  color: var(--muted);
}

.nums {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-tech);
}

/* Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.8rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--step-body);
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn-accent:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

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

.btn-dark:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.channel-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.channel-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #172738;
  color: var(--color-accent);
}

.channel-icon-badge svg {
  width: 1.35rem;
  height: 1.35rem;
}

.channel-card-primary .channel-icon-badge {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.social-links-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.5rem;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: #142436;
  color: var(--color-white);
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.social-link-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.social-link-btn:active {
  transform: scale(0.95);
}

.social-link-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Layout Utilities */
.wrap {
  padding-inline: var(--margin);
  width: 100%;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

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

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem var(--margin);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--header-ink);
  transition: color 250ms ease;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.brand-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
}

.brand-dot {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-tech);
  font-weight: 600;
  font-size: var(--step-small);
}

.nav-link {
  position: relative;
  transition: opacity var(--t-hover) ease;
}

.nav-link:hover {
  opacity: 0.7;
}

.header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: var(--step-small);
  padding: 0.65rem 1.2rem;
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 260ms ease,
              background-color var(--t-hover) ease;
}

/* Oculto y retraído hacia arriba cuando se está en el Hero */
.js .header-action {
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
}

/* Baja y se hace visible con animación fluida al scrolear a otras secciones */
.js .header-action.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-action svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.header-action:hover {
  background-color: var(--color-white);
}

.header-action:active {
  transform: scale(0.96);
}

.js .header-action.is-visible:active {
  transform: translateY(0) scale(0.96);
}

.header-action-label-short {
  display: none;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.75rem;
}

.footer-cta-actions .social-links-row {
  margin-top: 0;
}

/* Chapter Base */
.chapter {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6rem, 9vw, 8.5rem);
  padding-bottom: clamp(4rem, 6vw, 6rem);
}

/* Chapter 1: Hero */
.chapter-hero {
  min-height: 100svh;
  padding-block: 0;
  background-color: var(--color-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 140px;
  min-height: 100svh;
}

.hero-main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(6.5rem, 11vw, 8.5rem) var(--margin) clamp(2.5rem, 5vw, 4rem);
  background-color: var(--color-dark);
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 27, 42, 0.78);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.hero-footer-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
}

.hero-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-tech);
}

.hero-spec-item strong {
  display: block;
  font-size: var(--step-lead);
  color: var(--color-accent);
}

.hero-spec-item span {
  font-size: var(--step-small);
  color: #A0B0C0;
}

/* Swatch Column */
.hero-swatch-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
}

.swatch-item {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 1rem 0.9rem;
  font-family: var(--font-tech);
  font-size: var(--step-small);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--t-ui) var(--ease-out), filter var(--t-hover) ease;
}

.swatch-item:hover {
  filter: brightness(1.12);
  transform: translateX(-4px);
}

.swatch-1 { background-color: var(--color-dark); color: var(--color-white); }
.swatch-2 { background-color: var(--color-gray-light); color: var(--color-dark); }
.swatch-3 { background-color: var(--color-chamber); color: var(--color-white); }
.swatch-4 { background-color: var(--color-dark); color: var(--color-white); }
.swatch-5 { background-color: var(--color-accent); color: var(--color-dark); }

/* Chapter 2: Material Lab (Editorial Specimen List - avoids generic card rows) */
.chapter-materials {
  background-color: var(--color-gray-light);
  color: var(--color-dark);
}

.material-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2rem;
}

.material-selector {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.material-tab {
  text-align: left;
  padding: 1rem 1.35rem;
  background-color: transparent;
  border-left: 3px solid #D2D8DF;
  transition: background-color var(--t-ui) ease, border-color var(--t-ui) ease, color var(--t-ui) ease;
}

.material-tab.active {
  background-color: var(--color-white);
  border-left-color: var(--color-accent);
  color: var(--color-dark);
}

.material-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.material-name {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
}

.material-desc {
  font-size: var(--step-body);
  line-height: 1.45;
  color: inherit;
  opacity: 0.88;
}

.material-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  background-color: var(--color-white);
  padding: 1.25rem;
}

.metric-unit span {
  display: block;
  font-family: var(--font-tech);
  font-size: var(--step-small);
  color: var(--color-gray-med);
}

.metric-unit strong {
  font-family: var(--font-tech);
  font-size: var(--step-lead);
  color: var(--color-dark);
}

.material-display-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #E2E6EB;
}

.material-display-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease, transform 600ms var(--ease-out);
}

/* Chapter: Canales de Cotización (#070E17) */
.chapter-channels {
  background-color: var(--color-chamber);
  color: var(--color-white);
}

.channels-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
  align-items: stretch;
}

.channel-card-primary {
  background-color: #111E2E;
  border-left: 4px solid var(--color-accent);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.channel-card-primary:hover {
  background-color: #16273B;
}

.channel-card-primary:active {
  transform: scale(0.98);
}

.channel-stack-secondary {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.channel-card-sub {
  background-color: #101B27;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  text-decoration: none;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}

.channel-card-sub:hover {
  background-color: #16273B;
}

.channel-card-sub:active {
  transform: scale(0.98);
}

.channel-type {
  font-family: var(--font-tech);
  font-size: var(--step-small);
  color: var(--color-accent);
  font-weight: 700;
}

.channel-name {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: var(--color-white);
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.channel-desc {
  font-size: var(--step-body);
  line-height: 1.45;
  color: #9AA8B7;
}

.channel-action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-family: var(--font-tech);
  font-size: var(--step-body);
  font-weight: 700;
  color: var(--color-accent);
}

/* Chapter 4: How It Works Accordion */
.chapter-process {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.process-accordion {
  display: flex;
  gap: 1rem;
  height: 480px;
  margin-top: 2.5rem;
}

.process-stage {
  flex: 1;
  background-color: #132436;
  padding: 2rem;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: flex 450ms var(--ease-out), background-color 300ms ease;
}

.process-stage.active {
  flex: 3;
  background-color: #182F48;
}

.stage-header-vertical {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
}

.stage-body {
  margin-top: 1rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 300ms ease;
}

.process-stage.active .stage-body {
  opacity: 1;
  max-height: 400px;
}

.stage-name-large {
  font-family: var(--font-display);
  font-size: var(--step-head);
  line-height: 1.05;
  margin-bottom: 0.75rem;
  white-space: nowrap;
}

.stage-detail {
  font-size: var(--step-body);
  line-height: 1.5;
  color: #D2DEEA;
  max-width: 46ch;
}

/* Chapter 5: Stats Tiles */
.chapter-stats {
  background-color: var(--color-gray-light);
  color: var(--color-dark);
}

.stats-stepped-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
  align-items: stretch;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
}

.stat-tile-1 {
  grid-column: span 6;
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  min-height: 340px;
}

.stat-tile-2 {
  grid-column: span 3;
  background-color: var(--color-dark);
  color: var(--color-white);
  min-height: 340px;
}

.stat-tile-3 {
  grid-column: span 3;
  background-color: var(--color-white);
  color: var(--color-dark);
  min-height: 340px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.stat-label {
  font-family: var(--font-tech);
  font-size: var(--step-body);
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Chapter 6: Muestras Galería (Grid 2x2 para las 4 piezas) */
.chapter-gallery {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.gallery-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.gallery-card {
  background-color: #132436;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-photo-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #0B1622;
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}

.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-meta {
  padding: 1.5rem;
  background-color: #132436;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: var(--step-lead);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gallery-desc {
  font-size: var(--step-small);
  color: #9AA8B7;
  line-height: 1.45;
}

/* Chapter 7: CTA Giant Band */
.chapter-cta-band {
  background-color: var(--color-accent);
  color: var(--color-accent-ink);
  min-height: 56svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(4rem, 7vw, 6rem) var(--margin) clamp(2.5rem, 5vw, 4rem);
  cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}

.chapter-cta-band:hover {
  background-color: var(--color-white);
  color: var(--color-dark);
}

.cta-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.cta-subtext {
  font-family: var(--font-tech);
  font-size: var(--step-lead);
  font-weight: 700;
  max-width: 46ch;
}

.cta-giant-word {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  margin-top: 1.5rem;
}

/* Chapter 8: Footer */
.site-footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: clamp(3.5rem, 6vw, 6rem) var(--margin) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 75svh;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: var(--step-display);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: #192D44;
  user-select: none;
}

.footer-main-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

.footer-contact-title {
  font-family: var(--font-display);
  font-size: var(--step-head);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.footer-link-group h4 {
  font-family: var(--font-tech);
  font-size: var(--step-body);
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--color-accent);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-tech);
  font-size: var(--step-body);
}

.credits-block {
  margin-top: 3rem;
  font-size: var(--step-small);
  color: #7E8D9E;
  line-height: 1.55;
  max-width: 85ch;
}

.credits-block a {
  text-decoration: underline;
  color: inherit;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-family: var(--font-tech);
  font-size: var(--step-small);
  color: #7E8D9E;
}

/* Motion helpers */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Layout Intelligence */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-main {
    min-height: 100svh;
    padding: clamp(5rem, 8vw, 6.5rem) var(--margin) clamp(2.5rem, 4vw, 3.5rem);
  }

  .hero-footer-row {
    margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  }

  .hero-swatch-column {
    display: none;
  }

  .site-nav .nav-links {
    display: none;
  }

  .chapter {
    min-height: auto;
    justify-content: flex-start;
    padding-top: clamp(5.5rem, 10vw, 7rem);
    padding-bottom: clamp(3.5rem, 6vw, 4.5rem);
    scroll-margin-top: 4.5rem;
  }

  .material-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .process-accordion {
    flex-direction: column;
    height: auto;
    gap: 0.85rem;
  }

  .process-stage {
    min-height: auto;
    padding: 1.5rem;
  }

  .process-stage.active {
    flex: none;
  }

  .stage-name-large {
    white-space: normal;
  }

  .stats-stepped-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-tile-1, .stat-tile-2, .stat-tile-3 {
    grid-column: span 1;
    min-height: auto;
    padding: 2rem 1.75rem;
  }

  .channels-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .chapter-cta-band {
    min-height: auto;
    padding: clamp(3.5rem, 7vw, 5rem) var(--margin) clamp(2.5rem, 5vw, 3.5rem);
  }

  .cta-top-row {
    flex-direction: column;
    gap: 0.85rem;
    align-items: flex-start;
  }

  .site-footer {
    min-height: auto;
    padding-top: clamp(5rem, 9vw, 6.5rem);
    padding-bottom: 2.5rem;
  }

  .footer-main-row {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem var(--margin);
  }

  .brand-logo {
    font-size: 1.45rem;
  }

  .header-action {
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
  }

  .header-action-label-full {
    display: none;
  }

  .header-action-label-short {
    display: inline;
  }

  .hero-main {
    padding-top: 5.5rem;
    padding-bottom: 2.5rem;
    min-height: 85svh;
  }

  .hero-footer-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero-footer-row .btn {
    width: 100%;
  }

  .hero-spec-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 0.75rem;
    width: 100%;
  }

  .material-tab {
    padding: 1.25rem 1rem;
  }

  .channel-card-primary {
    padding: 1.75rem 1.25rem;
  }

  .channel-card-sub {
    padding: 1.5rem 1.25rem;
  }

  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-cta-actions .btn {
    width: 100%;
  }

  .footer-cta-actions .social-links-row {
    justify-content: flex-start;
  }

  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }
}

@media (max-width: 380px) {
  .hero-spec-strip {
    grid-template-columns: 1fr;
  }

  .material-metrics-grid {
    grid-template-columns: 1fr;
  }
}
