/* ==========================================================================
   7pro8.com — "lux" theme
   Built to sit next to the partner presentation rather than next to a
   technical datasheet: night ground throughout, a high-contrast didone for
   display, spaced capitals for section labels, and brass hairlines instead of
   boxes and borders.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font License, see static/fonts/). No third-party
   requests, so no cookie-consent question in the EU. Bodoni Moda has no
   Cyrillic, so Russian headings fall through, glyph by glyph, to Playfair
   Display: the nearest high-contrast face that has it. */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/bodoni-moda-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/bodoni-moda-latin-opsz-normal.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: "Bodoni Moda";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/bodoni-moda-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("../fonts/bodoni-moda-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/jost-latin-wght-normal.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: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/jost-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/jost-cyrillic-wght-normal.woff2") format("woff2-variations"), url("../fonts/jost-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
/* Bodoni Moda's comma, hyphen, dashes, plus and slash are hairlines: on an
   ordinary (1x) screen the comma reads as a full stop and the dashes vanish
   ("Одна команда   от первого эскиза"). Headings take those few marks from
   Playfair Display instead; every letter and digit stays as it was. */
@font-face {
  font-family: "Display Punct";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  unicode-range: U+002B-002D,U+002F,U+003B,U+00AB,U+00BB,U+2010-2015,U+2018-201E;
}
@font-face {
  font-family: "Playfair Display Cyrillic";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("../fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2"), url("../fonts/playfair-display-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Playfair Display Cyrillic";
  font-style: normal;
  font-display: swap;
  font-weight: 500 900;
  src: url("../fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2"), url("../fonts/playfair-display-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  --night:     #0c0d0f;  /* page ground */
  --night-2:   #131519;  /* raised panel */
  --night-3:   #191c21;
  --ivory:     #efebe3;
  --ivory-dim: #9c988f;
  --ivory-faint: #6d6a64;
  --brass:     #c0a265;  /* trim accent */
  --brass-lift:#d6bc86;
  --hair:      #33302a;  /* brass hairline, at rest */
  --glass:     #4a6180;  /* electrochromic glass, kept from the product */

  --shell: 78rem;
  --gap: clamp(1.75rem, 4vw, 4rem);

  --display: "Display Punct", "Bodoni Moda", "Playfair Display Cyrillic", "Didot", "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ivory-dim);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.09rem);
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:hover { color: var(--brass-lift); }

:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--night); padding: 0.75rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* --------------------------------------------------------------- typography */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
  /* Optical size is the whole point of a didone. Bodoni Moda's display cut is
     drawn for 60-100 px, and below about 30 px its hairlines fall under one
     device pixel and break up. Pinning "opsz" to 72 for every heading put that
     display cut on 21 px subheads. It showed worst on digits: Cyrillic letters
     fall through to Playfair, which has no opsz axis and stayed solid, while
     the digits stayed in Bodoni at 72 and thinned to nothing, so a line like
     "Простые — 3-4 комплекта в год" lost its numbers. Optical sizing is now
     automatic, which is what the axis is for: every heading gets the cut that
     was drawn for its size. */
  font-optical-sizing: auto;
}

.h2 {
  font-size: clamp(1.7rem, 1.1rem + 2.3vw, 2.8rem);
  max-width: 20ch;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
  position: relative;
}
/* a hairline marks where a section begins — the deck's rule, not decoration */
.h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3.5rem; height: 1px;
  background: var(--brass);
}

.kicker, .eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.4rem;
}

.lead {
  font-size: clamp(1.12rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ivory);
  max-width: 44ch;
  margin: 0 0 2rem;
}
.lead--wide { max-width: 60ch; }

p { margin: 0 0 1.25rem; max-width: 64ch; }

.footnote {
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--ivory-faint);
  max-width: 76ch;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
}

.list { margin: 0 0 1.4rem; padding-left: 1.15rem; max-width: 58ch; }
.list li { margin-bottom: 0.55rem; }
.list--tight { font-size: 0.95rem; line-height: 1.65; }
.list::marker, .list li::marker { color: var(--brass); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
  line-height: 1.6;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 1.1rem; height: 1px;
  background: var(--brass);
}

