/* ============================================
   GLASS ESCALATOR — Transparent Ascent System
   ============================================ */

:root {
  --midnight-plum: #201A2B;
  --deep-plum: #30243D;
  --mineral-teal: #3AAFA3;
  --glass-aqua: #9DE4DA;
  --warm-apricot: #F3A66A;
  --soft-apricot: #FFE1C9;
  --lilac: #C8B9E8;
  --porcelain: #F7F4EF;
  --glass-white: #FFFFFF;
  --charcoal: #292731;
  --muted: #77727F;
  --line: rgba(32, 26, 43, 0.13);

  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--porcelain);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--midnight-plum);
  color: var(--porcelain);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 2.5rem, var(--narrow));
}

.section {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  position: relative;
}

/* ----- Typography ----- */
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--midnight-plum);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--midnight-plum);
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 38rem;
  margin-top: 1.5rem;
}

.c-plum { color: var(--midnight-plum); }
.c-teal { color: var(--mineral-teal); }
.c-apricot { color: var(--warm-apricot); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.35rem;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-primary {
  background: var(--midnight-plum);
  color: var(--porcelain);
}

.btn-primary:hover {
  background: var(--deep-plum);
  transform: translateY(-1px);
}

.btn-primary.btn-light {
  background: var(--glass-aqua);
  color: var(--midnight-plum);
}

.btn-primary.btn-light:hover {
  background: var(--porcelain);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--midnight-plum);
  background: transparent;
}

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

.btn-ghost-light {
  border: 1px solid rgba(247, 244, 239, 0.35);
  color: var(--porcelain);
}

.btn-ghost-light:hover {
  border-color: var(--glass-aqua);
  color: var(--glass-aqua);
}

.btn-header {
  font-size: 0.68rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  background: transparent;
}

.btn-header:hover {
  background: var(--midnight-plum);
  color: var(--porcelain);
  border-color: var(--midnight-plum);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* ----- Logo ----- */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-symbol .logo-plane {
  fill: var(--glass-aqua);
  fill-opacity: 0.35;
  stroke: var(--mineral-teal);
  stroke-width: 1.4;
}

.logo-symbol .logo-plane-b {
  fill: var(--mineral-teal);
  fill-opacity: 0.22;
  stroke: var(--midnight-plum);
}

.logo-symbol .logo-path {
  stroke: var(--warm-apricot);
  stroke-width: 2;
  stroke-linecap: round;
}

.logo-symbol .logo-dot {
  fill: var(--warm-apricot);
}

.logo-symbol.light .logo-plane {
  fill: var(--glass-aqua);
  fill-opacity: 0.3;
  stroke: var(--glass-aqua);
}

.logo-symbol.light .logo-plane-b {
  stroke: var(--porcelain);
  fill-opacity: 0.2;
}

.logo-symbol.light .logo-path,
.logo-symbol.light .logo-dot {
  stroke: var(--warm-apricot);
  fill: var(--warm-apricot);
}

.logo-symbol.accent .logo-plane {
  fill: var(--lilac);
  fill-opacity: 0.4;
  stroke: var(--lilac);
}

.logo-symbol.accent .logo-plane-b {
  fill: var(--glass-aqua);
  fill-opacity: 0.35;
  stroke: var(--mineral-teal);
}

.logo-symbol.accent .logo-path,
.logo-symbol.accent .logo-dot {
  stroke: var(--warm-apricot);
  fill: var(--warm-apricot);
}

.logo-symbol.mono .logo-plane,
.logo-symbol.mono .logo-plane-b {
  fill: none;
  stroke: var(--midnight-plum);
  fill-opacity: 0;
}

.logo-symbol.mono .logo-path,
.logo-symbol.mono .logo-dot {
  stroke: var(--midnight-plum);
  fill: var(--midnight-plum);
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--midnight-plum);
}

