@font-face { font-family: "Manrope"; src: url("./Manrope.ttf") format("truetype"); font-style: normal; font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Neuropol"; src: url("./Neuropol.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }
:root { color-scheme: light; --page: #fbfbfb; --ink: #181b1a; --muted: #5e6662; --line: #dfe4df; --accent: #793449; --panel: rgba(255,255,255,.95); --shadow: 0 18px 54px rgba(28,43,35,.045); font-family: "DM Sans",ui-sans-serif,system-ui,sans-serif; }
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(circle at 90% 0%,rgba(222,233,224,.19),transparent 42%); }
button { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.shell { width: min(1220px,calc(100% - 64px)); margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; border-bottom: 1px solid var(--line); }
.top-left { display: flex; align-items: center; gap: 24px; }
.menu-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .2s; }
.menu-button:hover { border-color: var(--accent); }
.menu-glyph { display: grid; gap: 5px; width: 17px; }
.menu-glyph span { height: 1.5px; background: var(--ink); border-radius: 2px; transition: height .16s ease; }
.menu-glyph span:last-child { width: 11px; height: 2.5px; }
.menu-button:hover .menu-glyph span:first-child { height: 2.5px; }
.menu-button:hover .menu-glyph span:last-child { height: 1.5px; }
.brand { display: inline-flex; align-items: flex-end; gap: 9px; font: 400 1.27rem "Neuropol","Manrope",sans-serif; letter-spacing: .025em; text-decoration: none; color: var(--ink); }
.brand span { display: block; line-height: 1; }
.brand-mark { display: block; width: 41px; height: 29px; object-fit: contain; flex: none; }
.language-switch { display: inline-flex; align-items: center; height: 44px; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.language-switch button { min-width: 38px; height: 36px; padding: 0 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 500 .76rem "Manrope",sans-serif; cursor: pointer; transition: background-color .16s ease,color .16s ease; }
.language-switch button[aria-pressed="false"]:hover { background: var(--accent); color: #fff; }
.language-switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.language-switch button:disabled { cursor: default; }
.section { padding: 45px 0 90px; border-top: 1px solid var(--line); scroll-margin-top: 35px; }
.cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; min-height: 338px; padding: clamp(26px,3.2vw,43px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(var(--panel),var(--panel)),linear-gradient(135deg,#c8869b,#92445f); box-shadow: var(--shadow); text-decoration: none; transition: border-color .18s ease,box-shadow .18s ease; }
.card-area { display: flex; flex: 1; flex-direction: column; color: inherit; text-decoration: none; border-radius: 14px; }
.card-area:focus-visible,.card-foot-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.card-locked { color: var(--muted); }
.card-locked .card-area { cursor: default; }
.card-foot-link { text-decoration: none; transition: color .18s ease; }
.card-foot-link:hover,.card-foot-link:focus-visible { color: #a12448; }
.foot-hover { display: none; }
.card-foot-static { color: var(--muted); cursor: default; }
.card-meta { font: 400 .75rem "Neuropol","Manrope",sans-serif; letter-spacing: .04em; color: var(--accent); }
.card-main { display: block; margin-top: auto; }
.card-title { display: block; margin-bottom: 13px; font: 500 clamp(1.8rem,3.1vw,2.75rem)/1.1 "Manrope",sans-serif; letter-spacing: -.025em; }
.card-description { display: block; max-width: 430px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.card-foot { display: flex; justify-content: space-between; align-items: center; min-height: 30px; margin-top: 32px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--accent); font-size: .88rem; font-weight: 700; }
.contact { padding-top: 34px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 11px; }
.contact-links a { position: relative; display: inline-flex; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); text-decoration: none; font-size: .87rem; font-weight: 600; }
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.contact-links a[data-tooltip]::after,.footer a[data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 9px); left: 50%; width: max-content; max-width: min(280px,90vw); padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 9px 25px rgba(30,25,27,.1); color: var(--ink); font: 500 .78rem/1.3 "DM Sans",sans-serif; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%,4px); transition: opacity .15s ease,transform .15s ease,visibility .15s ease; z-index: 10; }
.contact-links a[data-tooltip]:hover::after,.contact-links a[data-tooltip]:focus-visible::after,.footer a[data-tooltip]:hover::after,.footer a[data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding: 26px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer a { position: relative; color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.footer a:hover { color: var(--accent); text-decoration-color: currentColor; }
dialog { width: min(410px,calc(100% - 24px)); max-height: calc(100% - 28px); margin: 14px 0 14px 14px; padding: 29px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 18px 22px 75px rgba(25,38,32,.15); }
dialog::backdrop { background: rgba(27,38,32,.22); backdrop-filter: blur(3px); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.drawer-mark { width: 35px; height: 25px; object-fit: contain; }
.close-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; font-size: 1.2rem; }
.drawer-nav { display: grid; margin-top: 16px; }
.drawer-nav a,.drawer-nav span { padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 500 1.15rem "Manrope",sans-serif; }
.drawer-nav span[aria-current="page"] { color: #929a95; user-select: none; }
.drawer-nav a:hover { color: var(--accent); }
.inner-main { min-height: 55vh; }
.inner-section { padding-bottom: 76px; }
.inner-code { font: 400 .85rem "Neuropol",sans-serif; color: var(--accent); }
.inner-section h1 { max-width: 920px; margin: 18px 0 34px; color: var(--accent); font: 400 clamp(2rem,4vw,3.4rem)/1.25 "Neuropol","Manrope",sans-serif; overflow-wrap: anywhere; }
.inner-lead { max-width: 720px; margin: 0 0 26px; font: 500 clamp(1.15rem,2vw,1.5rem)/1.4 "Manrope",sans-serif; }
.inner-body { max-width: 700px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
@media (min-width: 721px) and (max-width: 1024px) { .shell { width: calc(100% - 48px); } .cards { gap: 14px; } .card { min-height: 320px; padding: 28px; } }
@media (max-width: 720px) { .shell { width: calc(100% - 36px); } .topbar { min-height: 74px; gap: 8px; } .top-left { gap: 12px; } .brand-mark { width: 32px; height: 23px; } .section { padding: 35px 0 72px; } .cards { grid-template-columns: minmax(0,1fr); gap: 14px; } .card { min-height: 290px; padding: 26px; } .contact-links a { min-height: 44px; } .footer { flex-direction: column; } }
@media (max-width: 420px) { .shell { width: calc(100% - 28px); } .top-left { gap: 10px; } .brand { gap: 6px; font-size: 1.1rem; } .brand-mark { width: 29px; height: 21px; } .card { padding: 23px; } .contact-links { display: grid; grid-template-columns: 1fr; } .contact-links a { justify-content: space-between; } .contact-links a[data-tooltip]::after { left: 0; transform: translateY(4px); } .contact-links a[data-tooltip]:hover::after,.contact-links a[data-tooltip]:focus-visible::after { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.error-main { min-height: 60vh; padding: clamp(65px,10vw,150px) 0 100px; border-top: 1px solid var(--line); }
.error-code { display: block; color: var(--accent); font: 400 .9rem "Neuropol",sans-serif; }
.error-main h1 { max-width: 850px; margin: 22px 0 17px; color: var(--accent); font: 400 clamp(2rem,4vw,3.3rem)/1.2 "Neuropol","Manrope",sans-serif; }
.error-main p { max-width: 620px; color: var(--muted); line-height: 1.65; }
.error-back { display: inline-flex; gap: 12px; align-items: center; margin-top: 32px; padding: 12px 0; color: var(--accent); text-decoration: none; font-weight: 700; }
.error-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.error-back .arrow-left { font-size: 1.3rem; }
.error-ru { display: none; }
html[data-error-lang="ru"] .error-en { display: none; }
html[data-error-lang="ru"] .error-ru { display: block; }

.brand .error-ru { display: none; }
html[data-error-lang="ru"] .brand .error-en { display: none; }
html[data-error-lang="ru"] .brand .error-ru { display: block; }

.language-switch button { position: relative; }
.language-switch button[data-hint]::after { content: attr(data-hint); position: absolute; top: calc(100% + 10px); left: 50%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--accent); box-shadow: var(--shadow); white-space: nowrap; font: 500 .7rem "Manrope",sans-serif; opacity: 0; visibility: hidden; transform: translate(-50%,-3px); transition: opacity .15s ease,transform .15s ease; z-index: 12; pointer-events: none; }
.language-switch button[data-hint]:hover::after,.language-switch button[data-hint]:focus-visible::after { opacity: 1; visibility: visible; transform: translate(-50%,0); }

/* Beta v17: cards and small editorial photographs. */
@media (hover: hover) { .card:not(.card-locked):hover { border-color: var(--accent); } }
.card:not(.card-locked):focus-within { border-color: var(--accent); }
.card-foot { flex-shrink: 0; }
.card-tooltip { position: fixed; z-index: 30; pointer-events: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 9px 25px rgba(30,25,27,.1); color: var(--ink); font: 500 .78rem/1.3 "DM Sans",sans-serif; }
.site-photo { width: min(320px,100%); margin: 24px 0 0; }
.site-photo img { display: block; width: 100%; height: auto; border-radius: 12px; }
.site-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.site-photo figcaption a { text-underline-offset: 3px; }
.photo-heading { margin: 48px 0 0; font: 500 1.1rem "Manrope",sans-serif; }
.team-heading { margin-top: 38px; font: 500 1.4rem "Manrope",sans-serif; }
.team-members { display: grid; gap: 36px; }
.team-members h3 { margin-bottom: 8px; font: 500 1.2rem "Manrope",sans-serif; }
@media (max-width:720px) { .card-foot { display: flex; visibility: visible; } }

/* v18: responsive founders, compact project listings and inline video. */
.team-members article { min-width: 0; }
.team-members .inner-body { margin-bottom: 0; }
.team-members .site-photo { width: min(320px,100%); }
.photo-link { position: relative; display: block; }
.photo-link[data-photo-hint]::after { content: attr(data-photo-hint); position: absolute; left: 0; top: calc(100% + 9px); padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: .78rem; opacity: 0; visibility: hidden; pointer-events: none; z-index: 5; }
.photo-link:has(img:hover)::after,.photo-link:focus-visible::after { opacity: 1; visibility: visible; }
.listing-heading { margin: 32px 0 20px; font: 500 1.1rem/1.5 "Manrope",sans-serif; }
.project-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.project-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.project-list h3 { margin: 0 0 8px; font: 500 1.1rem/1.5 "Manrope",sans-serif; overflow-wrap: anywhere; }
.project-list p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.project-link { color: var(--accent); font-size: .82rem; text-underline-offset: 4px; }
.audio-content { display: grid; gap: 32px; }
.audio-video { width: min(320px,100%); margin: 32px 0 0; }
.video-description { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 12px; }
.video-frame { aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #181b1a; }
.video-launch { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #181b1a; }
.video-launch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-launch span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; background: var(--accent); border-radius: 12px; padding: 10px 20px; font-size: 1.2rem; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.audio-video figcaption { margin-top: 9px; font-size: .75rem; color: var(--muted); }
.audio-video figcaption a { text-underline-offset: 3px; }
@media (min-width: 900px) {
 .team-members { grid-template-columns: 340px 280px; gap: 48px; }
 .team-members article { display: flex; flex-direction: column; }
 .team-members .site-photo { width: auto; margin-top: auto; padding-top: 24px; }
 .team-members .site-photo img { height: 240px; width: auto; max-width: 100%; }
 .audio-content { grid-template-columns: minmax(0,1fr) 320px; gap: 48px; }
}

/* v19: semantic role lines and aligned founder photographs. */
.founders-label { margin-bottom: 30px; }
.founder-role span { display: block; }
.team-members article { display: grid; grid-template-rows: auto auto auto; align-content: start; }
.team-members h3 { margin: 0 0 8px; }
.team-members .founder-role { margin: 0; }
.team-members .site-photo { margin-top: 24px; padding-top: 0; }
@media (min-width: 900px) {
 .team-members { grid-template-columns: 340px 340px; column-gap: 48px; row-gap: 0; }
 .team-members article { grid-row: 1 / span 3; grid-template-rows: subgrid; }
 .team-members article:first-child { grid-column: 1; }
 .team-members article:last-child { grid-column: 2; }
 .team-members .site-photo { margin-top: 24px; padding-top: 0; }
 .team-members .site-photo img { height: 240px; width: auto; max-width: 100%; }
}

/* v20: standard 320 × 180 media frame; images retain their full proportions. */
.area-photo { width: min(320px,100%); margin: 32px 0 0; padding-top: 58px; }
.area-photo-link { display: flex; width: 100%; aspect-ratio: 16/9; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: transparent; }
.area-photo-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.area-photo figcaption { margin-top: 9px; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.area-photo figcaption a { text-underline-offset: 3px; }
.sas-soon { margin-top: 32px; }
@media (max-width:899px) { .area-photo { padding-top: 0; } }

/* v21: area title and media share their top edge. */
.area-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 28px; margin-top: 18px; }
.area-intro { min-width: 0; }
.area-intro h1 { margin-top: 0; }
.area-intro .inner-lead { margin-bottom: 0; }
.area-layout .area-photo,.area-layout .audio-video { margin: 0; padding: 0; align-self: start; }
.area-layout .area-photo-link { overflow: visible; }
.area-layout .area-photo-link img { width: auto; height: auto; max-width: 100%; max-height: 180px; border-radius: 12px; }
.area-layout .video-description { margin: 12px 0 0; }
.area-listing .listing-heading,.area-listing .sas-soon { margin-top: 0; }
@media (min-width:900px) {
 .area-layout { grid-template-columns: minmax(0,1fr) 320px; column-gap: 48px; row-gap: 32px; }
 .area-intro { grid-column: 1; grid-row: 1; }
 .area-layout > figure { grid-column: 2; grid-row: 1 / span 2; }
 .area-listing { grid-column: 1; grid-row: 2; }
}

/* v33: shared typography for every language, page and viewport.
   Size follows the longest labels, never an individual translation. */
:root {
 --title-size: clamp(1.25rem,2.5vw,2.5rem);
 --lead-size: clamp(1.15rem,2vw,1.5rem);
 --heading-size: 1.1rem;
 --body-size: 1rem;
 --code-size: .85rem;
}
.card-title,.inner-section h1,.error-main h1 {
 font-family: "Neuropol","Manrope",sans-serif;
 font-weight: 400;
 font-size: var(--title-size);
 line-height: 1.25;
 letter-spacing: 0;
 overflow-wrap: normal;
 word-break: normal;
 hyphens: none;
}
.inner-lead { font-size: var(--lead-size); line-height: 1.4; }
.listing-heading,.project-list h3,.team-members h3,.photo-heading,.team-heading {
 font-size: var(--heading-size); line-height: 1.5;
}
.inner-body,.project-list p,.error-main p {
 font-size: var(--body-size); line-height: 1.7;
}
.card-meta,.inner-code,.error-code { font-size: var(--code-size); line-height: 1.4; }
@media (max-width:720px) {
 :root { --title-size: clamp(1rem,5vw,1.65rem); --lead-size: 1.15rem; }
}
