/* ==========================================================================
   Dancing Particle — landing page design system
   Deep charcoal space / soft cyan + pale lavender accents, glassmorphic HUD.
   ========================================================================== */

:root {
  --bg: #0b0d12;
  --bg-soft: #10131a;
  --bg-raise: rgba(255, 255, 255, 0.032);

  --text: rgba(243, 246, 251, 0.95);
  --muted: rgba(176, 189, 209, 0.66);
  --muted-dim: rgba(160, 174, 196, 0.42);

  --cyan: #a8e8f0;
  --cyan-bright: #d6f6fb;
  --lav: #d4c4f0;
  --lav-bright: #e9e0fa;

  --line: rgba(178, 206, 228, 0.13);
  --line-strong: rgba(178, 206, 228, 0.24);

  --glass: rgba(20, 25, 34, 0.55);
  --glass-hi: rgba(255, 255, 255, 0.05);

  --font: "Outfit", "Noto Sans SC", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 1.05rem;
  --shadow-glow: 0 18px 60px rgba(140, 210, 235, 0.16);
}

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

html, body, h1, h2, h3, h4, p, ul, figure, article, section, nav, header, footer {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

::selection { background: rgba(168, 232, 240, 0.26); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--lav) 100%);
  box-shadow: 0 0 14px rgba(168, 232, 240, 0.55);
  will-change: transform;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-3d [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: calc(0.75rem + var(--safe-t)) clamp(1rem, 4vw, 2.5rem) 0.75rem;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(72rem, 100%);
  margin: 0 auto;
}
.topbar-end {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}
.topbar.is-stuck {
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brandmark-dot {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-bright) 0%, var(--cyan) 45%, transparent 72%);
  box-shadow: 0 0 12px rgba(168, 232, 240, 0.9);
  animation: pulse-dot 4.2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.65; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

.topnav {
  display: none;
  gap: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.topnav a {
  position: relative;
  transition: color 0.25s var(--ease);
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--lav));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease);
}
.topnav a:hover { color: var(--text); }
.topnav a:hover::after { transform: scaleX(1); }

.lang {
  display: flex;
  gap: 0.1rem;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.026);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lang button {
  padding: 0.28rem 0.62rem;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang button:hover { color: var(--text); }
.lang button.is-on {
  color: #06121a;
  background: linear-gradient(135deg, var(--cyan-bright), var(--lav));
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Hero — asymmetric modern dock (copy left, WebGL open field)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  isolation: isolate;
  overflow: hidden;
  padding:
    calc(5.5rem + var(--safe-t))
    clamp(1.25rem, 5vw, 3.5rem)
    calc(4.5rem + var(--safe-b));
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  touch-action: pan-y;
  cursor: default;
}

.veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 50% at 58% 42%, transparent 10%, rgba(11, 13, 18, 0.2) 55%, rgba(11, 13, 18, 0.72) 100%),
    linear-gradient(105deg, rgba(11, 13, 18, 0.72) 0%, rgba(11, 13, 18, 0.28) 38%, transparent 62%),
    linear-gradient(180deg, rgba(11, 13, 18, 0.5) 0%, transparent 22%, transparent 58%, rgba(11, 13, 18, 0.9) 100%);
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(72rem, 100%);
  margin: 0 auto;
  pointer-events: none;
}

