/* Elseway Studios · direction A "Graphite Gallery"
   Dark, full-bleed art, square edges. Headings: Archivo Expanded (the logo's face) in capitals.
   Buttons: paper white with the logo's turned arrow. The studio stays monochrome; the games bring the color. */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/plex-mono-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
/* Russian: Archivo has no Cyrillic, so these fill in only those letters (and only load on Russian pages) */
@font-face { font-family: "Elseway Cyr Display"; src: url("../fonts/unbounded-cyr.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Elseway Cyr"; src: url("../fonts/onest-cyr.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --bg: #161616;
  --bg-2: #1c1c1b;
  --panel: #1f1f1e;
  --ink: #f2f2ef;
  --muted: #a3a39e;
  --line: #2e2e2c;
  --soon: #c9b6da;         /* the only hint of Project 02's world: a lilac label */
  --soon-bg: #120f16;
  --display: "Archivo", "Elseway Cyr Display", "Arial Black", system-ui, sans-serif;
  --body: "Archivo", "Elseway Cyr", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1360px;
  --head-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1.02; margin: 0; text-wrap: balance;
  -webkit-hyphens: auto; hyphens: auto; overflow-wrap: anywhere; }   /* long German/French/Russian words: hyphenate by the page's language, hard break only as a last resort */
h1 { font-size: clamp(40px, 6.4vw, 92px); }
h2 { font-size: clamp(30px, 3.8vw, 54px); }
h3 { font-size: clamp(24px, 2.4vw, 36px); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
.lab { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lab-soon { color: var(--soon); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; max-width: 38ch; color: #d6d6d1; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 700 15px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: background-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: #fff; }
.btn .arw { width: 13px; height: 13px; flex: none; transition: transform .15s; }
.btn:hover .arw { transform: translate(2px, -2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: rgba(242, 242, 239, 0.1); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn .si { width: 18px; height: 18px; }
.lang-ru h1, .lang-ru h2, .lang-ru h3 { letter-spacing: 0; }   /* Unbounded is already wide */
/* the Steam button: the same plate, the Steam mark first; inactive until site.json has steam_url */
.btn-steam .si { width: 18px; height: 18px; }
.btn.is-soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); cursor: default; }
.btn.is-soon:hover { background: transparent; }
.chip { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.live { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); background: rgba(22, 22, 22, 0.86); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: background-color .25s, border-color .25s; }
.has-hero .site-head { position: fixed; left: 0; right: 0; background: linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0)); border-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-hero .site-head.is-solid { background: rgba(22, 22, 22, 0.92); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.head-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: block; flex: none; }
.brand-logo { height: 30px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 8px 0; }
.site-nav ul a:hover, .site-nav ul a.is-on { box-shadow: inset 0 -2px 0 var(--ink); }
/* language picker */
.lang { position: relative; flex: none; }
.lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; background: none; color: var(--ink); border: 1px solid var(--line);
  font: 600 13px/1 var(--mono); letter-spacing: .08em; cursor: pointer; }
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--ink); }
.lang-btn .si { width: 17px; height: 17px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  background: var(--panel); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang-list[hidden] { display: none; }
.lang-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; font-size: 15px; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--bg-2); outline: none; }
.lang-list a[aria-current="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 2px 0 0 var(--ink); }
.lang-code { font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); width: 22px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
@media (max-width: 760px) {
  :root { --head-h: 64px; }
  .brand-logo { height: 26px; }
  .menu-btn { display: block; margin-left: 4px; }
  .lang { margin-left: auto; }
  .site-nav { position: fixed; inset: var(--head-h) 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav ul a.is-on, .site-nav ul a:hover { box-shadow: none; color: var(--ink); }
  .site-nav .btn { margin-top: 20px; }
}

/* hero */
.hero { position: relative; min-height: clamp(560px, 88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media, .peek-media { position: absolute; inset: 0; z-index: -2; background: #0e0e0e; }
.hero-media picture, .peek-media picture { position: absolute; inset: 0; }
.hero-img, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transition: opacity .8s; }
.hero-video.is-playing { opacity: 1; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(22, 22, 22, .92) 0%, rgba(22, 22, 22, .6) 38%, rgba(22, 22, 22, 0) 70%),
              linear-gradient(0deg, rgba(22, 22, 22, .9) 0%, rgba(22, 22, 22, 0) 35%); }
.hero-shade-up { background: linear-gradient(0deg, rgba(10, 12, 20, .94) 0%, rgba(10, 12, 20, .55) 34%, rgba(10, 12, 20, 0) 62%),
                             linear-gradient(90deg, rgba(10, 12, 20, .6) 0%, rgba(10, 12, 20, 0) 50%); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: calc(var(--head-h) + 40px) clamp(56px, 9vh, 104px); }
.hero-copy h1 { font-size: clamp(34px, 6.6vw, 100px); }
.hero-logo { width: min(470px, 80vw); height: auto; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .55)); }
.rise > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.rise > *:nth-child(2) { animation-delay: .08s; } .rise > *:nth-child(3) { animation-delay: .16s; } .rise > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(18px); opacity: .001; } }
@media (max-width: 760px) {
  .hero { min-height: 640px; }
  .hero-shade { background: linear-gradient(0deg, rgba(22, 22, 22, .96) 0%, rgba(22, 22, 22, .7) 45%, rgba(22, 22, 22, .1) 80%); }
  .hero-home .hero-img, .hero-home .hero-video { object-position: 70% 50%; }
}

