/* UNFINITX — public site stylesheet, design system v2 "Growth system".
   Layers: reset → tokens → base → layout → components → sections → utilities.
   Tokens are the single source of truth (docs/DESIGN_SYSTEM.md). Components use tokens only. */

@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------- Fonts (SIL OFL 1.1, self-hosted; see wwwroot/fonts/README.md) ----------
   Inter 4 for Latin and Cyrillic, Noto Sans Armenian for Armenian: one typography system, chosen per script by unicode-range. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Sans Armenian"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/fonts/noto-sans-armenian-armenian-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }
/* Until the Latin subset arrives, spaces and punctuation in hy/ru text use Arial scaled to Inter's metrics, so the late
   swap does not change line breaks (layout shift). */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 96%; unicode-range: U+0020, U+00A0; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 109%; unicode-range: U+0021-002F, U+003A-007E, U+00A1-00FF, U+2000-206F; }
/* Digits separately: "0" defines the ch unit that the title widths use. */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica"), local("Liberation Sans"); size-adjust: 116.2%; unicode-range: U+0030-0039; }

/* ---------- Reset ---------- */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body { min-height: 100vh; min-height: 100dvh; }
  img, picture, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { background: none; border: 0; padding: 0; cursor: pointer; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  a { color: inherit; }
  table { border-collapse: collapse; }
  /* Author display rules must never defeat the hidden attribute. */
  [hidden] { display: none !important; }
}

