@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-400-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/manrope-400-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:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-500-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/manrope-500-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:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-600-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/manrope-600-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:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-700-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Manrope';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/manrope-700-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:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/unbounded-500-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/unbounded-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/unbounded-500-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/unbounded-500-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:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-700-cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/unbounded-700-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;}

/* Vimax Studio - obsidian, coral, violet. Single dark theme by design. */
:root {
  --bg: #0b0c11; --bg-2: #0f1017; --panel: #141620; --panel-2: #1a1c28;
  --line: rgba(255,255,255,0.08); --line-2: rgba(255,255,255,0.14);
  --ink: #f2efe9; --ink-2: #b9b6ae; --ink-3: #807d76;
  --coral: #ff5c3c; --coral-2: #ff8a6a; --violet: #6b5cff; --violet-2: #9d93ff;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px; --gutter: 16px; --radius: 18px;
  color-scheme: dark;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; font-weight: 500; }
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--coral); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.section-lead { color: var(--ink-2); max-width: 62ch; font-size: 18px; text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--coral); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coral); color: #15100e; }
.btn-primary:hover { background: var(--coral-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-2); background: rgba(255,255,255,0.04); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(11,12,17,0.72); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; }
.brand svg { color: var(--ink); flex: none; }
.brand b { font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav a { padding: 6px 0; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--coral); transition: right .2s ease; }
.nav a:hover::after { right: 0; }
.top-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .top-tools { margin-left: 0; }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary, .lang summary:hover { color: var(--ink); border-color: var(--ink-3); }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); z-index: 60; }
.lang li a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.lang li a:hover { background: rgba(255,255,255,0.06); color: var(--ink); }
.lang li a[aria-current] { color: var(--coral); }
.burger { display: none; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav { display: none; }
  .top-cta { display: none; }
  .burger { display: flex; }
  .nav.open { display: flex; flex-direction: column; gap: 4px; position: absolute; left: 0; right: 0; top: 68px; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 18px; font-size: 18px; }
  .nav.open a { padding: 10px 0; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 820px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; z-index: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.9; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,12,17,0.92) 0%, rgba(11,12,17,0.7) 45%, rgba(11,12,17,0.15) 100%), linear-gradient(180deg, rgba(11,12,17,0.2) 0%, rgba(11,12,17,0) 40%, rgba(11,12,17,0.95) 100%); }
