:root {
  --bg: #060816;
  --bg-elevated: #0c1024;
  --bg-soft: #11172f;
  --paper: #f5f5f7;
  --paper-2: #ffffff;
  --ink: #0b1020;
  --text: #f7f8ff;
  --muted: #a8afc5;
  --muted-dark: #60687a;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(11, 16, 32, 0.12);
  --accent: #7c5cff;
  --accent-2: #35d6ff;
  --accent-3: #7fffc5;
  --accent-soft: rgba(124, 92, 255, 0.18);
  --coral: #ff7d7d;
  --yellow: #ffe56b;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  --shadow-light: 0 28px 80px rgba(40, 48, 78, 0.12);
  --radius: 30px;
  --shell: 1220px;
}

html[data-theme="citrus"] {
  --accent: #ff7a3d;
  --accent-2: #ff4f9a;
  --accent-3: #ffe36c;
  --accent-soft: rgba(255, 122, 61, 0.18);
}

html[data-theme="ocean"] {
  --accent: #00b6a8;
  --accent-2: #2d8cff;
  --accent-3: #78f0d3;
  --accent-soft: rgba(0, 182, 168, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }

.shell {
  width: min(calc(100% - 44px), var(--shell));
  margin-inline: auto;
}

.panel {
  position: relative;
  overflow: hidden;
}

.overline {
  margin: 0 0 18px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.scrolled {
  background: rgba(6, 8, 22, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(150%);
}

.nav-shell {
  width: min(calc(100% - 36px), 1320px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-photo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  object-fit: cover;
  object-position: center 32%;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.035), 0 8px 22px rgba(0,0,0,0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #c6cbe0;
  font-size: 0.82rem;
  font-weight: 650;
}

.desktop-nav a,
.text-link {
  position: relative;
}

.desktop-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.palette-button,
.say-hello {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.palette-button:hover,
.say-hello:hover {
  background: rgba(255,255,255,0.1);
}

.palette-swatch {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span {
  width: 22px;
  height: 1.5px;
  display: block;
  margin: 6px auto;
  background: white;
  transition: transform 180ms ease;
}

.mobile-nav {
  display: none;
}

.cursor-glow {
  position: fixed;
  z-index: 2;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 250ms ease;
  filter: blur(6px);
}

body:hover .cursor-glow { opacity: 0.75; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(6,8,22,0.25), rgba(6,8,22,0.9)),
    radial-gradient(circle at 75% 28%, rgba(124, 92, 255, 0.14), transparent 35%),
    var(--bg);
}

.hero-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.62;
  mix-blend-mode: screen;
  animation: float 12s ease-in-out infinite alternate;
}

.orb-one {
  width: 520px;
  height: 520px;
  top: -220px;
  right: -80px;
  background: radial-gradient(circle, var(--accent), transparent 68%);
}

.orb-two {
  width: 480px;
  height: 480px;
  right: 22%;
  bottom: -250px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation-delay: -3s;
}

.orb-three {
  width: 360px;
  height: 360px;
  top: 28%;
  left: -210px;
  background: radial-gradient(circle, var(--accent-3), transparent 70%);
  animation-delay: -6s;
}

@keyframes float {
  from { transform: translate3d(-24px, -14px, 0) scale(0.96); }
  to { transform: translate3d(32px, 30px, 0) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
  padding: 130px 0 92px;
}

.hero-copy {
  padding-top: 34px;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 28px;
  font-size: clamp(3.75rem, 7.1vw, 7.8rem);
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.word-window {
  min-height: 1.03em;
  display: block;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 2%, var(--accent-2) 48%, var(--accent) 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

#rotating-word {
  display: block;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1), opacity 250ms ease;
}

#rotating-word.switching {
  opacity: 0;
  transform: translateY(55%);
}

.hero-summary {
  max-width: 720px;
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.ghost-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 21px;
  border-radius: 15px;
  font-size: 0.88rem;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  border: 1px solid transparent;
  color: #07101d;
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
  box-shadow: 0 16px 40px rgba(53, 214, 255, 0.17);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-3px);
}

.ghost-button {
  border: 1px solid var(--line);
  color: white;
  background: rgba(255,255,255,0.045);
  cursor: pointer;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 34px;
  color: #8f98b3;
  font-size: 0.77rem;
}

.hero-facts span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-facts span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d7690;
}

.hero-system {
  position: relative;
  min-width: 0;
}

.system-caption {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
  padding-inline: 20px;
  color: #8f98b3;
  font-size: 0.74rem;
}

.system-caption strong {
  max-width: 240px;
  color: #e6e9f5;
  text-align: right;
  font-size: 0.82rem;
}

.constellation {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.04), rgba(255,255,255,0.015) 45%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(255,255,255,0.03), 0 30px 90px rgba(0,0,0,0.28);
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
}

.constellation::after {
  inset: 28%;
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.constellation-lines path {
  fill: none;
  stroke: rgba(168, 175, 197, 0.22);
  stroke-width: 1.3;
  stroke-dasharray: 4 8;
}

.system-node {
  position: absolute;
  z-index: 3;
  min-width: 104px;
  min-height: 72px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: white;
  background: rgba(17, 23, 47, 0.84);
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.system-node:hover,
.system-node.active {
  transform: translateY(-5px) scale(1.035);
  border-color: var(--accent-2);
  background: linear-gradient(145deg, rgba(53,214,255,0.16), rgba(124,92,255,0.12));
}

.node-core {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.node-core:hover,
.node-core.active {
  transform: translate(-50%, calc(-50% - 5px)) scale(1.035);
}

.node-cloud { top: 10%; left: 8%; }
.node-data { top: 8%; right: 7%; }
.node-ai { right: 3%; bottom: 17%; }
.node-integration { bottom: 10%; left: 7%; }

.node-icon {
  color: var(--accent-2);
  font-size: 1.25rem;
}

.node-label {
  font-size: 0.85rem;
  font-weight: 760;
}

.node-detail {
  color: #8f98b3;
  font-size: 0.68rem;
}

.system-tooltip {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: -34px;
  width: min(82%, 420px);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 14, 31, 0.94);
  box-shadow: 0 18px 45px rgba(0,0,0,0.34);
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.system-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, -8px);
}

.system-tooltip strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.84rem;
}

.system-tooltip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.scroll-cue {
  position: absolute;
  z-index: 5;
  bottom: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #77809a;
  font-size: 0.68rem;
  transform: translateX(-50%);
}

.scroll-cue i {
  width: 44px;
  height: 1px;
  background: #69728b;
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1px;
  background: white;
  animation: scrollCue 1.8s ease-in-out infinite;
}

@keyframes scrollCue {
  0% { transform: translateX(-20px); }
  100% { transform: translateX(48px); }
}

.statement {
  background: var(--paper);
  color: var(--ink);
}

.statement-inner {
  padding: 140px 0;
}

.statement-kicker {
  margin: 0 0 30px;
  color: var(--muted-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.statement blockquote {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 7.2rem);
  font-weight: 760;
  line-height: 0.99;
  letter-spacing: -0.065em;
}

.statement blockquote span {
  color: var(--accent);
}

.capabilities {
  padding: 128px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(53,214,255,0.08), transparent 30%),
    radial-gradient(circle at 90% 65%, rgba(124,92,255,0.11), transparent 28%),
    var(--bg);
}

.section-heading {
  max-width: 810px;
  margin-bottom: 55px;
}

.section-heading h2,
.journey-intro h2,
.human-copy h2,
.connect-inner h2 {
  margin: 0 0 20px;
  font-size: clamp(2.85rem, 5.8vw, 6rem);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

.section-heading > p:last-child,
.journey-intro > p:last-child,
.human-copy > p:last-child,
.connect-inner > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "large connect"
    "large govern"
    "wide wide";
  gap: 20px;
}

.bento-card {
  position: relative;
  min-height: 420px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 200ms ease, background 200ms ease;
}

.bento-card:hover {
  border-color: rgba(255,255,255,0.26);
  background: rgba(255,255,255,0.065);
}

.bento-large { grid-area: large; min-height: 860px; }
.card-connect { grid-area: connect; }
.card-govern { grid-area: govern; }
.bento-wide { grid-area: wide; min-height: 440px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8e97b1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.card-copy {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
}

.card-copy h3,
.clarity-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.78rem, 3.25vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.card-copy p,
.clarity-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
}

.platform-visual {
  width: 86%;
  min-height: 500px;
  margin: 55px auto 180px;
  display: grid;
  align-content: center;
  gap: 26px;
  perspective: 800px;
}

.platform-layer {
  position: relative;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  transform: rotateX(56deg) rotateZ(-13deg);
  box-shadow: 0 34px 70px rgba(0,0,0,0.34);
}

.platform-layer > span {
  position: absolute;
  top: -28px;
  left: 0;
  color: #8992ac;
  font-size: 0.74rem;
  transform: rotateZ(13deg);
}

.platform-layer i {
  width: 64px;
  height: 50px;
  border-radius: 11px;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.layer-old {
  background: linear-gradient(145deg, rgba(255,125,125,0.18), rgba(255,255,255,0.035));
}

.layer-new {
  background: linear-gradient(145deg, rgba(53,214,255,0.18), rgba(124,92,255,0.11));
}

.platform-bridge {
  height: 90px;
  display: flex;
  justify-content: space-around;
  padding-inline: 70px;
  transform: rotateZ(-13deg);
}

.platform-bridge span {
  width: 2px;
  height: 100%;
  background: linear-gradient(var(--coral), var(--accent-2));
  box-shadow: 0 0 18px var(--accent);
}

.pulse-visual,
.govern-visual {
  position: relative;
  width: 270px;
  height: 235px;
  margin: 32px auto 120px;
}

.pulse-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pulse-visual path {
  fill: none;
  stroke: rgba(255,255,255,0.18);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.pulse-core,
.pulse-node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  background: #121a36;
  box-shadow: 0 0 0 10px rgba(53,214,255,0.04);
}

.pulse-core {
  width: 86px;
  height: 86px;
  top: 67px;
  left: 92px;
  color: var(--accent-2);
  font-weight: 850;
  box-shadow: 0 0 45px rgba(53,214,255,0.2);
}

.pulse-node {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.pulse-node::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: white;
}

.p1 { top: 30px; left: 33px; }
.p2 { top: 23px; right: 20px; }
.p3 { bottom: 22px; right: 9px; }
.p4 { bottom: 16px; left: 24px; }

.govern-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 50%;
}

.ring-one { inset: 25px; }
.ring-two { inset: 68px; }

.govern-core {
  position: absolute;
  inset: 87px 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08121d;
  font-size: 0.78rem;
  font-weight: 900;
}

.govern-tag {
  position: absolute;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  background: #11182f;
  color: #c5cadb;
  font-size: 0.68rem;
  font-weight: 700;
}

.tag-access { top: 0; left: 95px; }
.tag-lineage { top: 90px; right: -5px; }
.tag-quality { bottom: 3px; left: 92px; }
.tag-ownership { top: 90px; left: -20px; }

.clarity-copy {
  position: relative;
  z-index: 2;
}

.clarity-visual {
  position: relative;
  min-height: 300px;
}

.scribble {
  position: absolute;
  width: 140px;
  height: 52px;
  border: 2px solid rgba(255,255,255,0.16);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.scribble::after,
.scribble::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 1px;
  background: rgba(255,255,255,0.14);
}

.scribble::before { top: 17px; left: 12px; }
.scribble::after { top: 31px; left: 20px; }

.scribble-one { top: 32px; left: 5%; }
.scribble-two { top: 125px; left: 18%; transform: rotate(8deg); }
.scribble-three { bottom: 16px; left: 1%; transform: rotate(-3deg); }

.clarity-arrow {
  position: absolute;
  top: 43%;
  left: 41%;
  color: var(--accent-2);
  font-size: 3rem;
}

.clarity-card {
  position: absolute;
  top: 35px;
  right: 4%;
  width: 42%;
  min-height: 225px;
  display: grid;
  align-content: center;
  gap: 17px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(53,214,255,0.12), rgba(124,92,255,0.12));
  box-shadow: 0 25px 70px rgba(0,0,0,0.26);
}

