/* ==========================================================================
   Archive J (archive-j.com) — v5 Editorial Restraint & Full-Bleed Scrollytelling
   + Integrated Zettelkasten Diverge <-> Converge Architecture
   - Zero Split-Box on Mobile / Zero 2-Column Diagram Split on Desktop
   - Ironclad Sticky Ancestor Purity: ZERO overflow/transform/perspective/
     filter/backdrop-filter/contain on html, body, main#main-content, .story-act
   - True preserve-3d Depth: ZERO opacity<1, filter, or overflow:hidden on
     .act-kinetic-rig, .k-stage-box, or .k-deck (leaf opacity ONLY)
   - Verified WCAG AAA (>= 7.0:1) Per-Act Directional Scrims
   ========================================================================== */

:root {
  /* Scrubbed Motion Custom Properties (Poised No-JS Static Defaults) */
  --scroll-p: 0;
  --p0: 0.72;
  --p1: 0.78;
  --p2: 0.62;
  --order2: 0;
  --fan2: 0.45;
  --p3: 0.88;
  --o1: 1;
  --o2: 1;
  --o3: 1;
  --epilogue-p: 1;
  --tilt-x: 0;
  --tilt-y: 0;
  --rig-scale: 0.94;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Easing & Layout Geometry */
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1240px;
  --header-h: 68px;

  /* Global Chrome Atmosphere 00: Origin Obsidian & Brass (WCAG AAA) */
  --atmo-bg: #141311;
  --atmo-surface: #1D1B18;
  --atmo-surface-2: rgba(247, 243, 235, 0.055);
  --atmo-ink: #F7F3EB;
  --atmo-ink-2: #D4CDC0;
  --atmo-accent: #EAC083;
  --atmo-accent-soft: rgba(234, 192, 131, 0.16);
  --atmo-cta-bg: #E0AC69;
  --atmo-cta-ink: #141311;
  --atmo-border: rgba(247, 243, 235, 0.16);
  --atmo-border-strong: rgba(234, 192, 131, 0.48);

  --header-bg: rgba(16, 15, 13, 0.84);
  --header-border: rgba(247, 243, 235, 0.12);
  --rail-bg: rgba(16, 15, 13, 0.62);
  --rail-border: rgba(247, 243, 235, 0.16);
  --rail-pip: rgba(247, 243, 235, 0.44);
}

/* Global Chrome Atmosphere 01: Dark Sage Cinema (YouTube) */
html[data-atmosphere="media"] {
  --atmo-bg: #0F1412;
  --atmo-surface: #17201C;
  --atmo-surface-2: rgba(156, 224, 172, 0.08);
  --atmo-ink: #F3F6F3;
  --atmo-ink-2: #C6D3CA;
  --atmo-accent: #9CE0AC;
  --atmo-accent-soft: rgba(156, 224, 172, 0.16);
  --atmo-cta-bg: #88CC98;
  --atmo-cta-ink: #0E1611;
  --atmo-border: rgba(243, 246, 243, 0.16);
  --atmo-border-strong: rgba(156, 224, 172, 0.48);

  --header-bg: rgba(15, 20, 18, 0.86);
  --header-border: rgba(156, 224, 172, 0.16);
  --rail-bg: rgba(15, 20, 18, 0.68);
  --rail-border: rgba(156, 224, 172, 0.22);
  --rail-pip: rgba(243, 246, 243, 0.44);
}

/* Global Chrome Atmosphere 02: Warm Sunlit Paper (결 아카이브) */
html[data-atmosphere="goods"] {
  --atmo-bg: #FAF6EE;
  --atmo-surface: #F2ECE0;
  --atmo-surface-2: rgba(92, 56, 14, 0.07);
  --atmo-ink: #181614;
  --atmo-ink-2: #3D3730;
  --atmo-accent: #5C380E;
  --atmo-accent-soft: rgba(92, 56, 14, 0.12);
  --atmo-cta-bg: #1E1D1B;
  --atmo-cta-ink: #FAF6EE;
  --atmo-border: rgba(24, 22, 20, 0.16);
  --atmo-border-strong: rgba(92, 56, 14, 0.42);

  --header-bg: rgba(250, 246, 238, 0.9);
  --header-border: rgba(24, 22, 20, 0.12);
  --rail-bg: rgba(250, 246, 238, 0.84);
  --rail-border: rgba(24, 22, 20, 0.14);
  --rail-pip: rgba(24, 22, 20, 0.36);
}

/* Global Chrome Atmosphere 03: Daylight Sky Studio (KidsTimeQuiz) */
html[data-atmosphere="apps"] {
  --atmo-bg: #F3F8FD;
  --atmo-surface: #E7F1FB;
  --atmo-surface-2: rgba(18, 68, 143, 0.07);
  --atmo-ink: #0F1D30;
  --atmo-ink-2: #2D4059;
  --atmo-accent: #12448F;
  --atmo-accent-soft: rgba(18, 68, 143, 0.12);
  --atmo-cta-bg: #154DA0;
  --atmo-cta-ink: #FFFFFF;
  --atmo-border: rgba(15, 29, 48, 0.16);
  --atmo-border-strong: rgba(18, 68, 143, 0.4);

  --header-bg: rgba(243, 248, 253, 0.9);
  --header-border: rgba(15, 29, 48, 0.12);
  --rail-bg: rgba(243, 248, 253, 0.84);
  --rail-border: rgba(15, 29, 48, 0.14);
  --rail-pip: rgba(15, 29, 48, 0.34);
}

/* Global Chrome Atmosphere 04: Canopy Epilogue (Return to Obsidian Soil) */
html[data-atmosphere="canopy"] {
  --atmo-bg: #141311;
  --atmo-surface: #1D1B18;
  --atmo-surface-2: rgba(247, 243, 235, 0.055);
  --atmo-ink: #F7F3EB;
  --atmo-ink-2: #D4CDC0;
  --atmo-accent: #EAC083;
  --atmo-accent-soft: rgba(234, 192, 131, 0.16);
  --atmo-cta-bg: #E0AC69;
  --atmo-cta-ink: #141311;
  --atmo-border: rgba(247, 243, 235, 0.16);
  --atmo-border-strong: rgba(234, 192, 131, 0.48);

  --header-bg: rgba(16, 15, 13, 0.88);
  --header-border: rgba(247, 243, 235, 0.13);
  --rail-bg: rgba(16, 15, 13, 0.68);
  --rail-border: rgba(247, 243, 235, 0.16);
  --rail-pip: rgba(247, 243, 235, 0.44);
}