.logo-desc {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-logo .logo-name,
.site-footer .brand-line {
  color: var(--porcelain);
}

.footer-logo .logo-desc,
.brand-secondary {
  color: rgba(247, 244, 239, 0.55);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.82);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.header-top {
  display: flex;
  justify-content: flex-end;
  padding: 0.35rem var(--space) 0;
  transition: opacity 0.3s, height 0.3s, padding 0.3s;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--space);
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: min-height 0.35s var(--ease), padding 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(247, 244, 239, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .header-top {
  opacity: 0;
  height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.site-header.is-scrolled .header-main {
  min-height: 3.6rem;
  padding-block: 0.55rem;
  border-bottom-color: var(--line);
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: var(--mineral-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 2rem;
  margin-left: auto;
  padding: 0.4rem;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--midnight-plum);
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 10vw, 7rem);
  background: var(--porcelain);
  overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-architecture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.arch-slab {
  animation: planeFloat 10s var(--ease) infinite;
}

.arch-slab.s2 { animation-delay: -2s; }
.arch-slab.s3 { animation-delay: -4s; }
.arch-slab.s4 { animation-delay: -6s; }

.arch-dot {
  animation: ascendDot 6s var(--ease) infinite;
}

.arch-dot.d2 { animation-delay: -2s; }
.arch-dot.d3 { animation-delay: -4s; }

.atm-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.atm-orb-a {
  width: 420px;
  height: 420px;
  background: rgba(157, 228, 218, 0.35);
  top: -8%;
  right: 8%;
  animation: orbDrift 14s ease-in-out infinite;
}

.atm-orb-b {
  width: 320px;
  height: 320px;
  background: rgba(200, 185, 232, 0.28);
  bottom: 5%;
  left: -5%;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.atm-orb-c {
  width: 240px;
  height: 240px;
  background: rgba(243, 166, 106, 0.18);
  top: 40%;
  left: 35%;
  animation: orbDrift 16s ease-in-out infinite;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -18px) scale(1.06); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(54px, 8vw, 125px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin: 1rem 0 0;
}

.hero-title span {
  display: block;
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 32rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 420px;
}

.glass-escalator {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.esc-glow {
  position: absolute;
  inset: 10% 5% 5% 15%;
  background: radial-gradient(ellipse at center, rgba(157, 228, 218, 0.35), transparent 70%);
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.escalator-svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.plane-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  fill: var(--midnight-plum);
  fill-opacity: 0.55;
}

.micro-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  z-index: 2;
}

.ml-system { top: 4%; left: 0; color: var(--mineral-teal); }
.ml-vis { top: 18%; right: 0; }
.ml-mob { top: 38%; left: -2%; }
.ml-lead { top: 52%; right: 2%; }
.ml-cult { top: 68%; left: 4%; }
.ml-tal { bottom: 8%; right: 8%; }

.plane {
  animation: planeFloat 8s var(--ease) infinite;
  transform-origin: center;
}

.p2 { animation-delay: -1.2s; }
.p3 { animation-delay: -2.4s; }
.p4 { animation-delay: -3.6s; }
.p5 { animation-delay: -4.8s; }

@keyframes planeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mover {
  animation: ascendDot 5.5s var(--ease) infinite;
}

.m2 { animation-delay: -1s; }
.m3 { animation-delay: -2s; }
.m4 { animation-delay: -3s; }
.m5 { animation-delay: -4s; }

@keyframes ascendDot {
  0% { opacity: 0.3; transform: translate(0, 8px); }
  40% { opacity: 1; }
  100% { opacity: 0.2; transform: translate(12px, -28px); }
}

/* ----- Intro ----- */
.intro {
  background: var(--deep-plum);
  color: var(--porcelain);
  position: relative;
  overflow: hidden;
}

.intro-visual {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(480px, 42vw);
  opacity: 0.85;
  pointer-events: none;
}

.invisible-reveal-svg {
  width: 100%;
  height: auto;
}

.inv-layer {
  animation: invPulse 7s var(--ease) infinite;
}

.inv-layer.l2 { animation-delay: -1s; }
.inv-layer.l3 { animation-delay: -2s; }
.inv-layer.l4 { animation-delay: -3s; }
.inv-layer.l5 { animation-delay: -4s; }

@keyframes invPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.inv-dot {
  animation: ascendDot 5s var(--ease) infinite;
}

.inv-dot.d2 { animation-delay: -1.5s; }
.inv-dot.d3 { animation-delay: -3s; }

.intro .container {
  position: relative;
  z-index: 1;
}

.intro .mono-label { color: var(--glass-aqua); }
.intro .display-lg { color: var(--porcelain); }
.intro .lede { color: rgba(247, 244, 239, 0.7); max-width: 36rem; }

.highlight-statement {
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--glass-aqua);
}

/* ----- Layers ----- */
.layers {
  background: var(--porcelain);
}

.layer-stack {
  margin-top: 3rem;
  display: grid;
  gap: 0.75rem;
  perspective: 1200px;
}

.layer-plane {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  transform: translateY(0);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}

.layer-plane:nth-child(1) { margin-left: 0; }
.layer-plane:nth-child(2) { margin-left: 1.5%; background: rgba(157, 228, 218, 0.12); }
.layer-plane:nth-child(3) { margin-left: 3%; background: rgba(200, 185, 232, 0.14); }
.layer-plane:nth-child(4) { margin-left: 4.5%; background: rgba(58, 175, 163, 0.1); }
.layer-plane:nth-child(5) { margin-left: 6%; background: rgba(243, 166, 106, 0.1); }

.layer-plane:hover,
.layer-plane:focus-visible {
  transform: translateY(-8px) rotateX(2deg);
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(58, 175, 163, 0.35);
  box-shadow: 0 18px 40px rgba(32, 26, 43, 0.08);
  outline: none;
}

.layer-num {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--mineral-teal);
}

.layer-plane h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  color: var(--midnight-plum);
}

.layer-plane p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ----- Framework ----- */
.framework {
  background:
    linear-gradient(180deg, rgba(157, 228, 218, 0.08), transparent 40%),
    var(--glass-white);
}

.framework .display-md {
  margin-top: 0.75rem;
  max-width: 18ch;
}

.framework-path {
  position: relative;
  margin-top: 3.5rem;
}

.path-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.1rem;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--glass-aqua),
    var(--mineral-teal),
    var(--lilac),
    var(--warm-apricot)
  );
  opacity: 0.55;
}

