
:root {
  --bg: #07070b;
  --panel: rgba(12, 12, 18, .78);
  --panel-solid: #111116;
  --line: rgba(255, 255, 255, .14);
  --text: #f5f2ec;
  --muted: rgba(245, 242, 236, .62);
  --accent: #ff6848;
  --accent-rgb: 255, 104, 72;
  --radius: 18px;
  --safe-top: max(18px, env(safe-area-inset-top));
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html, body, #app { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

#canvas-host, #canvas-host canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#canvas-host canvas { cursor: grab; touch-action: none; }
#canvas-host canvas:active { cursor: grabbing; }
#world-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 5; background: radial-gradient(circle at center, transparent 45%, rgba(0,0,0,.18) 72%, rgba(0,0,0,.58) 115%); transition: opacity .3s; }
body.xr-moving #world-vignette { opacity: .85; background: radial-gradient(circle at center, transparent 23%, rgba(0,0,0,.72) 77%); }

.hidden { display: none !important; }
.screen { position: fixed; inset: 0; z-index: 100; display: none; }
.screen.is-visible { display: grid; }

#loading { place-items: center; align-content: center; background: #07070b; text-align: center; transition: opacity .65s ease, visibility .65s; }
#loading.is-ready { opacity: 0; visibility: hidden; pointer-events: none; }
#loading h1 { font: 700 clamp(42px, 8vw, 112px)/.85 Space Grotesk, sans-serif; letter-spacing: -.07em; margin: 18px 0 16px; }
#loading p { margin: 0; color: var(--muted); }
.loading-mark { width: 72px; height: 72px; position: relative; animation: rotate 5s linear infinite; }
.loading-mark span { position: absolute; inset: 8px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; }
.loading-mark span:nth-child(2) { inset: 18px -1px; transform: rotate(60deg); border-color: var(--accent); }
.loading-mark span:nth-child(3) { inset: -1px 18px; transform: rotate(-60deg); }
.progress { width: min(340px, 72vw); height: 2px; background: rgba(255,255,255,.1); margin: 24px auto 12px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 5%; background: var(--accent); transition: width .35s ease; box-shadow: 0 0 22px var(--accent); }
.microcopy { font-size: 11px; max-width: 420px; line-height: 1.5; }

.intro { place-items: center; background: radial-gradient(circle at 68% 45%, rgba(255, 97, 55, .18), transparent 28%), radial-gradient(circle at 30% 80%, rgba(91, 87, 255, .12), transparent 34%), rgba(6, 6, 9, .76); backdrop-filter: blur(18px); overflow: hidden; }
.intro-noise { position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.intro-content { position: relative; z-index: 2; width: min(1120px, calc(100vw - 64px)); }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.intro h1 { font: 600 clamp(58px, 8.7vw, 142px)/.82 Space Grotesk, sans-serif; letter-spacing: -.075em; margin: 22px 0 34px; max-width: 1100px; }
.intro h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.7); }
.intro-copy { width: min(650px, 100%); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.intro-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 46px; font-size: 9px; letter-spacing: .14em; color: rgba(255,255,255,.36); }
.intro-orbit { position: absolute; right: -10vw; top: 50%; width: min(56vw, 800px); aspect-ratio: 1; transform: translateY(-50%); opacity: .34; }
.intro-orbit i { position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; transform: rotateX(64deg); animation: orbit 17s linear infinite; }
.intro-orbit i:nth-child(2) { inset: 18%; border-color: rgba(var(--accent-rgb), .6); animation-direction: reverse; animation-duration: 12s; }
.intro-orbit i:nth-child(3) { inset: 36%; animation-duration: 8s; }

