/* ============================================================
   EXCLUSIVE AI — scroll-driven film site
   Look & feel adapted from the "Mycelial Net" world:
   500vh scroll shaft, fixed cross-fading chapters,
   scroll-scrubbed background film, particle canvas, SVG wipe.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: #17110b;
  overscroll-behavior-y: none;
}

.ex-root {
  position: relative;
  height: 880vh;
  background: #17110b;
  color: #f4efe4;
  font-family: "Space Grotesk", system-ui, sans-serif;
  overflow: clip;
  cursor: crosshair;

  --soil:   #17110B;
  --hypha:  #F4EFE4;
  --spore:  #9DBE6A;
  --signal: #E8641F;
}

.ex-root * { box-sizing: border-box; }

/* ---------- background film (scroll-scrubbed canvas) ---------- */
.ex-film {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

.ex-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 60%, transparent 40%, rgba(23, 17, 11, 0.7) 100%),
    linear-gradient(to bottom, rgba(23, 17, 11, 0.5), transparent 22%, transparent 75%, rgba(23, 17, 11, 0.75));
}

.ex-spore-canvas {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ex-wipe {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.ex-wipe path {
  fill: none;
  stroke: var(--hypha);
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(244, 239, 228, 0.5));
}

/* ---------- topbar ---------- */
.ex-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, rgba(23, 17, 11, 0.85), transparent);
}

.ex-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--hypha);
  flex: none;
}

.ex-brand-mark { width: 34px; height: 34px; flex: none; }

.ex-brand-name {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ex-brand-name em {
  display: block;
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--spore);
  margin-top: 0.2rem;
}

/* ---------- top nav ---------- */
.ex-topnav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.ex-topnav a {
  background: none;
  border: none;
  padding: 0;
  color: rgba(244, 239, 228, 0.72);
  font-family: inherit;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}

.ex-topnav a:hover,
.ex-topnav a:focus-visible { color: var(--spore); outline: none; }

.ex-topnav-cta {
  border: 1px solid rgba(232, 100, 31, 0.7) !important;
  color: var(--hypha) !important;
  padding: 0.6rem 1.1rem !important;
  clip-path: polygon(8% 0, 100% 0, 100% 70%, 92% 100%, 0 100%, 0 30%);
  transition: background 0.25s ease, color 0.25s ease;
}

.ex-topnav-cta:hover,
.ex-topnav-cta:focus-visible {
  background: var(--signal);
  color: var(--soil) !important;
}

/* ---------- progress meter ---------- */
.ex-colonized {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.75);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.ex-colonized-bar {
  width: 110px;
  height: 3px;
  background: rgba(244, 239, 228, 0.18);
  border-radius: 2px;
  overflow: hidden;
}

.ex-colonized-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--spore), var(--hypha));
  transform-origin: left;
  transform: scaleX(0);
}

.ex-colonized strong {
  color: var(--spore);
  font-weight: 500;
  min-width: 3.2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------- node nav ---------- */
.ex-nodes {
  position: fixed;
  left: 1.6rem;
  bottom: 1.8rem;
  z-index: 45;
}

.ex-nodes svg { display: block; overflow: visible; }

.ex-node-edge {
  stroke: rgba(157, 190, 106, 0.55);
  stroke-width: 1.2;
  fill: none;
}

.ex-node-btn { cursor: pointer; background: none; border: none; padding: 0; }

.ex-node-circle {
  fill: rgba(23, 17, 11, 0.8);
  stroke: rgba(244, 239, 228, 0.5);
  stroke-width: 1.2;
  transition: stroke 0.25s ease, fill 0.25s ease;
}

.ex-node-btn:hover .ex-node-circle,
.ex-node-btn:focus-visible .ex-node-circle { stroke: var(--hypha); outline: none; }

.ex-node-btn[aria-current="true"] .ex-node-circle {
  stroke: var(--spore);
  fill: rgba(157, 190, 106, 0.25);
}

.ex-node-dot { fill: var(--signal); opacity: 0; transition: opacity 0.25s ease; }
.ex-node-btn[aria-current="true"] .ex-node-dot { opacity: 1; }

.ex-node-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 7px;
  letter-spacing: 0.22em;
  fill: rgba(244, 239, 228, 0.65);
  text-transform: uppercase;
  pointer-events: none;
}

