/* ==========================================================================
   Home v2
   Layout: stage (hero + two paths) → document sheet (sections 2–5) → stage (inquiry hub).
   The hero's static layout is the default; `html.js-story` switches to the pinned
   scroll story. Class prefix for page-level helpers: .hv2-
   ========================================================================== */
:root {
    /* stage — a bright shop floor; --stage-900 / --stage-rgb are replaced at runtime by the sequence background */
    --stage-900: #F5F2ED;
    --stage-rgb: 245 242 237;
    --stage-850: #EEE9E2;
    --stage-800: #FFFFFF;
    --stage-700: #E7E1D8;
    --stage-line: rgba(30, 42, 68, .12);
    --on-stage: #1E2A44;
    --on-stage-2: #3D4860;
    --on-stage-3: #5B667C;
    --glass-300: #2F5AA8;
    --glass-400: #244A8F;
    --tint-b2b: #C8955A;
    --tint-b2c: #6FA7DB;
    /* sheet */
    --paper-50: #FAFAF8;
    --paper-100: #F2F1ED;
    --paper-line: #E4E2DC;
    --txt1: #0F172A;
    --txt2: #334155;
    --dark-600: #475569;
    --txt3: #64748B;
    /* bricks (fill only — text on them is --brick-ink) */
    --brick-ad: #8FA8D8;
    --brick-mall: #9CC5B8;
    --brick-media: #B8A9D9;
    --brick-banner: #E4B9A0;
    --brick-review: #A7C4DA;
    --brick-trial: #D8C38F;
    --brick-base: #E9E6E1;
    --brick-ink: #1B2438;
    --path-ad: #3A5A9A;
    --path-mall: #2F6B5C;
    /* action / form */
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;
    --field: #8C919B;
    --field-hover: #5B6170;
    --red-700: #B91C1C;
    --emerald-700: #047857;
    /* type */
    --font: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --fs-hero-display: clamp(2rem, min(1.3rem + 3.1vw, 8.2vh), 4rem);
    --fs-hero-beat: clamp(1.75rem, min(1.1rem + 1.9vw, 6.6vh), 3rem);
    --fs-hero-sub: clamp(1rem, .92rem + .35vw, 1.1875rem);
    --fs-h-major: clamp(1.7rem, 1.08rem + 2.3vw, 2.85rem);
    --fs-h-path: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
    --fs-lead: clamp(1rem, .95rem + .3vw, 1.15rem);
    --fs-stat: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
    /* rhythm */
    --sec-sm: clamp(48px, 5vw, 72px);
    --sec-md: clamp(72px, 7.5vw, 108px);
    --sec-lg: clamp(96px, 10vw, 150px);
    --header-h: 72px;
    --copy-left: max(24px, calc((100vw - 1280px) / 2 + 32px));
    --ease-spring: cubic-bezier(.16, 1, .3, 1);
}

/* ------------------------------------------------------------------ base */
.hv2 {
    margin: 0;
    font-family: var(--font);
    color: var(--txt2);
    background: var(--stage-900);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-break: keep-all;          /* Korean: never split a word across lines */
    overflow-wrap: break-word;
}
.hv2 h1, .hv2 h2, .hv2 h3 { margin: 0; text-wrap: wrap; }
.hv2 p { margin: 0; }
.hv2 :focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.hv2 [tabindex="-1"]:focus { outline: none; }
.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hv2-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 640px) { .hv2-container { padding: 0 24px; } }
@media (min-width: 1024px) { .hv2-container { padding: 0 32px; } }

/* ------------------------------------------------------------------ shared header (same markup as the original home) */
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 18px; border-radius: 10px;
    background: #fff; color: #0f172a; font-size: 14px; font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.header-glass {
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37, 99, 235, .06);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.header-glass.scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 4px 24px rgba(0, 0, 0, .06); border-bottom-color: rgba(37, 99, 235, .08); }
/* Over the bright stage the header keeps its dark text: transparent at the very top, stage-tinted glass once scrolled. */
.header-glass:not(.scrolled):not(.solid) { background: transparent; backdrop-filter: none; border-bottom-color: transparent; }
.header-glass.on-stage:not(.scrolled):not(.solid) {
    background: rgb(var(--stage-rgb) / .72); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom-color: rgba(30, 42, 68, .08);
}
.header-glass:not(.scrolled):not(.solid) .text-txt3:not(:hover) { color: var(--txt2); }
/* Tailwind switches the header to the full desktop menu at 768px, but the 5 Korean nav labels plus
   login/CTA only fit a single line from ~864px (measured, QA 2026-10-02) - below that each link box
   shrinks and its own text wraps to two lines. Keep the hamburger menu until there is real room. */
@media (max-width: 919px) {
    header#main-header nav[aria-label="주 메뉴"] { display: none; }
    header#main-header [data-action="mobile-menu"] { display: inline-block; }
}
.btn-primary-glow {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; font-weight: 700;
    padding: 16px 36px; border-radius: 12px; border: none; cursor: pointer;
    transition: transform .25s var(--ease-spring), box-shadow .25s var(--ease-spring); box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}
.btn-primary-glow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.mobile-menu {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px); z-index: 40; transform: translateX(100%); padding: 32px 24px;
    /* hidden from keyboard/screen readers while closed; visibility flips after the slide-out */
    visibility: hidden; transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .4s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; transition: transform .4s cubic-bezier(.4, 0, .2, 1), visibility 0s; }
.user-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .1);
    z-index: 50; padding: 8px; display: none;
}
.user-menu.open { display: block; }
.user-menu-item {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none;
    border-radius: 10px; font-size: 13px; color: #475569; cursor: pointer; text-decoration: none; text-align: left;
}
.user-menu-item:hover { background: #f0f7ff; color: #1e3a5f; }

/* Floating consult button: shown only while the document sheet is under the viewport. */
body.hv2-fab-off #mb-consult-fab { opacity: 0; visibility: hidden; pointer-events: none; }
#mb-consult-fab { transition: opacity .2s ease, visibility 0s linear .2s; }
body:not(.hv2-fab-off) #mb-consult-fab { transition: opacity .2s ease; }

/* ------------------------------------------------------------------ brick language */
.chips, .chip-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-row { display: flex; margin-bottom: 14px; }
.chip {
    display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
    font-size: 12px; font-weight: 700; line-height: 1; color: var(--brick-ink); background: var(--brick-base);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(27, 36, 56, .16);
}
.chip--ad { background: var(--brick-ad); }
.chip--mall { background: var(--brick-mall); }
.chip--media { background: var(--brick-media); }
.chip--banner { background: var(--brick-banner); }
.chip--review { background: var(--brick-review); }
.chip--trial { background: var(--brick-trial); }
.chip-row .eyebrow-text { margin-left: 4px; }
.eyebrow-text { font-size: 13px; font-weight: 600; color: var(--dark-600); }
.stage-sec .eyebrow-text, .story .eyebrow-text { color: var(--on-stage-2); }

.brick-btn {
    display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
    border-radius: 12px; background: var(--on-stage); color: #fff; font-size: 16px; font-weight: 700;
    text-decoration: none; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 10px 24px -14px rgba(30, 42, 68, .5);
    transition: transform .2s var(--ease-spring), background-color .2s, box-shadow .2s;
}
.brick-btn:hover { background: #2B3A5C; transform: translateY(-2px); }
.brick-btn:active { transform: none; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .22); }
.brick-btn:focus-visible { outline: 2px solid var(--glass-300); outline-offset: 3px; }
.brick-btn__swatch { width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); flex: none; }
.brick-btn__swatch--ad { background: var(--brick-ad); }
.brick-btn__swatch--mall { background: var(--brick-mall); }
.brick-btn__arrow { font-size: 14px; margin-left: 2px; align-self: flex-end; margin-bottom: 20px; }
.brick-btn[data-inquiry-tab="ad"]:hover { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 14px 30px -12px rgb(58 90 154 / .55); }
.brick-btn[data-inquiry-tab="mall"]:hover { box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 14px 30px -12px rgb(47 107 92 / .5); }