.clarity-card span {
  font-size: 0.82rem;
  font-weight: 800;
}

.clarity-card i {
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

.showcase {
  padding: 140px 0;
  background: var(--paper);
  color: var(--ink);
}

.showcase-heading p:last-child { color: var(--muted-dark); }

.story-console {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: 34px;
  background: white;
  box-shadow: var(--shadow-light);
}

.story-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-dark);
}

.story-tab {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-right: 1px solid var(--line-dark);
  color: #737b8d;
  background: #fbfbfc;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.story-tab:last-child { border-right: 0; }

.story-tab span {
  color: #a0a6b3;
  font-size: 0.66rem;
}

.story-tab:hover,
.story-tab.active {
  color: var(--ink);
  background: white;
}

.story-tab.active {
  box-shadow: inset 0 -3px 0 var(--accent);
}

.story-stage {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  min-height: 650px;
}

.story-content {
  padding: 55px;
}

.story-label {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-content h3 {
  margin: 0 0 22px;
  font-size: clamp(2.3rem, 4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.story-description {
  margin: 0;
  color: var(--muted-dark);
  font-size: 1.03rem;
}

.story-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.story-details > div {
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}

.story-details span {
  display: block;
  margin-bottom: 8px;
  color: #8b92a1;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-details p {
  margin: 0;
  color: #4d5565;
  font-size: 0.83rem;
}

.story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 35px;
}

.story-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f2f6;
  color: #596172;
  font-size: 0.68rem;
  font-weight: 700;
}

.story-visual {
  position: relative;
  min-height: 650px;
  padding: 28px;
  border-left: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(11,16,32,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,16,32,0.035) 1px, transparent 1px),
    #f5f6f9;
  background-size: 28px 28px;
  overflow: hidden;
}

.visual-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #687083;
  font-size: 0.72rem;
  font-weight: 700;
}