/* ==========================================================================
   Reset & Base (Strict Sticky Ancestor Purity — NO overflow/transform here)
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
  background-color: var(--atmo-bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--atmo-ink);
  background-color: var(--atmo-bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition:
    background-color 0.52s var(--ease-expo),
    color 0.42s var(--ease-expo);
}

main#main-content {
  position: relative;
}

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

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

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

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

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.2vw, 44px);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: #E0AC69;
  color: #141311;
  font-weight: 700;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ==========================================================================
   Fixed Atmosphere-Aware Header & Scroll Progress Hairline
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  transition:
    background-color 0.48s var(--ease-expo),
    border-color 0.48s var(--ease-expo),
    color 0.4s var(--ease-expo);
}

.header-inner {
  width: 100%;
  max-width: var(--container-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.2vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  border-radius: 10px;
  padding: 4px 2px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--atmo-ink);
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--atmo-ink-2);
  white-space: nowrap;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--atmo-ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    color 0.25s ease,
    background-color 0.25s ease;
}

.nav-link:hover {
  color: var(--atmo-ink);
  background: var(--atmo-surface-2);
}

.nav-link.is-active,
.nav-link[aria-current="location"] {
  color: var(--atmo-accent);
  background: var(--atmo-accent-soft);
}

.scroll-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  background: var(--atmo-accent);
  transform-origin: left center;
  transform: scaleX(var(--scroll-p));
  pointer-events: none;
  opacity: 0.92;
  transition: background-color 0.45s var(--ease-expo);
}

/* ==========================================================================
   Desktop Right-Edge 5-Dot Act Rail (>= 960px)
   ========================================================================== */

.act-rail {
  display: none;
}

@media (min-width: 960px) {
  .act-rail {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding: 12px 9px;
    border-radius: 999px;
    background: var(--rail-bg);
    border: 1px solid var(--rail-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition:
      background-color 0.45s var(--ease-expo),
      border-color 0.45s var(--ease-expo);
  }

  .rail-dot {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
  }

  .rail-pip {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--rail-pip);
    transition:
      transform 0.28s var(--ease-expo),
      background-color 0.28s var(--ease-expo),
      box-shadow 0.28s var(--ease-expo);
  }

  .rail-dot:hover .rail-pip,
  .rail-dot:focus-visible .rail-pip {
    transform: scale(1.35);
    background: var(--atmo-ink);
  }

  .rail-dot.is-active .rail-pip,
  .rail-dot[aria-current="location"] .rail-pip {
    transform: scale(1.45);
    background: var(--atmo-accent);
    box-shadow: 0 0 0 4px var(--atmo-accent-soft);
  }

  .rail-label {
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translate3d(6px, -50%, 0);
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--header-bg);
    border: 1px solid var(--rail-border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--atmo-ink);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.24s var(--ease-expo);
  }

  .rail-dot:hover .rail-label,
  .rail-dot:focus-visible .rail-label {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
  }
}

/* ==========================================================================
   PER-ACT SCOPED WCAG AAA (>= 7.0:1) PALETTES & DIRECTIONAL SCRIMS
   Each act owns its own AAA ink/scrim variables so mid-scroll transitions
   never exhibit mismatched contrast between adjacent dark/light acts.
   ========================================================================== */

.story-act {
  position: relative;
  width: 100%;
  scroll-margin-top: 0;
}

.story-act--origin {
  z-index: 1;
  --act-bg: #141311;
  --act-ink: #F7F3EB;
  --act-ink-2: #D4CDC0;
  --act-accent: #EAC083;
  --act-accent-soft: rgba(234, 192, 131, 0.16);
  --act-cta-bg: #E0AC69;
  --act-cta-ink: #141311;
  --act-border: rgba(247, 243, 235, 0.18);
  --act-border-strong: rgba(234, 192, 131, 0.5);
  --act-glass: rgba(24, 22, 19, 0.72);
  --scrim-strong: rgba(16, 15, 13, 0.92);
  --scrim-mid: rgba(16, 15, 13, 0.68);
  --scrim-zero: rgba(16, 15, 13, 0);
  --scrim-top: rgba(16, 15, 13, 0.66);
  --scrim-bottom: rgba(16, 15, 13, 0.88);
  --scrim-solid: rgba(16, 15, 13, 0.96);
  --act-o: 1;
  --spread0: calc(1 - var(--p0));
}

.story-act--media {
  z-index: 2;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.38);
  --act-bg: #0F1412;
  --act-ink: #F3F6F3;
  --act-ink-2: #C6D3CA;
  --act-accent: #9CE0AC;
  --act-accent-soft: rgba(156, 224, 172, 0.16);
  --act-cta-bg: #88CC98;
  --act-cta-ink: #0E1611;
  --act-border: rgba(243, 246, 243, 0.18);
  --act-border-strong: rgba(156, 224, 172, 0.5);
  --act-glass: rgba(15, 22, 19, 0.74);
  --scrim-strong: rgba(15, 20, 18, 0.92);
  --scrim-mid: rgba(15, 20, 18, 0.7);
  --scrim-zero: rgba(15, 20, 18, 0);
  --scrim-top: rgba(15, 20, 18, 0.68);
  --scrim-bottom: rgba(15, 20, 18, 0.88);
  --scrim-solid: rgba(15, 20, 18, 0.96);
  --act-o: var(--o1);
  --spread1: var(--p1);
}

.story-act--goods {
  z-index: 3;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.28);
  --act-bg: #FAF6EE;
  --act-ink: #181614;
  --act-ink-2: #3D3730;
  --act-accent: #5C380E;
  --act-accent-soft: rgba(92, 56, 14, 0.13);
  --act-cta-bg: #1E1D1B;
  --act-cta-ink: #FAF6EE;
  --act-border: rgba(24, 22, 20, 0.18);
  --act-border-strong: rgba(92, 56, 14, 0.44);
  --act-glass: rgba(250, 246, 238, 0.82);
  --scrim-strong: rgba(250, 246, 238, 0.93);
  --scrim-mid: rgba(250, 246, 238, 0.74);
  --scrim-zero: rgba(250, 246, 238, 0);
  --scrim-top: rgba(250, 246, 238, 0.54);
  --scrim-bottom: rgba(250, 246, 238, 0.9);
  --scrim-solid: rgba(250, 246, 238, 0.97);
  --act-o: var(--o2);
}

.story-act--apps {
  z-index: 4;
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.34);
  --act-bg: #0D1624;
  --act-ink: #0F1D30;
  --act-ink-2: #2D4059;
  --act-accent: #12448F;
  --act-accent-soft: rgba(18, 68, 143, 0.12);
  --act-cta-bg: #154DA0;
  --act-cta-ink: #FFFFFF;
  --act-border: rgba(15, 29, 48, 0.17);
  --act-border-strong: rgba(18, 68, 143, 0.42);
  --act-glass: rgba(243, 248, 253, 0.86);
  --scrim-strong: rgba(243, 248, 253, 0.93);
  --scrim-mid: rgba(243, 248, 253, 0.76);
  --scrim-zero: rgba(243, 248, 253, 0);
  --scrim-top: rgba(243, 248, 253, 0.56);
  --scrim-bottom: rgba(243, 248, 253, 0.9);
  --scrim-solid: rgba(243, 248, 253, 0.97);
  --act-o: var(--o3);
  --spread3: var(--p3);
}

/* Snappy Scroll Distances (Desktop vs Mobile) */
@media (min-width: 960px) {
  .story-act--origin {
    height: 175vh;
  }

  .story-act--media,
  .story-act--goods,
  .story-act--apps {
    height: 178vh;
  }
}

@media (max-width: 959.98px) {
  :root {
    --header-h: 56px;
    --rig-scale: 0.64;
  }

  .story-act--origin {
    height: 146vh;
  }

  .story-act--media,
  .story-act--goods,
  .story-act--apps {
    height: 145vh;
  }
}

