/* Stardust — website
   Dark, quiet, technical: one cool accent, one warm one used sparingly,
   hairlines instead of boxes, monospace only for things that are data. */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --bg: #05070b;
    --bg-2: #0a0e15;
    --panel: #0d121b;
    --line: rgba(160, 200, 230, 0.10);
    --line-2: rgba(160, 200, 230, 0.18);
    --text: #e6edf3;
    --muted: #8c99a8;
    --faint: #5b6776;
    --accent: #8fd0f0;
    --accent-2: #5fb4e0;
    --warm: #f2b866;
    --radius: 14px;
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 40px);
    --sans: 'Inter', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Consolas, 'Liberation Mono', monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
:lang(ja) body, html:lang(ja) body { line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { letter-spacing: 0; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
b { font-weight: 600; color: var(--text); }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 0; letter-spacing: 0.02em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .5em;
    padding: .78em 1.3em;
    border-radius: 999px;
    background: var(--text); color: #071019;
    font-weight: 600; font-size: .95rem; line-height: 1;
    transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    white-space: nowrap;
}
.btn:hover { background: #fff; transform: translateY(-1px); box-shadow: 0 8px 30px -10px rgba(143, 208, 240, .5); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(143, 208, 240, .45); }
.btn-sm { padding: .6em 1.05em; font-size: .85rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }

/* ── top bar ──────────────────────────────────────────────────── */
.bar {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.bar.scrolled { background: rgba(5, 7, 11, .72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); }
.bar-in { display: flex; align-items: center; gap: 24px; height: 68px; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .01em; }
.brand span { font-size: 1.02rem; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: .9rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.langs { position: relative; }
.langs summary {
    list-style: none; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 10px; border-radius: 999px;
    color: var(--muted); font-size: .8rem;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: color .2s, box-shadow .2s;
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.langs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.langs ul {
    position: absolute; right: 0; top: calc(100% + 8px);
    list-style: none; margin: 0; padding: 6px; min-width: 170px;
    background: rgba(13, 18, 27, .96); border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
    backdrop-filter: blur(12px);
}
.langs li a, .foot-langs a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: .9rem; }
.langs li a:hover, .foot-langs a:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.langs li a[aria-current], .foot-langs a[aria-current] { color: var(--accent); }
.langs li .mono, .foot-langs .mono { font-size: .72rem; color: var(--faint); width: 1.8em; }

.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; color: var(--text); cursor: pointer; position: relative; border-radius: 10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── hero ─────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; align-items: center;
    padding: 120px 0 120px;
    overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
    position: absolute; top: 50%; left: 50%;
    width: auto; height: 118%; max-width: none;
    transform: translate(-28%, -50%);
    opacity: .95;
    -webkit-mask-image: radial-gradient(closest-side at 50% 52%, #000 72%, transparent 100%);
            mask-image: radial-gradient(closest-side at 50% 52%, #000 72%, transparent 100%);
    animation: drift 60s linear infinite alternate;
}
@keyframes drift { from { transform: translate(-28%, -50%) scale(1); } to { transform: translate(-29.5%, -50.5%) scale(1.04); } }
.hero-media::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 11, .85) 30%, rgba(5, 7, 11, .1) 62%, rgba(5, 7, 11, 0) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 11, 0) 22%);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.graticule { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); opacity: .07; pointer-events: none; }

.hero-in { position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 28px; }
html:lang(ja) .eyebrow { letter-spacing: .06em; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(143, 208, 240, .15); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143, 208, 240, 0); } }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); max-width: 12ch; font-weight: 600; letter-spacing: -0.035em; }
html:lang(ja) .hero h1 { max-width: 14em; font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
html:lang(de) .hero h1, html:lang(es) .hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 6.2vw, 5rem); }
.hero h1 span { display: block; }
.dim { color: transparent; background: linear-gradient(90deg, #cfe9f7, #6c8aa0 85%); -webkit-background-clip: text; background-clip: text; }
.hero .lead { max-width: 34rem; margin-top: 26px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #b5c1cd; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.readout {
    position: absolute; left: 0; right: 0; bottom: 32px;
    max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
    font-size: .74rem; color: var(--faint); letter-spacing: .06em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.caret { display: inline-block; width: .55em; height: 1.05em; vertical-align: -0.18em; margin-left: 2px; background: var(--accent); opacity: .7; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── sections ─────────────────────────────────────────────────── */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 72px); }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
html:lang(ja) .kicker { letter-spacing: .06em; }
.head h2, .access h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.head .lead, .access .lead { margin-top: 20px; font-size: 1.08rem; color: var(--muted); }

.frame {
    position: relative; overflow: hidden; border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 0 0 1px var(--line), 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step .frame { aspect-ratio: 4 / 3; }
.step:hover .frame img { transform: scale(1.04); }
.step-n { margin-top: 24px; font-size: .75rem; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 1.3rem; margin-top: 8px; }
.step p:last-child { margin-top: 10px; color: var(--muted); font-size: .97rem; }

/* uses */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: -24px 0 56px; }
.tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: .92rem; transition: color .2s, box-shadow .2s, background .2s; }
.tabs a:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(255, 255, 255, .03); }
.tabs .mono { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(143, 208, 240, .1); color: var(--accent); font-size: .7rem; }
.use { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; scroll-margin-top: 100px; }
.use + .use { margin-top: clamp(72px, 10vw, 130px); }
.use-flip { grid-template-columns: 1fr 1.4fr; }
.use-flip .use-media { order: 2; }
.use-media { aspect-ratio: 16 / 10; }
.use:hover .use-media img { transform: scale(1.03); }
.hud {
    position: absolute; left: 14px; bottom: 14px;
    padding: 6px 10px; border-radius: 6px;
    font-size: .68rem; letter-spacing: .08em; color: #cfe3ef;
    background: rgba(5, 7, 11, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(143, 208, 240, .18);
}
.tag { font-size: .74rem; color: var(--warm); letter-spacing: .12em; text-transform: uppercase; }
html:lang(ja) .tag { letter-spacing: .05em; }
.use h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-top: 14px; }
.use .lead { margin-top: 16px; color: var(--muted); }
.feats { list-style: none; margin: 26px 0 0; padding: 0; }
.feats li { position: relative; padding: 12px 0 12px 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.feats li::before { content: ''; position: absolute; left: 2px; top: 1.3em; width: 10px; height: 1px; background: var(--accent); }

/* in depth */
.sub { margin-top: clamp(64px, 9vw, 120px); scroll-margin-top: 100px; }
.depth .head + .sub { margin-top: 0; }
.sub-head { max-width: 44rem; margin-bottom: 32px; }
.sub-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 12px; }
.sub-head p:last-child { margin-top: 12px; color: var(--muted); }

.shapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shape { margin: 0; }
.shape .frame { aspect-ratio: 4 / 3; }
.shape:hover .frame img { transform: scale(1.04); }
.shape figcaption { margin-top: 14px; color: var(--muted); font-size: .92rem; }
.shape figcaption .mono { display: block; color: var(--accent); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

.ex-stage { position: relative; aspect-ratio: 16 / 9; }
.ex-stage img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.ex-stage img.on { opacity: 1; }
.ex-stage .ex-hud { z-index: 2; }

.console { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch; }
.pc-panel {
    background: linear-gradient(180deg, #0d121b, #0a0e15);
    border-radius: var(--radius); padding: 18px 18px 20px;
    box-shadow: 0 0 0 1px var(--line);
    display: flex; flex-direction: column; gap: 4px;
}
.pc-title { display: flex; align-items: center; gap: 10px; font-size: .7rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 10px; }
.pc-row { padding: 12px 0; border-top: 1px solid var(--line); }
.pc-key { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.pc-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-opt {
    border: 0; cursor: pointer; font-size: .78rem; color: var(--muted);
    padding: 7px 11px; border-radius: 8px; background: rgba(255, 255, 255, .03);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: color .2s, background .2s, box-shadow .2s;
}
.pc-opt:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.pc-opt[aria-pressed="true"] { color: #071019; background: var(--accent); box-shadow: none; }
.pc-note { margin-top: auto; padding-top: 14px; font-size: .8rem; color: var(--faint); line-height: 1.5; }

.explorer { display: grid; gap: 16px; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-tab {
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    border: 0; padding: 9px 15px 9px 11px; border-radius: 999px;
    background: transparent; color: var(--muted); font: inherit; font-size: .9rem;
    box-shadow: inset 0 0 0 1px var(--line);
    transition: color .2s, box-shadow .2s, background .2s;
}
.ex-tab .mono { font-size: .68rem; color: var(--faint); }
.ex-tab:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ex-tab[aria-selected="true"] { color: var(--text); background: rgba(143, 208, 240, .1); box-shadow: inset 0 0 0 1px rgba(143, 208, 240, .4); }
.ex-tab[aria-selected="true"] .mono { color: var(--accent); }
.ex-caps { min-height: 3em; }
.ex-cap { color: var(--muted); font-size: .95rem; max-width: 52rem; }

/* worlds */
.worlds-sec { overflow: hidden; }
.worlds-sec::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(60% 50% at 50% 55%, rgba(95, 180, 224, .08), transparent 70%);
}
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 2vw, 24px); }
.world { margin: 0; text-align: center; }
.world img {
    aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    transition: transform .8s var(--ease), filter .8s var(--ease);
    filter: saturate(.9) brightness(.92);
}
.world:hover img { transform: scale(1.06) rotate(-3deg); filter: none; }
.world figcaption { margin-top: 14px; font-size: .72rem; color: var(--faint); letter-spacing: .1em; text-transform: uppercase; }
.world figcaption b { color: var(--muted); font-weight: 500; }
.infinity { margin-top: 48px; text-align: center; color: var(--faint); font-size: .78rem; letter-spacing: .12em; }

/* gallery */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 18px; }
.shot { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: var(--panel); aspect-ratio: 16 / 9; }
.shot.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot.wide.right { grid-column: 2 / span 2; }
.shot-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.shot-open img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot-open:hover img, .shot-open:focus-visible img { transform: scale(1.04); }
.shot figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; pointer-events: none;
    padding: 36px 16px 12px; font-size: .82rem; line-height: 1.4; color: #c9d4de;
    background: linear-gradient(0deg, rgba(5, 7, 11, .85), rgba(5, 7, 11, 0));
    opacity: .0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .shot figcaption { opacity: 1; transform: none; } }