.visual-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--ink);
  background: white;
  font-size: 0.68rem;
  font-weight: 750;
  cursor: pointer;
}

.flow-canvas {
  position: absolute;
  inset: 80px 25px 25px;
  display: grid;
  grid-template-columns: 0.7fr 0.25fr 1.45fr 0.25fr 0.7fr;
  align-items: center;
  gap: 8px;
}

.flow-column {
  display: grid;
  gap: 14px;
}

.flow-column-label {
  margin-bottom: 6px;
  color: #7f8797;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.flow-box {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(11,16,32,0.12);
  border-radius: 13px;
  background: white;
  box-shadow: 0 10px 25px rgba(30,42,74,0.07);
  color: #31394a;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 760;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.flow-box.highlight {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 38px var(--accent-soft);
  background: linear-gradient(135deg, white, var(--accent-soft));
}

.platform-frame {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1.5px solid var(--accent);
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 20px 55px var(--accent-soft);
}

.guardrail-strip {
  grid-column: 1 / -1;
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #333a4a;
  background: linear-gradient(90deg, rgba(124,92,255,0.14), rgba(53,214,255,0.14));
  font-size: 0.65rem;
  font-weight: 800;
}

.flow-line {
  position: relative;
  height: 2px;
  background: #aeb5c3;
  overflow: hidden;
}