/* ------------------------------------------------------------------ regions */

.band { padding-block: clamp(4rem, 9vw, 8rem); }
.band--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.tone-paper { background: var(--night-2); }
.tone-dark { background: var(--night-3); }

/* --------------------------------------------------------------- masthead */

.masthead {
  background: var(--night);
  border-bottom: 1px solid var(--hair);
  position: relative;
  z-index: 20;
}
.masthead__inner { display: flex; align-items: center; gap: 2rem; min-height: 5.25rem; flex-wrap: nowrap; }

.wordmark { display: flex; align-items: center; gap: 0.95rem; text-decoration: none; color: var(--ivory); }
.wordmark__mark { width: 2.3rem; height: auto; flex: none; }
.wordmark__name {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: 0.06em;
  line-height: 1;
}
.wordmark__line {
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  border-left: 1px solid var(--hair);
  padding-left: 1.1rem;
  line-height: 1.4;
}
@media (max-width: 96rem) { .wordmark__line { display: none; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; flex: none; }
.nav__list, .langs { list-style: none; display: flex; margin: 0; padding: 0; }
.nav__list { gap: 1.35rem; flex-wrap: nowrap; }
.nav__list a, .langs a, .langs span {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  text-decoration: none;
  padding-block: 0.5rem;
  display: inline-block;
  white-space: nowrap;
}
.nav__list a:hover { color: var(--brass); }
.nav__list a[aria-current="page"] { color: var(--ivory); box-shadow: inset 0 -1px 0 var(--brass); }

.langs { gap: 0.75rem; border-left: 1px solid var(--hair); padding-left: 1.35rem; }
.langs span[aria-current] { color: var(--brass); }
.langs__soon { color: #46443f; cursor: default; }

.navtoggle { display: none; }

@media (max-width: 76rem) {
  .masthead__inner { min-height: 4.25rem; flex-wrap: wrap; }
  .navtoggle {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-left: auto;
    background: none; border: 1px solid var(--hair); color: var(--ivory);
    font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.2em;
    text-transform: uppercase; padding: 0.5rem 0.9rem; cursor: pointer;
  }
  .navtoggle__bars { width: 1rem; height: 1px; background: currentColor; box-shadow: 0 4px 0 currentColor, 0 -4px 0 currentColor; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0.9rem; margin-left: 0; display: none; padding-bottom: 1.5rem; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0.35rem; width: 100%; }
  .langs { border-left: 0; padding-left: 0; padding-top: 1rem; border-top: 1px solid var(--hair); width: 100%; }
}

/* -------------------------------------------------------------------- hero */

.hero { position: relative; }
/* the figures under the photograph are the last thing in the hero: without
   this their second line sat on the edge of the next section */
.hero > .shell { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.nb { white-space: nowrap; }
/* Photograph, veil and text share one grid cell, so the frame is as tall as
   the photograph or the text, whichever needs more. A three-line Russian
   headline on a short laptop screen no longer climbs into the caption and
   the header; at ordinary sizes nothing moves. */
.hero__frame { position: relative; display: grid; }
.hero__frame > .glass, .hero__frame > .hero__veil, .hero__frame > .hero__overlay { grid-area: 1 / 1; }
.hero__frame .glass { min-height: clamp(30rem, 78vh, 46rem); }
.hero__frame .glass img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,13,15,0.96) 8%, rgba(12,13,15,0.55) 45%, rgba(12,13,15,0.25) 100%);
  pointer-events: none;
}
.hero__overlay {
  position: relative; align-self: end;
  padding-top: 6rem;   /* clear of the caption bar */
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.hero__title {
  font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.6rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  color: var(--ivory);
  font-weight: 300;
  max-width: 42ch;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* electrochromic glass — kept from the product, restyled for this theme */
.glass { position: relative; margin: 0; }
.glass__tint {
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(38,52,72,0.9), rgba(18,24,34,0.95));
  opacity: 0;
  transition: opacity 1000ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.glass.is-opaque .glass__tint { opacity: 1; }

.glass__bar {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 2;   /* above the hero veil, so the caption stays white */
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  /* The hero photograph can be bright exactly where this caption sits — the
     V-Class frame has a lit window in the top-left corner — so the scrim has to
     carry the text on its own rather than rely on the picture being dark there. */
  background: linear-gradient(to bottom, rgba(12,13,15,0.5), rgba(12,13,15,0));
}
/* This caption lands wherever the hero photograph happens to be bright — on the
   V-Class frame that is a lit window — and a gradient across the top of the
   image cannot rescue it without dulling the whole picture. It carries its own
   plate instead, which stays legible against any photograph put here later. */
.glass__caption {
  /* No plate: on the V-Class frame it ran into the headline. White text, and
     a soft shadow so it still reads over the lit window behind it. */
  color: #fff; line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0,0,0,0.75), 0 0 12px rgba(0,0,0,0.45);
}
.glass__switch {
  display: inline-flex; align-items: center; gap: 0.8rem;
  border: 0; color: var(--ivory); cursor: pointer; font: inherit;
  letter-spacing: inherit; text-transform: inherit;
  /* same plate as the caption, for the same reason */
  padding: 0.55rem 0.9rem;
  background: rgba(12,13,15,0.6);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.glass__switch-track { width: 2.6rem; height: 1px; background: var(--hair); position: relative; display: inline-block; }
.glass__switch-knob {
  position: absolute; top: -3px; left: 0;
  width: 0.9rem; height: 7px; background: var(--ivory-faint);
  transition: transform 320ms ease, background 320ms ease;
}
.glass__switch[aria-pressed="true"] .glass__switch-knob { transform: translateX(1.7rem); background: var(--brass); }
.glass__switch-label { color: var(--ivory); min-width: 11ch; text-align: left; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--hair);
}
.facts__item { margin: 0; }
.facts__value {
  font-family: var(--display);
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.facts__label {
  margin: 0.9rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  line-height: 1.6;
}

@media (max-width: 62rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .hero__frame .glass { min-height: clamp(24rem, 62vh, 34rem); }
}

/* ---------------------------------------------------------------- pagehead */

.pagehead { padding-block: clamp(3.5rem, 8vw, 7rem); border-bottom: 1px solid var(--hair); }
.pagehead__title {
  font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.7rem);
  max-width: 17ch;
}
.pagehead__lead {
  font-size: clamp(1.1rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.6;
  color: var(--ivory-dim);
  max-width: 56ch;
  margin-top: 1.6rem;
}
.pagehead__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1.75rem var(--gap);
  margin: 3rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
}
.pagehead__meta > div { margin: 0; }
.pagehead__meta dt {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-faint); margin-bottom: 0.6rem;
}
.pagehead__meta dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ivory);
  line-height: 1.25;
}