.hero-stack {
  width: min(28rem, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-copy .actions,
.hero-copy .cta,
.hero-copy .cta-ghost {
  pointer-events: auto;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.78;
}

.hero-copy h1 {
  margin-top: 0;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #dceaf3 42%, var(--lav) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 90px rgba(168, 232, 240, 0.18);
  max-width: 12ch;
}

.hero-copy .tag {
  margin-top: 0.85rem;
  font-size: clamp(0.88rem, 1.8vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--cyan-bright);
  opacity: 0.88;
}

.hero-copy .lead {
  margin: 1.05rem 0 0;
  max-width: 26rem;
  font-size: clamp(0.9rem, 1.7vw, 1.02rem);
  color: var(--muted);
  line-height: 1.8;
}

.hero-points {
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: rgba(214, 226, 236, 0.78);
  line-height: 1.45;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(168, 232, 240, 0.55);
  opacity: 0.85;
}

.actions {
  margin-top: 1.55rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.cta-ghost {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--cyan-bright);
  opacity: 0.88;
  border-bottom: 1px solid rgba(168, 232, 240, 0.28);
  padding-bottom: 0.12rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.cta-ghost:hover {
  color: #fff;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.45);
}

/* Soft staggered entrance — presence without noise */
.hero-stack > * {
  animation: heroIn 0.9s var(--ease) both;
}
.hero-stack > :nth-child(1) { animation-delay: 0.05s; }
.hero-stack > :nth-child(2) { animation-delay: 0.12s; }
.hero-stack > :nth-child(3) { animation-delay: 0.18s; }
.hero-stack > :nth-child(4) { animation-delay: 0.24s; }
.hero-stack > :nth-child(5) { animation-delay: 0.3s; }
.hero-stack > :nth-child(6) { animation-delay: 0.36s; }

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(0.7rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #07131b;
  background: linear-gradient(135deg, #dff8fb 0%, var(--cyan) 46%, var(--lav) 100%);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), filter 0.28s var(--ease);
  overflow: hidden;
  isolation: isolate;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.85) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.75s var(--ease);
}
.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 62px rgba(212, 196, 240, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.cta:hover::after { transform: translateX(130%); }
.cta:active { transform: translateY(0) scale(0.985); }
.cta svg { width: 1.05rem; height: 1.05rem; flex: none; }
.cta--lg { padding: 1.05rem 2.2rem; font-size: 0.98rem; }

.cta-note {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.73rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.cta-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.7rem;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: translateY(-50%);
}

.scroll-hint {
  position: absolute;
  bottom: calc(1.4rem + var(--safe-b));
  right: clamp(1.25rem, 5vw, 3.5rem);
  left: auto;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-dim);
  transition: color 0.3s var(--ease);
  pointer-events: auto;
}
.scroll-hint::after {
  content: "";
  display: block;
  width: 1px; height: 2.2rem;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: hint-slide 2.6s var(--ease) infinite;
}
.scroll-hint:hover { color: var(--text); }
@keyframes hint-slide {
  0%   { transform: translateY(-6px); opacity: 0; }
  45%  { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Sheet / sections
   -------------------------------------------------------------------------- */

.sheet {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(168, 232, 240, 0.045), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}

.section {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.75rem, 9vw, 6.5rem) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.25rem);
}
.section-head h2 {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  background: linear-gradient(120deg, #ffffff 0%, #cfe4ef 55%, var(--lav) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.85rem;
}
.section-head p {
  color: var(--muted);
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  max-width: 34rem;
}

/* Feature cards ------------------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  padding: 1.6rem 1.5rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.012) 55%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(168, 232, 240, 0.4), transparent 42%, rgba(212, 196, 240, 0.32));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 60px rgba(8, 12, 20, 0.6), 0 0 0 1px rgba(168, 232, 240, 0.06);
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1.1rem;
  border-radius: 0.7rem;
  color: var(--cyan);
  background: linear-gradient(150deg, rgba(168, 232, 240, 0.14), rgba(212, 196, 240, 0.1));
  border: 1px solid rgba(168, 232, 240, 0.16);
}
.card-icon svg { width: 1.35rem; height: 1.35rem; }

.card h3 {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: 0.5rem;
}
.card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.72;
}

/* Gallery rail ------------------------------------------------------------- */

.gallery-section { width: 100%; max-width: none; padding-left: 0; padding-right: 0; }
.gallery-section .section-head {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
  max-width: none;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(158px, 17vw);
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.35rem clamp(1.25rem, 4vw, 2.25rem) 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 232, 240, 0.22) transparent;
}
@media (min-width: 900px) {
  .rail {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: unset;
    overflow: visible;
    width: min(68rem, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-inline: 0;
    scroll-snap-type: none;
  }
}
.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: transparent; }
.rail::-webkit-scrollbar-thumb {
  background: rgba(168, 232, 240, 0.2);
  border-radius: 99px;
}

.rail figure {
  position: relative;
  scroll-snap-align: center;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  max-height: min(58vh, 460px);
  background: #05070b;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.rail figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(6, 9, 14, 0.6) 100%);
  pointer-events: none;
}
.rail figure:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(168, 232, 240, 0.32);
  box-shadow: 0 26px 60px rgba(6, 10, 18, 0.72), 0 0 40px rgba(168, 232, 240, 0.1);
}
.rail img { width: 100%; height: 100%; object-fit: cover; }

/* About -------------------------------------------------------------------- */

.about-section .section-head { margin-bottom: 1.6rem; }
.prose {
  display: grid;
  gap: 1.15rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 1.7vw, 0.98rem);
  line-height: 1.9;
}
.prose p:first-child { color: rgba(224, 234, 244, 0.82); }

/* Download ----------------------------------------------------------------- */

.download-section { padding-bottom: clamp(3.5rem, 8vw, 5.5rem); }
.download-inner {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4.25rem) clamp(1.5rem, 5vw, 3.5rem);
  border-radius: 1.6rem;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(168, 232, 240, 0.11), transparent 68%),
    radial-gradient(ellipse 70% 80% at 50% 120%, rgba(212, 196, 240, 0.13), transparent 70%),
    linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.download-inner h2 {
  font-size: clamp(1.65rem, 4.4vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 0%, #d5e9f4 50%, var(--lav) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.download-inner > p {
  margin: 0.9rem auto 1.9rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.download-inner .cta-note { margin-top: 0.95rem; }

/* Keywords ----------------------------------------------------------------- */

.keywords-section { padding-top: 0; text-align: center; }
.keywords-title {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 1.35rem;
}
.keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  max-width: 52rem;
  margin: 0 auto;
}
.keywords li {
  padding: 0.32rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.keywords li:hover {
  color: var(--cyan-bright);
  border-color: rgba(168, 232, 240, 0.3);
  background: rgba(168, 232, 240, 0.06);
}

/* Footer ------------------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1.6rem clamp(1.25rem, 4vw, 2.25rem) calc(1.6rem + var(--safe-b));
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted-dim);
}
.foot-links { display: flex; gap: 1.25rem; }
.foot a { transition: color 0.25s var(--ease); }
.foot a:hover { color: var(--cyan); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 720px) {
  .topnav { display: flex; }
  .actions { flex-direction: column; gap: 0.95rem; }
  .rail { grid-auto-columns: minmax(170px, 15vw); }
}

@media (min-width: 1080px) {
  .rail { grid-auto-columns: minmax(180px, 13vw); }
  .hero-stack { width: min(30rem, 42%); }
}

@media (max-width: 719px) {
  .hero {
    align-items: flex-end;
    padding-bottom: calc(5.5rem + var(--safe-b));
  }
  .hero-stack {
    width: 100%;
    max-width: 22rem;
  }
  .section { width: calc(100% - 2rem); }
  .rail { grid-auto-columns: minmax(150px, 44vw); }
  .scroll-hint {
    right: 50%;
    transform: translateX(50%);
    align-items: center;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero-copy h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
  .hero-copy .lead,
  .hero-points { display: none; }
  .scroll-hint { display: none; }
}

/* --------------------------------------------------------------------------
   Reduced motion / fallback
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-stack > * { animation: none; }
  .cta, .card, .rail figure { transition: none; }
  .cta::after { display: none; }
  .scroll-hint::after,
  .brandmark-dot { animation: none; }
}

.no-3d .hero {
  background:
    radial-gradient(ellipse 60% 50% at 50% 42%, rgba(168, 232, 240, 0.14), transparent 66%),
    radial-gradient(ellipse 70% 60% at 50% 105%, rgba(212, 196, 240, 0.16), transparent 70%),
    var(--bg);
}
.no-3d #bg { display: none; }
