/* =====================================================================
   kdeniskin.ru — Maritime Executive Dossier (rev. 2)
   Nick Velten-inspired scene mechanics · RU-first · warm milky + sea
   ===================================================================== */

:root {
  /* warm milky / sand / graphite + brass + sea */
  --paper:     #f4efe6;
  --paper-2:   #efe7d8;
  --sand:      #ece0c9;
  --sand-deep: #ddcba9;
  --milk:      #f7f3ea;   /* молочный */
  --sea-light: #e7eeee;   /* light milky with sea tint */
  --sea-tint:  #dde8e9;
  --deep:      #102a31;   /* deep maritime (dark scene) */
  --deep-2:    #163b44;
  --ink:       #1b2426;   /* graphite */
  --ink-soft:  #3d484a;
  --muted:     #7c8688;
  --brass:     #b07a3f;   /* copper-brass accent (achievements) */
  --brass-2:   #c8924f;
  --sea:       #225562;
  --sea-2:     #2f7081;
  --line:      rgba(27, 36, 38, 0.14);
  --line-2:    rgba(27, 36, 38, 0.08);

  /* ---- maritime engraving system (единый стиль всех навигационных приборов) ---- */
  --mi-line:       #225562;             /* основная гравюрная линия (морской) */
  --mi-line-soft:  rgba(34, 85, 98, .30);
  --mi-line-faint: rgba(34, 85, 98, .12);
  --mi-ink:        #0b2530;             /* тончайшие технические линии (чернильный) */
  --mi-brass:      var(--brass);        /* латунный акцент */
  --mi-fill:       #f7f1e5;             /* тёплая бумага под втулки/капсулы */
  --mi-w:          1.4;                 /* базовая толщина гравюры */
  --mi-w-fine:     1;                   /* волосяная линия */

  /* Hoefler Text не содержит кириллицы: браузер брал из него латиницу, пробелы и знаки (P&L, запятые),
     а русские буквы — из следующего шрифта, и строка заголовка собиралась из двух гарнитур. */
  --font-display: "Iowan Old Style", Constantia, Cambria, Georgia, "Times New Roman", serif;
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", Consolas, "SF Mono", ui-monospace, "Liberation Mono", monospace;

  --pad-x: clamp(18px, 5.5vw, 110px);
  --maxw: 1380px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--paper); color: var(--ink);
  line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-synthesis: none;   /* never fake-bold a missing weight (kept P&L / headings even in weight) */
}
body.smooth-scroll { overscroll-behavior-y: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.x { font-style: normal; color: var(--brass); }
::selection { background: var(--brass); color: var(--paper); }

/* Typography weight discipline — никакого случайного жирного.
   <b>/<strong> наследуют вес контекста (акцент даём цветом, не весом). */
b, strong { font-weight: inherit; }
/* Латинские аббревиатуры/названия (P&L, IT, CRM/WMS, K&S Logistics, 1C) —
   набираются ТЕМ ЖЕ шрифтом, что и окружающий текст/заголовок (никакого чужого
   sans-вкрапления): только нормальный вес и лёгкая разрядка для читаемости
   капса. Выглядят частью единой типографики, не жирнее остального. */
.ac { font-family: inherit; font-weight: inherit; font-style: normal; letter-spacing: .01em; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--font-mono); font-size: 12px; }
.skip-link:focus { left: 12px; top: 12px; }

.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; flex: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad-x);
  color: #fff; transition: background .4s var(--ease), color .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease);
}
body.scrolled .site-header { background: color-mix(in srgb, var(--paper) 90%, transparent); color: var(--ink); backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; box-shadow: 0 1px 0 var(--line-2); }
.brand { display: flex; flex-direction: column; gap: 3px; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-size: clamp(15px, 1.5vw, 19px); letter-spacing: .3px; }
.brand__mark { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.6px; opacity: .72; }

.nav { display: flex; gap: clamp(16px, 2.4vw, 38px); }
.nav a { font-family: var(--font-sans); font-weight: 600; font-size: 14px; letter-spacing: .2px; position: relative; padding: 4px 0; text-shadow: 0 1px 10px rgba(0,0,0,.32); }
body.scrolled .nav a { text-shadow: none; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brass-2); transition: width .4s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after, .nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--brass-2); }
body.scrolled .nav a.is-active { color: var(--brass); }

.nav__cta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; border: 1px solid currentColor; padding: 8px 16px; border-radius: 100px; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.nav__cta:hover { background: var(--brass); border-color: var(--brass); color: #fff; }

.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 1.6px; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 15px; } .nav__toggle span:nth-child(2) { bottom: 15px; }

