/* 水獭AI · 河岸工作室 Riverbank Atelier */
:root {
  --ink: #0c1619;
  --ink-soft: #1a2a2e;
  --mist: #e8f2f0;
  --pearl: #f4f7f6;
  --river: #1f6f6a;
  --river-deep: #14524e;
  --foam: #a8d5cf;
  --foam-bright: #d4ebe7;
  --clay: #b8956a;
  --clay-soft: #d4bc96;
  --line: rgba(31, 111, 106, 0.18);
  --shadow: 0 28px 80px rgba(12, 22, 25, 0.28);
  --radius: 18px;
  --font-display: "Noto Serif SC", "Fraunces", serif;
  --font-en: "Fraunces", "Noto Serif SC", serif;
  --font-sans: "Noto Sans SC", "Sora", system-ui, sans-serif;
  --font-mono: "Sora", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(168, 213, 207, 0.45), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(184, 149, 106, 0.12), transparent 50%),
    linear-gradient(180deg, #dceae7 0%, var(--pearl) 28%, #eef4f2 70%, #e3eeeb 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--mist);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.mist {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 255, 255, 0.5), transparent 70%),
    radial-gradient(ellipse 40% 30% at 90% 40%, rgba(168, 213, 207, 0.2), transparent);
  z-index: 0;
  animation: mist-drift 18s ease-in-out infinite alternate;
}

@keyframes mist-drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); opacity: 1; }
}

.ripple-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border: 1.5px solid rgba(31, 111, 106, 0.35);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-out 0.9s var(--ease) forwards;
}

@keyframes ripple-out {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}

.site-header,
.hero,
.section,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--river-deep);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--foam), var(--river));
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(31, 111, 106, 0.25);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--river);
  opacity: 0.75;
  margin-left: 0.15rem;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  opacity: 0.8;
  transition: opacity 0.25s var(--ease), color 0.25s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--river);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 1;
  color: var(--river-deep);
  outline: none;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.btn:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 3px;
}

.btn-small {
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--mist);
  font-size: 0.85rem;
}

.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(12, 22, 25, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--river) 0%, var(--river-deep) 100%);
  color: var(--mist);
  box-shadow: 0 12px 32px rgba(31, 111, 106, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(31, 111, 106, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--river);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  min-height: calc(100svh - 72px);
  padding: clamp(1.5rem, 5vh, 3rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 6vh, 4rem);
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy {
  padding-bottom: clamp(1rem, 4vh, 3rem);
}

.brand-kicker {
  margin: 0 0 0.75rem;
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--river);
  font-weight: 500;
}

.hero-brand {
  margin: 0;
  line-height: 0.95;
}