/* ------------------------------------------------------------------- grids */

.grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* the deck numbers these sets, so the numbering carries meaning here */
.cell { counter-increment: cell; padding-top: 2.75rem; position: relative; }
.cell::before {
  content: counter(cell, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--brass);
}
.cell::after {
  content: "";
  position: absolute; top: 1.9rem; left: 0;
  width: 2rem; height: 1px; background: var(--hair);
}
.grid { counter-reset: cell; }
.cell__title { font-size: 1.3rem; margin-bottom: 0.9rem; }
.cell p:last-child, .cell ul:last-child { margin-bottom: 0; }

@media (max-width: 62rem) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------- split */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: center; }
.split--flip .split__text { order: 2; }
.split__figure { margin: 0; }
.split__figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
/* two pictures under one caption: e.g. mechanism and surfaces of one CAD model */
.split__images { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.split__images img { object-fit: contain; background: #f4f5f8; }
.split__figure figcaption, .gallery figcaption {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint); padding-top: 1rem; line-height: 1.7;
}
.split__text p:last-child { margin-bottom: 0; }

@media (max-width: 62rem) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__text { order: 0; }
}

/* ----------------------------------------------------------------- process */

.process { list-style: none; margin: 0; padding: 0; }
.process__step {
  display: grid; grid-template-columns: 6rem minmax(0, 1fr);
  gap: 2rem; padding-block: 2.75rem;
  border-top: 1px solid var(--hair);
}
.process__step:last-child { border-bottom: 1px solid var(--hair); }
.process__num {
  font-family: var(--display);
  font-size: 2rem;
  color: var(--brass);
  line-height: 1;
  letter-spacing: 0.08em;
}
.process__body p:last-child, .process__body ul:last-child { margin-bottom: 0; }