@media (max-width: 900px) {
  .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { position: fixed; inset: 0 0 auto 0; flex-direction: column; gap: 8px; padding: 86px var(--pad-x) 28px; background: var(--paper); color: var(--ink); transform: translateY(-104%); transition: transform .45s var(--ease); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
  body.menu-open .nav { transform: translateY(0); }
  /* closed menu is off-screen: take its links out of Tab order / screen readers too
     (visibility flips only after the slide-out, so the animation looks the same) */
  .nav { visibility: hidden; transition: transform .45s var(--ease), visibility 0s linear .45s; }
  body.menu-open .nav { visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  body.menu-open .nav__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
  body.menu-open .nav__toggle span:nth-child(2) { bottom: 19px; transform: rotate(-45deg); }
  .nav a { font-size: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
}

/* =====================================================================
   1. HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--pad-x) 92px; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: -6%; z-index: -3; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; } /* lift horizon, keep vessel readable */
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(12,24,28,.62) 0%, rgba(12,24,28,.28) 42%, rgba(12,24,28,.05) 70%),
    linear-gradient(180deg, rgba(12,24,28,.45) 0%, rgba(12,24,28,.06) 34%, rgba(12,24,28,.18) 72%, rgba(12,24,28,.58) 100%);
}
.hero__route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__route .route-path { fill: none; stroke: rgba(255,255,255,.7); stroke-width: 1.5; stroke-dasharray: 2200; stroke-dashoffset: 2200; }
.hero__route .route-dot { fill: #fff; opacity: 0; }
.hero__route .route-dot--b { fill: var(--brass-2); }
.hero__route .route-cross path { stroke: var(--brass-2); stroke-width: 1.4; opacity: 0; }
.is-loaded .hero__route .route-path { animation: draw 2.6s var(--ease) .5s forwards; }
.is-loaded .hero__route .route-dot--a { animation: pop .5s var(--ease) 1.9s forwards; }
.is-loaded .hero__route .route-dot--b { animation: pop .5s var(--ease) 2.7s forwards; }
.is-loaded .hero__route .route-cross path { animation: pop .6s var(--ease) 2.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

.hero__coursemark { position: absolute; top: clamp(96px, 13vh, 150px); right: var(--pad-x); font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.4px; opacity: 0; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.is-loaded .hero__coursemark { animation: fade .9s var(--ease) 2.3s forwards; }
@keyframes fade { to { opacity: .82; } }

.hero__content { position: relative; z-index: 2; max-width: min(100%, 1040px); }
.hero__formula { font-family: var(--font-mono); letter-spacing: clamp(1.5px, .4vw, 4px); font-size: clamp(12px, 1.5vw, 15px); text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; }
.hero__formula .x { padding: 0 .5em; color: var(--brass-2); }
.hero__formula a { position: relative; padding: 2px 0; }
.hero__formula a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brass-2); transition: width .4s var(--ease); }
.hero__formula a:hover::after, .hero__formula a:focus-visible::after { width: 100%; }
.hero__formula--top { margin-bottom: clamp(12px, 1.8vw, 22px); }
.hero__formula--bot { margin-top: clamp(10px, 1.4vw, 18px); }
.hero__formula--bot a { display: inline-flex; align-items: center; flex-wrap: wrap; color: rgba(255,255,255,.9); }

.hero__name { font-family: var(--font-display); font-weight: 400; line-height: .92; letter-spacing: -0.01em; text-transform: uppercase; }
.hero__name .line { display: block; overflow: hidden; }
.hero__name .line__inner { display: block; font-size: clamp(2.2rem, 10.4vw, 7rem); white-space: nowrap; transform: translateY(112%); }
.hero__name .line--2 { color: var(--paper); margin-left: clamp(0px, 7vw, 130px); }
.is-loaded .hero__name .line--1 .line__inner { animation: rise 1.1s var(--ease) .25s forwards; }
.is-loaded .hero__name .line--2 .line__inner { animation: rise 1.1s var(--ease) .42s forwards; }
@keyframes rise { to { transform: translateY(0); } }

.hero__lede { font-size: clamp(15px, 1.7vw, 20px); line-height: 1.55; max-width: 50ch; margin-top: clamp(20px, 2.8vw, 36px); color: rgba(255,255,255,.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 3vw, 40px); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 1.2px; text-transform: uppercase; padding: 14px 24px; border-radius: 100px; border: 1px solid transparent; transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.btn--solid { background: var(--brass); color: #fff; }
.btn--solid:hover { background: var(--ink); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: rgba(255,255,255,.10); border-color: var(--brass-2); color: #fff; transform: translateY(-2px); outline: none; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn__arrow { transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn__ext { font-size: 9.5px; border: 1px solid currentColor; border-radius: 3px; padding: 1px 5px; opacity: .8; }

.hero__scroll { position: absolute; left: var(--pad-x); bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 2.4px; }
.hero__scroll-line { width: 50px; height: 1px; background: rgba(255,255,255,.7); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--brass-2); transform: translateX(-100%); animation: slide 2.2s var(--ease) infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }

/* =====================================================================
   TICKER
   ===================================================================== */
.ticker { background: var(--deep); color: var(--paper); overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); }
.ticker__track { display: flex; width: max-content; animation: ticker 52s linear infinite; }
.ticker__set { display: inline-flex; align-items: center; padding: 12px 0; white-space: nowrap; }
.ticker__set a { font-family: var(--font-mono); font-size: clamp(12px, 1.3vw, 13.5px); letter-spacing: 2px; text-transform: uppercase; padding: 4px 0; position: relative; color: rgba(244,239,230,.86); transition: color .3s var(--ease); }
.ticker__set a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--brass-2); transition: width .35s var(--ease); }
.ticker__set a:hover, .ticker__set a:focus-visible { color: #fff; outline: none; }
.ticker__set a:hover::after, .ticker__set a:focus-visible::after { width: 100%; }
.ticker__set i { color: var(--brass-2); padding: 0 16px; font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }

/* =====================================================================
   SCENE / SECTION SYSTEM
   ===================================================================== */
/* Full-bleed scenes: background spans the whole viewport width,
   content is constrained to --maxw and centred via fluid side padding. */
/* Scenes stack like sheets laid over one another: each scene is opaque, sits
   above the previous one (z-index set in JS) and casts a soft shadow from its
   leading (top) edge onto the scene beneath. The JS overlay engine then lets
   the outgoing scene linger beneath while the next slides over it. */
.scene { position: relative; box-shadow: 0 -22px 46px -30px rgba(11,27,33,.34); }
.scene--deep { box-shadow: 0 -26px 54px -28px rgba(0,0,0,.55); }
.site-footer, .ticker { position: relative; }
.scene--paper { background: var(--paper); }
.scene--milk { background: var(--milk); }
.scene--sand { background: var(--sand); }
.scene--sea-light { background: linear-gradient(180deg, var(--sea-tint) 0%, var(--sea-light) 60%, var(--paper) 100%); }
.scene--chart { background: var(--sand); }
.scene--chart::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(to right, rgba(34,85,98,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,85,98,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 100%);
}
.scene--deep { background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--paper); }
.scene--deep .section__title { color: var(--paper); }
.scene--deep .lede { color: rgba(244,239,230,.78); }

.section { position: relative; padding-block: clamp(48px, 6vw, 100px); padding-inline: max(var(--pad-x), calc((100% - var(--maxw)) / 2)); }
.section__index { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(24px, 3.4vw, 48px); }
.section__index .num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; color: var(--brass); }
.scene--deep .section__index .num { color: var(--brass-2); }
.section__index .rule { width: clamp(36px, 7vw, 100px); height: 1px; background: var(--line); }
.scene--deep .section__index .rule { background: rgba(255,255,255,.2); }
.section__index .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.scene--deep .section__index .tag { color: rgba(244,239,230,.55); }

.section__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 5.1vw, 4.4rem); line-height: 1.0; letter-spacing: -0.014em; color: var(--ink); }
.lede { font-size: clamp(16px, 1.9vw, 22px); line-height: 1.5; color: var(--ink-soft); max-width: 44ch; }
.section__title + .lede, .section__title + .control__intro, .section__title + .formats__intro, .section__title + .method__lede, .section__title + .contact__intro { margin-top: clamp(18px, 2.6vw, 34px); }

/* =====================================================================
   2. PROFILE
   ===================================================================== */
.profile__grid { display: grid; grid-template-columns: minmax(0,0.9fr) minmax(0,1.1fr); gap: clamp(28px, 5.5vw, 88px); align-items: center; }
.profile__portrait { position: relative; align-self: start; }
.profile__portrait picture, .profile__portrait img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--sand); }
.profile__portrait::before { content: ""; position: absolute; inset: -14px -14px 22px 22px; z-index: -1; background: linear-gradient(135deg, var(--sand) 0%, var(--paper-2) 100%); }
.profile__portrait::after { content: ""; position: absolute; inset: -14px; border: 1px solid var(--brass); opacity: .5; pointer-events: none; }
.profile__caption { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.4px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.profile__caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.profile__roles { margin-top: clamp(22px, 3vw, 34px); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.profile__roles li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-soft); }
.profile__roles .ic { color: var(--sea); }
.profile__start { margin-top: 20px; font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-soft); max-width: 48ch; line-height: 1.6; }
.profile__body .btn--line { margin-top: clamp(22px, 3vw, 32px); }
@media (max-width: 860px) { .profile__grid { grid-template-columns: 1fr; gap: 34px; } .profile__portrait { max-width: 380px; } }

/* =====================================================================
   3. CONTROL — Управляемость как система (орбитальная навигационная схема)
   ===================================================================== */
.control__intro { color: var(--ink-soft); max-width: 54ch; }

/* One integrated system: compass in the centre, nine contours on its orbit.
   Never a side table. Thin guide rings tie the labels to the instrument. */
.control__system { position: relative; width: min(100%, 820px); aspect-ratio: 1 / 1; margin: clamp(-40px, -3.4vw, -12px) auto 0; color: var(--sea); }
.control__system::before, .control__system::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }
.control__system::before { width: 74%; aspect-ratio: 1; border: 1px dashed rgba(34, 85, 98, .22); }
.control__system::after { width: 60%; aspect-ratio: 1; border: 1px solid rgba(34, 85, 98, .12); }

.control__center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 60%; aspect-ratio: 1 / 1; }
.control__core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 600; font-size: clamp(.9rem, 1.95vw, 1.81rem); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); text-align: center; width: auto; white-space: nowrap; line-height: 1.06; -webkit-text-stroke: 0.4px currentColor; text-shadow: 0 0 6px rgba(228,236,234,.95), 0 0 2px rgba(228,236,234,.95); }