.brand-zh {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: linear-gradient(120deg, var(--ink) 30%, var(--river-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-en {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-en);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--river);
  letter-spacing: 0.06em;
}

.hero-line {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(12, 22, 25, 0.72);
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-stage {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-height: 420px;
}

.stage-glow {
  position: absolute;
  inset: 12% 8% 8% 8%;
  background: radial-gradient(ellipse at center, rgba(31, 111, 106, 0.35), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: 0.55; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.04); }
}

.editor-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(165deg, #122022 0%, #0c1619 55%, #0f1c1e 100%);
  color: var(--foam-bright);
  box-shadow: var(--shadow);
  border: 1px solid rgba(168, 213, 207, 0.18);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.6s var(--ease);
}

.editor-shell:hover,
.editor-shell.is-active {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}

.editor-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(168, 213, 207, 0.1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(168, 213, 207, 0.35);
}
.dot:nth-child(1) { background: #e8a598; }
.dot:nth-child(2) { background: #d4bc96; }
.dot:nth-child(3) { background: #8fc9b8; }

.tab {
  margin-left: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  color: rgba(232, 242, 240, 0.45);
}
.tab.active {
  background: rgba(31, 111, 106, 0.45);
  color: var(--mist);
}

.path {
  margin-left: auto;
  color: rgba(232, 242, 240, 0.35);
  letter-spacing: 0.02em;
}

.editor-body {
  display: grid;
  grid-template-columns: auto 1fr minmax(140px, 32%);
  min-height: 320px;
}

.gutter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 0.65rem 1.1rem 0.9rem;
  color: rgba(168, 213, 207, 0.28);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: right;
  user-select: none;
}

.code {
  margin: 0;
  padding: 1.1rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: #c8e6e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.code .kw { color: #7ec8bc; }
.code .fn { color: #e8c9a0; }
.code .str { color: #b8d4a8; }
.code .cm { color: rgba(168, 213, 207, 0.45); }
.code .cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--foam);
  vertical-align: -0.1em;
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.agent-panel {
  border-left: 1px solid rgba(168, 213, 207, 0.1);
  padding: 1rem 0.9rem;
  background: linear-gradient(180deg, rgba(31, 111, 106, 0.18), transparent 70%);
  font-size: 0.78rem;
}

.agent-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  color: var(--foam);
  font-weight: 600;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7ec8bc;
  box-shadow: 0 0 0 0 rgba(126, 200, 188, 0.6);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(126, 200, 188, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(126, 200, 188, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 200, 188, 0); }
}

.agent-msg {
  margin: 0 0 0.85rem;
  color: rgba(232, 242, 240, 0.75);
  line-height: 1.5;
}

.agent-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.agent-tools span {
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 242, 240, 0.55);
  font-size: 0.68rem;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3.5rem);
  max-width: 1280px;
  margin: 0 auto;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vh, 3.25rem);
}

.section-head h2,
.agent-copy h2,
.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.section-head p,
.agent-copy > p:not(.eyebrow) {
  margin: 0;
  color: rgba(12, 22, 25, 0.68);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--river);
  font-family: var(--font-en);
}

/* Craft — asymmetric, not 3 equal cards */
.craft-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}

.craft-lead {
  grid-row: 1 / 3;
}

.craft-block {
  padding: 1.75rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(31, 111, 106, 0.1);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease), box-shadow 0.45s, border-color 0.45s;
}

.craft-block:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(12, 22, 25, 0.08);
  border-color: rgba(31, 111, 106, 0.28);
}

.craft-block h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.craft-block p {
  margin: 0;
  color: rgba(12, 22, 25, 0.68);
  font-size: 0.98rem;
}

.craft-visual {
  position: relative;
  margin-top: 1.75rem;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, #0f1c1e, #1a3534);
}

.craft-visual .layer {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(168, 213, 207, 0.2);
}

.craft-visual .l1 {
  inset: 18% 12% 28% 10%;
  background: linear-gradient(90deg, rgba(31, 111, 106, 0.5), rgba(168, 213, 207, 0.15));
  animation: layer-float 7s ease-in-out infinite;
}

.craft-visual .l2 {
  inset: 32% 22% 18% 28%;
  background: rgba(184, 149, 106, 0.25);
  animation: layer-float 9s ease-in-out infinite reverse;
}

.craft-visual .l3 {
  inset: 48% 40% 22% 16%;
  background: rgba(232, 242, 240, 0.12);
  animation: layer-float 5.5s ease-in-out infinite 0.5s;
}

@keyframes layer-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Agent band */
.agent {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.agent-band {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3.5rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(135deg, rgba(20, 82, 78, 0.94), rgba(12, 22, 25, 0.96)),
    radial-gradient(600px 300px at 90% 20%, rgba(168, 213, 207, 0.25), transparent);
  color: var(--mist);
  box-shadow: var(--shadow);
}

.agent-copy h2 {
  color: var(--mist);
}

.agent-copy > p:not(.eyebrow) {
  color: rgba(232, 242, 240, 0.7);
  max-width: 28rem;
}

.agent-copy .eyebrow {
  color: var(--foam);
}

.mode-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mode-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(168, 213, 207, 0.15);
}

.mode-list strong {
  font-family: var(--font-en);
  font-size: 1.05rem;
  min-width: 4.5rem;
  color: var(--foam);
}

.mode-list span {
  color: rgba(232, 242, 240, 0.65);
  font-size: 0.95rem;
}

.mode-stage {
  position: relative;
  min-height: 280px;
}