/* ==========================================================================
   FULL-BLEED STICKY VIEWPORT STAGE (100% x 100svh, overflow: hidden HERE ONLY)
   ========================================================================== */

.act-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--act-bg);
  color: var(--act-ink);
}

.act-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.act-stage--apps {
  background: #0D1624;
}

.act-photo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
}

.act-photo-frame--apps {
  overflow: hidden;
  transform: scale3d(
    calc(0.84 + var(--p3) * 0.16),
    calc(0.84 + var(--p3) * 0.16),
    1
  );
  border-radius: calc((1 - var(--p3)) * 28px);
  box-shadow: 0 36px 96px -24px rgba(4, 12, 26, calc((1 - var(--p3)) * 0.72));
  will-change: transform, border-radius;
}

.act-photo-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.act-photo-wrap--origin {
  background:
    radial-gradient(circle at 68% 44%, rgba(234, 192, 131, 0.2) 0%, rgba(20, 19, 17, 0.96) 62%),
    #141311;
  transform: perspective(1200px)
    scale3d(calc(1.14 - var(--p0) * 0.12), calc(1.14 - var(--p0) * 0.12), 1)
    rotateX(calc(var(--spread0) * 3.5deg));
}

.act-photo-wrap--media {
  background:
    radial-gradient(circle at 66% 42%, rgba(224, 172, 105, 0.22) 0%, rgba(15, 24, 20, 0.94) 56%),
    radial-gradient(circle at 26% 78%, rgba(156, 224, 172, 0.14) 0%, transparent 54%),
    #0F1412;
  transform: scale3d(
    calc(1.10 - var(--p1) * 0.08),
    calc(1.10 - var(--p1) * 0.08),
    1
  );
}

.act-photo-wrap--goods {
  background:
    radial-gradient(circle at 66% 34%, rgba(234, 212, 178, 0.65) 0%, rgba(250, 246, 238, 0.96) 66%),
    #FAF6EE;
  transform: scale3d(
    calc(1.08 - var(--p2) * 0.06),
    calc(1.08 - var(--p2) * 0.06),
    1
  );
}

.act-photo-wrap--apps {
  overflow: hidden;
  background: linear-gradient(180deg, #F5FAFF 0%, #DEF0FF 48%, #CBE6FE 100%);
}

.act-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.act-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.act-photo--origin {
  object-position: 64% 48%;
}

.act-photo--media {
  object-position: 62% 46%;
}

.act-photo--goods {
  object-position: 58% 44%;
}

.act-photo--apps {
  position: absolute;
  left: 0;
  top: -24%;
  width: 100%;
  height: 126%;
  object-fit: cover;
  object-position: 62% 88%;
}

/* Bespoke Studio Fallback Canvas if Image Fails to Load (.is-fallback via JS error listener) */
.act-photo-wrap.is-fallback .act-photo {
  opacity: 0;
}

.act-photo-wrap.is-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}

.act-photo-wrap--goods.is-fallback::after,
.act-photo-wrap--apps.is-fallback::after {
  background-image:
    linear-gradient(rgba(24, 22, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 22, 20, 0.05) 1px, transparent 1px);
}

/* ==========================================================================
   DIRECTIONAL SCRIMS (WCAG AAA >= 7.0:1, Zero Opaque Editorial Boxes)
   ========================================================================== */

.act-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      110% 92% at 16% 88%,
      var(--scrim-strong) 0%,
      var(--scrim-strong) 34%,
      var(--scrim-mid) 54%,
      var(--scrim-zero) 80%
    ),
    linear-gradient(
      96deg,
      var(--scrim-strong) 0%,
      var(--scrim-mid) 36%,
      var(--scrim-zero) 64%
    ),
    linear-gradient(
      180deg,
      var(--scrim-top) 0%,
      var(--scrim-zero) 16%,
      var(--scrim-zero) 74%,
      var(--scrim-bottom) 100%
    );
}

@media (max-width: 959.98px) {
  .act-scrim {
    background: linear-gradient(
      180deg,
      var(--scrim-top) 0%,
      var(--scrim-zero) 12%,
      var(--scrim-zero) 44%,
      var(--scrim-mid) 60%,
      var(--scrim-strong) 72%,
      var(--scrim-solid) 100%
    );
  }
}

/* ==========================================================================
   SHARED (400, 300) TRANSPARENT 3D KINETIC RIG
   Strict preserve-3d Purity: NO opacity < 1, NO filter, NO overflow: hidden
   on .act-kinetic-rig, .k-stage-box, or .k-deck!
   ========================================================================== */