.control__orbit { position: absolute; inset: 0; pointer-events: none; }
.control__node { position: absolute; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 10.5em; font-size: clamp(12px, .92vw, 13.5px); line-height: 1.18; color: var(--ink-soft); pointer-events: auto; transition: color .35s var(--ease); }
.control__node .ic { display: none; width: 1.3em; height: 1.3em; color: var(--sea); flex: none; }
.control__node:hover { color: var(--ink); }
.control__c-no { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--brass); }
.control__c-name { min-width: 0; }
.control__node--c { transform: translate(-50%, -50%); text-align: center; align-items: center; }
.control__node--r { transform: translate(2px, -50%); text-align: left; align-items: flex-start; }
.control__node--l { transform: translate(-100%, -50%) translateX(-2px); text-align: right; align-items: flex-end; }

/* tablet / mobile (the sensitive 768–1000 zone): compass on top, contours as a
   clean centred ledger directly beneath it — integrated, never a side table */
@media (max-width: 1000px) {
  .control__system { aspect-ratio: auto; width: 100%; max-width: 560px; }
  .control__system::before, .control__system::after { display: none; }
  .control__center { position: relative; left: auto; top: auto; transform: none; width: min(280px, 64%); margin: 0 auto clamp(22px, 4vw, 34px); }
  .control__orbit { position: static; inset: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .control__node { position: static; transform: none !important; max-width: none; width: auto; flex-direction: row; align-items: center; text-align: left; gap: 10px; padding: clamp(11px, 2.4vw, 15px) clamp(12px, 2vw, 16px); background: color-mix(in srgb, var(--paper) 70%, #fff); font-size: clamp(12.5px, 1.5vw, 14px); }
  .control__node .ic { display: block; }
  /* 9 пунктов в 2 колонки: последний на всю ширину, без пустой серой ячейки */
  .control__orbit > .control__node:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .control__orbit { grid-template-columns: 1fr; } }

/* =====================================================================
   4. FORMATS — Форматы взаимодействия
   ===================================================================== */
.formats__intro { color: var(--ink-soft); max-width: 52ch; }
.formats__list { margin: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 44px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 860px) { .formats__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .formats__list { grid-template-columns: 1fr; } }
.formats__list li { display: flex; }
.format { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: clamp(18px, 2.4vw, 26px) clamp(16px, 2vw, 24px); background: var(--paper); font-size: clamp(15px, 1.6vw, 18px); color: var(--ink); transition: background .4s var(--ease), color .4s var(--ease); }
.format span:nth-child(2) { flex: 1; line-height: 1.3; }
.format:hover, .format:focus-visible { background: #fff; outline: none; }
.format .ic { width: 1.5em; height: 1.5em; color: var(--brass); flex: none; }
.format__go { font-family: var(--font-mono); color: var(--brass); opacity: .45; transform: translateX(0); transition: opacity .3s var(--ease), transform .3s var(--ease); flex: none; }
.format:hover .format__go, .format:focus-visible .format__go { opacity: 1; transform: translateX(4px); }
.format.is-active { background: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.format.is-active .format__go { opacity: 1; }

/* =====================================================================
   5. TRACK RECORD — Опыт и масштаб
   ===================================================================== */
.track__axis { width: 100%; height: 44px; margin: clamp(18px,3vw,34px) 0 clamp(20px,3vw,40px); overflow: visible; }
.track__axis .axis-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 1300; stroke-dashoffset: 1300; }
.track__axis .axis-nodes circle { fill: var(--brass); opacity: 0; }
.track.in-view .axis-line { animation: draw 1.6s var(--ease) forwards; }
.track.in-view .axis-nodes circle { animation: pop .5s var(--ease) forwards; }
.track.in-view .axis-nodes circle:nth-child(1) { animation-delay: .6s; }
.track.in-view .axis-nodes circle:nth-child(2) { animation-delay: .9s; }
.track.in-view .axis-nodes circle:nth-child(3) { animation-delay: 1.2s; }
.track.in-view .axis-nodes circle:nth-child(4) { animation-delay: 1.5s; }

/* readable noble stats — brass, tabular figures, never overflowing a card */
.track__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 32px) clamp(16px, 1.7vw, 22px); background: var(--paper); transition: background .4s var(--ease); min-width: 0; }
.stat:hover { background: var(--paper-2); }
.stat__num { font-family: var(--font-display); font-weight: 400; line-height: 1.02; font-size: clamp(1.5rem, 2.15vw, 1.95rem); letter-spacing: -0.02em; color: var(--brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__num i { font-size: .5em; color: var(--brass-2); margin-left: .14em; letter-spacing: .02em; font-style: normal; }
.stat__cap { font-size: clamp(12.5px, 1.25vw, 14.5px); color: var(--ink-soft); line-height: 1.4; padding-top: 8px; border-top: 1px solid var(--line-2); }
@media (max-width: 380px) { .stat__num { font-size: 1.5rem; } }

.track__rows { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: 0; border-top: 1px solid var(--line); }
.track__row { display: grid; grid-template-columns: clamp(96px,12vw,150px) 1fr; gap: 18px; align-items: baseline; padding: clamp(14px,2vw,20px) 0; border-bottom: 1px solid var(--line); }
.track__row-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.track__row-v { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; color: var(--ink); }
.track__row-v .x { color: var(--brass); padding: 0 .25em; font-size: .8em; }
@media (max-width: 560px) { .track__row { grid-template-columns: 1fr; gap: 4px; } }

/* =====================================================================
   6. EXPERTISE — Зоны экспертизы (deep scene)
   ===================================================================== */
.expertise__list { margin-top: clamp(18px, 3vw, 38px); border-top: 1px solid var(--line); }
.exp { display: grid; grid-template-columns: 54px 40px 1fr; gap: clamp(12px, 2vw, 30px); align-items: start; padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.exp:hover { background: rgba(34,85,98,.04); }
.exp__no { font-family: var(--font-mono); font-size: 13px; color: var(--brass); padding-top: .5em; }
.exp__ic { width: 30px; height: 30px; color: var(--sea); }
.exp h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 2.3vw, 1.95rem); line-height: 1.08; letter-spacing: -0.005em; color: var(--ink); font-variant-numeric: lining-nums; }
.exp p { margin-top: 8px; font-size: clamp(13px, 1.4vw, 16px); color: var(--ink-soft); max-width: 60ch; line-height: 1.55; }
.exp:target { background: rgba(176,122,63,.1); }
@media (max-width: 600px) { .exp { grid-template-columns: 40px 1fr; } .exp__ic { display: none; } }

/* =====================================================================
   7b. PROJECTS — Сложные проекты (deep scene)
   ===================================================================== */
.projects__intro { color: rgba(244,239,230,.78); max-width: 52ch; }
.projects__grid { margin: clamp(28px, 4vw, 52px) 0 clamp(28px,4vw,44px); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); }
.proj { background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); padding: clamp(24px, 3vw, 36px); transition: background .4s var(--ease); container-type: inline-size; }
.proj:hover { background: linear-gradient(180deg, #143540 0%, #1b4651 100%); }
.proj__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--brass-2); }
.proj__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.05; letter-spacing: -0.01em; color: var(--paper); margin: 10px 0 12px; overflow-wrap: break-word; }
/* узкая карточка (4 колонки на ~1260–1300 px): длинное слово «Международные» не должно выходить за поля */
@container (max-width: 230px) { .proj__title { font-size: 1.75rem; } }
.proj p { font-size: clamp(13px, 1.4vw, 15.5px); color: rgba(244,239,230,.74); line-height: 1.6; }
.scene--deep .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }

