/* ==========================================================================
   GHERAS — Section-level layouts + Responsive Choreography (ALL BREAKPOINTS)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO — WebGL canvas + monumental cropped wordmark
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: clamp(3rem, 7vh, 6rem);
  overflow: hidden;
  isolation: isolate;
}

/* Layer 0 — image plate (parallax) */
.hero__plate {
  position: absolute;
  inset: -8% -4%;
  z-index: -3;
}
.hero__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.14) brightness(0.55);
  will-change: transform;
}
.hero__plate::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(3, 10, 18, 0.62) 0%,
      rgba(5, 16, 28, 0.34) 34%,
      rgba(3, 10, 18, 0.95) 100%
    ),
    radial-gradient(
      64% 56% at 14% 20%,
      rgba(15, 84, 57, 0.34),
      transparent 62%
    ),
    radial-gradient(
      58% 58% at 88% 10%,
      rgba(35, 82, 117, 0.46),
      transparent 65%
    );
}

/* Layer 1 — Three.js canvas */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Layer 2 — light shaft sweep */
.hero__shaft {
  position: absolute;
  inset: -30% -20%;
  z-index: -1;
  background: conic-gradient(
    from 210deg at 62% 12%,
    transparent 0deg,
    rgba(95, 217, 163, 0.1) 14deg,
    transparent 30deg,
    rgba(195, 213, 225, 0.07) 46deg,
    transparent 62deg
  );
  filter: blur(6px);
  animation: shaftSwing 18s var(--ease-in-out) infinite alternate;
  pointer-events: none;
}
@keyframes shaftSwing {
  from {
    transform: rotate(-4deg) translateY(0);
    opacity: 0.75;
  }
  to {
    transform: rotate(5deg) translateY(2%);
    opacity: 1;
  }
}

.hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

.hero__eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.6rem;
}

.hero__lede {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.42;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  max-width: 46rem;
}
.hero__meta .k {
  display: block;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.hero__meta .v {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--ink);
}

/* Monumental wordmark */
.hero__wordmark {
  position: relative;
  z-index: 2;
  margin-top: clamp(1rem, 4vh, 3rem);
  overflow: hidden;
  height: calc(var(--text-mono-huge) * 1.62);
}
.hero__wordmark .wordmark {
  display: block;
  transform: translateY(0%);
}

.hero .cards {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --------------------------------------------------------------------------
   2. PINNED NARRATIVE SLIDES
   -------------------------------------------------------------------------- */
.pinned {
  position: relative;
}
.pinned__viewport {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
}
.pinned__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding-top: calc(var(--header-h) + 1.5rem);
  padding-bottom: clamp(3rem, 7vh, 5.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.pinned__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pinned__slide-inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.pinned__slide-inner--split {
  grid-template-columns: 1.02fr 0.98fr;
}

.pinned__figure {
  position: relative;
}
.pinned__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1) brightness(0.7);
}
.pinned__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(63, 190, 134, 0.16),
    transparent 46%
  );
}

/* --------------------------------------------------------------------------
   3. HORIZONTAL PAN GALLERY
   -------------------------------------------------------------------------- */