/* ------------------------------------------------------------------ buttons & links */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
    border-radius: 12px; font-size: 16px; font-weight: 700; text-decoration: none; border: 1px solid transparent;
    transition: transform .2s var(--ease-spring), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn--primary { background: var(--blue-600); color: #fff; }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(37, 99, 235, .35); }
.btn--secondary { border-color: var(--field); color: var(--txt1); background: transparent; }
.btn--secondary:hover { background: var(--paper-100); border-color: var(--field-hover); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--blue-700); text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.stage-sec .text-link { color: var(--glass-300); }
.text-btn { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--blue-700); cursor: pointer; }
.text-btn:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   S0. Hero — static layout (default)
   ========================================================================== */
.story { position: relative; background: var(--stage-900); color: var(--on-stage); --hero-progress: 0; }
.story-stage {
    position: relative; isolation: isolate; overflow: hidden; background: var(--stage-900);
    min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; box-sizing: border-box;
}
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.story.is-seq-ready .story-canvas { animation: hv2-canvas-in .3s ease-out backwards; }
@keyframes hv2-canvas-in { from { opacity: 0; } }
.story-scrim {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(ellipse 58% 72% at 16% 36%, rgb(var(--stage-rgb) / .62), rgb(var(--stage-rgb) / 0) 70%),
        linear-gradient(to top, rgb(var(--stage-rgb) / .5), transparent 22%);
}
.story-scrim--bottom { display: none; }
.story-copy {
    position: relative; z-index: 3; width: min(600px, calc(100% - 48px)); margin-left: var(--copy-left);
    padding: calc(var(--header-h) + 11svh) 0 clamp(56px, 10svh, 120px); box-sizing: border-box;
}
/* soft shadow behind the copy block so text stays readable over any frame */
.story-copy::before {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    left: -12vw; right: -10vw; top: calc(var(--header-h) + 4svh); bottom: 0;
    background: radial-gradient(closest-side, rgb(var(--stage-rgb) / .5), rgb(var(--stage-rgb) / 0));
}
.beat-title { font-size: var(--fs-hero-beat); font-weight: 800; line-height: 1.22; letter-spacing: -.028em; color: var(--on-stage); }
.beat-title--display { font-size: var(--fs-hero-display); line-height: 1.18; letter-spacing: -.032em; }
.beat-title, .beat-sub { text-shadow: 0 1px 24px rgb(var(--stage-rgb) / .6); }
/* on-stage (not on-stage-2): over busy frames some beats measured 4.28-4.48:1, just under the 4.5:1 text minimum */
.beat-sub { margin-top: 16px; font-size: var(--fs-hero-sub); font-weight: 500; line-height: 1.65; letter-spacing: -.01em; color: var(--on-stage); }
.story-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* scene label above a beat title */
.beat-label {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
    font-size: 13px; font-weight: 700; letter-spacing: .01em; color: var(--on-stage);
}
.beat-label::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--on-stage); }
.beat-label--mall::before { background: var(--brick-mall); }
.beat-label--b2b::before { background: var(--tint-b2b); }
.beat-label--b2c::before { background: var(--tint-b2c); }

/* shelf items (B2B / B2C): the piece the camera stops at is marked .is-current by the player.
   In the story the list sits on a frosted panel so the text stays readable over busy frames. */