.path-line::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 12px;
  left: -5.5px;
  background: linear-gradient(
    to bottom,
    rgba(157, 228, 218, 0.2),
    rgba(58, 175, 163, 0.08),
    transparent
  );
  border-radius: 999px;
}

.framework-steps {
  display: grid;
  gap: 1.75rem;
  padding-left: 3rem;
}

.fw-step {
  position: relative;
  padding: 1.5rem 1.75rem;
  background: rgba(247, 244, 239, 0.7);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.fw-step::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 1.85rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--porcelain);
  border: 2px solid var(--mineral-teal);
  box-shadow: 0 0 0 4px rgba(157, 228, 218, 0.35);
}

.fw-num { color: var(--mineral-teal); display: block; margin-bottom: 0.5rem; }

.fw-step h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--midnight-plum);
}

/* ----- Services ----- */
.services {
  background: var(--porcelain);
}

.service-index {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.service-item {
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.service-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.6rem 0.25rem;
  text-align: left;
  transition: color 0.3s;
}

.service-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.75rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--midnight-plum);
}

.service-arrow {
  font-size: 1rem;
  color: var(--mineral-teal);
  opacity: 0.5;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}

.service-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease), transform 0.45s var(--ease);
  position: relative;
}

.service-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(157, 228, 218, 0.18), rgba(255, 255, 255, 0.55));
  border: 1px solid rgba(157, 228, 218, 0.35);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.service-item.is-open .service-panel,
