@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-cyrillic-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette: black / dark gray / white / light gray / silver only */
:root {
    --bg: #08080a;
    --bg-2: #0e0e11;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hi: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-hi: rgba(255, 255, 255, 0.2);
    --text: #f3f3f5;
    --muted: #8e8e97;
    --silver: #c4c6cd;
    --silver-hi: #e9eaee;
    --white: #ffffff;
    --radius: 22px;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss03';
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
::selection { background: var(--silver); color: #000; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }

.grain {
    position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- logo (grey original, used as-is) ---------- */
.logo-mark {
    display: inline-block; width: 26px; height: 26px; flex: none;
    background: url('/img/logo.png?v=4') center / contain no-repeat;
}

/* ---------- dock nav ---------- */
.dock-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 12px; pointer-events: none; }
.dock {
    --dx: 0;
    pointer-events: auto;
    display: flex; align-items: center; gap: 8px;
    padding: 6px 8px;
    background: rgba(18, 18, 22, 0.72);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 18px 50px -20px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transform: perspective(900px) rotateY(calc(var(--dx) * 2deg));
    transition: transform 0.4s var(--ease);
}
.dock__brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 999px; font-weight: 700; letter-spacing: -0.02em; }
.dock__sep { width: 1px; height: 22px; background: var(--border); flex: none; }
.dock__links { position: relative; display: flex; gap: 2px; }
.dock__links a {
    position: relative; z-index: 1; display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
    transition: color 0.25s, transform 0.25s var(--ease);
}
.dock__links a:hover { color: var(--text); transform: translateY(-2px); }
.dock__links a.is-active { color: #fff; }
.dock__links .ico { display: inline-flex; }
.dock__pill {
    position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0; opacity: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -8px rgba(255, 255, 255, 0.25);
    transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.5, 1), width 0.55s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.3s;
}
.lang { display: flex; padding: 3px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.lang button {
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; color: var(--muted); background: none; border: 0; cursor: pointer;
    padding: 5px 10px; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed='true'] { color: #0a0a0c; background: var(--silver-hi); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; font-size: 15px; font-weight: 600;
    border-radius: 999px; border: 1px solid transparent; cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { background: var(--surface-hi); border-color: var(--border-hi); }
.btn--solid { background: var(--silver-hi); color: #0a0a0c; box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.35); }
.btn--solid:hover { background: #fff; }
.btn.is-disabled { opacity: 0.55; pointer-events: none; }

/* rotating silver glow (monochrome take on the glowing-shadow reference) */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.btn-glow {
    --ang: 0deg;
    position: relative; isolation: isolate; display: inline-flex; padding: 1.5px; border-radius: 999px;
    background: conic-gradient(from var(--ang), transparent 0 52%, #6d6f77 66%, #ffffff 82%, transparent 100%);
    animation: spin-ang 3.6s linear infinite;
    transition: transform 0.3s var(--ease);
}
.btn-glow::before {
    content: ''; position: absolute; inset: -4px; z-index: -1; border-radius: inherit; background: inherit; filter: blur(14px); opacity: 0.5;
    transition: opacity 0.3s;
}
.btn-glow:hover { transform: translateY(-2px) scale(1.02); }
.btn-glow:hover::before { opacity: 0.85; }
.btn-glow__label {
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border-radius: inherit;
    background: #0b0b0d; color: #fff; font-size: 15px; font-weight: 600;
}
@keyframes spin-ang { to { --ang: 360deg; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 130px 20px 90px; overflow: hidden; }
.hero__ascii {
    position: absolute; inset: 0; width: 100%; height: 100%; display: block; color: var(--silver);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
}
.hero__fade { position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.hero__inner { position: relative; max-width: 860px; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.hero__inner > * { pointer-events: auto; }
.announce {
    display: inline-flex; align-items: center; gap: 12px; padding: 7px 8px 7px 14px; font-size: 13px; color: var(--silver);
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 999px; backdrop-filter: blur(8px);
    transition: border-color 0.25s, background 0.25s;
}
.announce:hover { border-color: var(--border-hi); background: rgba(255, 255, 255, 0.07); }
.announce__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); animation: pulse 2.2s infinite; }
.announce__more { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--text); font-weight: 500; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hero__title { margin: 28px 0 22px; font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; font-size: clamp(2.7rem, 8.2vw, 6.2rem); }
.text-silver {
    background: linear-gradient(100deg, #ffffff 0%, #b8bac1 40%, #6f7179 70%, #d8dae0 100%);
    background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: sheen 8s linear infinite;
}
@keyframes sheen { to { background-position: 220% center; } }
.hero__sub { max-width: 560px; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1px solid var(--border-hi); border-radius: 12px; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--silver); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- tech marquee ---------- */
.strip { border-block: 1px solid var(--border); background: var(--bg-2); padding: 18px 0; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee__item { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-hi); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement (scroll-velocity marquee) ---------- */
.statement { padding: 90px 0 40px; overflow: hidden; }
.smarq { overflow: hidden; white-space: nowrap; }
.smarq__track { display: flex; gap: 40px; width: max-content; will-change: transform; }
.smarq__track span { display: block; font-size: clamp(3.4rem, 11vw, 9rem); font-weight: 800; letter-spacing: -0.07em; line-height: 0.95; color: var(--text); }
.smarq--outline .smarq__track span { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.35); }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 20px; }
.section--narrow { max-width: 820px; }
.section__head { margin-bottom: 48px; }
.section__head--center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section__head--center .eyebrow { margin-bottom: 0; }
.section h2 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.08; text-wrap: balance; }
.section__head .muted { max-width: 520px; }

/* ---------- chips (tabs with rising fill) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chips[hidden] { display: none; }
.chips--center { justify-content: center; }
.chip { position: relative; overflow: hidden; padding: 8px 16px; font-size: 14px; font-weight: 500; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: color 0.4s, border-color 0.3s; }
.chip:hover { color: var(--text); border-color: var(--border-hi); }
.chip::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, #ffffff, #cfd1d7); transform: translateY(101%); transition: transform 0.45s cubic-bezier(0.6, -0.28, 0.74, 0.05); }
.chip[aria-selected='true'] { color: #0a0a0c; border-color: #fff; }
.chip[aria-selected='true']::before { transform: translateY(0); transition-timing-function: var(--ease); }
.chip__text { position: relative; z-index: 1; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; font-size: 12px; font-weight: 600; border-radius: 999px; border: 1px solid var(--border-hi); color: var(--silver-hi); background: rgba(255, 255, 255, 0.06); }
.badge--stable { background: var(--silver-hi); color: #0a0a0c; border-color: transparent; }
.badge--wip { color: var(--muted); border-style: dashed; }
.badge--ghost { backdrop-filter: blur(8px); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; }
.badge--beta svg { animation: spin-slow 3s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ---------- spotlight cards ---------- */
.spot { --mx: 50%; --my: 50%; position: relative; overflow: hidden; isolation: isolate; }
.spot::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.09), transparent 60%); transition: opacity 0.35s; }
.spot:hover::before { opacity: 1; }

/* ---------- elastic gallery ---------- */
.gallery { display: flex; gap: 12px; height: 540px; }
.panel {
    --mx: 50%; --my: 50%;
    position: relative; flex: 1; min-width: 0; overflow: hidden; padding: 0; text-align: left; cursor: pointer;
    border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2);
    filter: brightness(0.6);
    transition: flex 0.75s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s, border-color 0.3s;
}
.panel:hover { filter: brightness(0.85); }
.panel.is-active { flex: 4; filter: brightness(1); border-color: var(--border-hi); cursor: default; }
.panel.is-active { cursor: pointer; }
.panel--slot { border-style: dashed; }
.panel__bg { position: absolute; inset: 0; display: grid; place-items: center; background:
    radial-gradient(120% 90% at 20% 0%, #1b1b20 0%, transparent 60%),
    linear-gradient(160deg, #15151a, #0a0a0c); }
.panel__bg::after { content: ''; position: absolute; inset: 0; opacity: 0.5;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 40px 40px;
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%); mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%); }
.panel__glow { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%); filter: blur(30px); }
.panel__icon { position: relative; z-index: 1; width: clamp(80px, 14vw, 150px); height: auto; border-radius: 28px; box-shadow: 0 30px 60px -20px #000; transform: scale(1.1); transition: transform 1s var(--ease); }
.panel.is-active .panel__icon { transform: scale(1); }
.panel__mark { position: relative; z-index: 1; width: 92px; height: 92px; }
.panel__mark--ghost { opacity: 0.18; }
.panel__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.1) 55%, transparent); opacity: 0; transition: opacity 0.5s; }
.panel.is-active .panel__shade { opacity: 1; }
.panel__vert { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); writing-mode: vertical-rl; font-size: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; transition: opacity 0.4s 0.3s; }
.panel.is-active .panel__vert { opacity: 0; transition-delay: 0s; transition-duration: 0.15s; }
.panel__num { position: absolute; top: 18px; left: 20px; font-family: var(--font-mono); font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.panel__content { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; opacity: 0; transform: translateY(40px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.panel.is-active .panel__content { opacity: 1; transform: none; transition-delay: 0.2s; }
.panel__title { font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1; }
.panel__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }

/* ---------- detail ---------- */
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; margin-top: 28px; scroll-margin-top: 90px; }
.detail:empty { display: none; }
.detail__main { padding: 36px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.detail__top { display: flex; align-items: center; gap: 16px; }
.detail__icon { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 12px 30px -10px #000; }
.detail__name { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 4px; }
.detail__tagline { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 3px 11px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.detail__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; padding: 22px; --cf-s: 14px; --cf-w: 2px; --cf-c: var(--silver); background: var(--surface); }
.stat__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat__value { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #fff, #9a9ca4); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__value--text { font-size: clamp(1.6rem, 3vw, 2.3rem); }

/* corner brackets (viewfinder) */
.cf { position: relative; }
.cf::before {
    content: ''; position: absolute; inset: 0; pointer-events: none; transition: inset 0.35s var(--ease);
    background:
        linear-gradient(var(--cf-c), var(--cf-c)) top left / var(--cf-s) var(--cf-w) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) top left / var(--cf-w) var(--cf-s) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) top right / var(--cf-s) var(--cf-w) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) top right / var(--cf-w) var(--cf-s) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) bottom left / var(--cf-s) var(--cf-w) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) bottom left / var(--cf-w) var(--cf-s) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) bottom right / var(--cf-s) var(--cf-w) no-repeat,
        linear-gradient(var(--cf-c), var(--cf-c)) bottom right / var(--cf-w) var(--cf-s) no-repeat;
}
.cf:hover::before { inset: 6px; }