.pan {
  position: relative;
}
.pan__viewport {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}
.pan__head {
  position: absolute;
  top: clamp(5.5rem, 14vh, 9rem);
  left: 0;
  right: 0;
  z-index: 4;
  pointer-events: none;
}
.pan__head .wordmark {
  font-size: clamp(2.6rem, 9vw, 4rem);
  white-space: nowrap;
}
.pan__track {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-inline: var(--shell-pad);
  width: max-content;
  will-change: transform;
}
.pan__card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(238px, 26vw, 372px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-deep);
  background: var(--navy-900);
}
.pan__card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1) brightness(0.65);
  transition:
    filter 900ms var(--ease-out),
    transform 900ms var(--ease-out);
  transform: scale(1.05);
}
.pan__card:hover img {
  filter: saturate(0.98) brightness(0.88);
  transform: scale(1);
}
.pan__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    200deg,
    rgba(3, 16, 26, 0.34),
    rgba(4, 33, 23, 0.24)
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}
.pan__card figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(0deg, rgba(3, 10, 18, 0.92), transparent);
}
.pan__card .t {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.15;
}
.pan__card .s {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pan__fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.pan__fog i {
  position: absolute;
  display: block;
  width: 60vw;
  height: 40vh;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.pan__fog i:nth-child(1) {
  top: -8%;
  left: -20%;
  background: radial-gradient(circle, rgba(35, 82, 117, 0.7), transparent 66%);
  animation: fogDrift 32s linear infinite;
}
.pan__fog i:nth-child(2) {
  bottom: -14%;
  right: -18%;
  background: radial-gradient(circle, rgba(15, 84, 57, 0.6), transparent 66%);
  animation: fogDrift 44s linear infinite reverse;
}
@keyframes fogDrift {
  from {
    transform: translateX(-6vw);
  }
  to {
    transform: translateX(10vw);
  }
}

/* --------------------------------------------------------------------------
   4. PAGE HERO (inner pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(5rem, 14vh, 10rem));
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
}
.page-hero__glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  aspect-ratio: 2 / 1;
  z-index: -1;
  background:
    radial-gradient(
      50% 60% at 30% 60%,
      rgba(15, 84, 57, 0.45),
      transparent 65%
    ),
    radial-gradient(
      48% 56% at 72% 40%,
      rgba(35, 82, 117, 0.55),
      transparent 66%
    );
  filter: blur(30px);
  pointer-events: none;
}
.page-hero__crumb {
  font-size: var(--text-xs);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-faint);
}
.page-hero__title {
  margin-top: var(--sp-4);
  font-size: var(--text-3xl);
  text-transform: uppercase;
  line-height: 0.96;
  max-width: 22ch;
}
.page-hero__media {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

/* --------------------------------------------------------------------------
   5. SECTION HEADS + SOLUTION BLOCKS
   -------------------------------------------------------------------------- */
.section-head {
  display: grid;
  gap: var(--sp-4);
  max-width: 62rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.5rem);
}
.section-head--split {
  grid-template-columns: 1fr auto;
  align-items: end;
  max-width: none;
}

.section-title {
  font-size: var(--text-2xl);
  line-height: 1.04;
  max-width: 30ch;
}
.section-title--upper {
  text-transform: uppercase;
}

.solution-block {
  position: relative;
  padding-top: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}
.solution__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}
.solution__index {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(63, 190, 134, 0.6);
}

.ref-group__head {
  display: grid;
  gap: var(--sp-3);
  margin-bottom: var(--sp-8);
}
.ref-group__index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--accent);
}

.rows--split {
  columns: 2;
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
}
.rows--split li {
  break-inside: avoid;
}

/* --------------------------------------------------------------------------
   6. STICKY COLUMN
   -------------------------------------------------------------------------- */
.sticky-col {
  position: sticky;
  top: calc(var(--header-h) + 3rem);
}

/* --------------------------------------------------------------------------
   7. CAROUSEL & STAGE
   -------------------------------------------------------------------------- */
.stage {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-deep);
  background: var(--navy-900);
}
.stage__viewport {
  position: relative;
  aspect-ratio: 4 / 3;
}
.stage__item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 900ms var(--ease-out),
    transform 1.4s var(--ease-out);
}
.stage__item.is-active {
  opacity: 1;
  transform: scale(1);
}
.stage__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1) brightness(0.56);
}
.stage__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(3, 10, 18, 0.94),
      rgba(3, 10, 18, 0.3) 62%,
      transparent 82%
    ),
    linear-gradient(200deg, rgba(63, 190, 134, 0.18), transparent 46%),
    linear-gradient(180deg, rgba(9, 24, 38, 0.42), transparent 40%);
}
.stage__caption {
  position: absolute;
  z-index: 3;
  left: clamp(1.2rem, 3vw, 2.2rem);
  bottom: clamp(1.2rem, 3vw, 2.2rem);
  right: clamp(1.2rem, 3vw, 2.2rem);
}
.stage__caption .t {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
}
.stage__caption .s {
  margin-top: 0.4rem;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  max-width: 44ch;
}
.stage__nav {
  position: absolute;
  z-index: 4;
  top: clamp(1rem, 2.5vw, 1.6rem);
  right: clamp(1rem, 2.5vw, 1.6rem);
  display: flex;
  gap: 0.5rem;
}
.stage__btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(5, 16, 28, 0.55);
  backdrop-filter: blur(10px);
  color: var(--ink-soft);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.stage__btn:hover {
  border-color: var(--line-accent);
  color: var(--accent-glow);
  background: rgba(10, 58, 41, 0.6);
}
.stage__btn svg {
  width: 15px;
  height: 15px;
}
.stage__dots {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 2px;
}
.stage__dots button {
  flex: 1;
  height: 3px;
  background: rgba(166, 188, 205, 0.2);
  transition: background var(--dur-fast) var(--ease-out);
}
.stage__dots button.is-active {
  background: var(--accent);
}