/* =====================================================================
   7. BROAD — Широкий кругозор (collage)
   ===================================================================== */
.broad__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.broad__collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.broad__collage li { display: flex; align-items: center; gap: 12px; padding: clamp(14px, 2vw, 22px) clamp(12px, 1.6vw, 20px); background: var(--sea-light); font-size: clamp(13px, 1.4vw, 15.5px); color: var(--ink-soft); transition: background .4s var(--ease); }
.broad__collage .ic { width: 1.5em; height: 1.5em; color: var(--sea); }
.broad__collage .broad__spacer { visibility: hidden; pointer-events: none; }
.broad__collage .broad__artel-item { grid-column: 1 / -1; padding: 0; }
.broad__artel-link { min-height: 100%; width: 100%; display: grid; grid-template-columns: auto minmax(0,.72fr) minmax(0,1fr) auto; align-items: center; gap: 12px 22px; padding: clamp(16px, 2vw, 22px) clamp(12px, 1.6vw, 20px); color: inherit; text-decoration: none; transition: background .3s var(--ease); }
.broad__artel-link .ic { flex: 0 0 auto; }
.broad__artel-link > span, .broad__artel-link small { min-width: 0; overflow-wrap: anywhere; }
.broad__artel-link small { color: var(--muted); font-size: clamp(12px,1.1vw,13px); line-height: 1.45; }
.broad__artel-arrow { margin-left: auto; color: var(--brass); font-size: 1.1em; transition: transform .25s var(--ease); }
.broad__artel-link:hover { background: #fff; }
.broad__artel-link:hover .broad__artel-arrow { transform: translateX(3px); }
.broad__artel-link:focus-visible { outline: 2px solid var(--brass); outline-offset: -3px; }
@media (max-width: 820px) { .broad__grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 460px) { .broad__collage { grid-template-columns: 1fr; } .broad__collage .broad__spacer { display: none; } }
/* Исправление переполнения: в две колонки (821–1199px) минимальные ширины не помещаются. */
@media (min-width: 821px) and (max-width: 1199px) { .broad__artel-link { grid-template-columns: auto minmax(0,.72fr) minmax(0,1fr) auto; } }
@media (max-width: 620px) { .broad__artel-link { grid-template-columns: auto 1fr auto; } .broad__artel-link small { grid-column: 2 / -1; } }

/* =====================================================================
   8. CASES — accordion
   ===================================================================== */
.cases__list { margin-top: clamp(18px, 3vw, 40px); border-top: 1px solid var(--line); }
.case { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 3vw, 50px); padding: clamp(20px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); transition: padding-left .4s var(--ease), background .4s var(--ease); }
.case:hover, .case:focus-visible { padding-left: clamp(8px, 1.6vw, 24px); outline: none; }
.case__no { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 4vw, 3.2rem); line-height: .82; color: var(--sand-deep); font-variant-numeric: lining-nums; transition: color .4s var(--ease); }
.case:hover .case__no, .case:focus-visible .case__no { color: var(--brass); }
.case__body { display: grid; gap: 6px; }
.case__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 1.85rem); line-height: 1.12; letter-spacing: -0.005em; }
.case__desc { font-size: clamp(13px, 1.4vw, 16px); color: var(--ink-soft); line-height: 1.45; max-width: 50ch; }
.case__arrow { font-size: clamp(20px, 2.4vw, 28px); color: var(--ink); transition: transform .4s var(--ease), color .4s var(--ease); }
.case:hover .case__arrow, .case:focus-visible .case__arrow { color: var(--brass); transform: translateX(6px); }
@media (max-width: 600px) { .case { grid-template-columns: auto 1fr; } .case__arrow { grid-column: 2; justify-self: end; margin-top: 4px; } }

/* =====================================================================
   9. METHOD — Как я работаю
   ===================================================================== */
.method__lede { color: var(--ink-soft); max-width: 46ch; }
.method__route { position: relative; margin-top: clamp(30px, 5vw, 64px); }
/* Unified maritime line-art — ОДИН стиль для всех навигационных приборов
   (секстант #method, астролябия #why): тонкая линия, sea + латунный акцент. */
.mi-frame { stroke: var(--mi-line); stroke-width: var(--mi-w); }
.mi-soft { stroke: var(--mi-line-soft); stroke-width: var(--mi-w-fine); }
/* градуированная шкала: stroke на ГРУППЕ, чтобы наследовался и <path>, и <use> */
.mi-tick { stroke: var(--mi-ink); stroke-width: var(--mi-w-fine); opacity: .5; fill: none; }
.mi-arm { stroke: var(--mi-brass); stroke-width: var(--mi-w); }
.mi-mirror { fill: rgba(176,122,63,.14); stroke: var(--mi-brass); stroke-width: 1.2; }
.mi-dot { fill: var(--mi-brass); stroke: none; }
.mi-hub { fill: var(--mi-fill); stroke: var(--mi-line); stroke-width: var(--mi-w); }
/* картографические элементы той же серии (раздел 05) */
.mi-rhumb { stroke: var(--mi-line-soft); stroke-width: var(--mi-w-fine); fill: none; }
.mi-route { stroke: var(--mi-brass); stroke-width: 1.3; stroke-dasharray: 1 4.2; stroke-linecap: round; fill: none; opacity: .8; }
.mi-node { fill: var(--mi-fill); stroke: var(--mi-brass); stroke-width: 1.2; }
.mi-star { fill: var(--mi-ink); stroke: none; opacity: .5; }

/* =====================================================================
   ЕДИНАЯ СЕРИЯ МОРСКИХ ПРИБОРОВ — декоративные гравюры в углах секций
   03 подзорная труба · 07 астролябия · 09 секстант · 11 судовой телеграф
   Один художественный язык: токены mi-* (морская линия + волосяные + латунь).
   ===================================================================== */
.sea-figure { position: absolute; width: clamp(104px, 12vw, 150px); height: auto; pointer-events: none; opacity: var(--fig-op, .42); transform-origin: 50% 30%; z-index: 0; }
@media (prefers-reduced-motion: no-preference) {
  .section.is-visible .sea-figure { animation: figureSettle 2.6s var(--ease) .25s 1 both; }
}
@keyframes figureSettle {
  0%   { opacity: 0;                transform: rotate(-5deg) scale(.98); }
  60%  { opacity: var(--fig-op, .42); transform: rotate(2deg)  scale(1);  }
  100% { opacity: var(--fig-op, .42); transform: rotate(0deg)  scale(1);  }
}
/* гравюра адаптирует чернила к тёмной плашке (Section 07), не выходя из серии */
.scene--deep .mi-frame    { stroke: rgba(244,239,230,.60); }
.scene--deep .mi-soft     { stroke: rgba(244,239,230,.20); }
.scene--deep .mi-tick     { stroke: rgba(244,239,230,.50); }
.scene--deep .mi-hub      { fill: var(--deep-2); stroke: rgba(244,239,230,.60); }
/* посекционное размещение — каждая в свободной смысловой зоне, не над текстом */
.projects__instrument { top: clamp(30px, 4.5vw, 70px); right: var(--pad-x); --fig-op: .5; }
.cases__instrument    { top: clamp(28px, 4.5vw, 62px); right: var(--pad-x); }
.contact__instrument  { top: clamp(22px, 3.5vw, 52px); right: var(--pad-x); width: clamp(84px, 9vw, 116px); --fig-op: .3; }
@media (max-width: 820px) { .sea-figure { display: none !important; } }

