:root {
    --bg: #070d12;
    --bg-soft: rgba(8, 13, 18, .66);
    --surface: rgba(13, 19, 27, .74);
    --surface-2: rgba(10, 15, 21, .86);
    --panel: rgba(10, 16, 22, .72);
    --panel-solid: #0f151e;
    --line: rgba(255,255,255,.11);
    --line-strong: rgba(255,255,255,.2);
    --text: #eef4fb;
    --muted: #a1adba;
    --muted-2: #6c7888;
    --title-soft: #84a1b8;
    --accent: #9cf08f;
    --accent-strong: #d1ff70;
    --accent-2: #5edcff;
    --accent-3: #8ba2ff;
    --shadow: 0 28px 100px rgba(0,0,0,.32);
    --shadow-soft: 0 18px 50px rgba(0,0,0,.18);
    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --card-sheen: rgba(255,255,255,.06);
    --hero-overlay: linear-gradient(180deg, rgba(5,8,12,.15), rgba(5,8,12,.08));
    --topbar-bg: rgba(7, 12, 17, .62);
    --theme-card-filter: saturate(1.1) blur(16px);
}

body[data-theme="light"] {
    --bg: #edf5f2;
    --bg-soft: rgba(255,255,255,.56);
    --surface: rgba(255,255,255,.72);
    --surface-2: rgba(248, 251, 249, .86);
    --panel: rgba(250, 252, 251, .68);
    --panel-solid: #ffffff;
    --line: rgba(21, 66, 71, .14);
    --line-strong: rgba(21, 66, 71, .22);
    --text: #183640;
    --muted: #4d6b72;
    --muted-2: #6b8a90;
    --title-soft: #2f8190;
    --accent: #19b4b1;
    --accent-strong: #0e7f98;
    --accent-2: #166fcb;
    --accent-3: #f2bb1d;
    --shadow: 0 28px 80px rgba(19, 65, 72, .14);
    --shadow-soft: 0 18px 45px rgba(19, 65, 72, .1);
    --card-sheen: rgba(255,255,255,.48);
    --hero-overlay: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.12));
    --topbar-bg: rgba(255,255,255,.62);
    --theme-card-filter: saturate(1.08) blur(18px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 12% 8%, rgba(255,255,255,.05), transparent 22%), var(--bg);
    transition: background-color .45s ease, color .45s ease;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: var(--accent-strong); color: #102019; }

.theme-artwork,
.theme-overlay,
.noise,
.ambient,
.cursor-glow,
.scroll-progress { pointer-events: none; }
.theme-artwork,
.theme-overlay,
.noise,
.ambient,
.cursor-glow {
    position: fixed;
    inset: 0;
}
.theme-artwork {
    z-index: -5;
    background-image: var(--dark-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: .18;
    transform: scale(1.04);
    will-change: transform;
    transition: opacity .45s ease, transform .65s ease, filter .45s ease, background-image .45s ease;
    filter: saturate(1.05) contrast(1.05) brightness(.65) blur(0px);
}
body[data-theme="light"] .theme-artwork {
    background-image: var(--light-bg-image);
    opacity: .28;
    filter: saturate(1.02) contrast(1.04) brightness(1) blur(0px);
}
.theme-overlay {
    z-index: -4;
    background: linear-gradient(180deg, rgba(5,9,13,.78), rgba(5,9,13,.92));
    transition: background .45s ease;
}
body[data-theme="light"] .theme-overlay {
    background: linear-gradient(180deg, rgba(245,251,249,.75), rgba(237,245,242,.86));
}
.noise {
    z-index: 50;
    opacity: .04;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.ambient {
    z-index: -3;
    width: 36vw;
    height: 36vw;
    border-radius: 50%;
    filter: blur(95px);
    opacity: .13;
    transition: opacity .45s ease;
}
.ambient-one { inset: auto auto auto auto; top: 4vh; right: -10vw; background: rgba(94, 220, 255, .95); }
.ambient-two { top: 60vh; left: -12vw; background: rgba(156, 240, 143, .88); }
body[data-theme="light"] .ambient { opacity: .17; }
.cursor-glow {
    z-index: -2;
    width: 460px;
    height: 460px;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(156, 240, 143, .14), transparent 65%);
    opacity: 0;
    transition: opacity .25s ease;
}
body[data-theme="light"] .cursor-glow {
    background: radial-gradient(circle, rgba(25, 180, 177, .12), transparent 66%);
}
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    z-index: 90;
    background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
    box-shadow: 0 0 20px rgba(255,255,255,.16);
}

