/* doremi landing page: restrained blue-gray palette, scoped to index.html. */
.home-page {
  --home-ink: #172c3c;
  --home-text: #314a5b;
  --home-muted: #647785;
  --home-steel: #99a6b1;
  --home-soft: #e3e9f2;
  --home-line: #d5dfe9;
  --home-blue: #6290b1;
  --home-cyan: #9cc3dd;
  --home-petal: #d9c4d1;
  --home-paper: #ffffff;
  --home-canvas: #f4f6f9;
  --home-field-blue: 98 144 177;
  --home-field-pink: 214 190 205;
  --home-field-pale: 156 195 221;
  min-width: 320px;
  overflow-x: clip;
  background: var(--home-canvas);
  color: var(--home-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-shell {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 18px 0;
}

.home-motion-field {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.home-hero {
  position: relative;
  isolation: isolate;
  --tide-glow-left: rgb(156 195 221 / 22%);
  --tide-glow-right: rgb(98 144 177 / 10%);
  min-height: min(920px, calc(100vh - 28px));
  min-height: min(920px, calc(100svh - 28px));
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 12% 5%, rgb(255 255 255 / 55%), transparent 42%),
    linear-gradient(124deg, rgb(227 233 242 / 55%) 0%, rgb(241 245 248 / 31%) 53%, rgb(248 250 252 / 42%) 100%);
  box-shadow: 0 2px 5px rgb(31 55 72 / 3%), 0 16px 42px rgb(31 55 72 / 6%);
}

.home-scroll-nav {
  position: fixed;
  z-index: 80;
  top: 12px;
  left: 50%;
  width: min(720px, calc(100% - 32px));
  min-height: 58px;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid rgb(220 229 235 / 88%);
  border-radius: 12px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 10px 32px rgb(31 55 72 / 11%);
  opacity: 0;
  transform: translate(-50%, -10px);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.22, 1, .36, 1);
  backdrop-filter: blur(14px);
}

.home-scroll-nav.is-visible { opacity: 1; transform: translate(-50%, 0); }
.home-scroll-nav[hidden] { display: none !important; }
.home-scroll-brand { color: var(--home-ink); font-size: 17px; font-weight: 760; text-decoration: none; }
.home-scroll-link { margin-left: auto; color: var(--home-text); font-size: 12px; font-weight: 600; text-decoration: none; }
.home-scroll-cta { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 8px; background: var(--home-ink); color: #fff; font-size: 12px; font-weight: 650; text-decoration: none; transition: transform 160ms ease, background-color 160ms ease; }
.home-scroll-cta:hover { transform: translateY(-1px); background: #29495f; }
.home-scroll-nav a:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 3px; }

.home-hero::before {
  position: absolute;
  z-index: 0;
  inset: 39% -10% -8%;
  background:
    radial-gradient(ellipse at 22% 65%, var(--tide-glow-left), transparent 48%),
    radial-gradient(ellipse at 74% 52%, var(--tide-glow-right), transparent 44%);
  content: "";
  opacity: .85;
  pointer-events: none;
  animation: home-tide-glow 22s ease-in-out -7s infinite alternate;
}

.home-ocean {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.home-ocean-lines {
  position: absolute;
  bottom: -1%;
  left: -5%;
  width: 110%;
  height: 48%;
  overflow: visible;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 23%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 23%, #000 76%, transparent 100%);
}

.ocean-wave {
  transform-box: fill-box;
  transform-origin: center;
  animation: ocean-current 14s ease-in-out infinite alternate;
}

.ocean-wave-mid { animation-duration: 18s; animation-delay: -8s; }
.ocean-wave-near { animation-duration: 22s; animation-delay: -13s; }

@keyframes ocean-current {
  0% { transform: translate3d(-8px, 6px, 0) scaleY(.99); }
  100% { transform: translate3d(9px, -8px, 0) scaleY(1.015); }
}

@keyframes home-tide-glow {
  0% { opacity: .72; transform: translate3d(-1.4%, 1%, 0) scale(1); }
  100% { opacity: .96; transform: translate3d(1.2%, -1%, 0) scale(1.025); }
}

.home-nav {
  position: relative;
  z-index: 4;
  width: min(1160px, 100%);
  min-height: 80px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2.5vw, 32px);
}

.doremi-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--home-ink);
  text-decoration: none;
}

.doremi-wordmark {
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1;
}

.doremi-brand-caption {
  color: var(--home-muted);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: .015em;
}