/* Course as its own background band ABOVE the steps — does not cross text */
.method__band { position: relative; height: clamp(76px, 10vw, 120px); margin-bottom: clamp(10px, 2vw, 22px); }
.method__chart { position: absolute; inset: 0; width: 100%; height: 100%; }
.method__chart .method-path { fill: none; stroke: var(--brass); stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 2200; stroke-dashoffset: 2200; }
.method.in-view .method__chart .method-path { animation: draw 2.4s var(--ease) .2s forwards; }
/* a bright course marker that keeps travelling along the drawn route — "live" */
.method__chart .method-flow { fill: none; stroke: var(--brass-2); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 46 954; stroke-dashoffset: 1000; opacity: 0; }
.method.in-view .method__chart .method-flow { opacity: .95; animation: methodFlow 3.4s linear 2.3s infinite; }
@keyframes methodFlow { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.method__pin { position: absolute; top: 0; left: var(--p); transform: translateX(-50%) translateY(8px); display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.method.in-view .method__pin { opacity: 1; transform: translateX(-50%) translateY(0); }
.method.in-view .method__pin:nth-of-type(1) { transition-delay: .6s; }
.method.in-view .method__pin:nth-of-type(2) { transition-delay: .9s; }
.method.in-view .method__pin:nth-of-type(3) { transition-delay: 1.2s; }
.method.in-view .method__pin:nth-of-type(4) { transition-delay: 1.5s; }
.method__pin::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); border: 1.8px solid var(--brass); transition: transform .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.method__pin b { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: 1.6px; color: var(--muted); white-space: nowrap; transition: color .35s var(--ease); }
.method__pin.is-active b { color: var(--brass); }
.method__pin.is-active::after { background: var(--brass); transform: scale(1.45); box-shadow: 0 0 0 5px rgba(176,122,63,.16); }

/* live course marker travelling along the drawn route */
.method__runner { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--brass-2); box-shadow: 0 0 0 4px rgba(200,146,79,.18), 0 2px 6px rgba(0,0,0,.22); opacity: 0; transition: opacity .6s var(--ease); }
.method.in-view .method__runner { opacity: 1; transition-delay: 1.8s; }
.method__runner.is-pulse { animation: runnerPulse .7s var(--ease); }
@keyframes runnerPulse { 0% { transform: scale(1); } 42% { transform: scale(1.8); } 100% { transform: scale(1); } }

.method__steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2.2vw, 36px); }
.step { padding-top: clamp(10px, 1.5vw, 18px); border-top: 1px solid var(--line); transition: background .4s var(--ease); }
.step.is-active { background: rgba(176,122,63,.08); box-shadow: inset 0 2px 0 var(--brass); }
.step__no { font-family: var(--font-mono); font-size: 12px; color: var(--brass); letter-spacing: 1.5px; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 2rem); margin: 8px 0 8px; line-height: 1.05; }
.step p { font-size: clamp(13px, 1.3vw, 15px); color: var(--ink-soft); line-height: 1.5; max-width: 26ch; }
.method__formula { margin-top: clamp(38px, 6vw, 76px); font-family: var(--font-mono); font-size: clamp(12px, 1.4vw, 15px); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); text-align: center; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.method__formula .x { color: var(--brass); padding: 0 .4em; }
.method__word { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink-soft); position: relative; padding: 4px 2px; transition: color .3s var(--ease); }
.method__word::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.method__word:hover, .method__word:focus-visible { color: var(--ink); outline: none; }
.method__word:hover::after, .method__word:focus-visible::after, .method__word.is-active::after { transform: scaleX(1); }
.method__word.is-active { color: var(--brass); }
@media (max-width: 820px) { .method__steps { grid-template-columns: 1fr 1fr; gap: 28px; } .method__band { display: none; } }
@media (max-width: 440px) { .method__steps { grid-template-columns: 1fr; } }

/* =====================================================================
   10. CONTACT + FORM
   ===================================================================== */
.contact__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.contact__intro { color: var(--ink-soft); max-width: 34ch; }
.contact__lines { margin-top: clamp(24px, 3vw, 38px); border-top: 1px solid var(--line); }
.contact__lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: clamp(14px, 2vw, 22px) 0; border-bottom: 1px solid var(--line); }
.contact__lines .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.contact__lines .v { font-family: var(--font-sans); font-weight: 500; font-size: clamp(15px, 1.5vw, 18px); color: var(--ink-soft); position: relative; }
.contact__lines .v::after { content: ""; position: absolute; left: 0; bottom: 2px; height: 1px; width: 0; background: var(--brass); transition: width .4s var(--ease); }
.contact__lines .v:hover { color: var(--brass); } .contact__lines .v:hover::after { width: 100%; }
.contact__quick { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); }

/* Форма без внешней рамки; padding-top опускает контент ниже прибора (судового телеграфа). */
.contact__form { padding-top: 70px; }
@media (max-width: 860px) { .contact__form { padding-top: 0; } }
.form__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--brass); margin-bottom: 18px; max-width: 340px; margin-left: auto; }
.form__inner { border: 1px solid var(--line); padding: 20px; max-width: 340px; margin-left: auto; }
@media (max-width: 860px) { .form__title { max-width: none; margin-left: 0; } .form__inner { max-width: none; margin-left: 0; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 7px; }
.field label span { color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; background: #fffdf8; border: 1px solid rgba(27,36,38,.28); border-radius: 6px; color: var(--ink); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(34,85,98,.12); }
.field input:-webkit-autofill, .field textarea:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fffdf8 inset; box-shadow: 0 0 0 1000px #fffdf8 inset; -webkit-text-fill-color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.field.invalid input, .field.invalid textarea { border-color: #b5483b; box-shadow: 0 0 0 3px rgba(181,72,59,.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__submit { margin-top: 6px; }
.form__status { margin-top: 14px; font-size: 14px; min-height: 1.2em; }
.form__status.ok { color: var(--sea); } .form__status.err { color: #b5483b; }

.contact__resumes { margin-top: clamp(44px, 6vw, 88px); border-top: 1px solid var(--line); padding-top: clamp(22px, 3vw, 38px); }
.contact__resumes-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--brass); }
.contact__resumes ul { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.contact__resumes li { border-bottom: 1px solid var(--line-2); }
.contact__resumes a { display: block; padding: 13px 0; font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-soft); transition: color .3s var(--ease), padding-left .3s var(--ease); }
.contact__resumes a::before { content: "→ "; color: var(--brass); opacity: 0; transition: opacity .3s var(--ease); }
.contact__resumes a:hover { color: var(--ink); padding-left: 8px; } .contact__resumes a:hover::before { opacity: 1; }
@media (max-width: 860px) { .contact__grid { grid-template-columns: 1fr; gap: 34px; } .contact__resumes ul { grid-template-columns: 1fr; } }

/* =====================================================================
   CASE PAGES (case-*.html)
   ===================================================================== */
.case-hero { position: relative; padding: clamp(120px, 16vh, 200px) var(--pad-x) clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--deep) 0%, var(--deep-2) 100%); color: var(--paper); overflow: hidden; }
.case-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(120% 100% at 85% 0%, #000, transparent 70%); mask-image: radial-gradient(120% 100% at 85% 0%, #000, transparent 70%); }
.case-hero__in { position: relative; max-width: var(--maxw); margin: 0 auto; }
.case-back { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(244,239,230,.7); margin-bottom: clamp(22px, 3vw, 38px); transition: color .3s var(--ease); }
.case-back span { transition: transform .3s var(--ease); }
.case-back:hover { color: #fff; } .case-back:hover span { transform: translateX(-4px); }
.case-hero__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--brass-2); }
.case-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 5rem); line-height: .98; letter-spacing: -0.015em; margin: 16px 0 18px; }
.case-hero__lede { font-size: clamp(15px, 1.8vw, 20px); line-height: 1.5; color: rgba(244,239,230,.86); max-width: 60ch; }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin-top: clamp(26px, 3.4vw, 40px); }
/* clickable thematic chips — pill affordance, real anchors */
.case-meta a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 100px; color: rgba(244,239,230,.85); transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease); }
.case-meta a b { color: var(--brass-2); font-weight: 400; }
.case-meta a:hover, .case-meta a:focus-visible { border-color: var(--brass-2); color: #fff; background: rgba(255,255,255,.06); outline: none; }
/* non-clickable facts — plain metadata labels, never styled like a button */
.case-meta span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.2px; color: rgba(244,239,230,.7); padding: 8px 0; }
.case-meta span b { color: var(--brass-2); font-weight: 400; }

