/* ============================================================
   Personal website — layout styles (UI kit only).
   Composes the brand components; these classes handle page
   structure, bands, and grids. Tokens come from styles.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); background: var(--canvas-dark);
       color: var(--on-dark); -webkit-font-smoothing: antialiased; }

.w-band { padding: var(--band-pad) var(--gutter); }
.w-band--dark { background: var(--canvas-dark); color: var(--on-dark); }
.w-band--light { background: var(--canvas-light); color: var(--ink-body); }
.w-inner { max-width: var(--container); margin: 0 auto; }
.w-inner--prose { max-width: 880px; }

.w-eyebrow-gap { margin-top: 22px; }

/* generic display heading */
.w-h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em;
        line-height: 1.0; margin: 0; font-size: clamp(46px, 7vw, 88px); }
.w-h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
        line-height: 1.05; margin: 0; font-size: clamp(32px, 4.4vw, 48px); }
.w-h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
        line-height: 1.15; margin: 0; font-size: 22px; }
.w-lead { font-size: 19px; line-height: 1.6; margin: 0; }
.w-muted { color: var(--ink-mute); }
.w-muted-dark { color: var(--on-dark-mute); }

/* ---------- Hero ---------- */
.w-hero { display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 56px; align-items: center; }
.w-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.w-hero__role { font-size: 20px; line-height: 1.5; color: var(--on-dark-mute); margin: 26px 0 0;
                max-width: 30em; }
.w-hero__role b { color: var(--on-dark); font-weight: 600; }
.w-hero__cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.w-hero__meta { display: flex; gap: 28px; margin-top: 40px; padding-top: 26px;
                border-top: 1px solid var(--divider-soft); flex-wrap: wrap; }
.w-portrait { position: relative; aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-xl);
              overflow: hidden; }
.w-portrait image-slot { width: 100%; height: 100%; display: block; }
.w-portrait__tag { position: absolute; left: 16px; bottom: 16px; z-index: 2;
                   font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
                   text-transform: uppercase; color: var(--on-dark); background: rgba(10,11,13,0.55);
                   backdrop-filter: blur(6px); padding: 7px 12px; border-radius: var(--radius-full); }

/* ---------- Proof strip ---------- */
.w-proof { display: flex; align-items: center; justify-content: space-between; gap: 32px;
           flex-wrap: wrap; }
.w-proof__stats { display: flex; gap: 52px; flex-wrap: wrap; }
.w-proof__firms { display: flex; align-items: center; gap: 26px; font-family: var(--font-mono);
                  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
                  color: var(--on-dark-soft); }
.w-proof__firms b { color: var(--on-dark-mute); font-weight: 500; }

/* ---------- About ---------- */
.w-about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.w-about__body p { font-size: 18px; line-height: 1.65; color: var(--ink-body); margin: 0 0 18px; }
.w-about__body p:last-child { margin-bottom: 0; }
.w-about__body b { color: var(--ink); font-weight: 600; }
.w-facts { display: flex; flex-direction: column; gap: 0; }
.w-fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 0;
          border-top: 1px solid var(--hairline-light); }
.w-fact:last-child { border-bottom: 1px solid var(--hairline-light); }
.w-fact__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
             text-transform: uppercase; color: var(--ink-soft); }
.w-fact__v { font-size: 16px; color: var(--ink); font-weight: 500; }

/* ---------- Experience timeline ---------- */
.w-exp { display: flex; flex-direction: column; gap: 0; margin-top: 44px; }
.w-exp__row { display: grid; grid-template-columns: 200px 1fr; gap: 40px; padding: 32px 0;
              border-top: 1px solid var(--hairline-dark); }
.w-exp__row:last-child { border-bottom: 1px solid var(--hairline-dark); }
.w-exp__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
               color: var(--on-dark-soft); line-height: 1.7; }
.w-exp__when b { color: var(--on-dark-mute); font-weight: 500; display: block; }
.w-exp__firm { font-family: var(--font-display); font-weight: 600; font-size: 13px;
               letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark);
               margin-top: 10px; }
.w-exp__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.w-exp__list { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.w-exp__list li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.55;
                  color: var(--on-dark-mute); }
.w-exp__list li::before { content: "§"; position: absolute; left: 0; top: 0;
                          color: var(--signal-bright); font-family: var(--font-mono); }

