:root {
  --bg: #080b12;
  --bg-2: #101622;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4f2ec;
  --muted: #aab3c5;
  --faint: #667084;
  --teal: #33d9cb;
  --amber: #f5b84a;
  --coral: #ff6b62;
  --violet: #9b7bff;
  --green: #9be477;
  --blue: #68a9ff;
  --rail: 88px;
  --generator-grid: rgba(51, 217, 203, 0.075);
  --generator-line: rgba(51, 217, 203, 0.26);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #060910 0%, #080b12 48%, #05070c 100%);
  color: var(--text);
  font-family:
    "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC",
    "SimSun", "Times New Roman", serif;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    repeating-linear-gradient(180deg, rgba(51, 217, 203, 0.035) 0 1px, transparent 1px 5px);
  background-size: 48px 48px, 48px 48px, 100% 6px;
  opacity: 0.56;
  mix-blend-mode: screen;
}

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

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

.dream-float-layer {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.dream-float {
  position: absolute;
  width: var(--w);
  aspect-ratio: 0.75;
  background-image: url("./assets/dream-elements-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 200%;
  background-position: var(--sx) var(--sy);
  filter: saturate(0.95) drop-shadow(0 18px 42px rgba(51, 217, 203, 0.12));
  mix-blend-mode: screen;
  opacity: var(--o);
  transform: translate3d(0, 0, 0) rotate(var(--r0)) scale(var(--s0));
  animation: dreamFloat var(--dur) ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.dream-float--clock {
  --w: 148px;
  --sx: 0%;
  --sy: 0%;
  --o: 0.18;
  --r0: -8deg;
  --r1: 5deg;
  --s0: 1;
  --s1: 1.08;
  --dx: 30px;
  --dy: -44px;
  --dur: 18s;
  --delay: -4s;
  top: 18vh;
  left: 9vw;
}

.dream-float--eye {
  --w: 130px;
  --sx: 33.333%;
  --sy: 0%;
  --o: 0.13;
  --r0: 4deg;
  --r1: -7deg;
  --s0: 1;
  --s1: 1.05;
  --dx: -28px;
  --dy: 38px;
  --dur: 21s;
  --delay: -9s;
  top: 10vh;
  right: 13vw;
}

.dream-float--stair {
  --w: 124px;
  --sx: 66.666%;
  --sy: 0%;
  --o: 0.14;
  --r0: 9deg;
  --r1: -2deg;
  --s0: 1;
  --s1: 1.06;
  --dx: 34px;
  --dy: 24px;
  --dur: 24s;
  --delay: -14s;
  top: 47vh;
  right: 7vw;
}

.dream-float--neuron {
  --w: 156px;
  --sx: 100%;
  --sy: 0%;
  --o: 0.16;
  --r0: -3deg;
  --r1: 8deg;
  --s0: 1;
  --s1: 1.09;
  --dx: -42px;
  --dy: -26px;
  --dur: 20s;
  --delay: -2s;
  right: -18px;
  bottom: 7vh;
}

.dream-float--shard {
  --w: 132px;
  --sx: 0%;
  --sy: 100%;
  --o: 0.16;
  --r0: 7deg;
  --r1: -10deg;
  --s0: 1;
  --s1: 1.04;
  --dx: 38px;
  --dy: 32px;
  --dur: 22s;
  --delay: -11s;
  left: 6vw;
  bottom: 13vh;
}

.dream-float--frame {
  --w: 118px;
  --sx: 33.333%;
  --sy: 100%;
  --o: 0.12;
  --r0: -5deg;
  --r1: 7deg;
  --s0: 1;
  --s1: 1.07;
  --dx: -30px;
  --dy: -34px;
  --dur: 25s;
  --delay: -17s;
  top: 24vh;
  left: 58vw;
}

.dream-float--arc {
  --w: 146px;
  --sx: 66.666%;
  --sy: 100%;
  --o: 0.17;
  --r0: 11deg;
  --r1: -6deg;
  --s0: 1;
  --s1: 1.05;
  --dx: 22px;
  --dy: -40px;
  --dur: 19s;
  --delay: -7s;
  left: 43vw;
  bottom: 4vh;
}

.dream-float--door {
  --w: 122px;
  --sx: 100%;
  --sy: 100%;
  --o: 0.13;
  --r0: -9deg;
  --r1: 4deg;
  --s0: 1;
  --s1: 1.06;
  --dx: 28px;
  --dy: 34px;
  --dur: 23s;
  --delay: -13s;
  top: 38vh;
  left: 3vw;
}

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--rail);
  padding: 26px 20px;
  border-right: 1px solid rgba(51, 217, 203, 0.18);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.075), transparent 22%),
    rgba(6, 9, 16, 0.82);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.rail::before {
  content: "DREAM GEN";
  color: rgba(51, 217, 203, 0.72);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.rail-brand {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.rail-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rail nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.rail nav a {
  position: relative;
  width: 28px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1.15;
  text-align: center;
  writing-mode: vertical-rl;
  transition: color 0.2s ease, transform 0.2s ease;
}

.rail nav a::before {
  position: absolute;
  top: 50%;
  left: -12px;
  width: 5px;
  height: 5px;
  border: 1px solid rgba(51, 217, 203, 0.44);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.rail nav a:hover,
.rail nav a.active {
  color: var(--teal);
  transform: translateX(2px);
}

.rail nav a.active::before {
  background: var(--teal);
  box-shadow: 0 0 14px rgba(51, 217, 203, 0.62);
}

.scroll-meter {
  position: relative;
  width: 2px;
  flex: 1;
  min-height: 120px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-meter span {
  position: absolute;
  inset: 0 0 auto;
  height: 0;
  background: linear-gradient(var(--teal), var(--coral));
}

main {
  position: relative;
  z-index: 1;
  padding-left: var(--rail);
}

.section {
  position: relative;
  min-height: 100vh;
  padding: 88px clamp(32px, 6vw, 92px);
  display: grid;
  align-content: center;
}

.section + .section {
  border-top: 1px solid rgba(51, 217, 203, 0.12);
}

.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 76px;
  margin-bottom: 44px;
  padding-top: 30px;
}

.section-heading::before {
  position: absolute;
  top: 0;
  left: 0;
  color: rgba(51, 217, 203, 0.74);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

#judgement .section-heading::before {
  content: "INPUT / INTENT MATRIX";
}

#idea .section-heading::before {
  content: "VISUAL ENGINE / DREAM LANGUAGE";
}

#structure .section-heading::before {
  content: "SEQUENCE MAP / NARRATIVE RUN";
}

#execution .section-heading::before {
  content: "RENDER PIPELINE / PRODUCTION CORE";
}