.home-main-nav {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.home-nav-dropdown {
  position: relative;
}

.home-nav-link,
.home-mobile-toggle {
  position: relative;
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.home-nav-link::-webkit-details-marker,
.home-mobile-toggle::-webkit-details-marker { display: none; }

.home-main-nav .home-nav-link::after {
  position: absolute;
  right: 13px;
  bottom: 5px;
  left: 13px;
  height: 1px;
  border-radius: 1px;
  background: var(--home-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 170ms ease;
}

.home-main-nav .home-nav-link:hover::after,
.home-main-nav .home-nav-link:focus-visible::after,
.home-nav-dropdown[open] > .home-nav-link::after { transform: scaleX(1); }

.home-nav-link:hover,
.home-nav-dropdown[open] > .home-nav-link,
.home-mobile-toggle:hover,
.home-mobile-dropdown[open] > .home-mobile-toggle {
  background: rgb(255 255 255 / 62%);
  color: var(--home-ink);
}

.home-nav-link > svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 140ms ease;
}

.home-nav-dropdown[open] > .home-nav-link > svg { transform: rotate(180deg); }

.home-nav-menu,
.home-mobile-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  min-width: 250px;
  padding: 9px;
  border: 1px solid var(--home-line);
  border-radius: 14px;
  background: var(--home-paper);
  box-shadow: 0 12px 34px rgb(27 48 64 / 12%);
  animation: home-nav-in 140ms ease-out both;
}

.home-nav-menu { left: 0; }

.home-menu-label {
  display: block;
  padding: 8px 10px 7px;
  color: var(--home-muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: .11em;
}

.home-nav-menu a {
  min-height: 42px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 9px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.home-nav-menu a:hover,
.home-mobile-menu a:hover {
  background: var(--home-soft);
  color: var(--home-ink);
}

.home-nav-menu a svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--home-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-nav-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.home-nav-actions .home-login,
.home-language-toggle,
.home-nav-cta {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.home-language-toggle {
  min-width: 42px;
  background: transparent;
  cursor: pointer;
}

.home-language-toggle:hover,
.home-language-toggle:focus-visible {
  background: rgb(255 255 255 / 62%);
  color: var(--home-ink);
  outline: none;
}

.home-nav-actions .home-login:hover {
  background: rgb(255 255 255 / 62%);
  color: var(--home-ink);
}

.home-nav-cta {
  gap: 8px;
  padding-inline: 15px;
  background: var(--home-ink);
  color: #fff;
}

.home-nav-cta:hover {
  transform: translateY(-1px);
  background: #29495f;
}

.home-nav-cta span { transition: transform 120ms ease; }
.home-nav-cta:hover span { transform: translate(2px, -2px); }

.home-mobile-dropdown {
  position: relative;
  flex: 0 0 auto;
  display: none;
}

.home-mobile-toggle > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.home-mobile-menu {
  right: 0;
  width: min(280px, calc(100vw - 48px));
  min-width: 0;
}

.home-mobile-menu a {
  min-height: 44px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  border-radius: 9px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 580;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.home-menu-divider {
  height: 1px;
  margin: 6px 8px;
  display: block;
  background: var(--home-line);
}

@keyframes home-nav-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-button span {
  transition: transform 120ms ease;
}

.home-button:hover span {
  transform: translate(2px, -2px);
}

.home-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1220px, 100%);
  min-height: clamp(480px, calc(100vh - 145px), 830px);
  min-height: clamp(480px, calc(100svh - 145px), 830px);
  margin: 0 auto;
  padding: 52px 42px 68px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  text-align: left;
  transform: translate3d(0, var(--home-hero-offset, 0px), 0);
  opacity: var(--home-hero-opacity, 1);
  transform-origin: left center;
}

.home-kicker,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: #54758d;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .13em;
  line-height: 1.4;
}

.home-kicker { justify-content: flex-start; }

.home-kicker > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--home-cyan);
  box-shadow: 0 0 0 4px rgb(156 195 221 / 16%);
}

.home-title-wrap {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
  isolation: isolate;
}

.home-page h1,
.home-page h2,
.home-page p {
  margin-top: 0;
}

.home-page h1 {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin-bottom: 0;
  color: var(--home-ink);
  font-size: clamp(50px, 7.3vw, 104px);
  font-weight: 760;
  letter-spacing: -.058em;
  line-height: .99;
}

/* ===== 标题动效：行遮罩逐行上浮 + 强调行流光 ===== */
.home-page h1 .title-line,
.memory-heading h2 .title-line {
  display: block;
  overflow: hidden;
  padding: .045em 0 .07em;
}

.home-page h1 .title-line-inner,
.memory-heading h2 .title-line-inner {
  display: inline-block;
}

/* JS 就绪且动效开启时，未入视口的行藏在遮罩下 */
.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .home-hero:not(.is-motion-visible) .title-line-inner,
.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .memory-heading:not(.is-motion-visible) .title-line-inner {
  transform: translateY(118%);
}

/* 入视口后逐行上浮 */
.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .home-hero.is-motion-visible .title-line-inner {
  animation: home-title-line-rise .92s cubic-bezier(.22, 1, .36, 1) both;
}

.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .memory-heading.is-motion-visible .title-line-inner {
  animation: home-title-line-rise .88s cubic-bezier(.22, 1, .36, 1) both;
}

.memory-heading.is-motion-visible .title-line:nth-of-type(2) .title-line-inner { animation-delay: .15s; }

@keyframes home-title-line-rise {
  from { transform: translateY(118%); }
  to { transform: translateY(0); }
}