/* ---------- Practice areas ---------- */
.w-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 44px; }
.w-area__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em;
             color: var(--ink-soft); }
.w-area h3 { margin: 14px 0 10px; }
.w-area p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-mute); }

/* ---------- Writing ---------- */
.w-posts { display: flex; flex-direction: column; gap: 0; margin-top: 40px; }
.w-post { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center;
          padding: 26px 0; border-top: 1px solid var(--hairline-dark); text-decoration: none;
          color: inherit; transition: padding-left 0.2s ease; }
.w-post:last-child { border-bottom: 1px solid var(--hairline-dark); }
.w-post:hover { padding-left: 10px; }
.w-post__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
                color: var(--on-dark-soft); }
.w-post__title { font-family: var(--font-display); font-weight: 500; font-size: 21px;
                 letter-spacing: -0.01em; color: var(--on-dark); line-height: 1.25; }
.w-post__arrow { color: var(--on-dark-soft); display: flex; transition: color 0.2s ease, transform 0.2s ease; }
.w-post:hover .w-post__arrow { color: var(--signal-bright); transform: translate(3px, -3px); }
.w-post__arrow svg { width: 22px; height: 22px; }

/* ---------- Contact ---------- */
.w-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.w-contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.w-contact__form .w-col-2 { grid-column: 1 / -1; }
.w-links { display: flex; flex-direction: column; gap: 0; }
.w-link { display: flex; align-items: center; justify-content: space-between; gap: 16px;
          padding: 18px 0; border-top: 1px solid var(--hairline-light); text-decoration: none;
          color: var(--ink); font-size: 17px; font-weight: 500; transition: color 0.15s ease; }
.w-link:last-child { border-bottom: 1px solid var(--hairline-light); }
.w-link:hover { color: var(--signal); }
.w-link__k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
             text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }

/* sticky nav */
.w-nav-sticky { position: sticky; top: 0; z-index: 50; }

@media (max-width: 920px) {
  .w-hero, .w-about, .w-contact { grid-template-columns: 1fr; gap: 36px; }
  .w-areas { grid-template-columns: 1fr; }
  .w-exp__row { grid-template-columns: 1fr; gap: 16px; }
  .w-post { grid-template-columns: 1fr auto; }
  .w-post__date { display: none; }
  .w-contact__form { grid-template-columns: 1fr; }
}

/* ---------- Custom brand cursor ----------
   Minimal, tone-adaptive: a thin hairline ring trails a precise centre dot.
   At rest both take the band-contrast colour (ink on light, paper on dark) so
   the cursor is always crisply visible. Signal Blue is reserved as the scarce
   accent — it only appears on hover over interactive elements. */
.ad-cursor-on, .ad-cursor-on * { cursor: none !important; }
.ad-cursor-ring, .ad-cursor-dot {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  will-change: transform; border-radius: 50%;
}
.ad-cursor-ring {
  width: 26px; height: 26px; margin: -13px 0 0 -13px;
  background: transparent; border: 1.5px solid var(--ink);
  transition: width .26s cubic-bezier(.22,.61,.36,1),
              height .26s cubic-bezier(.22,.61,.36,1),
              margin .26s cubic-bezier(.22,.61,.36,1),
              border-color .22s ease, background-color .22s ease, opacity .25s ease;
}
.ad-cursor-dot {
  width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--ink);
  transition: width .16s ease, height .16s ease, margin .16s ease,
              background-color .22s ease, opacity .2s ease;
}
/* hover over interactive → ring expands, Signal accent appears, dot recedes */
.ad-cursor-hover .ad-cursor-ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 10%, transparent);
}
.ad-cursor-hover .ad-cursor-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--signal); }
.ad-cursor-down .ad-cursor-ring { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.ad-cursor-hidden .ad-cursor-ring, .ad-cursor-hidden .ad-cursor-dot { opacity: 0; }
/* over a dark band the cursor turns paper-white so it stays crisp */
.ad-cursor-ondark .ad-cursor-ring { border-color: var(--on-dark); }
.ad-cursor-ondark .ad-cursor-dot { background: var(--on-dark); }
/* the Signal hover accent persists on dark, using its luminous variant */
.ad-cursor-ondark.ad-cursor-hover .ad-cursor-ring {
  border-color: var(--signal-bright);
  background: color-mix(in srgb, var(--signal-bright) 12%, transparent);
}
.ad-cursor-ondark.ad-cursor-hover .ad-cursor-dot { background: var(--signal-bright); }

/* ============================================================
   v2 LAYOUT — restructured one-page portfolio.
   Hero (tagline + huge portrait) · Profile · Experience table ·
   Education · Distinctions · Practice & Projects · Writing cards ·
   Contact links. Tokens come from styles.css.
   ============================================================ */

/* ---------- Hero (tagline-led, bigger portrait) ---------- */
.w-hero { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
.w-hero__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--signal-bright); margin: 0 0 22px; }
.w-hero__headline { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em;
  line-height: 1.0; margin: 0; font-size: clamp(40px, 6.4vw, 80px); color: var(--on-dark); }