#team .section-heading::before {
  content: "CREATOR PROFILE / SOURCE DATA";
}

.section-heading span {
  position: relative;
  min-height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(51, 217, 203, 0.36);
  color: var(--teal);
  background: rgba(51, 217, 203, 0.08);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-heading span::after {
  position: absolute;
  top: 50%;
  left: calc(100% + 16px);
  content: "";
  width: 46px;
  height: 2px;
  background: var(--teal);
  transform: translateY(-50%);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  position: relative;
  max-width: 740px;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 1.1;
  font-weight: 820;
  letter-spacing: 0;
}

.glitch-title {
  color: transparent;
  background:
    linear-gradient(92deg, #fffaf0 0%, #f7ead1 42%, #ffffff 58%, #aeece6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: none;
}

.glitch-title span {
  display: block;
}

.glitch-title::before,
.glitch-title::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: attr(data-text);
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  white-space: pre-line;
  mix-blend-mode: screen;
  opacity: 0;
}

.glitch-title::before {
  color: var(--teal);
  transform: translate(0);
  clip-path: inset(18% 0 64% 0);
  animation: titleGlitchA 3.8s infinite steps(1, end);
}

.glitch-title::after {
  color: #f5b84a;
  transform: translate(0);
  clip-path: inset(66% 0 18% 0);
  animation: titleGlitchB 4.4s infinite steps(1, end);
}

.glitch-title .dream-word {
  position: relative;
}

h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.16;
  font-weight: 820;
  letter-spacing: 0;
}