.hero-inner { position: relative; z-index: 1; padding-block: 96px 72px; display: flex; flex-direction: column; gap: 22px; max-width: 760px; }
.hero h1 { max-width: 20ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; color: var(--ink-2); font-size: 14px; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); flex: none; }
@media (max-width: 700px) { .hero-art img { object-position: 78% 50%; opacity: 0.7; } .hero-inner { padding-block: 56px 44px; gap: 16px; } .hero .lead { font-size: 16px; line-height: 1.5; } .hero h1 { font-size: clamp(30px, 8.6vw, 38px); } .facts { margin-top: 18px; gap: 8px 20px; } }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s ease, transform .25s ease; }
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card-art { aspect-ratio: 16 / 9; overflow: hidden; background: #0d0e14; }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.card-body p { color: var(--ink-2); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tags li { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }

/* Work */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.project::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--coral), var(--violet)); opacity: 0.8; }
.project h3 { font-size: 28px; font-weight: 700; }
.project h3 a:hover { color: var(--coral-2); }
.project-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.project-kind { color: var(--violet-2); font-weight: 600; font-size: 15px; }
.project > p:not(.project-kind) { color: var(--ink-2); }
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { color: #6fd39a; } .status-beta { color: var(--coral-2); } .status-dev { color: var(--ink-3); }
.link-arrow { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.link-arrow:hover { color: var(--coral-2); }
.work-more { margin-top: 28px; color: var(--ink-3); font-size: 15px; }
@media (max-width: 760px) { .projects { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); display: flex; flex-direction: column; gap: 10px; }
.step-n { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.12em; color: var(--violet-2); }
.step p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Stack */
.section-stack { padding-block: clamp(56px, 7vw, 88px); }
.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 0; }
.stack-group { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent); }
.stack dt { font-family: var(--font-display); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-2); }
.stack dd { margin: 0; }
.stack ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s ease, border-color .2s ease; }
.stack li:hover { color: var(--ink); border-color: var(--violet); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-art { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.about-text { display: flex; flex-direction: column; gap: 18px; }
.about-p { color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.principles { display: grid; gap: 16px; margin-top: 14px; }
.principles li { padding-left: 18px; border-left: 2px solid var(--coral); display: flex; flex-direction: column; gap: 4px; }
.principles h3 { font-size: 17px; }
.principles p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-art { max-width: 560px; } }

/* Contact */
.contact { position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%); background: radial-gradient(ellipse at center, rgba(255,92,60,0.14), transparent 60%); pointer-events: none; }
.contact-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.contact-inner .section-lead { text-align: center; }
.mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
.mail-addr { font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 3.2vw, 30px); letter-spacing: -0.01em; padding: 14px 22px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-2); word-break: break-all; }
.mail-addr:hover { border-color: var(--coral); }
.copy[data-state="done"] { border-color: #6fd39a; color: #6fd39a; }
.contact-hiring { color: var(--ink-3); font-size: 15px; max-width: 56ch; margin-top: 12px; }

/* Contact dialog and form */
html:has(.cdialog[open]) { overflow: hidden; }
.cdialog { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; margin: auto; padding: 32px 32px 26px; border: 1px solid var(--line-2); border-radius: 22px; background: var(--panel); color: var(--ink); box-shadow: 0 40px 120px rgba(0,0,0,0.7); }
.cdialog::backdrop { background: rgba(6,7,10,0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cdialog[open] { display: flex; flex-direction: column; gap: 12px; }
.cdialog h2 { font-size: clamp(22px, 4vw, 30px); padding-right: 40px; }
.cdialog-lead { color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.cdialog-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.cdialog-close:hover { color: var(--ink); border-color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .cdialog[open] { animation: cdialog-in .22s ease; }
  .cdialog[open]::backdrop { animation: cdialog-fade .22s ease; }
}
@keyframes cdialog-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes cdialog-fade { from { opacity: 0; } }
.cform { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; text-align: left; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-3); }
.cform input, .cform textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s ease; }
.cform textarea { resize: vertical; min-height: 130px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--coral); }
.cform input:user-invalid, .cform textarea:user-invalid { border-color: #c8523f; }
.cform-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.cform-note { font-size: 13px; color: var(--ink-3); flex: 1 1 200px; }
.cform-status { font-size: 15px; color: var(--ink-2); }
.cform-status:empty { display: none; }
.cform-status[data-state="ok"] { color: #6fd39a; }
.cform-status[data-state="error"] { color: var(--coral-2); }
.cform[data-busy] button { opacity: 0.6; pointer-events: none; }
.cform-status a { color: var(--coral-2); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .cform-row { grid-template-columns: 1fr; } .cdialog { padding: 24px 18px 20px; border-radius: 18px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px; font-size: 14px; color: var(--ink-3); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand svg { width: 20px; height: 20px; color: var(--ink-2); }
.foot-links, .foot-langs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-links { margin-left: auto; }
.foot a:hover { color: var(--ink); }
.foot-langs { width: 100%; }
.foot-langs a[aria-current] { color: var(--ink); }

/* Language banner */
.lang-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70; width: min(560px, calc(100% - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); font-size: 14px; }
.lang-banner[hidden] { display: none; }
.lang-banner p { flex: 1 1 200px; }
.lang-banner .btn { padding: 9px 14px; font-size: 13px; }

/* Documents */
.doc { max-width: 760px; padding-block: 64px 96px; display: flex; flex-direction: column; gap: 22px; }
.doc h1 { font-size: clamp(18px, 6vw, 50px); overflow-wrap: break-word; hyphens: auto; }
.doc section { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.doc h2 { font-size: 20px; font-weight: 500; }
.doc section p { color: var(--ink-2); }
.doc a { color: var(--coral-2); text-decoration: underline; text-underline-offset: 3px; }
.doc .btn { text-decoration: none; color: #15100e; }
.doc-404 { min-height: 60vh; justify-content: center; }

/* Reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
.doc section[id] { scroll-margin-top: 88px; }
.doc ul { display: flex; flex-direction: column; gap: 8px; }
.doc li { position: relative; padding-left: 20px; color: var(--ink-2); }
.doc li::before { content: ""; position: absolute; left: 4px; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--coral-2); }
.doc code { font-size: 0.92em; overflow-wrap: anywhere; }
.doc li, .doc p { overflow-wrap: break-word; }