.ex-node-btn[aria-current="true"] .ex-node-label { fill: var(--hypha); }

/* ---------- chapters ---------- */
.ex-chapter {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  padding: 7rem 5vw 6rem 12rem;
}

.ex-chapter.is-active { pointer-events: auto; }

.ex-chapter--right {
  align-items: flex-end;
  text-align: right;
}

.ex-chapter--wide { padding: 6.5rem 5vw 5.5rem 12rem; }

.ex-wide-wrap {
  margin: auto;
  width: min(92vw, 1180px);
  max-height: 100%;
}

/* ---------- type ---------- */
.ex-kicker {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ex-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--signal);
}

.ex-chapter--right .ex-kicker { justify-content: flex-end; }
.ex-kicker--center { justify-content: center; }

.ex-headline {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 9vw, 7.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--hypha);
}

.ex-headline--md { font-size: clamp(2rem, 6.5vw, 5.4rem); }
.ex-headline--sm { font-size: clamp(1.7rem, 4.4vw, 3.4rem); }

.ex-headline .ex-frag { display: inline-block; will-change: transform, opacity; }

.ex-headline em {
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  color: var(--spore);
}

.ex-subcopy {
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: rgba(244, 239, 228, 0.85);
  max-width: 40ch;
  margin: 1.6rem 0 0;
}

.ex-subcopy--center { margin-left: auto; margin-right: auto; text-align: center; }

.ex-body {
  font-size: 0.82rem;
  line-height: 1.9;
  color: rgba(244, 239, 228, 0.78);
  max-width: 52ch;
  margin-top: 1.6rem;
}

.ex-chapter--right .ex-body { margin-left: auto; }

.ex-body--lead { margin: 1rem 0 2.4rem; }

/* ---------- CTAs ---------- */
.ex-cta-row {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.ex-cta-thread {
  pointer-events: auto;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--signal);
  padding: 0 0 0.5rem;
  color: var(--hypha);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, gap 0.25s ease;
}

.ex-cta-thread:hover,
.ex-cta-thread:focus-visible { color: var(--spore); gap: 1.3rem; outline: none; }

.ex-cta-specify {
  pointer-events: auto;
  display: inline-block;
  text-decoration: none;
  text-align: center;
  background: var(--signal);
  color: var(--soil);
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding: 1.1rem 2.4rem;
  cursor: pointer;
  clip-path: polygon(6% 0, 100% 0, 100% 76%, 94% 100%, 0 100%, 0 24%);
  transition: background 0.25s ease, transform 0.25s ease;
}

.ex-cta-specify:hover,
.ex-cta-specify:focus-visible {
  background: var(--spore);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- stats ---------- */
.ex-stat-row {
  display: flex;
  gap: 3rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}

.ex-chapter--right .ex-stat-row { justify-content: flex-end; }

.ex-stat-num {
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  color: var(--spore);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.ex-stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.6);
  margin-top: 0.5rem;
  display: block;
}

/* ---------- grids ---------- */
.ex-grid { display: grid; gap: 1px; }

.ex-grid--services { grid-template-columns: repeat(3, 1fr); background: rgba(244, 239, 228, 0.14); border: 1px solid rgba(244, 239, 228, 0.14); }

.ex-grid--process { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.ex-grid--quotes { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }

/* service card */
.ex-card {
  position: relative;
  background: rgba(23, 17, 11, 0.72);
  padding: 1.7rem 1.5rem 1.5rem;
  transition: background 0.3s ease;
}

.ex-card:hover { background: rgba(157, 190, 106, 0.09); }

.ex-card-idx {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--signal);
  letter-spacing: 0.1em;
}

.ex-card h3 {
  margin: 0.6rem 0 0.7rem;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hypha);
}

.ex-card p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.7);
}

.ex-card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--spore);
}

.ex-card-more em { font-style: normal; transition: transform 0.25s ease; display: inline-block; }
.ex-card:hover .ex-card-more em { transform: translateX(5px); }

/* process step */
.ex-step { border-top: 1px solid rgba(232, 100, 31, 0.5); padding-top: 1rem; }

.ex-step-num {
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 2.2rem;
  color: var(--spore);
  line-height: 1;
  display: block;
}