.flow-line::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 0;
  border-width: 4px 0 4px 7px;
  border-style: solid;
  border-color: transparent transparent transparent #8d95a4;
}

.flow-line i {
  position: absolute;
  width: 30%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-120%);
}

.story-visual.playing .flow-line i {
  animation: flowLine 1.15s linear infinite;
}

@keyframes flowLine {
  to { transform: translateX(430%); }
}

.flow-pulse {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  opacity: 0;
}

.journey {
  padding: 140px 0;
  background:
    radial-gradient(circle at 10% 50%, rgba(53,214,255,0.08), transparent 25%),
    var(--bg);
}

.journey-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 58px;
}

.journey-intro > p:last-child {
  justify-self: end;
  padding-bottom: 10px;
}

.journey-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 6px 1px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.journey-track::-webkit-scrollbar { display: none; }

.journey-card {
  flex: 0 0 min(430px, 82vw);
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.045);
  scroll-snap-align: start;
  transition: transform 200ms ease, background 200ms ease;
}

.journey-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.065);
}

.journey-card.current {
  color: #07101c;
  background: linear-gradient(145deg, var(--accent-3), var(--accent-2));
}

.journey-year {
  color: #8f98b3;
  font-size: 0.72rem;
  font-weight: 720;
}

.current .journey-year { color: rgba(7,16,28,0.62); }