/* ---------- Tokens ---------- */
@layer tokens {
  :root {
    /* Brand */
    --lime: #ecf76d;
    --lime-strong: #e1ef45;
    --ink-950: #0b0c0a;
    --ink-900: #131510;
    --ink-800: #1e211b;
    --ink-700: #2a2e26;
    --ink-600: #3a3e35;
    --ink-400: #9a9c92;
    --paper: #f6f6f1;
    --paper-2: #ecede5;
    --white: #fbfbf7;
    --text-2: #383a33;
    --muted: #5c5e55;
    --hairline: #d9dacf;
    --success: #1d6b43;
    --success-bg: #e2efe5;
    --error: #b42318;
    --error-bg: #f8e4e1;
    --warning: #7a5200;
    --warning-bg: #f4ecd2;

    /* Semantic (redefined on dark surfaces) */
    --bg: var(--paper);
    --bg-alt: var(--paper-2);
    --fg: var(--ink-950);
    --fg-2: var(--text-2);
    --fg-muted: var(--muted);
    --line: var(--hairline);
    --line-strong: var(--ink-950);
    --link: var(--ink-950);
    --focus: var(--ink-950);
    --field-bg: #fff;
    --field-border: #c6c8bc;

    /* Type */
    --font-sans: "Inter", "Inter Fallback", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-display: clamp(2.5rem, 1.45rem + 4.6vw, 5.75rem);
    --fs-h1: clamp(2.25rem, 1.67rem + 2.59vw, 4rem);
    --fs-h2: clamp(1.875rem, 1.3rem + 2.45vw, 3.5rem);
    --fs-h3: clamp(1.25rem, 1.13rem + 0.56vw, 1.625rem);
    --fs-h4: 1.1875rem;
    --fs-lead: clamp(1.125rem, 1.04rem + 0.37vw, 1.375rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --fs-label: 0.8125rem;
    --lh-tight: 1.03;
    --lh-heading: 1.08;
    --lh-body: 1.6;
    --tracking-display: -0.035em;
    --tracking-heading: -0.025em;
    --measure: 41.64em;

    /* Space (4-based) */
    --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
    --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem; --sp-10: 8rem;
    --section-y: clamp(4.5rem, 3rem + 6vw, 9.5rem);

    /* Layout */
    --container: 85rem;
    --container-narrow: 52rem;
    --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);
    --grid-gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
    --header-h: 4.25rem;

    /* Shape & depth */
    --r-xs: 2px;
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-pill: 999px;
    --shadow-pop: 0 16px 40px -16px rgb(11 12 10 / 0.35);
    --shadow-card: 0 1px 2px rgb(11 12 10 / 0.04), 0 10px 30px -18px rgb(11 12 10 / 0.18);
    --shadow-lift: 0 2px 4px rgb(11 12 10 / 0.05), 0 28px 56px -24px rgb(11 12 10 / 0.32);
    /* Dark surfaces: a faint "system" grid and a soft lime glow (CSS only, no images). */
    --grid-lines: linear-gradient(rgb(251 251 247 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(251 251 247 / 0.045) 1px, transparent 1px);
    --glow-lime: radial-gradient(closest-side, rgb(236 247 109 / 0.13), rgb(236 247 109 / 0) 70%);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --t-fast: 140ms;
    --t-base: 240ms;
    --t-slow: 600ms;

    /* Controls */
    --control-h: 3rem;
    --target-min: 2.75rem;
  }

  .surface-dark, .band--ink {
    --bg: var(--ink-950);
    --bg-alt: var(--ink-900);
    --fg: var(--white);
    --fg-2: #d6d8ce;
    --fg-muted: var(--ink-400);
    --line: var(--ink-600);
    --line-strong: var(--white);
    --link: var(--white);
    --focus: var(--lime);
    --field-bg: var(--ink-900);
    --field-border: var(--ink-600);
  }
}

/* ---------- Base ---------- */
@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
  body {
    background: var(--paper);
    color: var(--ink-950);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 {
    font-weight: 500;
    line-height: var(--lh-heading);
    letter-spacing: var(--tracking-heading);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
  h4 { font-size: var(--fs-h4); letter-spacing: -0.005em; }
  :lang(hy) :is(h1, h2, h3, .display, .statement) { letter-spacing: -0.015em; }
  p { text-wrap: pretty; }
  a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
  strong, b { font-weight: 600; }
  ::selection { background: var(--lime); color: var(--ink-950); }

  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
  [tabindex="-1"]:focus { outline: none; }

  .skip-link {
    position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
    padding: var(--sp-3) var(--sp-5); background: var(--lime); color: var(--ink-950);
    border-radius: var(--r-md); font-weight: 600; text-decoration: none;
  }
  .skip-link:focus { top: var(--sp-3); }
}

/* ---------- Layout ---------- */
@layer layout {
  .container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
  .container--narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

  .section { padding-block: var(--section-y); background: var(--bg); color: var(--fg); }
  .section--tight { padding-block: calc(var(--section-y) * 0.6); }
  .section--alt, .surface-alt { background: var(--paper-2); }
  .surface-dark, .band--ink { background: var(--bg); color: var(--fg); }

  .split { display: grid; gap: var(--sp-7) var(--grid-gap); }
  @media (min-width: 1024px) {
    .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split__aside { position: sticky; top: calc(var(--header-h) + var(--sp-6)); align-self: start; }
  }

  .stack > * + * { margin-top: var(--stack-space, var(--sp-4)); }
  .stack--md { --stack-space: var(--sp-5); }
  .stack--lg { --stack-space: var(--sp-6); }

  main { display: block; }
  main:focus { outline: none; }
}

/* ---------- Components ---------- */
@layer components {
  /* Labels */
  .eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); line-height: 1.3; }
  :lang(hy) .eyebrow { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .eyebrow__index { display: inline-grid; place-items: center; min-width: 2.25rem; height: 1.625rem; padding: 0 0.55rem; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--fg); font-size: 0.75rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
  .eyebrow__index:empty { display: none; }
  .eyebrow__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime); flex: none; }

  .display { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); font-weight: 500; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
  :lang(hy) .display { line-height: 1.07; }
  .statement { font-size: clamp(1.875rem, 1.35rem + 2.3vw, 3.5rem); line-height: 1.08; letter-spacing: var(--tracking-heading); font-weight: 500; max-width: 11.62em; }
  .lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-2); max-width: 30.28em; }
  .lead--wide { max-width: 37.85em; }
  .muted { color: var(--fg-muted); }

  /* Buttons */
  .btn {
    --btn-bg: transparent; --btn-fg: var(--fg); --btn-border: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-3);
    min-height: var(--control-h); min-width: var(--target-min); padding: 0.6rem 1.4rem;
    border: 1px solid var(--btn-border); border-radius: var(--r-pill);
    background: var(--btn-bg); color: var(--btn-fg);
    font-size: 1rem; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
    transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
  }
  .btn__icon { width: 1.125rem; height: 1.125rem; flex: none; transition: transform var(--t-base) var(--ease-out); }
  .btn:hover .btn__icon { transform: translateX(4px); }
  .btn:active { transform: translateY(1px) scale(0.99); }
  .btn:focus-visible { outline-offset: 4px; border-radius: var(--r-pill); }
  .btn--primary { --btn-bg: var(--lime); --btn-fg: var(--ink-950); --btn-border: var(--lime); }
  .btn--primary:hover { --btn-bg: var(--lime-strong); --btn-border: var(--lime-strong); box-shadow: 0 10px 28px -12px rgb(225 239 69 / 0.75); }
  .btn--dark { --btn-bg: var(--ink-950); --btn-fg: var(--white); --btn-border: var(--ink-950); }
  .btn--dark:hover { --btn-bg: #000; --btn-border: #000; }
  .btn--secondary:hover { --btn-bg: var(--fg); --btn-fg: var(--bg); --btn-border: var(--fg); }
  .btn--ghost { --btn-border: transparent; padding-inline: var(--sp-3); }
  .btn--ghost:hover { --btn-bg: var(--bg-alt); }
  .btn--sm { min-height: var(--target-min); padding: 0.4rem 1rem; font-size: 0.9375rem; }
  .btn--block { width: 100%; }
  .btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
  .btn.is-loading { position: relative; color: transparent; pointer-events: none; }
  .btn.is-loading::after { content: ""; position: absolute; width: 1.125rem; height: 1.125rem; border: 2px solid var(--btn-fg); border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  .actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
  /* Narrow phones: long CTAs (e.g. ru "Получить бесплатную диагностику") stay on one line. */
  @media (max-width: 400px) { .btn { padding-inline: 0.875rem; gap: 0.5rem; font-size: 0.9375rem; } }

  /* Links */
  .link { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--target-min); color: var(--link); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.3em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color var(--t-fast) var(--ease); }
  .link:hover { text-decoration-color: currentColor; }
  .link .btn__icon { width: 1rem; height: 1rem; }
  .link:hover .btn__icon { transform: translateX(3px); }

  /* Section head */
  .section-head { display: grid; gap: var(--sp-5); margin-bottom: clamp(2.5rem, 1.5rem + 3.5vw, 5rem); }
  .section-head__title { max-width: 11.62em; letter-spacing: var(--tracking-display); }
  :lang(hy) .section-head__title { letter-spacing: -0.02em; }
  .section-head .lead { max-width: 32.81em; }
  @media (min-width: 1024px) {
    .section-head--split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: var(--grid-gap); }
    .section-head--split .eyebrow { grid-column: 1 / -1; }
  }

  /* Page hero (inner pages) — dark band continuing the header */
  .page-hero { background: var(--ink-950); color: var(--white); --fg: var(--white); --fg-2: #d6d8ce; --fg-muted: var(--ink-400); --line: var(--ink-600); --line-strong: var(--white); --link: var(--white); --focus: var(--lime); --bg: var(--ink-950); --bg-alt: var(--ink-900);
    padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
    position: relative; isolation: isolate; overflow: hidden; }
  /* The same quiet "system" grid as the home hero, fading out toward the content. */
  .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--grid-lines); background-size: 56px 56px; background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 0%, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 85% 0%, #000 0%, transparent 72%); }
  .page-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 44rem; aspect-ratio: 1; right: -14rem; top: -22rem; background: var(--glow-lime); }
  .page-hero__title { max-width: 12.91em; margin-top: var(--sp-5); }
  :lang(hy) .page-hero__title, :lang(ru) .page-hero__title { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.5rem); max-width: 14.2em; }
  .page-hero .eyebrow { margin-top: var(--sp-6); }
  .page-hero .lead { margin-top: var(--sp-5); max-width: 35.33em; }
  .page-hero .actions { margin-top: var(--sp-6); }

  /* Breadcrumbs */
  .breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); list-style: none; padding: 0; font-size: var(--fs-small); color: var(--fg-muted); }
  .breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); }
  /* Separator ends each item, so a wrapped line never starts with "/". */
  .breadcrumbs li:not(:last-child)::after { content: "/"; opacity: 0.5; }
  .breadcrumbs a { color: var(--fg-muted); text-decoration: none; display: inline-flex; min-height: var(--target-min); align-items: center; }
  .breadcrumbs a:hover { color: var(--fg); text-decoration: underline; }
  .breadcrumbs [aria-current] { color: var(--fg); }

  /* Rule list — numbered rows separated by hairlines */
  .rule-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: rule; }
  .rule-list__item { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); counter-increment: rule; }
  .rule-list__item::before { content: counter(rule, decimal-leading-zero); grid-row: span 2; font-size: var(--fs-small); font-weight: 500; color: var(--fg-muted); font-variant-numeric: tabular-nums; padding-top: 0.2em; }
  .rule-list__title { font-size: var(--fs-h4); font-weight: 500; line-height: 1.35; color: var(--fg); }
  .rule-list__text { color: var(--fg-2); max-width: 36.59em; }
  @media (min-width: 768px) {
    .rule-list--wide .rule-list__item { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; }
    .rule-list--wide .rule-list__item::before { grid-row: auto; }
  }

  /* Index rows */
  .index-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: idx; }
  .index-row { border-bottom: 1px solid var(--line); counter-increment: idx; }
  .index-row__link { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: var(--sp-2) var(--sp-4); align-items: start; padding: var(--sp-5) 0; text-decoration: none; color: var(--fg); }
  .index-row__link::before { content: counter(idx, decimal-leading-zero); font-size: var(--fs-small); font-weight: 500; color: var(--fg-muted); font-variant-numeric: tabular-nums; padding-top: 0.35em; }
  .index-row__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.22; }
  .index-row__text { grid-column: 2; color: var(--fg-2); max-width: 37.85em; }
  .index-row__meta { display: block; margin-top: var(--sp-2); font-size: var(--fs-small); color: var(--fg-muted); }
  .index-row__meta strong { color: var(--fg-2); font-weight: 500; }
  .index-row__arrow, .solution-row__arrow, .service-card__arrow { grid-column: 3; grid-row: 1; justify-self: end; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; transition: background-color var(--t-base) var(--ease), border-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
  .index-row__arrow svg, .solution-row__arrow svg, .service-card__arrow svg { width: 1.125rem; height: 1.125rem; transition: transform var(--t-base) var(--ease); }
  :is(.index-row__link, .solution-row__link, .service-card__link):is(:hover, :focus-visible) :is(.index-row__arrow, .solution-row__arrow, .service-card__arrow) { background: var(--lime); border-color: var(--lime); color: var(--ink-950); }
  :is(.index-row__link, .solution-row__link, .service-card__link):hover svg { transform: translateX(2px); }
  .index-row__link:hover .index-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  @media (min-width: 1024px) {
    .index-row__link { grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 6fr) 2.75rem; align-items: center; padding-block: var(--sp-6); }
    .index-row__text { grid-column: 3; }
    .index-row__arrow { grid-column: 4; }
  }

  /* Tags (text markers, not pills) */
  .tag { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 1.75rem; padding: 0.15rem 0.7rem; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 0.875rem; color: var(--fg-2); text-decoration: none; }
  a.tag { min-height: var(--target-min); }
  a.tag:hover { border-color: var(--fg); color: var(--fg); }
  .tag[aria-current="page"] { background: var(--ink-950); border-color: var(--ink-950); color: var(--white); }
  .tag[aria-current="page"] .muted { color: var(--ink-400); }
  .tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; }

  /* Tiles — the only card (projects, comparable items) */
  .tiles { display: grid; gap: var(--sp-7) var(--grid-gap); grid-template-columns: minmax(0, 1fr); list-style: none; padding: 0; }
  @media (min-width: 768px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  /* Three columns only once there are three items, so two published cases fill the row instead of leaving a gap. */
  @media (min-width: 1280px) { .tiles--3:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .tile { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); }
  .tile__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-lg); background: var(--ink-950); margin-bottom: var(--sp-2);
    transition: transform var(--t-slow) var(--ease-out), box-shadow var(--t-slow) var(--ease-out); }
  .tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
  /* Corner badge: an arrow that turns lime when the card is hovered or its link is focused (decorative). */
  .tile__media::after { content: ""; position: absolute; right: var(--sp-4); bottom: var(--sp-4); width: 2.75rem; height: 2.75rem; border-radius: 50%;
    background: rgb(251 251 247 / 0.12) no-repeat center / 1.125rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbfbf7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E");
    border: 1px solid rgb(251 251 247 / 0.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease); }
  .tile:is(:hover, :focus-within) .tile__media { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .tile:is(:hover, :focus-within) .tile__media img { transform: scale(1.035); }
  .tile:is(:hover, :focus-within) .tile__media::after { background-color: var(--lime); border-color: var(--lime); transform: rotate(45deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0c0a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M8 7h9v9'/%3E%3C/svg%3E"); }
  .tile__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-small); color: var(--fg-muted); }
  .tile__title { font-size: var(--fs-h3); line-height: 1.22; }
  .tile__title a { text-decoration: none; }
  .tile__title a::after { content: ""; position: absolute; inset: 0; }
  .tile:hover .tile__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .tile__text { color: var(--fg-2); }
  .tile__placeholder { width: 100%; height: 100%; display: grid; place-items: center; padding: var(--sp-5); font-weight: 500; letter-spacing: -0.01em; color: var(--white); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); text-align: center; }
  /* Case-study mark as the tile image (no library cover): the logo stays whole and centred on its case background. */
  .tile__media--mark { display: grid; place-items: center; }
  .tile__media--mark img { width: auto; height: auto; max-width: 64%; max-height: 68%; object-fit: contain; }
  .tile__media--cinema { background: #090807; }

  /* Prose */
  .prose { max-width: var(--measure); color: var(--fg-2); }
  .prose > * + * { margin-top: 1.1em; }
  .prose h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); color: var(--fg); margin-top: 2em; }
  .prose h3 { font-size: var(--fs-h4); color: var(--fg); margin-top: 1.75em; }
  .prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
  .prose ul, .prose ol { padding-left: 1.25em; }
  .prose li + li { margin-top: 0.4em; }
  .prose li::marker { color: var(--fg-muted); }
  .prose a { color: var(--fg); text-decoration-thickness: 1px; }
  .prose a:hover { text-decoration-thickness: 2px; }
  .prose strong { color: var(--fg); }
  .prose blockquote { border-left: 3px solid var(--lime); padding-left: var(--sp-5); font-size: var(--fs-lead); color: var(--fg); }
  .prose table { width: 100%; font-size: var(--fs-small); display: block; overflow-x: auto; }
  .prose th, .prose td { text-align: left; padding: var(--sp-3); border-bottom: 1px solid var(--line); }
  .prose hr { border: 0; border-top: 1px solid var(--line); }
  .prose code { font-size: 0.9em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: var(--r-xs); }
  .prose--lg { font-size: 1.125rem; }

  /* Notices */
  .notice { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); border: 1px solid; font-size: var(--fs-small); line-height: 1.5; }
  .notice--success { background: var(--success-bg); border-color: var(--success); color: var(--success); }
  .notice--error { background: var(--error-bg); border-color: var(--error); color: var(--error); }
  .notice--info { background: var(--paper-2); border-color: var(--hairline); color: var(--text-2); }
  .notice--warning { background: var(--warning-bg); border-color: var(--warning); color: var(--warning); }

  /* Empty state */
  .empty { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-md); text-align: center; color: var(--fg-2); background: var(--bg); }
  .empty__title { font-size: var(--fs-h3); color: var(--fg); margin-bottom: var(--sp-3); }
  .empty p { max-width: 32.81em; margin-inline: auto; }
  .empty .actions { justify-content: center; margin-top: var(--sp-5); }

  /* Forms */
  .form { display: grid; gap: var(--sp-5); }
  .form-row { display: grid; gap: var(--sp-5); }
  @media (min-width: 768px) { .form-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .field { display: grid; gap: var(--sp-2); align-content: start; }
  .field__label { font-weight: 500; font-size: 0.9375rem; color: var(--fg); }
  .field__optional { font-weight: 400; color: var(--fg-muted); }
  .field__hint { font-size: 0.875rem; color: var(--fg-muted); }
  .field__error { font-size: 0.875rem; font-weight: 500; color: var(--error); }
  .field__error:empty { display: none; }
  .field__input { width: 100%; min-height: var(--control-h); padding: 0.75rem 1rem; border: 1px solid var(--field-border); border-radius: var(--r-md); background: var(--field-bg); color: var(--fg); font-size: 1rem; line-height: 1.4; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
  .field__input::placeholder { color: #7f8178; }
  .field__input:hover { border-color: #9a9c92; }
  .field__input:focus { outline: none; border-color: var(--ink-950); box-shadow: 0 0 0 3px var(--lime); }
  .field__input:disabled { background: var(--paper-2); color: var(--muted); cursor: not-allowed; }
  .field__input[aria-invalid="true"] { border-color: var(--error); }
  .field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgb(180 35 24 / 0.25); }
  textarea.field__input { min-height: 8rem; resize: vertical; }
  select.field__input { appearance: none; padding-right: 2.75rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230b0c0a' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
  fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
  legend { padding: 0; }
  .fieldset__legend { font-weight: 500; font-size: 0.9375rem; margin-bottom: var(--sp-2); }

  .choices { display: grid; gap: 0; }
  .choices--chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
  .choice { position: relative; display: flex; align-items: flex-start; gap: var(--sp-3); min-height: var(--target-min); padding: 0.6rem 0; cursor: pointer; line-height: 1.45; }
  .choice input { appearance: none; flex: none; width: 1.375rem; height: 1.375rem; margin-top: 0.05rem; border: 1px solid #7f8178; border-radius: var(--r-sm); background: #fff; display: grid; place-content: center; cursor: pointer; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
  .choice input[type="radio"] { border-radius: 50%; }
  .choice input::before { content: ""; width: 0.7rem; height: 0.7rem; transform: scale(0); transition: transform var(--t-fast) var(--ease); background: var(--lime); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); }
  .choice input[type="radio"]::before { clip-path: circle(50%); width: 0.55rem; height: 0.55rem; }
  .choice input:checked { background: var(--ink-950); border-color: var(--ink-950); }
  .choice input:checked::before { transform: scale(1); }
  .choice input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  .choice input:disabled { opacity: 0.5; cursor: not-allowed; }
  .choice input[aria-invalid="true"] { border-color: var(--error); }

  .chip { position: relative; display: inline-flex; }
  .chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
  .chip span { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--target-min); padding: 0.5rem 1rem; border: 1px solid var(--field-border); border-radius: var(--r-md); background: var(--field-bg); font-size: 0.9375rem; line-height: 1.35; transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
  .chip:hover span { border-color: var(--ink-950); }
  .chip input:checked + span { background: var(--lime); border-color: var(--ink-950); color: var(--ink-950); }
  .chip input:checked + span::before { content: "✓"; font-weight: 700; }
  .chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
  .chip input:disabled + span { opacity: 0.5; }
  .chip input[aria-invalid="true"] + span { border-color: var(--error); }

  /* Steps indicator */
  .steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-2); list-style: none; padding: 0; }
  .steps__item { display: grid; gap: var(--sp-2); font-size: 0.8125rem; color: var(--fg-muted); }
  .steps__item::before { content: ""; height: 4px; border-radius: 2px; background: var(--hairline); transition: background-color var(--t-base) var(--ease); }
  .steps__item.is-done::before { background: var(--ink-950); }
  .steps__item[aria-current="step"]::before { background: var(--lime); box-shadow: inset 0 0 0 1px var(--ink-950); }
  .steps__item[aria-current="step"] { color: var(--ink-950); font-weight: 500; }
  .steps__label { display: none; }
  @media (min-width: 768px) { .steps__label { display: block; } }

  /* Dialog */
  .dialog { border: 0; border-radius: var(--r-md); padding: var(--sp-6); max-width: min(32rem, calc(100vw - 2rem)); box-shadow: var(--shadow-pop); background: var(--paper); color: var(--ink-950); }
  .dialog::backdrop { background: rgb(11 12 10 / 0.55); }

  /* Facts (problem / audience / outcome) */
  .facts { display: grid; gap: var(--sp-5) var(--grid-gap); }
  @media (min-width: 768px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .fact { border-top: 1px solid var(--line-strong); padding-top: var(--sp-4); }
  .fact__label { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-2); }
  :lang(hy) .fact__label { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .fact__text { color: var(--fg-2); }
  .facts--lg .fact__text { font-size: 1.125rem; line-height: 1.55; color: var(--fg); }

  /* Media */
  .figure { display: grid; gap: var(--sp-3); }
  .figure img { border-radius: var(--r-md); width: 100%; }
  .figure figcaption { font-size: var(--fs-small); color: var(--fg-muted); }
  .video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--ink-950); }
  .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

  /* Preview banner */
  .preview-banner { position: sticky; top: 0; z-index: 60; padding: var(--sp-2) var(--gutter); background: var(--lime); color: var(--ink-950); font-size: var(--fs-small); font-weight: 500; text-align: center; }

  .logo { display: block; width: auto; height: 1.5rem; }
}