/* 强调行：缓慢流动的蓝青渐变（静止时也是双色渐变字） */
.home-title-accent {
  background-image: linear-gradient(94deg, #567f9d 6%, #83aecb 31%, var(--home-petal) 47%, #a3c8de 61%, #567f9d 82%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .home-title-accent {
  animation: title-sheen 1.15s ease-out .82s 1 both;
}

@keyframes title-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

/* 区块标题：关键词下划线缓入 + kicker 字距落定 */
.title-underline {
  font-style: normal;
  color: #46708c;
  position: relative;
}

.title-underline::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: -.02em;
  height: .075em;
  border-radius: 999px;
  background: linear-gradient(90deg, #6290b1, var(--home-petal), #9cc3dd);
  transform: scaleX(0);
  transform-origin: left center;
}

.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .memory-heading.is-motion-visible .title-underline::after {
  animation: title-underline-draw .7s cubic-bezier(.22, 1, .36, 1) .78s both;
}

@keyframes title-underline-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .memory-heading:not(.is-motion-visible) .section-kicker { opacity: 0; }

.memory-heading.is-motion-visible .section-kicker { animation: memory-kicker-settle .6s ease-out both; }

@keyframes memory-kicker-settle {
  from { opacity: 0; letter-spacing: .3em; }
  to { opacity: 1; letter-spacing: .13em; }
}



.home-dolphin {
  --dolphin-rest-opacity: .28;
  --dolphin-peak-opacity: .34;
  --dolphin-surge-x: 9px;
  --dolphin-crest-x: 20px;
  --dolphin-return-x: 9px;
  --dolphin-rise-y: -8px;
  --dolphin-dive-y: 6px;
  position: absolute;
  z-index: 0;
  top: -86px;
  right: clamp(-230px, -15vw, -120px);
  width: clamp(250px, 31vw, 420px);
  height: auto;
  overflow: visible;
  opacity: .14;
  transform: rotate(-7deg);
  pointer-events: none;
}

.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .home-hero:not(.is-motion-visible) .home-dolphin { opacity: 0; }

.home-hero.is-motion-visible .home-dolphin {
  animation: home-dolphin-swim 9.2s ease-in-out infinite;
}

.dolphin-trail {
  fill: none;
  stroke: url(#doremi-dolphin-trail);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 18 24;
  stroke-dashoffset: 0;
  opacity: .4;
}

.home-hero.is-motion-visible .dolphin-trail {
  animation: dolphin-trail-flow 7.4s ease-in-out infinite;
}

.dolphin-tail {
  transform-box: fill-box;
  transform-origin: 24% 55%;
}

.home-hero.is-motion-visible .dolphin-tail {
  animation: dolphin-tailbeat 2.6s ease-in-out infinite;
}

.home-hero.is-motion-visible .dolphin-glint {
  animation: dolphin-glint-shimmer 6.8s ease-in-out infinite;
}

@keyframes home-dolphin-swim {
  0%, 100% { opacity: var(--dolphin-rest-opacity); transform: translate3d(0, 0, 0) rotate(-7deg) scale(1); }
  25% { opacity: var(--dolphin-peak-opacity); transform: translate3d(var(--dolphin-surge-x), var(--dolphin-rise-y), 0) rotate(-3deg) scale(1.01); }
  50% { opacity: var(--dolphin-rest-opacity); transform: translate3d(var(--dolphin-crest-x), 0, 0) rotate(0deg) scale(1); }
  75% { opacity: var(--dolphin-peak-opacity); transform: translate3d(var(--dolphin-return-x), var(--dolphin-dive-y), 0) rotate(-10deg) scale(.99); }
}

@keyframes dolphin-tailbeat {
  0%, 100% { transform: rotate(0); }
  38% { transform: rotate(-8deg); }
  72% { transform: rotate(4deg); }
}

@keyframes dolphin-trail-flow {
  0%, 100% { stroke-dashoffset: 0; opacity: .32; }
  50% { stroke-dashoffset: -21; opacity: .58; }
}

@keyframes dolphin-glint-shimmer {
  0%, 100% { opacity: .48; transform: translateX(-1px); }
  50% { opacity: .78; transform: translateX(0); }
}

.dolphin-body,
.dolphin-tail,
.dolphin-fin,
.dolphin-pectoral {
  fill: url(#doremi-dolphin-fill);
}

.dolphin-eye {
  fill: #365b74;
  opacity: .72;
}

.dolphin-glint {
  fill: none;
  stroke: rgb(255 255 255 / 72%);
  stroke-linecap: round;
  stroke-width: 2.2;
  opacity: .72;
}

.home-hero-description {
  max-width: 58ch;
  margin: 30px 0 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}

.home-launch-strip {
  width: min(620px, 100%);
  min-height: 66px;
  margin: 31px 0 0;
  padding: 8px 11px 8px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgb(255 255 255 / 92%);
  border-radius: 16px;
  background: rgb(255 255 255 / 68%);
  box-shadow: 0 9px 24px rgb(40 67 84 / 5%);
  text-align: left;
}

.home-launch-guidance {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--home-text);
  font-size: 13px;
  font-weight: 580;
  line-height: 1.4;
}

.home-voice-wave {
  width: clamp(92px, 12vw, 126px);
  height: auto;
  flex: 0 0 auto;
  margin-left: auto;
  overflow: visible;
  opacity: .88;
  transform: translate3d(var(--wave-offset-x, 0px), var(--wave-offset-y, 0px), 0);
  transition: transform 220ms ease, opacity 220ms ease;
}

.home-wave-bars rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: home-wave-breathe 2.8s ease-in-out infinite;
}

.home-wave-bars rect:nth-child(3n + 1) { animation-delay: -.8s; animation-duration: 2.6s; }
.home-wave-bars rect:nth-child(3n + 2) { animation-delay: -1.6s; animation-duration: 3.2s; }
.home-wave-bars rect:nth-child(3n) { animation-delay: -.4s; animation-duration: 2.9s; }

@keyframes home-wave-breathe {
  0%, 100% { transform: scaleY(.78); }
  48% { transform: scaleY(1.14); }
}

.home-launch-strip.is-engaged .home-voice-wave { opacity: 1; }
.home-launch-strip.is-engaged .home-wave-bars rect { animation-duration: .82s; }

.home-hero.is-offscreen::before,
.home-hero.is-offscreen .ocean-wave,
.home-hero.is-offscreen .home-wave-bars rect,
.home-hero.is-offscreen .home-dolphin,
.home-hero.is-offscreen .dolphin-tail,
.home-hero.is-offscreen .dolphin-trail,
.home-hero.is-offscreen .dolphin-glint { animation-play-state: paused; }

.home-motion-toggle {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 12px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(98 144 177 / 18%);
  border-radius: 50%;
  background: rgb(255 255 255 / 48%);
  color: var(--home-muted);
  cursor: pointer;
  opacity: .68;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

.home-motion-toggle:hover,
.home-motion-toggle:focus-visible { opacity: 1; background: #fff; color: var(--home-ink); }
.home-motion-toggle:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 3px; }
.home-motion-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-motion-toggle[hidden] { display: none !important; }
.home-motion-toggle .motion-play-icon { display: none; fill: currentColor; stroke: none; }
.home-page.motion-user-paused .home-motion-toggle .motion-pause-icon { display: none; }
.home-page.motion-user-paused .home-motion-toggle .motion-play-icon { display: block; }
.home-page.motion-user-paused .home-wave-bars rect { animation: none !important; transform: none !important; }
.home-page.motion-user-paused .home-hero::before,
.home-page.motion-user-paused .home-hero .ocean-wave,
.home-page.motion-user-paused .home-hero .home-dolphin,
.home-page.motion-user-paused .home-hero .dolphin-tail,
.home-page.motion-user-paused .home-hero .dolphin-trail,
.home-page.motion-user-paused .home-hero .dolphin-glint { animation: none !important; }
.home-page.motion-user-paused .home-hero .home-dolphin { opacity: var(--dolphin-rest-opacity, .28); transform: rotate(-7deg); }
.home-page.motion-user-paused .home-hero h1 { animation: none !important; opacity: 1; transform: none; }
.home-page.motion-user-paused .home-hero .dolphin-trail { stroke-dashoffset: 0; opacity: .4; }
.home-page.motion-user-paused .home-hero .dolphin-glint { opacity: .72; }
.home-page.motion-user-paused .home-voice-wave { transform: none; }
.home-page.motion-user-paused .mc-card .mc-item,
.home-page.motion-user-paused .mc-card .mc-keep-chip {
  animation: none !important;
  opacity: 1;
  transform: none;
}
.home-page.motion-user-paused .mc-card .memory-phrase { animation: none !important; background-size: 100% 100% !important; }
.home-page.motion-user-paused .home-footer .footer-base::before { transform: scaleX(1); opacity: 1; }

.home-page.motion-reduced .home-wave-bars rect { animation: none !important; transform: none !important; }
.home-page.motion-reduced .home-hero::before,
.home-page.motion-reduced .home-hero .ocean-wave,
.home-page.motion-reduced .home-hero .home-dolphin,
.home-page.motion-reduced .home-hero .dolphin-tail,
.home-page.motion-reduced .home-hero .dolphin-trail,
.home-page.motion-reduced .home-hero .dolphin-glint { animation: none !important; }
.home-page.motion-reduced .home-hero .home-dolphin { opacity: var(--dolphin-rest-opacity, .28); transform: rotate(-7deg); }
.home-page.motion-reduced .home-hero h1 { animation: none !important; opacity: 1; transform: none; }
.home-page.motion-reduced .home-hero .dolphin-trail { stroke-dashoffset: 0; opacity: .4; }
.home-page.motion-reduced .home-hero .dolphin-glint { opacity: .72; }
.home-page.motion-reduced .mc-card .mc-item,
.home-page.motion-reduced .mc-card .mc-keep-chip { animation: none !important; opacity: 1; transform: none; }
.home-page.motion-reduced .mc-card .memory-phrase { animation: none !important; background-size: 100% 100% !important; }
.home-page.motion-reduced .home-footer .footer-base::before { transform: scaleX(1); opacity: .8; }

.home-launch-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #d9e2eb;
  border-radius: 12px;
  background: #e9eef4;
  color: var(--home-blue);
}

.home-launch-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-secondary-links {
  margin: 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.home-secondary-links a {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 9px;
  color: var(--home-text);
  font-size: 12px;
  font-weight: 610;
  text-decoration: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.home-secondary-links a:hover {
  background: rgb(255 255 255 / 54%);
  color: var(--home-ink);
}

.home-secondary-links a span {
  color: var(--home-steel);
  transition: transform 120ms ease;
}

.home-secondary-links a:hover span {
  transform: translate(2px, -2px);
}

.home-button {
  min-height: 46px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.home-button-primary {
  background: var(--home-ink);
  color: white;
}

.home-button-primary:hover {
  transform: translateY(-1px);
  background: #29495f;
}

.hero-bottom-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(98 144 177 / 17%), transparent);
}

.hero-bottom-rule::after {
  position: absolute;
  inset: 0 13%;
  background: linear-gradient(90deg, transparent, rgb(98 144 177 / 68%), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(.15);
  transform-origin: center;
}

.home-hero.is-voice-ready .hero-bottom-rule::after { animation: home-voice-echo 820ms cubic-bezier(.22, 1, .36, 1) both; }

@keyframes home-voice-echo {
  0% { opacity: 0; transform: scaleX(.15); }
  35% { opacity: .8; }
  100% { opacity: 0; transform: scaleX(1); }
}

.practice-modes {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 78px 34px 84px;
}

/* ===== 记忆 Coverflow（长效记忆区块）===== */
.memory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  align-items: end;
  gap: 36px;
  width: min(1120px, 100%);
  margin: 0 auto 8px;
  transform: translate3d(0, var(--home-story-offset, 0px), 0);
  opacity: var(--home-story-opacity, 1);
}

.memory-feature-pills {
  display: grid;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 7px;
}

.memory-feature-pills button {
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  color: var(--home-text);
  background: rgb(255 255 255 / 70%);
  border: 1px solid var(--home-line);
  border-radius: 999px;
  padding: 8px 15px;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.memory-feature-pills button:hover { border-color: var(--home-blue); color: var(--home-ink); transform: translateY(-1px); }
.memory-feature-pills button:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 2px; }

.mc-story {
  position: relative;
}

.mc-story-sticky {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.mc-story-toolbar {
  width: min(432px, 88vw);
  min-height: 42px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(70px, 1fr);
  align-items: center;
  gap: 14px;
}

.mc-story-step {
  margin: 0;
  color: var(--home-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .12em;
  white-space: nowrap;
}

.mc-story-step b { color: var(--home-ink); font-size: 12px; }
.mc-story-step span { margin-left: 4px; opacity: .65; }

.mc-story-progress {
  position: relative;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--home-line);
}

.mc-story-progress > span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--home-cyan), var(--home-blue));
  transform: scaleX(var(--mc-progress, .25));
  transform-origin: left center;
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}