.shelf { margin-top: 18px; }
.story.is-scrub .shelf {
    margin-left: -14px; padding: 8px 14px 12px; border-radius: 16px;
    background: rgb(var(--stage-rgb) / .8); -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
    box-shadow: 0 12px 32px -20px rgba(30, 42, 68, .4);
    transition: opacity .35s ease, visibility 0s linear 0s;
}
/* the list appears once the camera reaches the first piece: the wide shot keeps the wall sign clear */
.story.is-scrub .shelf:not(.has-current) { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.shelf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shelf-list li {
    display: grid; grid-template-columns: 7.5em 1fr; align-items: baseline; column-gap: 14px;
    padding: 9px 12px; margin: 0 -12px; border-radius: 10px;
    transition: background-color .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.shelf-list__name { font-size: 16px; font-weight: 700; color: var(--on-stage); }
.shelf-list__desc { font-size: 14px; line-height: 1.5; color: var(--on-stage-2); }
.shelf-note { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--on-stage-2); }
.story.is-scrub .shelf-list li:not(.is-current) .shelf-list__name { font-weight: 500; color: var(--on-stage-2); }
.story.is-scrub .shelf-list li.is-current { background: rgb(255 255 255 / .85); }
.story.is-scrub .shelf-list--b2b li.is-current { box-shadow: inset 3px 0 0 var(--tint-b2b), 0 8px 24px -16px rgba(30, 42, 68, .45); }
.story.is-scrub .shelf-list--b2c li.is-current { box-shadow: inset 3px 0 0 var(--tint-b2c), 0 8px 24px -16px rgba(30, 42, 68, .45); }

/* line break used only on narrow portrait screens (intentional two/three-line copy) */
.br-m { display: none; }
@media (max-aspect-ratio: 4/5) { .br-m { display: inline; } }
/* line break used where two-column cards get narrow (tablets, small laptops, phones) */
.br-n { display: none; }
@media (max-width: 1180px) { .br-n { display: inline; } }
/* line break used below large desktops (the media-mix text column is narrow up to 1279px) */
.br-l { display: none; }
@media (max-width: 1279.98px) { .br-l { display: inline; } }
/* the closing title keeps its first line whole: sized to the copy column on landscape screens */
@media (min-aspect-ratio: 4/5) {
    .js-story .story .beat--final .beat-title--end { font-size: min(var(--fs-hero-display), calc(min(640px, 48vw) / 12.8)); }
}

/* static: middle beats become a short list (label + title), their sub lines stay for screen readers only */
.story .beat--intro + .beat--mid { margin-top: 32px; }
.story .beat--mid + .beat--mid { margin-top: 20px; }
.story .beat--mid .beat-title { font-size: 20px; line-height: 1.45; letter-spacing: -.015em; font-weight: 700; }
html:not(.js-story) .story .beat--mid .beat-label { margin-bottom: 4px; }
.story .beat-sub--story { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
/* static, landscape: the still fills the first screen below the header bar and fades into the page;
   the copy runs on below it */
@media (min-aspect-ratio: 4/5) {
    .story-canvas {
        top: var(--header-h); bottom: auto;
        height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
        -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
        mask-image: linear-gradient(to bottom, #000 72%, transparent);
    }
}
.story .beat--final { margin-top: 32px; }
.story .beat--final .beat-title { font-size: var(--fs-h-major); line-height: 1.3; letter-spacing: -.025em; }
.story-rail, .story-ctrl, .story-cue { display: none; }

/* static, portrait: still image on top, copy below */
@media (max-aspect-ratio: 4/5) {
    .story-canvas {
        position: relative; inset: auto; height: 60svh; flex: none;
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
        mask-image: linear-gradient(to bottom, #000 calc(100% - 32px), transparent);
    }
    /* no image will come (no sequence published, or no script): no reserved space */
    html:not(.hv2-js) .story-canvas, .story.no-seq .story-canvas { display: none; }
    html:not(.hv2-js) .story-copy, .story.no-seq .story-copy { padding-top: calc(var(--header-h) + 32px); }
    .story-scrim { display: none; }
    .story-copy { width: auto; margin: 0 20px; padding: 8px 0 56px; }
    .story-copy::before { display: none; }
    .story .brick-btn { flex: 1 1 0; min-height: 52px; justify-content: center; padding: 0 12px; }
}

/* ==========================================================================
   S0. Hero — scroll story (html.js-story, set before first paint)
   ========================================================================== */
.js-story .story-stage { display: block; height: 100vh; height: 100svh; min-height: 0; }
/* the picture starts below the fixed header, so the header reads as a bar and never covers the top of a frame */
/* (a canvas is a replaced element: it needs an explicit height, "auto" would fall back to its 2:1 bitmap ratio) */
.js-story .story-canvas {
    position: absolute; top: var(--header-h); right: auto; bottom: auto; left: 0;
    width: 100%; height: calc(100% - var(--header-h)); -webkit-mask-image: none; mask-image: none;
}
.js-story .story-scrim { display: block; }
/* Landscape bottom seam: the frame's own bottom edge (carpet/floor) sits a little darker than
   --stage-rgb, and story-scrim's top-down gradient (above) has already faded out by 22% up from
   the bottom. Without it, that strip reads as a hard line against the section that follows once the
   hero ends (QA 2026-10-02). A slim blend of the last ~9% is enough; portrait overrides this below
   with its own stronger version for CTA-area readability. */
.js-story .story-scrim--bottom {
    display: block; opacity: 0;
    background: linear-gradient(to top, rgb(var(--stage-rgb) / .7) 0%, transparent 9%);
}
/* on wide screens the copy hugs the left edge (max 8vw) so it stays clear of signs in the middle of the frame */
.js-story .story-copy {
    position: absolute; left: min(var(--copy-left), 8vw); top: calc(var(--header-h) + 11svh);
    width: min(640px, 48vw); margin: 0; padding: 0; display: grid;
}
.js-story .story-copy::before { top: -14svh; bottom: -12svh; }
.js-story .beat { grid-area: 1 / 1; margin: 0 !important; }
.js-story .beat--mid .beat-title { display: block; font-size: var(--fs-hero-beat); line-height: 1.22; letter-spacing: -.028em; font-weight: 800; }
/* b2b/b2c: at laptop-ish widths the wall plaque sits close behind the copy column; a smaller title
   keeps the line short enough to clear it (the frame's plaque position can't move, so the text does) */
@media (min-aspect-ratio: 4/5) and (max-width: 1440px) {
    .js-story .beat--mid[data-beat="b2b"] .beat-title, .js-story .beat--mid[data-beat="b2c"] .beat-title {
        font-size: clamp(1.5rem, min(.95rem + 1.5vw, 5.6vh), 2.6rem);
    }
}
.js-story .beat--mid .beat-title::before { display: none; }
.js-story .beat--final .beat-title { font-size: var(--fs-hero-display); line-height: 1.18; letter-spacing: -.032em; }
.js-story .story .beat-sub--story { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
/* initial story state: only the first beat is visible */
.js-story .beat:not(:first-child):not(.beat--final),
.js-story .beat--final [data-beat-part] { opacity: 0; }
.js-story .story:not(.is-cta-live) .story-cta { pointer-events: none; }

.js-story .story-rail {
    display: none; position: absolute; right: 32px; top: 50%; transform: translateY(-50%); z-index: 4;
    flex-direction: column; gap: 0;
}
@media (min-width: 1024px) { .js-story .story-rail { display: flex; } }
.story-rail__btn {
    position: relative; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: flex-end;
}
.story-rail__btn::after {
    content: ''; width: 20px; height: 2px; border-radius: 1px; background: rgba(30, 42, 68, .25);
    transition: width .2s var(--ease-spring), background-color .2s;
}
.story-rail__btn[aria-current="step"]::after { width: 28px; background: var(--on-stage); }
.story-rail__btn:focus-visible { outline: 2px solid var(--glass-300); outline-offset: -2px; }
.story-rail__label {
    position: absolute; right: 52px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    font-size: 12px; font-weight: 600; color: var(--on-stage-2); opacity: 0; pointer-events: none; transition: opacity .15s;
}
.story-rail__btn:hover .story-rail__label, .story-rail__btn:focus-visible .story-rail__label { opacity: 1; }
.js-story .story-ctrl { display: flex; align-items: center; gap: 20px; position: absolute; right: 32px; bottom: 28px; z-index: 4; }
/* the empty gaps in this row must not block clicks to the copy/CTA below once its buttons hide (checkout beat, portrait) */
.js-story .story-ctrl { pointer-events: none; }
.js-story .story-ctrl > * { pointer-events: auto; }
.story-skip {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
    background: rgb(255 255 255 / .72); backdrop-filter: blur(8px);
    font-size: 13px; font-weight: 600; color: var(--on-stage-2); text-decoration: none;
}
.story-skip:focus-visible { outline: 2px solid var(--glass-300); outline-offset: 3px; }
.story-auto {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid var(--stage-line); background: rgb(255 255 255 / .72); backdrop-filter: blur(8px);
    font: inherit; font-size: 13px; font-weight: 700; color: var(--on-stage); cursor: pointer;
    transition: background-color .2s;
}
.story-auto:hover { background: #fff; }
.story-auto:focus-visible { outline: 2px solid var(--glass-300); outline-offset: 3px; }
.story-auto__icon { font-size: 11px; }
.story-auto[aria-pressed="true"] { background: var(--on-stage); border-color: var(--on-stage); color: #fff; }
.story-auto[aria-pressed="true"] .story-auto__icon--play,
.story-auto:not([aria-pressed="true"]) .story-auto__icon--pause { display: none; }
.js-story .story-cue {
    display: flex; flex-direction: column; align-items: center; gap: 8px; position: absolute; left: 50%; bottom: 28px;
    transform: translateX(-50%); z-index: 4; padding: 6px 10px; border-radius: 999px;
    background: rgb(255 255 255 / .72); backdrop-filter: blur(8px);
    font-size: 10px; font-weight: 700; letter-spacing: .18em; color: var(--on-stage-2);
}
.story-cue__track { width: 20px; height: 32px; border: 1px solid var(--stage-line); border-radius: 10px; position: relative; }
.story-cue__dot { position: absolute; left: 50%; top: 6px; width: 4px; height: 6px; margin-left: -2px; border-radius: 2px; background: var(--glass-300); animation: hv2-cue 1.6s ease-in-out infinite; }
@keyframes hv2-cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* story, portrait: copy at the top, CTAs at the bottom within thumb reach */
@media (max-aspect-ratio: 4/5) {
    .js-story .story-scrim {
        display: block;
        background: linear-gradient(to bottom, rgb(var(--stage-rgb) / .7) 0%, rgb(var(--stage-rgb) / .35) 30%, transparent 46%);
    }
    .js-story .story-scrim--bottom {
        display: block; opacity: 0;
        background: linear-gradient(to top, rgb(var(--stage-rgb) / .85) 0%, transparent 28%);
    }
    .js-story .story-copy {
        left: 20px; right: 20px; width: auto; top: calc(var(--header-h) + 3svh);
        bottom: calc(24px + env(safe-area-inset-bottom)); align-content: start;
    }
    /* scrim behind the top copy zone (falling bricks cross it) */
    .js-story .story-copy::before {
        display: block; left: -20px; right: -20px; top: -3svh; bottom: auto; height: 38svh;
        background: linear-gradient(to bottom, rgb(var(--stage-rgb) / .55), rgb(var(--stage-rgb) / .3) 60%, rgb(var(--stage-rgb) / 0));
    }
    .js-story .story-cta { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; flex-wrap: nowrap; }
    .js-story .story-ctrl { right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); gap: 12px; }
    .js-story .story-cue { left: 20px; transform: none; align-items: flex-start; }
    .js-story .story[data-active-beat="checkout"] .story-auto { visibility: hidden; }
    /* one shelf item at a time on phones */
    .story.is-scrub .shelf-list li:not(.is-current) { display: none; }
    .shelf { margin-top: 12px; }
    .story.is-scrub .shelf { margin-left: 0; padding: 6px 12px 10px; }
    .shelf-list li { grid-template-columns: 1fr; row-gap: 2px; }
}
/* compact-height portrait (a real phone browser's address/tab bar shrinks the viewport well below the
   device's full height): the title/sub keep the same lines (E3) but the fixed gaps between them shrink,
   so the copy block clears the storefront sign in the frame beneath it */
@media (max-aspect-ratio: 4/5) and (max-height: 720px) {
    .js-story .story-copy { top: calc(var(--header-h) + 1.5svh); }
    .js-story .beat-label { margin-bottom: 8px; }
    .js-story .beat-sub { margin-top: 8px; line-height: 1.5; }
}

/* ==========================================================================
   Stage sections (S1, S6) and the document sheet (S2–S5)
   ========================================================================== */
.stage-sec { background: var(--stage-900); color: var(--on-stage-2); }
.stage-sec--paths { padding: var(--sec-md) 0 var(--sec-lg); }
.stage-sec--inquiry { padding: var(--sec-lg) 0; }
.stage-sec .h-major { color: var(--on-stage); }
.stage-sec .lead { color: var(--on-stage-2); font-weight: 450; }

.sheet {
    position: relative; background: var(--paper-50); border-radius: 20px; overflow: hidden;
    box-shadow: 0 -24px 64px rgba(30, 42, 68, .12);
}
@media (min-width: 768px) { .sheet { margin: 0 8px; border-radius: 28px; } }
@media (min-width: 1024px) { .sheet { margin: 0 16px; } }
.sheet-sec { padding: var(--sec-lg) 0; color: var(--txt2); }
.sheet-sec--50 { background: var(--paper-50); }
.sheet-sec--100 { background: var(--paper-100); }
#media-mix, #trust { padding: var(--sec-md) 0; }

.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 1024px) {
    .sec-head--split { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 48px; }
}
.h-major { font-size: var(--fs-h-major); font-weight: 800; line-height: 1.3; letter-spacing: -.025em; color: var(--txt1); }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--dark-600); }
.sec-head__main .lead { margin-top: 16px; }
.caption { font-size: 13px; line-height: 1.5; color: var(--dark-600); }

/* S1 path cards */
.path-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .path-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .path-grid .path-card { padding: 28px 22px; } }
@media (max-width: 374px) { .path-card .path-card__desc { font-size: 15px; } }
.path-card {
    position: relative; display: flex; flex-direction: column; gap: 14px; padding: 40px; border-radius: 20px;
    background: var(--stage-850); border: 1px solid var(--stage-line); border-top: 3px solid var(--brick-base);
    transition: transform .2s var(--ease-spring), background-color .2s, border-color .2s;
}
.path-card--mall { border-top-color: var(--brick-mall); }
.path-card--ad { border-top-color: var(--brick-ad); }
.path-card:hover { background: var(--stage-700); border-color: rgba(30, 42, 68, .2); transform: translateY(-3px); }
.path-card--mall:hover { border-top-color: var(--brick-mall); }
.path-card--ad:hover { border-top-color: var(--brick-ad); }
.path-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.path-card__target { font-size: 13px; font-weight: 600; color: var(--on-stage-2); }
.path-card__title { font-size: var(--fs-h-path); font-weight: 800; line-height: 1.35; letter-spacing: -.015em; color: var(--on-stage); }
.path-card__title a { color: inherit; text-decoration: none; }
.stretched-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.stretched-link:focus-visible { outline: none; }
.path-card:focus-within { outline: 2px solid var(--glass-300); outline-offset: 3px; }
.path-card__desc { font-size: 16px; line-height: 1.7; color: var(--on-stage-2); font-weight: 450; }
.path-card__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.path-card__items li { display: flex; gap: 10px; font-size: 15px; color: var(--on-stage-2); }
.path-card__items li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 2px; background: var(--brick-base); }
.path-card--mall .path-card__items li::before { background: var(--brick-mall); }
.path-card--ad .path-card__items li::before { background: var(--brick-ad); }
.path-card__link { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--glass-300); }