.service-item:hover .service-panel,
.service-item:focus-within .service-panel {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 1.75rem;
}

.service-item.is-open .service-panel::before,
.service-item:hover .service-panel::before,
.service-item:focus-within .service-panel::before {
  transform: translateY(0);
}

.service-item.is-open .service-arrow,
.service-item:hover .service-arrow,
.service-item:focus-within .service-arrow {
  transform: translateY(-4px);
  opacity: 1;
}

.service-desc {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.service-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--midnight-plum);
}

.service-tags li {
  position: relative;
  padding-left: 0.85rem;
}

.service-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warm-apricot);
}

/* ----- Org X-Ray ----- */
.xray {
  background: var(--glass-white);
}

.org-map {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 50%, rgba(157, 228, 218, 0.12), transparent 55%),
    var(--porcelain);
  border: 1px solid var(--line);
}

.org-map-svg {
  width: 100%;
  height: auto;
}

.conn {
  stroke: var(--midnight-plum);
  stroke-width: 1.25;
  stroke-opacity: 0.35;
}

.conn.hidden {
  stroke: var(--mineral-teal);
  stroke-opacity: 0;
  stroke-dasharray: 5 7;
  transition: stroke-opacity 0.4s var(--ease);
}

.conn.hidden.alt {
  stroke: var(--lilac);
}

.org-map.is-active .conn.hidden,
.node:hover ~ .conn-hidden .conn.hidden,
.node:focus-within ~ .conn-hidden .conn.hidden {
  stroke-opacity: 0;
}

.org-map[data-active] .conn.hidden {
  stroke-opacity: 0.55;
}

.node {
  cursor: pointer;
}

.node-circle {
  fill: rgba(255, 255, 255, 0.75);
  stroke: var(--midnight-plum);
  stroke-width: 1.25;
  stroke-opacity: 0.45;
  transition: fill 0.35s, stroke 0.35s, stroke-width 0.35s;
}

.node:hover .node-circle,
.node:focus .node-circle,
.node.is-active .node-circle {
  fill: rgba(157, 228, 218, 0.35);
  stroke: var(--mineral-teal);
  stroke-width: 2;
  outline: none;
}

.node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  fill: var(--midnight-plum);
  pointer-events: none;
}

.map-legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.leg-vis,
.leg-hid {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--midnight-plum);
  opacity: 0.4;
  margin-right: 0.25rem;
}

.leg-hid {
  background: var(--mineral-teal);
  opacity: 0.7;
  background-image: linear-gradient(90deg, var(--mineral-teal) 50%, transparent 50%);
  background-size: 8px 2px;
}

/* ----- Who Moves ----- */
.who-moves {
  background: var(--warm-apricot);
  color: var(--midnight-plum);
  overflow: hidden;
  position: relative;
}

.who-moves-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.7;
}

.who-moves-arch {
  width: 100%;
  height: 100%;
}

.wm-traveler {
  animation: ascendDot 5.5s var(--ease) infinite;
}

.wm-traveler.t2 { animation-delay: -1.8s; }
.wm-traveler.t3 { animation-delay: -3.4s; }

.who-moves-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.who-moves .display-lg { color: var(--midnight-plum); }
.who-moves .lede { color: rgba(32, 26, 43, 0.72); max-width: 34rem; }

.ascent-line {
  margin-top: 0;
  width: min(240px, 55vw);
  margin-left: auto;
  color: var(--midnight-plum);
}

.ascent-dot {
  animation: ascentPulse 4s var(--ease) infinite;
}

.ascent-dot.d2 { animation-delay: -1.3s; }
.ascent-dot.d3 { animation-delay: -2.6s; }

@keyframes ascentPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ----- People + Systems ----- */
.people-systems {
  background: var(--porcelain);
  padding-block: clamp(5rem, 12vw, 9rem);
}