.ex-step h3 {
  margin: 0.7rem 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ex-step p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.68);
}

.ex-process-note {
  font-family: Fraunces, serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.8);
  max-width: 62ch;
  margin: 2.4rem 0 1.4rem;
}

/* work tile */
.ex-grid--work { grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }

.ex-work {
  position: relative;
  background: #12100d;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem 0.95rem 0.9rem;
  isolation: isolate;
}

.ex-work img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(0.55) brightness(0.5) sepia(0.28);
  transform: scale(1.02);
  transition: filter 0.45s ease, transform 0.6s ease;
}

.ex-work::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(23, 17, 11, 0.92) 8%, rgba(23, 17, 11, 0.35) 55%, rgba(23, 17, 11, 0.15));
  transition: background 0.45s ease;
}

.ex-work:hover img,
.ex-work:focus-within img { filter: grayscale(0) brightness(0.72) sepia(0.05); transform: scale(1.06); }

.ex-work:hover::after,
.ex-work:focus-within::after { background: linear-gradient(to top, rgba(23, 17, 11, 0.9) 5%, rgba(232, 100, 31, 0.18) 60%, transparent); }

.ex-work > span,
.ex-work > h3 { position: relative; z-index: 2; }

.ex-work-tag {
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--signal);
}

.ex-work h3 {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--hypha);
  line-height: 1.25;
}

/* FAQ */
.ex-faq {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(244, 239, 228, 0.14);
  border: 1px solid rgba(244, 239, 228, 0.14);
  margin-top: 1.8rem;
}

.ex-faq-item { background: rgba(23, 17, 11, 0.75); padding: 1.4rem 1.4rem 1.3rem; }

.ex-faq-item h3 {
  margin: 0 0 0.7rem;
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--spore);
  letter-spacing: 0.01em;
}

.ex-faq-item p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.75);
}

/* quotes */
.ex-quote {
  margin: 0;
  border: 1px solid rgba(244, 239, 228, 0.16);
  background: rgba(23, 17, 11, 0.7);
  padding: 1.6rem 1.4rem 1.3rem;
}

.ex-quote blockquote {
  margin: 0 0 1.3rem;
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(244, 239, 228, 0.9);
}

.ex-quote figcaption { display: flex; align-items: center; gap: 0.8rem; }

.ex-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(157, 190, 106, 0.5);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--spore);
}

.ex-quote figcaption strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hypha);
}

.ex-quote figcaption span span,
.ex-quote figcaption > span:last-child {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.55);
  line-height: 1.9;
}

/* ---------- climax ---------- */
.ex-climax {
  padding-bottom: 8.5rem;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  text-align: center;
  background: linear-gradient(to bottom, rgba(23, 17, 11, 0.35), rgba(23, 17, 11, 0.92) 70%);
}

.ex-climax .ex-headline { text-align: center; }

.ex-climax-cta-row {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
}

.ex-sporeprint { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin: 0; }

.ex-sporeprint canvas {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 1px solid rgba(157, 190, 106, 0.4);
  background: rgba(23, 17, 11, 0.7);
}

.ex-sporeprint figcaption {
  font-size: 0.52rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.5);
}

/* ---------- footer ---------- */
.ex-footer {
  width: min(92vw, 1100px);
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
  text-align: left;
}

.ex-footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.ex-footer-brand strong {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--hypha);
  display: block;
}

.ex-footer-brand em {
  display: block;
  font-family: Fraunces, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--spore);
  margin-top: 0.2rem;
}

.ex-footer-brand p {
  margin: 0.8rem 0 0;
  font-size: 0.68rem;
  line-height: 1.85;
  color: rgba(244, 239, 228, 0.6);
  max-width: 46ch;
}

.ex-footer h4 {
  margin: 0 0 0.8rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
}

.ex-footer ul { list-style: none; margin: 0; padding: 0; }
.ex-footer li { margin-bottom: 0.5rem; }

.ex-footer a {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.6);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ex-footer a:hover,
.ex-footer a:focus-visible { color: var(--spore); outline: none; }

.ex-footer-legal {
  margin: 1.4rem 0 0;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.42);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ex-footer-legal span { color: var(--spore); }