.catalogue {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}
.catalogue li {
  border-bottom: 1px solid var(--line);
}
.catalogue button {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.85rem, 2vw, 1.25rem) 0.2rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--ink-mute);
  transition:
    color var(--dur-fast) var(--ease-out),
    padding-left var(--dur-fast) var(--ease-out);
}
.catalogue button span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.catalogue button:hover {
  color: var(--ink);
  padding-left: 0.6rem;
}
.catalogue li.is-active button {
  color: var(--accent-glow);
  padding-left: 0.6rem;
}
.catalogue li.is-active button span {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   8. FOOTPRINT / MAP DIAGRAM
   -------------------------------------------------------------------------- */
.footprint {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(60% 70% at 30% 30%, rgba(15, 84, 57, 0.4), transparent 62%),
    radial-gradient(
      60% 70% at 74% 62%,
      rgba(35, 82, 117, 0.5),
      transparent 64%
    ),
    linear-gradient(160deg, var(--navy-800), var(--navy-1000));
  box-shadow: var(--shadow-deep);
}
.footprint__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(166, 188, 205, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(166, 188, 205, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(900px) rotateX(52deg) scale(1.6) translateY(12%);
  transform-origin: 50% 40%;
  mask-image: radial-gradient(60% 70% at 50% 45%, #000, transparent 82%);
  -webkit-mask-image: radial-gradient(
    60% 70% at 50% 45%,
    #000,
    transparent 82%
  );
}
.footprint__pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  display: grid;
  justify-items: center;
  gap: 0.05rem;
  margin-top: 8%;
}
.footprint__pin i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow:
    0 0 0 4px rgba(95, 217, 163, 0.2),
    0 0 22px rgba(95, 217, 163, 0.9);
  animation: pinPulse 2.8s var(--ease-in-out) infinite;
}
.footprint__pin b {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}
.footprint__pin s {
  text-decoration: none;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.footprint__pin:nth-child(2) i {
  animation-delay: 0.4s;
}
.footprint__pin:nth-child(3) i {
  animation-delay: 0.8s;
}
.footprint__pin:nth-child(4) i {
  animation-delay: 1.2s;
}
@keyframes pinPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(95, 217, 163, 0.18),
      0 0 20px rgba(95, 217, 163, 0.7);
  }
  50% {
    box-shadow:
      0 0 0 12px rgba(95, 217, 163, 0.04),
      0 0 34px rgba(95, 217, 163, 1);
  }
}

/* --------------------------------------------------------------------------
   9. PROCESS LADDER
   -------------------------------------------------------------------------- */
.ladder {
  border-top: 1px solid var(--line-strong);
}
.ladder__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: baseline;
  padding-block: clamp(1.1rem, 2.6vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease-out);
}
.ladder__row:hover {
  background: linear-gradient(90deg, rgba(43, 156, 109, 0.12), transparent 70%);
}
.ladder__pct {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.9;
  color: var(--accent);
}
.ladder__what {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}
.ladder__note {
  margin-top: 0.35rem;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  max-width: 52ch;
}

/* --------------------------------------------------------------------------
   10. SCROLL REVEAL UTILITIES & SPEC ROWS
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

[data-reveal="zoom"] {
  transform: scale(1.06);
  opacity: 0;
}
[data-reveal="zoom"].is-in {
  transform: scale(1);
  opacity: 1;
}

[data-reveal="mask"] {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.2s var(--ease-out);
}
[data-reveal="mask"].is-in {
  clip-path: inset(0 0 0% 0);
}

[data-reveal="right"] {
  transform: translateX(-30px);
}
[data-reveal="right"].is-in {
  transform: none;
}

.word-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.word-wrap > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.is-in .word-wrap > span,
.word-wrap.is-in > span {
  transform: none;
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 850ms var(--ease-out),
    transform 850ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 75ms);
}
[data-stagger].is-in > .stagger-item {
  opacity: 1;
  transform: none;
}

[data-parallax] {
  will-change: transform;
}

.rows .t {
  font-family: var(--font-display);
  font-size: var(--text-md);
  line-height: 1.2;
  color: var(--ink);
}
.rows .s {
  margin-top: 0.3rem;
  font-size: var(--text-sm);
  color: var(--ink-mute);
  max-width: 56ch;
}

.ref-group .frame img {
  filter: grayscale(0.42) saturate(0.72) contrast(1.04) brightness(0.68);
}
.ref-group .frame:hover img {
  filter: grayscale(0.1) saturate(0.95) contrast(1.02) brightness(0.86);
}
.ref-group .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    206deg,
    rgba(3, 14, 24, 0.46),
    rgba(4, 33, 23, 0.3) 62%,
    rgba(3, 10, 18, 0.5)
  );
  mix-blend-mode: multiply;
}

/* ==========================================================================
   12. COMPREHENSIVE RESPONSIVE BREAKPOINTS (ALL DEVICES)
   ========================================================================== */