.memory-coverflow {
  position: relative;
  height: 520px;
  margin-top: 4px;
  perspective: 1200px;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity .7s ease;
}

.memory-coverflow:focus-visible { outline: 3px solid rgb(98 144 177 / 35%); outline-offset: 4px; border-radius: 24px; }
.memory-coverflow:active { cursor: grabbing; }
.home-page.motion-ready:not(.motion-reduced):not(.motion-user-paused) .memory-coverflow:not(.is-motion-visible) { opacity: 0; }

.mc-card {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(432px, 88vw);
  transform: translate3d(calc(-50% + var(--mc-drag, 0px)), -50%, 0);
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: var(--home-paper);
  padding: 24px 26px 16px;
  color: var(--home-text);
  box-shadow: 0 10px 26px rgb(31 55 72 / 8%), 0 2px 6px rgb(31 55 72 / 5%);
  transition: transform .64s var(--mc-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    opacity .64s var(--mc-ease, cubic-bezier(0.22, 1, 0.36, 1)),
    filter .64s var(--mc-ease, cubic-bezier(0.22, 1, 0.36, 1));
  backface-visibility: hidden;
}

@supports (-webkit-box-reflect: below 0) {
  @media (min-width: 641px) {
    .mc-card { -webkit-box-reflect: below 12px linear-gradient(transparent 68%, rgb(0 0 0 / 9%)); }
  }
}

.mc-card.is-active { z-index: 30; cursor: default; box-shadow: 0 30px 70px rgb(27 48 64 / 16%), 0 6px 18px rgb(27 48 64 / 8%); }
.mc-card.is-near { z-index: 20; opacity: .48; filter: saturate(.65); cursor: pointer; }
.mc-card.is-near[data-mc-side="prev"] { transform: translate3d(calc(-50% - 252px + var(--mc-drag, 0px)), -50%, -90px) rotateY(11deg) scale(.88); }
.mc-card.is-near[data-mc-side="next"] { transform: translate3d(calc(-50% + 252px + var(--mc-drag, 0px)), -50%, -90px) rotateY(-11deg) scale(.88); }
.mc-card.is-far { z-index: 10; opacity: .16; filter: saturate(.4); pointer-events: none; }
.mc-card.is-far[data-mc-side="prev"] { transform: translate3d(calc(-50% - 418px + var(--mc-drag, 0px)), -50%, -230px) rotateY(15deg) scale(.74); }
.mc-card.is-far[data-mc-side="next"] { transform: translate3d(calc(-50% + 418px + var(--mc-drag, 0px)), -50%, -230px) rotateY(-15deg) scale(.74); }
.mc-card.is-hidden { opacity: 0; pointer-events: none; z-index: 1; }
.mc-card.is-hidden[data-mc-side="prev"] { transform: translate3d(calc(-50% - 540px + var(--mc-drag, 0px)), -50%, -340px) rotateY(18deg) scale(.68); }
.mc-card.is-hidden[data-mc-side="next"] { transform: translate3d(calc(-50% + 540px + var(--mc-drag, 0px)), -50%, -340px) rotateY(-18deg) scale(.68); }

.mc-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.mc-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--home-muted); }
.mc-title { font-size: 17px; color: var(--home-ink); margin: 4px 0 0; letter-spacing: -.01em; }
.mc-part { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--home-muted); border: 1px solid var(--home-line); border-radius: 8px; padding: 5px 9px; white-space: nowrap; }
.mc-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--home-muted); margin-bottom: 6px; }
.mc-block { background: var(--home-soft); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 14.5px; line-height: 1.55; color: var(--home-ink); }
.mc-block-live { background: rgb(228 237 246 / 78%); border: 1px solid rgb(156 195 221 / 55%); }