/* S2 condition table */
.cond-table { margin: 0; border-top: 1px solid var(--paper-line); }
.cond-table__row { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
.cond-table dt { font-size: 13px; font-weight: 600; color: var(--dark-600); }
.cond-table dd { margin: 0; font-size: 15px; font-weight: 500; color: var(--txt1); }

/* S2/S3 rising step cards */
.steps { list-style: none; margin: 0; padding: calc((var(--steps, 3) - 1) * 16px) 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) {
    .steps { grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); align-items: start; }
    .steps .step { translate: 0 calc(var(--i, 0) * -16px); }
}
.step {
    display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: #fff;
    border: 1px solid var(--paper-line); border-top: 3px solid var(--brick-base);
    box-shadow: 0 1px 2px rgba(27, 36, 56, .06);
}
.steps--mall .step { border-top-color: var(--brick-mall); }
.steps--mall .step--trial { border-top-color: var(--brick-trial); }
.steps--ad .step { border-top-color: var(--brick-ad); }
.step__num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.steps--mall .step__num { color: var(--path-mall); }
.steps--ad .step__num { color: var(--path-ad); }
.chip--in-step { align-self: flex-start; }
.step__title { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.015em; color: var(--txt1); }
.step__desc { font-size: .9375rem; line-height: 1.65; color: var(--dark-600); }
@media (max-width: 899px) {
    /* vertical list: rail + numbered circles, no rising offset */
    .steps { padding: 0 0 0 44px; position: relative; gap: 12px; }
    .steps::before { content: ''; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 2px; background: var(--paper-line); }
    .step { position: relative; }
    .step__num {
        position: absolute; left: -44px; top: 20px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper-50);
        display: flex; align-items: center; justify-content: center; border: 1.5px solid currentColor; font-size: 11px;
    }
}