/* --- A. Ultra-Wide Desktop ( > 1440px ) --- */
@media screen and (min-width: 1441px) {
  .hero__inner,
  .section-head {
    max-width: 90rem;
  }
  .pan__card {
    width: 420px;
  }
}

/* --- B. Large Desktop & Laptops ( 1025px – 1440px ) --- */
@media screen and (max-width: 1440px) {
  .hero__wordmark {
    height: calc(var(--text-mono-huge) * 1.4);
  }
}

/* --- C. Small Desktop & Laptops ( 769px – 1024px ) --- */
@media screen and (max-width: 1024px) {
  .sticky-col {
    position: static;
  }
  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .rows--split {
    columns: 1;
  }
  .footprint {
    aspect-ratio: 4 / 3;
  }
}

/* --- D. Tablet & Large Mobile ( 481px – 768px ) --- */
@media screen and (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-h) + 2rem);
    min-height: auto;
  }
  .hero__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .pinned__slide-inner--split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pinned__slide {
    align-items: start;
    padding-top: calc(var(--header-h) + 3rem);
    overflow-y: auto;
  }
  .pan__card {
    width: 280px;
  }
  .solution__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .ladder__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }
  .footprint {
    aspect-ratio: 1 / 1;
  }
  .footprint__pin b {
    font-size: var(--text-sm);
  }
  .footprint__pin s {
    font-size: 0.65rem;
  }
}

/* --- E. Mobile Devices ( <= 480px ) --- */
@media screen and (max-width: 480px) {
  .hero__meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .pan__track {
    gap: 1rem;
  }
  .pan__card {
    width: 240px;
  }
  .stage__viewport {
    aspect-ratio: 1 / 1;
  }
  .stage__caption .t {
    font-size: var(--text-lg);
  }
  .stage__caption .s {
    font-size: var(--text-xs);
  }
  .hero .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

/* --- F. Accessibility & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="zoom"],
  [data-reveal="mask"] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .word-wrap > span,
  .stagger-item {
    opacity: 1 !important;
    transform: none !important;
  }
  .rail__track,
  .ticker__inner,
  .hero__shaft,
  .pan__fog i {
    animation: none !important;
  }
}
/* ==========================================================================
   RECOVER & OVERRIDE ALL RESPONSIVE BREAKPOINTS (GLOBAL FIX)
   ========================================================================== */

/* اصلاح الهيدر العائم على كل الشاشات */
.site-header {
  width: calc(100% - (var(--shell-pad) * 2)) !important;
  max-width: 1000px !important;
}

/* إصلاح الأقسام الثابتة الـ Pinned في الشاشات الصغيرة والتلفون */
@media screen and (max-width: 900px) {
  .pinned__viewport,
  .pan__viewport {
    height: auto !important;
    min-height: 100vh;
    overflow: visible !important;
  }

  .pinned__slide {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    padding-top: calc(var(--header-h) + 1.5rem) !important;
  }

  .pan__track {
    flex-direction: column !important;
    width: 100% !important;
    transform: none !important;
  }

  .pan__card {
    width: 100% !important;
    max-width: 400px;
    margin: 0 auto;
  }

  .footprint {
    aspect-ratio: auto !important;
    min-height: 380px;
  }

  .footer-wordmark span {
    font-size: clamp(2rem, 10vw, 5rem) !important;
    margin-bottom: 1.5rem !important;
  }
}

/* الشاشات الكبيرة جداً وتلفزيونات 4K (Ultra-Wide Displays) */
@media screen and (min-width: 1441px) {
  .shell {
    max-width: 1400px !important;
  }

  .hero__inner,
  .section-head {
    max-width: 1200px !important;
  }
}

/* الهواتف الذكية الصغيرة جداً (Mobile <= 480px) */
@media screen and (max-width: 480px) {
  .hero {
    padding-top: calc(var(--header-h) + 1rem) !important;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .split {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 1.25rem !important;
  }
}
