/* Pafta website: calm, Mac-native, light and dark. System fonts only (CSP: no external fonts).
   Motion is native CSS first (scroll-driven animations, view transitions, @starting-style);
   /assets/js/pafta.js only adds fallbacks and the small demos. Everything reads without either. */

:root {
    color-scheme: light dark;
    --bg: #f7f9f9;
    --bg-tint: #eef3f3;
    --surface: #ffffff;
    --surface-2: #f1f5f5;
    --ink: #0e1617;
    --ink-2: #455153;
    --ink-3: #5f6b6d;
    --line: rgba(14, 44, 46, 0.1);
    --line-strong: rgba(14, 44, 46, 0.17);
    --turquoise: #19a99d;          /* brand colour (icon "Fuge") */
    --accent: #0b7a72;             /* turquoise dark enough for text on light backgrounds */
    --accent-wash: rgba(25, 169, 157, 0.1);
    --coral: #f26b4b;
    --cream: #f4e6cc;
    --grid-line: rgba(14, 70, 72, 0.075);
    --glow-1: rgba(25, 169, 157, 0.34);
    --glow-2: rgba(242, 107, 75, 0.2);
    --nav-bg: rgba(255, 255, 255, 0.72);
    --nav-shadow: 0 1px 1px rgba(14, 44, 46, 0.04), 0 10px 30px -12px rgba(14, 50, 52, 0.22);
    --card-shadow: 0 1px 2px rgba(14, 44, 46, 0.05), 0 12px 32px -18px rgba(14, 50, 52, 0.28);
    --window-shadow: 0 0 0 1px rgba(14, 44, 46, 0.09), 0 2px 6px rgba(14, 44, 46, 0.05), 0 30px 60px -20px rgba(14, 50, 52, 0.3), 0 80px 140px -40px rgba(14, 60, 62, 0.32);
    --key-top: #ffffff;
    --key-bottom: #eef2f2;
    --key-edge: rgba(14, 44, 46, 0.14);
    --radius: 14px;
    --header-h: 72px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", "Hiragino Sans", "Apple SD Gothic Neo", sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    /* a soft spring with one small overshoot */
    --ease-spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017 20.2%, 1.043 23.3%, 1.042 26.7%, 1.02 32.3%, 1.002 40.9%, 0.996 50.2%, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0f10;
        --bg-tint: #0e1516;
        --surface: #121a1b;
        --surface-2: #182224;
        --ink: #eef4f4;
        --ink-2: #a9b6b7;
        --ink-3: #8d9a9c;
        --line: rgba(210, 240, 240, 0.09);
        --line-strong: rgba(210, 240, 240, 0.16);
        --accent: #4fd1c5;
        --accent-wash: rgba(79, 209, 197, 0.1);
        --cream: #3a3426;
        --grid-line: rgba(200, 240, 240, 0.055);
        --glow-1: rgba(25, 169, 157, 0.42);
        --glow-2: rgba(242, 107, 75, 0.22);
        --nav-bg: rgba(18, 26, 27, 0.7);
        --nav-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
        --card-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -20px rgba(0, 0, 0, 0.7);
        --window-shadow: 0 0 0 1px rgba(210, 240, 240, 0.1), 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 80px 160px -40px rgba(10, 80, 76, 0.45);
        --key-top: #232e30;
        --key-bottom: #1a2325;
        --key-edge: rgba(210, 240, 240, 0.14);
    }
}

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

html {
    -webkit-font-smoothing: antialiased;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    interpolate-size: allow-keywords;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 17px/1.55 var(--font);
    overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 6px; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:lang(ja) :is(h1, h2, h3, p, li) { word-break: auto-phrase; }

.shell { width: min(1180px, 100% - 40px); margin-inline: auto; }
.shell-narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

.skip-link {
    position: fixed; top: 8px; left: 12px; z-index: 100;
    padding: 8px 14px; border-radius: 8px;
    background: var(--ink); color: var(--bg);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.eyebrow { margin: 0 0 12px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
:lang(ja) .eyebrow, :lang(ko) .eyebrow { letter-spacing: 0.04em; }

kbd {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px;
    font: 600 0.78rem/1 var(--font); color: var(--ink-2);
    background: linear-gradient(var(--key-top), var(--key-bottom));
    border: 1px solid var(--key-edge); border-radius: 7px;
    box-shadow: inset 0 -1.5px 0 var(--key-edge);
}
.keys { display: flex; flex-wrap: wrap; gap: 4px; }

/* ───────────── Navigation ───────────── */

.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    padding: 10px 12px;
    pointer-events: none;
}
.nav {
    pointer-events: auto;
    display: flex; align-items: center; gap: 8px;
    width: min(1180px, 100%); min-height: 52px; margin-inline: auto;
    padding: 6px 6px 6px 14px;
    border: 1px solid var(--line); border-radius: 18px;
    background-color: var(--nav-bg);
    box-shadow: var(--nav-shadow);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    /* named here, not on .site-header: a named ancestor would become the backdrop root and stop the blur */
    view-transition-name: site-nav;
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; transition: transform 0.6s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

.nav-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 0.94rem; }
/* The list is a popover (mobile menu); on wide screens it is a plain inline list. */
.nav-links[popover] { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; color: inherit; background: none; }
.nav-links a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--ink); background: var(--accent-wash); }

.nav-cta {
    display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 12px;
    background: var(--ink); color: var(--bg); font-size: 0.92rem; font-weight: 600; text-decoration: none; white-space: nowrap;
    transition: transform 0.4s var(--ease-spring), opacity 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); text-decoration: none; }

.nav-toggle { display: none; }

.langs { position: relative; font-size: 0.9rem; }
.langs summary {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; cursor: pointer; list-style: none;
    border-radius: 12px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s;
}
.langs summary:hover { background: var(--accent-wash); color: var(--ink); }
.langs summary::-webkit-details-marker { display: none; }
.langs-chevron { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.35s var(--ease-spring); }
.langs[open] .langs-chevron { transform: translateY(1px) rotate(-135deg); }
.langs-list {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; margin: 0; padding: 6px; list-style: none;
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--nav-shadow);
    transform-origin: top right;
}
.langs[open] .langs-list { animation: pop-in 0.35s var(--ease-spring); }
.langs-list a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.langs-list a:hover { background: var(--accent-wash); }
.langs-list a[aria-current="page"] { font-weight: 650; color: var(--accent); }

/* ───────────── Buttons ───────────── */

.store-link {
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; padding: 0 22px 0 26px; border-radius: 999px;
    background: linear-gradient(180deg, #0f857b, #0a6f68);
    color: #fff; font-size: 1.02rem; font-weight: 600; text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 1px 2px rgba(6, 60, 56, 0.3), 0 12px 30px -10px rgba(11, 122, 114, 0.6);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.3s;
}
.store-link::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.9s var(--ease-out);
}
.store-link svg { flex: none; transition: transform 0.45s var(--ease-spring); }
.store-link:hover { transform: translateY(-2px); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.15), 0 2px 4px rgba(6, 60, 56, 0.3), 0 18px 40px -12px rgba(11, 122, 114, 0.7); }
.store-link:hover::before { transform: translateX(120%); }
.store-link:hover svg { transform: translateX(3px); }
.store-link:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

/* ───────────── Hero ───────────── */

/* The hero is a tall section whose inner part stays pinned while the icon unfolds into the window:
   its four tiles become four panes, the teal square becomes the window. Base styles are the end state. */
.hero {
    --stage-w: min(1160px, 100vw - 40px, (100svh - var(--header-h) - 56px) * 1.62);
    --stage-h: calc(var(--stage-w) / 1.62);
    --mark: clamp(96px, 18svh, 200px);
    position: relative; isolation: isolate;
    margin-top: calc(-1 * var(--header-h));
    view-timeline: --hero block;
    view-timeline-inset: 0px; /* the default (auto) would take the page's scroll-padding-top */
}
.hero-pin { position: relative; padding: calc(var(--header-h) + clamp(28px, 5svh, 64px)) 0 clamp(48px, 7vw, 88px); }
.hero-backdrop {
    position: absolute; inset: 0 0 auto; height: min(980px, 115vh); z-index: -1;
    overflow: hidden; pointer-events: none;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 25%, transparent 78%);
}
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 72px 72px;
    background-position: 50% 0;
}
/* A few grid cells light up in the icon's colours, like tiles being set. */
.hero-tile {
    position: absolute; width: 71px; height: 71px;
    left: calc(50% - 36px + var(--x) * 72px + 1px); top: calc(var(--y) * 72px + 1px);
    background: var(--turquoise); opacity: 0;
    animation: tile-glow 9s var(--d, 0s) var(--ease-in-out) infinite;
}
.hero-tile.is-coral { background: var(--coral); }
.hero-tile.is-cream { background: var(--cream); }
.hero-glow {
    position: absolute; left: 50%; top: 55%; z-index: -1; width: min(1200px, 100vw); height: 70svh;
    translate: -50% -50%; pointer-events: none;
    background:
        radial-gradient(42% 52% at 30% 52%, var(--glow-1), transparent 70%),
        radial-gradient(38% 48% at 72% 42%, var(--glow-2), transparent 70%);
    filter: blur(56px);
}