.section-claim {
  max-width: 920px;
  margin: -18px 0 34px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.55;
}

h3 {
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  font-weight: 780;
}

.hero {
  grid-template-columns: minmax(0, 920px);
  align-items: center;
  justify-content: start;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.68) 0%, rgba(8, 11, 18, 0.42) 42%, rgba(8, 11, 18, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 11, 18, 0.06), rgba(8, 11, 18, 0.34));
  pointer-events: none;
}

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

.meta {
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.generator-readout {
  width: min(100%, 640px);
  margin-bottom: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: "SFMono-Regular", "Menlo", monospace;
}

.generator-readout span {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(51, 217, 203, 0.3);
  color: rgba(174, 236, 230, 0.92);
  background: rgba(6, 13, 20, 0.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.generator-readout span:nth-child(2)::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 12px rgba(155, 228, 119, 0.74);
}

.lead {
  max-width: 680px;
  margin-top: 34px;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 42px;
  align-items: center;
}

.primary-action,
.text-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 760;
}

.primary-action {
  padding: 0 28px;
  border: 1px solid rgba(51, 217, 203, 0.54);
  background:
    linear-gradient(90deg, rgba(51, 217, 203, 0.88), rgba(174, 236, 230, 0.78));
  color: #071015;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.26),
    0 14px 36px rgba(51, 217, 203, 0.14);
}

.text-action {
  color: var(--muted);
}

.hero-black-hole {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-black-hole::before {
  position: absolute;
  inset: 10% 7%;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 58%);
  filter: blur(34px);
  opacity: 0.55;
}

.hero-black-hole video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero .hero-black-hole video {
  filter: brightness(1.18) contrast(1.04) saturate(1.06);
}

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

.intention-lead,
.intention-card,
.cycle-panel,
.story-track article,
.structure-flow article,
.implementation-card,
.process-block,
.tech-goals article,
.team-card,
.closing-card {
  position: relative;
  border: 1px solid rgba(51, 217, 203, 0.2);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.045), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 38%),
    rgba(255, 255, 255, 0.062);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    0 24px 70px rgba(0, 0, 0, 0.18);
}

.intention-lead::before,
.intention-card::before,
.cycle-panel::before,
.story-track article::before,
.structure-flow article::before,
.implementation-card::before,
.process-block::before,
.tech-goals article::before,
.team-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: min(180px, 58%);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.8;
}

.intention-lead {
  grid-column: 1 / -1;
  min-height: auto;
  padding: 34px 38px;
  display: grid;
  align-content: center;
}

.intention-lead span {
  margin-bottom: 16px;
  color: var(--teal);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.intention-lead p {
  color: var(--text);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 720;
  line-height: 1.62;
}

.intention-card {
  min-height: 300px;
  padding: 30px 28px;
  display: grid;
  align-content: start;
}

.intention-card h3 {
  color: var(--teal);
  font-size: clamp(22px, 1.9vw, 28px);
}

.intention-card:nth-child(3) h3 {
  color: var(--amber);
}

.intention-card:nth-child(4) h3 {
  color: var(--coral);
}

.intention-card:nth-child(5) h3 {
  color: var(--violet);
}

.intention-card p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.74;
}

.creative-intro {
  max-width: 980px;
  margin: -18px 0 34px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.55;
}

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

.creative-card {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-rows: 240px 1fr;
  border: 1px solid rgba(51, 217, 203, 0.2);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.045), transparent 34%),
    rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.026),
    0 24px 70px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.creative-card::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: min(180px, 58%);
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: 0.8;
}

.creative-card img,
.creative-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.creative-media {
  overflow: hidden;
}

.creative-media--crop video {
  width: 116%;
  height: 116%;
  transform: translate(-2%, -2%);
}