@media (max-width: 42rem) { .process__step { grid-template-columns: 1fr; gap: 0.75rem; } }

/* ----------------------------------------------------------------- metrics */

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 0; }
.h2 + .metrics { margin-top: clamp(2rem, 3.5vw, 3rem); }
.metrics__item { margin: 0; }
.metrics__value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 1.3rem + 2.8vw, 3.4rem);
  color: var(--ivory);
  line-height: 1;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--brass);
}
.metrics__label {
  margin: 1.1rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--ivory-dim);
  max-width: 32ch;
}

@media (max-width: 50rem) { .metrics { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ------------------------------------------------------------------- table */

.tablewrap { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.data th, .data td {
  text-align: left; padding: 1rem 1.25rem 1rem 0;
  border-bottom: 1px solid var(--hair); vertical-align: top;
}
.data thead th {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 400; color: var(--brass); border-bottom-color: var(--brass);
}
.data tbody th { font-weight: 400; color: var(--ivory); padding-right: 2rem; }
.data td { color: var(--ivory-dim); }
.data .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 2.5rem; }
.data__total th, .data__total td {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 1.05rem;
  border-bottom-color: var(--brass);
}

/* --------------------------------------------------------- responsibility */

.responsibility { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.responsibility__col { border-top: 1px solid var(--brass); padding-top: 1.5rem; }
.responsibility__col:nth-child(2) { border-top-color: var(--hair); }
.responsibility__title { font-size: 1.35rem; margin-bottom: 0.9rem; }
.responsibility__text { font-size: 0.95rem; color: var(--ivory-faint); margin-bottom: 1.5rem; }

@media (max-width: 50rem) { .responsibility { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- projects */

.projects {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4.5rem);
}
.project__link { display: block; text-decoration: none; color: inherit; }
.project__figure { display: block; overflow: hidden; }
.project__figure img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(0.85);
  transition: filter 500ms ease, transform 700ms cubic-bezier(0.2, 0, 0.2, 1);
}
.project__link:hover .project__figure img { filter: saturate(1); transform: scale(1.02); }
.project__body { display: block; padding-top: 1.4rem; border-top: 1px solid var(--hair); margin-top: 1.4rem; }
.project__title { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--ivory); line-height: 1.25; }
.project__meta {
  display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint); margin-top: 0.7rem;
}
.project__link:hover .project__title { color: var(--brass); }

.tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.35rem 0.75rem; border: 1px solid currentColor;
}
.tag--series { color: var(--brass); }
.tag--ready { color: var(--ivory-dim); }
.tag--dev { color: var(--glass); }
.tag--hold { color: var(--ivory-faint); }