.w-hero__headline em { font-style: normal; color: var(--signal-bright); }
.w-hero .w-portrait { aspect-ratio: 3 / 4; max-height: 560px; margin-left: auto; }

/* ---------- Profile (§01 — name reveal) ---------- */
.w-profile { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.w-profile__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em;
  line-height: 1.0; margin: 8px 0 0; font-size: clamp(30px, 3.4vw, 46px); color: var(--ink); }
.w-profile__desc { font-size: 17px; line-height: 1.6; color: var(--ink-body); margin: 20px 0 0; max-width: 34em; }
.w-profile__desc b { color: var(--ink); font-weight: 600; }
.w-profile__portrait { aspect-ratio: 4 / 5; width: 100%; border-radius: var(--radius-xl);
  overflow: hidden; position: relative; }
.w-profile__portrait image-slot, .w-profile__portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }
.w-profile__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; }

/* ---------- Experience — table ---------- */
.w-table { margin-top: 44px; border-top: 1px solid var(--hairline-dark); }
.w-trow { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; padding: 36px 0;
  border-bottom: 1px solid var(--hairline-dark); }
.w-trow__co { display: flex; flex-direction: column; gap: 10px; }
.w-trow__name { font-family: var(--font-display); font-weight: 600; font-size: 20px;
  letter-spacing: -0.01em; color: var(--on-dark); }
.w-trow__when { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--on-dark-soft); line-height: 1.7; }
.w-trole { padding: 0 0 18px; }
.w-trole:last-child { padding-bottom: 0; }
.w-trole__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.w-trole__title { font-family: var(--font-sans); font-weight: 600; font-size: 16px; color: var(--on-dark); }
.w-trole__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.w-trole__list li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--on-dark-mute); }
.w-trole__list li::before { content: "§"; position: absolute; left: 0; top: 0; color: var(--signal-bright); font-family: var(--font-mono); }

/* ---------- Education / Distinctions — generic row table ---------- */
.w-rows { margin-top: 40px; }
.w-row { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 40px; padding: 28px 0; align-items: start; }
.w-row__k { display: flex; flex-direction: column; gap: 8px; }
.w-row__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.w-row__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; }
.w-row__v p { margin: 0 0 10px; font-size: 16px; line-height: 1.6; }
.w-row__v p:last-child { margin-bottom: 0; }
/* dark variant */
.w-band--dark .w-rows { border-top: 1px solid var(--hairline-dark); }
.w-band--dark .w-row { border-bottom: 1px solid var(--hairline-dark); }
.w-band--dark .w-row__title { color: var(--on-dark); }
.w-band--dark .w-row__meta { color: var(--on-dark-soft); }
.w-band--dark .w-row__v p { color: var(--on-dark-mute); }
/* light variant */
.w-band--light .w-rows { border-top: 1px solid var(--hairline-light); }
.w-band--light .w-row { border-bottom: 1px solid var(--hairline-light); }
.w-band--light .w-row__title { color: var(--ink); }
.w-band--light .w-row__meta { color: var(--ink-soft); }
.w-band--light .w-row__v p { color: var(--ink-body); }

/* ---------- Practice & Projects ---------- */
.w-prac { margin-top: 44px; border-top: 1px solid var(--hairline-light); }
.w-pracline { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--hairline-light); }
.w-pracline__h { display: flex; align-items: center; gap: 12px; }
.w-pracline__h h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em; color: var(--ink); }
.w-pracline__body { font-size: 16px; line-height: 1.6; color: var(--ink-mute); margin: 0; max-width: 58ch; }
.w-projects { margin-top: 52px; }
.w-projects__head { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.w-projgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.w-proj h3 { margin: 0 0 8px; font-size: 17px; }
.w-proj p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-mute); }
.w-proj__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; display: block; }