.hero-copy { display: grid; justify-items: center; text-align: center; }
.hero-title { margin: 0; font: 700 clamp(2.6rem, min(1.1rem + 6vw, 10.5svh), 5.75rem)/1 var(--font-display); letter-spacing: -0.042em; }
:lang(ja) .hero-title, :lang(ko) .hero-title { letter-spacing: -0.02em; line-height: 1.12; }
.hero-kicker {
    display: flex; align-items: center; gap: 10px; width: fit-content; margin: 0 auto 26px;
    padding: 5px 16px 5px 5px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
    font: 600 0.95rem/1.2 var(--font); letter-spacing: 0; color: var(--ink-2);
}
.hero-kicker img { width: 30px; height: 30px; flex: none; }
.hero-line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line > span { display: inline-block; }
.hero-line-accent > span {
    background: linear-gradient(100deg, var(--accent) 10%, var(--turquoise) 55%, #2fbfb1 75%, var(--accent) 95%) 0 0 / 200% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: dark) {
    .hero-line-accent > span { background-image: linear-gradient(100deg, #36c2b5 10%, #7fe3d8 50%, #4fd1c5 75%, #2aa89c 95%); }
}
.hero-lead { max-width: 40rem; margin: 22px 0 0; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.27rem); line-height: 1.55; color: var(--ink-2); }
.hero-actions { display: grid; justify-items: center; gap: 12px; margin-top: 30px; }
.hero-meta { margin: 0; font-size: 0.88rem; color: var(--ink-3); }
/* Where the icon sits before it unfolds; pafta.js hands its position to the stage. */
.hero-mark-slot { display: none; width: var(--mark); height: var(--mark); margin-top: clamp(24px, 4.5svh, 52px); }

.window {
    position: relative; margin: 0; overflow: hidden;
    border-radius: clamp(8px, 1.1vw, 14px);
    background: var(--surface);
    box-shadow: var(--window-shadow);
}
.window img { width: 100%; }

/* ── The window, drawn in HTML (sizes in the stage's container units, so it scales like an image) ── */
.stage {
    --ui-chrome: #e7e7e6;
    --ui-pane: #fbfbfb;
    --ui-zebra: #f3f4f4;
    --ui-bar: rgba(0, 0, 0, 0.07);
    --ui-line: rgba(0, 0, 0, 0.085);
    --ui-text: #1d1d1f;
    --ui-text-2: #6e6e73;
    --ui-sel: #3a9e94;
    --ui-tab: #ffffff;
    /* icon box before it unfolds (pafta.js measures the slot below the copy) */
    --ms: min(18cqw, 30cqh);
    --mx: calc(50cqw - var(--ms) / 2);
    --my: calc(100cqh - var(--ms));
    position: relative; width: var(--stage-w); height: var(--stage-h); margin: clamp(40px, 6vw, 72px) auto 0;
    container-type: size; pointer-events: none; user-select: none;
    color: var(--ui-text); font-family: var(--font); line-height: 1.25; letter-spacing: 0;
}
@media (prefers-color-scheme: dark) {
    .stage {
        --ui-chrome: #2a2b2b;
        --ui-pane: #1d1e1e;
        --ui-zebra: #232424;
        --ui-bar: rgba(255, 255, 255, 0.075);
        --ui-line: rgba(255, 255, 255, 0.09);
        --ui-text: #ececec;
        --ui-text-2: #9d9d9f;
        --ui-sel: #2f8f86;
        --ui-tab: #4a4b4c;
    }
}
.stage .sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stage svg { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.frame { position: absolute; left: 0; top: 0; width: 100cqw; height: 100cqh; border-radius: 1.2cqw; box-shadow: var(--window-shadow); }
/* the icon's own shadow travels with the intro; the window's larger one comes in with the unfolding */
.frame-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: var(--ui-chrome); box-shadow: 0 1.4cqw 3.2cqw -0.8cqw rgba(8, 70, 66, 0.45); }
.frame-teal { position: absolute; inset: 0; background: linear-gradient(#19a99d, #0b6a6b); opacity: 0; }

.lights { position: absolute; left: 1.15cqw; top: 1.2cqw; display: flex; align-items: center; gap: 0.55cqw; }
.lights i { width: 0.95cqw; height: 0.95cqw; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.lights svg { width: 1.35cqw; height: 1.35cqw; margin-left: 1.5cqw; color: var(--ui-text-2); }

/* Inside the frame, positions are percentages of the frame, so tiles and panes grow with it.
   Contents are laid out at their final size in stage units (cqw, cqh) and only revealed. */
.side { position: absolute; left: 0; top: 5.5%; bottom: 0; width: 13.4%; padding: 0 0.75cqw; font-size: 0.95cqw; }
.side svg { width: 1.25em; height: 1.25em; flex: none; color: var(--ui-sel); }
.jump { display: flex; align-items: center; gap: 0.5em; height: 2.2em; margin-bottom: 0.9em; padding: 0 0.6em; border-radius: 0.6em; background: var(--ui-bar); color: var(--ui-text-2); }
.jump svg { color: var(--ui-text-2); }
.jump span { margin-left: auto; font-size: 0.8em; }
.sh { display: flex; align-items: center; gap: 0.35em; margin: 0.95em 0 0.3em 0.5em; font-size: 0.82em; font-weight: 600; color: var(--ui-text-2); }
.sh em { font-style: normal; font-weight: 400; opacity: 0.7; }
.sh b { margin-left: auto; padding: 0.15em 0.6em; border-radius: 1em; background: color-mix(in srgb, var(--ui-sel) 16%, transparent); color: var(--ui-sel); font-weight: 600; }
.si { display: flex; align-items: center; gap: 0.55em; height: 1.9em; padding: 0 0.55em; border-radius: 0.5em; white-space: nowrap; }
.si.is-on { background: var(--ui-sel); color: #fff; font-weight: 600; }
.si.is-on svg { color: #fff; }
.badge { display: flex; align-items: center; gap: 0.25em; margin-left: auto; font-size: 0.88em; }
.badge svg { width: 1.05em; height: 1.05em; }

/* --x1…--h1: the pane's place in the window, in percent; --tx/--ty: its tile's place in the icon (fraction). */
.pane {
    --w1: 42.55; --h1: 45.4;
    position: absolute; left: calc(var(--x1) * 1%); top: calc(var(--y1) * 1%); width: calc(var(--w1) * 1%); height: calc(var(--h1) * 1%);
    border-radius: 0.8cqw;
}
.p1 { --x1: 13.8; --y1: 0.7; --tx: 0.1465; --ty: 0.1465; --sx: -260%; --sy: -150%; --sr: -24deg; }
.p2 { --x1: 56.85; --y1: 0.7; --tx: 0.5166; --ty: 0.1465; --sx: 240%; --sy: -190%; --sr: 20deg; }
.p3 { --x1: 13.8; --y1: 46.9; --tx: 0.1465; --ty: 0.5166; --sx: -220%; --sy: 110%; --sr: 16deg; }
.p4 { --x1: 56.85; --y1: 46.9; --tx: 0.5166; --ty: 0.5166; --sx: 260%; --sy: 90%; --sr: -18deg; }
.pane-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.pui {
    position: absolute; left: 0; top: 0; width: calc(var(--w1) * 1cqw); height: calc(var(--h1) * 1cqh);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--ui-pane); border: 1px solid var(--ui-line); border-radius: 0.8cqw;
    font-size: 0.86cqw;
}
.p1 .pui { border: 0.14cqw solid var(--ui-sel); }
.pface { position: absolute; inset: 0; background: #fcf2e4; opacity: 0; }
.p2 .pface { background: #f26a47; }

.pbar { display: flex; flex: none; align-items: center; gap: 0.8em; height: 3.1em; padding: 0 0.8em; }
.pnav { width: 4.5em; height: 1.5em; flex: none; color: var(--ui-text-2); }
.pplus { width: 1.5em; height: 1.5em; flex: none; color: var(--ui-text-2); }
.crumbs { display: flex; flex: 1; align-items: center; gap: 0.45em; min-width: 0; height: 2.1em; padding: 0 0.8em; border-radius: 0.6em; background: var(--ui-bar); color: var(--ui-text-2); white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--ui-text); font-weight: 600; }
.crumbs i { font-style: normal; opacity: 0.6; }
.ptabs { display: flex; flex: none; gap: 0.3em; margin: 0 0.8em 0.5em; padding: 0.25em; border-radius: 0.7em; background: var(--ui-bar); }
.ptabs span { display: flex; flex: 1; align-items: center; justify-content: center; max-width: 50%; height: 1.9em; border-radius: 0.5em; color: var(--ui-text-2); white-space: nowrap; }
.ptabs .on { background: var(--ui-tab); color: var(--ui-text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.pstatus { display: flex; flex: none; justify-content: space-between; align-items: center; height: 2.4em; margin-top: auto; padding: 0 1em; border-top: 1px solid var(--ui-line); color: var(--ui-text-2); font-size: 0.9em; }

.plist { display: flex; flex: 1; flex-direction: column; min-height: 0; padding: 0 0.5em; overflow: hidden; }
.lr { display: grid; grid-template-columns: 1.7fr 0.75fr 1.65fr 1fr; align-items: center; gap: 0.8em; flex: none; height: 2em; padding: 0 0.6em; border-radius: 0.45em; white-space: nowrap; }
.lr span { overflow: hidden; text-overflow: ellipsis; }
.lr span:nth-child(n+2) { color: var(--ui-text-2); }
.lr span:nth-child(2) { text-align: right; }
.lr:nth-child(odd) { background: var(--ui-zebra); }
.lh { height: 1.9em; margin-bottom: 0.3em; border-radius: 0; border-bottom: 1px solid var(--ui-line); background: none !important; font-size: 0.92em; font-weight: 600; }
.lh span { color: var(--ui-text-2); }
.lr.is-sel { background: var(--ui-sel); }
.lr.is-sel span { color: #fff; }

.fi { display: inline-block; position: relative; width: 1.35em; height: 1.02em; margin-right: 0.5em; vertical-align: -0.12em; border-radius: 0.14em; background: linear-gradient(#7ccaf7, #45a6ea); }
.fi::before { content: ""; position: absolute; left: 0; top: -0.16em; width: 0.55em; height: 0.3em; border-radius: 0.12em 0.12em 0 0; background: #5ab3ee; }
.mi { display: inline-block; flex: none; width: 1em; height: 1.25em; margin-right: 0.55em; vertical-align: -0.2em; border-radius: 0.12em; background: linear-gradient(135deg, #fff, #e9e9ea); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }

.gallery { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 0.55em; min-height: 0; padding: 0.1em 1em 0.6em; }
.gview { flex: 1; width: 100%; min-height: 0; border-radius: 0.5em; }
.gname { font-weight: 600; white-space: nowrap; }
.gname em { margin-left: 0.6em; font-style: normal; font-weight: 400; color: var(--ui-text-2); }
.gstrip { display: flex; gap: 0.45em; }
.gstrip .th { width: 3.5em; height: 2.35em; border-radius: 0.3em; }
.gstrip .on { outline: 0.18em solid var(--ui-sel); outline-offset: 0.12em; }
.th {
    display: block;
    background:
        radial-gradient(circle at 32% 34%, rgba(255, 255, 255, 0.9) 0 3.2%, transparent 4.2%),
        radial-gradient(130% 70% at 18% 110%, #2a1b33 50%, transparent 51%),
        radial-gradient(120% 64% at 88% 114%, #3b2843 50%, transparent 51%),
        var(--sky);
}
.s1 { --sky: linear-gradient(#f39a86, #e2586a); }
.s2 { --sky: linear-gradient(#7cc1f0, #2f72c4); }
.s3 { --sky: linear-gradient(#a7dc95, #3f9361); }
.s4 { --sky: linear-gradient(#f9c46e, #f0784c 72%); }
.s5 { --sky: linear-gradient(#c3b2f3, #6c58bd); }
.s6 { --sky: linear-gradient(#eef2f4, #a3b0b8); }

.icons { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); align-content: start; gap: 1.1em 0.5em; padding: 1.2em 1em 0; }
.icons span { display: flex; flex-direction: column; align-items: center; gap: 0.55em; font-size: 0.95em; white-space: nowrap; }
.fbig { position: relative; width: 4.6em; height: 3.5em; margin-top: 0.5em; border-radius: 0.45em; background: linear-gradient(#86cff8, #4aa8ec); }
.fbig::before { content: ""; position: absolute; left: 0; top: -0.42em; width: 1.9em; height: 0.85em; border-radius: 0.35em 0.35em 0 0; background: #66b8f0; }
.dbig { position: relative; width: 3em; height: 3.8em; margin-top: 0.2em; border-radius: 0.3em; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08); }
.dbig::after { content: ""; position: absolute; inset: 0.9em 0.5em 1.1em; background: repeating-linear-gradient(#8e8e93 0 0.09em, transparent 0.09em 0.36em); opacity: 0.45; }
.dbig.is-pdf::before { content: "PDF"; position: absolute; left: 50%; bottom: 0.3em; translate: -50% 0; padding: 0.05em 0.35em; border-radius: 0.2em; background: #e5484d; color: #fff; font-size: 0.6em; font-weight: 700; }

.activity {
    position: absolute; left: 13.8%; right: 0.6%; top: 93%; bottom: 0.9%;
    display: flex; align-items: center; gap: 1em; padding: 0 1.2em;
    border-radius: 0.8cqw; background: var(--ui-pane); border: 1px solid var(--ui-line);
    font-size: 0.9cqw; white-space: nowrap;
}
.act-label { overflow: hidden; text-overflow: ellipsis; }
.act-track { flex: 1; max-width: 16em; height: 0.45em; border-radius: 1em; background: var(--ui-bar); overflow: hidden; }
.act-fill { display: block; height: 100%; border-radius: inherit; background: var(--ui-sel); transform-origin: left; scale: 0.64 1; }
@property --pct { syntax: "<integer>"; inherits: true; initial-value: 64; }
.act-pct { min-width: 2.6em; color: var(--ui-text-2); font-variant-numeric: tabular-nums; }
/* calc() rounds in this integer context; WebKit interpolates the registered integer without rounding */
.act-pct::after { counter-reset: pct calc(var(--pct)); content: counter(pct) "%"; }
.act-more { margin-left: auto; padding: 0.25em 0.7em; border-radius: 1em; background: var(--ui-bar); color: var(--ui-text-2); font-size: 0.9em; }

.tulip { position: absolute; inset: 0; opacity: 0; }
.tulip img { width: 100%; height: 100%; }

/* Phones: a portrait window without the sidebar, still four panes. */
@media (max-width: 640px) {
    .hero { --stage-w: calc(100vw - 24px); --stage-h: min(var(--stage-w) * 1.25, 100svh - var(--header-h) - 28px); --mark: clamp(92px, 28vw, 140px); }
    .side { display: none; }
    .frame { border-radius: 3.6cqw; }
    .lights { left: 3.2cqw; top: 2.3cqh; gap: 1.5cqw; }
    .lights i { width: 2.6cqw; height: 2.6cqw; }
    .lights svg { width: 3.6cqw; height: 3.6cqw; margin-left: 3cqw; }
    .pane { --w1: 47.6; --h1: 39.8; border-radius: 2cqw; }
    .p1 { --x1: 1.6; --y1: 7; }
    .p2 { --x1: 50.8; --y1: 7; }
    .p3 { --x1: 1.6; --y1: 47.5; }
    .p4 { --x1: 50.8; --y1: 47.5; }
    .pui { font-size: 2.15cqw; border-radius: 2cqw; }
    .p1 .pui { border-width: 0.4cqw; }
    .pnav { display: none; }
    .c-root, .c-root + i { display: none; }
    .lr { grid-template-columns: 1fr auto; }
    .lr span:nth-child(n+3) { display: none; }
    .gname em { display: none; }
    .gstrip .th:nth-child(n+6) { display: none; }
    .icons { gap: 0.8em 0.3em; padding-top: 0.8em; }
    .activity { left: 1.6%; right: 1.6%; top: 88.8%; bottom: 1.6%; border-radius: 2cqw; font-size: 2.3cqw; }
    .act-more { display: none; }
}

/* ───────────── Specs (first feature: panes) ───────────── */

.specs { padding: clamp(80px, 11vw, 144px) 0 clamp(48px, 7vw, 88px); }
.specs-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.specs-lead { margin: 0; font: 650 clamp(1.7rem, 1rem + 2.2vw, 2.6rem)/1.14 var(--font-display); letter-spacing: -0.028em; text-wrap: balance; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.spec {
    position: relative; display: flex; flex-direction: column; gap: 16px;
    padding: 22px 22px 20px; border-radius: 20px;
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.3s;
}
.spec:hover { transform: translateY(-3px); }
.spec-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-wash); color: var(--accent); }
.spec p { flex: 1; margin: 0; font-size: 0.97rem; line-height: 1.5; color: var(--ink-2); }
.spec p strong { color: var(--ink); font-weight: 650; }

/* ───────────── Tour (features 2–5) ───────────── */

/* Text steps and windows alternate in one grid. On wide screens with JS, the windows share one sticky
   cell on the right and cross-fade; pafta.js marks the step that crosses the middle of the viewport. */
.tour { padding: clamp(24px, 4vw, 56px) 0 clamp(80px, 10vw, 140px); }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.step { padding-top: clamp(64px, 9vw, 104px); }
.step .eyebrow { display: flex; align-items: center; gap: 12px; }
.step-no { font-variant-numeric: tabular-nums; color: var(--ink-3); letter-spacing: 0.04em; }
.step h2 { margin: 0; font: 700 clamp(2rem, 1.3rem + 2.2vw, 3rem)/1.06 var(--font-display); letter-spacing: -0.03em; }
:lang(ja) .step h2, :lang(ko) .step h2 { letter-spacing: -0.01em; line-height: 1.2; }
.step h2 .accent { display: block; color: var(--accent); }
.step-body { margin: 14px 0 0; font-size: 1.12rem; color: var(--ink-2); }
.step-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.step-list li { position: relative; padding-left: 22px; font-size: 0.98rem; color: var(--ink-2); }
.step-list li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--turquoise); }
.step-list li:nth-child(2)::before { background: var(--coral); }
.step-list strong { color: var(--ink); font-weight: 650; }
.step-keys { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.step-media { position: relative; margin: 36px 0 clamp(24px, 5vw, 48px); container-type: inline-size; }

@media (min-width: 1000px) {
    .js .tour-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(40px, 5vw, 72px); }
    .js .step {
        grid-column: 1; display: flex; flex-direction: column; justify-content: center; min-height: 82vh; padding: 0;
        transition: opacity 0.6s var(--ease-out);
    }
    /* only while the tour is on screen: the steps around the active one step back */
    .js .tour.is-viewing .step:not(.is-active) { opacity: 0.6; }
    .js .step[data-step="2"] { grid-row: 2; }
    .js .step[data-step="3"] { grid-row: 3; }
    .js .step[data-step="4"] { grid-row: 4; }
    .js .step-media {
        grid-column: 2; grid-row: 1 / span 4; align-self: start;
        /* centred: the window is about 34vw high at this width */
        position: sticky; top: calc(var(--header-h) + max(16px, (100vh - var(--header-h) - 34vw) / 2));
        margin: 0 calc(-1 * max(0px, (100vw - 1180px) / 2 - 48px)) 0 0;
        opacity: 0; scale: 0.97; visibility: hidden;
        transition: opacity 0.5s var(--ease-out), scale 0.9s var(--ease-out), visibility 0s 0.5s;
    }
    .js .step-media.is-active { opacity: 1; scale: 1; visibility: visible; transition: opacity 0.5s var(--ease-out), scale 0.9s var(--ease-out), visibility 0s; }
}

/* ── Live demos: the app's own UI (light, as in the screenshots), drawn larger in front of the window ── */
.demo { position: absolute; inset: 0; pointer-events: none; color: #1d1d1f; font-family: var(--font); letter-spacing: 0; line-height: 1.3; }
.demo svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pop {
    position: absolute; margin: 0;
    background: rgba(255, 255, 255, 0.97); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 1.1cqw;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2.2cqw 5cqw -1.2cqw rgba(14, 40, 42, 0.38);
    font-size: 1.45cqw;
}
.pop p { margin: 0; }
.pop kbd { min-width: 0; height: auto; padding: 0.12em 0.4em; border-radius: 0.3em; font-size: 0.92em; color: #5f5f64; background: #f2f2f4; border-color: rgba(0, 0, 0, 0.12); }
.pop-title { margin-bottom: 0.5em !important; font-weight: 700; }
.doc { position: relative; flex: none; width: 1em; height: 1.25em; border-radius: 0.14em; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.doc.is-ai::after, .doc.is-svg::after { content: ""; position: absolute; left: 0.18em; right: 0.18em; bottom: 0.2em; height: 0.36em; border-radius: 0.08em; background: #f28b30; }
.doc.is-svg::after { background: #e5484d; }

/* Quick Open */
.qo-dim { position: absolute; inset: 0; border-radius: clamp(8px, 1.1vw, 14px); background: rgba(16, 28, 30, 0.2); }
.qo { left: 50%; top: 9%; width: 64%; translate: -50% 0; overflow: hidden; }
.qo-field { display: flex; align-items: center; gap: 0.55em; padding: 0.8em 1em; border-bottom: 1px solid rgba(0, 0, 0, 0.08); font-size: 1.22em; }
.qo-field svg { width: 1em; height: 1em; color: #6b6b70; }
.qo-q b { display: inline-block; max-width: 1.2em; overflow: hidden; vertical-align: bottom; font-weight: 400; }
.qo-caret { width: 1.5px; height: 1.15em; margin-left: 1px; background: var(--turquoise); }
.qo-list { position: relative; padding: 0.35em 0.45em; }
.qo-list p { position: relative; display: flex; align-items: center; gap: 0.6em; height: 2.15em; padding: 0 0.65em; white-space: nowrap; }
.qo-list .fi { margin-right: 0; }
.qo-list span { font-weight: 500; }
.qo-list mark { background: none; color: inherit; font-weight: 750; }
.qo-list em { overflow: hidden; text-overflow: ellipsis; font-size: 0.84em; font-style: normal; color: #6b6b70; }
.qo-hl { position: absolute; left: 0.45em; right: 0.45em; top: 0.35em; height: 2.15em; border-radius: 0.5em; background: rgba(25, 169, 157, 0.17); }
.qo-foot { display: flex; align-items: center; gap: 1.1em; padding: 0.6em 1em; border-top: 1px solid rgba(0, 0, 0, 0.08); color: #6b6b70; font-size: 0.8em; white-space: nowrap; }
.qo-path { display: flex; align-items: center; margin-right: auto; }

/* Disk Usage: the treemap is drawn over the screenshot's treemap and builds itself */
.tm { position: absolute; left: 13.75%; top: 14.38%; width: 85.75%; height: 84.78%; background: #f6f6f6; }
.tm-b { position: absolute; overflow: hidden; background: var(--tb); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28); transform-origin: 0 0; }
.tm-b > b { display: block; height: 1.15cqw; padding: 0 0.35cqw; background: var(--th); color: #fff; font-size: 0.78cqw; line-height: 1.15cqw; white-space: nowrap; }
.tm-b > span { position: absolute; top: 1.15cqw; bottom: 0; padding: 0.2cqw 0.35cqw; box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(0, 0, 0, 0.1); color: rgba(0, 0, 0, 0.8); font-size: 0.72cqw; white-space: nowrap; }
.is-videos { --th: #7b3134; --tb: #b96e6c; }
.is-projects { --th: #7b6a31; --tb: #c5b273; }
.is-downloads { --th: #5e7e3b; --tb: #b3d67f; }
.is-music { --th: #3d7d56; --tb: #80c693; }
.du-card { left: -5%; bottom: -8%; width: 33%; padding: 1em 1.15em 0.9em; }
.du-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.35em 0.8em; margin-top: 0.55em !important; font-size: 0.95em; }
.du-row span { display: flex; align-items: center; }
.du-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.du-bar { grid-column: 1 / -1; height: 0.38em; border-radius: 1em; background: rgba(0, 0, 0, 0.07); overflow: hidden; }
.du-bar::after { content: ""; display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--turquoise); transform-origin: left; }
.du-total { margin-top: 0.9em !important; color: #6b6b70; font-size: 0.8em; }

/* Inspector */
/* covers the screenshot's own inspector column completely */
.in-panel { right: -3%; top: -3%; bottom: -3%; width: 30%; padding: 1em 1em 0.8em; }
.in-preview { aspect-ratio: 3 / 2; border-radius: 0.45em; }
.in-name { margin-top: 0.7em !important; font-weight: 700; text-align: center; }
.in-kind { margin-bottom: 0.4em !important; color: #6b6b70; font-size: 0.84em; text-align: center; }
.in-h { margin: 0.75em 0 0.2em !important; color: #6b6b70; font-size: 0.7em; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.in-r { display: grid; grid-template-columns: 5.4em 1fr; gap: 0.6em; padding: 0.16em 0.35em; border-radius: 0.35em; font-size: 0.86em; }
.in-r span { color: #6b6b70; text-align: right; }
.in-r b { font-weight: 500; overflow-wrap: anywhere; }
.in-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.95em; }
.in-r.is-cam { background: rgba(25, 169, 157, 0.12); }

/* Activity */
@property --acp { syntax: "<number>"; inherits: true; initial-value: 0.64; }
/* covers the screenshot's own activity bar */
.ac-panel { left: 11%; right: -3%; bottom: -6%; padding: 0.5em 1em 0.6em; }
.ac-wait { display: flex; justify-content: space-between; overflow: hidden; max-height: 1.6em; color: #6b6b70; font-size: 0.8em; }
.ac-wait em { font-style: normal; color: #1f8f86; }
.ac-row { display: flex; align-items: center; gap: 0.7em; padding: 0.45em 0; white-space: nowrap; }
.ac-row .mi { margin-right: 0; }
.ac-next { overflow: hidden; max-height: 2.4em; border-bottom: 1px solid rgba(0, 0, 0, 0.07); color: #3a3a3c; }
.ac-next em { width: 1em; font-style: normal; color: #6b6b70; text-align: center; }
.ac-x { margin-left: auto; color: #6b6b70; }
.ac-label { position: relative; flex: 1 1 auto; min-width: 0; height: 1.3em; }
.ac-l1, .ac-l2 { position: absolute; left: 0; top: 0; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.ac-l2 { opacity: 0; }
.ac-track { flex: 0 0 24%; height: 0.42em; border-radius: 1em; background: rgba(0, 0, 0, 0.08); overflow: hidden; }
.ac-fill { display: block; height: 100%; border-radius: inherit; background: var(--turquoise); transform-origin: left; scale: var(--acp) 1; }
.ac-pct { min-width: 2.8em; color: #6b6b70; font-variant-numeric: tabular-nums; text-align: right; }
.ac-pct::after { counter-reset: acp calc(var(--acp) * 100); content: counter(acp) "%"; }
.ac-conflict { left: 50%; top: 20%; width: 50%; translate: -50% 0; padding: 1.1em 1.2em 1em; text-align: center; opacity: 0; }
.ac-btns { display: flex; justify-content: center; gap: 0.5em; margin-top: 0.85em !important; }
.ac-btn { padding: 0.38em 0.95em; border-radius: 0.45em; background: rgba(0, 0, 0, 0.06); font-size: 0.92em; }
.ac-btn.is-keep { background: var(--turquoise); color: #fff; font-weight: 600; }
.ac-undo { left: 50%; top: 45%; display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.75em 0.55em 0.95em; border-radius: 2em; translate: -50% 0; white-space: nowrap; opacity: 0; }
.ac-undo svg { width: 1.1em; height: 1.1em; color: #1f8f86; }
.ac-undo-key { display: flex; align-items: center; gap: 0.25em; margin-left: 0.6em; padding-left: 0.8em; border-left: 1px solid rgba(0, 0, 0, 0.1); color: #1f8f86; font-weight: 600; }

/* Narrow windows (phones): larger UI relative to the window, panels kept inside or just below it */
@container (max-width: 640px) {
    .pop { font-size: 2.55cqw; border-radius: 2cqw; }
    .qo { top: 6%; width: 92%; }
    .qo-foot span:nth-child(n+3) { display: none; }
    .du-card { left: 3%; bottom: -16%; width: 62%; }
    .in-panel { right: -2%; top: -3%; bottom: auto; width: 62%; }
    .in-preview { aspect-ratio: 2.4 / 1; }
    .in-r { grid-template-columns: 6.4em 1fr; }
    .in-h.is-perm, .in-r.is-perm { display: none; }
    .ac-panel { left: 2%; right: -2%; bottom: -14%; }
    .ac-track { flex-basis: 18%; }
    .ac-conflict { top: 8%; width: 86%; }
    .ac-undo { top: 50%; }
}
@media (max-width: 999px) {
    .step-media[data-demo="disk-usage"], .step-media[data-demo="activity"] { margin-bottom: clamp(48px, 15vw, 96px); }
    .step-media[data-demo="inspector"] { margin-bottom: clamp(72px, 26vw, 140px); }
}

/* ───────────── And more: bento ───────────── */

.more { padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); }
.more-title { margin-bottom: clamp(28px, 4vw, 44px); text-align: center; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.card {
    --x: 50%; --y: -40%;
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column;
    border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}
/* a light that follows the pointer (pafta.js sets --x/--y), and a rim that catches it */
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s; }
.card::before { z-index: -1; background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--turquoise) 13%, transparent), transparent 62%); }
.card::after {
    padding: 1px;
    background: radial-gradient(260px circle at var(--x) var(--y), color-mix(in srgb, var(--turquoise) 70%, transparent), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card > p { margin: 0; padding: 0 22px 22px; font-size: 0.97rem; line-height: 1.5; color: var(--ink-2); }
.card > p strong { color: var(--ink); font-weight: 650; }
.card-visual {
    position: relative; display: grid; place-items: center; height: 176px; margin-bottom: 18px; overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: radial-gradient(120% 100% at 50% 0%, var(--accent-wash), transparent 75%);
    color: var(--ink); font-size: 13px;
}
.card-servers .card-visual, .card-wifi .card-visual { flex: 1; min-height: 176px; }
@media (min-width: 1000px) {
    .card-archives { grid-column: 1 / span 2; grid-row: 1; }
    .card-servers { grid-column: 3; grid-row: 1 / span 2; }
    .card-wifi { grid-column: 4; grid-row: 1 / span 2; }
    .card-rename { grid-column: 1; grid-row: 2; }
    .card-cloud { grid-column: 2; grid-row: 2; }
    .card-views { grid-column: 1 / span 2; grid-row: 3; }
    .card-appearance { grid-column: 3 / span 2; grid-row: 3; }
}
@media (min-width: 600px) and (max-width: 999px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
    .card-archives, .card-views, .card-appearance { grid-column: span 2; }
}
@media (max-width: 599px) {
    .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* The small pictures share the page's colours, so they follow dark mode. */
.bv { position: relative; }
.bv p { margin: 0; }
.bv svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bv .fi { margin-right: 0; }
.bv-chip { padding: 0.32em 0.85em; border-radius: 1em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow); font-size: 0.84em; font-weight: 600; white-space: nowrap; }
.bv-box { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }

.bv-archive { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 16px; width: min(88%, 400px); }
.zip { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.88em; font-weight: 600; }
.zip-ico { position: relative; width: 44px; height: 56px; border-radius: 6px; background: linear-gradient(#fff, #eceff0); box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow); }
.zip-ico::before { content: ""; position: absolute; left: 50%; top: 5px; bottom: 20px; width: 6px; translate: -50% 0; background: repeating-linear-gradient(#97a1a3 0 3px, transparent 3px 6px); }
.zip-ico::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 10px; height: 9px; translate: -50% 0; border-radius: 2px; background: #8a9496; }
.zip-arrow { width: 38px; color: var(--turquoise); }
.tree { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.tree p { display: flex; align-items: center; gap: 0.5em; font-size: 0.88em; white-space: nowrap; }
.tree p:not(:first-child) { padding-left: 1.5em; }
.zip-extract { grid-column: 3; justify-self: end; }

.bv-rename { display: grid; gap: 6px; width: min(86%, 300px); }
.rn-find { display: flex; align-items: center; gap: 0.4em; margin-bottom: 4px !important; color: var(--ink-3); font-size: 0.78em; white-space: nowrap; }
.rn-find b { padding: 0.15em 0.45em; border-radius: 0.35em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink); font-weight: 600; }
.rn-row { position: relative; height: 2.1em; overflow: hidden; border-radius: 0.55em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9em; }
.rn-row s, .rn-row b { position: absolute; left: 0.85em; top: 50%; translate: 0 -50%; text-decoration: none; white-space: nowrap; }
.rn-row s { color: var(--ink-3); opacity: 0; }
.rn-row b { color: var(--accent); font-weight: 650; }

.bv-servers { display: grid; justify-items: center; gap: 8px; width: 82%; }
.radar { position: relative; display: grid; place-items: center; width: 88px; height: 88px; margin-bottom: 8px; color: var(--accent); }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--turquoise) 55%, transparent); opacity: 0; }
.radar svg { box-sizing: content-box; width: 30px; height: 30px; padding: 9px; border-radius: 13px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.sv { display: flex; align-items: center; gap: 0.6em; width: 100%; padding: 0.55em 0.85em; border-radius: 0.65em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.9em; font-weight: 600; }
.sv em { margin-left: auto; color: var(--ink-3); font-size: 0.84em; font-style: normal; font-weight: 500; }
.sv-dot { width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--line-strong); }
.sv-dot.is-on { background: #30c759; box-shadow: 0 0 0 3px rgba(48, 199, 89, 0.18); }
.sv-key { display: flex; align-items: center; gap: 0.4em; margin-top: 6px !important; color: var(--ink-3); font-size: 0.8em; }
.sv-key svg { width: 1.15em; height: 1.15em; }

.bv-cloud { display: grid; justify-items: center; gap: 14px; }
.cl-icon { position: relative; width: 100px; height: 66px; color: var(--turquoise); }
.cl-icon > svg:first-child { width: 100%; height: 100%; fill: color-mix(in srgb, var(--turquoise) 12%, transparent); stroke-width: 1.3; }
.cl-sync { position: absolute; left: 50%; top: 58%; width: 26px; height: 26px; translate: -50% -50%; color: var(--accent); stroke-width: 1.8 !important; }
.cl-row { display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0.95em; border-radius: 0.65em; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); font-size: 0.9em; font-weight: 600; }
.cl-row svg { width: 1.25em; height: 1.25em; color: var(--accent); }

.bv-wifi { display: grid; justify-items: center; gap: 8px; }
.qr { width: 96px; padding: 9px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1), var(--card-shadow); }
.qr svg { display: block; width: 100%; height: auto; stroke: #0e1617; stroke-width: 1; stroke-linecap: butt; shape-rendering: crispEdges; }
.waves { position: relative; width: 44px; height: 24px; rotate: 180deg; }
.waves i { position: absolute; left: 50%; bottom: 0; translate: -50% 0; border: 2px solid transparent; border-top-color: var(--turquoise); border-radius: 50%; }
.waves i:nth-child(1) { width: 14px; height: 14px; bottom: -6px; }
.waves i:nth-child(2) { width: 28px; height: 28px; bottom: -12px; }
.waves i:nth-child(3) { width: 42px; height: 42px; bottom: -18px; }
.phone { width: 158px; padding: 8px 8px 10px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-strong), var(--card-shadow); font-size: 0.78em; }
.ph-bar { margin-bottom: 6px !important; padding: 0.25em 0.5em; border-radius: 0.5em; background: var(--surface-2); color: var(--ink-3); font-size: 0.9em; text-align: center; }
.ph-h { display: flex; align-items: center; gap: 0.4em; margin-bottom: 3px !important; font-weight: 700; }
.ph-f { display: flex; align-items: center; gap: 0.45em; padding: 0.35em 0.15em; border-top: 1px solid var(--line); white-space: nowrap; }
.ph-f .th { width: 1.7em; height: 1.15em; border-radius: 0.2em; }
.ph-f b { margin-left: auto; color: var(--accent); }

.bv-views { display: grid; gap: 12px; width: min(88%, 440px); }
.vstage { position: relative; height: 106px; overflow: hidden; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.v-list, .v-icons, .v-gallery { position: absolute; inset: 9px 10px; }
.v-icons, .v-gallery { opacity: 0; }
.v-list p { display: flex; align-items: center; gap: 0.5em; height: 1.68em; padding: 0 0.6em; border-radius: 0.4em; font-size: 0.85em; }
.v-list .is-sel { background: var(--turquoise); color: #fff; }
.v-icons { display: grid; grid-template-columns: repeat(6, 1fr); align-content: center; justify-items: center; font-size: 8.5px; }
.v-icons .fbig { margin: 0; }
.v-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.v-gallery > .th { border-radius: 8px; }
.v-gallery span { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.v-gallery span .th { border-radius: 5px; }
.v-gallery .on { outline: 2px solid var(--turquoise); outline-offset: 1px; }
.vbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg { position: relative; display: flex; padding: 3px; border-radius: 9px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg svg { position: relative; box-sizing: content-box; width: 16px; height: 16px; padding: 3px 7px; color: var(--ink-2); }
.seg-hl { position: absolute; left: 3px; top: 3px; width: 30px; height: 22px; border-radius: 6px; background: var(--accent-wash); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--turquoise) 45%, transparent); }

@property --acc { syntax: "<color>"; inherits: true; initial-value: #0a85ff; }
.bv-appear { display: grid; justify-items: center; gap: 16px; width: min(88%, 440px); }
.mw { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 104px; overflow: hidden; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.mw-half { display: grid; grid-template-columns: 30% 1fr; gap: 8px; padding: 12px 10px; }
.mw-half.is-light { background: #f3f3f3; }
.mw-half.is-dark { background: #232425; }
.mw-side, .mw-body { display: grid; align-content: start; gap: 6px; }
.mw-half b { display: block; height: 9px; border-radius: 3px; background: rgba(0, 0, 0, 0.08); }
.mw-half.is-dark b { background: rgba(255, 255, 255, 0.11); }
.mw-body b { height: 11px; }
.mw-half b.is-acc { background: var(--acc); }
.swatches { position: relative; display: flex; gap: 10px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }
.sw-ring { position: absolute; left: -4px; top: -4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink-2); }

/* ───────────── Privacy ───────────── */

.private { padding: clamp(16px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }
.private-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
    padding: clamp(32px, 5.5vw, 72px); border-radius: 30px;
    background:
        radial-gradient(70% 110% at 82% 50%, rgba(25, 169, 157, 0.3), transparent 62%),
        linear-gradient(160deg, #10292a, #0a1314 72%);
    color: #eef4f4;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 90px -40px rgba(8, 40, 42, 0.7);
}
.private-card .eyebrow { color: #62d9cd; }
.private-card h2 { margin: 0 0 16px; color: #fff; font: 700 clamp(2.1rem, 1.3rem + 2.5vw, 3.2rem)/1.04 var(--font-display); letter-spacing: -0.032em; }
.private-text > p { max-width: 34rem; margin: 0; color: rgba(238, 244, 244, 0.72); font-size: 1.08rem; }
.private-list { display: grid; gap: 12px; margin: 28px 0 30px; padding: 0; list-style: none; font-weight: 600; }
.private-list li { display: flex; align-items: center; gap: 12px; }
.check { flex: none; width: 24px; height: 24px; fill: none; stroke: #62d9cd; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: rgba(98, 217, 205, 0.32); }
.check path { stroke-dasharray: 14; }
.private-link { display: inline-flex; align-items: center; gap: 0.45em; color: #86e6dc; font-weight: 600; text-decoration: none; }
.private-link svg { transition: transform 0.45s var(--ease-spring); }
.private-link:hover { text-decoration: underline; }
.private-link:hover svg { transform: translateX(3px); }

/* Your files circle inside the boundary and never leave it. */
.vault { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; }
.vault-ring { position: absolute; inset: calc(var(--n) * 16%); border-radius: 50%; border: 1px dashed rgba(127, 227, 216, 0.3); }
.vault-ring:first-child { border-style: solid; border-color: rgba(127, 227, 216, 0.22); box-shadow: inset 0 0 60px rgba(25, 169, 157, 0.15); }
.vault-orbit { position: absolute; inset: calc(var(--n) * 16%); border-radius: 50%; rotate: var(--r0); }
.vault-orbit > i { position: absolute; left: 50%; top: 0; translate: -50% -50%; rotate: calc(-1 * var(--r0)); font-size: 15px; }
.vault-orbit .th { width: 1.9em; height: 1.3em; border-radius: 0.22em; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }
.vault-orbit .fi, .vault-orbit .doc { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.vault-core {
    /* padding is a share of the vault's width (the core is 26% of it) */
    position: absolute; inset: 37%; display: grid; grid-template: 1fr 1fr / 1fr 1fr; gap: 9%; padding: 3.8%;
    border-radius: 24%; background: linear-gradient(#19a99d, #0b6a6b);
    box-shadow: 0 0 0 10px rgba(25, 169, 157, 0.12), 0 0 70px rgba(25, 169, 157, 0.5);
}
.vault-core i { border-radius: 14%; background: #fcf2e4; }
.vault-core i:nth-child(2) { background: #f26a47; }
.vault-core svg { position: absolute; right: -12%; bottom: -12%; box-sizing: border-box; width: 42%; height: 42%; padding: 7%; border-radius: 50%; background: #0f2526; color: #86e6dc; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; box-shadow: 0 0 0 2px rgba(134, 230, 220, 0.45); }
@media (max-width: 820px) {
    .private-card { grid-template-columns: minmax(0, 1fr); }
    .vault { width: min(78%, 320px); grid-row: 1; }
}

/* ───────────── Finale ───────────── */

.closing { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 11vw, 140px); text-align: center; }
.closing-backdrop { position: absolute; inset: 0; z-index: -1; pointer-events: none; mask-image: radial-gradient(ellipse 55% 65% at 50% 38%, #000 15%, transparent 75%); }
.closing-inner { display: grid; justify-items: center; }
.closing-mark { position: relative; width: clamp(120px, 13vw, 164px); aspect-ratio: 1; margin-bottom: clamp(28px, 4vw, 40px); }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cm-glow { position: absolute; inset: -42%; z-index: -1; border-radius: 50%; background: conic-gradient(from var(--spin), #19a99d, #f26a47, #f4e6cc, #19a99d); filter: blur(38px); opacity: 0.42; }
.cm-bg { position: absolute; inset: 0; border-radius: 22.37%; background: linear-gradient(#19a99d, #0b6a6b); box-shadow: 0 22px 50px -16px rgba(8, 70, 66, 0.6); }
.cm-tile { position: absolute; left: calc(var(--tx) * 100%); top: calc(var(--ty) * 100%); width: 33.69%; height: 33.69%; border-radius: 12.75%; background: #fcf2e4; }
.cm-tile.is-coral { background: #f26a47; }
.cm-tulip { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 74%; }
.closing h2 { margin: 0; font: 700 clamp(2.2rem, 1.3rem + 3vw, 3.8rem)/1.04 var(--font-display); letter-spacing: -0.035em; }
:lang(ja) .closing h2, :lang(ko) .closing h2 { letter-spacing: -0.01em; line-height: 1.2; }
.closing-inner > p:first-of-type { max-width: 38rem; margin: 18px 0 32px; color: var(--ink-2); font-size: 1.12rem; }
.store-link-lg { min-height: 60px; padding: 0 26px 0 32px; font-size: 1.08rem; }
.closing .hero-meta { margin-top: 14px; }

/* ───────────── Legal and support pages ───────────── */

/* The same tile grid and glow as the hero, quieter, behind the page title. */
.page-legal main { position: relative; isolation: isolate; }
.page-legal main::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: calc(-1 * var(--header-h)); height: min(560px, 80vh);
    pointer-events: none;
    background:
        radial-gradient(40% 60% at 30% 30%, var(--glow-1), transparent 70%),
        radial-gradient(34% 50% at 72% 22%, var(--glow-2), transparent 70%),
        linear-gradient(var(--grid-line) 1px, transparent 1px) 50% 0 / 72px 72px,
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 50% 0 / 72px 72px;
    opacity: 0.55;
    mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 25%, transparent 75%);
}
.legal { padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 9vw, 112px); }
.legal-header h1 { margin: 0 0 14px; font: 700 clamp(2.4rem, 1.5rem + 3.4vw, 3.8rem)/1.04 var(--font-display); letter-spacing: -0.035em; }
.legal-header p:not(.eyebrow) { margin: 0 0 6px; color: var(--ink-2); font-size: 1.12rem; }
.legal-header .legal-date { color: var(--ink-3); font-size: 0.92rem; }
.legal-summary {
    position: relative; margin: 34px 0 10px; padding: 20px 22px 20px 58px;
    border-radius: 18px; border: 1px solid color-mix(in srgb, var(--turquoise) 30%, var(--line));
    background: linear-gradient(135deg, var(--accent-wash), transparent 80%), var(--surface);
    box-shadow: var(--card-shadow);
}
.legal-summary::before {
    content: ""; position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; border-radius: 50%;
    background: var(--turquoise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.4 2.7 2.7 5.3-5.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
p.legal-summary, .legal-summary p { margin-block: 0; }
.legal section { margin-top: 44px; }
.legal h2 { margin: 0 0 12px; font: 700 1.4rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--turquoise); }
.legal-foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.94rem; }

/* FAQ: cards that open softly (::details-content with interpolate-size; elsewhere they simply open). */
.faq { display: grid; gap: 10px; }
.faq details {
    padding: 0 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--card-shadow);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--turquoise) 40%, var(--line)); }
.faq details:hover { border-color: color-mix(in srgb, var(--turquoise) 28%, var(--line)); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: ""; position: absolute; right: 4px; top: 50%; width: 14px; height: 2px; margin-top: -1px; border-radius: 2px;
    background: var(--accent); transition: transform 0.45s var(--ease-spring);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
    .faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease-out), content-visibility 0.45s allow-discrete; }
    .faq details[open]::details-content { block-size: auto; }
}

/* 404 */
.not-found { text-align: center; }
.not-found .closing-mark { margin: 0 auto 28px; }
.not-found section { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px !important; }
.not-found-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; text-decoration: none; }
.not-found-links a:first-child { background: var(--ink); border-color: var(--ink); color: var(--bg); }
@media (prefers-reduced-motion: no-preference) {
    .not-found .cm-bg { animation: cm-bg 0.8s var(--ease-spring) 0.1s both; }
    .not-found .cm-tile { animation: tile-in 1.1s var(--ease-spring) 0.35s both; }
    .not-found .cm-tile:nth-of-type(4) { animation-delay: 0.45s; }
    .not-found .cm-tile:nth-of-type(5) { animation-delay: 0.55s; }
    .not-found .cm-tile:nth-of-type(6) { animation-delay: 0.65s; }
    .not-found .cm-tulip { animation: bloom 0.9s var(--ease-spring) 1.3s both; }
}

/* ───────────── Footer ───────────── */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-tint); font-size: 0.92rem; color: var(--ink-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 32px 0 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand p { margin: 0; }
.footer-brand strong { color: var(--ink); }
.footer-copy { margin-top: 2px; color: var(--ink-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-languages a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover, .footer-languages a:hover { color: var(--ink); text-decoration: underline; }
.footer-languages { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.86rem; }

/* ───────────── Responsive ───────────── */

@media (max-width: 1000px) {
    .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    :root { --header-h: 64px; }
    .site-header { padding: 8px 10px; }
    .nav { min-height: 48px; padding: 4px 4px 4px 12px; gap: 4px; border-radius: 16px; }
    /* The menu is a popover; browsers without the Popover API (Safari < 17) leave the links to the footer. */
    @supports selector(:popover-open) {
        .nav-toggle {
            display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px;
            background: none; color: var(--ink); cursor: pointer;
        }
        .nav-toggle span, .nav-toggle span::before { display: block; width: 18px; height: 1.6px; border-radius: 2px; background: currentColor; }
        .nav-toggle span { position: relative; transform: translateY(-3px); }
        .nav-toggle span::before { content: ""; position: absolute; top: 6px; }
        .nav-toggle:hover { background: var(--accent-wash); }
        .nav-links:not(:popover-open) { display: none; }
        .nav-links[popover] {
            position: fixed; inset: calc(var(--header-h) - 2px) 10px auto; margin: 0;
            flex-direction: column; gap: 2px; padding: 8px;
            background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--nav-shadow);
            font-size: 1.05rem;
        }
        .nav-links a { padding: 12px 14px; }
    }
    @supports not selector(:popover-open) {
        .nav-links { display: none; }
    }
    .nav-cta { min-height: 36px; padding: 0 13px; font-size: 0.88rem; }
    .langs summary { padding: 0 10px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .spec-grid { grid-template-columns: 1fr; gap: 12px; }
    .spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 18px; }
    .spec-icon { grid-row: span 2; width: 40px; height: 40px; }
    .spec .keys { margin-top: 8px; }
    .hero-kicker { font-size: 0.85rem; }
}
@media (max-width: 380px) {
    .brand span { display: none; }
}

/* ───────────── Motion ───────────── */

@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.96); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes line-in { from { transform: translateY(105%); } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes tile-glow { 0%, 100% { opacity: 0; } 18%, 34% { opacity: 0.16; } 52% { opacity: 0; } }
@keyframes nav-solid { from { background-color: transparent; border-color: transparent; box-shadow: none; } }
@keyframes nav-cta-in { from { opacity: 0; visibility: hidden; scale: 0.92; } }
@keyframes reveal { from { opacity: 0; translate: 0 36px; } }

/* Page load: the icon assembles. The teal square appears, four loose tiles fly in and click into place, the tulip blooms. */
@keyframes mark-in { from { opacity: 0; scale: 0.4; } }
@keyframes tile-in { from { opacity: 0; transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.55); } }
@keyframes bloom { from { opacity: 0; scale: 0.6; } }

/* Scrolling: the icon unfolds into the window (ranges --a…--b are percent of the pinned stretch).
   Not inherited, so an element without its own --b falls back to --a + 8 instead of taking its parent's. */
@property --a { syntax: "*"; inherits: false; }
@property --b { syntax: "*"; inherits: false; }
@keyframes sc-copy { to { opacity: 0; translate: 0 -7svh; pointer-events: none; } }
@keyframes sc-glow { from { opacity: 0; } }
@keyframes sc-frame {
    from {
        left: var(--mx); top: var(--my); width: var(--ms); height: var(--ms);
        border-radius: calc(var(--ms) * 0.2237);
        box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent, 0 0 0 0 transparent, 0 0 0 0 transparent;
    }
}
@keyframes sc-tile {
    from {
        left: calc(var(--tx) * 100%); top: calc(var(--ty) * 100%); width: 33.69%; height: 33.69%;
        border-radius: calc(var(--ms) * 0.043);
    }
}
@keyframes sc-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes sc-tulip { from { opacity: 1; } to { opacity: 0; scale: 1.12; } }
@keyframes sc-in { from { opacity: 0; translate: var(--from, 0 0.8cqh); } }
@keyframes sc-fill { from { scale: 0.08 1; } to { scale: 1 1; } }
@keyframes sc-pct { from { --pct: 8; } to { --pct: 100; } }

@media (prefers-reduced-motion: no-preference) {
    /* Page load: headline line by line, then lead and button (the icon assembles in the pinned block below). */
    .hero-kicker { animation: rise-in 0.9s var(--ease-out) 0.05s both; }
    .hero-line > span { animation: line-in 1.1s var(--ease-out) calc(0.15s + var(--i) * 0.1s) both; }
    .hero-line-accent > span { animation: line-in 1.1s var(--ease-out) 0.25s both, sheen 2.4s var(--ease-in-out) 0.9s both; }
    .hero-lead { animation: rise-in 1s var(--ease-out) 0.4s both; }
    .hero-actions { animation: rise-in 1s var(--ease-out) 0.5s both; }
    /* Scroll-driven: native, off the main thread where the browser supports it. */
    @supports (animation-timeline: scroll()) {
        .nav { animation: nav-solid linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
        .page-home .nav-cta { animation: nav-cta-in linear both; animation-timeline: scroll(root); animation-range: 14svh 22svh; }
        .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
        .spec.reveal { animation-range: entry calc(var(--i) * 6%) entry calc(70% + var(--i) * 6%); }
    }
    /* Fallback (pafta.js sets the classes when scroll timelines are missing). */
    @supports not (animation-timeline: scroll()) {
        .js .nav { transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s; }
        .js:not(.is-scrolled) .nav { background-color: transparent; border-color: transparent; box-shadow: none; }
        .js:not(.show-cta) .page-home .nav-cta { opacity: 0; visibility: hidden; scale: 0.92; }
        .js .reveal { transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
        .js .reveal:not(.is-in) { opacity: 0; translate: 0 36px; }
    }

    /* Navigating between pages: a cross-document view transition keeps the header still. */
    @view-transition { navigation: auto; }
    ::view-transition-old(root) { animation: 0.25s var(--ease-in-out) both vt-out; }
    ::view-transition-new(root) { animation: 0.45s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* The pinned hero: only where the copy fits on the first screen (short viewports, landscape phones and large
   zoom get the static hero: copy, then the finished window). */
@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
    .frame-in { animation: mark-in 0.9s var(--ease-spring) 0.2s both; }
    .pane-in { animation: tile-in 1.1s var(--ease-spring) both; }
    .p1 .pane-in { animation-delay: 0.5s; }
    .p2 .pane-in { animation-delay: 0.62s; }
    .p3 .pane-in { animation-delay: 0.74s; }
    .p4 .pane-in { animation-delay: 0.86s; }
    .tulip img { animation: bloom 0.9s var(--ease-spring) 1.45s both; transform-origin: 50% 74%; }

    /* Pinned stage */
    .hero { height: 230svh; }
    .hero-pin { position: sticky; top: 0; height: 100svh; padding-bottom: 0; }
    .hero-mark-slot { display: block; }
    .stage { position: absolute; left: calc(50% - var(--stage-w) / 2); top: calc(var(--header-h) + (100svh - var(--header-h) - var(--stage-h)) / 2); margin: 0; }

    .sc {
        animation-duration: auto;
        animation-timing-function: var(--ease-in-out);
        animation-fill-mode: both;
        animation-timeline: --hero;
        animation-range: contain calc(var(--a) * 1%) contain calc(var(--b, (var(--a) + 8)) * 1%);
    }
    .hero-copy.sc { animation-name: sc-copy; animation-timing-function: linear; }
    .hero-glow.sc { animation-name: sc-glow; }
    .frame.sc { animation-name: sc-frame; }
    .pane.sc { animation-name: sc-tile; }
    .frame-teal.sc, .pface.sc { animation-name: sc-out; }
    .tulip.sc { animation-name: sc-tulip; }
    .lights.sc, .side.sc, .si.sc, .pbar.sc, .ptabs.sc, .lr.sc, .gname.sc, .gstrip .sc, .icons .sc, .activity.sc { animation-name: sc-in; }
    .side.sc { --from: -1.5cqw 0; }
    .activity.sc { --from: 0 2cqh; }
    .act-fill.sc { animation-name: sc-fill; animation-timing-function: linear; }
    .act-pct.sc { animation-name: sc-pct; animation-timing-function: linear; }

    /* Without scroll timelines the same animations are paused and pafta.js scrubs them by scroll position:
       1% of the pinned stretch = 10ms of animation time. Without JS as well, the hero stays static. */
    @supports not (animation-timeline: view()) {
        .sc {
            animation-duration: calc((var(--b, (var(--a) + 8)) - var(--a)) * 10ms);
            animation-delay: calc(var(--a) * 10ms);
            animation-play-state: paused;
        }
        html:not(.js) .hero { height: auto; }
        html:not(.js) .hero-pin { position: relative; height: auto; padding-bottom: clamp(48px, 7vw, 88px); }
        html:not(.js) .hero-mark-slot { display: none; }
        html:not(.js) .stage { position: relative; left: auto; top: auto; margin: clamp(40px, 6vw, 72px) auto 0; }
        html:not(.js) .sc, html:not(.js) .frame-in, html:not(.js) .pane-in, html:not(.js) .tulip img { animation: none; }
    }
    /* A keyboard user who tabs back to the faded copy gets it back. */
    .hero-copy:focus-within { opacity: 1 !important; translate: none !important; pointer-events: auto !important; }
}

/* Tour demos: they run while their window is the active one (pafta.js); otherwise they show their end state. */
@keyframes qo-pop { 0% { opacity: 0; transform: translateY(1.2cqw) scale(0.97); } 5%, 68% { opacity: 1; transform: none; } 73%, 100% { opacity: 0; transform: scale(0.985); } }
@keyframes qo-dim { 0% { opacity: 0; } 5%, 68% { opacity: 1; } 73%, 100% { opacity: 0; } }
@keyframes qo-l1 { 0% { max-width: 0; } 8% { max-width: 1.2em; } }
@keyframes qo-l2 { 0% { max-width: 0; } 11.5% { max-width: 1.2em; } }
@keyframes qo-l3 { 0% { max-width: 0; } 15% { max-width: 1.2em; } }
@keyframes qo-l4 { 0% { max-width: 0; } 18.5% { max-width: 1.2em; } }
@keyframes qo-list { 0%, 20% { clip-path: inset(0 0 100% 0); } 27%, 100% { clip-path: inset(0); } }
@keyframes qo-hl {
    0%, 22% { opacity: 0; transform: none; }
    25%, 36% { opacity: 1; transform: none; }
    39%, 45% { transform: translateY(2.15em); }
    48%, 54% { transform: translateY(4.3em); }
    57%, 100% { opacity: 1; transform: none; }
}
@keyframes qo-enter { 0%, 59% { background: #f2f2f4; color: #6e6e73; } 61%, 66% { background: var(--turquoise); color: #fff; } 68%, 100% { background: #f2f2f4; color: #6e6e73; } }
@keyframes blink { 50% { opacity: 0; } }

@keyframes tm-grow { from { transform: scale(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-rise { from { opacity: 0; translate: 0 2.5cqw; } }
@keyframes pop-slide { from { opacity: 0; translate: 3cqw 0; } }
@keyframes bar-fill { from { scale: 0 1; } }
@keyframes row-in { from { opacity: 0; translate: 0 0.4em; } }
@keyframes cam-mark { from { background-color: transparent; } }

@keyframes ac-run { 0% { --acp: 0; } 34%, 36% { --acp: 1; } 37%, 60% { --acp: 0; } 86%, 100% { --acp: 1; } }
@keyframes ac-l1 { 0%, 58% { opacity: 1; } 60%, 100% { opacity: 0; } }
@keyframes ac-l2 { 0%, 58% { opacity: 0; } 60%, 100% { opacity: 1; } }
@keyframes ac-next { 0%, 56% { opacity: 1; max-height: 2.4em; } 60%, 100% { opacity: 0; max-height: 0; padding-block: 0; border-color: transparent; } }
@keyframes ac-wait { 0%, 56% { opacity: 1; max-height: 1.6em; } 60%, 100% { opacity: 0; max-height: 0; } }
@keyframes ac-conflict { 0%, 37% { opacity: 0; transform: translateY(1cqw) scale(0.96); } 40%, 56% { opacity: 1; transform: none; } 59%, 100% { opacity: 0; transform: scale(0.98); } }
@keyframes ac-keep { 0%, 50% { filter: none; scale: 1; } 52% { filter: brightness(0.85); scale: 0.95; } 54%, 100% { filter: none; scale: 1; } }
@keyframes ac-undo { 0%, 87% { opacity: 0; transform: translateY(1cqw); } 89%, 97% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
    .step-media.is-active .qo-dim { animation: qo-dim 8s var(--ease-out) infinite; }
    .step-media.is-active .qo { animation: qo-pop 8s var(--ease-out) infinite; }
    .step-media.is-active .qo-q b { animation: qo-l1 8s steps(1, end) infinite; }
    .step-media.is-active .qo-q b:nth-child(2) { animation-name: qo-l2; }
    .step-media.is-active .qo-q b:nth-child(3) { animation-name: qo-l3; }
    .step-media.is-active .qo-q b:nth-child(4) { animation-name: qo-l4; }
    .step-media.is-active .qo-list p { animation: none; }
    .step-media.is-active .qo-list { animation: qo-list 8s var(--ease-out) infinite; }
    .step-media.is-active .qo-hl { animation: qo-hl 8s var(--ease-spring) infinite; }
    .step-media.is-active .qo-enter kbd { animation: qo-enter 8s linear infinite; }
    .qo-caret { animation: blink 1.1s steps(1, end) infinite; }

    .step-media.is-active .tm { animation: fade-in 0.25s both; }
    .step-media.is-active .tm-b { animation: tm-grow 1s var(--ease-spring) calc(0.2s + var(--i) * 0.14s) both; }
    .step-media.is-active .tm-b > * { animation: fade-in 0.5s var(--ease-out) calc(0.8s + var(--i) * 0.14s) both; }
    .step-media.is-active .du-card { animation: pop-rise 0.9s var(--ease-spring) 0.5s both; }
    .step-media.is-active .du-bar::after { animation: bar-fill 1s var(--ease-out) calc(0.9s + var(--i) * 0.12s) both; }
    .step-media.is-active .du-row { animation: row-in 0.6s var(--ease-out) calc(0.7s + var(--i) * 0.1s) both; }

    .step-media.is-active .in-panel { animation: pop-slide 0.9s var(--ease-spring) 0.15s both; }
    .step-media.is-active .in-preview { animation: fade-in 0.8s var(--ease-out) 0.4s both; }
    .step-media.is-active .in-name, .step-media.is-active .in-kind { animation: row-in 0.6s var(--ease-out) 0.5s both; }
    .step-media.is-active .in-h, .step-media.is-active .in-r { animation: row-in 0.55s var(--ease-out) calc(0.6s + var(--r) * 0.08s) both; }
    .step-media.is-active .in-r.is-cam { animation: row-in 0.55s var(--ease-out) calc(0.6s + var(--r) * 0.08s) both, cam-mark 0.6s var(--ease-out) 1.9s both; }

    .step-media.is-active .ac-now { animation: ac-run 10s linear infinite; }
    .step-media.is-active .ac-l1 { animation: ac-l1 10s steps(1, end) infinite; }
    .step-media.is-active .ac-l2 { animation: ac-l2 10s steps(1, end) infinite; }
    .step-media.is-active .ac-next { animation: ac-next 10s var(--ease-in-out) infinite; }
    .step-media.is-active .ac-wait { animation: ac-wait 10s linear infinite; }
    .step-media.is-active .ac-conflict { animation: ac-conflict 10s var(--ease-out) infinite; }
    .step-media.is-active .is-keep { animation: ac-keep 10s var(--ease-out) infinite; }
    .step-media.is-active .ac-undo { animation: ac-undo 10s var(--ease-out) infinite; }
}

/* Bento pictures: they loop while their card is on screen (pafta.js sets .is-live). */
@keyframes zip-shake { 0%, 8%, 100% { rotate: 0deg; } 2% { rotate: -6deg; } 4% { rotate: 5deg; } 6% { rotate: -3deg; } }
@keyframes draw { from { stroke-dashoffset: 48; } to { stroke-dashoffset: 0; } }
@keyframes zip-arrow { 0%, 8% { stroke-dashoffset: 48; } 20%, 100% { stroke-dashoffset: 0; } }
@keyframes tree-row { 0%, 18% { opacity: 0; translate: -6px 0; } 26%, 88% { opacity: 1; translate: 0 0; } 96%, 100% { opacity: 0; translate: 0 0; } }
@keyframes chip-pulse { 0%, 44%, 100% { scale: 1; box-shadow: inset 0 0 0 1px var(--line-strong), var(--card-shadow); } 48% { scale: 1.06; box-shadow: inset 0 0 0 1px var(--turquoise), 0 0 0 5px var(--accent-wash); } 54% { scale: 1; } }
@keyframes rn-old { 0%, 30% { opacity: 1; translate: 0 -50%; } 38%, 100% { opacity: 0; translate: 0 -160%; } }
@keyframes rn-new { 0%, 32% { opacity: 0; translate: 0 60%; } 42%, 90% { opacity: 1; translate: 0 -50%; } 98%, 100% { opacity: 0; translate: 0 -50%; } }
@keyframes radar { from { opacity: 0.8; scale: 0.35; } to { opacity: 0; scale: 1.35; } }
@keyframes sv-in { 0%, 10% { opacity: 0; translate: 0 8px; } 20%, 92% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes sv-on { 0%, 34% { background: var(--line-strong); box-shadow: none; } 40%, 100% { background: #30c759; box-shadow: 0 0 0 3px rgba(48, 199, 89, 0.18); } }
@keyframes float { 50% { translate: 0 -6px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes wave { 0%, 100% { opacity: 0.15; } 30% { opacity: 1; } }
@keyframes ph-row { 0%, 12% { opacity: 0; translate: 0 6px; } 22%, 90% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
@keyframes ph-arrow { 0%, 100% { translate: 0 0; } 50% { translate: 0 2px; } }
@keyframes v-list { 0%, 30% { opacity: 1; } 34%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes v-icons { 0%, 30% { opacity: 0; scale: 0.96; } 34%, 63% { opacity: 1; scale: 1; } 67%, 100% { opacity: 0; } }
@keyframes v-gallery { 0%, 63% { opacity: 0; scale: 0.96; } 67%, 96% { opacity: 1; scale: 1; } 100% { opacity: 0; } }
@keyframes seg-hl { 0%, 30% { translate: 0 0; } 34%, 63% { translate: 30px 0; } 67%, 96% { translate: 60px 0; } 100% { translate: 0 0; } }
@keyframes accent {
    0%, 10% { --acc: #0a85ff; } 12.5%, 22.5% { --acc: #b052de; } 25%, 35% { --acc: #ff388a; } 37.5%, 47.5% { --acc: #ff453b; }
    50%, 60% { --acc: #ff9e0a; } 62.5%, 72.5% { --acc: #f2c40f; } 75%, 85% { --acc: #30c759; } 87.5%, 97.5% { --acc: #8f8f94; } 100% { --acc: #0a85ff; }
}
@keyframes sw-ring {
    0%, 10% { translate: 0 0; } 12.5%, 22.5% { translate: 28px 0; } 25%, 35% { translate: 56px 0; } 37.5%, 47.5% { translate: 84px 0; }
    50%, 60% { translate: 112px 0; } 62.5%, 72.5% { translate: 140px 0; } 75%, 85% { translate: 168px 0; } 87.5%, 97.5% { translate: 196px 0; } 100% { translate: 0 0; }
}
@keyframes orbit { to { rotate: 360deg; } }
@keyframes orbit-back { to { rotate: -360deg; } }
@keyframes orbit-from { from { rotate: var(--r0); } to { rotate: calc(var(--r0) + 360deg); } }
@keyframes orbit-back-from { from { rotate: calc(-1 * var(--r0)); } to { rotate: calc(-1 * var(--r0) - 360deg); } }
@keyframes check-draw { from { stroke-dashoffset: 14; } }
@keyframes cm-bg { from { opacity: 0; scale: 0.5; } }

@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .card.reveal { animation-range: entry calc(var(--i) * 4%) entry calc(65% + var(--i) * 4%); }
    }

    .card.is-live .zip-ico { animation: zip-shake 6s var(--ease-in-out) infinite; }
    .card.is-live .zip-arrow path { stroke-dasharray: 48; animation: zip-arrow 6s var(--ease-out) infinite; }
    .card.is-live .tree p { animation: tree-row 6s var(--ease-out) calc(var(--r) * 0.16s) infinite both; }
    .card.is-live .zip-extract { animation: chip-pulse 6s var(--ease-out) 0.4s infinite; }

    .card.is-live .rn-row s { animation: rn-old 5s var(--ease-in-out) calc(var(--r) * 0.22s) infinite both; }
    .card.is-live .rn-row b { animation: rn-new 5s var(--ease-spring) calc(var(--r) * 0.22s) infinite both; }

    .card.is-live .radar i { animation: radar 2.4s var(--ease-out) infinite; }
    .card.is-live .radar i:nth-child(2) { animation-delay: 0.8s; }
    .card.is-live .radar i:nth-child(3) { animation-delay: 1.6s; }
    .card.is-live .sv { animation: sv-in 7s var(--ease-out) calc(var(--r) * 0.2s) infinite both; }
    .card.is-live .sv-dot.is-on { animation: sv-on 7s ease infinite; }

    .card.is-live .cl-icon { animation: float 4s var(--ease-in-out) infinite; }
    .card.is-live .cl-sync { animation: spin 2.4s linear infinite; }

    .card.is-live .waves i { animation: wave 1.8s var(--ease-in-out) infinite; }
    .card.is-live .waves i:nth-child(2) { animation-delay: 0.2s; }
    .card.is-live .waves i:nth-child(3) { animation-delay: 0.4s; }
    .card.is-live .ph-f { animation: ph-row 6s var(--ease-out) calc(var(--r) * 0.25s) infinite both; }
    .card.is-live .ph-f b { animation: ph-arrow 1s var(--ease-in-out) infinite; }

    .card.is-live .v-list { animation: v-list 9s var(--ease-in-out) infinite; }
    .card.is-live .v-icons { animation: v-icons 9s var(--ease-in-out) infinite; }
    .card.is-live .v-gallery { animation: v-gallery 9s var(--ease-in-out) infinite; }
    .card.is-live .seg-hl { animation: seg-hl 9s var(--ease-spring) infinite; }

    .card.is-live .bv-appear { animation: accent 8s linear infinite; }
    .card.is-live .sw-ring { animation: sw-ring 8s var(--ease-spring) infinite; }

    .card { transition: transform 0.5s var(--ease-spring); }
    .card:hover { transform: translateY(-3px); }

    /* Privacy: the files orbit, the checks draw themselves when the card comes in. */
    .vault-orbit { animation: orbit-from calc(26s - var(--n) * 5s) linear infinite; }
    .vault-orbit > i { animation: orbit-back-from calc(26s - var(--n) * 5s) linear infinite; }
    .vault-ring:nth-child(2) { animation: orbit 90s linear infinite; }
    .vault-ring:nth-child(3) { animation: orbit-back 70s linear infinite; }
    @supports (animation-timeline: view()) {
        .check path { animation: check-draw linear both; animation-timeline: view(); animation-range: entry calc(40% + var(--i) * 15%) entry calc(90% + var(--i) * 15%); }
    }

    /* Finale: the icon assembles once more as it scrolls in, and its glow turns slowly. */
    .cm-glow { animation: spin-glow 14s linear infinite; }
    @supports (animation-timeline: view()) {
        .cm-bg { animation: cm-bg var(--ease-out) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
        .cm-tile { animation: tile-in var(--ease-out) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
        .cm-tulip { animation: bloom var(--ease-out) both; animation-timeline: view(); animation-range: cover 38% cover 48%; }
    }
    @supports not (animation-timeline: view()) {
        .js .closing:not(.is-in) .cm-bg, .js .closing:not(.is-in) .cm-tile, .js .closing:not(.is-in) .cm-tulip { opacity: 0; }
        .js .closing.is-in .cm-bg { animation: cm-bg 0.8s var(--ease-spring) both; }
        .js .closing.is-in .cm-tile { animation: tile-in 1.1s var(--ease-spring) 0.25s both; }
        .js .closing.is-in .cm-tile:nth-of-type(4) { animation-delay: 0.35s; }
        .js .closing.is-in .cm-tile:nth-of-type(5) { animation-delay: 0.45s; }
        .js .closing.is-in .cm-tile:nth-of-type(6) { animation-delay: 0.55s; }
        .js .closing.is-in .cm-tulip { animation: bloom 0.9s var(--ease-spring) 1.2s both; }
    }
}
@keyframes spin-glow { to { --spin: 360deg; } }

/* Mobile menu (popover): fade and scale in with @starting-style, out through display/overlay. */
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
    .nav-links[popover] {
        transition: opacity 0.25s, transform 0.4s var(--ease-spring), overlay 0.4s allow-discrete, display 0.4s allow-discrete;
        transform-origin: top right;
    }
    .nav-links[popover]:not(:popover-open) { opacity: 0; transform: translateY(-6px) scale(0.96); }
    @starting-style { .nav-links[popover]:popover-open { opacity: 0; transform: translateY(-6px) scale(0.96); } }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .store-link:hover, .spec:hover { transform: none; }
}