.split-align {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: 320px;
}

.split-side {
  padding: 2rem 0;
}

.side-people { text-align: left; }
.side-systems { text-align: right; }

.mono-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mono-list li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.split-center {
  display: flex;
  justify-content: center;
  padding: 0 0.5rem;
}

.glass-column {
  width: clamp(48px, 8vw, 72px);
  min-height: 100%;
  background: linear-gradient(
    180deg,
    rgba(157, 228, 218, 0.35),
    rgba(200, 185, 232, 0.25),
    rgba(58, 175, 163, 0.2)
  );
  border: 1px solid rgba(157, 228, 218, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.align-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--midnight-plum);
}

/* ----- Cases ----- */
.cases {
  background: var(--porcelain);
}

.demo-badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--mineral-teal);
}

.case-panels {
  margin-top: 2.5rem;
  display: grid;
  gap: 1rem;
}

.case-panel {
  border: 1px solid var(--line);
  background: var(--glass-white);
  overflow: hidden;
  position: relative;
}

.case-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(220px, 40%);
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(157, 228, 218, 0.12) 40%, rgba(157, 228, 218, 0.12) 55%, transparent 55%),
    linear-gradient(135deg, transparent 58%, rgba(200, 185, 232, 0.14) 58%, rgba(200, 185, 232, 0.14) 72%, transparent 72%);
  pointer-events: none;
  opacity: 0.85;
}

.case-panel:nth-child(2)::before {
  background:
    linear-gradient(145deg, transparent 35%, rgba(243, 166, 106, 0.12) 35%, rgba(243, 166, 106, 0.12) 50%, transparent 50%),
    linear-gradient(145deg, transparent 55%, rgba(58, 175, 163, 0.12) 55%, rgba(58, 175, 163, 0.12) 70%, transparent 70%);
}

.case-panel:nth-child(3)::before {
  background:
    linear-gradient(125deg, transparent 38%, rgba(200, 185, 232, 0.16) 38%, rgba(200, 185, 232, 0.16) 52%, transparent 52%),
    linear-gradient(125deg, transparent 60%, rgba(157, 228, 218, 0.12) 60%, rgba(157, 228, 218, 0.12) 74%, transparent 74%);
}

.case-open {
  width: 100%;
  text-align: left;
  padding: 2rem 1.75rem;
  display: grid;
  gap: 0.75rem;
  transition: background 0.35s;
  position: relative;
  z-index: 1;
}

.case-open:hover {
  background: rgba(157, 228, 218, 0.08);
}

.case-open h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--midnight-plum);
}

.case-hint {
  color: var(--mineral-teal);
}

.case-detail {
  border-top: 1px solid var(--line);
  background: rgba(247, 244, 239, 0.65);
  padding: 0 1.75rem;
  position: relative;
  z-index: 1;
}

.case-detail:not([hidden]) {
  padding-block: 1.75rem;
  animation: caseRise 0.55s var(--ease);
}

@keyframes caseRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-elevator {
  display: grid;
  gap: 0;
  max-width: 36rem;
}

.case-stage {
  padding: 0.75rem 0;
}

.case-stage .mono-label {
  color: var(--mineral-teal);
  display: block;
  margin-bottom: 0.35rem;
}

.case-stage p { color: var(--muted); }

.case-rail {
  width: 1px;
  height: 28px;
  margin-left: 0.4rem;
  background: linear-gradient(to bottom, var(--glass-aqua), var(--mineral-teal));
  position: relative;
}

.case-rail::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm-apricot);
  animation: railPulse 2s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* ----- Leadership ----- */
.leadership {
  background: var(--lilac);
  color: var(--midnight-plum);
}

.leadership .lede { color: rgba(32, 26, 43, 0.7); }

.pillars {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(32, 26, 43, 0.1);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.pillar:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.55);
}