.journey-company {
  margin-top: 55px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.current .journey-company { color: rgba(7,16,28,0.7); }

.journey-card h3 {
  margin: 10px 0 18px;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
}

.current p { color: rgba(7,16,28,0.72); }

.journey-accent {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 28px;
}

.journey-accent span {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b8bfd1;
  font-size: 0.64rem;
  font-weight: 700;
}

.current .journey-accent span {
  border-color: rgba(7,16,28,0.15);
  color: rgba(7,16,28,0.75);
}

.journey-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.journey-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.journey-progress {
  height: 2px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.journey-progress span {
  width: 25%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 180ms ease;
}

.notes {
  padding: 140px 0;
  background: var(--paper);
  color: var(--ink);
}

.notes-heading p:last-child { color: var(--muted-dark); }

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-card {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-light);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.note-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 36px 90px rgba(40,48,78,0.18);
}

.note-blue { background: linear-gradient(145deg, #d9efff, #f8fcff); }
.note-violet { background: linear-gradient(145deg, #e8e0ff, #fbf9ff); }
.note-coral { background: linear-gradient(145deg, #ffdcd3, #fff9f7); }

.note-index {
  color: rgba(11,16,32,0.47);
  font-size: 0.68rem;
  font-weight: 800;
}

.note-mini-diagram {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 28px 0 34px;
}

.lakehouse-mini span,
.integration-mini span {
  min-height: 52px;
  min-width: 74px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(11,16,32,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.72);
  font-size: 0.64rem;
  font-weight: 780;
}

.lakehouse-mini i {
  width: 20px;
  height: 1px;
  background: #697184;
}

.lifecycle-mini {
  position: relative;
  flex-wrap: wrap;
}

.lifecycle-mini::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(11,16,32,0.28);
  border-radius: 50%;
}

.lifecycle-mini span {
  position: relative;
  z-index: 2;
  min-width: 72px;
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11,16,32,0.13);
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  font-size: 0.62rem;
  font-weight: 760;
}

.integration-mini i {
  color: #4d5668;
  font-style: normal;
}

.note-card h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.note-card p {
  margin: 0;
  color: #5a6272;
}

.note-open {
  margin-top: auto;
  padding-top: 32px;
  font-size: 0.73rem;
  font-weight: 780;
}

.human {
  padding: 140px 0;
  background: #0a0d1c;
}

.human-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 75px;
  align-items: center;
}

.hobby-stack {
  position: relative;
  min-height: 580px;
  perspective: 1100px;
}

.hobby-card {
  position: absolute;
  width: min(360px, 76vw);
  min-height: 470px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  color: var(--ink);
  background: white;
  box-shadow: 0 36px 90px rgba(0,0,0,0.35);
  cursor: pointer;
  transition: transform 350ms cubic-bezier(.2,.8,.2,1), filter 250ms ease;
}

.hobby-card:nth-child(1) { top: 35px; left: 0; transform: rotate(-9deg); background: #dff3ff; }
.hobby-card:nth-child(2) { top: 70px; left: 28%; transform: rotate(2deg); background: #e9e2ff; }
.hobby-card:nth-child(3) { top: 28px; right: 0; transform: rotate(10deg); background: #ffe0d6; }

.hobby-card:hover,
.hobby-card:focus {
  z-index: 5;
  outline: none;
  transform: translateY(-18px) rotate(0deg) scale(1.04);
}

.hobby-number {
  color: rgba(11,16,32,0.45);
  font-size: 0.68rem;
  font-weight: 800;
}

.hobby-art {
  position: relative;
  height: 240px;
  margin: 22px 0 30px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
}

.hobby-card h3 {
  margin: 0 0 7px;
  font-size: 2rem;
  letter-spacing: -0.045em;
}

.hobby-card p {
  margin: 0;
  color: #626b7b;
}

.sun {
  position: absolute;
  width: 62px;
  height: 62px;
  top: 30px;
  right: 38px;
  border-radius: 50%;
  background: #ffdf68;
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  border-right: 120px solid transparent;
  border-left: 120px solid transparent;
  border-bottom: 155px solid #7597c5;
}

.m1 { left: -20px; }
.m2 { right: -55px; border-bottom-color: #4f6e9c; transform: scale(0.82); }

.trail {
  position: absolute;
  z-index: 2;
  width: 85px;
  height: 170px;
  bottom: -40px;
  left: 50%;
  border-left: 17px solid transparent;
  border-right: 17px solid transparent;
  border-bottom: 170px solid #f5d2a1;
  transform: translateX(-50%);
}

.house {
  position: absolute;
  width: 130px;
  height: 100px;
  bottom: 38px;
  left: 50%;
  border-radius: 7px;
  background: #7065bf;
  transform: translateX(-50%);
}

.house::before {
  content: "";
  position: absolute;
  top: -58px;
  left: -15px;
  border-right: 80px solid transparent;
  border-left: 80px solid transparent;
  border-bottom: 64px solid #4b438a;
}

.house::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 55px;
  right: 22px;
  bottom: 0;
  background: #efeaff;
}

.signal {
  position: absolute;
  top: 30px;
  left: 50%;
  border: 3px solid #7166c4;
  border-color: #7166c4 transparent transparent transparent;
  border-radius: 50%;
  transform: translateX(-50%);
}

.s1 { width: 55px; height: 55px; }
.s2 { width: 90px; height: 90px; top: 16px; }
.s3 { width: 125px; height: 125px; top: 2px; }

.board {
  position: absolute;
  width: 200px;
  height: 48px;
  left: 50%;
  border-radius: 8px;
  background: #c98a5d;
  transform-origin: center;
}

.b1 { top: 76px; transform: translateX(-50%) rotate(16deg); }
.b2 { top: 132px; transform: translateX(-50%) rotate(-8deg); background: #a96a48; }

.tool {
  position: absolute;
  width: 25px;
  height: 155px;
  top: 40px;
  left: 55%;
  border-radius: 8px;
  background: #535d6c;
  transform: rotate(32deg);
}

.tool::before {
  content: "";
  position: absolute;
  width: 70px;
  height: 38px;
  top: -8px;
  left: -22px;
  border-radius: 9px;
  background: #38404c;
}

.connect {
  min-height: 780px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(53,214,255,0.12), transparent 35%),
    linear-gradient(180deg, #0a0d1c, #060816);
}

.connect-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.connect-glow::before,
.connect-glow::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}

.connect-glow::before { inset: 90px; }
.connect-glow::after { inset: 190px; }

.connect-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.connect-inner h2 {
  max-width: 1050px;
  margin-inline: auto;
}

.connect-inner > p {
  margin-inline: auto;
}

.connect-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 38px;
}

.primary-button.light {
  background: white;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0,0,0,0.24);
}

.text-link {
  color: #d7dbee;
  font-size: 0.82rem;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #7e879f;
  font-size: 0.76rem;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-inner strong { color: white; }
.footer-inner p { margin: 0; }

.story-dialog,
.note-dialog {
  width: min(calc(100% - 40px), 780px);
  padding: 0;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft), transparent 33%),
    #0b1022;
  box-shadow: 0 40px 120px rgba(0,0,0,0.58);
}

.story-dialog::backdrop,
.note-dialog::backdrop {
  background: rgba(3,5,14,0.78);
  backdrop-filter: blur(12px);
}

.story-dialog {
  min-height: 520px;
  padding: 55px;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: white;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.dialog-progress {
  height: 3px;
  margin-bottom: 58px;
  border-radius: 99px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.dialog-progress span {
  width: 25%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 240ms ease;
}

.dialog-step { display: none; }
.dialog-step.active { display: block; animation: dialogIn 300ms ease; }

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

.dialog-step h2,
.note-dialog h2 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.dialog-step > p:last-child,
.note-dialog > p {
  color: var(--muted);
  font-size: 1.02rem;
}

.dialog-controls {
  position: absolute;
  right: 55px;
  bottom: 35px;
  left: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-controls button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}

.dialog-controls span {
  color: #8992aa;
  font-size: 0.76rem;
}

.note-dialog {
  padding: 52px;
}

.note-preview-diagram {
  min-height: 190px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 36px 0 20px;
}

.preview-stage {
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  text-align: center;
}

.preview-stage span { font-weight: 780; }
.preview-stage small { color: #9098ae; font-size: 0.66rem; }
.note-preview-diagram > i { color: var(--accent-2); font-style: normal; }
.note-coming { margin-bottom: 0; font-size: 0.73rem !important; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms cubic-bezier(.2,.8,.2,1), transform 760ms cubic-bezier(.2,.8,.2,1);
}

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

@media (max-width: 1080px) {
  .hero-content,
  .story-stage,
  .human-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    gap: 80px;
  }

  .hero-system {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "large"
      "connect"
      "govern"
      "wide";
  }

  .bento-large { min-height: 780px; }
  .card-connect, .card-govern { min-height: 500px; }
  .story-visual { border-top: 1px solid var(--line-dark); border-left: 0; }
  .journey-intro { grid-template-columns: 1fr; }
  .journey-intro > p:last-child { justify-self: start; }
  .note-grid { grid-template-columns: 1fr; }
  .note-card { min-height: 470px; }
  .human-grid { gap: 35px; }
  .hobby-stack { width: min(100%, 820px); margin-inline: auto; }
}

@media (max-width: 760px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .desktop-nav, .palette-label, .say-hello { display: none; }
  .menu-button { display: block; }

  .mobile-nav {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10,14,31,0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .mobile-nav.open { display: flex; }
  .mobile-nav a { padding: 13px 14px; color: #d8dcef; font-size: 0.9rem; }
  .palette-button { width: 40px; padding: 0; }

  .hero { min-height: auto; }
  .hero-content { padding: 125px 0 90px; gap: 58px; }
  .hero h1 { font-size: clamp(3.35rem, 15vw, 5.6rem); }
  .hero-summary { font-size: 1rem; }
  .hero-facts span + span::before { display: none; }
  .hero-facts { flex-direction: column; }
  .constellation { width: 100%; }
  .system-node { min-width: 76px; min-height: 58px; padding: 8px; border-radius: 16px; }
  .node-core { width: 118px; height: 118px; }
  .node-label { font-size: 0.7rem; }
  .node-detail { display: none; }
  .system-tooltip { bottom: -54px; }
  .scroll-cue { display: none; }

  .statement-inner { padding: 100px 0; }
  .statement blockquote { font-size: clamp(2.8rem, 13vw, 5.5rem); }

  .capabilities,
  .showcase,
  .journey,
  .notes,
  .human {
    padding: 100px 0;
  }

  .section-heading h2,
  .journey-intro h2,
  .human-copy h2,
  .connect-inner h2 {
    font-size: clamp(2.65rem, 11.5vw, 4.9rem);
  }

  .bento-card { padding: 22px; }
  .bento-large { min-height: 680px; }
  .platform-visual { width: 100%; margin-bottom: 190px; }
  .platform-bridge { padding-inline: 45px; }
  .card-copy { right: 22px; bottom: 22px; left: 22px; }
  .bento-wide { grid-template-columns: 1fr; min-height: 720px; }
  .clarity-visual { min-height: 350px; }
  .clarity-card { width: 54%; right: 0; }
  .clarity-arrow { left: 34%; }

  .story-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .story-tabs::-webkit-scrollbar { display: none; }
  .story-tab { flex: 0 0 175px; border-bottom: 1px solid var(--line-dark); }
  .story-content { padding: 34px 24px; }
  .story-details { grid-template-columns: 1fr; }
  .story-visual { min-height: 560px; padding: 18px; }
  .flow-canvas {
    inset: 72px 15px 15px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .flow-column { grid-template-columns: repeat(2, 1fr); }
  .flow-column-label { grid-column: 1 / -1; }
  .flow-line { width: 2px; height: 24px; justify-self: center; }
  .flow-line::after {
    top: auto;
    right: -3px;
    bottom: 0;
    border-width: 7px 4px 0 4px;
    border-color: #8d95a4 transparent transparent transparent;
  }
  .platform-frame { grid-template-columns: repeat(2, 1fr); }
  .output-column { grid-template-columns: repeat(2, 1fr); }

  .journey-card { min-height: 430px; }
  .note-card { min-height: 460px; padding: 22px; }
  .note-mini-diagram { transform: scale(0.9); }

  .hobby-stack { min-height: 830px; }
  .hobby-card {
    position: relative;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    min-height: 430px;
    margin-bottom: -260px;
    transform: rotate(0deg) !important;
  }
  .hobby-card:last-child { margin-bottom: 0; }
  .hobby-card:hover,
  .hobby-card:focus { transform: translateY(-14px) scale(1.01) !important; }

  .connect { min-height: 650px; }
  .connect-actions { flex-direction: column; }
  .footer-inner { min-height: 140px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }

  .story-dialog,
  .note-dialog { border-radius: 24px; }
  .story-dialog { min-height: 590px; padding: 45px 24px 90px; }
  .dialog-controls { right: 24px; bottom: 25px; left: 24px; }
  .note-dialog { padding: 46px 24px 28px; }
  .note-preview-diagram { grid-template-columns: 1fr; }
  .note-preview-diagram > i { transform: rotate(90deg); justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}


.footer-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.footer-contacts a,
.footer-contacts button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #dfe4f1;
  background: rgba(255,255,255,0.045);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-contacts a:hover,
.footer-contacts button:hover {
  color: white;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

.footer-contacts svg {
  width: 18px;
  height: 18px;
}

.wechat-dialog {
  width: min(calc(100% - 40px), 500px);
  padding: 48px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  color: white;
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft), transparent 34%),
    #0b1022;
  box-shadow: 0 40px 120px rgba(0,0,0,0.58);
}

.wechat-dialog::backdrop {
  background: rgba(3,5,14,0.78);
  backdrop-filter: blur(12px);
}

.wechat-dialog h2 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.wechat-dialog > p:not(.overline):not(.wechat-copy-message) {
  color: var(--muted);
}

.wechat-id-card {
  min-height: 112px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  margin: 28px 0 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
}

.wechat-id-card span {
  color: #929ab0;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wechat-id-card strong {
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.wechat-copy {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.wechat-copy-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent-3);
  text-align: center;
  font-size: 0.76rem;
}


@media (max-width: 760px) {
  .footer-inner {
    align-items: center;
    text-align: center;
  }

  .footer-contacts {
    margin-top: 2px;
  }

  .wechat-dialog {
    padding: 44px 24px 30px;
  }
}


/* Final layout correction: keep the two compact capability diagrams above their text. */
.card-connect,
.card-govern {
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.card-connect .pulse-visual,
.card-govern .govern-visual {
  flex: 0 0 auto;
  margin: 26px auto 18px;
  transform: scale(0.88);
  transform-origin: center;
}

.card-connect .card-copy,
.card-govern .card-copy {
  position: static;
  margin-top: auto;
  padding-top: 8px;
}

.card-connect .card-copy h3,
.card-govern .card-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 2.55vw, 2.8rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.card-connect .card-copy p,
.card-govern .card-copy p {
  font-size: 0.94rem;
  line-height: 1.5;
}

/* Keep the LinkedIn, WeChat and email controls in one horizontal row. */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
}

.footer-contacts {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

.footer-contacts a,
.footer-contacts button {
  flex: 0 0 40px;
}

@media (max-width: 1080px) {
  .card-connect,
  .card-govern {
    min-height: 500px;
  }
}

@media (max-width: 760px) {
  .card-connect,
  .card-govern {
    min-height: auto;
  }

  .card-connect .pulse-visual,
  .card-govern .govern-visual {
    margin: 22px auto 14px;
    transform: scale(0.8);
  }

  .card-connect .card-copy,
  .card-govern .card-copy {
    margin-top: 0;
  }

  .footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-contacts {
    justify-content: center;
  }
}


/* Mobile-only architecture story fix: keep the full diagram in normal document flow. */
@media (max-width: 760px) {
  .story-stage {
    min-height: 0;
  }

  .story-visual {
    min-height: 0;
    height: auto;
    padding: 18px;
    overflow: visible;
  }

  .visual-toolbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .flow-canvas {
    position: static;
    inset: auto;
    min-height: 0;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }

  .flow-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .flow-column-label {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .platform-column {
    display: grid;
    grid-template-columns: 1fr;
  }

  .platform-frame {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
  }

  .guardrail-strip {
    min-height: 34px;
    padding: 7px 8px;
    line-height: 1.25;
    text-align: center;
  }

  .flow-box {
    min-width: 0;
    min-height: 48px;
    padding: 9px 7px;
    font-size: 0.67rem;
    overflow-wrap: anywhere;
  }

  .flow-line {
    width: 2px;
    height: 26px;
    justify-self: center;
  }

  .flow-line::after {
    top: auto;
    right: -3px;
    bottom: 0;
    border-width: 7px 4px 0 4px;
    border-color: #8d95a4 transparent transparent transparent;
  }

  .flow-line i {
    width: 100%;
    height: 30%;
    transform: translateY(-120%);
  }

  .story-visual.playing .flow-line i {
    animation: flowLineMobile 1.15s linear infinite;
  }

  .flow-pulse {
    display: none;
  }
}

@keyframes flowLineMobile {
  to { transform: translateY(430%); }
}