/* ---------- Writing — category legend + cards ---------- */
.w-cats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.w-cat { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-mute); }
.w-cat__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.w-cat--arbitration .w-cat__dot { background: var(--area-arbitration); }
.w-cat--itip .w-cat__dot { background: var(--area-itip); }
.w-cat--crypto .w-cat__dot { background: var(--area-crypto); }
.w-cat--ai .w-cat__dot { background: var(--area-ai); }
/* Категории-чипы (Tag) — единый капс-режим по всему сайту, шрифт чипа сохраняем. */
.ad-tag { text-transform: uppercase; letter-spacing: 0.04em; }

.w-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.w-card { display: flex; flex-direction: column; gap: 14px; padding: 26px; text-decoration: none;
  background: var(--surface-elevated); border: 1px solid var(--hairline-dark); border-radius: var(--radius-lg);
  color: inherit; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.w-card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.22); background: #1b1e24; }
.w-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.w-card__src { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-soft); }
.w-card__title { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em;
  line-height: 1.25; color: var(--on-dark); }
.w-card__excerpt { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--on-dark-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-card__foot { margin-top: auto; padding-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-card__date { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--on-dark-soft); }
.w-card__more { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark);
  transition: color 0.2s ease; }
.w-card:hover .w-card__more { color: var(--signal-bright); }
.w-card__arrow { color: inherit; display: flex; transition: color 0.2s ease, transform 0.2s ease; }
.w-card:hover .w-card__arrow { color: var(--signal-bright); transform: translate(3px, -3px); }
.w-card__arrow svg { width: 18px; height: 18px; }
.w-writing__links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }

/* ---------- Contact — links only ---------- */
.w-contact--links { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
/* Centered contact block — heading + buttons in a horizontal row */
.w-contact--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 36px; }
.w-contact__btns { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }

@media (max-width: 920px) {
  .w-hero, .w-profile, .w-contact--links { grid-template-columns: 1fr; gap: 36px; }
  .w-hero .w-portrait { max-height: 460px; }
  .w-trow, .w-row, .w-pracline { grid-template-columns: 1fr; gap: 14px; }
  .w-projgrid, .w-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Portrait treatment — black & white + film grain.
   Applies to the hero and profile photos (rendered via <image-slot>,
   styled from outside its shadow DOM through ::part).
   ============================================================ */

/* B&W, slightly punchier to sit against the near-black canvas */
.w-portrait image-slot::part(image),
.w-profile__portrait image-slot::part(image) {
  filter: grayscale(1) contrast(1.06) brightness(0.98);
}

/* Film grain — a static, desaturated fractal-noise overlay sitting above the
   photo (z-index 1) but below the hero caption pill (z-index 2). The frame's
   overflow:hidden clips it to the rounded corners. */
.w-portrait::after,
.w-profile__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* A faint vignette to seat the photo into the dark canvas */
.w-portrait::before,
.w-profile__portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(10, 11, 13, 0.55);
}

/* ============================================================
   Russian edition — Cyrillic display fallback + layout tweaks.
   Space Grotesk has no Cyrillic glyphs, so Manrope (loaded in
   index.html) carries Cyrillic display text; Latin still uses
   Space Grotesk. Body/mono = IBM Plex (Cyrillic native).
   ============================================================ */
:root {
  --font-display: "Space Grotesk", "Manrope", "Inter Display", system-ui, sans-serif;
}

/* ---------- Hero — centered, no portrait ---------- */
.w-hero--center { display: block; text-align: center; max-width: 880px; margin: 0 auto; }
.w-hero--center .w-hero__kicker { color: var(--signal-bright); }
.w-hero--center .w-hero__headline { font-size: clamp(40px, 6vw, 74px); }
.w-hero--center .w-hero__headline em { font-style: italic; color: var(--signal-bright); }
.w-hero--center .w-hero__role { margin-left: auto; margin-right: auto; max-width: 34em; }
.w-hero--center .w-hero__cta { justify-content: center; }