/* ---------- feature grid (dashed) ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px dashed var(--border-hi); }
.fcard { position: relative; padding: 28px 26px 32px; border: 0 dashed var(--border-hi); border-right-width: 1px; border-bottom-width: 1px; }
.fcard:nth-child(3n) { border-right-width: 0; }
.fcard:nth-last-child(-n + 3) { border-bottom-width: 0; }
.fcard__pattern-wrap { position: absolute; top: 0; left: 50%; width: 100%; height: 100%; margin: -8px 0 0 -80px; pointer-events: none;
    -webkit-mask-image: linear-gradient(#fff, transparent); mask-image: linear-gradient(#fff, transparent); }
.fcard__pattern { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255, 255, 255, 0.22); fill: rgba(255, 255, 255, 0.05); opacity: 0.8;
    -webkit-mask-image: radial-gradient(farthest-side at top, #fff, transparent); mask-image: radial-gradient(farthest-side at top, #fff, transparent); }
.fcard__squares { overflow: visible; }
.fcard__icon { position: relative; display: inline-flex; color: var(--silver-hi); margin-bottom: 44px; }
.fcard h3 { position: relative; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.fcard p { position: relative; margin-top: 8px; font-size: 14px; }

/* ---------- timeline ---------- */
.timeline { position: relative; display: flex; flex-direction: column; gap: 18px; margin-left: 20px; padding-left: 52px; border-left: 1px dashed var(--border-hi); }
.tl { position: relative; }
.tl__num { position: absolute; left: -75px; top: 14px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-hi); background: var(--bg); font-family: var(--font-mono); font-size: 12px; font-weight: 600; box-shadow: 0 0 0 6px var(--bg); }
.tl__card { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color 0.3s, transform 0.4s var(--ease); }
.tl__card:hover { border-color: var(--border-hi); transform: translateX(4px); }
.tl__icon { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--silver-hi); }
.tl h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 3px; }
.tl p { font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: background 0.3s, border-color 0.3s; }
.faq__item.is-open { background: var(--surface-hi); border-color: var(--border-hi); }
.faq__item--in { animation: faq-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes faq-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.faq__q { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; text-align: left; background: none; border: 0; cursor: pointer; font-size: 1.05rem; font-weight: 500; color: var(--muted); transition: color 0.25s; }
.faq__item.is-open .faq__q, .faq__q:hover { color: var(--text); }
.faq__plus { display: inline-flex; flex: none; transition: transform 0.3s; }
.faq__item.is-open .faq__plus { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease-in-out; }
.faq__a > div { overflow: hidden; min-height: 0; padding: 0 20px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a > div { padding-bottom: 20px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; }
.footer h3 { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer li a { color: var(--silver); font-size: 14.5px; transition: color 0.2s; }
.footer li a:hover { color: #fff; }
.footer__bar { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 34px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.footer__bar a:hover { color: var(--text); }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; filter: none; }
.hero .reveal:nth-child(2) { --d: 0.08s; } .hero .reveal:nth-child(3) { --d: 0.16s; } .hero .reveal:nth-child(4) { --d: 0.24s; }

/* ---------- 404 ---------- */
.nf { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 24px; overflow: hidden; }
.nf__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 50% 35%, #1a1a1f, transparent 70%); }
.nf h1 { font-size: clamp(7rem, 26vw, 15rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.06) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { margin-top: -26px; max-width: 360px; }
.nf .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- shared bits for the dynamic site ---------- */
[hidden] { display: none !important; }
.empty { padding: 36px 0; text-align: center; }
.section--tight { padding-top: 24px; padding-bottom: 24px; }
.stats--row { grid-template-columns: repeat(4, 1fr); }
a.panel { display: block; color: inherit; }
.panel__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel--cover .panel__bg::after { display: none; }
.panel__tag { max-width: 46ch; font-size: 15px; color: rgba(255, 255, 255, 0.78); }

/* changelog item types (colors chosen by the site owner) */
:root { --c-new: #1b2cc1; --c-changed: #471396; --c-removed: #670d2f; }
.ctype { flex: none; align-self: flex-start; min-width: 78px; padding: 2px 10px; text-align: center; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; color: #fff; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.22); }
.ctype--new { background: var(--c-new); }
.ctype--changed { background: var(--c-changed); }
.ctype--removed { background: var(--c-removed); }
.citems { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.citem { display: flex; gap: 12px; align-items: baseline; font-size: 15px; }

/* news feed */
.feed { display: flex; flex-direction: column; gap: 14px; }
.post { padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color 0.3s; }
.post:hover { border-color: var(--border-hi); }
.post__head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.post h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.post__text { margin-top: 6px; white-space: pre-line; }
.post__project { color: var(--silver-hi); border-bottom: 1px dashed var(--border-hi); }
.post__project:hover { color: #fff; }
.kind { padding: 2px 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 6px; border: 1px solid var(--border-hi); color: var(--silver); }

/* discord card */
.dcard { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 26px 28px; --cf-s: 16px; --cf-w: 2px; --cf-c: var(--silver); background: var(--surface); border-radius: 4px; }
.dcard__avatar { width: 84px; height: 84px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--border-hi); }
.dcard__avatar--empty { display: grid; place-items: center; background: var(--surface-hi); color: var(--silver); }
.dcard__info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }
.dcard__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.dcard__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; }

/* project page */
.proj { padding-top: 110px; }
.phero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 30px; }
.phero__glow { position: absolute; inset: -80px 0 auto 0; height: 380px; background: radial-gradient(50% 60% at 50% 0%, rgba(255, 255, 255, 0.09), transparent 70%); pointer-events: none; }
.back { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 14px; color: var(--muted); transition: color 0.2s, transform 0.3s var(--ease); }
.back:hover { color: var(--text); transform: translateX(-3px); }
.phero__top { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.phero__icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 20px 50px -16px #000; }
.phero__mark { width: 70px; height: 70px; }
.phero__meta { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.phero__name { font-size: clamp(2.4rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.phero__tagline { position: relative; margin-top: 26px; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: -0.025em; max-width: 36ch; text-wrap: balance; }
.phero__desc { position: relative; margin: 12px 0 18px; max-width: 62ch; }
.phero__actions { position: relative; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
#stats { max-width: var(--maxw); }
.shots { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: var(--border-hi) transparent; }
.shot { flex: none; width: min(78vw, 560px); aspect-ratio: 16 / 10; padding: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-2); cursor: zoom-in; transition: border-color 0.3s, transform 0.4s var(--ease); }
.shot:hover { border-color: var(--border-hi); transform: translateY(-3px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { max-width: 94vw; max-height: 92vh; padding: 0; border: 1px solid var(--border-hi); border-radius: 14px; background: var(--bg); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(6px); }
.lightbox img { display: block; max-width: 94vw; max-height: 92vh; object-fit: contain; cursor: zoom-out; }

.files { display: flex; flex-direction: column; gap: 12px; }
.file { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color 0.3s; }
.file:hover { border-color: var(--border-hi); }
.file__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.file__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.file__name strong { overflow-wrap: anywhere; }
.file__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.file__hash { display: inline-flex; align-items: center; gap: 4px; }
.file__hash code { font-family: var(--font-mono); font-size: 12px; color: var(--silver); }
.file__copy { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 3px 9px; font-size: 12px; color: var(--silver); background: transparent; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.file__copy:hover { border-color: var(--border-hi); color: #fff; }

.release { padding: 22px 24px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.release__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.release h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.03em; }
.nf-hint { text-align: center; padding: 60px 20px; }

.facts { position: relative; display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 18px; font-size: 14px; }
.facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; color: var(--silver-hi); white-space: pre-line; max-width: 60ch; }

details.older { margin-top: 6px; }
details.older > summary { cursor: pointer; padding: 12px 4px; font-size: 14px; color: var(--muted); list-style: none; transition: color 0.2s; }
details.older > summary::-webkit-details-marker { display: none; }
details.older > summary::before { content: '+'; display: inline-block; width: 18px; }
details.older[open] > summary::before { content: '–'; }
details.older > summary:hover { color: var(--text); }
details.older .file { margin-top: 10px; }

/* legal pages */
.legal { padding: 140px 20px 80px; }
.legal__body { max-width: 760px; margin: 0 auto; }
.legal__body h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 24px; }
.legal__body h2 { margin: 34px 0 10px; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.legal__body p { margin-bottom: 12px; color: var(--silver); }
.legal__body a { color: var(--text); border-bottom: 1px solid var(--border-hi); }
.legal__body a:hover { border-color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .stats--row { grid-template-columns: 1fr 1fr; }
    .detail { grid-template-columns: 1fr; }
    .fgrid { grid-template-columns: repeat(2, 1fr); }
    .fcard:nth-child(3n) { border-right-width: 1px; }
    .fcard:nth-child(2n) { border-right-width: 0; }
    .fcard:nth-last-child(-n + 3) { border-bottom-width: 1px; }
    .fcard:nth-last-child(-n + 2) { border-bottom-width: 0; }
}
@media (max-width: 680px) {
    .dock__label { display: none; }
    .dock__links a { padding: 10px 12px; }
    .dock { gap: 4px; }
    .gallery { flex-direction: column; height: 620px; }
    .panel__vert { writing-mode: horizontal-tb; left: 22px; bottom: 50%; transform: translateY(50%); font-size: 14px; }
    .panel__content { padding: 20px; }
    .section { padding: 72px 18px; }
    .fgrid { grid-template-columns: 1fr; }
    .fcard { border-right-width: 0 !important; border-bottom-width: 1px !important; }
    .fcard:last-child { border-bottom-width: 0 !important; }
    .timeline { margin-left: 16px; padding-left: 40px; }
    .tl__num { left: -63px; width: 34px; height: 34px; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
    .stats { grid-template-columns: 1fr 1fr; }
    .detail__main { padding: 26px; }
}
@media (max-width: 420px) {
    .dock__brand .logo-mark + * { display: none; }
    .lang button { padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
}