.mc-coach-note { display: flex; gap: 9px; align-items: center; font-size: 13px; color: var(--home-muted); margin: 2px 0 12px; }
.mc-coach-note b { color: var(--home-ink); font-weight: 600; }
.mc-coach-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--home-soft); color: var(--home-blue); font-size: 12px; display: grid; place-items: center; font-weight: 700; }

.memory-phrase {
  font-weight: 700;
  color: var(--home-ink);
  border-radius: 4px;
  padding: 1px 3px;
  background-image: linear-gradient(var(--mc-phrase, #dfeaf3), var(--mc-phrase, #dfeaf3));
  background-repeat: no-repeat;
  background-size: 0% 100%;
}
.mc-card.is-orchestrating .memory-phrase { animation: mc-phrase-sweep .7s ease forwards; animation-delay: var(--mc-delay, 0ms); }
@keyframes mc-phrase-sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.mc-item { opacity: 0; }
.mc-card.is-orchestrating .mc-item { animation: mc-rise .52s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--mc-delay, 0ms); }
@keyframes mc-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mc-wave { display: inline-flex; align-items: center; gap: 3px; height: 16px; margin-left: 10px; vertical-align: middle; }
.mc-wave i { width: 3px; border-radius: 2px; background: var(--home-blue); opacity: .75; height: 100%; transform: scaleY(.3); transform-origin: center; }
.mc-card.is-orchestrating .mc-wave i { animation: mc-wave-pulse 1.2s ease-in-out infinite; animation-delay: calc(var(--mc-delay, 0ms) + var(--w, 0ms)); }
@keyframes mc-wave-pulse { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(.95); } }

.mc-keep-chip {
  position: absolute;
  right: 18px;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--home-blue);
  background: rgb(226 243 250 / 92%);
  border: 1px solid rgb(156 195 221 / 70%);
  border-radius: 999px;
  padding: 5px 11px;
  opacity: 0;
  transform: scale(.85);
}
.mc-card.is-orchestrating .mc-keep-chip.is-kept { animation: mc-chip-pop .45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; animation-delay: 120ms; }
@keyframes mc-chip-pop { from { opacity: 0; transform: scale(.85) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.mc-fly-token {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--home-ink);
  background: #dfeaf3;
  border-radius: 999px;
  padding: 3px 10px;
  transition: transform .62s cubic-bezier(0.22, 1, 0.36, 1), opacity .62s ease;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-score-row { display: flex; gap: 10px; margin-top: 2px; }
.mc-score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--home-muted);
  background: var(--home-soft);
  border-radius: 10px;
  padding: 6px 10px;
}
.mc-score b { color: var(--home-ink); font-size: 14px; }
.mc-score .up { color: #5e96b9; }

.mc-bank-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.mc-bank-stat { background: var(--home-soft); border-radius: 14px; padding: 12px 10px 10px; text-align: center; }
.mc-bank-stat b { display: block; font-size: 24px; color: var(--home-ink); letter-spacing: -.02em; }
.mc-bank-stat span { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--home-muted); }

.mc-card-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--home-line);
  color: var(--home-muted);
  font-size: 12px;
  font-weight: 600;
}
.mc-icon { width: 15px; height: 15px; flex: none; color: var(--home-blue); }
.mc-dots { margin-left: auto; display: flex; gap: 4px; }
.mc-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--home-line); }
.mc-dots i.on { background: var(--home-blue); }

.mc-arrow {
  position: absolute;
  top: 47%;
  transform: translateY(-50%);
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  background: rgb(255 255 255 / 86%);
  border: 1px solid var(--home-line);
  color: var(--home-text);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: border-color 150ms ease, transform 150ms ease;
}
.mc-arrow:hover { border-color: var(--home-blue); transform: translateY(-50%) scale(1.06); }
.mc-arrow:focus-visible { outline: 2px solid var(--home-blue); outline-offset: 2px; }
.mc-arrow--prev { left: max(12px, calc(50% - 560px)); }
.mc-arrow--next { right: max(12px, calc(50% - 560px)); }

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