/* Rotating last word (больше → лучше → глубже) — literary serif, Signal Blue,
   slides vertically. clip-path clips the slide vertically while keeping the
   inline baseline intact (so the word sits on the same line as the text). */
.w-rotate { position: relative; display: inline-block; vertical-align: baseline; line-height: 1;
  clip-path: inset(-0.2em -0.4em -0.08em -0.4em); }
.w-rotate, .w-rotate__sizer, .w-rotate__word {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600;
  font-style: normal; color: var(--signal-bright); }
.w-rotate__sizer { visibility: hidden; white-space: nowrap; }
.w-rotate__word { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; }
.w-rotate__word--in { transform: translateY(0); opacity: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.45s ease; }
.w-rotate__word--out { transform: translateY(-115%); opacity: 0;
  transition: transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.45s ease; }
.w-rotate__word--wait { transform: translateY(115%); opacity: 0; transition: none; }

/* ---------- Profile — practice areas as a labeled column ---------- */
.w-practice-col { margin-top: 32px; }
.w-practice-col__h { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
/* Practice areas as tiles — same card language as the blog grid */
.w-areagrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.w-areatile { display: flex; align-items: center; gap: 12px; padding: 18px 18px;
  background: #fff; border: 1px solid var(--hairline-light); border-radius: var(--radius-lg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.w-areatile:hover { transform: translateY(-3px); border-color: rgba(10,11,13,0.16);
  box-shadow: 0 10px 28px rgba(10,11,13,0.08); }
.w-areatile__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.w-areatile__dot--arbitration { background: var(--area-arbitration); }
.w-areatile__dot--itip { background: var(--area-itip); }
.w-areatile__dot--crypto { background: var(--area-crypto); }
.w-areatile__dot--ai { background: var(--area-ai); }
.w-areatile__label { font-family: var(--font-display); font-weight: 600; font-size: 16px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }

/* ---------- Experience — company logos + career track ---------- */
/* company logos sit on a light chip → original colours, no distortion, correct aspect */
.w-colo-chip { display: inline-flex; align-items: center; justify-content: center; height: 56px;
  padding: 0 18px; background: #fff; border-radius: 12px; margin-bottom: 16px; }
.w-colo-chip img { display: block; width: auto; object-fit: contain; }
.w-colo-chip--al img { height: 38px; }
.w-colo-chip--revera img { height: 22px; }
.w-track { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.w-track__step { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--on-dark-soft); white-space: nowrap; display: inline-flex;
  align-items: center; gap: 7px; }
.w-track__step::before { content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--on-dark-soft); flex: none; }
.w-track__step--now { color: var(--on-dark); }
.w-track__step--now::before { background: var(--signal-bright); box-shadow: 0 0 0 4px rgba(46,92,255,0.18); }
.w-track__line { flex: 1; height: 1px; min-width: 28px;
  background: linear-gradient(90deg, var(--hairline-dark), var(--signal)); }

/* ---------- Education — prose column + aligned § list ---------- */
.w-edu-meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-soft); margin: 14px 0 0; }
/* Full-width two-column layout — fills the page, stays readable */
.w-edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 32px; align-items: start; }
.w-edu-col > p { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.65; color: var(--ink-body); margin: 0 0 18px; }
.w-edu-col > p:last-child { margin-bottom: 0; }
.w-edu-prose__label { font-weight: 600; color: var(--ink) !important; margin: 0 0 14px !important;
  font-size: clamp(16px, 1.15vw, 18px); }
.w-edu-col a { color: var(--signal); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) { .w-edu-grid { grid-template-columns: 1fr; gap: 32px; } }
/* § markers align in a clean column; wrapped lines stay flush */
.w-achlist { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.w-achlist li { display: flex; gap: 12px; font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; color: var(--ink-body); }
.w-achlist li::before { content: "§"; flex: none; color: var(--signal); font-family: var(--font-mono);
  line-height: inherit; }
.w-achlist a { color: var(--signal); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Contact — link icons ---------- */
.w-link__icon { display: inline-flex; width: 18px; height: 18px; color: var(--ink-soft);
  flex: none; margin-right: 14px; transition: color 0.15s ease; }
.w-link__icon svg { width: 100%; height: 100%; }
.w-link:hover .w-link__icon { color: var(--signal); }
.w-link__main { display: flex; align-items: center; min-width: 0; }
.w-link__main span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 920px) {
  .w-hero--center .w-hero__headline { font-size: clamp(34px, 9vw, 52px); }
}

/* ============================================================
   v3 — custom nav, fullscreen hero, bold section titles,
   vertical career track, footer trim.
   ============================================================ */

/* ---------- Custom top nav (logo + glow, no locale) ---------- */
.w-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 88px; padding: 0 var(--gutter); background: var(--canvas-dark); color: var(--on-dark);
  border-bottom: 1px solid var(--divider-soft); }