.case-doc { max-width: 860px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad-x); }
.case-block { margin-bottom: clamp(36px, 5vw, 64px); }
.case-block:last-child { margin-bottom: 0; }
.case-block__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.5px; color: var(--brass); }
.case-block h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.01em; margin: 8px 0 16px; color: var(--ink); }
.case-block p { font-size: clamp(15px, 1.6vw, 18px); line-height: 1.65; color: var(--ink-soft); margin-bottom: 14px; }
.case-block p:last-child { margin-bottom: 0; }
.case-points { margin-top: 18px; border-top: 1px solid var(--line); }
.case-points li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-points li::before { content: "×"; color: var(--brass); font-size: 1.1em; }
.case-points li b { color: var(--ink); }
.case-points span { font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-soft); line-height: 1.55; }
.case-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: clamp(36px, 5vw, 60px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.case-nav { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 22px; }
.case-nav a { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); transition: color .3s var(--ease); }
.case-nav a:hover { color: var(--brass); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 14px; padding: 38px var(--pad-x); background: var(--deep); color: var(--paper); }
.site-footer__name { font-family: var(--font-display); font-size: clamp(1.1rem, 2.4vw, 1.7rem); letter-spacing: .6px; }
.site-footer__line { font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: rgba(244,239,230,.6); }
.site-footer__line .x { color: var(--brass-2); padding: 0 .3em; }
.site-footer__year { font-family: var(--font-mono); font-size: 11px; color: rgba(244,239,230,.5); }

/* =====================================================================
   REVEAL (scene kinematics)
   ===================================================================== */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .75s var(--ease); will-change: transform, opacity; }
.is-visible .reveal-up, .reveal-up.is-visible { opacity: 1; transform: none; }
.is-visible .reveal-up:nth-child(1) { transition-delay: .04s; }
.is-visible .reveal-up:nth-child(2) { transition-delay: .12s; }
.is-visible .reveal-up:nth-child(3) { transition-delay: .2s; }
.is-visible .reveal-up:nth-child(4) { transition-delay: .28s; }
.is-visible .reveal-up:nth-child(5) { transition-delay: .36s; }
.is-visible .reveal-up:nth-child(6) { transition-delay: .44s; }
.is-visible .reveal-up:nth-child(7) { transition-delay: .52s; }
.is-visible .reveal-up:nth-child(8) { transition-delay: .6s; }

/* hero intro reveal sequencing */
.is-loaded .hero__formula--top { opacity: 1; transform: none; transition-delay: .6s; }
.is-loaded .hero__formula--bot { opacity: 1; transform: none; transition-delay: 1s; }
.is-loaded .hero__lede { opacity: 1; transform: none; transition-delay: 1.25s; }
.is-loaded .hero__cta .btn:nth-child(1) { opacity: 1; transform: none; transition-delay: 1.5s; }
.is-loaded .hero__cta .btn:nth-child(2) { opacity: 1; transform: none; transition-delay: 1.65s; }

/* no-JS: show everything */
.no-js .reveal-up { opacity: 1; transform: none; }
.no-js .hero__name .line__inner { transform: none; }
.no-js .route-path, .no-js .method-path, .no-js .axis-line, .no-js .orb { stroke-dashoffset: 0; }
.no-js .route-dot, .no-js .route-cross path, .no-js .axis-nodes circle, .no-js .method-nodes circle, .no-js .hero__coursemark, .no-js .control__nodes li > span { opacity: 1; }
.no-js .nav { position: static; transform: none; flex-direction: row; background: none; box-shadow: none; padding: 0; }
.no-js .ticker__track { animation: none; }
.no-js .section__title { clip-path: none; }
.no-js .hero__ship { opacity: 1; }

/* =====================================================================
   SCENE TRANSITION OVERLAY (route sweep on navigation)
   ===================================================================== */