.creative-media--contain video {
  object-fit: contain;
  background: #05070d;
}

.creative-card div {
  padding: 28px;
}

.creative-card .creative-media {
  padding: 0;
}

.creative-card span {
  min-height: 30px;
  padding: 0 9px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(51, 217, 203, 0.34);
  color: var(--teal);
  background: rgba(51, 217, 203, 0.07);
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.creative-card h3 {
  margin-top: 18px;
  color: var(--text);
}

.creative-card b {
  display: block;
  margin-top: 14px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
}

.creative-card p {
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.keyword-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 0;
}

.keyword-pills em {
  padding: 6px 10px;
  border: 1px solid rgba(51, 217, 203, 0.32);
  border-radius: 999px;
  color: var(--teal);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.12), rgba(51, 217, 203, 0.04));
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}

.creative-card:nth-child(2) span,
.creative-card:nth-child(2) h3 {
  color: var(--amber);
}

.creative-card:nth-child(2) span {
  border-color: rgba(245, 184, 74, 0.34);
  background: rgba(245, 184, 74, 0.08);
}

.creative-card:nth-child(2) .keyword-pills em {
  border-color: rgba(245, 184, 74, 0.34);
  color: var(--amber);
  background: rgba(245, 184, 74, 0.08);
}

.creative-card:nth-child(3) span,
.creative-card:nth-child(3) h3 {
  color: var(--coral);
}

.creative-card:nth-child(3) span {
  border-color: rgba(255, 107, 98, 0.34);
  background: rgba(255, 107, 98, 0.08);
}

.creative-card:nth-child(3) .keyword-pills em {
  border-color: rgba(255, 107, 98, 0.34);
  color: var(--coral);
  background: rgba(255, 107, 98, 0.08);
}

.center-claim,
.creative-synthesis {
  max-width: 940px;
  margin: 52px auto 0;
  text-align: center;
}

.center-claim {
  color: var(--text);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 780;
}

.creative-synthesis {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.synthesis-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.synthesis-pills span {
  position: relative;
  min-height: 52px;
  padding: 0 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(51, 217, 203, 0.44);
  border-radius: 999px;
  color: var(--teal);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.14), rgba(51, 217, 203, 0.045));
  box-shadow: 0 0 28px rgba(51, 217, 203, 0.09);
  font-size: clamp(18px, 1.7vw, 24px);
  font-weight: 850;
}

.synthesis-pills span + span::before {
  position: absolute;
  left: -14px;
  width: 14px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.24);
}

.synthesis-pills span:nth-child(2) {
  border-color: rgba(245, 184, 74, 0.46);
  color: var(--amber);
  background:
    linear-gradient(180deg, rgba(245, 184, 74, 0.15), rgba(245, 184, 74, 0.045));
  box-shadow: 0 0 28px rgba(245, 184, 74, 0.08);
}

.synthesis-pills span:nth-child(3) {
  border-color: rgba(255, 107, 98, 0.46);
  color: var(--coral);
  background:
    linear-gradient(180deg, rgba(255, 107, 98, 0.15), rgba(255, 107, 98, 0.045));
  box-shadow: 0 0 28px rgba(255, 107, 98, 0.08);
}

.creative-synthesis p {
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 760;
}

.story-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.story-track article {
  position: relative;
  min-height: 360px;
  padding: 34px 28px;
  border-right-width: 0;
}

.story-track article:last-child {
  border-right-width: 1px;
}

.story-track article::after {
  position: absolute;
  top: 56px;
  right: -10px;
  z-index: 1;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--teal);
  border-right: 2px solid var(--teal);
  content: "";
  transform: rotate(45deg);
}

.story-track article:last-child::after {
  content: none;
}

.story-track span {
  color: var(--teal);
  font-weight: 850;
  letter-spacing: 0.12em;
}

.story-track h3 {
  margin-top: 88px;
}

.story-track p {
  color: var(--muted);
  font-size: 18px;
}

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