/* ---------- Site chrome ---------- */
@layer sections {
  /* The shell holds banner + header + main: sticky children stick only inside it and leave with the content when the
     footer arrives (a tall phone footer would otherwise scroll under the header). No overflow / transform here. */
  .site-shell { display: block; }
  .site-header {
    --bg: var(--ink-950); --bg-alt: var(--ink-800); --fg: var(--white); --fg-muted: var(--ink-400); --line: var(--ink-600); --focus: var(--lime);
    position: sticky; top: 0; z-index: 50;
    background: var(--ink-950); color: var(--white);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
  }
  .site-header.is-scrolled { border-bottom-color: rgb(251 251 247 / 0.08); }
  /* Frosted once the page scrolls (same height — no layout shift); solid where backdrop blur is unsupported. */
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header.is-scrolled { background: rgb(11 12 10 / 0.78); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); }
  }
  .site-header__cta.btn { min-height: var(--target-min); padding-block: 0.45rem; font-size: 0.9375rem; }
  .site-header__bar { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); }
  .site-header__brand, .mobile-menu__brand, .site-footer__brand { display: inline-flex; align-items: center; min-height: var(--target-min); flex: none; }
  .site-header__brand { margin-right: auto; }
  @media (min-width: 1024px) { .site-header .logo { height: 1.625rem; } }
  .site-header__nav { display: none; }
  .site-header__tools { display: flex; align-items: center; gap: var(--sp-2); }
  .site-header__cta { display: none; }
  @media (min-width: 640px) { .site-header__cta { display: inline-flex; white-space: nowrap; } .site-header__bar { gap: var(--sp-5); } }
  @media (min-width: 1240px) {
    .site-header__nav { display: block; }
    .site-header__brand { margin-right: 0; }
    .site-header__tools { margin-left: auto; }
  }
  .nav-list { display: flex; gap: 2px; list-style: none; padding: 0; }
  .nav-list a { position: relative; display: inline-flex; align-items: center; min-height: var(--target-min); padding: 0 0.65rem; font-size: 0.9375rem; text-decoration: none; color: #c9cbc1; white-space: nowrap; transition: color var(--t-fast) var(--ease); }
  .nav-list a::after { content: ""; position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.55rem; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease); }
  .nav-list a:hover { color: var(--white); }
  .nav-list a:hover::after { transform: scaleX(1); }
  .nav-list a[aria-current="page"] { color: var(--white); }
  .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
  @media (min-width: 1240px) and (max-width: 1399px) {
    .nav-list a { padding: 0 0.5rem; font-size: 0.875rem; }
    .nav-list a::after { left: 0.5rem; right: 0.5rem; }
    .site-header .lang-switch a { min-width: 2.5rem; }
    .site-header__bar { gap: var(--sp-4); }
  }

  .lang-switch { display: flex; list-style: none; padding: 0; gap: 2px; }
  .lang-switch a { display: inline-grid; place-items: center; min-width: var(--target-min); min-height: var(--target-min); padding: 0 0.4rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; color: var(--fg-muted); border-radius: var(--r-sm); transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
  .lang-switch a:hover { color: var(--fg); background: var(--bg-alt); }
  .lang-switch a[aria-current="true"] { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
  .site-header .lang-switch { display: none; }
  @media (min-width: 900px) { .site-header .lang-switch { display: flex; } }

  .site-header__toggle { display: inline-flex; align-items: center; justify-content: center; width: var(--target-min); height: var(--target-min); border-radius: var(--r-md); border: 1px solid var(--ink-600); color: var(--white); }
  .site-header__toggle:hover { background: var(--ink-800); }
  .site-header__toggle svg { width: 1.25rem; height: 1.25rem; }
  @media (min-width: 1240px) { .site-header__toggle { display: none; } }

  /* Mobile menu */
  .mobile-menu { --fg: var(--white); --fg-muted: var(--ink-400); --bg-alt: var(--ink-800); --line: var(--ink-600); --focus: var(--lime);
    position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: var(--ink-950); color: var(--white); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base); overflow-y: auto; overscroll-behavior: contain; }
  .mobile-menu.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s; }
  .mobile-menu > .container { display: flex; flex-direction: column; min-height: 100%; }
  .mobile-menu__bar { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
  .mobile-menu__close { display: inline-grid; place-items: center; width: var(--target-min); height: var(--target-min); border-radius: var(--r-md); border: 1px solid var(--ink-600); color: var(--white); }
  .mobile-menu__close svg { width: 1.25rem; height: 1.25rem; }
  .mobile-menu__nav { margin-top: var(--sp-5); }
  .mobile-menu__nav ol { list-style: none; padding: 0; counter-reset: m; border-top: 1px solid var(--ink-700); }
  .mobile-menu__nav li { counter-increment: m; border-bottom: 1px solid var(--ink-700); }
  .mobile-menu__nav a { display: flex; align-items: baseline; gap: var(--sp-4); padding: var(--sp-4) 0; font-size: clamp(1.375rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; text-decoration: none; color: var(--white); line-height: 1.2; }
  .mobile-menu__nav a::before { content: counter(m, decimal-leading-zero); font-size: 0.875rem; color: var(--ink-400); letter-spacing: 0; min-width: 1.75rem; }
  .mobile-menu__nav a[aria-current="page"] { color: var(--lime); }
  .mobile-menu__footer { margin-top: auto; padding-block: var(--sp-6); display: grid; gap: var(--sp-5); }
  .mobile-menu .lang-switch a[aria-current="true"], .site-header .lang-switch a[aria-current="true"] { color: var(--ink-950); background: var(--lime); box-shadow: none; }
  body.menu-open { overflow: hidden; }
  @media (min-width: 1240px) { .mobile-menu { display: none; } }

  /* Footer */
  .site-footer { padding-top: var(--section-y); padding-bottom: max(var(--sp-6), env(safe-area-inset-bottom)); }
  .site-footer__lead { display: grid; gap: var(--sp-6); padding-bottom: clamp(3rem, 2rem + 4vw, 6rem); border-bottom: 1px solid var(--line); }
  .site-footer__title { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: var(--tracking-heading); max-width: 14.2em; }
  @media (min-width: 1024px) { .site-footer__lead { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } .site-footer__lead .actions { justify-content: flex-end; } }
  .site-footer__grid { display: grid; gap: var(--sp-7) var(--grid-gap); padding-block: var(--sp-8); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 768px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); } }
  .site-footer__brand .logo { height: 2rem; }
  .site-footer__heading { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-3); }
  :lang(hy) .site-footer__heading { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .site-footer__list { list-style: none; padding: 0; display: grid; }
  .site-footer__list a { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--fg-2); text-decoration: none; }
  .site-footer__list a:hover { color: var(--lime); }
  .site-footer__list li:not(:has(a)) { padding-block: 0.6rem; color: var(--fg-2); }
  .site-footer__note { color: var(--fg-muted); max-width: 21.45em; margin-top: var(--sp-4); }
  .site-footer__bottom { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); align-items: center; justify-content: space-between; padding-top: var(--sp-5); border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--fg-muted); }
  .site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 var(--sp-5); list-style: none; padding: 0; }
  .site-footer__legal a { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--fg-muted); text-decoration: none; }
  .site-footer__legal a:hover { color: var(--fg); text-decoration: underline; }
  .site-shell:has(> main > .cta-band:last-child) + .site-footer { padding-top: 0; }
  .site-shell:has(> main > .cta-band:last-child) + .site-footer .site-footer__lead { display: none; }
  .site-shell:has(> main > .cta-band:last-child) + .site-footer .site-footer__grid { border-top: 1px solid var(--line); }

  /* ===== Home: hero with growth-system diagram ===== */
  .hero { position: relative; overflow: hidden; padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
  .hero__grid { display: grid; gap: var(--sp-8) var(--grid-gap); align-items: center; }
  @media (min-width: 1100px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
  .hero__title { margin-top: var(--sp-5); max-width: 9.68em; }
  :lang(hy) .hero__title { font-size: clamp(2.25rem, 1.45rem + 3.4vw, 4.5rem); max-width: 11.62em; }
  :lang(ru) .hero__title { font-size: clamp(2.25rem, 1.5rem + 3.3vw, 4.75rem); max-width: 10.97em; }
  .hero__lead { margin-top: var(--sp-6); max-width: 29.02em; color: var(--fg-2); }
  .hero__actions { margin-top: var(--sp-7); }
  /* Quiet "system" texture: a fine grid fading out from the diagram, and a soft lime glow behind it. */
  .hero { isolation: isolate; }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--grid-lines); background-size: 64px 64px; background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 78% 38%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 55% 70% at 78% 38%, #000 0%, transparent 75%); }
  .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: min(64rem, 120vw); aspect-ratio: 1; left: 78%; top: 38%; transform: translate(-50%, -50%); background: var(--glow-lime); }
  @media (max-width: 1099px) { .hero::before { -webkit-mask-image: radial-gradient(ellipse 90% 45% at 50% 72%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 90% 45% at 50% 72%, #000 0%, transparent 75%); } .hero::after { left: 50%; top: 72%; } }

  .system { container-type: inline-size; width: min(100%, 34rem); justify-self: center; }
  .system__stage { position: relative; aspect-ratio: 1; }
  .system__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .system__ring { fill: none; stroke: var(--ink-700); stroke-width: 1; stroke-dasharray: 2 6; }
  .system__arc { fill: none; stroke: var(--ink-600); stroke-width: 1.5; stroke-linecap: round; transition: stroke var(--t-base) var(--ease); }
  .system__spoke { stroke: var(--ink-700); stroke-width: 1; stroke-dasharray: 3 5; transition: stroke var(--t-base) var(--ease); }
  .system__core { position: absolute; left: 50%; top: 50%; width: 30cqi; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 0.5rem; text-align: center; }
  .system__core img { width: 14cqi; height: auto; }
  .system__core-label { font-size: max(0.75rem, 2.9cqi); color: var(--ink-400); line-height: 1.25; }
  .system__nodes { list-style: none; padding: 0; margin: 0; }
  .system__node { position: absolute; left: 50%; top: 50%; --angle: 0deg; transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-37.5cqi) rotate(calc(-1 * var(--angle))); }
  .system__node:nth-child(1) { --angle: 0deg; }
  .system__node:nth-child(2) { --angle: 60deg; }
  .system__node:nth-child(3) { --angle: 120deg; }
  .system__node:nth-child(4) { --angle: 180deg; }
  .system__node:nth-child(5) { --angle: 240deg; }
  .system__node:nth-child(6) { --angle: 300deg; }
  .system__pin { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 6.5rem; padding: 0.55rem 0.85rem; border: 1px solid rgb(251 251 247 / 0.14); border-radius: 14px; background: rgb(19 21 16 / 0.86); color: var(--white); text-decoration: none; text-align: center; box-shadow: 0 10px 30px -18px rgb(0 0 0 / 0.9); transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out); }
  a.system__pin:is(:hover, :focus-visible) { transform: translateY(-2px); }
  .system__core::before { content: ""; position: absolute; left: 50%; top: 38%; width: 22cqi; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(236 247 109 / 0.28), transparent); z-index: -1; }
  .system__num { font-size: 0.6875rem; letter-spacing: 0.08em; color: var(--ink-400); font-variant-numeric: tabular-nums; }
  .system__label { font-size: clamp(0.8125rem, 3.1cqi, 0.9375rem); font-weight: 500; white-space: nowrap; }
  .system__desc { position: absolute; left: 50%; top: calc(100% + 0.5rem); width: 13rem; transform: translateX(-50%); padding: 0.6rem 0.75rem; border-radius: var(--r-md); background: var(--white); color: var(--ink-950); font-size: 0.8125rem; line-height: 1.4; text-align: left; box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transition: opacity var(--t-fast) var(--ease); z-index: 3; pointer-events: none; }
  .system__node:nth-child(4) .system__desc { top: auto; bottom: calc(100% + 0.5rem); }
  a.system__pin:is(:hover, :focus-visible), .system__pin:hover { border-color: var(--lime); background: var(--lime); color: var(--ink-950); }
  a.system__pin:is(:hover, :focus-visible) .system__num, .system__pin:hover .system__num { color: var(--ink-950); }
  .system__pin:is(:hover, :focus-visible) .system__desc { opacity: 1; visibility: visible; }
  .system__node:hover, .system__node:focus-within { z-index: 2; }
  /* Light up the arcs and spoke that belong to the hovered or focused node. */
  .system:has(.system__node:nth-child(1) :is(:hover, :focus-visible)) :is(.system__arc--1, .system__arc--6, .system__spoke--1),
  .system:has(.system__node:nth-child(2) :is(:hover, :focus-visible)) :is(.system__arc--1, .system__arc--2, .system__spoke--2),
  .system:has(.system__node:nth-child(3) :is(:hover, :focus-visible)) :is(.system__arc--2, .system__arc--3, .system__spoke--3),
  .system:has(.system__node:nth-child(4) :is(:hover, :focus-visible)) :is(.system__arc--3, .system__arc--4, .system__spoke--4),
  .system:has(.system__node:nth-child(5) :is(:hover, :focus-visible)) :is(.system__arc--4, .system__arc--5, .system__spoke--5),
  .system:has(.system__node:nth-child(6) :is(:hover, :focus-visible)) :is(.system__arc--5, .system__arc--6, .system__spoke--6) { stroke: var(--lime); }
  @media (max-width: 479px) {
    .system__pin { min-width: 0; padding: 0.4rem 0.5rem; }
    .system__num { display: none; }
    .system__desc { display: none; }
  }
  @media (max-width: 359.98px) {
    .system__pin { padding: 0.35rem 0.4rem; border-radius: 10px; }
    .system__label { font-size: 0.75rem; }
  }

  .hero__core { display: grid; gap: var(--sp-3); margin-top: clamp(3rem, 2rem + 4vw, 6rem); padding-top: var(--sp-5); border-top: 1px solid var(--ink-700); }
  @media (min-width: 1024px) { .hero__core { grid-template-columns: minmax(0, 2fr) minmax(0, 10fr); align-items: start; } }
  .hero__core-label { font-size: var(--fs-label); color: var(--ink-400); letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.85rem; }
  :lang(hy) .hero__core-label { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .hero__core-list { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); }
  @media (min-width: 640px) { .hero__core-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); } }
  @media (min-width: 1240px) { .hero__core-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .hero__core-list li { display: flex; }
  /* Direction cards: quiet glass panels; the arrow chip fills with lime on hover / focus. */
  .hero__core-list a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 4.25rem; padding: 0.85rem 0.85rem 0.85rem 1.15rem;
    border: 1px solid rgb(251 251 247 / 0.1); border-radius: var(--r-lg); background: rgb(251 251 247 / 0.025); color: var(--white); text-decoration: none; font-weight: 500; line-height: 1.3;
    transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out); }
  .hero__core-list a:is(:hover, :focus-visible) { border-color: rgb(236 247 109 / 0.55); background: rgb(251 251 247 / 0.05); transform: translateY(-2px); }
  .hero__core-icon { width: 2rem; height: 2rem; padding: 0.45rem; flex: none; border-radius: 50%; color: var(--lime); background: rgb(236 247 109 / 0.1); transition: transform var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease), color var(--t-base) var(--ease); }
  .hero__core-list a:is(:hover, :focus-visible) .hero__core-icon { transform: rotate(45deg); background: var(--lime); color: var(--ink-950); }

  /* ===== Problems: editorial two-column statements ===== */
  .problems__list { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); counter-reset: pr; }
  @media (min-width: 900px) { .problems__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); } }
  .problems__item { counter-increment: pr; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--sp-3); padding: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
    background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg);
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease); }
  .problems__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: #c9cabe; }
  .problems__item::before { content: counter(pr, decimal-leading-zero); justify-self: start; display: inline-grid; place-items: center; min-width: 2.25rem; height: 1.625rem; padding: 0 0.55rem; border-radius: var(--r-pill); background: var(--paper-2); font-size: 0.75rem; font-weight: 500; color: var(--ink-950); font-variant-numeric: tabular-nums; }
  .problems__quote { font-size: var(--fs-h3); line-height: 1.22; letter-spacing: -0.015em; font-weight: 500; color: var(--ink-950); }
  .problems__effect { color: var(--text-2); max-width: 29.02em; }

  /* ===== Solutions: rows that show the assembled services ===== */
  .solution-rows { list-style: none; padding: 0; border-top: 1px solid var(--ink-950); }
  .solution-row { border-bottom: 1px solid var(--hairline); }
  .solution-row__link { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) 2.75rem; gap: var(--sp-3) var(--sp-4); padding: var(--sp-6) var(--sp-3); margin-inline: calc(-1 * var(--sp-3)); border-radius: var(--r-lg); text-decoration: none; color: var(--ink-950); align-items: start; transition: background-color var(--t-base) var(--ease); }
  .solution-row__link:is(:hover, :focus-visible) { background: var(--white); }
  .solution-row__num { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 0.4em; }
  .solution-row__main { display: grid; gap: var(--sp-2); }
  .solution-row__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.22; letter-spacing: -0.015em; }
  .solution-row__text { color: var(--text-2); max-width: 34.07em; }
  .solution-row__parts { grid-column: 2; display: grid; gap: var(--sp-2); }
  .solution-row__parts-label { font-size: 0.8125rem; color: var(--muted); }
  /* What a solution assembles, as one calm line (dot-separated) instead of a cloud of chips. */
  .solution-row__chain { display: flex; flex-wrap: wrap; gap: 0.15rem 0; align-items: baseline; font-size: 0.9375rem; line-height: 1.5; color: var(--text-2); }
  .solution-row__part { display: inline; }
  .solution-row__part:not(:last-child)::after { content: "·"; margin-inline: 0.55rem; color: #9a9c92; }
  .solution-row__link:hover .solution-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .solution-row__arrow { grid-column: 3; grid-row: 1; }
  @media (min-width: 1024px) {
    .solution-row__link { grid-template-columns: 3rem minmax(0, 5fr) minmax(0, 5fr) 2.75rem; align-items: center; }
    .solution-row__parts { grid-column: 3; }
    .solution-row__arrow { grid-column: 4; }
  }
  /* Phones: number and arrow share the top line so the copy gets the full width. */
  @media (max-width: 639.98px) {
    .solution-row__link { grid-template-columns: minmax(0, 1fr) 2.75rem; align-items: center; }
    .solution-row__num { grid-column: 1; grid-row: 1; padding-top: 0; }
    .solution-row__arrow { grid-column: 2; }
    .solution-row__main, .solution-row__parts { grid-column: 1 / -1; }
  }

  /* ===== Services: weighted tiers ===== */
  .services-tiers__note { margin-bottom: var(--sp-7); }
  .core-grid { list-style: none; padding: 0; display: grid; gap: var(--grid-gap); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 900px) { .core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .core article { position: relative; display: grid; gap: var(--sp-4); align-content: start; height: 100%; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--hairline); border-radius: var(--r-xl); background: #fff;
    transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out); }
  .core article:hover, .core article:focus-within { border-color: var(--ink-950); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
  .core__num span { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2rem; padding: 0 0.7rem; border-radius: var(--r-pill); background: var(--lime); color: var(--ink-950); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
  .core__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); line-height: 1.12; letter-spacing: var(--tracking-heading); }
  .core__title a { text-decoration: none; }
  .core__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
  .core__problem { color: var(--text-2); }
  .core__outcome { padding-top: var(--sp-4); border-top: 1px solid var(--hairline); color: var(--ink-950); }
  .core__outcome-label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.25rem; }
  .core__more { display: inline-flex; align-items: center; gap: var(--sp-2); font-weight: 500; margin-top: auto; }
  .core article:hover .core__more .btn__icon { transform: translateX(3px); }
  .also { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: var(--sp-5); }
  @media (min-width: 1024px) { .also { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); } }
  .also__title { font-size: var(--fs-h4); }
  .also__list { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink-950); }
  @media (min-width: 768px) { .also__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
  .also__list a { display: grid; gap: 0.25rem; padding-block: var(--sp-4); border-bottom: 1px solid var(--hairline); text-decoration: none; height: 100%; }
  .also__name { font-weight: 500; }
  .also__text { font-size: var(--fs-small); color: var(--muted); }
  .also__list a:hover .also__name { text-decoration: underline; text-underline-offset: 0.2em; }

  /* ===== Process timeline (dark band) ===== */
  .timeline { list-style: none; padding: 0; display: grid; gap: 0; }
  .timeline__step { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); padding: var(--sp-5) 0; border-top: 1px solid var(--ink-700); }
  .timeline__dot { display: none; }
  .timeline__num { grid-row: span 2; color: var(--lime); font-size: var(--fs-small); font-variant-numeric: tabular-nums; padding-top: 0.25em; }
  .timeline__title { font-size: var(--fs-h4); line-height: 1.3; }
  .timeline__text { color: var(--fg-2); font-size: var(--fs-small); }
  @media (min-width: 1024px) {
    .timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); position: relative; }
    .timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 0.4rem; height: 1px; background: var(--ink-600); }
    .timeline__step { grid-template-columns: 1fr; grid-template-rows: auto auto auto 1fr; border-top: 0; padding-top: 0; }
    .timeline__dot { display: block; width: 0.875rem; height: 0.875rem; border-radius: 50%; background: var(--ink-950); border: 2px solid var(--lime); position: relative; margin-bottom: var(--sp-6); }
    .timeline__num { grid-row: auto; font-size: clamp(2rem, 1.5rem + 1.4vw, 3rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: var(--sp-4); }
  }

  /* ===== Advantages ===== */
  .feature-grid { list-style: none; padding: 0; display: grid; gap: var(--sp-6) var(--grid-gap); }
  @media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .feature { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-3); align-content: start; border-top: 1px solid var(--line-strong); padding-top: var(--sp-5); }
  .feature__icon { width: 1.25rem; height: 1.25rem; color: var(--ink-950); background: var(--lime); border-radius: var(--r-sm); padding: 2px; margin-top: 0.15em; }
  .feature__title { font-size: var(--fs-h4); line-height: 1.35; }
  .feature__text { grid-column: 2; color: var(--fg-2); }
  /* Without an icon the title and text use the full width (otherwise the title falls into the 1.5rem icon column). */
  .feature--plain { grid-template-columns: minmax(0, 1fr); }
  .feature--plain .feature__text { grid-column: 1; }

  /* ===== About teaser ===== */
  .facts-row { display: grid; gap: var(--sp-5) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
  @media (min-width: 1024px) { .facts-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .facts-row__item { border-top: 1px solid var(--ink-950); padding-top: var(--sp-4); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--sp-2); }
  .facts-row__item dd { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2.125rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
  .facts-row__item dt { color: var(--muted); font-size: var(--fs-small); }

  /* Partners, testimonials */
  .logo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
  @media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .logo-grid__item { display: grid; place-items: center; min-height: 7rem; padding: var(--sp-5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .logo-grid__item img { max-height: 3rem; width: auto; filter: grayscale(1); opacity: 0.85; transition: filter var(--t-base) var(--ease), opacity var(--t-base) var(--ease); }
  .logo-grid__item a:hover img { filter: none; opacity: 1; }
  .logo-grid__item span { font-weight: 500; }
  .quotes { display: grid; gap: var(--sp-7) var(--grid-gap); }
  @media (min-width: 1024px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .quote { border-top: 1px solid var(--line-strong); padding-top: var(--sp-5); }
  .quote__text { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg); }
  .quote__text p::before { content: "“"; }
  .quote__text p::after { content: "”"; }
  :lang(hy) .quote__text p::before, :lang(ru) .quote__text p::before { content: "«"; }
  :lang(hy) .quote__text p::after, :lang(ru) .quote__text p::after { content: "»"; }
  .quote__author { display: grid; margin-top: var(--sp-5); font-size: var(--fs-small); }
  .quote__name { font-weight: 500; }
  .quote__role { color: var(--fg-muted); }

  /* Closing CTA band */
  .cta-band { position: relative; isolation: isolate; overflow: hidden; }
  .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: var(--grid-lines); background-size: 64px 64px; background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 100%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 60% 80% at 80% 100%, #000 0%, transparent 75%); }
  .cta-band::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 48rem; aspect-ratio: 1; right: -16rem; bottom: -30rem; background: var(--glow-lime); }
  .cta-band__inner { display: grid; gap: var(--sp-5); justify-items: start; }
  .cta-band__title { font-size: var(--fs-h1); line-height: var(--lh-tight); max-width: 11.62em; }
  .cta-band__title::after { content: ""; display: block; width: 3rem; height: 4px; margin-top: var(--sp-5); background: var(--lime); border-radius: 2px; }
  .cta-band .actions { margin-top: var(--sp-3); }
  @media (min-width: 1024px) {
    .cta-band__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--grid-gap); align-items: end; }
    .cta-band__inner > :not(.actions) { grid-column: 1; }
    .cta-band .actions { grid-column: 2; grid-row: 1 / span 3; justify-self: end; align-self: end; margin-top: 0; }
  }

  /* ===== Inner page components ===== */
  .service-index { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--ink-950); }
  @media (min-width: 900px) { .service-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
  .service-card { border-bottom: 1px solid var(--line); }
  .service-card__link { position: relative; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-6); text-decoration: none; color: var(--fg); height: 100%; align-content: start; }
  .service-card__num { font-size: var(--fs-small); color: var(--fg-muted); font-variant-numeric: tabular-nums; padding-top: 0.3em; }
  .service-card__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.22; }
  .service-card__summary { grid-column: 2; color: var(--fg-2); }
  .service-card__meta { grid-column: 2; font-size: var(--fs-small); color: var(--fg-muted); }
  .service-card__meta strong { color: var(--fg-2); font-weight: 500; }
  .service-card__link:hover .service-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }

  .check-list { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line); }
  @media (min-width: 768px) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
  .check-list li { display: flex; gap: var(--sp-3); align-items: flex-start; padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
  .check-list__icon { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.15em; padding: 2px; border-radius: var(--r-sm); background: var(--lime); color: var(--ink-950); }

  .faq { border-top: 1px solid var(--line-strong); }
  .faq__item { border-bottom: 1px solid var(--line); }
  .faq__q { display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center; min-height: var(--target-min); padding-block: var(--sp-4); font-weight: 500; font-size: 1.0625rem; cursor: pointer; list-style: none; }
  .faq__q::-webkit-details-marker { display: none; }
  .faq__q::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--line); border-radius: var(--r-sm); font-weight: 400; line-height: 1; color: var(--fg); transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease); }
  .faq__item[open] .faq__q::after { transform: rotate(45deg); background: var(--lime); border-color: var(--lime); color: var(--ink-950); }
  .faq__a { padding-bottom: var(--sp-5); }

  .article-list { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
  .article-row { border-bottom: 1px solid var(--line); }
  .article-row article { position: relative; display: grid; gap: var(--sp-2); padding-block: var(--sp-6); }
  @media (min-width: 1024px) { .article-row article { grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 5fr); column-gap: var(--grid-gap); align-items: baseline; } }
  .article-row__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); font-size: var(--fs-small); color: var(--fg-muted); }
  .article-row__title { font-size: var(--fs-h3); line-height: 1.25; }
  .article-row__title a { text-decoration: none; }
  .article-row__title a::after { content: ""; position: absolute; inset: 0; }
  .article-row:hover .article-row__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
  .article-row__text { color: var(--fg-2); }

  .filter-bar { margin-bottom: var(--sp-7); }
  .project-facts { display: grid; gap: var(--sp-5) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 1024px) { .project-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .project-facts > div { border-top: 1px solid var(--line-strong); padding-top: var(--sp-3); }
  .project-facts__wide { grid-column: 1 / -1; }
  @media (min-width: 1024px) { .project-facts__wide { grid-column: span 2; } }
  .project-facts dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-2); }
  :lang(hy) .project-facts dt { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .project-facts dd { margin: 0; font-weight: 500; }
  .project-cover img { aspect-ratio: 16 / 9; object-fit: cover; }
  .project-chapter + .project-chapter { padding-top: 0; }
  .project-chapter .split { border-top: 1px solid var(--line); padding-top: var(--sp-6); }
  .gallery { display: grid; gap: var(--sp-6) var(--grid-gap); }
  @media (min-width: 900px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery > :first-child:nth-last-child(odd) { grid-column: 1 / -1; } }
  .next-project { border-top: 1px solid var(--line); }
  /* The title scales with the column so a long single word (e.g. Armenian) plus the arrow fits on small phones. */
  .next-project__link { display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; gap: var(--sp-3); text-decoration: none; padding-block: var(--sp-5); }
  .next-project__title { display: inline-flex; align-items: center; gap: var(--sp-4); font-size: min(var(--fs-h2), 7.4cqi); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
  .next-project__icon { width: 2rem; height: 2rem; flex: none; transition: transform var(--t-base) var(--ease); }
  .next-project__link:hover .next-project__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
  .next-project__link:hover .next-project__icon { transform: translateX(6px); }

  .team { list-style: none; padding: 0; display: grid; gap: var(--sp-7) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 1024px) { .team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  .team__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-md); background: var(--ink-950); display: grid; place-items: center; }
  .team__photo img { width: 100%; height: 100%; object-fit: cover; }
  .team__initials { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--lime); }
  .team__name { font-size: var(--fs-h4); margin-top: var(--sp-4); }
  .team__role { color: var(--fg-muted); font-size: var(--fs-small); }
  .team__bio { color: var(--fg-2); font-size: var(--fs-small); margin-top: var(--sp-2); }

  .article__title { max-width: 15.49em; }
  .article .eyebrow a { color: inherit; text-decoration: none; }
  .article .eyebrow a:hover { text-decoration: underline; }
  .article__meta { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-5); margin-top: var(--sp-5); font-size: var(--fs-small); color: var(--fg-muted); }
  .article__body { margin-inline: auto; }
  .article__related { margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
  .legal h2 { font-size: var(--fs-h3); }

  /* Lead forms */
  .lead-layout { display: grid; gap: var(--sp-8) var(--grid-gap); }
  @media (min-width: 1024px) {
    .lead-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(2rem, 6vw, 6rem); }
    .lead-layout__aside { position: sticky; top: calc(var(--header-h) + var(--sp-6)); align-self: start; }
  }
  .lead-layout__form .notice { margin-bottom: var(--sp-5); }
  .form .steps { margin-bottom: var(--sp-3); }
  .form-step { display: grid; gap: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--hairline); }
  .form-step + .form-step { margin-top: var(--sp-6); }
  .form.is-stepped .form-step + .form-step { margin-top: 0; }
  .form-step__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: var(--sp-2); }
  .form-step__title:focus { outline: none; }
  .form-step__num { font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: 0; }
  .form-step__why { font-size: var(--fs-small); color: var(--muted); margin-top: calc(-1 * var(--sp-4)); max-width: 37.85em; }
  .form-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; padding-top: var(--sp-5); border-top: 1px solid var(--hairline); }
  .form-nav [data-step-next], .form-nav [data-step-submit], .form-nav > :only-child { margin-left: auto; }
  .consent .choice { font-size: var(--fs-small); color: var(--text-2); }
  .consent a { color: var(--ink-950); }
  .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
  .lead-aside { border-top: 1px solid var(--ink-950); padding-top: var(--sp-5); }
  .lead-aside__title { font-size: var(--fs-h4); line-height: 1.35; }
  .lead-aside__lead { margin-top: var(--sp-3); color: var(--text-2); }
  .lead-aside__list { margin-top: var(--sp-5); }
  .lead-aside__list .rule-list__title { font-size: 1rem; }
  .lead-aside__list .rule-list__text { font-size: var(--fs-small); }
  .contact-list { display: grid; gap: var(--sp-4); margin-top: var(--sp-5); }
  .contact-list dt { font-size: 0.875rem; color: var(--muted); }
  .contact-list dd { margin: 0; font-weight: 500; font-size: 1.125rem; }
  .contact-list a { text-decoration: none; }
  .contact-list a:hover { text-decoration: underline; }

  /* Thank-you & error */
  .thanks { padding-block: clamp(3rem, 2rem + 6vw, 8rem); max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }
  .thanks .eyebrow { color: var(--success); }
  .thanks__icon { width: 1.25rem; height: 1.25rem; }
  .thanks__title { font-size: var(--fs-h1); line-height: var(--lh-tight); margin-top: var(--sp-5); max-width: 11.62em; }
  .thanks__title:focus { outline: none; }
  .thanks .lead { margin-top: var(--sp-5); max-width: 32.81em; }
  .thanks__next { margin-block: var(--sp-7); }
  .thanks__next .rule-list__item::before { grid-row: auto; }
  .error-page { padding-block: clamp(4rem, 3rem + 8vw, 10rem); }
  .error-page__title { font-size: var(--fs-display); line-height: var(--lh-tight); letter-spacing: var(--tracking-display); margin-top: var(--sp-5); max-width: 10.33em; font-weight: 500; }
  .error-page .lead { margin-top: var(--sp-5); }
  .error-page .actions { margin-top: var(--sp-6); }
}