.act-kinetic-rig {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: none;
  border: none;
  opacity: 1;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

@media (min-width: 960px) {
  .act-kinetic-rig {
    top: var(--header-h);
    right: 44px;
    bottom: 8%;
    width: 56%;
  }
}

@media (min-width: 960px) and (max-width: 1599.98px) {
  :root {
    --rig-scale: 0.78;
  }

  .act-kinetic-rig {
    left: 46%;
    right: 24px;
    width: auto;
  }
}

@media (min-width: 960px) and (max-width: 1279.98px) {
  :root {
    --rig-scale: 0.68;
  }
}

@media (max-width: 959.98px) {
  .act-kinetic-rig {
    top: var(--header-h);
    left: 0;
    right: 0;
    height: 46svh;
  }
}

.k-stage-box {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 800px;
  height: 600px;
  opacity: 1;
  transform-style: preserve-3d;
  transform:
    translate3d(-50%, -50%, 0)
    scale3d(var(--rig-scale), var(--rig-scale), var(--rig-scale))
    rotateX(calc(var(--tilt-y) * -5deg))
    rotateY(calc(var(--tilt-x) * 6deg));
  will-change: transform;
}

.act-web-svg {
  position: absolute;
  inset: 0;
  width: 800px;
  height: 600px;
  overflow: visible;
  transform: translateZ(0);
}

.k-deck {
  position: absolute;
  inset: 0;
  opacity: 1;
  transform-style: preserve-3d;
}

/* Shared Kinetic Leaf Styling */
.k-card,
.k-core,
.k-seal {
  position: absolute;
  left: 400px;
  top: 300px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 14px;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.k-title {
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.k-stat {
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.k-meta {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- ACT 00: DIVERGED CHAOS -> CONVERGED BRASS ORIGIN CORE ---------- */

.k-ring {
  fill: none;
  stroke-width: 1.2;
}

.k-ring--outer {
  stroke: rgba(234, 192, 131, 0.24);
  stroke-dasharray: 5 7;
  transform-origin: 400px 300px;
  transform: scale(calc(1.22 - var(--p0) * 0.26));
}

.k-ring--inner {
  stroke: rgba(234, 192, 131, 0.42);
  transform-origin: 400px 300px;
  transform: scale(calc(0.84 + var(--p0) * 0.22));
}

.k-guide--origin {
  stroke: rgba(234, 192, 131, 0.16);
  stroke-width: 1.1;
  stroke-dasharray: 4 6;
}

.k-filament--origin {
  stroke: #EAC083;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(var(--p0) * 0.72);
}

.k-svg-dot--origin {
  fill: #EAC083;
  opacity: calc(0.28 + var(--spread0) * 0.72);
}

.k-shard {
  padding: 10px 15px;
  background: rgba(22, 20, 17, 0.78);
  border: 1px solid rgba(234, 192, 131, 0.36);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
  color: #F7F3EB;
  transform:
    translate3d(
      calc(-50% + var(--dx) * var(--spread0)),
      calc(-50% + var(--dy) * var(--spread0)),
      calc(var(--dz) * var(--spread0))
    )
    rotateZ(calc(var(--rot) * var(--spread0)))
    scale(calc(0.66 + var(--spread0) * 0.36));
  opacity: calc(0.18 + var(--spread0) * 0.82);
}

.k-shard--1 { --dx: -245px; --dy: -170px; --dz: 24px; --rot: -10deg; }
.k-shard--2 { --dx: 20px; --dy: -205px; --dz: 36px; --rot: 5deg; }
.k-shard--3 { --dx: 245px; --dy: -155px; --dz: 20px; --rot: 11deg; }
.k-shard--4 { --dx: -235px; --dy: 155px; --dz: 28px; --rot: -8deg; }
.k-shard--5 { --dx: 15px; --dy: 200px; --dz: 18px; --rot: -5deg; }
.k-shard--6 { --dx: 240px; --dy: 145px; --dz: 32px; --rot: 9deg; }

.k-core--origin {
  align-items: center;
  text-align: center;
  padding: 18px 26px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(34, 30, 24, 0.92) 0%, rgba(18, 16, 13, 0.94) 100%);
  border: 1.5px solid rgba(234, 192, 131, 0.68);
  box-shadow:
    0 24px 60px -16px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(234, 192, 131, 0.22) inset,
    0 0 42px -10px rgba(234, 192, 131, 0.34);
  transform: translate3d(-50%, -50%, 36px) scale(calc(0.82 + var(--p0) * 0.28));
  opacity: calc(0.76 + var(--p0) * 0.24);
}

.k-core-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #EAC083 0%, #B58246 100%);
  color: #141311;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
}

.k-core-title {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #F7F3EB;
  white-space: nowrap;
}

.k-core-sub {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: #EAC083;
  white-space: nowrap;
}

/* ---------- ACT 01: CONVERGED HUB -> DIVERGED SAGE RESONANCE ---------- */

.k-ring--media-outer {
  stroke: rgba(156, 224, 172, 0.2);
  stroke-dasharray: 4 7;
  transform-origin: 400px 300px;
  transform: scale(calc(0.74 + var(--spread1) * 0.36));
}

.k-ring--media-inner {
  stroke: rgba(234, 192, 131, 0.28);
  transform-origin: 400px 300px;
  transform: scale(calc(0.82 + var(--spread1) * 0.24));
}

.k-guide--media {
  stroke: rgba(156, 224, 172, 0.14);
  stroke-width: 1.1;
  stroke-dasharray: 4 6;
}

.k-filament--media {
  stroke: #9CE0AC;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--spread1));
}

.k-filament--brass-accent {
  stroke: #EAC083;
}

.k-svg-dot--media {
  fill: #9CE0AC;
  opacity: calc(0.15 + var(--spread1) * 0.85);
}

.k-core--media {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(15, 22, 19, 0.9);
  border: 1.5px solid rgba(156, 224, 172, 0.56);
  box-shadow:
    0 22px 50px -16px rgba(0, 0, 0, 0.72),
    0 0 36px -10px rgba(156, 224, 172, 0.3);
  transform: translate3d(-50%, -50%, 34px) scale(calc(1.06 - var(--spread1) * 0.1));
  opacity: 0.98;
}

.k-core-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k-core--media .k-core-title {
  color: #F3F6F3;
  letter-spacing: 0.02em;
}

.k-core--media .k-core-sub {
  color: #9CE0AC;
  display: block;
}

.k-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #9CE0AC;
  box-shadow: 0 0 0 5px rgba(156, 224, 172, 0.22);
  flex-shrink: 0;
}

.k-node-media {
  padding: 11px 16px;
  background: rgba(15, 22, 19, 0.82);
  border: 1px solid rgba(156, 224, 172, 0.38);
  box-shadow: 0 18px 42px -18px rgba(0, 0, 0, 0.68);
  color: #F3F6F3;
  transform:
    translate3d(
      calc(-50% + var(--dx) * var(--spread1)),
      calc(-50% + var(--dy) * var(--spread1)),
      calc(var(--dz) * var(--spread1))
    )
    scale(calc(0.76 + var(--spread1) * 0.24));
  opacity: calc(0.18 + var(--spread1) * 0.82);
}

.k-node-media .k-meta {
  color: #C6D3CA;
}

.k-node-media--1 {
  --dx: -235px;
  --dy: -170px;
  --dz: 42px;
  border-color: rgba(234, 192, 131, 0.56);
}

.k-node-media--1 .k-stat {
  color: #EAC083;
}

.k-node-media--2 { --dx: 235px; --dy: -165px; --dz: 32px; }
.k-node-media--3 { --dx: -245px; --dy: 140px; --dz: 24px; }
.k-node-media--4 { --dx: 10px; --dy: 195px; --dz: 28px; }
.k-node-media--5 { --dx: 245px; --dy: 135px; --dz: 36px; }

/* ---------- ACT 02: DIVERGED -> CONVERGED TRAY -> GENTLE FAN ---------- */

.k-tray-frame {
  fill: rgba(250, 246, 238, 0.22);
  stroke: rgba(92, 56, 14, 0.55);
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--order2);
}

.k-tray-axis {
  stroke: rgba(92, 56, 14, 0.26);
  stroke-width: 1;
  stroke-dasharray: 4 5;
  opacity: calc(1 - var(--order2));
}

.k-reg-mark {
  stroke: #5C380E;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: calc(0.25 + (1 - var(--order2)) * 0.75);
}

.k-filament--goods {
  stroke: rgba(92, 56, 14, 0.44);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--order2));
}

.k-goods-card {
  width: 190px;
  padding: 16px 16px 15px;
  border-radius: 14px;
  background: rgba(252, 249, 242, 0.94);
  border: 1px solid rgba(92, 56, 14, 0.28);
  box-shadow:
    0 22px 46px -20px rgba(34, 24, 14, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.72) inset;
  color: #181614;
}

.k-goods-bar {
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #6B8269;
}

.k-goods-title {
  margin-top: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #181614;
}

.k-goods-meta {
  margin-top: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  color: #3D3730;
}

.k-deck--goods {
  --gx: 196px;
  --gx-order: 42px;
  --gx-fan: 14px;
  --seal-x: 185px;
  --seal-y: -158px;
}

.k-goods-card--left {
  transform:
    translate3d(
      calc(-50% - var(--gx) - var(--order2) * var(--gx-order) - var(--fan2) * var(--gx-fan)),
      calc(-50% + var(--order2) * -135px + var(--fan2) * 14px),
      calc(24px - var(--order2) * 16px)
    )
    rotateZ(calc(var(--order2) * -15deg + var(--fan2) * -9deg));
  opacity: calc(0.68 + (1 - var(--order2)) * 0.32);
}

.k-goods-card--center {
  border-color: rgba(92, 56, 14, 0.44);
  transform:
    translate3d(
      calc(-50% + var(--order2) * 28px),
      calc(-50% + var(--order2) * 155px + var(--fan2) * -18px),
      calc(42px - var(--order2) * 28px)
    )
    rotateZ(calc(var(--order2) * 10deg));
  opacity: calc(0.76 + (1 - var(--order2)) * 0.24);
}