.structure-flow article {
  position: relative;
  min-height: 520px;
  padding: 30px;
  display: grid;
  align-content: start;
}

.structure-flow article::after {
  position: absolute;
  top: 44px;
  right: -16px;
  z-index: 1;
  width: 30px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--teal), transparent);
}

.structure-flow article:last-child::after {
  content: none;
}

.structure-flow article:nth-child(2)::after {
  top: auto;
  right: 44px;
  bottom: -20px;
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--teal), transparent);
}

.structure-flow strong {
  color: var(--teal);
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.structure-flow span {
  margin-top: 22px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.structure-flow h3 {
  margin-top: 42px;
}

.structure-flow p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.structure-visual {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.structure-visual b {
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.structure-visual ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.structure-visual li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.structure-visual li::before {
  position: absolute;
  top: 0.76em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: currentColor;
  opacity: 0.64;
}

.structure-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.structure-keywords em {
  padding: 7px 11px;
  border: 1px solid rgba(51, 217, 203, 0.36);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(51, 217, 203, 0.08);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.structure-flow article:nth-child(2) .structure-keywords em {
  border-color: rgba(245, 184, 74, 0.38);
  color: var(--amber);
  background: rgba(245, 184, 74, 0.08);
}

.structure-flow article:nth-child(3) .structure-keywords em {
  border-color: rgba(255, 107, 98, 0.38);
  color: var(--coral);
  background: rgba(255, 107, 98, 0.08);
}

.structure-flow article:nth-child(4) .structure-keywords em {
  border-color: rgba(155, 123, 255, 0.4);
  color: var(--violet);
  background: rgba(155, 123, 255, 0.08);
}

.structure-ladder {
  max-width: 980px;
  margin: 42px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.structure-ladder span {
  position: relative;
  min-height: 48px;
  padding: 0 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 17px;
  font-weight: 820;
}

.structure-ladder span + span::before {
  position: absolute;
  left: -20px;
  color: var(--teal);
  content: "↓";
  font-size: 20px;
  transform: rotate(-90deg);
}

.structure-flow article:nth-child(2) strong,
.structure-flow article:nth-child(2) span {
  color: var(--amber);
}

.structure-flow article:nth-child(3) strong,
.structure-flow article:nth-child(3) span {
  color: var(--coral);
}

.structure-flow article:nth-child(4) strong,
.structure-flow article:nth-child(4) span {
  color: var(--violet);
}

.brain-stack {
  display: grid;
  gap: 18px;
}

.execution-monitors {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.tv-frame {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.tv-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 12px;
  padding: 14px 12px 18px 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(180deg, #20242d, #070a10 58%, #04060b);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -18px 32px rgba(0, 0, 0, 0.3),
    0 28px 70px rgba(0, 0, 0, 0.34);
}

.tv-frame::after {
  position: absolute;
  right: 23px;
  bottom: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: 0 0 14px rgba(51, 217, 203, 0.7);
}

.tv-frame::before {
  position: absolute;
  right: 17px;
  top: 18px;
  width: 22px;
  height: calc(100% - 72px);
  content: "";
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0 2px,
    transparent 2px 7px
  );
  opacity: 0.45;
}

.tv-screen {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0, 0, 0, 0.68);
  background: #03050a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 28px rgba(51, 217, 203, 0.1);
}

.tv-screen::before,
.tv-screen::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.tv-screen::before {
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: screen;
  opacity: 0.22;
}

.tv-screen::after {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.12), transparent 24%),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.28) 100%);
}

.brain-stack video {
  width: 100%;
  display: block;
  aspect-ratio: 1.45;
  background: #03050a;
  object-fit: contain;
}

.tv-controls {
  display: grid;
  align-content: end;
  justify-items: center;
  gap: 10px;
  padding-bottom: 18px;
}

.tv-controls span {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(180deg, #2a303a, #06080d);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.36);
}

.tv-controls i {
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.implementation-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.implementation-card {
  padding: 28px;
}

.implementation-card h3 {
  color: var(--teal);
}

.implementation-card:nth-child(2) h3 {
  color: var(--violet);
}

.implementation-card:nth-child(3) h3 {
  color: var(--amber);
}

.implementation-card:nth-child(4) h3 {
  color: var(--coral);
}

.implementation-card > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 18px;
  margin-top: 24px;
}

.pipeline span {
  position: relative;
  min-height: 38px;
  padding: 0 12px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(51, 217, 203, 0.24);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.08), rgba(255, 255, 255, 0.035));
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 14px;
  font-weight: 780;
}

.pipeline span + span::before {
  position: absolute;
  left: -15px;
  color: var(--teal);
  content: "↓";
  transform: rotate(-90deg);
}

.implementation-detail {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.implementation-detail b,
.process-block h3,
.tech-goals b {
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
}

.implementation-detail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.implementation-detail li {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 760;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tool-pills em {
  padding: 7px 11px;
  border: 1px solid rgba(51, 217, 203, 0.36);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(51, 217, 203, 0.08);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  line-height: 1;
}

.process-block {
  margin-top: 24px;
  padding: 28px;
}

.tech-goals-title {
  margin-top: 30px;
}

.tech-goals-title h3 {
  color: var(--text);
  font-size: clamp(22px, 2vw, 30px);
}

.workflow {
  display: grid;
  grid-template-columns: repeat(9, minmax(94px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.workflow span {
  min-height: 58px;
  padding: 12px 8px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(51, 217, 203, 0.24);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(51, 217, 203, 0.08), rgba(255, 255, 255, 0.035));
  font-size: 15px;
  font-weight: 760;
  text-align: center;
}

.tech-goals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.tech-goals article {
  min-height: 190px;
  padding: 24px;
}

.tech-goals article:nth-child(2) b {
  color: var(--violet);
}

.tech-goals article:nth-child(3) b {
  color: var(--amber);
}

.tech-goals article:nth-child(4) b {
  color: var(--coral);
}

.tech-goals p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.66;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px;
}

.team-card {
  padding: 30px;
}

.team-card--lead {
  min-height: 280px;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(51, 217, 203, 0.12), transparent 46%),
    var(--panel);
}

.team-card--lead span {
  color: var(--teal);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.team-card h3 {
  color: var(--text);
}

.team-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.team-card--lead p {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 760;
  line-height: 1.58;
}

.team-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.team-card li {
  position: relative;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 760;
}

.team-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid rgba(51, 217, 203, 0.32);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(51, 217, 203, 0.08);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.team-card--project {
  grid-column: 1 / -1;
}

.team-pills,
.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.team-pills em,
.project-list span {
  border: 1px solid rgba(51, 217, 203, 0.32);
  color: var(--teal);
  background: rgba(51, 217, 203, 0.08);
  font-style: normal;
  font-weight: 820;
}

.team-pills em {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

.team-card--experience {
  grid-column: 1 / -1;
}

.project-list span {
  min-height: 48px;
  padding: 10px 16px;
  display: inline-grid;
  place-items: center;
  font-size: 16px;
}

.project-list + p {
  margin-top: 24px;
  color: var(--text);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 780;
}

.closing {
  min-height: 92vh;
  overflow: hidden;
  place-items: center;
}

.closing::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    radial-gradient(circle at 52% 48%, rgba(8, 11, 18, 0.18), rgba(8, 11, 18, 0.76) 62%),
    linear-gradient(180deg, rgba(8, 11, 18, 0.18), rgba(8, 11, 18, 0.64));
  pointer-events: none;
}

.closing-card {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  text-align: center;
}

.closing-card h2 {
  font-size: clamp(58px, 9vw, 138px);
  line-height: 0.95;
  background: linear-gradient(92deg, #fffaf0 0%, #f7ead1 48%, #aeece6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 20px 70px rgba(51, 217, 203, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes nodeOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-14px) scale(1.015);
  }
}

@keyframes titleGlitchA {
  0%,
  18%,
  36%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(18% 0 64% 0);
  }
  19% {
    opacity: 0.42;
    transform: translate(-4px, 1px);
    clip-path: inset(16% 0 68% 0);
  }
  20% {
    opacity: 0.34;
    transform: translate(5px, -1px);
    clip-path: inset(42% 0 42% 0);
  }
  21% {
    opacity: 0.22;
    transform: translate(1px, 0);
    clip-path: inset(7% 0 78% 0);
  }
  37% {
    opacity: 0.28;
    transform: translate(3px, -1px);
    clip-path: inset(58% 0 22% 0);
  }
  38% {
    opacity: 0.18;
    transform: translate(-2px, 1px);
    clip-path: inset(28% 0 56% 0);
  }
}

@keyframes titleGlitchB {
  0%,
  26%,
  55%,
  100% {
    opacity: 0;
    transform: translate(0);
    clip-path: inset(66% 0 18% 0);
  }
  27% {
    opacity: 0.36;
    transform: translate(4px, 1px);
    clip-path: inset(58% 0 24% 0);
  }
  28% {
    opacity: 0.38;
    transform: translate(-5px, -1px);
    clip-path: inset(72% 0 9% 0);
  }
  29% {
    opacity: 0.18;
    transform: translate(-1px, 0);
    clip-path: inset(50% 0 35% 0);
  }
  56% {
    opacity: 0.38;
    transform: translate(5px, 0);
    clip-path: inset(18% 0 64% 0);
  }
  57% {
    opacity: 0.2;
    transform: translate(-3px, 1px);
    clip-path: inset(38% 0 44% 0);
  }
}

@keyframes dreamFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--r0)) scale(var(--s0));
  }
  100% {
    transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r1)) scale(var(--s1));
  }
}

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