/* ---------- Case study (projects with case fields). Themes recolour accents inside .case only. ---------- */
@layer sections {
  .case {
    --case-accent: var(--lime);          /* fills: nodes, bars, markers */
    --case-accent-ink: var(--ink-950);   /* text on an accent fill */
    --case-accent-text: var(--ink-950);  /* accent used as text on light surfaces */
  }
  /* Black / white / red (e.g. Lion Cars). Red is never used as small text on dark surfaces (contrast). */
  .case--ink-red {
    --case-accent: #db1b26;
    --case-accent-ink: #ffffff;
    --case-accent-text: #b3141e;
  }

  .case-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--case-accent); flex: none; }
  .case .section:not(.band--ink) .eyebrow__index { color: var(--case-accent-text); }
  .case-h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: var(--tracking-heading); max-width: 9.04em; }

  /* Cover */
  .case-cover { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .case-cover__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7) var(--grid-gap); align-items: center; margin-top: var(--sp-6); }
  @media (min-width: 1024px) { .case-cover__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .case-cover__grid--solo { grid-template-columns: minmax(0, 1fr); } } /* no cover mark: the copy uses the full width */
  /* The title scales with its column so long single words (e.g. Armenian «հետարտադրության») fit whole instead of
     breaking mid-word (browsers do not hyphenate Armenian). */
  .case-cover__copy { container-type: inline-size; }
  /* Measures in em, not ch: inside a size container Chromium sometimes resolves ch against the fallback font (0.5em) and
     does not update it when Inter loads, so the cover wrapped differently from load to load. 11.62em / 32.79em = 18ch /
     52ch of Inter at those sizes (its "0" is 0.6455em / 0.6306em), i.e. the original design measure. */
  .case-cover__title { font-size: min(var(--fs-h1), 9.4cqi); line-height: var(--lh-tight); max-width: 11.62em; margin-top: var(--sp-5); }
  .case-cover__lead { margin-top: var(--sp-5); max-width: 32.79em; }
  .case-cover__grid--solo .case-cover__title { max-width: 16em; } /* no cover mark: the title may use more of the width */
  .case-cover__mark { justify-self: center; width: min(100%, 13rem); }
  @media (min-width: 768px) { .case-cover__mark { width: min(100%, 22rem); } }
  .case-cover__mark img { width: 100%; height: auto; }
  @media (min-width: 1024px) { .case-cover__mark { justify-self: end; } }
  .case-facts { display: grid; gap: var(--sp-5) var(--grid-gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: var(--sp-5); border-top: 1px solid var(--ink-700); }
  @media (min-width: 1280px) { .case-facts { grid-template-columns: repeat(3, minmax(0, 2fr)) minmax(0, 6fr); } } /* narrower: long words would break */
  @media (max-width: 29.99rem) { .case-facts { grid-template-columns: minmax(0, 1fr); } } /* phones: one column keeps long words whole */
  .case-facts dt { font-size: var(--fs-label); color: var(--ink-400); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--sp-2); }
  :lang(hy) .case-facts dt { text-transform: none; letter-spacing: 0.01em; font-size: 0.875rem; }
  .case-facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; } /* long words (e.g. Armenian) wrap inside narrow columns */
  .case-facts__wide { grid-column: 1 / -1; }
  @media (min-width: 1280px) { .case-facts__wide { grid-column: -2 / -1; } } /* always the wide last column, even with fewer facts */
  .case-facts__services { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
  .case-facts__services a { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--white); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; }
  .case-facts__services a:hover { text-decoration-color: var(--case-accent); }

  /* Prose lists with accent markers */
  .case-prose--list ul { list-style: none; padding-left: 0; }
  .case-prose--list li { position: relative; padding-left: 1.5rem; }
  .case-prose--list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 2px; background: var(--case-accent); }

  /* Approach: numbered steps, two columns on wide screens */
  .case-steps { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
  @media (min-width: 1024px) { .case-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
  .case-steps__item { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
  .case-steps__num { grid-row: span 2; font-size: var(--fs-small); font-weight: 600; color: var(--case-accent-text); font-variant-numeric: tabular-nums; padding-top: 0.2em; }
  .case-steps__title { font-size: var(--fs-h4); line-height: 1.3; }
  .case-steps__text { color: var(--fg-2); }

  /* Work areas: wide editorial rows with large numbers */
  .case-work { list-style: none; padding: 0; border-top: 1px solid var(--line-strong); }
  .case-work__item { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); padding-block: var(--sp-6); border-bottom: 1px solid var(--line); }
  @media (min-width: 900px) { .case-work__item { grid-template-columns: 6rem minmax(0, 5fr) minmax(0, 6fr); align-items: baseline; } }
  .case-work__num { grid-row: span 2; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; color: var(--case-accent-text); font-variant-numeric: tabular-nums; }
  @media (min-width: 900px) { .case-work__num { grid-row: auto; } }
  .case-work__title { font-size: var(--fs-h3); line-height: 1.22; }
  @media (max-width: 22.49rem) { .case-work__title { font-size: 1.0625rem; } } /* very small phones: long Armenian words stay whole */
  .case-work__text { grid-column: 2; color: var(--fg-2); }
  @media (min-width: 900px) { .case-work__text { grid-column: 3; } }

  .case-brand { display: grid; gap: var(--grid-gap); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .case-brand__field { display: grid; place-items: center; padding: clamp(2rem, 1.5rem + 4vw, 5rem) var(--sp-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
  .case-brand__field img { width: min(100%, 34rem); height: auto; }
  .case-brand figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--fg-muted); }

  /* Customer journey flow (code-built infographic): vertical on small screens, horizontal from 1100 px */
  .flow { list-style: none; padding: 0; margin: 0; display: grid; position: relative; counter-reset: flow; }
  .flow::before { content: ""; position: absolute; left: 1.25rem; top: 1.25rem; bottom: 1.25rem; width: 2px; background: var(--ink-600); }
  .flow__step { position: relative; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.25rem var(--sp-4); padding-bottom: var(--sp-5); }
  .flow__step:last-child { padding-bottom: 0; }
  .flow__node { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--ink-950); border: 2px solid var(--case-accent); color: var(--white); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
  .flow__step:last-child .flow__node { background: var(--case-accent); color: var(--case-accent-ink); }
  .flow__title { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; padding-top: 0.45rem; }
  .flow__text { color: var(--fg-2); font-size: var(--fs-small); line-height: 1.45; }
  /* Desktop: rows of five, read left to right; each step draws the connector to the next one in its row. */
  @media (min-width: 1100px) {
    .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--sp-7) var(--sp-5); }
    .flow::before { display: none; }
    .flow__step { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; padding-bottom: 0; align-content: start; }
    .flow__step::after { content: ""; position: absolute; top: 1.25rem; left: 2.5rem; right: calc(-1 * var(--sp-5)); height: 2px; background: var(--ink-600); }
    .flow__step:nth-child(5n)::after, .flow__step:last-child::after { display: none; }
    .flow__node { grid-row: auto; margin-bottom: var(--sp-4); }
    .flow__title { padding-top: 0; }
  }

  /* Management system: module map (hairline grid, not cards) */
  .modules { list-style: none; padding: 0; display: grid; border-top: 1px solid var(--line-strong); }
  @media (min-width: 640px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gap); } }
  @media (min-width: 1024px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .modules__item { display: grid; align-content: start; gap: 0.25rem; padding: var(--sp-4) 0 var(--sp-4) 1.25rem; border-bottom: 1px solid var(--line); position: relative; }
  .modules__item::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: 0.5rem; height: 0.5rem; background: var(--case-accent); border-radius: 1px; }
  .modules__title { font-weight: 600; }
  .modules__text { font-size: var(--fs-small); color: var(--fg-muted); }

  /* Interface screenshots */
  .case-screens { display: grid; gap: var(--grid-gap); }
  @media (min-width: 900px) { .case-screens { grid-template-columns: repeat(12, minmax(0, 1fr)); } .case-screens__item--wide, .case-screens__item--screen { grid-column: span 8; } .case-screens__item--phone { grid-column: span 4; } .case-screens__item--wide { grid-column: 1 / -1; } }
  .case-screens img { width: 100%; height: auto; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
  .case-screens figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--fg-muted); }


  /* Facts row with a website link (4 facts + services) */
  @media (min-width: 1280px) {
    .case-facts--with-site { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .case-facts--with-site .case-facts__wide { grid-column: 1 / -1; }
  }
  .case-facts__link { display: inline-flex; align-items: center; min-height: var(--target-min); color: var(--white); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.25em; }
  .case-facts__link:hover { text-decoration-color: currentColor; }

  /* Phone screenshots sit side by side, each centred in its half */
  @media (min-width: 900px) { .case-screens__item--phone { grid-column: span 6; } }
  .case-screens__item--phone img { max-width: 22rem; margin-inline: auto; }
  .case-screens__item--phone figcaption { max-width: 22rem; margin-inline: auto; }

  /* Cinematic theme (film / media studios): dark warm surfaces, warm off-white text, the accent appears only as small
     "recording" dots. All case sections become dark; contrast stays AA (muted #a39c90 on #0f0e0c ≈ 7:1). */
  .case--cinema {
    --case-accent: #df2525;
    --case-accent-ink: #ffffff;
    --case-accent-text: #f2ede4;
  }
  .case--cinema .case-section {
    --bg: #0f0e0c;
    --bg-alt: #161411;
    --fg: #f2ede4;
    --fg-2: #d3ccbf;
    --fg-muted: #a39c90;
    --line: #2e2b26;
    --line-strong: #8a8378;
    --link: #f2ede4;
    --focus: #f2ede4;
    background: var(--bg);
    color: var(--fg);
  }
  .case--cinema .section--alt.case-section { background: var(--bg-alt); }
  .case--cinema .case-cover { background: #090807; }
  .case--cinema .case-cover__mark { width: min(100%, 26rem); }
  .case--cinema .case-work__num { color: var(--fg-muted); font-weight: 400; }
  .case--cinema .case-steps__num { color: var(--fg-muted); }
  /* Markers become small round "recording" dots instead of squares and dashes */
  .case--cinema .modules__item::before { border-radius: 50%; width: 0.45rem; height: 0.45rem; }
  .case--cinema .case-prose--list li::before { width: 0.4rem; height: 0.4rem; border-radius: 50%; top: 0.62em; }
  /* Journey: quiet rings, the final step carries the red dot */
  .case--cinema .flow__node { border-color: #5a544b; }
  .case--cinema .flow__step:last-child .flow__node { background: var(--case-accent); border-color: var(--case-accent); }
  /* Frames: interface screenshots on a dark stage with a thin rule, like a monitor */
  .case--cinema .case-screens img { background: #000; border-color: var(--line); }
  .case--cinema .case-brand__field { background: #f6f4ef; border-color: transparent; }

  /* Presentation boards (logo exploration, identity sheets) and the "Concept" label for non-final visuals. */
  .case-boards { display: grid; gap: var(--grid-gap); margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
  .case-boards__title { font-size: var(--fs-h3); }
  .case-boards img { width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
  .case-boards figcaption { margin-top: var(--sp-3); font-size: var(--fs-small); color: var(--fg-muted); }
  .case-concept { display: inline-block; margin-right: var(--sp-2); padding: 0.1em 0.6em; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 0.1em; }
  :lang(hy) .case-concept { text-transform: none; letter-spacing: 0.01em; }

  /* Blueprint theme (engineering / architecture / construction): light surfaces, navy text, a fine construction grid
     and a business-blue accent. The cover and the journey become light too. Accent text #1a4a9a on white ≈ 8:1. */
  .case--blueprint {
    --case-accent: #1f56b3;
    --case-accent-ink: #ffffff;
    --case-accent-text: #1a4a9a;
  }
  .case--blueprint .case-section,
  .case--blueprint .case-cover,
  .case--blueprint .case-journey {
    --bg: #ffffff;
    --bg-alt: #f3f5f9;
    --fg: #0e2240;
    --fg-2: #33456a;
    --fg-muted: #55657f;
    --line: #dbe2ee;
    --line-strong: #0e2240;
    --link: #0e2240;
    --focus: #1f56b3;
    background: var(--bg);
    color: var(--fg);
  }
  .case--blueprint .section--alt.case-section { background: var(--bg-alt); }
  .case--blueprint .case-cover,
  .case--blueprint .case-journey {
    background-color: var(--bg-alt);
    background-image: linear-gradient(rgb(31 86 179 / 0.07) 1px, transparent 1px), linear-gradient(90deg, rgb(31 86 179 / 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
  }
  .case--blueprint .case-facts { border-top-color: var(--line); }
  .case--blueprint .case-facts dt { color: var(--fg-muted); }
  .case--blueprint .case-facts__services a,
  .case--blueprint .case-facts__link { color: var(--fg); }
  .case--blueprint .case-work__num,
  .case--blueprint .case-steps__num { color: var(--case-accent-text); }
  /* Journey on the grid: white rings with a blue outline, thin blue connectors, the last step filled */
  .case--blueprint .flow::before,
  .case--blueprint .flow__step::after { background: #b9c6dc; }
  .case--blueprint .flow__node { background: #fff; color: var(--fg); border-color: var(--case-accent); }
  .case--blueprint .flow__step:last-child .flow__node { background: var(--case-accent); color: var(--case-accent-ink); }
  .case--blueprint .case-brand__field { border-color: var(--line); }

  /* ---------- Animated storytelling (docs/design/CASE_STUDY_ANIMATION_SYSTEM.md) ----------
     Static rules below are the complete, final state (no JS, reduced motion, script failure). Motion rules apply only
     under .story-on (added by case-story.js) and only change transform, clip-path, stroke offsets and colours of
     decorative parts — text keeps full contrast in every state. */

  /* A. Problem → System → Value */
  .stages { list-style: none; padding: 0; margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; gap: var(--sp-7) var(--grid-gap); }
  @media (min-width: 900px) { .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .stage { display: grid; align-content: start; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--line-strong); }
  .stage__art { width: 100%; max-width: 22rem; height: auto; aspect-ratio: 240 / 150; margin-bottom: var(--sp-3); overflow: visible; }
  .stage__art .piece { fill: none; stroke: var(--fg); stroke-width: 1.5; }
  .stage--problem .piece { stroke: var(--fg-muted); stroke-dasharray: 4 3; }
  .stage--system .piece { fill: color-mix(in srgb, var(--case-accent) 12%, var(--bg)); } /* opaque: the links end at the box edges */
  .stage__links line { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 120; stroke-dashoffset: 0; opacity: 0.55; }
  .stage__hub { fill: var(--case-accent); }
  .stage--value .piece { fill: color-mix(in srgb, var(--fg) 7%, var(--bg)); }
  .stage__axis { stroke: var(--case-accent); stroke-width: 3; }
  .stage__title { font-size: var(--fs-h4); }
  .stage__text { color: var(--fg-2); max-width: 22.71em; }

  /* C. Connected system map: hub + spine + the existing list */
  .story-map { display: grid; gap: var(--sp-6); }
  @media (min-width: 900px) { .story-map { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: calc(var(--grid-gap) * 2); align-items: start; } }
  .story-map__hub { position: relative; display: grid; gap: var(--sp-2); padding: var(--sp-5); border: 1px solid var(--case-accent); border-radius: var(--r-lg); background: color-mix(in srgb, var(--case-accent) 7%, var(--bg)); }
  .story-map__hub-label { font-size: var(--fs-small); color: var(--fg-muted); }
  .story-map__hub-name { font-size: var(--fs-h4); line-height: 1.2; }
  .story-map__hub::after { content: ""; position: absolute; left: var(--sp-5); top: 100%; width: 2px; height: var(--sp-6); background: var(--case-accent); transform-origin: top; }
  @media (min-width: 900px) { .story-map__hub::after { left: 100%; top: 50%; width: calc(var(--grid-gap) * 2); height: 2px; transform-origin: left; } }
  .story-map__list { position: relative; padding-left: var(--sp-5); }
  .story-map__list::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--case-accent); transform-origin: top; }

  /* B. Journey progress segments exist only while animating; the static journey keeps its own connectors. */
  .flow__progress { display: none; }

  /* Motion states (JS on, motion allowed) */
  .story-prep *, .story-prep *::before, .story-prep *::after { transition: none !important; } /* start state, no animation */
  .story-on .stages .piece,
  .story-on .stage__hub,
  .story-on .stage__axis { transform-box: fill-box; transform-origin: center; transition: transform 650ms var(--ease), opacity 450ms var(--ease); }
  .story-on .stage__links line { transition: stroke-dashoffset 700ms var(--ease) 200ms; }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(1) { transform: translate(-6px, 10px) rotate(-12deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(2) { transform: translate(8px, 12px) rotate(9deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(3) { transform: translate(-10px, 6px) rotate(-6deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(4) { transform: translate(12px, -6px) rotate(14deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(5) { transform: translate(-12px, 8px) rotate(-16deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(6) { transform: translate(8px, -10px) rotate(7deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(7) { transform: translate(-6px, -8px) rotate(5deg); }
  .story-on .stages:not(.is-live) .stage--system .piece:nth-of-type(8) { transform: translate(10px, -8px) rotate(-9deg); }
  .story-on .stages:not(.is-live) .stage__links line { stroke-dashoffset: 120; }
  .story-on .stages:not(.is-live) .stage__hub { transform: scale(0.4); }
  .story-on .stages:not(.is-live) .stage--value .piece { transform: translateX(-14px); opacity: 0; }
  .story-on .stages:not(.is-live) .stage__axis { transform: scaleY(0); }
  .story-on .stage--value .piece:nth-of-type(n+4) { transition-delay: 120ms; }
  .story-on .stage--value .piece:nth-of-type(n+7) { transition-delay: 240ms; }
  .story-on .stage--system .piece { transition-delay: 150ms; }

  .story-on .story-map__list::before,
  .story-on .story-map__hub::after { transition: transform 600ms var(--ease); }
  .story-on .story-map:not(.is-live) .story-map__list::before { transform: scaleY(0); }
  .story-on .story-map:not(.is-live) .story-map__hub::after { transform: scaleY(0); }
  @media (min-width: 900px) { .story-on .story-map:not(.is-live) .story-map__hub::after { transform: scaleX(0); } }
  .story-on .story-map .modules__item::before { transition: transform 400ms var(--ease); }
  .story-on .story-map:not(.is-live) .modules__item::before { transform: scale(0); }
  .story-on .story-map .case-work__num { transition: color 450ms var(--ease); }
  .story-on .story-map:not(.is-live) .case-work__num { color: var(--fg-muted); }
  .story-on .story-map__list > :nth-child(1) { --d: 1; } .story-on .story-map__list > :nth-child(2) { --d: 2; } .story-on .story-map__list > :nth-child(3) { --d: 3; }
  .story-on .story-map__list > :nth-child(4) { --d: 4; } .story-on .story-map__list > :nth-child(5) { --d: 5; } .story-on .story-map__list > :nth-child(6) { --d: 6; }
  .story-on .story-map__list > :nth-child(7) { --d: 7; } .story-on .story-map__list > :nth-child(8) { --d: 8; } .story-on .story-map__list > :nth-child(9) { --d: 9; }
  .story-on .story-map__list > :nth-child(10) { --d: 10; } .story-on .story-map__list > :nth-child(11) { --d: 11; } .story-on .story-map__list > :nth-child(n+12) { --d: 12; }
  .story-on .story-map .modules__item::before,
  .story-on .story-map .case-work__num { transition-delay: calc(300ms + var(--d, 0) * 60ms); }

  .story-on .flow__progress { display: block; position: absolute; z-index: 1; left: calc(1.25rem - 1px); top: 2.5rem; bottom: 0; width: 2px; background: var(--case-accent); transform: scaleY(0); transform-origin: top; transition: transform 500ms var(--ease); }
  .story-on .flow__step.is-linked .flow__progress { transform: none; }
  @media (min-width: 1100px) {
    .story-on .flow__progress { top: 1.25rem; left: 2.5rem; right: calc(-1 * var(--sp-5)); bottom: auto; width: auto; height: 2px; transform: scaleX(0); transform-origin: left; }
    .story-on .flow__step:nth-child(5n) .flow__progress { display: none; }
  }
  .story-on .flow__node { transition: background-color 400ms var(--ease), border-color 400ms var(--ease), color 400ms var(--ease), transform 400ms var(--ease); }
  .story-on .flow__step:not(.is-reached) .flow__node { background: var(--bg); border-color: var(--line); color: var(--fg-muted); }
  .story-on .flow__step.is-active .flow__node { background: var(--case-accent); border-color: var(--case-accent); color: var(--case-accent-ink); transform: scale(1.08); }
  .story-on .flow__step.is-reached:not(.is-active):last-child .flow__node { transform: none; }
  /* Blueprint flow: connectors are drawn as dashed construction lines. */
  [data-story="blueprint-flow"].story-on .flow__progress { background: repeating-linear-gradient(180deg, var(--case-accent) 0 6px, transparent 6px 10px); }
  @media (min-width: 1100px) { [data-story="blueprint-flow"].story-on .flow__progress { background: repeating-linear-gradient(90deg, var(--case-accent) 0 6px, transparent 6px 10px); } }
  [data-story="blueprint-flow"] .stage__links line { stroke-dasharray: 4 3; }
  [data-story="blueprint-flow"].story-on .stages:not(.is-live) .stage__links line { opacity: 0; }
  [data-story="blueprint-flow"].story-on .stage__links line { transition: opacity 600ms var(--ease) 200ms; }

  /* E. Real interface screenshots open in their frame. */
  .story-on .case-screens__item[data-story-scene] img { transition: clip-path 700ms var(--ease), transform 700ms var(--ease); }
  .story-on .case-screens__item[data-story-scene]:not(.is-live) img { clip-path: inset(5% 5% 5% 5% round var(--r-md)); transform: scale(0.985); }

  .case-development { border-left: 3px solid var(--case-accent); padding-left: var(--sp-5); }
  .case-development__title { font-size: var(--fs-h4); margin-bottom: var(--sp-3); }
}

/* ---------- Script tuning (last in the sections layer so it wins over component titles) ---------- */
@layer sections {
  /* Noto Sans Armenian draws lighter and looser than Inter at the same settings: Armenian headings get a small
     optical weight boost and gentler tracking so hy / ru / en headings look equally strong. */
  :lang(hy) :is(h1, h2, h3, h4, .display, .statement, .hero__title, .page-hero__title, .cta-band__title, .site-footer__title,
    .problems__quote, .solution-row__title, .index-row__title, .service-card__title, .rule-list__title, .core__title,
    .tile__title, .article-row__title, .next-project__title, .form-step__title, .thanks__title, .error-page__title,
    .timeline__title, .feature__title, .also__name, .lead-aside__title, .case-cover__title, .case-h2, .case-steps__title,
    .case-work__title) { font-weight: 560; letter-spacing: -0.012em; }
  :lang(hy) :is(.display, .hero__title, .error-page__title) { line-height: 1.1; }
}

/* ---------- Utilities ---------- */
@layer utilities {
  .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
  .mt-0 { margin-top: 0 !important; }
  .mt-4 { margin-top: var(--sp-4); }
  .mt-5 { margin-top: var(--sp-5); }
  .mt-6 { margin-top: var(--sp-6); }
  .mt-7 { margin-top: var(--sp-7); }
  .mt-8 { margin-top: var(--sp-8); }
}

/* ---------- Motion: purposeful, CSS-only, never blocks content ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  /* Scroll reveal never hides or dims content (full contrast from the first frame); it only settles into place. */
  @keyframes settle-in { from { transform: translateY(18px); } to { transform: none; } }
  @keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
  .enter { animation: rise-in var(--t-slow) var(--ease) both; }
  .enter--2 { animation-delay: 80ms; }
  .enter--3 { animation-delay: 160ms; }
  .enter--4 { animation-delay: 240ms; }
  .system__arc { stroke-dasharray: 260; animation: draw 1.2s var(--ease) both; }
  .system__arc--2 { animation-delay: 120ms; }
  .system__arc--3 { animation-delay: 240ms; }
  .system__arc--4 { animation-delay: 360ms; }
  .system__arc--5 { animation-delay: 480ms; }
  .system__arc--6 { animation-delay: 600ms; }
  @supports (animation-timeline: view()) {
    .reveal { animation: settle-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }

  /* Hero: the system assembles around the business — core first, then the six nodes in order, then the spokes. */
  @keyframes core-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.86); } to { opacity: 1; transform: translate(-50%, -50%); } }
  @keyframes pin-in { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
  @keyframes spoke-in { from { opacity: 0; } to { opacity: 1; } }
  .system__core { animation: core-in 700ms var(--ease-out) 250ms both; }
  .system__pin { animation: pin-in 520ms var(--ease-out) both; }
  .system__node:nth-child(1) .system__pin { animation-delay: 520ms; }
  .system__node:nth-child(2) .system__pin { animation-delay: 610ms; }
  .system__node:nth-child(3) .system__pin { animation-delay: 700ms; }
  .system__node:nth-child(4) .system__pin { animation-delay: 790ms; }
  .system__node:nth-child(5) .system__pin { animation-delay: 880ms; }
  .system__node:nth-child(6) .system__pin { animation-delay: 970ms; }
  .system__spoke { animation: spoke-in 500ms var(--ease) both; }
  .system__spoke--1 { animation-delay: 1050ms; } .system__spoke--2 { animation-delay: 1120ms; } .system__spoke--3 { animation-delay: 1190ms; }
  .system__spoke--4 { animation-delay: 1260ms; } .system__spoke--5 { animation-delay: 1330ms; } .system__spoke--6 { animation-delay: 1400ms; }

  /* Process: the line draws across the five steps while the band scrolls into view and each step lights up in turn. */
  @supports (animation-timeline: view()) {
    @media (min-width: 1024px) {
      @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
      @keyframes dot-lit { from { background: var(--ink-950); box-shadow: none; } to { background: var(--lime); box-shadow: 0 0 0 6px rgb(236 247 109 / 0.16); } }
      .timeline { view-timeline-name: --process; }
      .timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 0.4rem; height: 1px; background: var(--lime); transform-origin: left; animation: grow-x linear both; animation-timeline: --process; animation-range: cover 15% cover 50%; }
      .timeline__dot { z-index: 1; animation: dot-lit linear both; animation-timeline: --process; }
      .timeline__step:nth-child(1) .timeline__dot { animation-range: cover 15% cover 18%; }
      .timeline__step:nth-child(2) .timeline__dot { animation-range: cover 22% cover 25%; }
      .timeline__step:nth-child(3) .timeline__dot { animation-range: cover 29% cover 32%; }
      .timeline__step:nth-child(4) .timeline__dot { animation-range: cover 36% cover 39%; }
      .timeline__step:nth-child(5) .timeline__dot { animation-range: cover 43% cover 46%; }
    }
  }

  /* Mobile menu: links enter one after another once the menu is open (the menu itself needs JS to open). */
  .mobile-menu__nav li { opacity: 0; transform: translateY(10px); transition: opacity 360ms var(--ease-out), transform 460ms var(--ease-out); }
  .mobile-menu.is-open .mobile-menu__nav li { opacity: 1; transform: none; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(2) { transition-delay: 40ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(3) { transition-delay: 80ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(4) { transition-delay: 120ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(5) { transition-delay: 160ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(6) { transition-delay: 200ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(7) { transition-delay: 240ms; }
  .mobile-menu.is-open .mobile-menu__nav li:nth-child(n + 8) { transition-delay: 280ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media print {
  .site-header, .mobile-menu, .site-footer__lead, .skip-link { display: none !important; }
  body { background: #fff; }
}