.w-nav__logo { display: inline-flex; align-items: center; }
/* logo is dark monochrome → recolor to white for the dark nav, keep a signal glow */
.w-nav__logo img { height: 68px; width: auto; display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(46, 92, 255, 0.5)); }
/* Pill nav ("tubelight") — rounded container, active tab gets a glowing lamp */
.w-navpill { display: flex; align-items: center; gap: 4px; padding: 5px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-full); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.w-navpill__item { position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--on-dark-mute); text-decoration: none; padding: 8px 18px; border-radius: var(--radius-full);
  transition: color 0.18s ease, background 0.18s ease; }
.w-navpill__item:hover { color: var(--on-dark); }
.w-navpill__item--active { color: var(--signal-bright); background: rgba(46, 92, 255, 0.10); }
/* Featured item ("Обучение ИИ") — the single scarce solid-Signal accent */
.w-navpill__item--featured { color: #fff; background: var(--signal);
  box-shadow: 0 0 0 1px rgba(46, 92, 255, 0.45), 0 6px 18px rgba(46, 92, 255, 0.35); }
.w-navpill__item--featured:hover { color: #fff; background: var(--signal-bright); }
/* Featured tool item ("Система оценивания") — a warm copper accent, the one allowed secondary stamp. */
.w-navpill__item--grader.w-navpill__item--featured { background: #c77a12;
  box-shadow: 0 0 0 1px rgba(199, 122, 18, 0.5), 0 6px 18px rgba(199, 122, 18, 0.38); }
.w-navpill__item--grader.w-navpill__item--featured:hover { background: #e0962a; }
.w-navpill__spark { display: inline-flex; margin-right: 7px; }
.w-navpill__spark svg { display: block; width: 15px; height: 15px; }
.w-navpill__icon { display: none; }
.w-navpill__icon svg { display: block; }
/* the lamp: a small bar on the top edge of the active tab, glowing upward */
.w-navpill__lamp { position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 4px; background: var(--signal-bright); border-radius: 0 0 6px 6px; }
.w-navpill__lamp > span { position: absolute; left: 50%; top: -7px; transform: translateX(-50%);
  width: 48px; height: 16px; background: var(--signal-bright); opacity: 0.35;
  border-radius: 50%; filter: blur(10px); }
.w-nav__right { display: flex; align-items: center; }
/* On mobile: swap labels for icons, keep the pill visible */
@media (max-width: 860px) {
  .w-navpill__label { display: none; }
  .w-navpill__icon { display: inline-flex; }
  .w-navpill__spark { display: none; }
  .w-navpill__item { padding: 9px 13px; }
}
@media (max-width: 540px) { .w-nav__right { display: none; } }

/* ---------- Fullscreen hero + entrance animation ---------- */
@keyframes wRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.w-hero--center .w-hero__headline,
.w-hero--center .w-hero__role,
.w-hero--center .w-hero__cta { animation: wRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.w-hero--center .w-hero__headline { animation-delay: 0.05s; }
.w-hero--center .w-hero__role { animation-delay: 0.24s; }
.w-hero--center .w-hero__cta { animation-delay: 0.42s; }
@media (prefers-reduced-motion: reduce) {
  .w-hero--center .w-hero__headline,
  .w-hero--center .w-hero__role,
  .w-hero--center .w-hero__cta { animation: none; }
}

/* ---------- Bold section titles (replace § kickers) ---------- */
.w-section-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.07; font-size: clamp(28px, 3.2vw, 40px); margin: 0; }
.w-band--dark .w-section-title { color: var(--on-dark); }
.w-band--light .w-section-title { color: var(--ink); }
.w-subhead { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 14px; }
.w-band--dark .w-subhead { color: var(--on-dark-soft); }

/* ---------- Vertical career track (trainee → assistant) ---------- */
/* Roles without a vertical track (single role) align to the same left line
   as the tracked roles above, so all bullet paragraphs share one column. */
.w-vsolo { padding-left: 30px; margin-top: 4px; }
.w-vtrack { margin-top: 4px; }
.w-vtrack__item { position: relative; padding-left: 30px; padding-bottom: 26px; }
.w-vtrack__item:last-child { padding-bottom: 0; }
.w-vtrack__item::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: -4px;
  width: 1.5px; background: linear-gradient(var(--hairline-dark), var(--signal)); }
.w-vtrack__item:last-child::before { display: none; }
.w-vtrack__dot { position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--on-dark-soft); }
.w-vtrack__item--now .w-vtrack__dot { background: var(--signal-bright); box-shadow: 0 0 0 4px rgba(46,92,255,0.18); }