@media (max-width: 1100px) {
  .intention-grid,
  .story-track,
  .structure-flow,
  .implementation-stack,
  .tech-goals,
  .team-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow {
    grid-template-columns: repeat(3, 1fr);
  }

  .execution-monitors {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --rail: 0px;
  }

  .rail {
    display: none;
  }

  .dream-float {
    opacity: calc(var(--o) * 0.72);
  }

  .dream-float--eye,
  .dream-float--stair,
  .dream-float--frame {
    display: none;
  }

  .dream-float--clock,
  .dream-float--arc {
    --w: 112px;
  }

  .dream-float--neuron,
  .dream-float--shard,
  .dream-float--door {
    --w: 96px;
  }

  main {
    padding-left: 0;
  }

  .section {
    min-height: auto;
    padding: 72px 20px;
  }

  .hero {
    min-height: 100vh;
  }

  h1 {
    font-size: clamp(38px, 10vw, 48px);
    line-height: 1.12;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .creative-grid,
  .story-track,
  .structure-flow,
  .implementation-stack,
  .tech-goals,
  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-card--lead,
  .team-card--project,
  .team-card--experience {
    grid-column: auto;
  }

  .intention-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .intention-lead {
    padding: 26px;
  }

  .intention-card {
    min-height: 280px;
    padding: 22px 18px;
  }

  .intention-card h3 {
    font-size: 21px;
  }

  .intention-card p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.68;
  }

  .structure-flow article {
    min-height: auto;
  }

  .structure-flow article::after {
    top: auto;
    right: 28px;
    bottom: -9px;
    width: 1px;
    height: 24px;
    content: "";
    background: linear-gradient(var(--teal), transparent);
  }

  .structure-flow article:nth-child(2)::after {
    right: 28px;
    bottom: -9px;
    width: 1px;
    height: 24px;
  }

  .structure-ladder {
    align-items: center;
    flex-direction: column;
    gap: 26px;
  }

  .structure-ladder span + span::before {
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .pipeline {
    display: grid;
    gap: 22px;
  }

  .pipeline span + span::before {
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
  }

  .story-track article::after {
    top: auto;
    right: 28px;
    bottom: -8px;
    transform: rotate(135deg);
  }

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