.sec-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.sec-foot--end { justify-content: flex-end; gap: 28px; }
.notice {
    display: flex; gap: 10px; align-items: flex-start; max-width: 640px; padding: 14px 16px; border-radius: 10px;
    background: var(--paper-100); border-left: 3px solid var(--field); font-size: 14px; line-height: 1.6; color: var(--dark-600);
}
.notice--trial { border-left-color: var(--brick-trial); }
.notice i { margin-top: .3em; font-size: 14px; }
@media (max-width: 767px) { .sec-foot .btn { width: 100%; } }

/* S3 media types */
.type-chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip {
    display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 8px; background: #fff;
    border: 1px solid var(--paper-line); font-size: 13px; font-weight: 600; color: var(--dark-600);
}

/* S4 media mix */
.mix-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .mix-grid { grid-template-columns: 5fr 1fr 6fr; } .quote-card { grid-column: 3; } }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { display: flex; gap: 10px; font-size: 15px; color: var(--txt2); }
.facts li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: .6em; border-radius: 2px; background: var(--brick-media); }
@media (max-width: 767px) { .btn-row .btn { width: 100%; } }
.quote-card {
    padding: 16px; border-radius: 20px; background: var(--stage-800); border: 1px solid var(--stage-line);
    box-shadow: 0 32px 80px -32px rgba(30, 42, 68, .22); color: var(--on-stage-2);
}
.quote-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.quote-tag {
    display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(47, 90, 168, .08); border: 1px solid rgba(47, 90, 168, .2); color: var(--glass-300);
}
.quote-tag--dim { color: var(--on-stage-3); }
.quote-card__sample { margin-left: auto; padding: 2px 8px; border: 1px solid var(--stage-line); border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--on-stage-3); }
.quote-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quote-row {
    display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 12px;
    border-radius: 12px; background: rgba(30, 42, 68, .03); border: 1px solid var(--stage-line);
}
.quote-row__icon { width: 30px; height: 30px; border-radius: 9px; background: rgba(47, 90, 168, .1); color: var(--glass-300); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.quote-row__name { font-size: 14px; font-weight: 700; color: var(--on-stage); }
.quote-row__amt { font-family: var(--font-mono); font-size: 13px; color: var(--on-stage-2); text-align: right; font-variant-numeric: tabular-nums; }
.quote-row__amt small { margin-left: 2px; font-size: 11px; color: var(--on-stage-3); }
.quote-total {
    display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 14px 12px; border-radius: 12px;
    background: rgba(47, 90, 168, .07); font-size: 14px; font-weight: 700; color: var(--on-stage-2);
}
.quote-total__amt { font-family: var(--font-mono); font-size: 18px; color: var(--on-stage); font-variant-numeric: tabular-nums; }
.quote-docs { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.quote-docs li { padding: 6px 10px; border-radius: 8px; background: rgba(30, 42, 68, .05); font-size: 12px; color: var(--on-stage-2); }
.quote-card__note { margin-top: 12px; font-size: 12px; color: var(--on-stage-3); }
@media (max-width: 767px) { .quote-card { padding: 12px; } }

/* numbered section label (01 / 02 / 03): number, short rule, Korean label */
.sec-index {
    display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
    font-size: 12px; font-weight: 700; color: var(--txt3);
}
.sec-index b { color: var(--blue-600); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.sec-index i { display: block; width: 34px; height: 1px; background: rgba(37, 99, 235, .32); }

/* S2 main service cards: image on top, text below, a floating 3D icon on the seam */
.split-card {
    position: relative; isolation: isolate; overflow: hidden; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    transition: transform .5s var(--ease-spring), border-color .5s var(--ease-spring), box-shadow .5s var(--ease-spring);
}
.split-card:hover { border-color: rgba(37, 99, 235, .18); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(37, 99, 235, .1); }
/* the card link is a .stretched-link (its own focus outline suppressed below); show focus on the card instead */
.split-card:focus-within { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.split-card .split-image { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; background-repeat: no-repeat; }
.split-card .split-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(255, 255, 255, .18) 100%); }
.split-card .split-body { position: relative; padding: 24px 28px 28px; }
.split-card--svc .split-body { padding-top: 46px; }
.split-card--svc .split-icon { position: absolute; top: -32px; left: 24px; z-index: 2; }
.icon-box-3d { position: relative; width: 64px; height: 64px; perspective: 900px; }
.icon-3d {
    position: relative; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d; will-change: transform; animation: hv2-icon3d-float 5.5s ease-in-out infinite;
    transition: transform .5s var(--ease-spring), box-shadow .45s var(--ease-spring);
    box-shadow: 0 10px 20px -8px var(--glow, rgba(37, 99, 235, .4));
}
.icon-3d::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: overlay;
    background: linear-gradient(140deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 42%);
}
.icon-3d::after {
    content: ''; position: absolute; left: 8px; right: 8px; bottom: -10px; height: 14px; z-index: -1; border-radius: 50%;
    background: var(--glow, rgba(37, 99, 235, .4)); filter: blur(10px); opacity: .55; transition: opacity .4s, transform .4s;
}
.icon-3d svg { position: relative; z-index: 1; width: 30px; height: 30px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .28)); }
.split-card:hover .icon-3d { animation-play-state: paused; }
.split-card:hover .icon-3d::after { opacity: .8; transform: scale(1.15); }
@keyframes hv2-icon3d-float {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-6px) rotateX(7deg) rotateY(-8deg); }
}

/* S3 webinar format boxes */
.format-card {
    height: 100%; box-sizing: border-box; padding: 28px; border-radius: 20px; background: #fff; border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.format-card:hover { border-color: rgba(124, 58, 237, .2); transform: translateY(-4px); box-shadow: 0 16px 32px rgba(124, 58, 237, .08); }
.feature-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; font-size: 12px; color: #475569;
    background: #faf5ff; border: 1px solid rgba(124, 58, 237, .1); transition: background-color .3s, border-color .3s, color .3s;
}
.feature-chip:hover { background: #ede9fe; border-color: rgba(124, 58, 237, .25); color: #7c3aed; }

/* S3 webinar explainer: a short motion graphic (static/js/webinar-mg.js).
   .mg-steps is the content and, without the script or with reduced motion, a still storyboard;
   .mg.is-live runs the player (the list stays for screen readers only). */
.mg { --mg-ink: #0E1630; --mg-gold: #D9B977; position: relative; margin-bottom: clamp(32px, 4vw, 52px); color: #fff; }
.mg-steps {
    list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px);
    padding: clamp(24px, 3.2vw, 40px) clamp(18px, 3vw, 40px); border-radius: 24px;
    background: radial-gradient(120% 100% at 72% 20%, #263A66 0%, #16223F 52%, var(--mg-ink) 100%);
    box-shadow: 0 28px 64px -32px rgba(14, 22, 48, .7);
}
.mg-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mg-step__art { position: relative; width: min(100%, 180px); aspect-ratio: 1; margin-bottom: 12px; }
.mg-step__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mg-step__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--mg-gold); }
.mg-step__title { margin-top: 6px; font-size: clamp(15px, 1.2vw, 18px); font-weight: 700; line-height: 1.4; color: #fff; word-break: keep-all; }
.mg-step__note { margin-top: 6px; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .66); }
@media (max-width: 899px) { .mg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }

.mg-player, .mg-ui { display: none; }
.mg.is-live .mg-steps {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.mg.is-live .mg-player {
    display: block; position: relative; aspect-ratio: 2 / 1; border-radius: 24px; overflow: hidden; isolation: isolate;
    background: radial-gradient(110% 120% at 70% 30%, #22345F 0%, #142040 50%, var(--mg-ink) 100%);
    box-shadow: 0 28px 64px -32px rgba(14, 22, 48, .7);
}
.mg-stage { position: absolute; inset: 0; overflow: hidden; }
/* background: soft glows (gradients, no blur filter) and a perspective floor. The script moves the floor grid
   and the glows with the camera through transforms only, so nothing has to repaint while it plays. */
.mg-bg { position: absolute; inset: 0; overflow: hidden; }
.mg-glows { position: absolute; inset: -10% -20%; will-change: transform; }
.mg-orb { position: absolute; border-radius: 50%; animation: mg-drift 14s ease-in-out infinite alternate; }
.mg-orb--a { width: 46%; aspect-ratio: 1; left: 46%; top: -26%; background: radial-gradient(closest-side, rgba(59, 107, 217, .55), rgba(59, 107, 217, 0)); }
.mg-orb--b { width: 34%; aspect-ratio: 1; left: 6%; top: 46%; background: radial-gradient(closest-side, rgba(110, 88, 196, .38), rgba(110, 88, 196, 0)); animation-delay: -5s; }
.mg-orb--c { width: 30%; aspect-ratio: 1; left: 72%; top: 56%; background: radial-gradient(closest-side, rgba(200, 149, 90, .3), rgba(200, 149, 90, 0)); animation-delay: -9s; }
@keyframes mg-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6%, 8%) scale(1.12); } }
.mg-floor {
    position: absolute; left: -40%; right: -40%; bottom: 0; height: 44%; transform-origin: 50% 100%; transform: perspective(420px) rotateX(64deg); overflow: hidden;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 95%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 95%);
}
.mg-floor__grid {
    position: absolute; left: -128px; right: -128px; top: 0; bottom: 0; will-change: transform;
    background-image: linear-gradient(rgba(150, 180, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(150, 180, 255, .16) 1px, transparent 1px);
    background-size: 64px 64px;
}
.mg-world { position: absolute; left: 0; top: 0; width: 6400px; height: 800px; transform-origin: 0 0; will-change: transform; }
.mg-o { position: absolute; }
.mg-f { position: relative; height: 100%; }
.mg-f--a { animation: mg-float 5.2s ease-in-out infinite; }
.mg-f--b { animation: mg-float 6.4s ease-in-out -2s infinite; }
.mg-f--c { animation: mg-float 4.6s ease-in-out -1s infinite; }
@keyframes mg-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(.8deg); } }
.mg.is-paused .mg-f, .mg.is-paused .mg-orb { animation-play-state: paused; }
.mg-ly0 { display: block; width: 100%; height: auto; }
.mg-ly { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.mg-fx { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.mg-ring { fill: none; stroke: #8DB8FF; stroke-width: 3; }
.mg-ring--gold { stroke: #E8C98A; }
.mg-trail { fill: none; stroke: rgba(242, 217, 164, .8); stroke-width: 4; stroke-dasharray: 2 14; stroke-linecap: round; }
.mg-sig { fill: none; stroke: #9CC0FF; stroke-width: 3; stroke-linecap: round; }
.mg-pulse { fill: #FFFFFF; stroke: rgba(156, 192, 255, .6); stroke-width: 8; }
.mg-shock { stroke: #F2D9A4; stroke-width: 5; stroke-linecap: round; }
.mg-star { fill: #FFF1CF; }
.mg-speed { stroke: url(#mgSpeed); stroke-width: 6; stroke-linecap: round; }
/* glint: a light band sweeping across a piece, masked by the piece's own image (set by the script) */
.mg-shine {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .62) 50%, rgba(255, 255, 255, 0) 60%) no-repeat;
    background-size: 250% 100%; background-position: 97% 0;
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.mg-flash { position: absolute; inset: 0; background: var(--mg-ink); opacity: 1; pointer-events: none; }
/* small in-world UI: the production card over the monitor, the video tile that flies to the tower */
.mg-card {
    position: absolute; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 22px; box-sizing: border-box;
    border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .24);
    box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .7);
    font-family: var(--font-mono); font-size: 22px; font-weight: 600; letter-spacing: .14em; color: #fff;
}
.mg-card__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #FF5A5A; box-shadow: 0 0 16px #FF5A5A; }
.mg-card__bar { position: relative; flex: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mg-card__bar i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #8DB8FF, #F2D9A4); transform-origin: 0 50%; }
.mg-tile {
    width: 112px; height: 80px; border-radius: 20px; display: grid; place-items: center;
    background: linear-gradient(135deg, #5B8CFF, #8E6BFF); box-shadow: 0 0 44px rgba(120, 150, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.mg-tile::after { content: ''; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 25px; border-color: transparent transparent transparent #fff; }

/* captions: a left column on wide players, a band under the stage on narrow ones */
.mg-caps { position: absolute; left: 5.5%; top: 0; bottom: 0; width: 37%; display: grid; align-items: center; pointer-events: none; }
.mg-cap { grid-area: 1 / 1; visibility: hidden; }
.mg-cap__step { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .18em; color: var(--mg-gold); }
.mg-cap__step b { font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #fff; }
.mg-cap__step i { width: 40px; height: 1px; background: currentColor; transform-origin: 0 50%; }
.mg-cap__title { margin-top: 16px; font-size: clamp(26px, 3.1vw, 44px); font-weight: 800; line-height: 1.22; letter-spacing: -.025em; color: #fff; }
.mg-ln { display: block; overflow: hidden; white-space: nowrap; padding: .05em 0 .1em; margin: -.05em 0 -.1em; }
.mg-c { display: inline-block; white-space: pre; }
.mg-cap__down { width: .62em; margin-left: .22em; color: var(--mg-gold); vertical-align: -.06em; }
.mg-cap__down svg { display: block; width: 100%; height: auto; }
.mg-cap__note { position: relative; display: inline-block; margin-top: 16px; font-size: clamp(13px, 1.1vw, 15px); color: rgba(255, 255, 255, .74); }
.mg-cap__note i { position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--mg-gold); transform-origin: 0 50%; }
.mg-bug {
    position: absolute; left: 5.5%; top: 7%; display: flex; align-items: center; gap: 8px; pointer-events: none;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: rgba(255, 255, 255, .6);
}
.mg-bug i { width: 7px; height: 7px; border-radius: 50%; background: var(--mg-gold); box-shadow: 0 0 10px var(--mg-gold); }

/* controls: play toggle + chapters over the bottom of the player */
.mg.is-live .mg-ui {
    display: flex; align-items: flex-end; gap: 16px; position: absolute; left: 0; right: 0; bottom: 0;
    padding: 18px clamp(16px, 2.6vw, 32px) clamp(14px, 1.8vw, 22px); border-radius: 0 0 24px 24px;
    background: linear-gradient(to top, rgba(10, 16, 34, .7), rgba(10, 16, 34, 0));
}
.mg-toggle {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; transition: background-color .2s;
}
.mg-toggle:hover { background: rgba(255, 255, 255, .2); }
.mg-toggle svg { grid-area: 1 / 1; width: 14px; height: 14px; fill: currentColor; }
.mg-toggle[aria-pressed="true"] .mg-toggle__play, .mg-toggle[aria-pressed="false"] .mg-toggle__pause { display: none; }
.mg-toggle:focus-visible, .mg-ch:focus-visible { outline: 2px solid var(--mg-gold); outline-offset: 3px; }
.mg-chapters { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mg-ch {
    min-height: 32px; padding: 6px 0 2px; border: 0; background: none; text-align: left; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .66); transition: color .2s;
}
.mg-ch:hover, .mg-ch[aria-current="step"] { color: #fff; }
.mg-ch__bar { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.mg-ch__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--mg-gold), #F5E2B8); transform: scaleX(0); transform-origin: 0 50%; }
.mg-ch__label { display: block; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* narrow players (phones): the stage on top, then the caption band; controls along the bottom */
.mg.is-narrow.is-live .mg-player { aspect-ratio: auto; display: flex; flex-direction: column; }
.mg.is-narrow .mg-stage { position: relative; inset: auto; flex: none; aspect-ratio: 5 / 4; }
.mg.is-narrow .mg-caps { position: relative; left: auto; top: auto; bottom: auto; width: auto; min-height: 150px; padding: 2px 22px 74px; align-items: start; }
.mg.is-narrow .mg-cap__title { margin-top: 10px; font-size: 24px; }
.mg.is-narrow .mg-cap__note { margin-top: 10px; font-size: 13px; }
.mg.is-narrow .mg-bug { display: none; }
.mg.is-narrow.is-live .mg-ui { gap: 12px; padding: 12px 18px 16px; background: none; }
.mg.is-narrow .mg-ch__label { display: none; }
.mg.is-narrow .mg-ch { padding: 14px 0; }

/* S4 example quote: each line lifts on hover/focus and shows a short product note in a speech bubble */
.quote-row { position: relative; cursor: default; transition: background-color .2s, border-color .2s, transform .2s var(--ease-spring), box-shadow .2s; }
.quote-row:hover, .quote-row:focus-visible, .quote-row:focus {
    background: #EEF3FF; border-color: rgba(37, 99, 235, .35); transform: translateX(4px); box-shadow: 0 8px 20px -12px rgba(37, 99, 235, .45);
}
.quote-row:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.quote-tip {
    position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: min(280px, 80vw);
    padding: 8px 12px; border-radius: 10px; background: var(--brick-ink); color: #fff;
    font-size: 12.5px; font-weight: 500; line-height: 1.5; text-align: center;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .45);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 4px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.quote-tip::after {
    content: ''; position: absolute; top: 100%; left: 50%; margin-left: -6px;
    border: 6px solid transparent; border-top-color: var(--brick-ink);
}
.quote-row:hover .quote-tip, .quote-row:focus-visible .quote-tip, .quote-row:focus .quote-tip {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
/* the first row sits right under the card top: open its bubble downward so the fixed header can't clip it */
.quote-row:first-child .quote-tip { bottom: auto; top: calc(100% + 10px); transform: translate(-50%, -4px); }
.quote-row:first-child .quote-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--brick-ink); }

/* S5 trust */
.stats-wrap { margin-bottom: 40px; }
.stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--paper-line); }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 24px 24px 20px; border-left: 1px solid var(--paper-line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt { font-size: 14px; color: var(--dark-600); }
.stat__num { margin: 0; font-size: var(--fs-stat); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; color: var(--txt1); font-variant-numeric: tabular-nums; }
.stats__note { margin-top: 12px; font-size: 12px; color: var(--dark-600); }
@media (max-width: 767px) {
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { border-left: 0; padding: 20px 0; border-bottom: 1px solid var(--paper-line); }
    .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--paper-line); }
}
.ref-cards { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ref-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: 16px; background: #fff;
    border: 1px solid var(--paper-line); box-shadow: 0 1px 2px rgba(27, 36, 56, .06); box-sizing: border-box;
    color: inherit; text-decoration: none; transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.ref-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -16px rgba(27, 36, 56, .18); }
.ref-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ref-card__cat { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--paper-100); font-size: 12px; font-weight: 600; color: var(--dark-600); }
.ref-card__period { font-family: var(--font-mono); font-size: 12px; color: var(--txt3); }
.ref-card__title { font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--txt1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ref-card__adv { font-size: 14px; color: var(--dark-600); }
.ref-card__link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--blue-700); }
@media (max-width: 767px) {
    .ref-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 8px; margin-right: -16px; padding-right: 24px; }
    .ref-cards > li { flex: 0 0 82%; scroll-snap-align: start; }
}
.trust-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.login-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--paper-line); font-size: 12px; font-weight: 600; color: var(--dark-600); }

/* ==========================================================================
   S6. Inquiry hub
   ========================================================================== */
.inquiry-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) {
    .inquiry-grid { grid-template-columns: 5fr 7fr; gap: 56px; }
    .inquiry-intro { position: sticky; top: 112px; }
}
.inquiry-intro .lead { margin-top: 16px; }
.inquiry-intro__more { margin-top: 40px; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.next-steps li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.next-steps li:not(:last-child)::before { content: ''; position: absolute; left: 6px; top: 24px; bottom: 2px; width: 1px; background: var(--stage-line); }
.next-steps__num { font-family: var(--font-mono); font-size: 13px; color: var(--glass-300); line-height: 1.6; }
.next-steps strong { display: block; font-size: 16px; font-weight: 700; color: var(--on-stage); }
.next-steps span { display: block; font-size: 14px; color: var(--on-stage-2); }
.inquiry-mail { font-size: 14px; color: var(--on-stage-2); }
.inquiry-mail a { color: var(--glass-300); font-weight: 700; }
@media (max-width: 1023px) {
    /* form first on small screens; the follow-up steps move below it */
    .inquiry-grid { display: flex; flex-direction: column; }
    .inquiry-intro { display: contents; }
    .inquiry-intro > :not(.inquiry-intro__more) { order: 0; }
    .form-sheet { order: 1; }
    .inquiry-intro__more { order: 2; margin-top: 8px; }
    .inquiry-intro .chip-row { margin-bottom: 0; }
}

.form-sheet { background: #fff; border-radius: 20px; padding: 32px; box-shadow: 0 32px 80px -32px rgba(30, 42, 68, .22); color: var(--txt2); }
@media (max-width: 767px) { .form-sheet { padding: 20px; margin: 0 -4px; } }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 6px; border-radius: 14px; background: var(--paper-100); margin-bottom: 24px; }
.tab {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px;
    border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: var(--dark-600);
    cursor: pointer; transition: background-color .18s var(--ease-spring), color .18s;
}
.tab:hover { background: #EAE8E3; color: var(--txt1); }
.tab[aria-selected="true"] { background: #fff; color: var(--txt1); font-weight: 700; box-shadow: 0 1px 2px rgba(27, 36, 56, .12); }
.tab[aria-selected="true"]::after {
    content: ''; position: absolute; left: 50%; bottom: 6px; width: 32px; height: 3px; margin-left: -16px; border-radius: 2px;
}
.tab--ad[aria-selected="true"]::after { background: var(--path-ad); }
.tab--mall[aria-selected="true"]::after { background: var(--path-mall); }
.tab:focus-visible { outline: 2px solid var(--blue-600); outline-offset: -2px; }
.tab[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.tab__swatch { width: 10px; height: 10px; border-radius: 3px; opacity: .55; flex: none; }
.tab[aria-selected="true"] .tab__swatch { opacity: 1; }
.tab--ad .tab__swatch { background: var(--brick-ad); }
.tab--mall .tab__swatch { background: var(--brick-mall); }
.tab__state:empty { display: none; }
.tab__state[data-state="error"] { width: 6px; height: 6px; border-radius: 50%; background: var(--red-700); }
.tab__state[data-state="done"] { color: var(--emerald-700); font-size: 14px; }

/* both panels share one grid cell so switching tabs never changes the height */
.panels { display: grid; }
.panel { grid-area: 1 / 1; min-width: 0; }
.panel.is-inactive { visibility: hidden; }

.inq-form { display: grid; gap: 20px; }
.inq-form[hidden], .done[hidden] { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; min-width: 0; border: 0; margin: 0; padding: 0; }
.field--full { grid-column: 1 / -1; }
.field__label { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--txt1); }
.field__req, .field__opt { font-size: 12px; font-weight: 600; color: var(--dark-600); }
.field__input {
    width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--field);
    background: #fff; font: inherit; font-size: 16px; color: var(--txt1);
    transition: border-color .15s, box-shadow .15s;
}
.field__input::placeholder { color: var(--txt3); }
.field__input:hover { border-color: var(--field-hover); }
.field__input:focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .22); }
.field__select {
    appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
.field__textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field__help { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--dark-600); }
.field__help[hidden] { display: none; }
.field__error { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--red-700); }
.field__error[hidden] { display: none; }
.field__input[aria-invalid="true"] { border: 2px solid var(--red-700); padding-left: 13px; background: #FFFBFB; }
.field__textarea[aria-invalid="true"] { padding: 11px 13px; }
.inq-form[aria-busy="true"] .field__input { background: var(--paper-50); cursor: progress; }

.check { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-top: 11px; box-sizing: border-box; cursor: pointer; font-size: 15px; color: var(--txt1); }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.check__box {
    flex: none; width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--field-hover); background: #fff; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; transition: background-color .15s, border-color .15s;
}
.check input:checked + .check__box { background: var(--blue-600); border-color: var(--blue-600); }
.check input:checked + .check__box::after { content: ''; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.check input:focus-visible + .check__box { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.check input:disabled + .check__box { border-color: #C9CCD3; background: var(--paper-100); }
.check:has(input:disabled) { cursor: not-allowed; color: var(--dark-600); }
.check input[aria-invalid="true"] + .check__box { border-color: var(--red-700); }

.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check {
    position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px;
    border: 1px solid var(--field); font-size: 14px; font-weight: 600; color: var(--txt2); cursor: pointer; box-sizing: border-box;
}
.chip-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-check__icon { display: none; font-size: 12px; }
.chip-check:has(input:checked) { background: #EEF3FF; border: 1.5px solid var(--blue-600); color: var(--blue-700); }
.chip-check:has(input:checked) .chip-check__icon { display: inline; }
.chip-check:has(input:focus-visible) { outline: 2px solid var(--blue-600); outline-offset: 2px; }

.consent { display: grid; gap: 8px; }
.consent__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.consent__label { font-size: 14px; font-weight: 600; color: var(--txt1); line-height: 1.5; }
.consent__more {
    flex: none; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 700;
    color: var(--blue-700); cursor: pointer;
}
.consent__more::after { content: ' ▾'; }
.consent__more[aria-expanded="true"]::after { content: ' ▴'; }
.consent__detail { padding: 12px; border-radius: 8px; background: var(--paper-50); font-size: 13px; line-height: 1.6; color: var(--dark-600); }
.consent__detail[hidden] { display: none; }
.consent__detail a { color: var(--blue-700); }

.submit-btn {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px;
    border: 0; border-radius: 12px; background: var(--blue-600); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: background-color .15s;
}
.submit-btn:hover { background: var(--blue-700); }
.submit-btn:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 3px; }
.submit-btn[aria-disabled="true"] { cursor: progress; }
.submit-btn__spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: hv2-spin .8s linear infinite; }
.submit-btn[aria-disabled="true"] .submit-btn__spin { display: block; }
.submit-btn[aria-disabled="true"] .submit-btn__icon { display: none; }
@keyframes hv2-spin { to { transform: rotate(360deg); } }
.form-note { display: flex; gap: 8px; font-size: 13px; line-height: 1.55; color: var(--dark-600); }
.form-note i { margin-top: .3em; }
.form-alert {
    display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; padding: 12px 14px; border-radius: 8px;
    background: #FEF2F2; border-left: 3px solid var(--red-700); font-size: 14px; color: #7F1D1D;
}
.form-alert[hidden] { display: none; }
.form-alert button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--red-700); text-decoration: underline; cursor: pointer; }

.done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
.done__icon {
    width: 56px; height: 56px; border-radius: 50%; background: #ECFDF5; border: 1px solid #A7F3D0; color: var(--emerald-700);
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.done__title { font-size: 22px; font-weight: 800; color: var(--txt1); }
.done__desc { font-size: 15px; color: var(--dark-600); white-space: pre-line; }
.done__ref { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper-100); font-size: 13px; color: var(--dark-600); }
.done__ref-num { font-family: var(--font-mono); font-size: 16px; color: var(--txt1); }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
    .icon-3d { animation: none !important; }
    .split-card, .format-card, .quote-row { transition: none; }
    .split-card:hover, .format-card:hover, .quote-row:hover, .quote-row:focus { transform: none; }
    .brick-btn, .btn, .path-card, .ref-card, .tab { transition: none; }
    .brick-btn:hover, .btn--primary:hover, .path-card:hover, .ref-card:hover { transform: none; }
    .story-cue__dot, .submit-btn__spin { animation-duration: 2.4s; }
}