.k-goods-card--center .k-goods-bar {
  background: #B58246;
}

.k-goods-card--right {
  transform:
    translate3d(
      calc(-50% + var(--gx) + var(--order2) * var(--gx-order) + var(--fan2) * var(--gx-fan)),
      calc(-50% + var(--order2) * -110px + var(--fan2) * 14px),
      calc(28px - var(--order2) * 18px)
    )
    rotateZ(calc(var(--order2) * 16deg + var(--fan2) * 9deg));
  opacity: calc(0.68 + (1 - var(--order2)) * 0.32);
}

.k-seal--goods {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1E1D1B;
  border: 1.5px solid #EAC083;
  box-shadow: 0 18px 36px -14px rgba(24, 22, 20, 0.45);
  color: #FAF6EE;
  transform:
    translate3d(
      calc(-50% + var(--seal-x)),
      calc(-50% + var(--seal-y) + var(--order2) * 26px),
      52px
    )
    scale(calc(0.86 + (1 - var(--order2)) * 0.14 + var(--fan2) * 0.06));
  opacity: calc(0.45 + (1 - var(--order2)) * 0.55);
}

.k-seal-star {
  color: #EAC083;
  font-size: 1rem;
  line-height: 1;
}

.k-seal-score {
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 700;
  color: #FAF6EE;
  white-space: nowrap;
}

.k-seal-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #EAC083;
  white-space: nowrap;
}

/* ---------- ACT 03: SCALE-IN FRAME + KIDSTIMEQUIZ SKY ORBIT ---------- */

.k-ring--apps-outer {
  stroke: rgba(18, 68, 143, 0.24);
  stroke-dasharray: 5 7;
  transform-origin: 400px 290px;
  transform: scale(calc(0.76 + var(--spread3) * 0.28));
}

.k-ring--apps-inner {
  stroke: rgba(21, 77, 160, 0.32);
  transform-origin: 400px 290px;
  transform: scale(calc(0.82 + var(--spread3) * 0.22));
}

.k-guide--apps {
  stroke: rgba(18, 68, 143, 0.18);
  stroke-width: 1.2;
  stroke-dasharray: 4 6;
}

.k-filament--apps {
  stroke: #154DA0;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--spread3));
}

.k-svg-dot--apps {
  fill: #154DA0;
  opacity: calc(0.2 + var(--spread3) * 0.8);
}

.k-core--apps {
  top: 290px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 11px 18px 11px 11px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(18, 68, 143, 0.34);
  box-shadow: 0 22px 48px -18px rgba(15, 29, 48, 0.32);
  transform: translate3d(-50%, -50%, 44px) scale(calc(0.88 + var(--spread3) * 0.14));
  opacity: calc(0.7 + var(--spread3) * 0.3);
}

.k-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(15, 29, 48, 0.32);
}

.k-core-apps-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.k-core--apps .k-core-title {
  color: #0F1D30;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.k-core--apps .k-core-sub {
  color: #12448F;
}

.k-node-apps {
  top: 290px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 68, 143, 0.28);
  box-shadow: 0 18px 38px -16px rgba(15, 29, 48, 0.24);
  color: #0F1D30;
  transform:
    translate3d(
      calc(-50% + var(--dx) * var(--spread3)),
      calc(-50% + var(--dy) * var(--spread3)),
      calc(var(--dz) * var(--spread3))
    )
    scale(calc(0.78 + var(--spread3) * 0.22));
  opacity: calc(0.2 + var(--spread3) * 0.8);
}

.k-node-apps .k-stat {
  color: #0F1D30;
  font-size: 1.24rem;
}

.k-node-apps .k-meta {
  color: #2D4059;
}

.k-node-apps--1 { --dx: -235px; --dy: -148px; --dz: 36px; }
.k-node-apps--2 { --dx: 235px; --dy: -140px; --dz: 30px; }
.k-node-apps--3 { --dx: 195px; --dy: 160px; --dz: 26px; }

/* ==========================================================================
   INTEGRATED EDITORIAL OVERLAY (Lower-Left Desktop / Compact Bottom Mobile)
   ========================================================================== */

.act-overlay-shell {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 12px);
  padding-bottom: clamp(24px, 4.4vh, 52px);
}

.act-overlay {
  max-width: 560px;
  color: var(--act-ink);
  opacity: var(--act-o, 1);
  transform: translate3d(0, calc((1 - var(--act-o, 1)) * 22px), 0);
  will-change: transform, opacity;
}

html.js-enhanced:not(.is-reduced-motion) .story-act:not(.story-act--origin) .act-overlay:not(.is-interactive) {
  pointer-events: none;
}

@media (min-width: 960px) and (max-width: 1279.98px) {
  .act-overlay {
    max-width: 460px;
  }
}

.act-overlay--origin {
  opacity: 1;
  transform: none;
}

/* Shared Editorial Typography (Per-Act AAA Tokens) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--act-accent, var(--atmo-accent));
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--act-accent, var(--atmo-accent));
  box-shadow: 0 0 0 4px var(--act-accent-soft, var(--atmo-accent-soft));
  flex-shrink: 0;
}

.act-title {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--act-ink);
}

.act-title--origin {
  display: block;
  font-size: clamp(1.85rem, 2.6vw, 2.48rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.act-title-row {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.act-title-row .act-title {
  margin-top: 0;
}

.act-title-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(15, 29, 48, 0.34);
}

.act-title-en {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--act-accent);
}

.act-lead {
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.64;
  color: var(--act-ink-2);
}

.act-lead--origin {
  margin-top: 12px;
}

/* Act 0 Minimalist Hairline Metric Row (Zero Glass Boxes, Zero Kickers) */
.origin-metrics {
  margin-top: 20px;
  padding: 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--act-border);
  border-bottom: 1px solid var(--act-border);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 14px;
  min-width: 0;
}

.metric-item + .metric-item {
  padding-left: 16px;
  border-left: 1px solid var(--act-border);
}

.metric-item:last-child {
  padding-right: 0;
}

.metric-value {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--act-ink);
  line-height: 1.18;
  white-space: nowrap;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--act-ink-2);
  line-height: 1.3;
  white-space: nowrap;
}

/* Acts 1–3 Hairline Editorial Spec List (.act-specs) */
.act-specs {
  margin-top: 16px;
  border-top: 1px solid var(--act-border);
}

.spec-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--act-border);
}

.spec-key {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--act-accent);
  line-height: 1.4;
  white-space: nowrap;
}

.spec-val {
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.48;
  color: var(--act-ink);
}

/* Buttons */
.act-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform 0.24s var(--ease-expo),
    background-color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.24s var(--ease-expo);
}

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

.btn-primary {
  background: var(--act-cta-bg, var(--atmo-cta-bg));
  color: var(--act-cta-ink, var(--atmo-cta-ink));
  border: 1px solid transparent;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.42);
}

.btn-primary:hover {
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.52);
}

.btn-secondary {
  background: var(--act-glass, var(--atmo-surface-2));
  color: var(--act-ink, var(--atmo-ink));
  border: 1px solid var(--act-border-strong, var(--atmo-border));
}