/* specs */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.spec { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.spec:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.spec dt { font-size: .76rem; color: var(--accent); letter-spacing: .12em; text-transform: uppercase; }
html:lang(ja) .spec dt { letter-spacing: .05em; }
.spec dd { margin: 12px 0 0; color: var(--muted); font-size: .97rem; }

/* access */
.access-card {
    position: relative; overflow: hidden;
    text-align: center; padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 80px);
    border-radius: 24px;
    background:
        radial-gradient(80% 120% at 50% 120%, rgba(95, 180, 224, .18), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--panel));
    box-shadow: 0 0 0 1px var(--line-2);
}
.access-card .lead { max-width: 34rem; margin-left: auto; margin-right: auto; }
.access-card .btn { margin-top: 36px; }
.access-card .note { margin-top: 18px; font-size: .85rem; color: var(--faint); }
.access-card .note .mono { color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--faint); font-size: .9rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.foot .brand { color: var(--text); margin-bottom: 12px; }
.foot-langs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 2px 8px; }
.small { font-size: .75rem; }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
    background: rgba(3, 4, 7, .94); backdrop-filter: blur(10px);
    animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; grid-column: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox img { max-height: calc(100vh - 120px); width: auto; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); }
.lightbox figcaption { color: var(--muted); font-size: .9rem; text-align: center; }
.lightbox button { border: 0; background: none; color: var(--muted); font-size: 2.2rem; line-height: 1; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; transition: color .2s, background .2s; }
.lightbox button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.lb-close { position: absolute; top: 14px; right: 14px; }
@keyframes fade { from { opacity: 0; } }

/* reveal on scroll — only once the script is there to undo it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── narrow ───────────────────────────────────────────────────── */
@media (max-width: 1000px) {
    .nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: rgba(5, 7, 11, .97); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
    .nav.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
    .menu-btn { display: block; }
    .use, .use-flip { grid-template-columns: 1fr; }
    .use-flip .use-media { order: 0; }
    .steps { grid-template-columns: 1fr; gap: 48px; }
    .step .frame { aspect-ratio: 16 / 9; }
    .console { grid-template-columns: 1fr; }
    .shapes { grid-template-columns: 1fr; }
    .shape .frame { aspect-ratio: 16 / 9; }
    .grid { grid-template-columns: repeat(2, 1fr); }
    .shot.wide.right { grid-column: 1 / span 2; }
    .specs { grid-template-columns: repeat(2, 1fr); }
    .spec:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
    .spec:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
    .worlds { grid-template-columns: repeat(3, 1fr); }
    .worlds .world:nth-child(n + 4) { display: none; }
    .foot-in { grid-template-columns: 1fr; }
    .hero-img { transform: translate(-40%, -50%); height: 100%; }
    @keyframes drift { from { transform: translate(-40%, -50%); } to { transform: translate(-41%, -50.5%) scale(1.04); } }
}
@media (max-width: 640px) {
    .bar-end .btn-sm { display: none; }
    .hero { align-items: flex-end; padding-bottom: 112px; }
    .readout { white-space: normal; bottom: 24px; line-height: 1.7; }
    .hero-img { height: 70%; top: 32%; transform: translate(-50%, -50%); }
    @keyframes drift { from { transform: translate(-50%, -50%); } to { transform: translate(-50%, -51%) scale(1.04); } }
    .hero-media::after { background: linear-gradient(0deg, var(--bg) 18%, rgba(5, 7, 11, .7) 52%, rgba(5, 7, 11, 0) 80%); }
    .grid { grid-template-columns: 1fr; }
    .shot.wide, .shot.wide.right { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 9; }
    .specs { grid-template-columns: 1fr; }
    .spec:nth-child(even) { padding-left: 0; border-left: 0; }
    .spec { padding-right: 0; }
    .lightbox { grid-template-columns: 1fr; }
    .lightbox figure { grid-column: 1; padding: 0 12px; }
    .lb-prev, .lb-next { position: absolute; bottom: 14px; }
    .lb-prev { left: 14px; } .lb-next { right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}