.pillar h3 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin: 0.75rem 0 0.4rem;
}

.pillar p { color: rgba(32, 26, 43, 0.65); }

/* ----- Culture ----- */
.culture {
  background: var(--glass-white);
  overflow: hidden;
}

.culture-map {
  position: relative;
  margin-top: 2.5rem;
  min-height: 360px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 40%, rgba(200, 185, 232, 0.15), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(157, 228, 218, 0.12), transparent 40%),
    var(--porcelain);
}

.culture-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cult-word {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 0.55rem 0.7rem;
  color: var(--midnight-plum);
  border: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
  z-index: 1;
}

.cult-word:hover,
.cult-word:focus-visible,
.cult-word.is-active {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--mineral-teal);
  color: var(--mineral-teal);
  outline: none;
}

.culture-lines line {
  stroke: var(--mineral-teal);
  stroke-width: 1;
  stroke-opacity: 0;
  transition: stroke-opacity 0.4s;
}

.culture-lines line.is-on {
  stroke-opacity: 0.55;
}

/* ----- Insights ----- */
.insights {
  background: var(--porcelain);
}

.insight-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.insight {
  padding: 2rem 1.75rem;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: background 0.35s;
  position: relative;
  min-height: 220px;
}

.insight:hover {
  background: rgba(255, 255, 255, 0.6);
}

.insight-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(58, 175, 163, 0.2);
  position: absolute;
  top: 1rem;
  right: 1.25rem;
}

.insight h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.65rem;
  color: var(--midnight-plum);
  max-width: 16ch;
}

.insight p { color: var(--muted); max-width: 28ch; }

/* ----- About ----- */
.about {
  background: var(--glass-white);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  position: relative;
}

.lens-svg {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.lens-core {
  animation: ascentPulse 3s ease-in-out infinite;
}

.lens-caption {
  text-align: center;
  margin-top: 1rem;
  color: var(--mineral-teal);
}

.about-second {
  margin: 1.75rem 0 2.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -0.015em;
  color: var(--midnight-plum);
  max-width: 28rem;
}

/* ----- Glass Room ----- */
.glass-room {
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(157, 228, 218, 0.12), transparent 60%),
    var(--porcelain);
  overflow: hidden;
}

.room {
  position: relative;
  margin-top: 3rem;
  min-height: clamp(280px, 50vw, 440px);
}

.room-svg {
  width: 100%;
  height: auto;
}

.rs-back,
.rs-left,
.rs-right,
.rs-floor {
  transition: fill-opacity 0.7s var(--ease), stroke-opacity 0.7s var(--ease);
}

.room.is-clear .rs-back,
.room.is-clear .rs-left,
.room.is-clear .rs-right {
  fill-opacity: 0.35;
  stroke-opacity: 0.65;
}

.room.is-clear .room-hidden-line {
  stroke-opacity: 0.45;
  transition: stroke-opacity 0.8s var(--ease);
}

.room-node {
  animation: ascentPulse 4s ease-in-out infinite;
}

.room-node.n2 { animation-delay: -1s; }
.room-node.n3 { animation-delay: -2s; }
.room-node.n4 { animation-delay: -3s; }

.room-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.55;
  transition: opacity 0.5s, color 0.5s, transform 0.5s;
}

.room.is-clear .room-label {
  opacity: 1;
  color: var(--midnight-plum);
  transform: translateY(-2px);
}

.rl1 { top: 48%; left: 28%; }
.rl2 { top: 38%; left: 48%; }
.rl3 { top: 54%; left: 58%; }
.rl4 { top: 22%; left: 22%; }
.rl5 { top: 20%; right: 22%; }
.rl6 { bottom: 18%; left: 46%; }

/* ----- Testimonial ----- */
.testimonial {
  background: var(--soft-apricot);
}

.testimonial blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--midnight-plum);
}