.section-shell { width: min(1280px, calc(100% - 56px)); margin: 0 auto; }
.topbar {
    width: min(1380px, calc(100% - 32px));
    height: 78px;
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--topbar-bg);
    backdrop-filter: var(--theme-card-filter);
    box-shadow: var(--shadow-soft);
}
.brand { display:flex; align-items:center; gap:11px; }
.brand-mark {
    width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
    font: 700 19px "Space Grotesk"; color: #102019;
    background: linear-gradient(135deg, var(--accent-strong), var(--accent));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.4), 0 10px 35px rgba(156,240,143,.18);
}
body[data-theme="light"] .brand-mark { color: white; }
.brand-copy { display:flex; flex-direction:column; line-height:1.05; }
.brand-copy strong { font-family:"Space Grotesk"; font-size:15px; letter-spacing:-.02em; }
.brand-copy small { margin-top:5px; color:var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.16em; }
.nav { position:absolute; left:50%; transform:translateX(-50%); display:flex; gap:30px; }
.nav a { color: var(--muted); font-size: 13px; transition: .2s; }
.nav a:hover { color: var(--text); }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.theme-toggle,
.command-button {
    height: 50px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255,255,255,.04);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover,
.command-button:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.theme-toggle { padding: 0 12px 0 10px; min-width: 176px; justify-content: flex-start; }
.theme-toggle-icon {
    width: 30px; height: 30px; border-radius: 10px; position: relative; flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
    border: 1px solid var(--line);
}
.theme-toggle-icon::before,
.theme-toggle-icon::after { content: ""; position: absolute; inset: 0; margin: auto; border-radius: 50%; transition: .35s ease; }
.theme-toggle-icon::before { width: 12px; height: 12px; background: var(--accent-strong); box-shadow: 0 0 16px rgba(255,255,255,.25); }
body[data-theme="light"] .theme-toggle-icon::before { width: 14px; height: 14px; background: var(--accent-3); }
.theme-toggle-icon::after { width: 20px; height: 20px; border: 2px solid transparent; }
body[data-theme="light"] .theme-toggle-icon::after { border-color: rgba(242,187,29,.36); }
.theme-toggle-copy { display:flex; flex-direction:column; align-items:flex-start; line-height:1.04; }
.theme-toggle-copy b { font-size: 12px; }
.theme-toggle-copy small { margin-top:4px; color: var(--muted); font-size: 10px; }
.command-button { padding: 0 11px 0 14px; color: var(--text); }
kbd {
    display:inline-flex; align-items:center; justify-content:center; min-width:26px; height:25px; padding:0 6px;
    border:1px solid var(--line); border-bottom-color: var(--line-strong); border-radius:7px;
    background:rgba(255,255,255,.05); color:var(--muted); font-size:10px; box-shadow:inset 0 -1px 0 rgba(255,255,255,.03);
}