.button { appearance: none; border: 1px solid var(--line); background: rgba(255,255,255,.045); color: var(--text); min-height: 52px; padding: 0 22px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .075em; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 14px; text-decoration: none; transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.09); }
.button-primary { background: var(--text); color: #09090c; border-color: transparent; }
.button-primary:hover { background: #fff; box-shadow: 0 10px 40px rgba(255,255,255,.18); }
.button-ghost { background: transparent; }
.button-share { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.button-share:hover { background: rgba(var(--accent-rgb), .22); box-shadow: 0 10px 44px rgba(var(--accent-rgb), .18); }
.button-contact { background: var(--accent); color: #09090c; border-color: var(--accent); }
.button-small { min-height: 39px; padding: 0 17px; font-size: 9px; }

.hud { position: fixed; z-index: 20; }
#topbar { top: var(--safe-top); left: 20px; right: 20px; height: 58px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 7px; background: rgba(8,8,12,.58); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.brand-button { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 0 8px; justify-self: start; }
.brand-symbol { display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 50%; background: var(--text); color: #08080b; font: 700 18px Space Grotesk; }
.brand-button > span:last-child { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.brand-button strong { font: 700 13px Space Grotesk; letter-spacing: -.02em; }
.brand-button small { font-size: 7px; letter-spacing: .25em; color: var(--muted); margin-top: 4px; }
.world-readout { text-align: center; display: flex; flex-direction: column; }
.world-readout span { font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.world-readout strong { font: 600 12px Space Grotesk; margin-top: 3px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 7px; }
.icon-button { border: 0; background: transparent; cursor: pointer; height: 38px; padding: 0 10px; border-radius: 999px; font-size: 15px; }
.icon-button:hover { background: rgba(255,255,255,.08); }
.icon-button span { font-size: 8px; letter-spacing: .1em; margin-left: 5px; color: var(--muted); }

.floor-nav { right: 24px; top: 50%; transform: translateY(-50%); display: grid; gap: 8px; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(18px); }
.floor-nav button { width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.06); border-radius: 50%; cursor: pointer; font-size: 18px; }
.floor-nav button:hover { background: var(--accent); color: #111; }
.floor-nav div { height: 56px; display: grid; place-items: center; align-content: center; }
.floor-nav span { font: 500 22px Space Grotesk; }
.floor-nav small { font-size: 6px; letter-spacing: .15em; color: var(--muted); }
.controls-hint { left: 22px; bottom: 20px; display: flex; gap: 18px; color: var(--muted); font-size: 8px; letter-spacing: .11em; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 5px; border: 1px solid rgba(255,255,255,.2); border-bottom-width: 2px; border-radius: 5px; background: rgba(0,0,0,.45); color: var(--text); font: 600 9px Inter; margin-right: 4px; }
.status-pill { right: 24px; bottom: 20px; height: 30px; padding: 0 12px; border: 1px solid var(--line); background: rgba(8,8,12,.62); border-radius: 999px; display: flex; align-items: center; gap: 7px; backdrop-filter: blur(16px); font-size: 7px; letter-spacing: .12em; color: var(--muted); }
.status-pill i { width: 1px; height: 10px; background: var(--line); }
#renderer-dot { width: 6px; height: 6px; border-radius: 50%; background: #6cf5cb; box-shadow: 0 0 12px #6cf5cb; }

.portal-prompt { left: 50%; bottom: 34px; transform: translateX(-50%); min-width: min(520px, calc(100vw - 40px)); padding: 10px 10px 10px 14px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; border: 1px solid rgba(var(--accent-rgb), .4); background: rgba(8,8,12,.72); backdrop-filter: blur(22px); border-radius: 999px; box-shadow: 0 20px 80px rgba(0,0,0,.45), 0 0 55px rgba(var(--accent-rgb), .12); }
.prompt-orb { width: 27px; height: 27px; border: 1px solid var(--accent); border-radius: 50%; box-shadow: inset 0 0 14px var(--accent), 0 0 18px rgba(var(--accent-rgb), .5); animation: pulse 1.6s ease-in-out infinite; }
.portal-prompt div:nth-child(2) { display: flex; flex-direction: column; }
.portal-prompt small { font-size: 7px; letter-spacing: .15em; color: var(--accent); }
.portal-prompt strong { font: 600 12px Space Grotesk; margin-top: 2px; }
.portal-prompt button { border: 0; height: 38px; padding: 0 15px; border-radius: 999px; background: var(--text); color: #09090c; font-size: 9px; font-weight: 700; cursor: pointer; }
.portal-prompt button kbd { background: #111; margin-right: 5px; }

#transition { position: fixed; inset: 0; z-index: 90; background: #08080c; display: grid; place-items: center; align-content: center; opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; pointer-events: none; }
#transition.active { opacity: 1; visibility: visible; }
#transition p { font-size: 8px; letter-spacing: .24em; color: var(--muted); }
.transition-ring { width: 78px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); border-top-color: var(--accent); animation: rotate .8s linear infinite; }

.modal { width: min(980px, calc(100vw - 34px)); max-height: calc(100vh - 34px); padding: 0; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; color: var(--text); background: rgba(13,13,18,.93); box-shadow: 0 45px 140px rgba(0,0,0,.72); backdrop-filter: blur(26px) saturate(140%); overflow: auto; }
.modal::backdrop { background: rgba(2,2,5,.7); backdrop-filter: blur(12px); }
.modal-close { position: absolute; z-index: 5; right: 14px; top: 14px; width: 40px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: rgba(0,0,0,.35); cursor: pointer; font-size: 22px; }
.project-dialog { display: none; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); overflow: hidden; }
.project-dialog[open] { display: grid; }
.project-visual { min-height: 610px; position: relative; overflow: hidden; background: linear-gradient(145deg, var(--project-a), var(--project-c)); }
.project-grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 54px 54px; transform: perspective(550px) rotateX(62deg) scale(1.8) translateY(20%); transform-origin: bottom; }
.project-planet { position: absolute; width: 56%; aspect-ratio: 1; border-radius: 50%; right: -9%; top: 13%; background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.82), var(--project-b) 13%, var(--project-a) 38%, var(--project-c) 72%); box-shadow: -24px 24px 80px rgba(0,0,0,.55), 0 0 70px var(--project-a); }
.project-planet::before, .project-planet::after { content: ''; position: absolute; inset: -12%; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; transform: rotateX(70deg); }
.project-planet::after { inset: -30% -6%; border-color: rgba(255,255,255,.16); }
#project-index { position: absolute; left: 30px; top: 30px; font-size: 8px; letter-spacing: .2em; }
.project-visual-title { position: absolute; left: 30px; right: 30px; bottom: 30px; display: flex; flex-direction: column; }
.project-visual-title small { font-size: 8px; letter-spacing: .17em; margin-bottom: 10px; }
.project-visual-title strong { font: 600 clamp(42px, 5vw, 72px)/.88 Space Grotesk; letter-spacing: -.065em; }
.project-content { padding: 48px 38px 34px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.project-content p { color: var(--muted); line-height: 1.65; font-size: 14px; }
.value-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.value-tags span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 11px; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.project-actions { display: grid; gap: 8px; }
.modal-note { font-size: 10px !important; line-height: 1.55 !important; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }
.compact-modal { width: min(670px, calc(100vw - 28px)); padding: 38px; overflow: visible; }
.compact-modal h2 { font: 600 clamp(32px, 5vw, 54px)/.95 Space Grotesk; letter-spacing: -.055em; margin: 14px 0 18px; }
.compact-modal > p:not(.eyebrow):not(.modal-note) { color: var(--muted); line-height: 1.6; }
.pair-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; margin: 30px 0 22px; }
.qr-shell { background: #fff; padding: 10px; border-radius: 18px; width: 280px; }
.qr-shell canvas { width: 260px; height: 260px; display: block; }
.pair-details { display: flex; flex-direction: column; align-items: flex-start; }
.pair-details small { font-size: 8px; letter-spacing: .17em; color: var(--muted); }
.pair-details strong { font: 700 36px Space Grotesk; letter-spacing: .06em; margin: 8px 0 14px; }
.pair-details p { color: var(--muted); font-size: 12px; line-height: 1.5; }

.contact-dialog form { display: grid; gap: 14px; margin-top: 26px; }
.contact-dialog label { display: grid; gap: 7px; }
.contact-dialog label span { font-size: 8px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.contact-dialog input, .contact-dialog textarea, .settings-dialog select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); color: var(--text); padding: 14px 15px; resize: vertical; }
.contact-dialog input:focus, .contact-dialog textarea:focus { border-color: var(--accent); outline: none; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-context { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 9px; }
.form-context span { color: var(--muted); letter-spacing: .12em; }
#contact-status { min-height: 20px; margin: 0; font-size: 11px; color: var(--muted); }
.setting-row { display: grid; grid-template-columns: 1fr 210px; gap: 24px; align-items: center; min-height: 68px; border-top: 1px solid var(--line); }
.setting-row > span { display: flex; flex-direction: column; gap: 4px; }
.setting-row strong { font-size: 13px; }
.setting-row small { color: var(--muted); font-size: 10px; }
.setting-row input[type="range"] { width: 100%; accent-color: var(--accent); }
.setting-row input[type="checkbox"] { justify-self: end; width: 44px; height: 24px; accent-color: var(--accent); }
.settings-dialog .button { margin-top: 24px; width: 100%; }

.project-frame { position: fixed; inset: 0; z-index: 75; background: #050507; display: grid; grid-template-rows: 58px 1fr; }
.frame-bar { display: flex; justify-content: space-between; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(10,10,14,.94); }
.frame-bar > div { display: flex; align-items: center; gap: 10px; }
.frame-bar strong { font: 600 12px Space Grotesk; }
.frame-bar small { color: var(--muted); font-size: 9px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #67efa7; box-shadow: 0 0 13px #67efa7; }
.frame-bar button, .frame-bar a { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .1em; border: 0; background: none; text-decoration: none; cursor: pointer; padding: 12px; }
.frame-bar button:hover, .frame-bar a:hover { color: var(--text); }
#project-iframe { width: 100%; height: 100%; border: 0; background: #08080b; position: relative; z-index: 2; }
.frame-loading { position: absolute; inset: 58px 0 0; display: grid; place-items: center; align-content: center; background: #08080b; z-index: 1; }
.frame-loading span { width: 50px; aspect-ratio: 1; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: rotate 1s linear infinite; }
.frame-loading p { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.frame-fallback { position: absolute; right: 20px; bottom: 20px; z-index: 3; background: rgba(8,8,12,.9); border: 1px solid var(--line); border-radius: 15px; padding: 14px; display: flex; align-items: center; gap: 14px; backdrop-filter: blur(18px); }
.frame-fallback p { font-size: 10px; color: var(--muted); max-width: 220px; }
.frame-fallback .button { min-height: 38px; font-size: 8px; }

.toast { position: fixed; left: 50%; top: 92px; transform: translate(-50%, -20px); z-index: 200; background: var(--text); color: #0a0a0c; border-radius: 999px; padding: 12px 18px; font-size: 9px; font-weight: 700; letter-spacing: .08em; opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 14px 60px rgba(0,0,0,.36); }
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#vr-button-host { position: fixed; z-index: 30; right: 24px; bottom: 58px; }
#vr-button-host button { position: static !important; min-width: auto !important; border: 1px solid var(--line) !important; border-radius: 999px !important; background: rgba(8,8,12,.72) !important; backdrop-filter: blur(16px); font: 700 9px Inter !important; letter-spacing: .08em; }

.mobile-catalog { display: none; height: 100%; overflow-y: auto; background: #08080c; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.mobile-header { position: sticky; top: 0; z-index: 10; min-height: 70px; padding: var(--safe-top) 16px 12px; display: flex; justify-content: space-between; align-items: center; background: rgba(8,8,12,.82); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.mobile-brand { display: flex; align-items: center; gap: 9px; font: 700 12px Space Grotesk; }
.mobile-brand span { display: grid; place-items: center; width: 34px; aspect-ratio: 1; background: var(--text); color: #08080c; border-radius: 50%; }
.mobile-hero { padding: 55px 18px 28px; }
.mobile-hero h1 { font: 600 50px/.9 Space Grotesk; letter-spacing: -.065em; margin: 16px 0 20px; }
.mobile-hero > p:last-child { color: var(--muted); line-height: 1.55; font-size: 14px; }
.mobile-projects { display: grid; gap: 12px; padding: 0 12px; }
.mobile-card { position: relative; min-height: min(72vh, 610px); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, var(--card-a), var(--card-c)); isolation: isolate; }
.mobile-card::before { content: ''; position: absolute; width: 72%; aspect-ratio: 1; right: -18%; top: 15%; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.8), var(--card-b) 12%, var(--card-a) 40%, var(--card-c) 75%); box-shadow: -20px 25px 70px rgba(0,0,0,.55); z-index: -1; }
.mobile-card::after { content: ''; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px); background-size: 44px 44px; z-index: -2; }
.mobile-card-index { font-size: 8px; letter-spacing: .17em; }
.mobile-card-copy small { font-size: 8px; letter-spacing: .16em; }
.mobile-card-copy h2 { font: 600 45px/.9 Space Grotesk; letter-spacing: -.06em; margin: 12px 0 16px; }
.mobile-card-copy p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.72); }
.mobile-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.mobile-card-actions .button:first-child { grid-column: 1 / -1; }
.mobile-card-select { position: absolute; right: 18px; top: 18px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25); width: 42px; aspect-ratio: 1; border-radius: 50%; cursor: pointer; }
.mobile-card.is-selected .mobile-card-select { background: var(--text); color: #09090c; }
.mobile-footer { position: fixed; left: 0; right: 0; bottom: 0; padding: 11px 12px calc(11px + env(safe-area-inset-bottom)); background: rgba(8,8,12,.87); backdrop-filter: blur(22px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; z-index: 12; }
.mobile-footer .button { padding: 0 10px; font-size: 8px; }

@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes orbit { to { transform: rotateX(64deg) rotateZ(360deg); } }
@keyframes pulse { 50% { transform: scale(.82); opacity: .55; } }

@media (max-width: 960px) {
  #topbar { grid-template-columns: auto 1fr auto; }
  .world-readout { display: none; }
  .icon-button span { display: none; }
  .top-actions .button-contact { display: none; }
  .project-dialog[open] { grid-template-columns: 1fr; }
  .project-visual { min-height: 390px; }
  .project-content { padding: 28px; }
}

@media (max-width: 720px), (pointer: coarse) and (max-width: 900px) {
  body:not(.force-3d) #canvas-host,
  body:not(.force-3d) #world-vignette,
  body:not(.force-3d) #intro,
  body:not(.force-3d) #topbar,
  body:not(.force-3d) #floor-nav,
  body:not(.force-3d) #controls-hint,
  body:not(.force-3d) #status-pill,
  body:not(.force-3d) #vr-button-host { display: none !important; }
  body:not(.force-3d) #loading { display: none !important; }
  body:not(.force-3d) .mobile-catalog { display: block; }
  .compact-modal { padding: 28px 20px 22px; }
  .pair-layout { grid-template-columns: 1fr; }
  .qr-shell { width: min(280px, 100%); margin: auto; }
  .qr-shell canvas { max-width: 100%; height: auto; }
  .setting-row { grid-template-columns: 1fr; gap: 10px; padding: 16px 0; }
  .project-frame { grid-template-rows: 92px 1fr; }
  .frame-bar { align-items: flex-start; padding: 12px; gap: 8px; }
  .frame-bar > div:last-child { flex-wrap: wrap; justify-content: flex-end; }
  .frame-fallback { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  body.force-3d #topbar { left: 8px; right: 8px; top: 8px; }
  body.force-3d .brand-button > span:last-child, body.force-3d .top-actions .icon-button { display: none; }
  body.force-3d .top-actions .button { padding: 0 10px; }
  body.force-3d .controls-hint { display: none !important; }
  body.force-3d .floor-nav { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.mobile-catalog.desktop-open { display: block; position: fixed; inset: 0; z-index: 84; }
@media (min-width: 721px) {
  .mobile-catalog.desktop-open .mobile-header { padding-top: 14px; }
  .mobile-catalog.desktop-open .mobile-hero { max-width: 1180px; margin: auto; padding: 100px 24px 42px; }
  .mobile-catalog.desktop-open .mobile-hero h1 { font-size: clamp(66px, 8vw, 118px); max-width: 900px; }
  .mobile-catalog.desktop-open .mobile-hero > p:last-child { max-width: 620px; font-size: 17px; }
  .mobile-catalog.desktop-open .mobile-projects { max-width: 1420px; margin: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 24px 150px; }
  .mobile-catalog.desktop-open .mobile-card { min-height: 660px; }
  .mobile-catalog.desktop-open .mobile-footer { max-width: 620px; left: 50%; transform: translateX(-50%); bottom: 18px; border: 1px solid var(--line); border-radius: 999px; }
}