.route-veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; visibility: hidden; opacity: 0; background: linear-gradient(120deg, var(--deep) 0%, var(--deep-2) 100%); clip-path: inset(0 100% 0 0); }
.route-veil.is-active { visibility: visible; opacity: 1; animation: veilSweep .9s var(--ease) forwards; }
@keyframes veilSweep {
  0%   { clip-path: inset(0 100% 0 0); }
  44%  { clip-path: inset(0 0 0 0); }
  60%  { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
.route-veil__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-veil__path { fill: none; stroke: var(--brass-2); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; }
.route-veil.is-active .route-veil__path { animation: draw .85s var(--ease) forwards; }
.route-veil__node { fill: var(--brass-2); opacity: 0; }
.route-veil.is-active .route-veil__node { animation: pop .4s var(--ease) .42s forwards; }
.route-veil__label { position: absolute; left: 50%; top: 54%; transform: translate(-50%,-50%); font-family: var(--font-mono); font-size: 12px; letter-spacing: 5px; color: rgba(244,239,230,.92); opacity: 0; }
.route-veil.is-active .route-veil__label { animation: veilLabel .6s var(--ease) .3s forwards; }
@keyframes veilLabel { from { opacity: 0; letter-spacing: 12px; } to { opacity: 1; letter-spacing: 5px; } }

/* =====================================================================
   HERO — course ship + stars (along the white route)
   ===================================================================== */
.hero__ship { opacity: 0; }
.hero__ship-sail { fill: #fff; }
.hero__ship-jib { fill: rgba(255,255,255,.82); }
.hero__ship-hull { fill: var(--brass-2); }
.hero__ship-mast { fill: none; stroke: rgba(255,255,255,.85); stroke-width: 1; stroke-linecap: round; }
.hero__ship-wake { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1 4; }
.is-loaded .hero__ship { opacity: .96; transition: opacity .8s var(--ease) 2.4s; }
.hero__star path { fill: #fff; }
.hero__star { opacity: 0; }
.is-loaded .hero__star { animation: twinkle 5s ease-in-out 2.6s infinite; }
.is-loaded .hero__star--2 { animation-delay: 3.6s; }
@keyframes twinkle { 0%,100% { opacity: .15; } 50% { opacity: .8; } }

/* =====================================================================
   CONTROL — executive-compass.svg (inlined) + cursor needle
   ===================================================================== */
.control__compass { position: absolute; inset: 0; width: 100%; height: 100%; }
.control__compass .ec-faint { stroke: var(--mi-line-faint); fill: none; stroke-width: var(--mi-w-fine); }
.control__compass .ec-soft  { stroke: var(--mi-line-soft); fill: none; stroke-width: var(--mi-w-fine); }
.control__compass .ec-ink   { stroke: var(--mi-ink); fill: none; opacity: .5; stroke-width: var(--mi-w); }
.control__compass .ec-ink-fill { fill: rgba(11,37,48,.04); stroke: var(--mi-ink); stroke-width: var(--mi-w); }
.control__compass .ec-sea-fill { fill: rgba(34,85,98,.05); stroke: var(--mi-line); stroke-width: var(--mi-w); }
.control__compass .ec-route { fill: none; stroke: var(--mi-brass); stroke-width: 1.6; stroke-linecap: round; opacity: .8; }
.control__compass .ec-route-end { fill: var(--mi-fill); stroke: var(--mi-brass); stroke-width: 1.6; }
.control__compass .ec-card text { fill: rgba(11,37,48,.5); font-family: var(--font-display); font-size: 30px; letter-spacing: .04em; }
.control__compass .ec-needle-shadow { fill: var(--mi-ink); opacity: .14; }
.control__compass .ec-needle-main { fill: var(--mi-line); }
.control__compass .ec-needle-brass { fill: var(--mi-brass); }
.control__compass .ec-cap { fill: var(--mi-fill); stroke: var(--mi-ink); stroke-width: var(--mi-w); }
.control__compass .ec-cap-dot { fill: var(--mi-brass); }
#compass-needle { transform-box: view-box; transform-origin: 320px 320px; transition: transform .55s var(--ease); }
.control__core { background: radial-gradient(closest-side, color-mix(in srgb, var(--sea-light) 92%, transparent) 62%, transparent 100%); padding: 14px 10px; border-radius: 50%; }
.control__core::after { display: none; }

/* =====================================================================
   FORMATS — featured route-card
   ===================================================================== */
.formats__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 40px); padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); border: 1px solid var(--line); background: linear-gradient(120deg, #fff 0%, var(--paper) 100%); transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease); }
.formats__card:hover, .formats__card:focus-visible { border-color: color-mix(in srgb, var(--brass) 55%, var(--line)); box-shadow: 0 18px 44px -30px rgba(27,36,38,.6); outline: none; }
.formats__card-rail { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.formats__card-step { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.formats__card-dash { width: clamp(12px, 3vw, 30px); height: 1px; background: var(--brass); opacity: .55; }
.formats__card-main { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 2vw, 28px); }
.formats__card-line { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.22; color: var(--ink); max-width: 22ch; }
.formats__card-cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.formats__card-cta .btn__arrow { transition: transform .35s var(--ease); }
.formats__card:hover .btn__arrow, .formats__card:focus-visible .btn__arrow { transform: translateX(5px); }

/* =====================================================================
   SECTION SUB-LEDES + scene active state + title mask reveal
   ===================================================================== */
.track__lede { color: var(--ink-soft); max-width: 54ch; margin-top: clamp(10px, 1.6vw, 18px); }
.cases__intro { color: var(--ink-soft); max-width: 60ch; margin-top: clamp(10px, 1.6vw, 18px); }
.scene { transition: background .6s var(--ease); }
.scene.is-current .section__index .rule { background: var(--brass); width: clamp(48px, 9vw, 130px); }
.scene--deep.is-current .section__index .rule { background: var(--brass-2); }
.section__title { clip-path: inset(0 105% 0 -5%); transition: clip-path 1.05s var(--ease); }
.is-visible .section__title { clip-path: inset(0 -5% 0 -5%); }

/* =====================================================================
   FOOTER — clickable formula
   ===================================================================== */
.site-footer__name { transition: color .3s var(--ease); }
.site-footer__name:hover { color: var(--brass-2); }
.site-footer__line { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; }
.site-footer__line a { position: relative; padding: 4px 0; transition: color .3s var(--ease); } /* WCAG 2.2 AA 2.5.8: цель не ниже 24 px */
.site-footer__line a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--brass-2); transition: width .35s var(--ease); }
.site-footer__line a:hover, .site-footer__line a:focus-visible { color: #fff; outline: none; }
.site-footer__line a:hover::after, .site-footer__line a:focus-visible::after { width: 100%; }

/* =====================================================================
   STACKED SCENES — sheets laid over one another (desktop / tablet)
   Each scene is sticky. JS sets per-scene `top` (= viewportH − sceneH, capped
   at 0) so a tall scene only pins once its bottom reaches the viewport bottom
   (fully read first); then the next scene slides up and lays OVER it while it
   stays put underneath. The leading-edge shadow reads as a lifted sheet.
   All widths, touch included (pure sticky — native momentum scroll is kept).
   Off when JS is off or under prefers-reduced-motion → plain native scroll. */
body.stacked .hero,
body.stacked main .section,
body.stacked .site-footer { position: sticky; top: 0; }
/* a whisper of a leading-edge shadow — reads as a lifted sheet, never a slab */
.scene { box-shadow: 0 -10px 26px -27px rgba(11, 27, 33, .16); }
.scene--deep { box-shadow: 0 -14px 34px -27px rgba(0, 0, 0, .32); }

/* =====================================================================
   03 WHY — «Почему именно я» (editorial reasons, no repeated numbers)
   ===================================================================== */
.why__intro { color: var(--ink-soft); max-width: 60ch; }
.why__list { margin-top: clamp(22px, 3.6vw, 48px); display: grid; gap: 0; border-top: 1px solid var(--line); }
.why__item { display: grid; grid-template-columns: clamp(46px, 6vw, 88px) 1fr; gap: clamp(14px, 3vw, 44px); align-items: baseline; padding: clamp(20px, 2.8vw, 34px) 0; border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.why__item:hover { background: rgba(34,85,98,.035); }
.why__no { font-family: var(--font-mono); font-size: 13px; letter-spacing: 1px; color: var(--brass); }
.why__body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -0.005em; color: var(--ink); }
.why__body p { margin-top: 9px; font-size: clamp(14px, 1.5vw, 17px); color: var(--ink-soft); line-height: 1.6; max-width: 66ch; }
@media (max-width: 560px) { .why__item { grid-template-columns: 1fr; gap: 5px; } }
/* astrolabe — delicate corner instrument: «широкий кругозор / системное видение»
   (clear top-right space; same line-art family as the sextant; off on tablet/mobile) */
.why { position: relative; }
/* 03 · подзорная труба (landscape) — позиция; стиль/анимация из .sea-figure */
.why__instrument { top: clamp(34px, 5vw, 78px); right: var(--pad-x); width: clamp(120px, 13vw, 184px); }

/* =====================================================================
   05 TRACK — proof scale: geographic grid + coordinates (maritime map accent)
   ===================================================================== */
.track { position: relative; }
.track::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    linear-gradient(to right, rgba(34,85,98,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34,85,98,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(120% 80% at 82% 0%, #000 18%, transparent 100%);
          mask-image: radial-gradient(120% 80% at 82% 0%, #000 18%, transparent 100%);
}
.track > * { position: relative; }
/* 05 · картографический мотив — портоланная роза румбов + курс с узлами (та же серия) */
.track__chart {
  position: absolute; top: clamp(-12px, 0.5vw, 24px); right: 0; z-index: 0;
  width: clamp(360px, 46vw, 600px); height: auto; pointer-events: none;
  -webkit-mask-image: radial-gradient(125% 105% at 88% 4%, #000 28%, transparent 80%);
          mask-image: radial-gradient(125% 105% at 88% 4%, #000 28%, transparent 80%);
}
.track__coords { position: absolute; top: clamp(64px, 8vw, 92px); right: var(--pad-x); font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--muted); opacity: .7; z-index: 1; }
@media (max-width: 600px) { .track__coords { display: none; } }
@media (max-width: 820px) { .track__chart { display: none; } }


/* MARITIME INSTRUMENTS — kept deliberately to ONE unified line-art family:
   compass (#control), sextant (#method), wind rose (#contact) + the hero sloop.
   The earlier background spyglass/astrolabe read as crude and off-style, so they
   were removed (better fewer instruments, all consistent, than visual noise). */

/* =====================================================================
   REDUCED MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .hero__name .line__inner { transform: none !important; }
  .route-path, .method-path, .axis-line, .orb { stroke-dashoffset: 0 !important; }
  .route-dot, .route-cross path, .axis-nodes circle, .method-nodes circle, .hero__coursemark, .control__nodes li > span { opacity: 1 !important; }
  .ticker__track { animation: none !important; }
  .hero__scroll-line::after { display: none; }
  .section__title { clip-path: none !important; }
  #compass-needle { transition: none !important; transform: none !important; }
  .hero__ship { opacity: 1 !important; }
  .hero__star { animation: none !important; opacity: .5 !important; }
  .route-veil, .route-veil.is-active { display: none !important; animation: none !important; }
  .method__chart .method-path { stroke-dashoffset: 0 !important; }
  .method__chart .method-flow { display: none !important; }
  .method__pin { opacity: 1 !important; transform: translateX(-50%) !important; }
  .method__runner { opacity: 1 !important; }
}

/* =====================================================================
   MOBILE HARDENING (rev.3.10) — гарантия, что типографика влезает на
   реальных телефонах с более широкими системными шрифтами (iOS Hoefler
   Text / Iowan Old Style). Всё строго в мобильных media-query —
   ДЕСКТОП НЕ ЗАТРАГИВАЕТСЯ. Структура/тексты/приборы/скролл не меняются.
   ===================================================================== */
@media (max-width: 820px) {
  /* длинные русские слова и заголовки переносятся, не уходят за правый край */
  .section__title, .hero__name, .hero__lede, .lede, .control__intro,
  .why__intro, .track__lede, .formats__intro, .projects__intro,
  .cases__intro, .method__lede, .contact__intro,
  .stat__cap, .control__c-name, .why__body h3, .exp h3, .proj__title,
  .case__title, .step h3, .track__row-v {
    overflow-wrap: break-word; min-width: 0;
  }
  main .section { min-width: 0; }
  /* запас под выносные элементы букв (й, ц, р, у) при mask-reveal заголовков */
  .section__title { line-height: 1.08; }

  /* PROFILE PHOTO (mobile) — портрет показывается ЦЕЛИКОМ, без кадрирования.
     Причина прежнего бага: принудительный aspect-ratio:1/1 + object-fit:cover
     на реальном iOS/Safari давал гигантский обрез лица. Здесь — натуральная
     высота изображения (intrinsic 1:1), никакого crop ни на одном движке. */
  .profile__portrait { max-width: min(82vw, 340px); margin-inline: auto; }
  .profile__portrait picture { display: block; width: 100%; aspect-ratio: auto; }
  .profile__portrait img {
    display: block; width: 100%; height: auto;
    aspect-ratio: auto; max-height: none; object-fit: contain; object-position: center;
  }
}

@media (max-width: 480px) {
  /* editorial-заголовки — отдельный мобильный масштаб (влезают при любом шрифте) */
  .section__title { font-size: clamp(1.7rem, 7.6vw, 2.25rem); letter-spacing: -0.006em; }

  /* HERO — отдельная мобильная типографика: имя сильное, но помещается */
  .hero { padding: 104px var(--pad-x) 76px; }
  .hero__name .line__inner { font-size: clamp(1.95rem, 9.2vw, 3rem); }
  .hero__name .line--2 { margin-left: clamp(0px, 4.5vw, 34px); }
  .hero__lede { font-size: 15px; line-height: 1.5; max-width: none; }
  .hero__formula { letter-spacing: 1.3px; }

  /* PROFILE — портрет целиком (правило задано в @media ≤820: contain, без crop).
     Здесь НЕ возвращаем object-fit:cover, иначе вернётся гигантский обрез лица. */

  /* CONTROL — слово в центре компаса в ОДНУ строку (без переноса), по размеру компаса */
  .control__core { font-size: clamp(.74rem, 3.5vw, .94rem); width: auto; white-space: nowrap; padding: 8px 10px; }
  .control__node { padding: 10px 12px; font-size: 13px; gap: 9px; }
  .control__node .ic { width: 1.1em; height: 1.1em; }
  .control__c-no { font-size: 9.5px; }

  /* TRACK — статистика читаемая, цифры не упираются в край */
  .stat { padding: 18px 16px; }
  .stat__num { font-size: clamp(1.45rem, 7vw, 1.85rem); }
}

@media (max-width: 390px) {
  .section__title { font-size: clamp(1.55rem, 7.4vw, 2rem); }
  .hero__name .line__inner { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .control__core { font-size: clamp(.68rem, 3.5vw, .9rem); }
  .stat__num { white-space: normal; }   /* узкие экраны: перенос вместо обрезки цифр */
}

/* =====================================================================
   A11Y — контраст текста
   ===================================================================== */
/* WCAG 2.2 AA, 1.4.3 (контраст текста ≥ 4.5:1) — kdeniskin.ru.
   Палитра сохранена: латунь и серый остаются для линий, графики, иконок и тёмных сцен.
   Затемнён только мелкий текст на светлых фонах, тем же оттенком (HSL: тот же тон и насыщенность,
   ниже светлота). Значения подобраны под самый тёмный светлый фон — песочный #ece0c9.
     латунь #b07a3f → #835a2f (4.63–5.52:1), серый #7c8688 → #5d6466 (4.62–5.50:1),
     кнопка #b07a3f → #9b6b37 (белая подпись 4.61:1), год в подвале → #869190 (4.63:1).
   Блок стоит в конце style-v7.css (отдельный файл давал лишний блокирующий запрос). Откат — удалить блок. */
:root {
  --brass-text: #835a2f;
  --muted-text: #5d6466;
}
body.scrolled .nav a.is-active,
.section__index .num,
.control__c-no,
.why__no,
.form__title,
.contact__resumes-tag { color: var(--brass-text); }

.section__index .tag,
.contact__lines .k,
.field label span,
.broad__artel-link small,
.case-nav a { color: var(--muted-text); }

/* Тёмные сцены сохраняют светлые варианты (у них более высокая специфичность — правило для ясности). */
.scene--deep .section__index .num { color: var(--brass-2); }
.scene--deep .section__index .tag { color: rgba(244,239,230,.55); }

.case-nav a:hover { color: var(--brass-text); }
.btn--solid { background: #9b6b37; }
.btn--solid:hover { background: var(--ink); }
.site-footer__year { color: #869190; }

/* Номера карточек кейсов — декоративный водяной знак: выводятся из data-no (не текст страницы, WCAG 1.4.3 — декор). */
.case__no[data-no]::before { content: attr(data-no); }

/* =====================================================================
   2026-11-20 SHIP ANIMATION — offset-path along heroRoutePath
   ===================================================================== */
.hero__ship {
  offset-path: path("M-40 760 C 260 740, 380 560, 640 510 S 1040 470, 1200 300 S 1440 160, 1540 110");
  offset-rotate: auto;
  transform: scale(2.2);
  transform-box: fill-box;
  transform-origin: center;
}
.is-loaded .hero__ship {
  animation: heroShipSail 52s linear 2.4s infinite;
}
@keyframes heroShipSail {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__ship { animation: none !important; offset-distance: 32% !important; opacity: .72 !important; }
}

/* =====================================================================
   2026-11-20 ARTEL BADGE — floating link in hero
   ===================================================================== */