.btn-secondary:hover {
  background: var(--act-accent-soft, var(--atmo-accent-soft));
  border-color: var(--act-accent, var(--atmo-accent));
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.origin-scroll-cue {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.scroll-cue-line {
  width: 34px;
  height: 1px;
  background: var(--act-accent);
}

.scroll-cue-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--act-ink-2);
}

/* ==========================================================================
   ACT 04 / EPILOGUE: INTERACTIVE DIVERGE <-> CONVERGE LOOP + DIRECTORY
   ========================================================================== */

.act-epilogue {
  position: relative;
  z-index: 5;
  padding: clamp(72px, 9vh, 112px) 0 clamp(68px, 8vh, 100px);
  background: #141311;
  color: #F7F3EB;
  border-top: 1px solid rgba(247, 243, 235, 0.14);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.42);
  --act-ink: #F7F3EB;
  --act-ink-2: #D4CDC0;
  --act-accent: #EAC083;
  --act-accent-soft: rgba(234, 192, 131, 0.16);
  --act-border: rgba(247, 243, 235, 0.15);
  --act-border-strong: rgba(234, 192, 131, 0.46);
}

.epilogue-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.epilogue-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.52;
}

.epilogue-glow--brass {
  top: -10%;
  left: 14%;
  width: 480px;
  height: 480px;
  background: rgba(234, 192, 131, 0.18);
}

.epilogue-glow--sage {
  bottom: 6%;
  right: 10%;
  width: 440px;
  height: 440px;
  background: rgba(156, 224, 172, 0.14);
}

.epilogue-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(247, 243, 235, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.epilogue-inner {
  position: relative;
  z-index: 1;
}

.epilogue-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.epilogue-eyebrow {
  justify-content: center;
}

.epilogue-title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: #F7F3EB;
}

.epilogue-lead {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.72;
  color: #D4CDC0;
}

/* Full-Width Interactive Diverge <-> Converge SVG Web */
.loop-web-wrap {
  margin: 34px auto 0;
  padding: 22px 24px 20px;
  border-radius: 14px;
  background: rgba(29, 27, 24, 0.88);
  border: 1px solid rgba(247, 243, 235, 0.14);
  box-shadow: 0 28px 70px -36px rgba(0, 0, 0, 0.65);
}

.loop-web-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.loop-web-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #EAC083;
}

.loop-web-hint {
  font-size: 0.78rem;
  color: #D4CDC0;
}

.loop-web-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.loop-guide {
  stroke: rgba(247, 243, 235, 0.12);
  stroke-width: 1.3;
  stroke-dasharray: 5 6;
}

.loop-guide--return {
  stroke: rgba(234, 192, 131, 0.14);
}

.loop-branch {
  transition: opacity 0.28s ease;
}

.loop-arc {
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: calc(1 - var(--epilogue-p));
  transition:
    stroke-width 0.28s var(--ease-expo),
    opacity 0.28s ease;
}

.loop-arc--return {
  stroke-width: 2;
  opacity: 0.84;
}

