/* Home v6 (Personal) only: shell, tokens, hero and shared primitives.
   Light surfaces reuse the assistant E palette; the comparison underline colours
   are the comparison page's own (essay-study.css). Only the circuit is dark. */
body:has(.ep-h6-hero) {
  --ep-h6-ink-1: #1c2536;
  --ep-h6-ink-2: #3a4659;
  --ep-h6-ink-3: #6c7587;
  --ep-h6-ink-4: #a0a7b4;
  --ep-h6-paper-1: #fbfbfd;
  /* Cards use the E-palette paper rather than pure white (site white-surface guard). */
  --ep-h6-card: #fbfbfd;
  --ep-h6-paper-2: #f5f6f9;
  --ep-h6-paper-3: #eceff4;
  --ep-h6-paper-warm: #fbf9f5;
  --ep-h6-line-1: #eef0f4;
  --ep-h6-line-2: #e2e6ec;
  --ep-h6-line-3: #cdd4df;
  --ep-h6-blue-1: #f1f5fb;
  --ep-h6-blue-2: #e2eaf6;
  --ep-h6-blue-3: #b7c7e0;
  --ep-h6-blue-4: #47658e;
  --ep-h6-blue-5: #2f4a73;
  --ep-h6-accent: #4a70a4;
  --ep-h6-red: #a2414b;
  --ep-h6-red-paper: #fbeef0;
  --ep-h6-green: #3f7a63;
  --ep-h6-green-paper: #eaf4ef;
  --ep-h6-silk:
    radial-gradient(ellipse at 78% 12%, rgba(18, 33, 68, .88) 0%, rgba(27, 47, 86, .48) 9%, transparent 25%),
    radial-gradient(ellipse at 12% 112%, rgba(19, 34, 68, .9) 0%, transparent 35%),
    radial-gradient(ellipse at 43% -40%, rgba(114, 156, 205, .7) 0%, transparent 49%),
    linear-gradient(112deg, #385786, #4a70a4 46%, #38598d);
  /* Same silk colours, softened for larger surfaces where the dark knot reads as a smudge. */
  --ep-h6-silk-card:
    radial-gradient(ellipse 90% 70% at 90% -10%, rgba(114, 156, 205, .6), transparent 60%),
    radial-gradient(ellipse 80% 90% at 0% 110%, rgba(19, 34, 68, .55), transparent 60%),
    linear-gradient(135deg, #38598d, #4a70a4 55%, #385786);
  --ep-h6-silk-wide:
    radial-gradient(ellipse 55% 90% at 50% -20%, rgba(114, 156, 205, .55), transparent 70%),
    radial-gradient(ellipse 50% 80% at 100% 110%, rgba(19, 34, 68, .55), transparent 65%),
    radial-gradient(ellipse 45% 70% at 0% 100%, rgba(27, 47, 86, .45), transparent 65%),
    linear-gradient(112deg, #385786, #4a70a4 50%, #38598d);
  --ep-h6-silk-text: linear-gradient(100deg, #2f4a73 0%, #4a70a4 45%, #38598d 100%);
  --ep-h6-shadow-soft: 0 1px 2px rgba(47, 74, 115, .05), 0 14px 40px rgba(47, 74, 115, .08);
  --ep-h6-shadow-lift: 0 2px 6px rgba(47, 74, 115, .06), 0 30px 80px rgba(47, 74, 115, .14);
  --ep-h6-kind-vocabulary: #ec4899;
  --ep-h6-kind-grammar: #8b5cf6;
  --ep-h6-kind-sentence: #0ea5e9;
  --ep-h6-kind-logic: #f97316;
  --ep-h6-kind-structure: #22c55e;
  /* Circuit (dark section) – listed in the delivery variable table for review. */
  --ep-h6-night: #0f1233;
  --ep-h6-night-tray: #171b48;
  --ep-h6-night-slot: #2f2a7e;
  --ep-h6-night-dash: #3b3f93;
  --ep-h6-night-output: #222763;
  --ep-h6-night-muted: #9aa0c4;
  --ep-h6-violet: #5538ee;
  --ep-h6-violet-soft: #4a3cc8;
  --ep-h6-violet-line: #5a52e0;
  --ep-h6-violet-via: #6a62ee;
  --ep-h6-ease: cubic-bezier(.2, .7, .2, 1);
  --ep-h6-serif: Georgia, "Times New Roman", serif;
}
body:has(.ep-h6-hero) :is(.migration-app, .migration-main) {
  background: var(--ep-h6-paper-1);
  color: var(--ep-h6-ink-1);
}
body:has(.ep-h6-hero) .migration-main {
  position: relative; isolation: isolate; overflow-x: clip; overflow-y: visible;
}
body:has(.ep-h6-hero) .migration-main::after { content: none; }
/* Outranks the top-navigation gutter so every home section spans the full width. */
body.ep-top-navigation:has(.ep-h6-hero) .migration-main .block-container,
body:has(.ep-h6-hero) .migration-main .block-container {
  position: relative; width: 100%; max-width: none; padding: 0; margin: 0;
}
body:has(.ep-h6-hero) :is(.ep-home-atmosphere, #desktop-account, #mobile-account) { display: none; }
.ep-home-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------- Shared primitives ---------- */
#home-content :where(.ep-h6-section, .ep-h6-hero) p { margin: 0; }
.ep-h6-button {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px;
  border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ep-h6-ease), box-shadow .25s var(--ep-h6-ease), background-color .2s;
}
.ep-h6-button--primary {
  color: #fff; background: var(--ep-h6-silk);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 8px 22px rgba(47, 74, 115, .28);
}
.ep-h6-button--ghost {
  color: var(--ep-h6-blue-5); background: var(--ep-h6-card); border: 1px solid var(--ep-h6-line-3);
  box-shadow: 0 1px 2px rgba(47, 74, 115, .06);
}
.ep-h6-button:hover { transform: translateY(-1px); }
#home-content .ep-h6-button { transition: transform .25s var(--ep-h6-ease), box-shadow .25s var(--ep-h6-ease), background-color .2s, border-color .2s; }
.ep-h6-button--primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 12px 28px rgba(47, 74, 115, .34); }
.ep-h6-button--ghost:hover { border-color: var(--ep-h6-blue-3); background: var(--ep-h6-blue-1); }
.ep-h6-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ep-h6-tag {
  display: inline-flex; align-items: center; font-style: normal; font-size: 11px; line-height: 1.6; padding: 1px 9px;
  border-radius: 999px; background: var(--ep-h6-blue-2); color: var(--ep-h6-blue-5); font-weight: 650; white-space: nowrap;
}
.ep-h6-problem {
  background: var(--ep-h6-red-paper); color: var(--ep-h6-red); border-radius: 4px; padding: 0 3px;
  text-decoration: underline wavy rgba(162, 65, 75, .55); text-decoration-thickness: 1px; text-underline-offset: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.ep-h6-fix { background: var(--ep-h6-green-paper); color: var(--ep-h6-green); border-radius: 4px; padding: 0 3px; }
.ep-h6-icon { width: 22px; height: 22px; flex: none; }
.ep-h6-kind { padding-bottom: 1px; border-bottom: 2px solid var(--ep-h6-kind-color, currentColor); }
:is(.ep-h6-kind, .ep-h6-kind-tag, [data-h6-study-kind])[data-kind="vocabulary"] { --ep-h6-kind-color: var(--ep-h6-kind-vocabulary); }
:is(.ep-h6-kind, .ep-h6-kind-tag, [data-h6-study-kind])[data-kind="grammar"] { --ep-h6-kind-color: var(--ep-h6-kind-grammar); }
:is(.ep-h6-kind, .ep-h6-kind-tag, [data-h6-study-kind])[data-kind="sentence"] { --ep-h6-kind-color: var(--ep-h6-kind-sentence); }
:is(.ep-h6-kind, .ep-h6-kind-tag, [data-h6-study-kind])[data-kind="logic"] { --ep-h6-kind-color: var(--ep-h6-kind-logic); }
:is(.ep-h6-kind, .ep-h6-kind-tag, [data-h6-study-kind])[data-kind="structure"] { --ep-h6-kind-color: var(--ep-h6-kind-structure); }
.ep-h6-bubble {
  width: fit-content; max-width: 82%; margin-top: 10px; padding: 10px 14px; border-radius: 16px;
  font-size: 13.5px; line-height: 1.65;
}
.ep-h6-bubble--me { margin-left: auto; background: var(--ep-h6-blue-5); color: #fff; border-bottom-right-radius: 5px; }
.ep-h6-bubble--lark { background: var(--ep-h6-paper-2); color: var(--ep-h6-ink-1); border-bottom-left-radius: 5px; }
.ep-h6-bubble.is-arriving { animation: ep-h6-rise .5s var(--ep-h6-ease) both; }
@keyframes ep-h6-rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 1. Hero — reference-led floating product stories ---------- */
.ep-h6-hero {
  --ep-h6-hero-sky: #f1f7fb;
  --ep-h6-hero-blue: #0877e9;
  --ep-h6-hero-lilac: #a4a0ef;
  --ep-h6-title-size: clamp(42px, min(5.35vw, 7.8vh), 82px);
  --ep-h6-hero-top: clamp(32px, 5vh, 60px);
  --ep-h6-scene-height: clamp(250px, calc(var(--ep-home-available-height, 780px) - var(--ep-h6-title-size) * 2.24 - var(--ep-h6-hero-top) - 132px), 470px);
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center;
  box-sizing: border-box; min-height: min(860px, calc(100svh - 58px));
  padding: var(--ep-h6-hero-top) 32px 22px; overflow: clip; text-align: center;
  background: var(--ep-h6-paper-1);
}
.ep-h6-hero::before {
  content: ""; position: absolute; z-index: -2; inset: 12px 16px;
  border-radius: clamp(22px, 3vw, 40px); pointer-events: none;
  background: linear-gradient(165deg, var(--ep-h6-hero-sky), #f5f8fb 58%, #edf4fa);
}
.ep-h6-hero::after {
  content: ""; position: absolute; z-index: -1; inset: 32% 10% 4%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 60%, rgba(149, 159, 247, .16), transparent 66%);
}
.ep-h6-hero__copy { position: relative; z-index: 3; width: 100%; flex: none; }
.migration-main .ep-h6-hero h1 {
  margin: 0 0 20px; font-size: var(--ep-h6-title-size);
  font-weight: 720; line-height: 1.12; letter-spacing: -.035em;
  color: var(--ep-h6-ink-1); text-wrap: balance;
}
.ep-h6-hero h1 > span { display: block; }
.ep-h6-hero h1 em {
  display: inline-block; font-style: normal; padding-inline: .035em;
  background: linear-gradient(100deg, #4c8df4, #828be8 64%, var(--ep-h6-hero-lilac));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ep-h6-hero__from { display: inline-block; }
.ep-h6-hero .ep-h6-actions { align-items: center; gap: 18px; }
#home-content .ep-h6-hero .ep-h6-button {
  height: 44px; padding: 0 23px; font-size: 13px; line-height: 1;
  transition: transform .2s var(--ep-h6-ease), background-color .2s, box-shadow .2s;
}
#home-content .ep-h6-hero .ep-h6-button--primary {
  color: var(--ep-h6-card); background: var(--ep-h6-ink-1); border: 1px solid transparent; box-shadow: none;
}
#home-content .ep-h6-hero .ep-h6-button--primary:hover { background: #303b4c; box-shadow: 0 6px 18px rgba(28, 37, 54, .14); }
#home-content .ep-h6-hero .ep-h6-button--ghost {
  padding-inline: 0; color: var(--ep-h6-ink-2); border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#home-content .ep-h6-hero .ep-h6-button--ghost:hover { color: var(--ep-h6-hero-blue); }
.ep-h6-hero__demo { color: var(--ep-h6-ink-2); font-size: 13px; line-height: 1.5; text-decoration: none; }
.ep-h6-hero__demo span { margin-left: 3px; }
.ep-h6-hero__demo:hover { color: var(--ep-h6-hero-blue); }
.ep-h6-hero__stage {
  position: relative; width: min(100%, 1200px); height: var(--ep-h6-scene-height);
  margin: 14px auto 0; flex: none; perspective: 1400px; text-align: left;
}
.ep-h6-window {
  position: relative; width: min(100%, calc(var(--ep-h6-scene-height) * 2.63)); height: 100%;
  margin: 0 auto; container-type: inline-size; transform-style: preserve-3d;
  background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}
.ep-h6-panel.ep-h6-showcase {
  position: absolute; inset: 0; padding: 0; font-size: clamp(13px, 1.7cqw, 20px);
  /* Project the child scene before this always-flat layer fades. Opacity must
     not switch card geometry between flat and preserve-3d at the fade endpoint. */
  transform-style: flat; perspective: 1400px; opacity: 1;
}
.ep-h6-showcase[hidden] { display: none; }
.ep-h6-showcase__motion { position: absolute; inset: 0; transform-style: preserve-3d; }
.ep-h6-showcase__board {
  position: absolute; box-sizing: border-box; border-radius: 20px; padding: 24px;
  background: var(--ep-h6-card); color: var(--ep-h6-ink-1);
  box-shadow: 0 22px 70px rgba(125, 132, 218, .19), 0 2px 8px rgba(48, 74, 115, .035);
  transform-origin: 50% 65%;
}
.ep-h6-showcase__eyebrow {
  display: block; margin-bottom: 12px !important; font-size: .68em; line-height: 1.4;
  font-weight: 650; letter-spacing: .045em; color: var(--ep-h6-ink-3);
}
.ep-h6-showcase__title { font-size: 1.1em; line-height: 1.5; font-weight: 700; }
.ep-h6-showcase__sentence {
  font-family: var(--ep-h6-serif); font-size: 1.12em; line-height: 1.65; overflow-wrap: break-word;
}
.ep-h6-showcase__note { font-size: .73em; line-height: 1.65; color: var(--ep-h6-ink-3); }
.ep-h6-showcase__ambient {
  position: absolute; box-sizing: border-box; width: 19%; padding: 16px 18px; border-radius: 14px;
  background: rgba(222, 228, 235, .65); color: var(--ep-h6-ink-3);
  font-size: .76em; line-height: 1.55; opacity: .52; filter: blur(2.5px);
  transform: rotateY(-18deg) rotateZ(-10deg);
}
.ep-h6-showcase__ambient--left { left: 1%; top: 34%; }
.ep-h6-showcase__ambient--right { right: 0; top: 48%; transform: rotateY(-18deg) rotateZ(-10deg); }
.ep-h6-showcase__ambient .ep-h6-showcase__eyebrow { font-size: .86em; margin-bottom: 5px !important; }
.ep-h6-showcase__badge {
  position: absolute; right: 6%; bottom: 3%; font-size: 10px; letter-spacing: .05em; color: var(--ep-h6-ink-3);
}
/* One large document, followed by its correction; no miniature app chrome. */
.ep-h6-showcase__document {
  left: 20%; top: 12%; width: 58%; padding: 25px 28px 28px; min-height: 67%;
  transform: rotateX(8deg) rotateY(-15deg) rotateZ(-9deg);
}
.ep-h6-showcase__document-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px; font-size: .64em; color: var(--ep-h6-ink-3);
}
.ep-h6-showcase__document-top b { color: var(--ep-h6-ink-1); letter-spacing: -.025em; font-size: 1.18em; }
.ep-h6-showcase__document-lines { display: grid; gap: 10px; margin-top: 24px; opacity: .7; }
.ep-h6-showcase__document-lines i { height: 5px; width: 86%; border-radius: 3px; background: var(--ep-h6-line-2); }
.ep-h6-showcase__document-lines i:nth-child(2) { width: 72%; }
.ep-h6-showcase__document-lines i:nth-child(3) { width: 48%; }
.ep-h6-showcase__annotation {
  z-index: 2; right: 5%; top: 60%; width: 34%; padding: 20px 24px;
  transform: rotateX(5deg) rotateY(-15deg) rotateZ(-9deg);
}
.ep-h6-showcase__annotation .ep-h6-showcase__eyebrow { margin-bottom: 6px !important; }
.ep-h6-showcase__change { display: flex; align-items: baseline; gap: 10px; font-family: var(--ep-h6-serif); font-size: 1.55em; line-height: 1.45; }
.ep-h6-showcase__change + .ep-h6-showcase__note { margin-top: 7px !important; }
.ep-h6-showcase .ep-h6-problem { padding-inline: 0; background: none; color: inherit; text-decoration-color: var(--ep-h6-red); }
.ep-h6-showcase .ep-h6-fix { padding-inline: 2px; background: none; color: var(--ep-h6-hero-blue); }
/* A branching path turns the same recurring error into one short practice. */
.ep-h6-showcase__map { position: absolute; inset: 0; transform: rotateY(-12deg) rotateZ(-8deg); }
.ep-h6-showcase__map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ep-h6-showcase__map-lines path { fill: none; stroke: var(--ep-h6-accent); stroke-width: 2; opacity: .6; stroke-linecap: round; }
.ep-h6-showcase__map-root, .ep-h6-showcase__map-node {
  position: absolute; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  padding: 14px 18px; border-radius: 9px; background: var(--ep-h6-silk-card); color: var(--ep-h6-card);
  font-size: .87em; line-height: 1.4; box-shadow: 0 8px 20px rgba(47, 74, 115, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ep-h6-showcase__map-root { left: 3%; top: 43%; width: 24%; min-height: 55px; }
.ep-h6-showcase__map-node { left: 42%; width: 20%; min-height: 50px; }
.ep-h6-showcase__map-node[data-branch="0"] { top: 9%; }
.ep-h6-showcase__map-node[data-branch="1"] { top: 39%; }
.ep-h6-showcase__map-node[data-branch="2"] { top: 69%; }
.ep-h6-showcase__practice {
  left: 62%; top: 8%; width: 36%; padding: 18px 20px;
  transform: rotateY(-12deg) rotateZ(-8deg);
}
.migration-main .ep-h6-showcase__practice .ep-h6-showcase__title { margin: 0 0 12px; font-size: .92em; line-height: 1.4; letter-spacing: -.02em; }
.ep-h6-showcase__practice .ep-h6-showcase__eyebrow { margin-bottom: 7px !important; }
.ep-h6-showcase__practice-label { padding-top: 8px; padding-bottom: 3px; color: var(--ep-h6-ink-3); font-size: .65em; line-height: 1.4; }
.ep-h6-showcase__practice .ep-h6-showcase__sentence { font-size: .88em; line-height: 1.5; }
.ep-h6-showcase__answer { display: block; color: var(--ep-h6-accent); font-family: var(--ep-h6-serif); font-size: .94em; line-height: 1.5; }
.ep-h6-showcase__practice > span { display: block; color: var(--ep-h6-ink-4); line-height: 1.1; margin-top: 10px; }
/* Matched cards stay large enough to read the actual before/after sentence. */
.ep-h6-showcase__pair {
  position: absolute; left: 16%; top: 13%; width: 72%; display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  transform: rotateX(7deg) rotateY(-13deg) rotateZ(-8deg); transform-style: preserve-3d;
}
.ep-h6-showcase__pair > .ep-h6-showcase__board { position: relative; min-width: 0; padding: 25px; }
.ep-h6-showcase__before { background: var(--ep-h6-paper-warm); }
.ep-h6-showcase__after { margin-top: 20px; }
.ep-h6-showcase__pair .ep-h6-showcase__sentence { font-size: .98em; line-height: 1.7; }
.ep-h6-showcase__change-note {
  position: absolute; z-index: 2; left: 36%; bottom: 5%; max-width: 51%; padding: 11px 20px;
  border-radius: 999px; background: var(--ep-h6-card); color: var(--ep-h6-ink-2);
  box-shadow: 0 8px 30px rgba(125, 132, 218, .13); font-size: .77em; line-height: 1.5;
  transform: rotateZ(-8deg);
}
.ep-h6-showcase .ep-h6-kind {
  border: 0; padding-bottom: 3px;
  background: linear-gradient(var(--ep-h6-kind-color), var(--ep-h6-kind-color)) 0 100% / 100% 2px no-repeat;
}
/* Lark is the protagonist, not a dense application screenshot. */
.ep-h6-showcase__chat {
  left: 30%; top: 7%; width: 52%; padding: 21px 25px 24px;
  transform: rotateX(5deg) rotateY(-13deg) rotateZ(-8deg);
}
.ep-h6-showcase__chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; font-size: .85em; }
.ep-h6-showcase__chat-head :is(small, span) { display: block; margin-top: 1px; color: var(--ep-h6-ink-3); font-size: .7em; }
.ep-h6-showcase__avatar { width: 36px; height: 36px; object-fit: contain; border-radius: 12px; }
.ep-h6-showcase__message {
  position: relative; width: fit-content; max-width: 88%; box-sizing: border-box;
  padding: 12px 15px; border-radius: 16px; font-size: .84em; line-height: 1.65;
}
#home-content .ep-h6-showcase__message--me { margin: 0 0 12px auto; color: var(--ep-h6-card); background: var(--ep-h6-hero-blue); border-bottom-right-radius: 5px; }
#home-content .ep-h6-showcase__message--lark { margin: 0 auto 0 0; background: var(--ep-h6-blue-1); border-bottom-left-radius: 5px; }
.ep-h6-showcase__memory {
  left: 2%; top: 52%; width: 25%; padding: 18px 21px; transform: rotateY(-13deg) rotateZ(-8deg);
}
.ep-h6-showcase__memory .ep-h6-showcase__eyebrow { margin-bottom: 5px !important; }
.ep-h6-showcase__memory .ep-h6-showcase__sentence { font-size: .88em; }
.ep-h6-showcase__memory .ep-h6-showcase__note { margin-top: 8px !important; }
.ep-h6-showcase__memory > b { font-size: .83em; }
.ep-h6-showcase__memory > p { margin-block: 5px 8px !important; font-family: var(--ep-h6-serif); font-size: .83em; line-height: 1.5; }
.ep-h6-showcase__memory > small { display: block; font-size: .65em; line-height: 1.4; color: var(--ep-h6-ink-3); }
/* One uninterrupted camera move spans the scene, including its exit. Keeping it
   on a child prevents the incoming/outgoing state changes from restarting it. */
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__motion {
  animation: ep-h6-scene-travel 4s linear both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) :is(.ep-h6-showcase__annotation, .ep-h6-showcase__after) {
  animation: ep-h6-card-build .85s .85s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__practice {
  animation: ep-h6-card-build .85s 1.35s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__answer {
  animation: ep-h6-message-in .7s 2.1s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__memory {
  animation: ep-h6-card-build .7s .25s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__map-lines path {
  stroke-dasharray: 500; stroke-dashoffset: 0; animation: ep-h6-branch-draw 1.1s .15s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__map-lines path:nth-child(2) { animation-delay: .45s; }
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__map-lines path:nth-child(3) { animation-delay: .75s; }
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__map-node {
  animation: ep-h6-card-build .7s calc(.45s + var(--branch-delay, 0s)) var(--ep-h6-ease) both;
}
.ep-h6-showcase__map-node[data-branch="1"] { --branch-delay: .3s; }
.ep-h6-showcase__map-node[data-branch="2"] { --branch-delay: .6s; }
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-kind {
  animation: ep-h6-showcase-underline .9s 1.45s var(--ep-h6-ease) both;
}
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__change-note { animation: ep-h6-message-in .6s 2s var(--ep-h6-ease) both; }
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__message--me { animation: ep-h6-message-in .6s .55s var(--ep-h6-ease) both; }
.ep-h6-hero[data-motion] .ep-h6-showcase:not([hidden]) .ep-h6-showcase__message--lark { animation: ep-h6-message-in .75s 1.55s var(--ep-h6-ease) both; }
.ep-h6-hero[data-swapping="out"] .ep-h6-showcase:not([hidden]) { animation: ep-h6-scene-depart .4s cubic-bezier(.4, 0, .6, 1) both; }
.ep-h6-hero[data-swapping="in"] .ep-h6-showcase:not([hidden]) { animation: ep-h6-scene-return .4s var(--ep-h6-ease) both; }
.ep-h6-hero[data-swapping="out"] #home-intro-title { animation: ep-h6-heading-out .4s cubic-bezier(.4, 0, .6, 1) both; }
.ep-h6-hero[data-swapping="in"] #home-intro-title { animation: ep-h6-heading-in .4s var(--ep-h6-ease) both; }
@keyframes ep-h6-scene-depart {
  to { opacity: 0; transform: translate3d(10%, -1%, -90px) rotateY(20deg) rotateZ(-2deg) scale(.96); }
}
@keyframes ep-h6-scene-return {
  from { opacity: 0; transform: translate3d(-10%, 3%, -90px) rotateY(-16deg) rotateZ(2deg) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes ep-h6-scene-travel {
  from { transform: translate3d(-2.4%, 2%, -12px) rotateY(-2deg); }
  to { transform: translate3d(2.4%, -2%, 12px) rotateY(2deg); }
}
@keyframes ep-h6-card-build { from { opacity: 0; translate: -12px 10px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes ep-h6-branch-draw { from { stroke-dashoffset: 500; } to { stroke-dashoffset: 0; } }
@keyframes ep-h6-showcase-underline { from { background-size: 0 2px; } to { background-size: 100% 2px; } }
@keyframes ep-h6-message-in { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
@keyframes ep-h6-heading-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes ep-h6-heading-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ep-h6-dots { position: relative; z-index: 4; display: flex; justify-content: center; gap: 3px; margin-top: 8px; padding: 0; flex: none; }
#home-content .ep-h6-dots button {
  position: relative; display: grid; align-items: center; width: 48px; height: 24px; padding: 0 7px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; overflow: visible;
}
.ep-h6-dots button::before { content: ""; grid-area: 1/1; height: 5px; border-radius: 999px; background: var(--ep-h6-line-3); transform: scaleX(.42); transition: transform .4s var(--ep-h6-ease); }
.ep-h6-dots button[aria-pressed="true"]::before { transform: scaleX(1); }
.ep-h6-dots button > span { grid-area: 1/1; height: 5px; border-radius: 999px; transform-origin: 0 50%; transform: scaleX(0); background: var(--ep-h6-hero-blue); }
.ep-h6-dots button[aria-pressed="true"] > span { transform: scaleX(1); }
.ep-h6-hero[data-motion="running"] .ep-h6-dots button.is-timing > span,
.ep-h6-hero[data-motion="paused"] .ep-h6-dots button.is-timing > span { animation: ep-h6-timer 4s linear both; }
@keyframes ep-h6-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* All CSS timelines share the controller's active-time pause, including the
   outgoing scene and title. No partially animated static/mobile fallback. */
.ep-h6-hero[data-motion="paused"] *, .ep-h6-hero[data-motion="paused"] *::before, .ep-h6-hero[data-motion="paused"] *::after { animation-play-state: paused !important; }
.ep-h6-hero[data-motion="static"] *, .ep-h6-hero[data-motion="static"] *::before, .ep-h6-hero[data-motion="static"] *::after { animation: none !important; transition: none !important; }
.ep-h6-hero[data-motion="static"] :is(.ep-h6-showcase, #home-intro-title) { opacity: 1; transform: none; }
.ep-h6-hero[data-motion="static"] .ep-h6-kind { background-size: 100% 2px; }
.ep-h6-hero[data-still] .ep-h6-showcase * { animation: none !important; }
.ep-h6-hero[data-still] .ep-h6-dots button > span { animation: none !important; }
.ep-h6-hero[data-still]:not([data-swapping]) :is(.ep-h6-showcase, #home-intro-title) { animation: none !important; opacity: 1; transform: none; }
@media (min-width: 801px) and (max-width: 1100px) {
  .ep-h6-hero { padding-inline: 20px; }
  .ep-h6-showcase__board { padding: 19px; border-radius: 17px; }
  .ep-h6-showcase__sentence { font-size: 1.02em; }
  .ep-h6-showcase__annotation { padding: 17px 19px; }
}
@media (max-width: 800px) {
  .ep-h6-hero { min-height: 0; padding: 44px 22px 24px; overflow: visible; }
  .ep-h6-hero::before { inset: 8px; border-radius: 24px; }
  .migration-main .ep-h6-hero h1 { margin-bottom: 20px; font-size: clamp(34px, 8.7vw, 54px); line-height: 1.18; }
  .ep-h6-hero .ep-h6-actions { gap: 12px; }
  #home-content .ep-h6-hero .ep-h6-button { height: 42px; padding-inline: 18px; font-size: 12px; }
  #home-content .ep-h6-hero .ep-h6-button--ghost { padding-inline: 0; }
  .ep-h6-hero__stage { height: auto; margin-top: 30px; perspective: none; }
  .ep-h6-window { width: min(100%, 540px); height: auto; min-height: 0; }
  .ep-h6-panel.ep-h6-showcase { position: relative; inset: auto; font-size: 16px; display: flex; flex-direction: column; gap: 14px; padding-bottom: 8px; perspective: none; }
  .ep-h6-panel.ep-h6-showcase[hidden] { display: none; }
  .ep-h6-showcase__motion { position: relative; display: flex; flex-direction: column; gap: 14px; transform: none; }
  .ep-h6-showcase__board { position: relative; inset: auto; width: 100%; min-height: 0; padding: 22px; border-radius: 18px; transform: none; }
  .ep-h6-showcase__practice .ep-h6-showcase__sentence, .ep-h6-showcase__answer { font-size: 1em; }
  .ep-h6-showcase__ambient { display: none; }
  .ep-h6-showcase__badge { position: relative; inset: auto; display: block; text-align: right; padding: 6px 8px 0; }
  .ep-h6-showcase__document-top { margin-bottom: 16px; font-size: 11px; }
  .ep-h6-showcase__document-lines { gap: 8px; margin-top: 18px; }
  .ep-h6-showcase__document-lines i { height: 4px; }
  .ep-h6-showcase__annotation { align-self: flex-end; width: 88%; }
  .ep-h6-showcase__map { position: relative; inset: auto; display: flex; flex-wrap: wrap; gap: 8px; transform: none; }
  .ep-h6-showcase__map-lines { display: none; }
  .ep-h6-showcase__map-root, .ep-h6-showcase__map-node { position: relative; inset: auto; width: auto; min-height: 0; padding: 10px 13px; font-size: 13px; }
  .ep-h6-showcase__map-node[data-branch] { top: auto; }
  .ep-h6-showcase__map-root { width: 100%; justify-content: flex-start; margin-bottom: 3px; }
  .ep-h6-showcase__pair { position: relative; inset: auto; width: 100%; grid-template-columns: 1fr; gap: 12px; transform: none; }
  .ep-h6-showcase__pair > .ep-h6-showcase__board { padding: 22px; }
  .ep-h6-showcase__after { margin-top: 0; }
  .ep-h6-showcase__change-note { position: relative; inset: auto; max-width: none; border-radius: 14px; transform: none; }
  .ep-h6-showcase__chat { padding: 20px; }
  .ep-h6-showcase__memory { width: 88%; }
  .ep-h6-dots { margin-top: 16px; }
  .ep-h6-hero *, .ep-h6-hero *::before, .ep-h6-hero *::after { animation: none !important; transition: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ep-h6-hero *, .ep-h6-hero *::before, .ep-h6-hero *::after { animation: none !important; transition: none !important; }
  .ep-h6-hero[data-swapping] :is(#home-intro-title, .ep-h6-showcase) { opacity: 1; transform: none; }
  .ep-h6-bubble.is-arriving { animation: none; }
}