/* ---------- Footer trim — hide the "Built with intent" mark ---------- */
.ad-footer__bottom .ad-footer__legal:last-child { display: none; }

/* ---------- Custom footer (big Демченко Legal logo) ---------- */
.w-footer { background: var(--canvas-dark); color: var(--on-dark-mute);
  padding: var(--space-9) var(--gutter) var(--space-6); }
.w-footer__inner { max-width: var(--container); margin: 0 auto; }
.w-footer__top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
  padding-bottom: var(--space-8); }
.w-footer__brand { max-width: 380px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
/* height-driven, width:auto, never stretched → native aspect ratio always preserved */
.w-footer__logo { height: 104px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(46, 92, 255, 0.4)); }
.w-footer__tag { font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--on-dark-mute); margin: 0; }
.w-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.w-footer__col { display: flex; flex-direction: column; gap: 14px; }
.w-footer__h { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-soft); }
.w-footer__link { font-family: var(--font-sans); font-size: 14px; color: var(--on-dark-mute);
  text-decoration: none; transition: color 0.14s ease; }
.w-footer__link:hover { color: var(--on-dark); }
.w-footer__bottom { padding-top: var(--space-5); border-top: 1px solid var(--divider-soft); }
.w-footer__legal { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--on-dark-soft); }

/* ---------- AI page — kicker + light module cards (placeholders) ---------- */
.w-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-bright); margin: 0 0 20px; }
.w-soon { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; margin-top: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--signal-bright); border: 1px solid rgba(46,92,255,0.5); border-radius: var(--radius-full); }
.w-lcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.w-lcard { display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #fff;
  border: 1px solid var(--hairline-light); border-radius: var(--radius-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.w-lcard:hover { transform: translateY(-3px); border-color: rgba(10,11,13,0.16); box-shadow: 0 12px 30px rgba(10,11,13,0.08); }
.w-lcard__n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--signal); }
.w-lcard__t { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.w-lcard__d { font-size: 15px; line-height: 1.6; color: var(--ink-mute); margin: 0; }
@media (max-width: 860px) { .w-lcards { grid-template-columns: 1fr; } }

/* ---------- Blog — category filter ---------- */
.w-catfilter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.w-catbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 15px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark-mute); background: transparent; border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-full); cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.w-catbtn:hover { color: var(--on-dark); border-color: rgba(255,255,255,0.3); }
.w-catbtn--active { color: var(--on-dark); border-color: var(--signal); background: rgba(46,92,255,0.12); }
.w-catbtn__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.w-catbtn__dot--arbitration { background: var(--area-arbitration); }
.w-catbtn__dot--itip { background: var(--area-itip); }
.w-catbtn__dot--crypto { background: var(--area-crypto); }
.w-catbtn__dot--ai { background: var(--area-ai); }
.w-cards-empty { margin-top: 32px; color: var(--on-dark-soft); font-size: 15px; }

/* «Посмотреть все» — раскрывает остальные карточки */
.w-writing__more { display: flex; justify-content: center; margin-top: 28px; }
.w-morebtn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 22px;
  font-family: var(--font-sans); font-weight: 500; font-size: 15px; color: var(--on-dark);
  background: transparent; border: 1px solid var(--hairline-dark); border-radius: var(--radius-md);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.w-morebtn:hover { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.04); }
.w-morebtn__chev { display: inline-flex; color: var(--on-dark-soft); transition: transform .2s ease; }
.w-morebtn__chev--up { transform: rotate(180deg); }