.hero {
    min-height: 950px;
    padding-top: 190px;
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    align-items: center;
    gap: 72px;
}
.eyebrow { display:inline-flex; align-items:center; gap:9px; margin-bottom:24px; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.18em; }
.status-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 18px var(--accent); }
.hero h1,
.section-heading h2,
.about h2,
.contact h2 { margin:0; font-family:"Space Grotesk"; letter-spacing:-.055em; font-weight:600; }
.hero h1 { font-size: clamp(64px, 6.6vw, 98px); line-height: .94; }
.hero h1 span { color: var(--text); }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero-description { max-width: 690px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.78; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.primary-button,
.secondary-button {
    height: 54px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 16px;
    padding: 0 20px; font-weight: 700; font-size: 13px; cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s, color .2s;
}
.primary-button { color: #0f1b1d; background: linear-gradient(135deg, var(--accent-strong), var(--accent)); box-shadow: 0 18px 45px rgba(156,240,143,.18); }
.secondary-button { border:1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); }
body[data-theme="light"] .primary-button { color: white; box-shadow: 0 18px 40px rgba(25,180,177,.18); }
.primary-button:hover,
.secondary-button:hover { transform: translateY(-2px); }
.hero-meta { display:flex; gap:42px; margin-top:54px; padding-top:24px; border-top:1px solid var(--line); max-width:690px; }
.hero-meta div { display:flex; flex-direction:column; gap:5px; }
.hero-meta strong { font-family:"Space Grotesk"; font-size:24px; }
.hero-meta span { color: var(--muted-2); font-size:11px; text-transform:uppercase; letter-spacing:.11em; }
.hero-stage { min-height: 610px; position: relative; display: grid; place-items: center; perspective: 1000px; }
.stage-core {
    width:min(100%, 540px); min-height:560px; position:relative; padding:24px;
    border:1px solid var(--line); border-radius:34px; background: linear-gradient(145deg, rgba(14,20,28,.88), rgba(9,12,18,.84));
    box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.08); overflow:hidden; backdrop-filter: blur(14px);
}
body[data-theme="light"] .stage-core {
    background: linear-gradient(145deg, rgba(255,255,255,.72), rgba(247,251,249,.62));
}
.stage-core::before {
    content:""; position:absolute; inset:0; background: linear-gradient(115deg, transparent 28%, var(--card-sheen), transparent 66%); pointer-events:none;
}
.core-topline { display:flex; justify-content:space-between; color: var(--muted-2); font-size:10px; letter-spacing:.14em; }
.live-pill { color: var(--accent); }
.core-logo {
    margin-top:58px; width:84px; height:84px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18);
    border-radius:24px; background: linear-gradient(145deg, rgba(156,240,143,.24), rgba(255,255,255,.03)); color: var(--accent-strong);
    font:700 26px "Space Grotesk"; box-shadow: 0 0 60px rgba(156,240,143,.12);
}
body[data-theme="light"] .core-logo {
    color: var(--accent-strong);
    background: linear-gradient(145deg, rgba(25,180,177,.16), rgba(255,255,255,.5));
}
.core-title { margin-top:20px; font:600 39px/1.08 "Space Grotesk"; letter-spacing:-.045em; }
.core-title span { color: var(--title-soft); }
.core-grid { margin-top:34px; display:grid; gap:9px; }
.mini-project {
    display:grid; grid-template-columns:42px 1fr auto; gap:12px; align-items:center; padding:10px;
    border:1px solid var(--line); border-radius:14px; background: rgba(255,255,255,.04); transition:.2s;
}
body[data-theme="light"] .mini-project { background: rgba(255,255,255,.42); }
.mini-project:hover { transform: translateX(4px); border-color: var(--line-strong); background: rgba(255,255,255,.08); }
.mini-icon {
    width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background: rgba(255,255,255,.08);
}
.mini-icon svg, .project-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.mini-project strong { display:block; font-size:12px; }
.mini-project small { display:block; color: var(--muted-2); font-size:10px; margin-top:4px; }
.mini-project b { color: var(--muted-2); font-size:13px; }
.accent-cyan .mini-icon, .mini-icon.accent-cyan, .accent-cyan .project-icon { color:#28a4ff; }
.accent-green .mini-icon, .mini-icon.accent-green, .accent-green .project-icon { color:#2ab374; }
.accent-rose .mini-icon, .mini-icon.accent-rose, .accent-rose .project-icon { color:#d95a77; }
.core-footer { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:16px; }
.mode-pill {
    display:inline-flex; align-items:center; gap:10px; min-height:38px; padding:0 14px; border:1px solid var(--line);
    border-radius:999px; background: rgba(255,255,255,.05); color: var(--text); font-size:12px;
}
.mode-pill i { width:9px; height:9px; border-radius:50%; background: var(--accent); box-shadow:0 0 14px var(--accent); }
.mode-pill b { font-weight: 700; }
.core-caption { color: var(--muted); font-size: 11px; text-align: right; }
.stage-orbit { position:absolute; border:1px solid rgba(255,255,255,.12); border-radius:50%; pointer-events:none; }
body[data-theme="light"] .stage-orbit { border-color: rgba(31, 119, 126, .16); }
.orbit-a { width:580px; height:580px; animation:spin 24s linear infinite; }
.orbit-b { width:690px; height:690px; border-style:dashed; animation:spinReverse 34s linear infinite; }
.orbit-a:before, .orbit-b:after {
    content:""; position:absolute; width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow:0 0 20px var(--accent);
}
.orbit-a:before { top:48px; left:100px; }
.orbit-b:after { right:60px; bottom:110px; background: var(--accent-2); box-shadow:0 0 20px var(--accent-2); }
.floating-tag,
.floating-badge {
    position:absolute; border:1px solid var(--line); background: var(--surface); backdrop-filter: var(--theme-card-filter);
    box-shadow: var(--shadow-soft);
}
.floating-tag {
    border-radius:999px; padding:10px 14px; color: var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase;
}
.tag-code { top:68px; right:-28px; }
.tag-private { bottom:66px; left:-32px; }
.floating-badge {
    width: 170px; padding: 14px; border-radius: 18px; animation: float 5.4s ease-in-out infinite;
}
.floating-badge strong { display:block; font: 600 13px "Space Grotesk"; }
.floating-badge small { display:block; color: var(--muted); margin-top: 6px; font-size: 11px; line-height: 1.5; }
.badge-one { top: 120px; left: -36px; }
.badge-two { bottom: 110px; right: -36px; animation-delay: 1.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes float { 50% { transform: translateY(-10px); } }

.ticker {
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
    overflow:hidden;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(8px);
}
.ticker-track {
    display:flex; align-items:center; width:max-content; gap:30px; padding:15px 0;
    animation:ticker 24s linear infinite; color: var(--muted-2); font:600 11px "Space Grotesk"; letter-spacing:.16em;
}
.ticker-track i { color: var(--accent); font-style:normal; font-size:8px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.works { padding: 140px 0 80px; }
.section-heading {
    display:grid; grid-template-columns:1.28fr .72fr; gap:54px; align-items:end;
}
.section-index, .about-kicker { color: var(--muted-2); font:500 10px "Space Grotesk"; letter-spacing:.18em; }
.section-heading h2 { font-size: clamp(44px, 4.8vw, 68px); line-height: 1.02; }
.section-heading h2 span { color: var(--accent-strong); }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.project-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; margin-top:42px; }
.project-card {
    min-height: 410px; position: relative; overflow: hidden; display:flex; flex-direction:column;
    padding: 26px; border:1px solid var(--line); border-radius: 30px; background: var(--surface); backdrop-filter: var(--theme-card-filter);
    box-shadow: var(--shadow-soft); transform-style: preserve-3d; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project-card:hover { border-color: var(--line-strong); }
.project-card.accent-cyan:hover { box-shadow: 0 28px 80px rgba(30,196,255,.08); }
.project-card.accent-green:hover { box-shadow: 0 28px 80px rgba(78,255,138,.09); }
.project-card.accent-rose:hover { box-shadow: 0 28px 80px rgba(255,87,126,.08); }
.project-card-top, .project-card-footer { position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; }
.project-number { color: var(--muted-2); font:500 10px "Space Grotesk"; letter-spacing:.12em; }
.project-status { display:flex; align-items:center; gap:8px; color: var(--muted); font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.project-status i { width:6px; height:6px; border-radius:50%; background: var(--accent); box-shadow:0 0 10px rgba(156,240,143,.5); }
.project-status.muted { color:#7b8892; }
.project-icon {
    width:72px; height:72px; position:relative; z-index:2; display:grid; place-items:center; margin-top:50px;
    border:1px solid var(--line); border-radius:21px; background: rgba(255,255,255,.06);
}
.project-icon svg { width:30px; height:30px; }
.project-card-copy { position:relative; z-index:2; margin-top:26px; max-width:520px; }
.project-card-copy > span { color: var(--muted-2); font-size:10px; text-transform:uppercase; letter-spacing:.14em; }
.project-card-copy h3 { margin:7px 0 10px; font:600 36px "Space Grotesk"; letter-spacing:-.04em; }
.project-card-copy p { margin:0; color: var(--muted); font-size:13px; line-height:1.7; }
.project-card-footer { margin-top:auto; padding-top:24px; border-top:1px solid var(--line); color: var(--muted-2); font-size:10px; text-transform:uppercase; letter-spacing:.1em; }
.open-arrow {
    display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line); border-radius:10px; color: var(--text); transition:.2s;
}
.project-card:hover .open-arrow { transform: translate(2px, -2px); border-color: var(--line-strong); }
.project-shine { position:absolute; inset:-40%; opacity:0; pointer-events:none; background: radial-gradient(circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.14), transparent 22%); transition: opacity .3s; }
.project-card:hover .project-shine { opacity:1; }
.coming-card { border-style:dashed; }
.coming-symbol {
    width:72px; height:72px; display:grid; place-items:center; margin-top:50px; border:1px dashed var(--line-strong);
    border-radius:21px; color: var(--muted-2); font-size:28px;
}

.about { padding: 80px 0 100px; }
.about-panel {
    padding: 64px; border:1px solid var(--line); border-radius: var(--radius-xl);
    background: var(--surface); backdrop-filter: var(--theme-card-filter);
}
.about-grid { display:grid; grid-template-columns:1fr .65fr; gap:90px; align-items:start; }
.about h2 { font-size:clamp(44px, 5vw, 70px); line-height:1; }
.about h2 span { color: var(--title-soft); }
.about-copy { color: var(--muted); font-size:15px; line-height:1.8; }
.about-copy p:first-child { margin-top:0; }
.principles { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:64px; border-top:1px solid var(--line); }
.principles > div { padding:28px 28px 0 0; }
.principles > div + div { border-left:1px solid var(--line); padding-left:28px; }
.principles span { color: var(--accent-strong); font:500 10px "Space Grotesk"; }
.principles strong { display:block; margin-top:14px; font:600 19px "Space Grotesk"; }
.principles p { margin:8px 0 0; color: var(--muted); font-size:12px; }

.contact { padding: 80px 0 130px; }
.contact-card {
    min-height: 490px; position:relative; overflow:hidden; padding:70px; border:1px solid var(--line);
    border-radius: 38px; background: linear-gradient(145deg, rgba(15,22,28,.82), rgba(8,11,15,.76));
    backdrop-filter: blur(14px);
}
body[data-theme="light"] .contact-card { background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(247,251,249,.66)); }
.contact-card::before {
    content:""; position:absolute; inset:auto -10% -24% auto; width:380px; height:380px; border-radius:50%;
    background: radial-gradient(circle, rgba(156,240,143,.15), transparent 66%);
}
body[data-theme="light"] .contact-card::before { background: radial-gradient(circle, rgba(25,180,177,.14), transparent 66%); }
.contact h2 { max-width:800px; font-size:clamp(50px, 6vw, 82px); line-height:.98; }
.contact h2 span { color: var(--accent-strong); }
.contact p { color: var(--muted); margin-top:24px; }
.contact-link {
    display:inline-flex; gap:14px; align-items:center; margin-top:30px; padding-bottom:6px;
    border-bottom:1px solid var(--line-strong); color: var(--text); font-size:16px;
}
.contact-radar { position:absolute; width:360px; height:360px; right:-70px; bottom:-80px; }
.contact-radar i { position:absolute; inset:50%; border:1px solid var(--line); border-radius:50%; transform:translate(-50%,-50%); }
.contact-radar i:nth-child(1){width:100px;height:100px}
.contact-radar i:nth-child(2){width:220px;height:220px}
.contact-radar i:nth-child(3){width:340px;height:340px}
.contact-radar b { position:absolute; left:50%; top:50%; width:8px; height:8px; border-radius:50%; background: var(--accent); box-shadow:0 0 30px var(--accent); }

.footer { padding:0 0 42px; display:flex; justify-content:space-between; align-items:flex-end; color: var(--muted-2); font-size:11px; }
.footer > div:first-child { display:flex; flex-direction:column; gap:6px; }
.footer strong { color: var(--text); font:600 14px "Space Grotesk"; }
.footer-right { display:flex; gap:28px; }
.footer a:hover { color: var(--text); }

.reveal {
    opacity:0; transform:translateY(28px);
    transition:opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
    transition-delay:var(--delay,0ms);
}
.reveal.visible { opacity:1; transform:translateY(0); }

.command-modal { position:fixed; inset:0; z-index:100; display:none; align-items:flex-start; justify-content:center; padding-top:16vh; }
.command-modal.open { display:flex; }
.command-backdrop { position:absolute; inset:0; background:rgba(0,0,0,.58); backdrop-filter:blur(10px); animation:fade .18s ease; }
.command-box {
    width:min(620px, calc(100% - 28px)); position:relative; overflow:hidden; border:1px solid var(--line);
    border-radius:22px; background: var(--panel-solid); box-shadow:0 40px 120px rgba(0,0,0,.45); animation:pop .2s ease;
}
body[data-theme="light"] .command-box { background: rgba(255,255,255,.95); }
@keyframes fade { from{opacity:0} }
@keyframes pop { from{opacity:0; transform:translateY(-10px) scale(.985)} }
.command-search { height:66px; display:grid; grid-template-columns:26px 1fr auto; align-items:center; gap:12px; padding:0 16px; border-bottom:1px solid var(--line); }
.command-search svg { width:20px; fill:none; stroke:var(--muted-2); stroke-width:1.7; }
.command-search input { width:100%; border:0; outline:0; background:transparent; color:var(--text); font-size:15px; }
.command-search input::placeholder { color:var(--muted-2); }
.command-label { padding:15px 16px 9px; color:var(--muted-2); font-size:9px; letter-spacing:.15em; text-transform:uppercase; }
.command-list { padding:0 8px 8px; }
.command-list a { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:12px; padding:9px; border-radius:13px; }
.command-list a:hover, .command-list a.active { background: rgba(255,255,255,.06); }
body[data-theme="light"] .command-list a:hover, body[data-theme="light"] .command-list a.active { background: rgba(12, 79, 88, .08); }
.command-list strong { display:block; font-size:12px; }
.command-list small { display:block; color:var(--muted-2); font-size:10px; margin-top:4px; }
.command-list b { color:var(--muted-2); padding-right:8px; }
.command-empty { display:none; padding:24px; text-align:center; color:var(--muted-2); font-size:12px; }
.command-help { display:flex; justify-content:flex-end; gap:18px; padding:10px 14px; border-top:1px solid var(--line); color:var(--muted-2); font-size:10px; }
.command-help span { display:flex; align-items:center; gap:4px; }
.command-help kbd { min-width:21px; height:20px; font-size:9px; }

@media (max-width: 1180px) {
    .nav { display:none; }
    .hero { grid-template-columns:1fr; padding-top:180px; padding-bottom:120px; gap:80px; }
    .hero-copy { max-width:850px; }
    .hero-stage { min-height:620px; }
    .section-heading, .about-grid { grid-template-columns:1fr; gap:30px; }
    .section-heading p { max-width:650px; }
}

@media (max-width: 760px) {
    .section-shell { width:min(100% - 28px, 1280px); }
    .topbar { top:10px; width:calc(100% - 20px); height:auto; padding:12px; gap:10px; flex-wrap:wrap; }
    .topbar-actions { width:100%; justify-content:space-between; }
    .theme-toggle { min-width: unset; flex:1; }
    .command-button span { display:none; }
    .brand-copy small { display:none; }
    .hero { min-height:auto; padding-top:156px; gap:54px; }
    .hero h1 { font-size:clamp(50px, 14vw, 76px); }
    .hero-description { font-size:15px; }
    .hero-meta { gap:18px; justify-content:space-between; }
    .hero-meta strong { font-size:20px; }
    .hero-meta span { font-size:8px; }
    .hero-stage { min-height:520px; }
    .stage-core { min-height:460px; padding:18px; border-radius:26px; }
    .core-logo { margin-top:36px; width:66px; height:66px; }
    .core-title { font-size:31px; }
    .core-grid { margin-top:24px; }
    .core-footer { flex-direction:column; align-items:flex-start; }
    .orbit-a { width:470px; height:470px; }
    .orbit-b { width:540px; height:540px; }
    .floating-tag, .floating-badge { display:none; }
    .works { padding-top:100px; }
    .project-grid { grid-template-columns:1fr; }
    .project-card { min-height:390px; padding:22px; }
    .section-heading h2, .about h2 { font-size:45px; }
    .about-panel { padding:34px 24px; border-radius:28px; }
    .principles { grid-template-columns:1fr; }
    .principles > div { padding:22px 0; }
    .principles > div + div { border-left:0; border-top:1px solid var(--line); padding-left:0; }
    .contact { padding-bottom:90px; }
    .contact-card { min-height:450px; padding:38px 24px; border-radius:28px; }
    .contact h2 { font-size:48px; }
    .contact-radar { right:-130px; }
    .footer { align-items:flex-start; gap:26px; flex-direction:column; }
    .footer-right { width:100%; justify-content:space-between; }
}

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { animation:none!important; scroll-behavior:auto!important; transition-duration:.01ms!important; }
}