@media (max-width: 50rem) { .projects { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ lineup */

.lineup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.lineup__group { border-top: 1px solid var(--hair); padding-top: 1.5rem; }
.lineup__group--series { border-top-color: var(--brass); }
.lineup__status {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); font-family: var(--sans); font-weight: 400; margin-bottom: 1rem;
}
.lineup__group--ready .lineup__status { color: var(--ivory); }
.lineup__group--dev .lineup__status { color: var(--glass); }
.lineup__note { font-size: 0.93rem; color: var(--ivory-faint); }
.lineup__items { list-style: none; margin: 1.5rem 0 0; padding: 0; font-size: 0.95rem; color: var(--ivory); }
.lineup__items li { padding: 0.75rem 0; border-top: 1px solid var(--hair); }

@media (max-width: 62rem) { .lineup { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ----------------------------------------------------------------- gallery */

.gallery { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery__item { margin: 0; }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.9); }
/* Scans of print pages come in every proportion; cropping them to 4:3 would cut
   the cars in half, so these sit whole inside the same 4:3 cell. */
.gallery--contain .gallery__item img { object-fit: contain; background: var(--night-2); }
/* One picture on its own, centred in the band rather than left in half of it. */
.gallery--center { grid-template-columns: minmax(0, 46rem); justify-content: center; }
/* Single prints of mixed orientation: each at its own proportions, no crop. */
.gallery--natural { align-items: start; }
.gallery--natural .gallery__item img { aspect-ratio: auto; height: auto; }

@media (max-width: 50rem) { .gallery--2, .gallery--3 { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- spec */

.spec { border-top: 1px solid var(--brass); padding-top: 1.5rem; }
.spec__title {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.4rem;
}

/* ----------------------------------------------------------------- callout */

.callout {
  border-top: 1px solid var(--brass);
  border-bottom: 1px solid var(--hair);
  padding: 2.5rem 0;
  text-align: center;
}
.callout__title {
  font-family: var(--sans); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.5rem;
}
.callout p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  line-height: 1.45;
  color: var(--ivory);
  max-width: 54ch;
  margin-inline: auto;
}
.callout p:last-of-type { margin-bottom: 0; }
.callout .btn { margin-top: 2rem; }

/* ------------------------------------------------------------------ closer */

.closer {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--hair);
}
.closer__inner { display: flex; align-items: end; justify-content: space-between; gap: var(--gap); flex-wrap: wrap; }
.closer__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); max-width: 18ch; }
.closer__text { color: var(--ivory-dim); margin: 1.2rem 0 0; max-width: 46ch; }
.closer__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0; }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 1.05rem 2rem;
  background: transparent;
  color: var(--night);
  background-color: var(--brass);
  border: 1px solid var(--brass);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}
.btn:hover { background-color: var(--brass-lift); border-color: var(--brass-lift); color: var(--night); }
.btn--quiet { background-color: transparent; color: var(--ivory); border-color: var(--hair); }
.btn--quiet:hover { background-color: transparent; color: var(--brass); border-color: var(--brass); }

/* -------------------------------------------------------------------- form */

.form { border-top: 1px solid var(--brass); padding-top: 2rem; }
.field { margin: 0 0 1.5rem; max-width: none; }
.field label, .field legend {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ivory-faint); margin-bottom: 0.6rem;
}
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--ivory);
  padding: 0.85rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--brass); outline: none; }
.field--set { border: 0; padding: 0; }
.check {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin-bottom: 0.6rem; font-size: 0.93rem; color: var(--ivory-dim);
  letter-spacing: 0; text-transform: none;
}
.check input { margin-top: 0.4rem; flex: none; accent-color: var(--brass); }
.form__trap { position: absolute; left: -9999px; }
.form__fallback { font-size: 0.85rem; color: var(--ivory-faint); margin-top: 1.5rem; }
.form.is-sent .field, .form.is-sent button { display: none; }

/* --------------------------------------------------------------- colophon */