/* sections */
.sec { padding-block: clamp(72px, 10vw, 128px); }
.sec-tight { padding-top: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 48px); }
.sec-head > div { display: grid; gap: 12px; min-width: 0; }
.page-head { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 5vw, 64px); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.page-head h1 { font-size: clamp(32px, 9vw, 96px); }

/* game cards (home) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.card { display: flex; flex-direction: column; gap: 18px; }
.card > p { flex: 1; }
.card-media { aspect-ratio: 5 / 2; overflow: hidden; background: var(--panel); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.035); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.card-act { margin-top: 4px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.card p { color: var(--muted); max-width: 52ch; }
.card-soon .chip { color: var(--soon); border-color: #4a3f55; }
@media (max-width: 800px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* else + way band */
.band { border-block: 1px solid var(--line); background: var(--bg-2); }
.band-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.band .eq { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 4vw, 52px); text-transform: uppercase; white-space: nowrap; line-height: 1; }
.band .eq em { font-style: normal; color: var(--muted); }
.band-in > p:not(.eq) { font-size: clamp(18px, 1.5vw, 20px); max-width: 46ch; }
/* call-to-action rows: heading | text, buttons under the text, so long headings keep half the width */
.band-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 20px; }
.band-cta > .row, .split-cta > .row { grid-column: 2; }
.band-cta h2, .split-cta h2 { font-size: clamp(26px, 3vw, 44px); grid-row: span 2; }
.band-cta > p { color: var(--muted); }
@media (max-width: 900px) { .band-in, .band-cta { grid-template-columns: minmax(0, 1fr); } .band-cta > .row, .split-cta > .row { grid-column: 1; } .band-cta h2, .split-cta h2 { grid-row: auto; } }

/* games page banners */
.banner { position: relative; min-height: clamp(460px, 42vw, 600px); display: flex; align-items: center; overflow: hidden; isolation: isolate; margin-bottom: 14px; }
.banner > picture { position: absolute; inset: 0; z-index: -2; }
.banner-img { width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(22, 22, 22, .9) 0%, rgba(22, 22, 22, .55) 40%, rgba(22, 22, 22, 0) 68%); }
.banner-copy { display: grid; gap: 20px; padding-block: 56px; }
.banner-copy > *:not(h2):not(.row) { max-width: 520px; }
.banner-copy > p:not(.lab) { color: #e0e0db; font-size: 18px; }
.banner-logo { width: min(380px, 70vw); height: auto; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, .5)); }
.banner-soon { background: var(--soon-bg); }
.banner-soon h2 { font-size: clamp(38px, 5.4vw, 72px); }
@media (max-width: 760px) {
  .banner { align-items: flex-end; min-height: 560px; }
  .banner-shade { background: linear-gradient(0deg, rgba(22, 22, 22, .95) 0%, rgba(22, 22, 22, .65) 50%, rgba(22, 22, 22, .05) 85%); }
  .banner-img { object-position: 72% 50%; }
}

