@font-face {
  font-family: Onest; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("assets/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: 400 800; font-display: swap;
  src: url("assets/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;
}
:root {
  --paper: #fafbf9; --ink: #17201e; --muted: #59645f; --line: #d7ddda;
  --accent: #215443; --wash: #edf2ee; --white: #fff; --max: 1160px;
  --gutter: clamp(22px, 5vw, 72px); --ease: cubic-bezier(.2,.7,.3,1);
  font-family: Onest, system-ui, sans-serif; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; scrollbar-color: #839088 var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.6; }
::selection { color: var(--white); background: var(--accent); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; }
input, textarea { caret-color: var(--accent); }
button, a, summary, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.shell { width: min(var(--max), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 50; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.site-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; }
.site-nav a { padding-block: 12px; text-decoration: none; font-size: 13px; }
.site-nav a:hover { text-decoration: underline; }
.language { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.language a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; }
.language [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 80px; align-items: center; padding-block: 72px 64px; }
.hero h1 { font-size: clamp(54px, 6.5vw, 90px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.hero h1 span { color: var(--accent); }
.hero-copy { margin-top: 26px; max-width: 570px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; text-wrap: pretty; }
.hero-copy strong { font-weight: 550; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.arrow { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; }
.hero-portrait { width: 218px; margin-inline: auto; }
.hero-portrait img { width: 218px; height: 238px; object-fit: cover; border-radius: 4px; }
.hero-portrait figcaption { padding-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.hero-portrait figcaption span { display: block; color: var(--ink); }
.work-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 30px; padding-block: 30px 22px; border-top: 1px solid var(--line); }
.work-heading h2 { font-size: 28px; line-height: 1.2; font-weight: 550; letter-spacing: -.025em; }
.work-heading p { font-size: 13px; color: var(--muted); }
.task-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-bottom: 26px; }
.task-nav a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: none; }
.task-nav a:hover, .task-nav a[aria-current] { color: var(--accent); text-decoration: underline; }
.task-nav svg { width: 13px; height: 13px; }
.work-group { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 70px; padding-block: 34px 40px; border-top: 1px solid var(--line); }
.group-heading { padding-top: 10px; }
.group-heading h3 { max-width: 250px; font-weight: 500; font-size: 27px; line-height: 1.2; letter-spacing: -.025em; }
.group-heading p { margin-top: 16px; max-width: 250px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.case-list { list-style: none; padding: 0; margin: 0; }
.case-list li + li { border-top: 1px solid var(--line); }
.case-row { display: grid; grid-template-columns: 102px minmax(0, 1fr) 24px; align-items: center; gap: 22px; min-height: 134px; padding-block: 20px; text-decoration: none; transition: background 180ms var(--ease); }
.case-row:hover { background: var(--wash); }
.case-row .arrow { transition: transform 180ms var(--ease); }
.case-row:hover .arrow { transform: translateX(4px); }
.case-thumb { width: 102px; height: 76px; border-radius: 3px; object-fit: cover; }
.case-name { display: block; font-size: 19px; font-weight: 550; line-height: 1.35; letter-spacing: -.02em; }
.case-description { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.case-meta { display: block; margin-top: 7px; color: var(--accent); font-size: 11px; line-height: 1.5; }
.case-placeholder { min-height: 105px; padding: 22px 0 22px 124px; }
.case-placeholder .case-name { font-size: 16px; color: var(--muted); font-weight: 400; }
.case-placeholder .case-meta { color: var(--muted); }
.group-note { font-size: 12px; color: var(--muted); margin-top: 20px; }
.method { border-top: 1px solid var(--line); padding-block: 64px; display: grid; grid-template-columns: 280px 1fr; gap: 70px; }
.method h2 { font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.method-intro { max-width: 660px; font-size: 20px; line-height: 1.6; }
.method-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; list-style: none; padding: 0; margin: 30px 0 0; }
.method-steps strong { display: block; font-size: 14px; font-weight: 600; }
.method-steps p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.lab-link { display: grid; grid-template-columns: 102px 1fr 24px; gap: 22px; align-items: center; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); text-decoration: none; }
.lab-link img { width: 102px; height: 60px; object-fit: cover; border-radius: 3px; }
.lab-link strong { font-size: 15px; font-weight: 550; }
.lab-link p { font-size: 12px; color: var(--muted); }
.contact { background: var(--wash); padding-block: 55px 35px; }
.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: 55px; }
.contact h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; font-weight: 500; letter-spacing: -.035em; }
.contact-lede { font-size: 14px; margin-top: 18px; color: var(--muted); max-width: 390px; }
.contact-email { display: inline-flex; align-items: center; gap: 16px; font-size: clamp(19px, 2.5vw, 28px); letter-spacing: -.02em; text-decoration: none; min-height: 48px; }
.contact-email:hover { text-decoration: underline; }
.contact-links { display: flex; gap: 26px; margin-top: 14px; }
.brief { margin-top: 26px; border-top: 1px solid var(--line); }
.brief summary { cursor: pointer; padding-block: 16px; font-size: 13px; text-underline-offset: 5px; }
.brief summary:hover { text-decoration: underline; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 0 26px; }
.contact-form label { display: grid; gap: 7px; font-size: 12px; }
.contact-form input, .contact-form textarea, .contact-form select { min-width: 0; width: 100%; border: 1px solid #9daaa2; border-radius: 4px; padding: 12px; background: var(--paper); color: var(--ink); font-size: 14px; }
.contact-form textarea { resize: vertical; min-height: 110px; }
.contact-form .full { grid-column: 1 / -1; }
.solid-link, .contact-form button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 46px; padding: 12px 20px; background: var(--ink); color: white; border: 0; border-radius: 4px; text-decoration: none; font-size: 13px; cursor: pointer; }
.solid-link:hover, .contact-form button:hover { background: var(--accent); }
.form-note { color: var(--muted); font-size: 12px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; font-size: 11px; color: var(--muted); }
.site-footer a { color: inherit; }
/* Case overview shares the portfolio's typography and navigation. */
.case-intro { padding-block: 42px; }
.case-back { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.case-back .arrow { transform: rotate(180deg); width: 16px; }
.case-intro h1 { margin-top: 28px; font-size: clamp(42px, 6.5vw, 80px); line-height: 1.06; font-weight: 500; letter-spacing: -.04em; }
.case-deck { max-width: 810px; font-size: clamp(20px, 2.4vw, 28px); margin-top: 22px; line-height: 1.45; text-wrap: pretty; }
.case-context { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.case-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 28px; }
.case-cover { margin-top: 38px; }
.case-cover img { width: 100%; height: auto; border-radius: 4px; }
.case-cover figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.case-section { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 70px; padding-block: 46px; border-top: 1px solid var(--line); }
.case-section h2 { font-size: 27px; font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.case-section h3 { font-size: 19px; font-weight: 550; }
.case-section p { max-width: 68ch; }
.case-section p + p { margin-top: 18px; }
.case-section ul { padding-left: 20px; margin: 20px 0 0; }
.case-section li { margin-bottom: 10px; }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 26px 0 0; }
.case-facts dt { color: var(--muted); font-size: 12px; }
.case-facts dd { margin: 6px 0 0; font-size: 14px; }
.decision-list { margin: 0; }
.decision-list > div { padding-block: 22px; }
.decision-list > div:first-child { padding-top: 0; }
.decision-list > div + div { border-top: 1px solid var(--line); }
.decision-list dt { font-size: 19px; line-height: 1.4; font-weight: 550; }
.decision-list dd { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.decision-list dd strong { color: var(--ink); font-weight: 500; }
.research-chart { margin: 25px 0 0; }
.research-chart div { display: grid; grid-template-columns: 1fr 75px; gap: 9px 20px; padding-block: 12px; }
.research-chart dt, .research-chart dd { margin: 0; font-size: 14px; }
.research-chart dd { text-align: right; font-variant-numeric: tabular-nums; }
.research-chart .bar { height: 5px; background: var(--accent); grid-column: 1 / -1; border-radius: 1px; }
.chart-note { margin-top: 18px; color: var(--muted); font-size: 12px; }
.chapter-links { list-style: none; padding: 0; margin: 0; }
.chapter-links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.chapter-links a:hover { color: var(--accent); }
.case-close { padding-block: 25px 55px; }
@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 220px; gap: 40px; }
  .work-group, .method, .case-section { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
  .case-row { grid-template-columns: 82px minmax(0, 1fr) 20px; gap: 16px; }
  .case-thumb { width: 82px; height: 68px; }
  .case-placeholder { padding-left: 98px; }
}
@media (max-width: 760px) {
  .header-inner { min-height: 74px; gap: 22px; }
  .site-nav { gap: 18px; }
  .site-nav a:nth-child(2) { display: none; }
  .hero { grid-template-columns: 1fr 155px; padding-block: 46px; gap: 30px; }
  .hero h1 { font-size: clamp(44px, 8vw, 62px); }
  .hero-copy { font-size: 17px; }
  .hero-portrait, .hero-portrait img { width: 155px; }
  .hero-portrait img { height: 180px; }
  .work-heading { display: block; }
  .work-heading p { margin-top: 12px; }
  .task-nav { gap: 0 22px; }
  .work-group, .method, .case-section { grid-template-columns: 1fr; gap: 20px; padding-block: 28px; }
  .group-heading h3, .group-heading p { max-width: none; }
  .group-heading h3 { font-size: 25px; }
  .group-heading p { margin-top: 10px; }
  .group-heading { padding: 0; }
  .case-row { min-height: 118px; }
  .case-placeholder { min-height: 90px; }
  .contact-main { grid-template-columns: 1fr; gap: 26px; }
  .method { padding-block: 38px; }
  .case-intro { padding-block: 24px 36px; }
  .case-intro h1 { margin-top: 22px; }
  .case-context { gap: 8px 18px; }
}
@media (max-width: 520px) {
  .brand span { font-size: 13px; }
  .brand img { width: 30px; height: 30px; }
  .header-inner { gap: 16px; }
  .language { gap: 10px; margin-left: auto; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line); border-radius: 4px; width: 40px; height: 40px; cursor: pointer; }
  .menu-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
  .site-nav.is-open { position: absolute; left: 0; right: 0; top: 74px; padding: 20px var(--gutter); display: grid; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.is-open a { display: block; font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 38px; gap: 30px; }
  .hero h1 { font-size: clamp(46px, 12vw, 64px); }
  .hero-portrait { display: flex; align-items: center; width: 100%; gap: 20px; }
  .hero-portrait img { width: 74px; height: 82px; }
  .hero-portrait figcaption { padding: 0; font-size: 12px; }
  .hero-copy { margin-top: 22px; }
  .hero-links { margin-top: 20px; gap: 12px 24px; }
  .work-heading h2 { font-size: 26px; }
  .task-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
  .task-nav a { font-size: 12px; }
  .case-row { grid-template-columns: 64px minmax(0, 1fr) 16px; gap: 14px; padding-block: 20px; }
  .case-thumb { width: 64px; height: 64px; }
  .case-row .arrow { width: 16px; }
  .case-name { font-size: 16px; }
  .case-description { font-size: 12px; }
  .case-meta { font-size: 11px; }
  .case-placeholder { padding-left: 78px; }
  .method-intro { font-size: 18px; }
  .method-steps { gap: 26px 24px; }
  .lab-link { grid-template-columns: 64px 1fr 16px; gap: 14px; }
  .lab-link img { width: 64px; height: 64px; }
  .contact { padding-block: 36px 26px; }
  .contact-form { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: 1fr; gap: 18px; }
  .case-section h2 { font-size: 25px; }
  .case-section p { font-size: 15px; }
  .case-cover { margin-top: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .case-row, .case-row .arrow { transition: none; }
}