.testimonial footer {
  margin-top: 1.75rem;
  color: rgba(32, 26, 43, 0.55);
}

/* ----- Final CTA ----- */
.final-cta {
  background: var(--deep-plum);
  color: var(--porcelain);
  overflow: hidden;
  text-align: left;
}

.final-cta .display-lg { color: var(--porcelain); }
.final-cta .lede { color: rgba(247, 244, 239, 0.7); }

.cta-escalator {
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(480px, 50vw);
  opacity: 0.35;
  pointer-events: none;
}

.cta-plane {
  fill: rgba(157, 228, 218, 0.25);
  stroke: var(--glass-aqua);
  stroke-width: 1;
  animation: ctaAscend 9s var(--ease) infinite;
}

.cta-plane:nth-child(2) { animation-delay: -2s; fill: rgba(200, 185, 232, 0.22); stroke: var(--lilac); }
.cta-plane:nth-child(3) { animation-delay: -4s; }
.cta-plane:nth-child(4) { animation-delay: -6s; fill: rgba(58, 175, 163, 0.2); }

@keyframes ctaAscend {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-14px); opacity: 1; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--midnight-plum);
  color: var(--porcelain);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}

.brand-line {
  margin-top: 1.5rem;
  max-width: 22rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.brand-secondary {
  margin-top: 0.75rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-nav h3 {
  color: var(--glass-aqua);
  margin-bottom: 1rem;
}

.footer-nav a {
  display: block;
  padding: 0.3rem 0;
  color: rgba(247, 244, 239, 0.7);
  font-size: 0.95rem;
  transition: color 0.25s;
}

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

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 239, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(247, 244, 239, 0.5);
}

.footer-bottom a:hover {
  color: var(--porcelain);
}

.logo-system {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 244, 239, 0.08);
  opacity: 0.55;
}

.logo-var {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--porcelain);
  border-radius: 8px;
}

.logo-var.on-dark {
  background: var(--deep-plum);
}

.logo-var.accent {
  background: var(--lilac);
}

.logo-var.mono {
  background: var(--glass-white);
}

/* ----- Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-architecture {
    opacity: 0.45;
  }

  .intro-visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: min(360px, 80vw);
    margin: 0 auto 2rem;
    opacity: 0.7;
  }

  .who-moves-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .ascent-line {
    margin-left: 0;
    margin-top: 1.5rem;
  }

  .hero-visual {
    order: -1;
    min-height: 340px;
    max-width: 400px;
    margin-inline: auto;
  }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h);
    background: rgba(247, 244, 239, 0.96);
    backdrop-filter: blur(16px);
    padding: 1.5rem var(--space) 2rem;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
    margin-left: 0;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.25rem;
  }

  .nav-toggle { display: flex; }

  .btn-header {
    display: none;
  }

  .pillars,
  .insight-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-align {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .side-people,
  .side-systems {
    text-align: center;
  }

  .split-center {
    order: -1;
    min-height: 80px;
  }

  .glass-column {
    width: 100%;
    min-height: 64px;
  }

  .align-word {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .cta-escalator {
    opacity: 0.2;
    width: 70vw;
    right: -20%;
  }
}

@media (max-width: 640px) {
  .header-main {
    gap: 0.75rem;
  }

  .logo-desc { display: none; }

  .micro-label {
    font-size: 0.5rem;
  }

  .ml-mob, .ml-cult { display: none; }

  .layer-plane {
    margin-left: 0 !important;
    grid-template-columns: 1fr;
  }

  .layer-num {
    grid-row: auto;
  }

  .service-name {
    font-size: 1.35rem;
  }

  .org-map {
    padding: 0.5rem;
  }

  .culture-map {
    min-height: 420px;
  }

  .cult-word {
    font-size: 0.65rem;
    padding: 0.4rem;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .room {
    min-height: 220px;
  }

  .room-label {
    font-size: 0.5rem;
  }

  .atm-orb-c {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