/* facts strip */
.facts { border-bottom: 1px solid var(--line); background: var(--bg); }
.facts-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts-in > div { padding: 28px 28px 30px; border-left: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.facts-in > div:first-child { border-left: 0; padding-left: 0; }
.fact { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; text-wrap: balance; }
.fact-note { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); vertical-align: 2px; margin-left: 4px; }
.redact { color: #4a4650; letter-spacing: -0.08em; user-select: none; }
@media (max-width: 900px) {
  .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-in > div { padding: 22px 20px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .facts-in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts-in > div:nth-child(-n+2) { border-top: 0; }
}

/* game intro */
.intro-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.intro-in p { color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); max-width: 52ch; }
@media (max-width: 900px) { .intro-in { grid-template-columns: minmax(0, 1fr); } }

/* feature banners */
.features { display: grid; gap: 14px; }
.feature { position: relative; min-height: clamp(420px, 41.6vw, 640px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.feature > picture { position: absolute; inset: 0; z-index: -2; }
.feature-img { width: 100%; height: 100%; object-fit: cover; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.feature.text-right::after { background: linear-gradient(270deg, rgba(22, 22, 22, .94) 0%, rgba(22, 22, 22, .78) 32%, rgba(22, 22, 22, 0) 62%); }
.feature.text-left::after { background: linear-gradient(90deg, rgba(22, 22, 22, .94) 0%, rgba(22, 22, 22, .78) 32%, rgba(22, 22, 22, 0) 62%); }
/* menu screenshots: the text side goes almost solid so it never sits on UI */
.feature.ui.text-right::after { background: linear-gradient(270deg, rgba(22, 22, 22, .98) 0%, rgba(22, 22, 22, .95) 36%, rgba(22, 22, 22, 0) 58%); }
.feature.ui.text-left::after { background: linear-gradient(90deg, rgba(22, 22, 22, .98) 0%, rgba(22, 22, 22, .95) 36%, rgba(22, 22, 22, 0) 58%); }
.feature-copy { display: flex; }
.feature.text-right .feature-copy { justify-content: flex-end; }
.feature-copy > div { max-width: 440px; display: grid; gap: 14px; padding-block: 48px; }
.feature-copy h3 { font-size: clamp(30px, 3.4vw, 48px); }
.feature-copy p:not(.lab) { color: #d6d6d1; font-size: 18px; }
@media (max-width: 760px) {
  .feature { display: block; min-height: 0; }
  .feature > picture { position: relative; display: block; aspect-ratio: 16 / 10; }
  .feature-img { object-position: var(--fx, 30%) 50%; }
  .feature.text-left .feature-img { --fx: 70%; }
  .feature::after { display: none; }
  .feature-copy > div { padding-block: 26px 40px; }
}

/* gallery + lightbox */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--panel); cursor: zoom-in; aspect-ratio: 16 / 9; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(8, 8, 8, .94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { max-width: min(94vw, 1800px); max-height: 86vh; width: auto; height: auto; background: #000; }
.lightbox.trailer video { width: min(94vw, 1600px); aspect-ratio: 16 / 9; }
.lb-btn, .lb-close { position: fixed; background: rgba(22, 22, 22, .7); color: var(--ink); border: 1px solid var(--line); cursor: pointer; display: grid; place-items: center; }
.lb-btn { top: 50%; transform: translateY(-50%); width: 52px; height: 72px; font-size: 34px; line-height: 1; }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close { top: 14px; right: 14px; width: 48px; height: 48px; padding: 12px; }

/* project 02 */
.page-soon { background: var(--bg); }
.hero-peek { background: #161616; min-height: clamp(600px, 86vh, 820px); align-items: center; }
.hero-peek .hero-img, .hero-peek .hero-video { object-fit: cover; object-position: 50% 50%; }
.hero-peek .hero-copy { padding-block: calc(var(--head-h) + 32px) 64px; }
.hero-peek .hero-copy > *:not(h1) { max-width: 520px; }
.hero-peek h1 { font-size: clamp(38px, 5.4vw, 80px); white-space: nowrap; }
.notify { display: grid; gap: 12px; }
.notify-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.notify input[type=email] { min-height: 50px; padding: 0 16px; font: 400 16px var(--body); color: var(--ink); background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 0; }
.notify input[type=email]::placeholder { color: #9a96a0; }
.notify input[type=email]:focus { outline: none; border-color: var(--ink); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.consent input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: #f2f2ef; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notify-msg { min-height: 1.4em; font-size: 15px; }
.notify-msg.ok { color: #b7e4b4; } .notify-msg.err { color: #ffb4a8; }
.notify.is-done .notify-row, .notify.is-done .consent { display: none; }
.or-discord a { color: var(--ink); }
.facts-soon { background: #161616; }
.split-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 56px); align-items: center; }
.split-cta p { color: var(--muted); max-width: 44ch; }
@media (max-width: 900px) {
  .hero-peek { display: block; min-height: 0; }
  .peek-media { position: relative; inset: auto; aspect-ratio: 1 / 1; max-height: 70vh; width: 100%; margin-top: var(--head-h); }
  .hero-peek .hero-img, .hero-peek .hero-video { object-position: 100% 50%; }   /* keeps the whole tile window in the square crop */
  .hero-peek .hero-copy { padding-block: 8px 56px; }
  .split-cta { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) { .notify-row { grid-template-columns: minmax(0, 1fr); } }

/* about */
.about-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-copy { display: grid; gap: 22px; }
.about-copy h1 { font-size: clamp(28px, 3.6vw, 54px); }
.about-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.name-sec { background: var(--bg-2); border-block: 1px solid var(--line); }
.name-in { display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.name-in > div:last-child { display: grid; gap: 18px; max-width: 760px; }
.name-in > div:last-child > p:last-child { color: var(--muted); }
.name-in h2 { font-size: clamp(38px, 6vw, 88px); white-space: nowrap; }
.name-mark svg, .lost-mark svg { width: 100%; height: auto; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.principles li { border-top: 2px solid var(--ink); padding-top: 24px; display: grid; gap: 14px; align-content: start; }
.principles h3 { font-size: clamp(24px, 2.2vw, 32px); }
.principles li > p:last-child { color: var(--muted); }
@media (max-width: 900px) {
  .about-in, .name-in { grid-template-columns: minmax(0, 1fr); }
  .name-mark { max-width: 180px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
}

/* contact */
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.door { background: var(--panel); border: 1px solid var(--line); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.door-icon { width: 88px; height: 88px; margin-bottom: 10px; }
.door h2 { font-size: clamp(22px, 2vw, 30px); }
.door p { color: var(--muted); }
.door-act { margin-top: auto; padding-top: 12px; }   /* every button sits on the same line, whatever the text above */
.door-act .btn { width: 100%; }
.email-line { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 28px; border-top: 1px solid var(--line); }
.email { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); text-decoration: none; word-break: break-all; }
.email:hover { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 900px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* prose, 404 */
.prose { max-width: 720px; display: grid; gap: 18px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose p { color: #d6d6d1; }
.lost-in { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; min-height: 60vh; }
.lost-in > div:last-child { display: grid; gap: 20px; }
@media (max-width: 700px) { .lost-in { grid-template-columns: minmax(0, 1fr); } .lost-mark { max-width: 120px; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 72px); background: var(--bg); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.foot-logo { height: 52px; width: auto; }
.foot-brand { display: grid; gap: 16px; }
.foot-brand p { color: var(--muted); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 40px; }
.foot-nav a, .foot-base a { text-decoration: none; }
.foot-nav a { font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.foot-nav a:hover, .foot-base a:hover { text-decoration: underline; text-underline-offset: 4px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }
.socials a:hover { border-color: var(--ink); }
.socials .si { width: 18px; height: 18px; flex: none; }
@media (max-width: 420px) { .socials { gap: 6px; } .socials a { gap: 7px; padding: 0 9px; } }.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 48px; padding-block: 22px 28px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .foot-in { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Russian: longer words in a wider Cyrillic face, so headings run about a fifth smaller and whole words fit
   (browsers without a Russian hyphenation dictionary would otherwise split them mid-word) */
.lang-ru h1 { font-size: clamp(32px, 5vw, 72px); }
.lang-ru h2 { font-size: clamp(24px, 3vw, 42px); }
.lang-ru h3 { font-size: clamp(20px, 1.9vw, 28px); }
.lang-ru .hero-copy h1 { font-size: clamp(30px, 5.2vw, 78px); }
.lang-ru .page-head h1 { font-size: clamp(28px, 5.2vw, 72px); }
.lang-ru .about-copy h1 { font-size: clamp(24px, 3vw, 44px); }
.lang-ru .feature-copy h3 { font-size: clamp(24px, 2.6vw, 38px); }
.lang-ru .principles h3, .lang-ru .door h2 { font-size: clamp(20px, 1.8vw, 26px); }