/* ---------- tour control ---------- */
.ex-tour {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1.8rem;
  z-index: 46;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  border: 1px solid rgba(244, 239, 228, 0.22);
  border-radius: 999px;
  background: rgba(23, 17, 11, 0.7);
  backdrop-filter: blur(6px);
}

.ex-tour-btn,
.ex-tour-speed {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.85);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.ex-tour-btn:hover,
.ex-tour-speed:hover,
.ex-tour-btn:focus-visible,
.ex-tour-speed:focus-visible { color: var(--spore); outline: none; }

.ex-tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--spore);
}

.ex-tour-btn[aria-pressed="true"] .ex-tour-dot { background: var(--signal); border-color: var(--signal); }

.ex-tour-pct {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 228, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
}

.ex-tour-speed {
  border: 1px solid rgba(244, 239, 228, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  letter-spacing: 0.1em;
}

/* ---------- corner links ---------- */
.ex-links {
  position: fixed;
  right: 1.6rem;
  bottom: 1.8rem;
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ex-links a {
  color: rgba(244, 239, 228, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ex-links a:hover,
.ex-links a:focus-visible { color: var(--spore); outline: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .ex-topnav { display: none; }
  .ex-grid--services { grid-template-columns: repeat(2, 1fr); }
  .ex-grid--work { grid-template-columns: repeat(3, 1fr); }
  .ex-faq { grid-template-columns: 1fr; }
  .ex-faq-item:nth-child(n + 5) { display: none; }
  .ex-grid--process { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
  .ex-grid--quotes { grid-template-columns: 1fr; }
  .ex-grid--quotes .ex-quote:nth-child(n + 3) { display: none; }
}

@media (max-width: 820px) {
  .ex-root { cursor: auto; }
  .ex-topbar { padding: 0.9rem 1rem; }
  .ex-colonized-bar { width: 64px; }
  .ex-colonized span:first-child { display: none; }
  .ex-chapter { padding: 6rem 7vw 7rem; }
  .ex-chapter--wide { padding: 5.5rem 6vw 7rem; }
  .ex-chapter--right { text-align: left; align-items: flex-start; }
  .ex-chapter--right .ex-kicker { justify-content: flex-start; }
  .ex-chapter--right .ex-stat-row { justify-content: flex-start; }
  .ex-chapter--right .ex-body { margin-left: 0; }
  .ex-grid--services { grid-template-columns: 1fr; }
  .ex-grid--work { grid-template-columns: repeat(2, 1fr); }
  .ex-grid--services .ex-card:nth-child(n + 4) { display: none; }
  .ex-grid--work .ex-work:nth-child(n + 7) { display: none; }
  .ex-faq-item:nth-child(n + 4) { display: none; }
  .ex-stat-row { gap: 1.8rem; }
  .ex-nodes { left: 0.8rem; bottom: 1rem; transform: scale(0.82); transform-origin: left bottom; }
  .ex-links { display: none; }
  .ex-tour { bottom: 1rem; gap: 0.7rem; padding: 0.5rem 0.5rem 0.5rem 0.9rem; }
  .ex-tour-btn, .ex-tour-speed { font-size: 0.5rem; letter-spacing: 0.2em; }
  .ex-footer-cols { grid-template-columns: 1fr; gap: 1.4rem; }
  .ex-footer { margin-top: 1.8rem; }
  .ex-climax-cta-row { gap: 1.4rem; }
  .ex-sporeprint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-root { cursor: auto; }
  .ex-frag { transform: none !important; opacity: 1 !important; }
  .ex-wipe { display: none; }
  .ex-spore-canvas { display: none; }
}

/* ============================================================
   CRAWLABLE / NO-JS BASELINE
   The cinematic layer relies on fixed, opacity-0 chapters. Any
   crawler (or user) without JS must still get the full document,
   fully visible, in normal flow — identical content, no cloaking.
   ============================================================ */
html:not(.js-on) .ex-root {
  height: auto;
  overflow: visible;
  cursor: auto;
}

html:not(.js-on) .ex-film,
html:not(.js-on) .ex-vignette,
html:not(.js-on) .ex-spore-canvas,
html:not(.js-on) .ex-wipe,
html:not(.js-on) .ex-nodes,
html:not(.js-on) .ex-tour,
html:not(.js-on) .ex-links,
html:not(.js-on) .ex-colonized,
html:not(.js-on) .ex-sporeprint {
  display: none;
}

html:not(.js-on) .ex-topbar {
  position: static;
  flex-wrap: wrap;
  background: rgba(23, 17, 11, 0.96);
  border-bottom: 1px solid rgba(244, 239, 228, 0.14);
}

html:not(.js-on) .ex-topnav { display: flex; }

html:not(.js-on) .ex-chapter {
  position: static;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 4rem 6vw;
  border-bottom: 1px solid rgba(244, 239, 228, 0.1);
  min-height: 0;
}

html:not(.js-on) .ex-chapter--right { align-items: flex-start; text-align: left; }
html:not(.js-on) .ex-chapter--right .ex-kicker,
html:not(.js-on) .ex-chapter--right .ex-stat-row { justify-content: flex-start; }
html:not(.js-on) .ex-chapter--right .ex-body { margin-left: 0; }

html:not(.js-on) .ex-climax { background: none; }
html:not(.js-on) .ex-footer { width: auto; padding: 3rem 6vw; margin-top: 0; }
html:not(.js-on) .ex-grid--work { grid-template-columns: repeat(3, 1fr); }

/* ---------- JS layer: standalone footer rides with the contact chapter ---------- */
.js-on .ex-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12;
  width: 100%;
  margin: 0;
  padding: 1.6rem 5vw 6.5rem;
  background: linear-gradient(to bottom, transparent, rgba(23, 17, 11, 0.92) 22%);
  border-top: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.js-on .ex-footer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.js-on .ex-footer-cols {
  width: min(92vw, 1100px);
  margin: 0 auto;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.js-on .ex-footer-legal { width: min(92vw, 1100px); margin: 1.2rem auto 0; }

/* footer nav headings are h2 for document outline; keep the small-label look */
.ex-footer h2 {
  margin: 0 0 0.8rem;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--signal);
}

@media (max-width: 820px) {
  .js-on .ex-footer { padding: 1.2rem 6vw 5.5rem; }
  html:not(.js-on) .ex-grid--work { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FIT GUARDS
   Chapters are viewport-locked in JS mode, so tall blocks need
   a floor. The full markup always stays in the DOM for crawlers
   and for the no-JS document view.
   ============================================================ */

/* JS mode: footer collapses to a compact legal strip. The company
   links are already in the top nav and the node rail, so only the
   brand line and the legal links need to stay reachable here. */
.js-on .ex-footer { padding: 1rem 5vw 5.6rem; }
.js-on .ex-footer-brand p,
.js-on .ex-footer nav[aria-label="Company"] { display: none; }

.js-on .ex-footer-cols {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
}

.js-on .ex-footer nav[aria-label="Legal"] { display: flex; align-items: baseline; gap: 1.4rem; }
.js-on .ex-footer nav[aria-label="Legal"] h2 { margin: 0; }
.js-on .ex-footer nav[aria-label="Legal"] ul { display: flex; gap: 1.4rem; }
.js-on .ex-footer nav[aria-label="Legal"] li { margin: 0; }
.js-on .ex-footer-legal { margin-top: 0.8rem; }

/* Short viewports: thin the densest grids so nothing clips out of
   a locked chapter. Hidden items remain in the sitemap and schema. */
@media (max-height: 860px) {
  .js-on .ex-grid--work .ex-work:nth-child(n + 9) { display: none; }
  .js-on .ex-faq-item:nth-child(n + 5) { display: none; }
}

@media (max-height: 680px) {
  .js-on .ex-grid--work .ex-work:nth-child(n + 5) { display: none; }
  .js-on .ex-faq-item:nth-child(n + 3) { display: none; }
  .js-on .ex-grid--services .ex-card:nth-child(n + 5) { display: none; }
  .js-on .ex-footer { padding-bottom: 4.6rem; }
  .js-on .ex-footer-brand strong { font-size: 0.62rem; }
}

@media (max-height: 560px) {
  .js-on .ex-sporeprint { display: none; }
  .js-on .ex-grid--work .ex-work:nth-child(n + 4) { display: none; }
  .js-on .ex-process-note { display: none; }
}