html.dark .memory-feature-pills button,
html.dark .mc-arrow { background: rgb(27 40 49 / 70%); }
html.dark .mc-card { border-color: #30444f; background: #1b2831; box-shadow: 0 10px 26px rgb(0 0 0 / 30%); }
html.dark .mc-card.is-active { box-shadow: 0 30px 70px rgb(0 0 0 / 45%); }
html.dark .mc-title, html.dark .mc-block, html.dark .memory-phrase, html.dark .mc-coach-note b, html.dark .mc-score b, html.dark .mc-bank-stat b, html.dark .mc-fly-token { color: #dce9f1; }
html.dark .mc-eyebrow, html.dark .mc-label, html.dark .mc-part, html.dark .mc-coach-note, html.dark .mc-score, html.dark .mc-bank-stat span, html.dark .mc-card-footer { color: #91a0aa; }
html.dark .mc-block { background: #1e2d37; }
html.dark .mc-block-live { background: rgb(31 51 63 / 55%); border-color: rgb(61 105 130 / 45%); }
html.dark .mc-keep-chip { background: rgb(31 51 63 / 80%); }
html.dark .mc-fly-token { background: rgb(61 105 130 / 55%); }
html.dark .memory-phrase { --mc-phrase: rgb(126 177 204 / 35%); }
html.dark .mc-card-footer { border-color: #2b3842; }
html.dark .mc-dots i { background: #2b3842; }
html.dark .home-scroll-nav { border-color: #34424d; background: rgb(21 28 34 / 94%); }
html.dark .home-scroll-brand { color: #e9eff3; }
html.dark .home-scroll-link { color: #d2dde4; }

@media (max-width: 1024px) {
  .mc-card.is-near[data-mc-side="prev"] { transform: translate3d(calc(-50% - 178px + var(--mc-drag, 0px)), -50%, -90px) rotateY(11deg) scale(.88); }
  .mc-card.is-near[data-mc-side="next"] { transform: translate3d(calc(-50% + 178px + var(--mc-drag, 0px)), -50%, -90px) rotateY(-11deg) scale(.88); }
  .mc-card.is-far { opacity: 0; }
}

@media (max-width: 640px) {
  .home-scroll-nav { display: none; }
  .memory-coverflow { height: 430px; cursor: grab; perspective: none; }
  .mc-card { -webkit-box-reflect: unset; }
  .mc-card.is-near,
  .mc-card.is-far,
  .mc-card.is-hidden { opacity: 0; filter: none; pointer-events: none; }
  .mc-card.is-near[data-mc-side="prev"],
  .mc-card.is-near[data-mc-side="next"],
  .mc-card.is-far[data-mc-side="prev"],
  .mc-card.is-far[data-mc-side="next"],
  .mc-card.is-hidden[data-mc-side="prev"],
  .mc-card.is-hidden[data-mc-side="next"] { transform: translate3d(-50%, -50%, 0) scale(.96); }
  .mc-arrow { display: none; }
  .mc-bank-stat b { font-size: 20px; }
}

@media (max-height: 580px) and (min-width: 641px) {
  .memory-coverflow { height: 460px; }
}

.home-page.motion-reduced .mc-story-progress > span { transition: none; }
.home-page.motion-reduced .home-hero-copy,
.home-page.motion-user-paused .home-hero-copy,
.home-page.motion-reduced .memory-heading,
.home-page.motion-user-paused .memory-heading { transform: none; opacity: 1; }
.home-page.motion-user-paused .mc-story-progress > span { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .mc-card,
  .mc-card.is-near,
  .mc-card.is-far,
  .mc-card.is-hidden { transition: none; }
  .mc-card.is-near[data-mc-side="prev"], .mc-card.is-near[data-mc-side="next"],
  .mc-card.is-far[data-mc-side="prev"], .mc-card.is-far[data-mc-side="next"],
  .mc-card.is-hidden[data-mc-side="prev"], .mc-card.is-hidden[data-mc-side="next"] {
    transform: translate3d(-50%, -50%, 0) scale(.92);
  }
  .mc-card.is-orchestrating .mc-wave i { animation: none; height: 45%; }
}

.practice-section-heading {
  max-width: 60ch;
}

.section-kicker {
  margin: 0 0 13px;
  color: var(--home-steel);
  font-size: 9px;
}

.practice-section-heading h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(29px, 3.2vw, 39px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.practice-section-description {
  max-width: 52ch;
  margin: 15px 0 0;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.7;
}

.home-footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto 22px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-paper);
  box-shadow: none;
}

.footer-top {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.5fr);
  gap: 40px;
  padding: 32px 36px 27px;
}

.footer-doremi-brand .doremi-wordmark { font-size: 19px; }
.footer-doremi-brand .doremi-brand-caption { font-size: 9px; }

.footer-tagline {
  max-width: 34ch;
  margin-top: 12px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.6;
}

.footer-column h2 {
  color: var(--home-steel);
  font-size: 9px;
  letter-spacing: .12em;
}

.footer-column a { font-size: 12px; }

.footer-base {
  padding: 13px 36px 15px;
  color: #8a97a2;
  font-size: 10px;
}

.home-footer .footer-base { position: relative; }

.home-footer .footer-base::before {
  position: absolute;
  top: -1px;
  right: 36px;
  left: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(98 144 177 / 50%), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.home-page.motion-ready .home-footer .footer-base::before {
  transition: transform 760ms cubic-bezier(.2, .7, .25, 1), opacity 240ms ease;
}

.home-footer.is-motion-visible .footer-base::before { opacity: .8; transform: scaleX(1); }

.footer-base-note {
  font-family: inherit;
  font-style: normal;
}

html.dark .home-page {
  --home-ink: #e9eff3;
  --home-text: #d2dde4;
  --home-muted: #9aaab5;
  --home-soft: #19232b;
  --home-line: #2c3942;
  --home-blue: #91b8d0;
  --home-cyan: #9cc3dd;
  --home-paper: #151c22;
  --home-canvas: #0d1115;
  color-scheme: dark;
  background: var(--home-canvas);
  color: var(--home-ink);
}

html.dark .home-motion-field {
  --home-field-blue: 145 184 208;
  --home-field-pink: 174 153 171;
  --home-field-pale: 112 161 190;
}

html.dark .home-hero {
  --tide-glow-left: rgb(112 161 190 / 14%);
  --tide-glow-right: rgb(156 195 221 / 7%);
  border-color: #28343d;
  background:
    radial-gradient(ellipse at 15% 0%, rgb(102 146 174 / 26%), transparent 45%),
    linear-gradient(125deg, rgb(23 33 42 / 84%) 0%, rgb(20 28 35 / 72%) 58%, rgb(17 23 29 / 82%) 100%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 20%);
}

html.dark .home-kicker,
html.dark .section-kicker { color: #91b2c7; }
html.dark .home-title-accent { background-image: linear-gradient(94deg, #7facc8 6%, #a2c8de 31%, #d2bed0 47%, #bcdcec 61%, #7facc8 82%); }
html.dark .title-underline { color: #8fb9d4; }
html.dark .title-underline::after { background: linear-gradient(90deg, #7facc8, #d2bed0, #9cc3dd); }
html.dark .home-dolphin { opacity: .18; }
html.dark .home-dolphin { --dolphin-rest-opacity: .18; --dolphin-peak-opacity: .23; }
html.dark #doremi-ocean-gradient stop:first-child,
html.dark #doremi-ocean-gradient stop:last-child { stop-color: #8bb6cb; }
html.dark #doremi-ocean-gradient stop:nth-child(2) { stop-color: #9cc3dd; }
html.dark .home-nav-link,
html.dark .home-mobile-toggle,
html.dark .home-language-toggle,
html.dark .home-nav-actions .home-login { color: #d1dce3; }
html.dark .home-nav-link:hover,
html.dark .home-nav-dropdown[open] > .home-nav-link,
html.dark .home-mobile-toggle:hover,
html.dark .home-mobile-dropdown[open] > .home-mobile-toggle,
html.dark .home-language-toggle:hover,
html.dark .home-language-toggle:focus-visible,
html.dark .home-nav-actions .home-login:hover { background: rgb(255 255 255 / 7%); }
html.dark .home-nav-menu,
html.dark .home-mobile-menu { border-color: #34424d; background: #151c22; box-shadow: 0 14px 34px rgb(0 0 0 / 30%); }
html.dark .home-menu-label { color: #91a0aa; }
html.dark .home-nav-menu a,
html.dark .home-mobile-menu a { color: #d2dde4; }
html.dark .home-nav-menu a:hover,
html.dark .home-mobile-menu a:hover { background: #202c34; color: #f0f4f6; }
html.dark .home-nav-menu a svg { stroke: #a5c6d9; }
html.dark .home-menu-divider { background: #2c3942; }
html.dark .home-nav-cta { background: #dce8ee; color: #182934; }
html.dark .home-nav-cta:hover { background: #c8dce7; }
html.dark .home-button-primary { background: #dce8ee; color: #182934; }
html.dark .home-button-primary:hover { background: #c8dce7; }
html.dark .home-launch-strip { border-color: #34424d; background: rgb(22 30 37 / 90%); box-shadow: 0 9px 26px rgb(0 0 0 / 12%); }
html.dark .home-launch-guidance { color: #d2dde4; }
html.dark .home-launch-icon { border-color: #344650; background: #1d2a32; color: #a5c6d9; }
html.dark .home-motion-toggle { border-color: #34424d; background: rgb(21 28 34 / 76%); color: #a5c6d9; }
html.dark .home-motion-toggle:hover,
html.dark .home-motion-toggle:focus-visible { background: #202c34; color: #e9eff3; }
html.dark #doremi-wave-gradient stop:first-child { stop-color: #8baec1; }
html.dark #doremi-wave-gradient stop:nth-child(2) { stop-color: #b5d4e4; }
html.dark .home-voice-wave > circle { fill: #8baec1; }
html.dark .home-secondary-links a:hover { background: rgb(255 255 255 / 6%); }
html.dark .home-footer { border-color: var(--home-line); background: var(--home-paper); }
html.dark .footer-base { border-color: var(--home-line); }

@media (max-width: 980px) {
  .home-nav { gap: 12px; }
  .home-main-nav { display: none; }
  .home-mobile-dropdown { display: block; }
  .home-nav-actions { margin-left: auto; }
}

@media (max-width: 900px) {
  .home-hero { min-height: min(880px, calc(100svh - 24px)); }
  .home-hero-inner {
    min-height: clamp(440px, calc(100vh - 135px), 780px);
    min-height: clamp(440px, calc(100svh - 135px), 780px);
    padding: 58px 28px 66px;
  }
  .home-page h1 { font-size: clamp(48px, 7.6vw, 76px); }
  .home-dolphin { top: -70px; right: -100px; width: clamp(220px, 32vw, 310px); }
  .practice-modes { padding-inline: 28px; }
}

@media (max-width: 780px) {
  .memory-heading { grid-template-columns: 1fr; gap: 18px; width: min(620px, 100%); margin-inline: auto; }
  .memory-feature-pills { display: flex; margin: 0; }
  .practice-section-heading { max-width: 52ch; }
  .practice-section-description { max-width: 48ch; }
}

@media (max-width: 680px) {
  .home-shell { padding: 8px 8px 0; }
  .home-hero { border-radius: 19px; }
  .home-nav { min-height: 68px; padding: 13px 16px; }
  .doremi-wordmark { font-size: 20px; }
  .doremi-brand-caption { font-size: 9px; }
  .home-nav-cta { display: none; }
  .home-nav-actions { gap: 2px; }
  .home-nav-actions .home-login,
  .home-language-toggle { min-height: 40px; padding-inline: 10px; font-size: 12px; }
  .home-mobile-toggle { min-height: 40px; padding-inline: 10px; font-size: 12px; }
  .home-hero-inner {
    min-height: max(0px, calc(100vh - 84px));
    min-height: max(0px, calc(100svh - 84px));
    padding: 48px 20px 56px;
  }
  .home-hero-copy { padding: 0; }
  .home-kicker { margin-bottom: 19px; font-size: 9px; letter-spacing: .1em; }
  .home-page h1 { font-size: clamp(39px, 10.4vw, 54px); line-height: 1.02; }
  .home-dolphin { top: -32px; right: -30px; width: clamp(142px, 42vw, 205px); opacity: .2; }
  .home-dolphin { --dolphin-rest-opacity: .2; --dolphin-peak-opacity: .24; --dolphin-surge-x: 4px; --dolphin-crest-x: 8px; --dolphin-return-x: 4px; --dolphin-rise-y: -4px; --dolphin-dive-y: 3px; }
  .home-ocean-lines { bottom: -1%; left: -12%; width: 124%; height: 45%; }
  .ocean-wave-far { display: none; }
  .home-hero-description { max-width: 42ch; margin-top: 24px; font-size: 14px; line-height: 1.65; }
  .home-launch-strip {
    min-height: 0;
    margin-top: 24px;
    padding: 10px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 14px;
  }
  .home-launch-guidance { justify-content: center; font-size: 12px; }
  .home-launch-guidance { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px; justify-content: initial; gap: 9px; }
  .home-voice-wave { width: 64px; margin-left: 0; }
  .home-launch-icon { width: 36px; height: 36px; border-radius: 10px; }
  .home-motion-toggle { right: 12px; bottom: 8px; width: 28px; height: 28px; }
  .home-button { width: 100%; min-height: 44px; padding-inline: 14px; font-size: 12px; }
  .home-secondary-links { gap: 2px; margin-top: 8px; }
  .home-secondary-links a { min-height: 42px; padding-inline: 10px; font-size: 11px; }
  .practice-modes { padding: 49px 12px 56px; }
  .practice-section-heading h2 { font-size: 28px; }
  .practice-section-description { margin-top: 12px; font-size: 13px; }
  .home-footer { width: calc(100% - 16px); margin-bottom: 12px; border-radius: 15px; }
  .footer-top { grid-template-columns: 1fr; gap: 22px; padding: 23px 19px 20px; }
  .footer-tagline { margin-top: 9px; }
  .footer-columns { gap: 14px; }
  .footer-column { gap: 8px; }
  .footer-base { align-items: flex-start; padding: 12px 19px 14px; }
}

@media (max-width: 360px) {
  .doremi-brand-caption { display: none; }
  .home-hero-inner { padding-inline: 16px; }
  .home-page h1 { font-size: 38px; }
  .home-dolphin { right: -19px; width: 145px; }
  .home-ocean-lines { left: -17%; width: 134%; height: 42%; }
  .home-launch-guidance { grid-template-columns: 34px minmax(0, 1fr) 52px; gap: 7px; font-size: 11px; }
  .home-voice-wave { width: 52px; }
  .home-footer .footer-base::before { right: 19px; left: 19px; }
  .home-button { padding-inline: 11px; font-size: 11px; }
  .home-secondary-links a { padding-inline: 8px; font-size: 10px; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

/* Keep the hero inside a short visual viewport, including browser zoom. */
@media (max-height: 760px) {
  .home-hero {
    min-height: min(920px, calc(100vh - 28px));
    min-height: min(920px, calc(100svh - 28px));
  }
  .home-nav { min-height: 64px; padding-block: 10px; }
  .home-hero-inner {
    min-height: max(0px, calc(100vh - 110px));
    min-height: max(0px, calc(100svh - 110px));
    padding-top: clamp(12px, 2.8vh, 26px);
    padding-bottom: clamp(12px, 2.8vh, 26px);
  }
  .home-kicker { margin-bottom: 14px; }
  .home-page h1 { font-size: clamp(38px, 6vw, 78px); line-height: .94; }
  .home-dolphin { top: -45px; right: -90px; width: clamp(130px, 22vw, 270px); }
  .home-hero-description { margin-top: clamp(10px, 2.2vh, 18px); font-size: 14px; }
  .home-launch-strip { min-height: 58px; margin-top: clamp(12px, 2.5vh, 20px); }
  .home-secondary-links { margin-top: 4px; }
}

@media (max-height: 580px) {
  .memory-coverflow { height: 390px; }
}

@media (hover: none) and (pointer: coarse) {
  .home-button:active { transform: scale(.985); }
}

/* The shared app stylesheet stacks every .home-nav on small screens. Keep the
   homepage header compact, and let its hero copy begin directly beneath it. */
@media (max-width: 680px) {
  .home-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .home-mobile-dropdown { position: static; }
  .home-mobile-menu { right: 14px; }

  .home-hero {
    height: auto;
    min-height: min(900px, calc(100vh - 16px));
    min-height: min(900px, calc(100svh - 16px));
    grid-template-rows: max-content max-content;
    align-content: start;
  }

  .home-hero-inner {
    min-height: 0;
    align-items: flex-start;
    padding: 30px 20px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .home-page .dolphin-glint { animation: none !important; }
  .home-page .home-hero::before,
  .home-page .home-hero .ocean-wave,
  .home-page .home-hero .home-dolphin,
  .home-page .home-hero .dolphin-tail,
  .home-page .home-hero .dolphin-trail,
  .home-page .home-hero .dolphin-glint { animation: none !important; }
  .home-page .home-hero .home-dolphin { opacity: var(--dolphin-rest-opacity, .28); transform: rotate(-7deg); }
  .home-page .home-hero h1 { animation: none !important; opacity: 1; transform: none; }
  .home-page .title-line-inner,
  .home-page .title-underline::after { animation: none !important; transform: none !important; }
  .home-page .memory-heading .section-kicker { animation: none !important; opacity: 1 !important; }
  .home-page .home-hero .dolphin-trail { stroke-dashoffset: 0; opacity: .4; }
  .home-page .home-hero .dolphin-glint { opacity: .72; }
  .home-page .home-wave-bars rect { animation: none !important; transform: none !important; }
  .home-page .mc-card .mc-item,
  .home-page .mc-card .mc-keep-chip { animation: none !important; opacity: 1; transform: none; }
  .home-page .memory-phrase { animation: none !important; background-size: 100% 100% !important; }
  .home-page .home-footer .footer-base::before { transition: none !important; transform: scaleX(1); opacity: .8; }
  .home-scroll-nav { transition: none !important; }
  .home-page .home-hero-copy,
  .home-page .memory-heading { transform: none !important; opacity: 1 !important; }
}