.colophon {
  border-top: 1px solid var(--hair);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.88rem;
  color: var(--ivory-faint);
}
.colophon__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.colophon p { margin: 0 0 0.7rem; max-width: none; }
.colophon a { color: var(--ivory-dim); text-decoration: none; }
.colophon a:hover { color: var(--brass); }
.colophon__name { font-family: var(--display); font-size: 1.1rem; color: var(--ivory); margin-bottom: 1rem; }
.colophon__label { font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.colophon__reg { font-size: 0.8rem; }
.colophon__nav ul { list-style: none; margin: 0; padding: 0; }
.colophon__nav li { margin-bottom: 0.55rem; }
.colophon__copy { letter-spacing: 0.06em; }

@media (max-width: 62rem) { .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 42rem) { .colophon__grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------- motion */

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

@media print {
  .masthead, .closer, .navtoggle { display: none; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .facts__value, .metrics__value { color: #000; }
}

/* On narrow screens the headline moves below the photograph instead of
   sitting on it, so a long title can never overflow the image. */
@media (max-width: 42rem) {
  .glass__caption { display: none; }
  .glass__bar { justify-content: flex-end; }
  .hero__frame { display: block; }
  .hero__overlay { position: static; padding-block: 2.5rem 0; }
  .hero__veil { display: none; }
  .hero__frame .glass { min-height: 0; }
  .hero__frame .glass img { position: static; height: 20rem; }
}

/* --------------------------------------------------------------- chronicle */

.chronicle { list-style: none; margin: 0; padding: 0; }
.chronicle__entry {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--hair);
}
.chronicle__entry:last-child { border-bottom: 1px solid var(--hair); }
.chronicle__year {
  font-family: var(--display);
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.2rem);
  color: var(--brass);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
  position: sticky;
  top: 1.5rem;
  align-self: start;
}
.chronicle__title { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); margin-bottom: 0.6rem; }
.chronicle__role {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 1.2rem;
}
.chronicle__gallery { margin-top: 1.8rem; }
.chronicle__body p:last-child { margin-bottom: 0; }

@media (max-width: 48rem) {
  .chronicle__entry { grid-template-columns: 1fr; gap: 0.75rem; }
  .chronicle__year { position: static; }
}

/* a draft banner, to be deleted before the page goes live */
.callout--draft { border-top-color: #b4553a; }
.callout--draft .callout__title { color: #d0715a; }

/* ------------------------------------------------------------------ career */

.career { list-style: none; margin: 0; padding: 0; }
.career__row {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: baseline;
  padding-block: 1.35rem;
  border-top: 1px solid var(--hair);
}
.career__row:last-child { border-bottom: 1px solid var(--hair); }
.career__years {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ivory-dim);
  font-variant-numeric: lining-nums;
  margin: 0;
  letter-spacing: 0.02em;
}
.career__row--current .career__years,
.career__row--current .career__org { color: var(--brass); }
.career__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem; }
.career__org { font-size: 1.2rem; margin: 0; }
.career__role {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

@media (max-width: 42rem) {
  .career__row { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* the period a chronicle entry belongs to */
.chronicle__where {
  margin: -0.8rem 0 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ivory-faint);
}
.chronicle__where b { color: var(--ivory-dim); font-weight: 400; }

/* ------------------------------------------------------------------- duo */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
}
.duo__portrait { margin: 0 0 1.75rem; }
/* The founders' portraits are ordinary photographs taken on ordinary days —
   one of them in an orange drone-racing shirt — and they sit on a near-black
   page next to Bodoni. Holding them back to a little over a third of their
   colour settles them into the page without draining the faces, and it gives
   the two portraits a common treatment whatever they were shot in. */
.duo__portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: grayscale(0.6) contrast(1.03);
}
.duo__role {
  font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 0.7rem;
}
.duo__name { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 1.3rem; }
.duo__contact { font-size: 0.85rem; color: var(--ivory-faint); }

@media (max-width: 50rem) { .duo { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ lanes */

.lanes { margin-top: 1rem; }
.lanes__scroll { overflow-x: auto; padding-bottom: 0.5rem; }
.lanes__grid {
  display: grid;
  grid-template-columns: repeat(var(--span), minmax(0, 1fr));
  min-width: 60rem; /* 35 years at ≥ 27 px, which is what the sizes in lanes.html assume */
  row-gap: 0.55rem;
}
.lanes__axis, .lanes__row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--span), minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
/* A job held alongside another (AZLK and Avtoganza beside CARDI) has to sit
   on a second line of the same lane; dense placement keeps everything else on
   the first line instead of following the overlap down. */
.lanes__row { grid-auto-flow: dense; row-gap: 3px; }
.lanes__axis { border-bottom: 1px solid var(--hair); padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.lanes__tick {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ivory-faint);
  border-left: 1px solid var(--hair);
  padding-left: 0.45rem;
  line-height: 1;
}
.lanes__together {
  border-top: 1px solid var(--brass);
  padding-top: 0.45rem;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--brass);
}
.lanes__who {
  grid-column: 1 / -1;
  margin: 1.1rem 0 0;
  font-family: var(--display);
  font-size: 1.05rem;
  color: var(--ivory);
}
.lanes__seg {
  min-width: 0;
  margin-right: 3px;
  padding: 0.55rem 0.5rem 0.5rem;
  background: var(--night-3);
  border-top: 2px solid var(--ivory-faint);
  overflow: hidden;
}
.lanes__seg--current { border-top-color: var(--brass); background: #1d1a14; }
.lanes__seg--tentative {
  background: transparent;
  border: 1px dashed var(--hair);
  border-top: 2px dashed var(--ivory-faint);
}
.lanes__years {
  display: block;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* A long name wraps onto a second line rather than being cut. */
.lanes__org {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; overflow-wrap: normal; hyphens: manual;
}
/* Too short for its own label: the bar stays, the label hangs below it. */
.lanes__seg--narrow { padding-left: 0; padding-right: 0; }
.lanes__flag {
  min-width: 0;
  margin-top: 0.1rem;
  padding: 0.15rem 0 0.15rem 0.45rem;
  border-left: 1px solid var(--ivory-faint);
}
.lanes__flag .lanes__org { -webkit-line-clamp: 1; display: block; white-space: nowrap; }
.lanes__flag .lanes__years { overflow: visible; }
.lanes__org { font-size: 0.78rem; color: var(--ivory); line-height: 1.3; }
.lanes__seg--current .lanes__org { color: var(--brass); }
.lanes__years { font-size: 0.64rem; letter-spacing: 0.06em; color: var(--ivory-faint); margin-top: 0.15rem; }

.lanes__lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.lanes__listname { font-size: 1.35rem; margin-bottom: 1.1rem; }
.lanes__lists .career__row { grid-template-columns: 7.5rem minmax(0, 1fr); }
.lanes__lists .career__org { font-size: 1.05rem; }

@media (max-width: 56rem) { .lanes__lists { grid-template-columns: 1fr; } }

/* draft marker on notes */
.callout--draft { border-top-color: #b4553a; }
.callout--draft .callout__title { color: #d0715a; }

/* marker for preview deployments; absent from the production build */
.previewmark {
  position: fixed;
  left: 0; bottom: 0;
  margin: 0;
  z-index: 40;
  padding: 0.4rem 0.8rem;
  background: var(--night);
  border-top: 1px solid var(--brass);
  border-right: 1px solid var(--brass);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  pointer-events: none;
}

/* development credit in the colophon — quieter than the legal lines above it */
.colophon__by {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ivory-faint);
  opacity: 0.75;
}
.colophon__by a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.22); }
.colophon__by a:hover { color: var(--brass); border-bottom-color: var(--brass); }

/* --------------------------------------------- display face at text sizes */

/* Several places use the display face below ~1.6rem, where even the right
   optical size reads lighter than the body text around it. In Russian the gap
   is wider: the letters come from Playfair, a sturdier face than Bodoni at the
   same nominal weight, so a heading with a number in it looked like two fonts
   fighting. Half a step of weight closes it — Bodoni Moda is variable, and
   Playfair Cyrillic 500 is already among the self-hosted files, so both sides
   of a mixed line move together. */
.cell__title,
.cell::before,
.pagehead__meta dd,
.career__years,
.project__title,
.colophon__name,
.chronicle__year {
  font-weight: 500;
}

/* The big standalone figures — "4 месяца", "1 день", "1–3 дня" — are the worst
   case: a Bodoni numeral carrying the whole meaning next to a Playfair word
   that is drawn much sturdier. 600 is a real weight on both sides, not a
   synthesised bold: Bodoni Moda is variable across 400-900, and the Playfair
   Cyrillic face is declared for 500-900, so the letters stay at their drawn
   500 while the numeral catches up to them. */
.facts__value,
.metrics__value {
  font-weight: 600;
}

/* And these figures get the text cut on purpose, against the automatic rule
   above. A standalone number at 35 px still gets a fairly display-like optical
   size from the browser, which is right for a word and wrong for a numeral
   that has to be read at a glance on a phone. Pinning the axis low gives the
   drawing made for small sizes — thicker hairlines, sturdier stems — and at
   600 the Bodoni numerals finally sit at the same colour as the Playfair
   Cyrillic words beside them. Checked against 400, 600 and 700 at opsz auto,
   14 and 8: 700 overshoots, because the Playfair face tops out at its drawn
   500 and the digits then outweigh the letters. */
.facts__value,
.metrics__value,
.chronicle__year,
.career__years,
.cell::before {
  font-variation-settings: "opsz" 14;
}

/* Digits are the thinnest shapes in a didone and the ones that have to be read
   exactly — a volume, a year, a lead time. Tabular figures also stop them
   shifting between rows in the chronology and the tables. */
.facts__value,
.metrics__value,
.career__years,
.chronicle__year,
.cell::before {
  font-variant-numeric: lining-nums tabular-nums;
}

/* ===================================================== readability layer
   Switched by "type" in content/site.json ("legible" / "classic"); set
   "classic", or delete this section, to return to the original type. Any page
   can be viewed either way with ?type=classic or ?type=legible.
   Same family, same lightness of touch: Jost is a variable font, so the body
   goes from 300 to 360 rather than to a bold, and the two greys move up until
   small text clears 4.5:1 on the night ground (the faint grey was 3.5:1). */

html.type-legible {
  --ivory-dim:   #b4b0a7;   /* was #9c988f */
  --ivory-faint: #8f8b83;   /* was #6d6a64 */
}
html.type-legible body { font-weight: 360; }

/* the smallest spaced capitals: a touch larger and one step heavier */
html.type-legible :is(.wordmark__line, .facts__label, .pagehead__meta dt,
  .split__figure figcaption, .gallery figcaption, .project__meta, .tag,
  .field label, .field legend, .colophon__label, .chronicle__role,
  .career__role, .duo__role, .lanes__together, .data thead th) {
  font-size: 0.74rem;
  font-weight: 420;
}
html.type-legible :is(.chronicle__where, .lanes__org) { font-weight: 420; }
html.type-legible :is(.lanes__years, .colophon__by) { font-size: 0.7rem; font-weight: 400; }
html.type-legible :is(.kicker, .eyebrow, .nav__list a, .langs a, .langs span,
  .lineup__status, .spec__title, .callout__title) { font-weight: 450; }

/* Footer: Konstantin Stein first — the person to write to (30 Nov 2026);
   the company's own contacts follow, quieter (not on Russian pages). */
.colophon__person { margin-top: 0; }
.colophon__person-name { font-family: var(--display); font-size: 1.25rem; color: var(--ivory); margin-bottom: .35rem !important; }
.colophon__role { font-size: .8rem; opacity: .75; line-height: 1.5; max-width: 26ch; }
.colophon__phone a { color: var(--ivory); font-size: 1.02rem; letter-spacing: .02em; }
.colophon__msg a { color: var(--ivory); }
.colophon__langs { font-size: .78rem; line-height: 1.55; color: var(--ivory-faint); max-width: 28ch; }
.colophon__company { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--hair); font-size: .85rem; }
.colophon__company p { margin-bottom: .45rem; }
.colophon__company a { color: var(--ivory-faint); }
.colophon__label--quiet { color: var(--ivory-faint); margin-bottom: .7rem; }

/* ------------------------------------------------- pagehead with a figure */
/* A lead image under the page heading (VLE renders, 30 Nov 2026): full shell
   width, natural proportions, caption set like the other figure captions. */
.pagehead__figure { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pagehead__figure img { width: 100%; height: auto; display: block; }
.pagehead__figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory-faint);
}