.mode-card {
  position: absolute;
  width: min(100%, 280px);
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(168, 213, 207, 0.18);
  backdrop-filter: blur(10px);
  transition: transform 0.5s var(--ease), opacity 0.5s, border-color 0.4s, background 0.4s;
  opacity: 0.55;
}

.mode-card.active {
  opacity: 1;
  background: rgba(31, 111, 106, 0.45);
  border-color: rgba(168, 213, 207, 0.45);
  z-index: 2;
}

.mode-card[data-mode="chat"] {
  top: 8%;
  left: 0;
  transform: rotate(-3deg);
}

.mode-card[data-mode="agent"] {
  top: 28%;
  right: 4%;
  left: auto;
}

.mode-card[data-mode="plan"] {
  bottom: 6%;
  left: 12%;
  transform: rotate(2deg);
}

.mode-card.active[data-mode="chat"] { transform: rotate(-3deg) scale(1.04); }
.mode-card.active[data-mode="agent"] { transform: scale(1.06); }
.mode-card.active[data-mode="plan"] { transform: rotate(2deg) scale(1.04); }

.mode-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-en);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--foam);
}

.mode-card p,
.mode-card ol {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(232, 242, 240, 0.8);
}

.mode-card ol {
  padding-left: 1.1rem;
  line-height: 1.7;
}

.mode-bar {
  margin-top: 0.85rem;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.mode-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--foam), var(--clay-soft));
  border-radius: 4px;
  animation: bar-fill 3.2s var(--ease) infinite;
}

@keyframes bar-fill {
  0% { width: 12%; }
  50% { width: 88%; }
  100% { width: 12%; }
}

/* Flow rail — horizontal story, not card grid */
.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-rail::before {
  content: "";
  position: absolute;
  top: 1.35rem;
  left: 8%;
  right: 8%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--river), var(--foam), var(--clay), transparent);
  opacity: 0.45;
}

.flow-item {
  padding: 0 1rem 0 0;
  position: relative;
}

.flow-num {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--river);
  background: var(--pearl);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  position: relative;
  z-index: 1;
}

.flow-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.flow-item p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(12, 22, 25, 0.65);
  max-width: 16rem;
}

/* CTA */
.cta {
  padding-bottom: clamp(3rem, 8vh, 5rem);
}

.cta-panel {
  text-align: center;
  padding: clamp(2.5rem, 7vh, 4.5rem) 1.5rem;
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(168, 213, 207, 0.55), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(232, 242, 240, 0.5));
  border: 1px solid rgba(31, 111, 106, 0.15);
}

.cta-panel p {
  margin: 0 0 1.5rem;
  color: rgba(12, 22, 25, 0.68);
}

.site-footer {
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
  text-align: center;
  color: rgba(12, 22, 25, 0.55);
  font-size: 0.88rem;
  border-top: 1px solid rgba(31, 111, 106, 0.1);
}

.footer-brand {
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.footer-brand .en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--river);
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .hero-stage {
    min-height: 360px;
  }

  .editor-shell {
    transform: none;
  }

  .editor-shell:hover,
  .editor-shell.is-active {
    transform: none;
  }

  .editor-body {
    grid-template-columns: auto 1fr;
  }

  .agent-panel {
    display: none;
  }

  .craft-layout {
    grid-template-columns: 1fr;
  }

  .craft-lead {
    grid-row: auto;
  }

  .agent-band {
    grid-template-columns: 1fr;
  }

  .mode-stage {
    min-height: 320px;
  }

  .flow-rail {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
  }

  .flow-rail::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .site-header {
    justify-content: space-between;
  }

  .flow-rail {
    grid-template-columns: 1fr;
  }

  .mode-card {
    position: relative;
    width: 100%;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin-bottom: 0.75rem;
    opacity: 0.7;
  }

  .mode-card.active {
    transform: none !important;
  }

  .mode-stage {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .mist,
  .stage-glow,
  .pulse,
  .mode-bar i,
  .craft-visual .layer,
  .code .cursor {
    animation: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ripple { display: none; }
}
