/* Fonts — served with the page, no request to a third party. Latin subset (covers German);
   licences: fonts/OFL-*.txt (SIL Open Font License 1.1). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-stretch: 100%; font-display: swap; src: url(fonts/bricolage-grotesque-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: "Figtree"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/figtree-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: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/dm-mono-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: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/dm-mono-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; }
/* Russian: the three fonts above have no Cyrillic, so the pages in /ru/ are set in Onest and
   JetBrains Mono (Cyrillic and Latin part each). A browser loads them only where they are used. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/onest-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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(fonts/jetbrains-mono-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; }
:root:lang(ru) { --display: "Onest", system-ui, sans-serif; --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace; }
/* Layout concept: the page is a dive. Scrolling takes the visitor from the surface down to
   40 m (the recreational diving limit); a dive computer tracks depth and pressure. Light theme
   is sunlit shallow water, dark theme is the deep sea with glowing plankton. */
:root {
  /* --depth runs 0..1 with the scroll position; the water gets darker on the way down */
  --depth: 0;
  --bg-top: #EAF3FB; --bg-deep: #D3E6F7; --bg2-top: #D8E9F8; --bg2-deep: #C2DAF1;
  --bg: color-mix(in srgb, var(--bg-top), var(--bg-deep) calc(var(--depth) * 100%));
  --bg2: color-mix(in srgb, var(--bg2-top), var(--bg2-deep) calc(var(--depth) * 100%));
  --surface: #FBFDFF; --fg: #0B2440; --muted: #476181;
  --line: #B9CFE6; --signal-ink: #2A1E00;
  /* Accent (ice blue) and signal (yellow): -l for the light theme, -d for the dark one */
  --acc-l: #1F5FBF; --acc-l-ink: #FFFFFF; --acc-d: #8FD3FF; --acc-d-ink: #04203A; --sig-l: #E3A300; --sig-d: #FFC933;
  --accent: var(--acc-l); --accent-ink: var(--acc-l-ink); --signal: var(--sig-l);
  --particle: #00788C; --glow: 0;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-top: #0A1B3D; --bg-deep: #030816; --bg2-top: #0F2550; --bg2-deep: #060E24;
    --surface: #13294F; --fg: #E4EEFB; --muted: #93A9CC;
    --line: #24406F; --accent: var(--acc-d); --accent-ink: var(--acc-d-ink); --signal: var(--sig-d); --signal-ink: #2A1E00;
    --particle: #7FF5E3; --glow: 1; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-top: #0A1B3D; --bg-deep: #030816; --bg2-top: #0F2550; --bg2-deep: #060E24;
  --surface: #13294F; --fg: #E4EEFB; --muted: #93A9CC;
  --line: #24406F; --accent: var(--acc-d); --accent-ink: var(--acc-d-ink); --signal: var(--sig-d); --signal-ink: #2A1E00;
  --particle: #7FF5E3; --glow: 1; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1120px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 9vw, 104px); }
.band.alt { background: var(--bg2); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: 36px; }
.head p { color: var(--muted); font-size: 1.1rem; }
.zone { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* Header */
/* Clear at the very top; once the page is scrolled (.scrolled) or the menu is open (.open)
   the header gets a blurred backdrop and a soft shadow, darker in the dark theme */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; transition: background-color .25s, box-shadow .25s; }
.top.scrolled, .top.open { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 20px color-mix(in srgb, #000 calc(10% + var(--glow) * 18%), transparent); }
@media (prefers-reduced-motion: reduce) { .top { transition: none; } }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--fg); text-decoration: none; margin-right: auto; min-width: 0; }
/* The logo is a mask filled with the text colour, so it follows the theme. The mask is the
   drawing of img/logo.svg with rounded coordinates; make it anew when the logo changes. */
.brand-logo { flex: none; width: 44px; height: 28px; background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
:root { --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54 34'%3E%3Cpath transform='matrix(0.0109487,0,0,0.0109487,-0.911364,-1.47741)' d='M3618,1664C3659,1686 3739,1758 3772,1754C3828,1748 3856,1727 3893,1688C3893,1688 3925,1652 3925,1652C3925,1652 3962,1613 3962,1613C3962,1613 3998,1573 3998,1573C4027,1541 4057,1511 4086,1480C4086,1480 4124,1438 4124,1438C4124,1438 4145,1416 4145,1416C4145,1416 4180,1380 4180,1380C4189,1370 4202,1356 4202,1341C4203,1323 4198,1312 4184,1301C4160,1282 4137,1265 4115,1245C4115,1245 4099,1232 4099,1232C4083,1217 4067,1201 4052,1184C4052,1184 4030,1159 4030,1159C4030,1159 4015,1141 4015,1141C4015,1141 4001,1123 4001,1123C4001,1123 3987,1104 3987,1104C3987,1104 3975,1086 3975,1086C3933,1022 3904,964 3877,891C3877,891 3868,868 3868,868C3868,868 3860,843 3860,843C3860,843 3851,814 3851,814C3851,814 3844,790 3844,790C3844,790 3838,768 3838,768C3827,722 3818,676 3817,630C3816,607 3818,584 3844,575C3868,567 3884,579 3904,593C3951,629 3998,665 4046,700C4084,730 4123,759 4161,788C4191,811 4221,832 4250,855C4262,864 4294,890 4313,899C4339,912 4374,907 4393,884C4412,862 4415,834 4404,807C4394,783 4364,752 4350,737C4334,719 4318,700 4303,682C4277,651 4250,620 4224,589C4224,589 4204,566 4204,566C4192,552 4179,538 4167,523C4146,500 4125,477 4105,454C4105,454 4083,428 4083,428C4083,428 4069,413 4069,413C4054,396 4039,380 4025,364C4005,341 3984,320 3964,297C3957,290 3951,283 3946,275C3937,262 3939,249 3948,237C3972,203 4047,199 4083,199C4118,199 4160,203 4195,209C4195,209 4215,213 4215,213C4215,213 4241,218 4241,218C4241,219 4266,225 4266,225C4266,225 4287,231 4288,231C4288,231 4308,237 4308,237C4308,237 4332,246 4333,246C4333,246 4358,256 4358,256C4358,256 4380,265 4380,265C4380,265 4400,274 4400,274C4432,289 4463,305 4492,323C4492,323 4512,336 4512,336C4512,336 4536,352 4536,352C4570,376 4599,398 4629,427C4660,457 4691,488 4718,522C4718,522 4733,542 4733,542C4733,542 4748,563 4748,563C4748,563 4760,581 4760,581C4772,600 4782,619 4792,638C4792,639 4803,661 4803,661C4803,661 4813,683 4813,683C4813,683 4821,703 4821,703C4854,787 4872,887 4864,978C4864,979 4862,1004 4862,1004C4857,1039 4850,1073 4840,1106C4840,1106 4832,1131 4832,1131C4823,1156 4814,1181 4801,1204C4783,1239 4763,1272 4739,1303C4739,1303 4724,1322 4724,1322C4696,1355 4656,1395 4623,1422C4567,1469 4533,1488 4491,1544C4469,1573 4449,1602 4429,1631C4407,1661 4385,1690 4364,1720C4351,1738 4338,1757 4325,1774C4325,1774 4306,1799 4306,1799C4282,1831 4257,1863 4228,1890C4186,1929 4153,1957 4101,1984C4045,2012 3988,2028 3926,2030C3925,2030 3901,2030 3901,2030C3855,2030 3818,2025 3772,2014C3772,2014 3733,2005 3733,2005C3733,2005 3699,1996 3699,1996C3635,1980 3571,1961 3507,1943C3489,1938 3469,1932 3450,1933C3417,1934 3382,1958 3388,1995C3392,2023 3412,2038 3436,2049C3436,2049 3472,2065 3472,2065C3533,2092 3595,2124 3648,2160C3648,2160 3667,2174 3667,2174C3667,2174 3687,2189 3687,2189C3687,2189 3705,2203 3705,2203C3746,2238 3790,2286 3819,2330C3819,2330 3832,2350 3832,2350C3832,2350 3846,2372 3846,2372C3846,2372 3856,2390 3856,2390C3856,2390 3868,2414 3868,2414C3868,2414 3903,2484 3903,2484C3912,2503 3921,2521 3929,2540C3949,2585 3969,2631 3989,2676C3989,2677 4003,2710 4003,2710C4016,2741 4028,2772 4040,2803C4040,2803 4051,2831 4051,2831C4064,2864 4076,2897 4088,2930C4099,2961 4114,3004 4111,3037C4106,3081 4074,3087 4037,3087C4037,3087 3959,3086 3959,3086C3923,3086 3888,3087 3852,3087C3852,3087 3836,3086 3836,3086C3801,3084 3780,3064 3770,3031C3770,3031 3764,3010 3764,3010C3756,2977 3745,2944 3734,2911C3734,2911 3712,2844 3712,2844C3693,2788 3674,2732 3653,2677C3627,2612 3604,2557 3562,2502C3562,2502 3549,2486 3549,2486C3549,2486 3532,2465 3532,2465C3532,2465 3518,2450 3518,2450C3508,2439 3499,2431 3489,2421C3467,2401 3444,2380 3420,2361C3420,2361 3401,2347 3401,2347C3370,2323 3337,2301 3304,2280C3280,2265 3251,2247 3223,2239C3182,2227 3132,2236 3113,2279C3102,2306 3113,2344 3119,2370C3132,2422 3145,2474 3158,2526C3164,2556 3171,2585 3178,2615C3178,2615 3185,2642 3185,2642C3185,2642 3194,2689 3194,2689C3206,2746 3219,2802 3231,2859C3231,2859 3237,2892 3237,2892C3243,2925 3250,2958 3256,2991C3260,3013 3261,3031 3250,3052C3237,3077 3214,3081 3188,3082C3188,3082 3154,3082 3154,3082C3110,3081 3065,3081 3021,3082C2999,3082 2973,3083 2953,3074C2925,3061 2918,3041 2915,3013C2915,3013 2906,2936 2906,2936C2906,2935 2899,2876 2899,2876C2892,2818 2884,2760 2876,2702C2876,2701 2867,2638 2867,2638C2862,2605 2857,2572 2852,2539C2846,2502 2840,2465 2834,2428C2827,2389 2820,2357 2792,2327C2750,2280 2708,2282 2648,2282C2618,2282 2593,2284 2568,2302C2540,2323 2531,2347 2525,2380C2525,2380 2514,2443 2514,2443C2509,2474 2502,2506 2496,2537C2496,2537 2485,2602 2485,2602C2485,2602 2471,2674 2471,2674C2462,2725 2452,2775 2443,2826C2436,2865 2427,2905 2421,2945C2421,2945 2415,2978 2415,2978C2412,2999 2409,3022 2397,3040C2378,3068 2355,3068 2325,3068C2324,3068 2262,3068 2261,3068C2219,3067 2176,3068 2133,3068C2133,3068 2117,3067 2117,3067C2095,3065 2075,3052 2067,3031C2056,3000 2076,2946 2086,2917C2086,2917 2115,2830 2115,2830C2142,2752 2169,2674 2195,2594C2202,2573 2210,2552 2217,2530C2225,2509 2230,2489 2229,2467C2228,2442 2214,2422 2192,2409C2162,2393 2098,2398 2066,2408C2021,2423 1997,2450 1970,2488C1970,2488 1942,2527 1942,2527C1873,2623 1803,2718 1736,2814C1715,2845 1694,2875 1676,2908C1660,2936 1648,2965 1636,2996C1616,3045 1603,3062 1549,3062C1548,3062 1488,3062 1488,3062C1440,3061 1393,3063 1345,3062C1322,3061 1297,3056 1286,3033C1269,2996 1299,2907 1313,2872C1313,2872 1321,2853 1321,2853C1321,2853 1331,2832 1331,2832C1331,2832 1342,2810 1342,2810C1357,2779 1376,2749 1397,2722C1397,2722 1412,2703 1412,2703C1467,2637 1533,2591 1599,2536C1599,2536 1617,2521 1617,2521C1617,2521 1633,2506 1633,2506C1666,2474 1699,2438 1728,2403C1728,2403 1746,2380 1746,2380C1765,2355 1783,2329 1800,2304C1851,2228 1895,2144 1926,2059C1926,2058 1935,2034 1935,2034C1949,1992 1961,1949 1969,1906C1969,1906 1974,1877 1974,1876C1981,1835 1986,1792 1987,1750C1987,1750 1987,1725 1987,1725C1986,1614 1965,1501 1917,1400C1917,1400 1906,1378 1906,1378C1906,1378 1894,1355 1894,1355C1894,1355 1882,1333 1882,1333C1882,1333 1871,1314 1871,1314C1871,1314 1858,1294 1858,1294C1819,1236 1772,1183 1719,1137C1719,1137 1700,1122 1700,1122C1700,1122 1680,1107 1680,1107C1680,1107 1662,1094 1662,1094C1662,1094 1644,1082 1644,1082C1644,1082 1615,1064 1615,1064C1581,1043 1544,1026 1507,1010C1449,986 1386,971 1324,961C1324,961 1305,959 1305,959C1305,959 1281,957 1281,957C1281,957 1257,955 1256,955C1215,953 1173,953 1132,956C1132,956 1110,959 1110,959C1012,971 910,1003 825,1055C825,1055 804,1068 804,1068C785,1080 767,1092 750,1106C750,1106 729,1123 729,1123C679,1165 635,1215 600,1271C600,1271 588,1291 588,1291C588,1291 576,1312 576,1312C576,1312 566,1331 566,1331C566,1331 557,1351 557,1351C557,1351 548,1371 548,1371C539,1391 532,1411 526,1432C526,1432 520,1454 520,1454C515,1474 510,1494 507,1514C507,1514 504,1537 504,1537C494,1635 505,1732 544,1821C544,1821 554,1843 554,1843C585,1909 626,1962 684,2008C789,2091 921,2120 1054,2101C1119,2091 1184,2067 1238,2028C1287,1992 1321,1951 1347,1896C1394,1799 1390,1666 1317,1581C1284,1543 1243,1516 1194,1504C1139,1491 1071,1499 1041,1554C1015,1604 1036,1662 1093,1675C1103,1677 1113,1678 1123,1680C1161,1689 1187,1714 1190,1753C1193,1790 1184,1821 1160,1848C1117,1897 1054,1911 992,1910C920,1909 849,1882 799,1829C759,1787 735,1741 722,1686C711,1638 711,1577 722,1529C744,1424 807,1329 893,1265C893,1265 914,1251 914,1250C929,1240 945,1230 962,1222C962,1222 982,1212 982,1212C1013,1197 1044,1186 1077,1178C1077,1178 1097,1173 1097,1173C1128,1166 1161,1163 1193,1162C1193,1162 1218,1162 1218,1162C1323,1164 1426,1195 1514,1252C1514,1252 1534,1265 1534,1265C1607,1316 1671,1389 1712,1468C1713,1468 1722,1487 1722,1487C1732,1507 1740,1527 1747,1547C1747,1547 1756,1572 1756,1572C1762,1592 1767,1612 1771,1632C1771,1632 1776,1656 1776,1656C1776,1656 1779,1676 1779,1676C1784,1715 1788,1754 1786,1793C1785,1828 1781,1863 1776,1897C1776,1897 1771,1920 1771,1920C1771,1920 1766,1945 1766,1945C1766,1945 1760,1971 1760,1972C1760,1972 1753,1997 1753,1997C1753,1998 1746,2019 1746,2019C1746,2019 1740,2038 1740,2038C1740,2039 1732,2059 1732,2059C1719,2091 1706,2124 1689,2154C1689,2154 1678,2174 1678,2174L1665,2196C1665,2196 1651,2217 1651,2217C1624,2258 1603,2284 1572,2318C1563,2329 1553,2340 1543,2350C1515,2377 1484,2401 1453,2423C1453,2423 1430,2438 1430,2438C1413,2450 1395,2460 1376,2470C1376,2470 1350,2482 1350,2482C1350,2482 1330,2491 1330,2491C1330,2491 1311,2499 1311,2499C1311,2499 1288,2508 1288,2508C1288,2508 1264,2516 1264,2516C1264,2516 1243,2523 1243,2523C1243,2523 1223,2528 1223,2528C1222,2528 1200,2533 1200,2533C1200,2534 1175,2539 1175,2539C1175,2539 1151,2543 1150,2543C1150,2543 1130,2546 1130,2546C1108,2549 1087,2550 1065,2550C1065,2550 1036,2551 1036,2551C1036,2551 1007,2550 1007,2550C1007,2550 985,2549 984,2549C930,2546 876,2537 824,2522C824,2522 803,2516 803,2516C803,2516 780,2508 780,2508C780,2508 758,2500 758,2500C727,2488 698,2475 669,2460C669,2460 648,2448 648,2448C648,2448 626,2436 626,2436C626,2436 607,2424 607,2424C607,2424 585,2409 585,2409C585,2409 563,2393 563,2393C563,2393 542,2378 542,2378C542,2378 526,2365 525,2365C525,2365 509,2351 509,2351C509,2351 487,2331 487,2331C487,2331 471,2316 471,2316C441,2286 411,2254 386,2220C364,2190 342,2160 324,2128C306,2098 290,2067 275,2035C275,2035 266,2013 266,2013C266,2013 257,1990 257,1990C257,1990 246,1960 246,1960C246,1960 238,1936 238,1936C238,1936 231,1913 231,1913C231,1913 223,1886 223,1885C223,1885 217,1863 217,1863C217,1863 213,1842 213,1842C205,1805 198,1767 195,1730C191,1683 189,1636 191,1590C192,1564 194,1538 197,1512C205,1446 222,1371 244,1308C244,1308 251,1287 251,1287C251,1287 261,1262 261,1262C261,1262 277,1225 277,1225C305,1160 341,1097 382,1040C382,1040 398,1019 398,1019C513,866 658,754 829,670C829,670 852,659 852,659C897,638 944,620 990,605C991,605 1022,595 1022,595C1124,563 1231,545 1338,539C1377,537 1415,535 1454,537C1476,538 1497,538 1518,539C1589,543 1681,557 1752,575C1752,575 1786,584 1786,584C1834,597 1881,613 1928,631C1928,631 1958,643 1958,643C1958,643 1983,654 1983,654C1983,654 2010,667 2010,667C2010,667 2037,679 2037,679C2037,679 2069,696 2069,696C2069,696 2095,709 2095,709C2095,709 2120,724 2120,724C2120,724 2145,738 2145,738C2145,738 2170,754 2170,754C2274,820 2367,894 2454,982C2454,982 2477,1006 2477,1006C2477,1006 2496,1026 2496,1026C2517,1048 2537,1070 2556,1093C2556,1093 2590,1133 2590,1133C2590,1133 2609,1157 2609,1157C2609,1157 2629,1182 2629,1182C2652,1212 2676,1243 2699,1274C2699,1274 2731,1320 2731,1320C2746,1341 2760,1362 2774,1382C2807,1431 2842,1471 2900,1490C2927,1498 2950,1503 2976,1486C2997,1473 3004,1456 3006,1432C3011,1382 3016,1332 3022,1282C3022,1282 3029,1221 3029,1221C3032,1193 3036,1166 3040,1138C3046,1087 3051,1035 3058,983C3064,942 3075,907 3099,872C3130,829 3182,800 3234,794C3280,789 3327,796 3367,821C3413,851 3442,890 3456,943C3467,985 3462,1036 3444,1076C3426,1116 3391,1153 3352,1172C3352,1172 3329,1182 3329,1182C3283,1203 3275,1236 3270,1285C3270,1285 3266,1321 3266,1321C3260,1370 3252,1418 3247,1467C3245,1482 3243,1501 3247,1516C3254,1542 3274,1555 3299,1562C3318,1567 3338,1572 3357,1577C3416,1593 3474,1610 3532,1630C3560,1640 3590,1651 3618,1664ZM3258,913C3216,914 3182,949 3182,992C3183,1035 3218,1069 3260,1069C3289,1069 3314,1054 3328,1029C3342,1005 3342,975 3327,951C3313,927 3287,912 3258,913Z'/%3E%3C/svg%3E"); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
/* Theme toggle: icon only. It shows where a click leads: the sun in the dark theme, the moon in the light one */
.toggle, .burger { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.toggle:hover, .burger:hover { border-color: var(--accent); }
.toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, rotate .4s, scale .4s; }
.toggle .sun { color: var(--signal); opacity: 0; rotate: -90deg; scale: 0.5; }
.toggle .moon { color: var(--accent); }
.toggle[data-mode="dark"] .sun { opacity: 1; rotate: 0deg; scale: 1; }
.toggle[data-mode="dark"] .moon { opacity: 0; rotate: 90deg; scale: 0.5; }
@media (prefers-reduced-motion: reduce) { .toggle svg { transition: none; } }
/* Language switch: short codes at the end of the navigation, a line of its own in the menu on narrow screens */
.lang { display: flex; align-items: center; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.nav .lang a { padding: 4px 6px; border-radius: 6px; font: 500 0.8rem var(--mono); letter-spacing: 0.06em; color: var(--muted); }
.nav .lang a:hover { color: var(--accent); }
.nav .lang a[aria-current] { color: var(--fg); background: var(--surface); }
/* Narrow screens: the navigation and the theme switch move into a menu that the burger opens below the header */
.burger, .nav-theme { display: none; }
.burger svg { width: 20px; height: 20px; fill: none; stroke: var(--fg); stroke-width: 2; stroke-linecap: round; }
.burger path { transform-origin: 12px 12px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] path:nth-child(1) { transform: rotate(45deg) translateY(5px); }
.burger[aria-expanded="true"] path:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] path:nth-child(3) { transform: rotate(-45deg) translateY(-5px); }
@media (max-width: 860px) {
  .top .toggle { display: none; }
  .burger { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 4px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgb(0 0 0 / 0.25); }
  .top.open .nav { display: flex; animation: menu-in .2s ease-out; }
  .nav a { padding: 14px 4px; font-size: 1.1rem; }
  .lang { gap: 8px; margin-top: 6px; padding: 14px 0 6px; border-left: 0; border-top: 1px solid var(--line); }
  .nav .lang a { padding: 8px 14px; font-size: 0.95rem; }
  .nav-theme { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 16px 4px 10px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--fg); font: 500 1.05rem var(--body); text-align: left; cursor: pointer; }
  .nav-theme svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .nav-theme .sun { display: none; color: var(--signal); }
  .nav-theme .moon { color: var(--accent); }
  .nav-theme[data-mode="dark"] .sun { display: block; }
  .nav-theme[data-mode="dark"] .moon { display: none; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .burger path { transition: none; } .top.open .nav { animation: none; } }
@media (max-width: 520px) { .brand span { font-size: 0.92rem; } }
@media (max-width: 420px) { .brand-more { display: none; } }

/* Dive computer in the corner: depth and pressure, a ring that fills with the depth (--depth),
   dive time in the label. A click surfaces. */
.divecomp { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + var(--lift, 0px)); z-index: 8; display: grid; place-content: center; justify-items: center; gap: 1px; width: 76px; height: 76px; padding: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--fg); font-family: var(--mono); font-variant-numeric: tabular-nums; box-shadow: 0 8px 22px rgb(0 0 0 / 0.28); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.divecomp.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.divecomp:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.divecomp svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; fill: none; stroke-width: 3; }
.dc-track { stroke: var(--line); }
.dc-ring { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--depth)); }
.dc-depth { font-size: 0.72rem; color: var(--muted); }
.dc-depth b { font-size: 1.05rem; font-weight: 500; color: var(--fg); }
.dc-bar { font-size: 0.66rem; color: var(--muted); }
.dc-tip { position: absolute; right: calc(100% + 10px); top: 50%; translate: 0 -50%; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font: 500 0.8rem var(--body); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dc-tip b { font-family: var(--mono); font-weight: 500; }
.divecomp:hover .dc-tip, .divecomp:focus-visible .dc-tip { opacity: 1; }
@media (max-width: 600px) {
  .divecomp { width: 60px; height: 60px; }
  .dc-depth { font-size: 0.6rem; }
  .dc-depth b { font-size: 0.86rem; }
  .dc-bar { font-size: 0.56rem; }
}
@media (prefers-reduced-motion: reduce) { .divecomp, .divecomp.on, .dc-tip { transition: none; } }

/* Hero */
/* The hero reaches up behind the clear header (64px high); .hero-in makes up for it */
.hero { position: relative; overflow: hidden; margin-top: -64px; background: linear-gradient(180deg, var(--bg2), var(--bg)); }
#sea { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; display: grid; gap: 26px; padding-block: calc(clamp(28px, 5vw, 64px) + 64px) clamp(64px, 11vw, 136px); max-width: 1120px; }
.hero h1 { font-size: clamp(2.6rem, 8.2vw, 5.6rem); font-weight: 800; letter-spacing: -0.035em; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
/* The Russian headline has longer words: smaller, so it stays on three lines */
:lang(ru) .hero h1 { font-size: clamp(2.1rem, 6.2vw, 4.2rem); letter-spacing: -0.03em; max-width: 18ch; }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.35rem); max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Octopus with a monitor for a head. The screen is a layer on top of the picture,
   placed in percent of it and skewed to match the perspective of the monitor. */
.octo { position: relative; width: min(72%, 300px); justify-self: center; animation: octo-bob 6s ease-in-out infinite; }
.octo-pic { position: relative; }
.octo img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.28)); }
.octo-screen { position: absolute; left: 27.6%; top: 16.2%; width: 29.2%; height: 23.6%; transform-origin: 0 0; transform: skewY(5deg); container-type: size; overflow: hidden; border: 0; padding: 0; border-radius: 12% / 14%; cursor: pointer; color: #9FE8FF; background: radial-gradient(ellipse at 50% 45%, rgb(159 232 255 / 0.12), transparent 70%); --ex: 0; --ey: 0; }
.octo-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 2px, rgb(0 0 0 / 0.22) 2px 3px); pointer-events: none; }
.octo-screen:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
.octo-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12cqw; transform: translate(calc(var(--ex) * 4cqw), calc(var(--ey) * 4cqh)); transition: opacity .25s, transform .12s ease-out; }
.octo .eye { display: grid; place-items: center; width: 24cqw; height: 46cqh; border-radius: 50%; background: currentColor; box-shadow: 0 0 6cqw rgb(159 232 255 / 0.6); animation: octo-blink 5.5s infinite; transition: scale .25s; }
.octo .eye b { width: 46%; height: 46%; border-radius: 50%; background: #10202C; transform: translate(calc(var(--ex) * 55%), calc(var(--ey) * 55%)); transition: transform .12s ease-out; }
.octo.wide .eye { scale: 1.18; }
.octo.squint .eye { scale: 1 0.3; }
.octo-code { position: absolute; inset: 0; padding: 8cqh 7cqw; font: 500 5.2cqw/1.5 var(--mono); white-space: pre; text-align: left; opacity: 0; transition: opacity .25s; }
.octo-code span { display: block; animation: octo-scroll 7s linear infinite paused; }
.octo.code .octo-face { opacity: 0; }
.octo.code .octo-code { opacity: 1; }
.octo.code .octo-code span { animation-play-state: running; }
/* Why an octopus: a caption below the picture; from 980px a speech bubble on hover, focus or click */
.octo-say, .crab-say { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }
.octo-say { text-align: center; }
.octo-say strong, .crab-say strong { display: block; color: var(--fg); }
@media (min-width: 980px) {
  .octo-say { position: absolute; left: 42%; bottom: calc(92% + 16px); width: min(280px, 90%); margin: 0; translate: -50% 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: 0 10px 24px rgb(0 0 0 / 0.22); opacity: 0; scale: 0.92; transform-origin: 50% 100%; transition: opacity .25s, scale .25s; pointer-events: none; }
  .octo-say::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
  .octo:hover .octo-say, .octo:focus-within .octo-say, .octo.say .octo-say { opacity: 1; scale: 1; }
}
@keyframes octo-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes octo-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
@keyframes octo-scroll { to { transform: translateY(-50%); } }
@media (min-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) clamp(300px, 36vw, 440px); column-gap: 32px; }
  .hero-in > * { grid-column: 1; }
  .octo { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .octo, .octo .eye, .octo-code span { animation: none; }
  .octo-face, .octo .eye, .octo .eye b, .octo-code, .octo-say { transition: none; }
}
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem var(--body); text-decoration: none; border-radius: 999px; padding: 14px 24px; border: 2px solid var(--accent); cursor: pointer; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }

/* Dive line (wide screens): a rope in the left margin that connects the sections.
   It is drawn by script; the knots are the depth stops and link to their section. */
main { position: relative; }
#line { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
#line[hidden] { display: none; } /* the hidden attribute alone does not hide an SVG element */
#line a { pointer-events: auto; cursor: pointer; }
#line .lt { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
#line .lg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; opacity: calc(var(--depth) * var(--glow) * 0.35); }
#line .ld { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; }
#line .lb { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s ease-out .15s; }
#line .on .lb { stroke-dashoffset: 0; }
#line .ln { fill: var(--bg); stroke: var(--muted); stroke-width: 2; transition: fill .3s, stroke .3s; }
#line .on .ln { fill: var(--signal); stroke: var(--signal); }
#line .lr { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
#line .on .lr { animation: sonar 1.1s ease-out 1; }
#line .quiet .lr { animation: none; }
#line .quiet .lb { transition: none; }
#line .lp { fill: var(--signal); }
#line .lh { fill: var(--signal); opacity: 0.25; }
#line .lbub { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; }
#line .lbub.go { animation: rise 2.4s ease-out 1; }
@keyframes sonar { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes rise { from { transform: translateY(0); opacity: 0.8; } to { transform: translateY(-70px); opacity: 0; } }
.zone.lit { text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
@media (prefers-reduced-motion: reduce) { #line .lb, #line .ln { transition: none; } #line .on .lr { animation: none; } }


/* Problem picker */
.picker { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: 500 0.98rem var(--body); text-align: left; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.answer { flex: 0 0 100%; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; min-width: 0; margin-block: 6px; }
.answer[hidden] { display: none; } /* display: grid above would otherwise win over the hidden attribute */
.answer p { max-width: 62ch; }
.answer h3 { font-size: 1.5rem; }
.chip { position: relative; }
/* Sonar ring on the clicked chip */
.chip.ping::after { content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--signal); pointer-events: none; animation: chip-sonar .7s ease-out both; }
@keyframes chip-sonar { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.25, 1.9); opacity: 0; } }
/* Until the first click, the first chip invites a tap (picker only, not the form topics) */
.chips:not(.used):not(.compact) .chip:first-child { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .chip.ping::after, .chips:not(.used):not(.compact) .chip:first-child { animation: none; } }
/* Phone: one full-width row per concern with a plus sign; the answer hangs directly under its row */
@media (max-width: 600px) {
  .chip { flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
  .chip::before { content: "+"; order: 2; flex: none; font-family: var(--mono); font-size: 1.25rem; line-height: 1; color: var(--accent); transition: transform .3s; }
  .chip[aria-pressed="true"] { border-radius: 14px 14px 0 0; }
  .chip[aria-pressed="true"]::before { color: var(--accent-ink); transform: rotate(45deg); }
  .answer { margin: -10px 0 0; border-top: 0; border-radius: 0 0 14px 14px; padding: 16px; gap: 10px; }
  .answer h3 { font-size: 1.2rem; }
  .answer p { font-size: 0.97rem; }
}
@media (max-width: 600px) and (prefers-reduced-motion: reduce) { .chip::before { transition: none; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.services details { border-bottom: 1px solid var(--line); padding: 20px 20px 20px 0; min-width: 0; }
.services summary { cursor: pointer; list-style: none; display: grid; gap: 6px; }
.services summary::-webkit-details-marker { display: none; }
.services summary h3::after { content: " +"; color: var(--accent); font-family: var(--mono); font-weight: 400; }
.services details[open] summary h3::after { content: " −"; }
.services summary span { color: var(--muted); font-size: 0.97rem; }
.services details p { margin-top: 12px; font-size: 0.99rem; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .services { grid-template-columns: minmax(0, 1fr); } .services details { padding-right: 0; } }

/* Example cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; perspective: 1200px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; transition: transform .2s ease-out; transform-style: preserve-3d; will-change: transform; }
.card svg { display: block; width: 100%; height: auto; background: var(--bg2); }
.card div { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card .a { fill: var(--accent); } .card .s { fill: var(--signal); } .card .m { fill: var(--line); } .card .t { fill: var(--muted); } .card .i { fill: var(--accent-ink); }
.card .f { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.card .l { fill: none; stroke: var(--fg); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card .o { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.card .k { fill: none; stroke: var(--signal-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* Scene animations: every keyframe only defines the start, so the drawing is complete at rest.
   The .play class is set for a moment when a card scrolls into view or is hovered. */
.card svg * { transform-box: fill-box; transform-origin: center; }
.card svg .an-grow { transform-origin: left center; }
.card.play .an-l { animation: sc-left .5s ease-out both; }
.card.play .an-u { animation: sc-up .5s ease-out both; }
.card.play .an-d { animation: sc-down .55s cubic-bezier(.3, 1.5, .5, 1) both; }
.card.play .an-pop { animation: sc-pop .5s ease-out both; }
.card.play .an-grow { animation: sc-grow .5s ease-out both; }
.card.play .an-draw { stroke-dasharray: 1; animation: sc-draw .9s ease-in-out both; }
.card.play .an-blink { animation: sc-blink .5s 3 both; }
.card.play .an-ping { animation: sc-ping 1s ease-out 2 both; }
.card.play .an-fly { animation: sc-fly .9s ease-in-out both; }
.card.play .an-flow { animation: sc-flow .8s ease-in-out 2 both; }
.card.play .an-wig { animation: sc-wig .8s ease-in-out both; }
@keyframes sc-left { from { opacity: 0; transform: translateX(-12px); } }
@keyframes sc-up { from { opacity: 0; transform: translateY(12px); } }
@keyframes sc-down { from { opacity: 0; transform: translateY(-18px); } }
@keyframes sc-pop { 0% { transform: scale(0); } 70% { transform: scale(1.18); } }
@keyframes sc-grow { from { transform: scaleX(0); } }
@keyframes sc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sc-blink { 50% { opacity: 0.15; } }
@keyframes sc-ping { from { transform: scale(0.2); opacity: 1; } }
@keyframes sc-fly { 0% { transform: translate(-99px, -29px) scale(1.7); } 55% { transform: translate(-36px, -52px) scale(1.2); } }
@keyframes sc-flow { 0% { transform: translateX(-62px); opacity: 0; } 35% { opacity: 1; } }
@keyframes sc-wig { 30% { transform: rotate(-16deg); } 65% { transform: rotate(11deg); } }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* Crew */
.crew { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.crew .text { display: grid; gap: 16px; max-width: 38rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px; }
.stats b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .crew { grid-template-columns: minmax(0, 1fr); } }

/* Steps: a real sequence, so the numbers carry meaning */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; gap: 10px; align-content: start; }
/* The step number sits in a circle in front of the heading, coloured like the stops of the dive line */
.steps h3 { display: flex; align-items: center; gap: 12px; }
.steps h3::before { content: counter(s); flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--signal); color: var(--signal-ink); font: 500 0.95rem var(--mono); }
.steps p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Tech */
.tech { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px 22px; }
.tech summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.tech dl { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 10px 20px; margin: 4px 0 18px; font-size: 0.95rem; }
.tech dt { color: var(--muted); }
.tech dd { margin: 0; font-family: var(--mono); font-size: 0.86rem; }
@media (max-width: 600px) { .tech dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .tech dd { margin-bottom: 10px; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
.contact .side { display: grid; gap: 16px; }
.contact dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.contact dt { color: var(--muted); } .contact dd { margin: 0; }
form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); min-width: 0; }
label { display: grid; gap: 6px; font-weight: 500; font-size: 0.95rem; }
input, select, textarea { font: 400 1rem var(--body); color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { min-height: 120px; resize: vertical; }
/* Hermit crab with a radio for a shell. The display is a layer on top of the picture, like the
   octopus' screen: a ticker at rest, level bars while the form is filled in (.rx),
   a station search on click (.tune), a short note after sending (.sent). */
.crab { position: relative; width: min(100%, 360px); margin-top: 12px; transform-origin: 50% 90%; animation: crab-rock 5s ease-in-out infinite; }
.crab img { display: block; width: 100%; height: auto; filter: drop-shadow(0 16px 20px rgb(0 0 0 / 0.28)); }
.crab-display { position: absolute; left: 47.2%; top: 27.7%; width: 24.6%; height: 9%; transform-origin: 0 0; transform: skewY(6deg); container-type: size; overflow: hidden; border: 0; padding: 0; border-radius: 8% / 18%; cursor: pointer; color: #FFC94D; background: radial-gradient(ellipse at 50% 50%, rgb(255 201 77 / 0.14), transparent 75%); }
.crab-display:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
/* Container units only work on the children, so the type is set here and not on the display */
.crab-display > span { position: absolute; inset: 0; display: flex; align-items: center; font: 500 44cqh/1 var(--mono); text-shadow: 0 0 10cqh rgb(255 201 77 / 0.7); opacity: 0; transition: opacity .2s; }
.crab-display .rd-ticker { opacity: 1; white-space: nowrap; }
.rd-ticker span { flex: none; animation: crab-ticker 10s linear infinite; }
.crab-display .rd-bars { align-items: flex-end; gap: 3cqw; padding: 14cqh 5cqw; }
.rd-bars i { flex: 1; height: 100%; background: currentColor; transform-origin: 50% 100%; animation: crab-eq .5s ease-in-out infinite alternate paused; }
.rd-bars i:nth-child(3n) { animation-duration: .36s; }
.rd-bars i:nth-child(3n+1) { animation-duration: .64s; }
.rd-bars i:nth-child(2n) { animation-delay: -.22s; }
.rd-tune { background: repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 8cqw) 0 100% / 100% 45% no-repeat; }
.rd-tune i { position: absolute; top: 10%; bottom: 10%; left: 62%; width: 2.5cqw; border-radius: 1cqw; background: #FF6B4A; }
.crab-display .rd-sent { justify-content: center; font-size: 33cqh; letter-spacing: 0.06em; }
.crab.rx .rd-ticker, .crab.tune .rd-ticker, .crab.sent .rd-ticker { opacity: 0; }
.crab.rx:not(.tune):not(.sent) .rd-bars { opacity: 1; }
.crab.rx .rd-bars i { animation-play-state: running; }
.crab.tune:not(.sent) .rd-tune { opacity: 1; }
.crab.tune .rd-tune i { animation: crab-needle 3s ease-in-out; }
.crab.sent .rd-sent { opacity: 1; animation: crab-sent 1s steps(2, jump-none) 3; }
@keyframes crab-rock { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
@keyframes crab-ticker { to { transform: translateX(-50%); } }
@keyframes crab-eq { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
@keyframes crab-needle { 0% { left: 4%; } 35% { left: 90%; } 65% { left: 30%; } 100% { left: 62%; } }
@keyframes crab-sent { from { opacity: 1; } to { opacity: 0.25; } }
.crab-say { max-width: 360px; margin-top: -8px; }
@media (max-width: 820px) { .crab { width: min(70%, 280px); justify-self: center; } .crab-say { justify-self: center; text-align: center; } }
@media (prefers-reduced-motion: reduce) {
  .crab, .rd-ticker span, .rd-bars i, .crab.tune .rd-tune i, .crab.sent .rd-sent { animation: none; }
  .crab-display > span { transition: none; }
}

/* Topics of the contact form: checkboxes that look like the chips above, a size smaller */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; font-weight: 500; font-size: 0.95rem; }
.chips.compact { gap: 8px; }
.chip.pick { display: inline-flex; align-items: center; gap: 0; font-weight: 500; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; background: var(--bg); }
.chip.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; margin: 0; }
.chip.pick:has(input:checked) { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.pick:has(input:focus-visible) { outline: 3px solid var(--signal); outline-offset: 3px; }
.hint { color: var(--muted); font-size: 0.85rem; margin-top: -4px; }
.keep { display: inline-block; } /* a short sentence that wraps as a whole, never word by word */
.status { font-size: 0.95rem; color: var(--fg); background: var(--bg2); border-radius: 10px; padding: 12px 14px; }
@media (max-width: 820px) { .contact { grid-template-columns: minmax(0, 1fr); } }

footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Theme switch spreads like a ripple from the button */
:root.theme-vt::view-transition-old(root) { animation: none; }
:root.theme-vt::view-transition-new(root) { animation: ripple .7s ease-out; }
/* Picker: the chosen chip morphs into the answer card and back */
::view-transition-group(morph) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, .8, .3, 1); }
::view-transition-old(morph), ::view-transition-new(morph) { height: 100%; }
@keyframes ripple { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
  ::view-transition-new(root) { animation: none; }
}

/* Page not found (404.html): a few words beside the crab, whose radio has no signal */
.notfound { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: center; min-height: 62vh; }
.notfound h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 18px; }
.notfound p { max-width: 34rem; }
.notfound .cta-row { margin-top: 28px; }
.crab.nosignal .crab-display { cursor: default; }
.crab.nosignal .rd-sent { opacity: 1; animation: crab-sent 1.2s steps(2, jump-none) infinite; }
@media (max-width: 820px) { .notfound { grid-template-columns: minmax(0, 1fr); } .notfound .crab { order: -1; } }
@media (prefers-reduced-motion: reduce) { .crab.nosignal .rd-sent { animation: none; } }

/* Legal pages (impressum.html, datenschutz.html): plain reading text */
/* Legal pages: the band is the whole page, so it starts closer to the header */
main.band { padding-top: clamp(24px, 4vw, 40px); }
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; margin: 36px 0 10px; }
.legal p, .legal ul, .legal address { margin: 0 0 14px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 6px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.legal .back:hover { border-color: var(--accent); color: var(--accent); }
.legal .stand { color: var(--muted); font-size: 0.9rem; margin-top: 36px; }
/* Translated legal pages: a line under the title that points to the German original */
.legal .note { margin: -12px 0 28px; padding: 10px 14px; border-left: 3px solid var(--signal); background: var(--surface); border-radius: 0 8px 8px 0; font-size: 0.92rem; color: var(--muted); }
/* Something still to be filled in before the page may go live */
.todo { background: var(--signal); color: var(--signal-ink); padding: 1px 6px; border-radius: 6px; font-weight: 600; }
footer nav { display: flex; gap: 18px; }
footer a { color: inherit; }
/* The release this page belongs to; tools/build.py fills it in */
footer .ver { margin-left: 4px; font-family: var(--mono); font-size: 0.78rem; opacity: 0.75; white-space: nowrap; }
footer .ver:not(:empty)::before { content: "·"; margin-right: 8px; }