.loop-arc--media { stroke: #9CE0AC; }
.loop-arc--goods { stroke: #EAC083; }
.loop-arc--apps { stroke: #8FC4FF; }

.loop-node-halo {
  opacity: 0.16;
  transition: opacity 0.28s ease;
}

.loop-node-halo--media { fill: #9CE0AC; }
.loop-node-halo--goods { fill: #EAC083; }
.loop-node-halo--apps { fill: #8FC4FF; }

.loop-node {
  stroke: #141311;
  stroke-width: 2.5;
}

.loop-node--media { fill: #9CE0AC; }
.loop-node--goods { fill: #EAC083; }
.loop-node--apps { fill: #8FC4FF; }
.loop-node--root { fill: #EAC083; }
.loop-node--seed { fill: #F7F3EB; }

.loop-root-halo,
.loop-seed-halo {
  fill: rgba(234, 192, 131, 0.18);
}

/* Interactive data-loop-focus Branch Highlighting */
.loop-web-wrap[data-loop-focus="media"] .loop-branch:not(.loop-branch--media),
.loop-web-wrap[data-loop-focus="goods"] .loop-branch:not(.loop-branch--goods),
.loop-web-wrap[data-loop-focus="apps"] .loop-branch:not(.loop-branch--apps) {
  opacity: 0.22;
}

.loop-web-wrap[data-loop-focus="media"] .loop-branch--media .loop-arc,
.loop-web-wrap[data-loop-focus="goods"] .loop-branch--goods .loop-arc,
.loop-web-wrap[data-loop-focus="apps"] .loop-branch--apps .loop-arc {
  stroke-width: 4;
  opacity: 1;
}

.loop-web-wrap[data-loop-focus="media"] .loop-branch--media .loop-node-halo,
.loop-web-wrap[data-loop-focus="goods"] .loop-branch--goods .loop-node-halo,
.loop-web-wrap[data-loop-focus="apps"] .loop-branch--apps .loop-node-halo {
  opacity: 0.36;
}

.loop-pill-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.loop-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(247, 243, 235, 0.045);
  border: 1px solid rgba(247, 243, 235, 0.16);
  color: #F7F3EB;
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease,
    transform 0.24s var(--ease-expo);
}

.loop-pill:hover,
.loop-pill:focus-visible,
.loop-pill[aria-pressed="true"] {
  transform: translateY(-2px);
}

.loop-pill--media:hover,
.loop-pill--media:focus-visible,
.loop-pill--media[aria-pressed="true"],
.loop-web-wrap[data-loop-focus="media"] .loop-pill--media {
  background: rgba(156, 224, 172, 0.14);
  border-color: rgba(156, 224, 172, 0.56);
}

.loop-pill--goods:hover,
.loop-pill--goods:focus-visible,
.loop-pill--goods[aria-pressed="true"],
.loop-web-wrap[data-loop-focus="goods"] .loop-pill--goods {
  background: rgba(234, 192, 131, 0.16);
  border-color: rgba(234, 192, 131, 0.58);
}

.loop-pill--apps:hover,
.loop-pill--apps:focus-visible,
.loop-pill--apps[aria-pressed="true"],
.loop-web-wrap[data-loop-focus="apps"] .loop-pill--apps {
  background: rgba(143, 196, 255, 0.16);
  border-color: rgba(143, 196, 255, 0.58);
}

.loop-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.loop-pill--media .loop-pill-dot { background: #9CE0AC; }
.loop-pill--goods .loop-pill-dot { background: #EAC083; }
.loop-pill--apps .loop-pill-dot { background: #8FC4FF; }

.loop-pill-code {
  color: #D4CDC0;
  white-space: nowrap;
}

.loop-pill-stat {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #F7F3EB;
  white-space: nowrap;
}

.loop-root-caption {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #EAC083;
}

/* 3 Studio Principles */
.principles-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.principle-card {
  padding: 22px 20px;
  border-radius: 14px;
  background: #1D1B18;
  border: 1px solid rgba(247, 243, 235, 0.14);
  transition:
    border-color 0.28s ease,
    transform 0.28s var(--ease-expo);
}

.principle-card:hover {
  border-color: rgba(234, 192, 131, 0.48);
  transform: translateY(-2px);
}

.principle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
}

.principle-num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #EAC083;
}

.principle-tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #D4CDC0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.06);
}

.principle-title {
  margin-top: 12px;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.38;
  color: #F7F3EB;
}

.principle-desc {
  margin-top: 8px;
  font-size: 0.86rem;
  line-height: 1.62;
  color: #D4CDC0;
}

/* 3-Column Official Directory */
.directory-block {
  margin-top: 52px;
  padding-top: 40px;
  border-top: 1px solid rgba(247, 243, 235, 0.14);
}

.directory-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.directory-heading {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #F7F3EB;
}

.directory-sub {
  font-size: 0.86rem;
  color: #D4CDC0;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dir-card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: 14px;
  background: #1D1B18;
  border: 1px solid rgba(247, 243, 235, 0.14);
  transition: border-color 0.3s ease;
}

.dir-card:hover {
  border-color: rgba(234, 192, 131, 0.48);
}

.dir-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
}

.dir-index {
  font-size: 0.7rem;
  font-weight: 600;
  color: #D4CDC0;
}

.dir-badge {
  font-size: 0.64rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
}

.dir-badge--sage {
  color: #9CE0AC;
  background: rgba(156, 224, 172, 0.16);
}

.dir-badge--brass {
  color: #EAC083;
  background: rgba(234, 192, 131, 0.18);
}

.dir-badge--sky {
  color: #9BCBFF;
  background: rgba(155, 203, 255, 0.16);
}

.dir-title {
  margin-top: 12px;
  font-size: 1.06rem;
  font-weight: 700;
  color: #F7F3EB;
}

.dir-desc {
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.58;
  color: #D4CDC0;
  flex: 1 1 auto;
}

.dir-links {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dir-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 11px;
  background: rgba(247, 243, 235, 0.055);
  border: 1px solid rgba(247, 243, 235, 0.15);
  font-size: 0.85rem;
  font-weight: 600;
  color: #F7F3EB;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.dir-link:hover {
  border-color: rgba(234, 192, 131, 0.5);
  background: rgba(234, 192, 131, 0.16);
  color: #EAC083;
}

/* ==========================================================================
   Site Footer (#footer)
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 6;
  border-top: 1px solid rgba(247, 243, 235, 0.14);
  padding: 56px 0 40px;
  background: #141311;
  color: #F7F3EB;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .brand-name {
  color: #F7F3EB;
}

.footer-brand .brand-sub {
  color: #D4CDC0;
}

.footer-summary {
  margin-top: 14px;
  max-width: 380px;
  font-size: 0.87rem;
  line-height: 1.66;
  color: #D4CDC0;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EAC083;
}

.footer-links {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #D4CDC0;
  transition: color 0.22s ease;
}

.footer-link:hover {
  color: #F7F3EB;
}

.footer-contact-mail {
  margin-top: 14px;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: #F7F3EB;
  border-bottom: 1px solid rgba(234, 192, 131, 0.5);
  padding-bottom: 2px;
  transition: color 0.22s ease;
}

.footer-contact-mail:hover {
  color: #EAC083;
}

.footer-contact-note {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #D4CDC0;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(247, 243, 235, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 0.8rem;
  color: #D4CDC0;
}

.footer-domain {
  font-family: var(--font-mono);
  color: #EAC083;
}

/* ==========================================================================
   RESPONSIVE MOBILE & TABLET LAYOUT (< 960px / < 768px / < 430px / <= 389px)
   Unified compact .act-overlay (<= 225px on 390x844) + portrait <picture>
   ========================================================================== */

@media (max-width: 959.98px) {
  .act-photo--origin {
    object-position: 68% 42%;
  }

  .act-photo--media {
    object-position: 66% 36%;
  }

  .act-photo--goods {
    object-position: 60% 34%;
  }

  .act-overlay {
    max-width: 100%;
  }

  .origin-scroll-cue {
    display: none;
  }

  .principles-grid,
  .directory-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767.98px) {
  :root {
    --rig-scale: 0.62;
  }

  .header-inner {
    gap: 6px;
    padding: 0 12px;
  }

  .brand-link {
    gap: 7px;
    padding: 4px 0;
  }

  .site-header .brand-sub {
    display: none;
  }

  .brand-mark {
    width: 25px;
    height: 25px;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .site-nav {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
    gap: 2px;
    padding-block: 2px;
    padding-inline: 2px;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    flex-shrink: 0;
    padding: 5px 7px;
    font-size: 0.74rem;
  }

  .nav-link:focus-visible {
    outline-offset: -2px;
  }

  /* Portrait <picture> Art Direction Crops (900x1600 upper-focal 9:16 assets) */
  .act-photo--origin {
    object-position: 50% 34%;
  }

  .act-photo--media {
    object-position: 50% 32%;
  }

  .act-photo--goods {
    object-position: 50% 34%;
  }

  .act-photo--apps {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 24%;
  }

  /* Mobile 3D Kinetic Rig Parity (48svh stage + tightened coordinates) */
  .act-kinetic-rig {
    top: var(--header-h);
    left: 0;
    right: 0;
    height: 48svh;
  }

  .act-kinetic-rig .k-meta,
  .act-kinetic-rig .k-goods-meta {
    display: none;
  }

  .act-kinetic-rig .k-title {
    font-size: 1.12rem;
  }

  .act-kinetic-rig .k-stat {
    font-size: 1.52rem;
  }

  .k-goods-card {
    width: 164px;
    padding: 12px 12px 11px;
  }

  .k-goods-title {
    font-size: 1.02rem;
  }

  .act-web-svg--goods {
    transform-origin: 400px 300px;
    transform: translateZ(0) scaleX(0.86);
  }

  .k-shard--1 { --dx: -198px; --dy: -152px; }
  .k-shard--2 { --dx: 14px; --dy: -188px; }
  .k-shard--3 { --dx: 198px; --dy: -144px; }
  .k-shard--4 { --dx: -194px; --dy: 144px; }
  .k-shard--5 { --dx: 12px; --dy: 184px; }
  .k-shard--6 { --dx: 196px; --dy: 138px; }

  .k-node-media--1 { --dx: -192px; --dy: -152px; }
  .k-node-media--2 { --dx: 196px; --dy: -148px; }
  .k-node-media--3 { --dx: -182px; --dy: 136px; }
  .k-node-media--4 { --dx: 8px; --dy: 184px; }
  .k-node-media--5 { --dx: 196px; --dy: 132px; }

  .k-deck--goods {
    --gx: 156px;
    --gx-order: 20px;
    --gx-fan: 10px;
    --seal-x: 128px;
    --seal-y: -146px;
  }

  .k-node-apps--1 { --dx: -188px; --dy: -138px; }
  .k-node-apps--2 { --dx: 176px; --dy: -132px; }
  .k-node-apps--3 { --dx: 172px; --dy: 148px; }

  /* Unified Compact Mobile Editorial Overlay Budget (<= 225px on 390x844) */
  .act-overlay-shell {
    padding: 0 14px 12px;
  }

  .eyebrow {
    font-size: 0.62rem;
    line-height: 1.2;
    gap: 6px;
  }

  .act-title {
    margin-top: 4px;
    font-size: 1.24rem;
    line-height: 1.18;
  }

  .act-title--origin {
    font-size: 1.32rem;
    line-height: 1.18;
  }

  .act-title-row {
    margin-top: 4px;
    gap: 7px;
  }

  .act-title-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .act-title-en {
    font-size: 0.64rem;
  }

  .desktop-br {
    display: none;
  }

  .act-lead--origin {
    margin-top: 6px;
    font-size: 0.74rem;
    line-height: 1.46;
  }

  /* Visually hide Acts 1–3 prose lead on mobile while preserving SEO & screen-reader parity */
  .act-lead:not(.act-lead--origin) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .origin-metrics {
    margin-top: 10px;
    padding: 8px 0;
  }

  .metric-item {
    padding-right: 8px;
    gap: 2px;
  }

  .metric-item + .metric-item {
    padding-left: 10px;
  }

  .metric-value {
    font-size: 0.96rem;
  }

  .metric-label {
    font-size: 0.66rem;
  }

  .act-specs {
    margin-top: 8px;
  }

  .spec-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 5.5px 0;
  }

  .spec-key {
    font-size: 0.68rem;
  }

  .spec-val {
    font-size: 0.72rem;
    line-height: 1.34;
  }

  .act-actions {
    margin-top: 10px;
    gap: 7px;
    flex-wrap: nowrap;
  }

  .act-actions .btn {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 0.78rem;
    border-radius: 10px;
    gap: 5px;
  }

  .loop-web-wrap {
    padding: 16px 14px 14px;
  }

  .loop-pill-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 429.98px) {
  .brand-mark {
    width: 24px;
    height: 24px;
  }

  .brand-name {
    font-size: 0.88rem;
  }

  .site-nav {
    gap: 1px;
    padding-inline: 2px;
  }

  .nav-link {
    padding: 5px 6px;
    font-size: 0.72rem;
  }
}

@media (max-width: 389.98px) {
  :root {
    --rig-scale: 0.56;
  }

  .act-title--origin {
    font-size: 1.24rem;
  }

  .act-actions .btn {
    font-size: 0.74rem;
    padding: 8px 8px;
  }
}

/* ==========================================================================
   B1: SHORT-PHONE GUARD (<= 767.98px wide & <= 700px tall, e.g. 360x640, 375x667)
   Shifts lower scrim upward & tightens vertical rhythm so AAA (>= 7.0:1) holds
   ========================================================================== */

@media (max-width: 767.98px) and (max-height: 700px) {
  .act-scrim {
    background: linear-gradient(
      180deg,
      var(--scrim-top) 0%,
      var(--scrim-zero) 12%,
      var(--scrim-zero) 38%,
      var(--scrim-mid) 52%,
      var(--scrim-strong) 63%,
      var(--scrim-solid) 100%
    );
  }

  .act-overlay-shell {
    padding-bottom: 10px;
  }

  .eyebrow {
    font-size: 0.6rem;
  }

  .act-title {
    margin-top: 3px;
    font-size: 1.16rem;
    line-height: 1.16;
  }

  .act-title--origin {
    font-size: 1.18rem;
    line-height: 1.15;
  }

  .act-title-row {
    margin-top: 3px;
  }

  .act-title-icon {
    width: 24px;
    height: 24px;
  }

  .act-lead--origin {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .origin-metrics {
    margin-top: 7px;
    padding: 6px 0;
  }

  .metric-value {
    font-size: 0.88rem;
  }

  .metric-label {
    font-size: 0.6rem;
  }

  .act-specs {
    margin-top: 6px;
  }

  .spec-row {
    padding: 4px 0;
  }

  .spec-key {
    font-size: 0.65rem;
  }

  .spec-val {
    font-size: 0.69rem;
  }

  .act-actions {
    margin-top: 8px;
    gap: 6px;
  }
}

/* ==========================================================================
   B4: SHORT DESKTOP / TABLET HEIGHT GUARD (>= 768px wide & <= 700px tall)
   Prevents Act 3 overlay from touching or clipping under 68px fixed header
   ========================================================================== */

@media (min-width: 768px) and (max-height: 700px) {
  .act-overlay-shell {
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 18px;
  }

  .act-lead:not(.act-lead--origin) {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .act-title {
    margin-top: 6px;
    font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  }

  .act-title--origin {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  }

  .act-title-row {
    margin-top: 6px;
  }

  .act-title-icon {
    width: 32px;
    height: 32px;
  }

  .act-lead--origin {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .origin-metrics {
    margin-top: 12px;
    padding: 10px 0;
  }

  .act-specs {
    margin-top: 10px;
  }

  .spec-row {
    padding: 6px 0;
  }

  .act-actions {
    margin-top: 12px;
  }

  .origin-scroll-cue {
    display: none;
  }
}

/* ==========================================================================
   B3: LANDSCAPE / 200%-ZOOM ESCAPE HATCH (@media (max-height: 560px))
   De-sticks acts with pixel-anchored scrim so text & CTAs NEVER clip
   ========================================================================== */

@media (max-height: 560px) {
  .story-act {
    height: auto;
    min-height: 100svh;
  }

  .act-sticky {
    position: relative;
    height: auto;
    min-height: 100svh;
    padding-top: calc(var(--header-h) + 215px);
  }

  .act-scrim {
    background: linear-gradient(
      180deg,
      var(--scrim-top) 0,
      var(--scrim-zero) 120px,
      var(--scrim-mid) 210px,
      var(--scrim-strong) 300px,
      var(--scrim-solid) 100%
    );
  }

  .act-overlay-shell {
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .act-kinetic-rig {
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 190px;
  }

  .act-overlay {
    opacity: 1;
    transform: none;
    pointer-events: auto !important;
  }

  html.js-enhanced .story-act .act-overlay {
    pointer-events: auto !important;
  }

  :root {
    --rig-scale: 0.36;
  }
}

/* ==========================================================================
   REDUCED-MOTION GUARDRAIL (Respects prefers-reduced-motion: reduce)
   ========================================================================== */

html.is-reduced-motion {
  scroll-behavior: auto;
}

html.is-reduced-motion .act-photo-wrap,
html.is-reduced-motion .act-photo-frame--apps {
  transform: none !important;
  border-radius: 0 !important;
}

html.is-reduced-motion .act-overlay {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

html.is-reduced-motion .k-stage-box {
  transform: translate3d(-50%, -50%, 0) scale3d(var(--rig-scale), var(--rig-scale), var(--rig-scale)) !important;
}

html.is-reduced-motion .k-filament,
html.is-reduced-motion .k-tray-frame,
html.is-reduced-motion .loop-arc {
  stroke-dashoffset: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .act-photo-wrap,
  .act-photo-frame--apps {
    transform: none !important;
    border-radius: 0 !important;
  }

  .act-overlay {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .k-stage-box {
    transform: translate3d(-50%, -50%, 0) scale3d(var(--rig-scale), var(--rig-scale), var(--rig-scale)) !important;
  }

  .k-filament,
  .k-tray-frame,
  .loop-arc {
    stroke-dashoffset: 0 !important;
  }

  body,
  .site-header,
  .scroll-progress,
  .act-rail,
  .rail-pip,
  .rail-label,
  .nav-link,
  .btn,
  .loop-branch,
  .loop-arc,
  .loop-pill,
  .principle-card,
  .dir-card,
  .dir-link {
    transition-duration: 0.01ms !important;
  }
}
