/* Единая очерёдность каскадных слоёв всего проекта.
   Чем правее в списке — тем выше приоритет.
   - base       — design tokens, типография, общие компоненты (этот файл)
   - components — карточки, гриды (content_cards.css)
   - special    — точечные эффекты (god_mode.css для greenbear)
   - footer     — футер сайта (footer.css)
   - detail-tokens / detail-page — стили страниц рецепта и статьи (detail_page.css) */
@layer base, components, special, footer, detail-tokens, detail-page;

/* Shared card and listing components used across recipe/article index pages. */
@import url("content_cards.c38028c8567f.css") layer(components);

/* Special presentation layer for the greenbear author page only. */
@import url("god_mode.4feda8356f9b.css") layer(special);

/* Global site footer styles. */
@import url("footer.5e3b9e1e8dbd.css") layer(footer);

:root {
  color-scheme: light;
}

@layer base {
  /* ==== Design tokens ==== */

  :root {
    /* Surfaces */
    --bg: #faf6f0;
    --surface: #fffdf9;
    --surface-soft: #f5eee4;
    --surface-muted: #f2eadf;

    /* Typography */
    --ink: #1f2c25;
    --ink-soft: #42514a;
    --muted: #66746d;

    /* Borders */
    --line: rgb(24 76 58 / 0.12);
    --line-strong: rgb(24 76 58 / 0.18);

    /* Brand */
    --brand: #184c3a;
    --brand-dark: #123c2d;
    --brand-mid: #8b7355;
    --brand-soft: rgb(24 76 58 / 0.08);
    --border: #e2d9cc;

    /* Scrollbars */
    --scrollbar-size: 4px;
    --scrollbar-thumb: rgb(200 169 110 / 0.46);
    --scrollbar-thumb-hover: rgb(139 115 85 / 0.64);
    --scrollbar-track: transparent;
    --scrollbar-radius: 999px;

    /* Elevation */
    --shadow-sm: 0 6px 18px rgb(22 33 27 / 0.05);
    --shadow-md: 0 12px 30px rgb(22 33 27 / 0.08);

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    /* Layout */
    --container: 1120px;
    --bmc-bar-reserved-space: 0px; /* BMC moved to header */

    /* Шрифтовые стеки (выносим из повторяющихся font-family) */
    --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", Georgia, serif;
  }

  /* ==== Base ==== */

  [hidden] {
    display: none !important;
  }

  html {
    height: 100%;
  }

  body {
    min-height: 100%;
  }

  html {
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    overflow-x: clip; /* clip without creating a scroll container — preserves position:fixed on Safari */
  }

  * {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
  }

  *::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
  }

  *::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }

  *::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--scrollbar-radius);
  }

  *::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
  }

  @media (prefers-reduced-motion: no-preference) {
    html {
      scroll-behavior: smooth;
    }
  }

  body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    padding-block-end: var(--bmc-bar-reserved-space);
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
  }

  @media (max-width: 480px) {
    body {
      font-size: 15px;
    }
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }

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

  main {
    flex: 1 0 auto;
  }

  a {
    color: var(--brand);
  }

  a:hover,
  a:focus-visible {
    color: var(--brand-dark);
  }

  .autosave-prompt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgb(139 115 85 / 0.2);
    border-radius: 8px;
    background: rgb(255 252 246 / 0.88);
    box-shadow: 0 10px 24px rgb(58 44 30 / 0.08);
  }

  .autosave-prompt__copy {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
  }

  .autosave-prompt__copy strong {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .autosave-prompt__copy span {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .autosave-prompt__actions {
    display: flex;
    flex: none;
    gap: 0.45rem;
  }

  .autosave-prompt__button {
    min-height: 34px;
    padding: 0.42rem 0.72rem;
    border: 1px solid rgb(139 115 85 / 0.28);
    border-radius: 8px;
    background: transparent;
    color: var(--brand-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
  }

  .autosave-prompt__button:hover,
  .autosave-prompt__button:focus-visible {
    border-color: rgb(139 115 85 / 0.45);
    background: rgb(139 115 85 / 0.08);
  }

  .autosave-prompt__button--primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fffdf9;
  }

  .autosave-prompt__button--primary:hover,
  .autosave-prompt__button--primary:focus-visible {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
  }

  @media (max-width: 560px) {
    .autosave-prompt {
      align-items: stretch;
      flex-direction: column;
    }

    .autosave-prompt__actions {
      width: 100%;
    }

    .autosave-prompt__button {
      flex: 1 1 0;
    }
  }

  p,
  ul,
  ol {
    margin-block-start: 0;
  }

  h1,
  h2,
  h3,
  h4 {
    margin-block-start: 0;
    color: var(--ink);
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.2rem, 3.8vw, 4rem);
    line-height: 1.02;
    margin-block-end: 0.8rem;
  }

  h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
    line-height: 1.08;
    margin-block-end: 0.75rem;
  }

  h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.5rem);
    line-height: 1.2;
    margin-block-end: 0.55rem;
  }

  /* ==== Shared layout system ==== */

  .container,
  .wrapper,
  .wrap {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
  }

  .container {
    padding: 0;
  }

  .section,
  .page-section {
    padding-block: 2rem 2.2rem;
    padding-inline: 0;
  }

  .hero--home + .page-section {
    padding-block-end: 0;
  }

  .section--flush-top {
    padding-block-start: 0;
  }

  .grid {
    display: grid;
    gap: 1rem;
  }

  /* ==== Shared section headings ==== */

  .page-header,
  .section-heading {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-block-end: 0.9rem;
    text-align: center;
  }

  .page-header > div,
  .section-heading > div {
    flex: 0 1 auto;
    text-align: center;
  }

  .page-header > .text-link,
  .section-heading > .text-link {
    position: absolute;
    inset-inline-end: 0;
    inset-block-end: 0;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.68;
    color: var(--muted);
    transition:
      color 0.18s ease;
  }

  .page-header > .text-link::after,
  .section-heading > .text-link::after {
    content: "…" / "";
  }

  .page-header > .text-link:hover,
  .page-header > .text-link:focus-visible,
  .section-heading > .text-link:hover,
  .section-heading > .text-link:focus-visible {
    color: var(--brand);
  }

  .page-header h1,
  .page-header h2,
  .section-heading h1,
  .section-heading h2 {
    margin: 0;
  }

  /* Дополнительный отступ сверху, когда заголовок раздела идёт после
     предыдущей сетки карточек (например, "Articles" после "Recipes"). */
  .page-header--with-gap {
    margin-block-start: 2rem;
  }

  /* Search results heading: h2 centred, clear button centred below */
  .search-results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    margin-block-end: 0;
  }

  .search-results-header h2 {
    margin: 0;
  }

  /* Equal spacing between all elements in search results section */
  .recipe-list-section--search .recipe-grid--mini {
    row-gap: 1.25rem;
  }

  .page-subtitle,
  .section-intro {
    margin: 0;
    margin-inline: auto;
    margin-block-end: 1.35rem;
    max-width: 54ch;
    font-size: 1rem;
    line-height: 1.68;
    color: var(--ink-soft);
    text-align: center;
  }

  .section-header {
    margin-block: 0 0.85rem;
    text-align: center;
  }

  .section-header + .section-header {
    margin-block-start: 1.75rem;
  }

  .section-kicker {
    display: block;
    margin-block-end: 0.22rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .section-header h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--brand);
  }

  .legal-list {
    max-width: 64ch;
    margin: 0 auto 1.8rem;
    padding-inline-start: 1.2rem;
    color: var(--ink-soft);
    line-height: 1.7;
  }

  .eyebrow {
    display: block;
    margin: 0;
    margin-block-end: 0.38rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand);
    text-align: center;
  }

  /* ==== Recipe categories ==== */

  .category-nav-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    margin-block-end: 1.35rem;
  }

  .category-nav-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto;
    transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .category-nav-wrap::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 22px;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .category-nav-wrap--collapsed::after {
    opacity: 1;
  }

  .category-nav-wrap--expanded::after {
    opacity: 0;
  }

  .category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 0;
    row-gap: 0.35rem;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .category-nav__item,
  .category-nav__separator {
    display: inline-flex;
    align-items: baseline;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: 0;
    color: rgb(31 44 37 / 0.76);
  }

  /* Separator spans hidden — dot rendered via ::after so it stays
     glued to its item and never orphans at the start of a wrapped line */
  .category-nav__separator {
    display: none;
  }

  .category-nav > .category-nav__item::after,
  .category-nav > .category-nav__link::after {
    content: "·";
    color: rgb(31 44 37 / 0.34);
    font-weight: 400;
    font-size: 1.15em;
    margin-inline: 0.45rem;
    line-height: 1;
  }

  /* No trailing dot after the last nav item. */
  .category-nav > :last-child::after {
    display: none;
  }

  .category-nav__link,
  .category-nav__link:visited,
  .category-nav__link:hover,
  .category-nav__link:focus-visible,
  .category-nav__link:active {
    color: rgb(31 44 37 / 0.76);
    text-decoration: none;
  }

  .category-nav__link:hover,
  .category-nav__link:focus-visible {
    color: rgb(24 76 58 / 0.94);
    opacity: 0.92;
  }

  .category-nav__item--active {
    color: rgb(31 44 37 / 0.94);
  }

  .category-nav-toggle {
    margin-block-start: 0;
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    font: inherit;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
  }

  .category-nav-toggle:hover {
    color: var(--brand);
  }

  .category-nav-toggle:focus-visible {
    color: var(--brand);
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .category-nav-toggle__icon {
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    transform: translateY(-1px);
    transition: transform 0.2s ease;
  }

  .category-nav-toggle[aria-expanded="true"] .category-nav-toggle__icon {
    transform: rotate(-179deg) translateY(1px);
  }

  .category-nav-toggle[aria-expanded="true"] .category-nav-toggle__icon--left {
    transform: rotate(179deg) translateY(1px);
  }

  @media (max-width: 640px) {
    .category-nav__item,
    .category-nav__separator,
    .category-nav-toggle {
      font-size: 12px;
      line-height: 1.38;
    }

    .category-nav-wrap::after {
      block-size: 18px;
    }
  }

  /* ==== Hero ==== */

  .hero {
    position: relative;
    overflow: hidden;
  }

  .hero--home {
    min-height: clamp(250px, 38vw, 410px);
    padding: 0;
    display: flex;
    align-items: flex-start;
    background: var(--brand-dark);
  }

  .hero__background,
  .hero__overlay {
    position: absolute;
    inset: 0;
  }

  .hero__background {
    z-index: 1;
  }

  .hero__background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Recipe detail: taller hero so more of the food photo is visible,
     and keep the crop centered where the dish typically sits */
  .hero--recipe-detail {
    min-height: clamp(380px, 52vw, 580px);
  }

  .hero--recipe-detail .hero__background img {
    object-position: center center;
  }

  .hero__overlay {
    z-index: 2;
    background:
      linear-gradient(90deg, rgb(11 24 18 / 0.72) 0%, rgb(11 24 18 / 0.48) 36%, rgb(11 24 18 / 0.24) 58%, rgb(11 24 18 / 0.44) 100%),
      linear-gradient(180deg, rgb(11 24 18 / 0.24) 0%, rgb(11 24 18 / 0.42) 100%);
  }

  /* ---- Hero peek button ---- */
  .hero-peek-btn {
    position: absolute;
    top: 0.8rem;
    right: 0.85rem;
    z-index: 4;
    align-items: center;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    gap: 0.3rem;
    letter-spacing: 0.02em;
    padding: 0.32rem 0.65rem 0.32rem 0.5rem;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .hero-peek-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.36);
    color: #fff;
  }

  .hero-peek-btn svg {
    flex-shrink: 0;
  }

  /* ---- Hero lightbox ---- */
  .hero-lightbox {
    align-items: center;
    background: rgba(0, 0, 0, 0.92);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.22s ease;
    z-index: 9200; /* above PWA install banner (9100) */
  }

  .hero-lightbox--open {
    opacity: 1;
    pointer-events: auto;
  }

  .hero-lightbox__img {
    border-radius: var(--radius-md);
    box-shadow: 0 20px 72px rgba(0, 0, 0, 0.55);
    display: block;
    max-height: 63vh;
    max-width: 63vw;
    object-fit: contain;
    transition: transform 0.22s ease;
  }

  .hero-lightbox--open .hero-lightbox__img {
    transform: scale(1);
  }

  .hero-lightbox__frame {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 63vw;
  }

  .hero-lightbox__img-wrap {
    position: relative;
    line-height: 0;
  }

  .hero-lightbox__copyright {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    letter-spacing: 0.02em;
    margin: 0;
    pointer-events: none;
    text-align: center;
    user-select: none;
    white-space: nowrap;
  }

  .hero-lightbox__img {
    -webkit-user-drag: none;
    user-select: none;
  }

  .hero-lightbox__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    height: 2.5rem;
    justify-content: center;
    position: absolute;
    right: 1.1rem;
    top: 1.1rem;
    transition: background 0.18s ease;
    width: 2.5rem;
  }

  .hero-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.22);
  }

  .hero__inner {
    position: relative;
    z-index: 3;
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
    padding-block: clamp(1.35rem, 3.8vw, 2.5rem);
    padding-inline: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    flex: 1;
    max-width: 100%;
    color: #f7f2ea;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-copy .hero__actions {
    margin-block-start: auto;
    padding-block-start: 1.4rem;
  }

  .hero-title {
    margin-inline: auto;
    margin-block-end: 1rem;
    color: #fff;
    letter-spacing: -0.035em;
    max-width: none;
  }

  .hero-subtitle {
    max-width: 95ch;
    margin: 0 auto;
    margin-block-end: 1.4rem;
    font-size: 1.06rem;
    line-height: 1.78;
    color: rgb(247 242 234 / 0.96);
    text-align: center;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
  }

  .pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.82rem;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    background: rgb(247 242 234 / 0.03);
    border: 1px solid rgb(255 255 255 / 0.16);
    color: #fff8ee;
    margin-inline: 0;
    margin-block-end: 0.55rem;
  }

  .hero__actions .btn-primary,
  .hero__actions .btn-secondary,
  .hero__actions .btn {
    min-height: 44px;
    padding: 0.42rem 0.82rem;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: var(--radius-pill);
    background: rgb(247 242 234 / 0.03);
    color: #fff8ee;
    box-shadow: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition:
      background-color 0.32s ease,
      border-color 0.32s ease,
      color 0.32s ease;
  }

  .hero__actions .btn-primary:hover,
  .hero__actions .btn-primary:focus-visible,
  .hero__actions .btn-secondary:hover,
  .hero__actions .btn-secondary:focus-visible,
  .hero__actions .btn:hover,
  .hero__actions .btn:focus-visible {
    background: rgb(247 242 234 / 0.26);
    border-color: rgb(255 255 255 / 0.24);
    color: #ffffff;
    transform: none;
  }

  @media (min-width: 960px) {
    .hero-copy {
      max-width: min(100%, calc(var(--container) - 18rem));
      margin-inline: auto;
    }

    .hero-title {
      max-width: none;
    }

    .hero-subtitle {
      max-width: 66ch;
    }
  }

  /* ==== Generic cards / surfaces ==== */

  .card,
  .empty-state,
  .article-entry,
  .article-list > li {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
  }

  .card {
    padding-block: 1rem;
    padding-inline: 1.25rem;
  }

  .card h2,
  .card h3 {
    text-align: center;
    margin: 0;
    margin-block-end: 0.75rem;
  }

  /* ==== Buttons / links ==== */

  .btn-primary,
  .btn-secondary,
  .btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.82rem 1.15rem;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: 0;
    background: rgb(58 44 30 / 0.18);
    color: rgb(58 44 30 / 0.9);
    box-shadow: none;
    transition:
      background-color 0.18s ease,
      color 0.18s ease;
  }

  .btn-primary {
    background: rgb(58 44 30 / 0.18);
    color: rgb(58 44 30 / 0.9);
  }

  .btn-primary:hover {
    background: rgb(58 44 30 / 0.23);
    color: #3a2c1e;
  }

  .btn-primary:focus-visible {
    background: rgb(58 44 30 / 0.23);
    color: #3a2c1e;
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  .btn-secondary,
  .btn {
    background: rgb(58 44 30 / 0.18);
    color: rgb(58 44 30 / 0.9);
  }

  .btn-secondary:hover,
  .btn:hover {
    background: rgb(58 44 30 / 0.23);
    color: #3a2c1e;
  }

  .btn-secondary:focus-visible,
  .btn:focus-visible {
    background: rgb(58 44 30 / 0.23);
    color: #3a2c1e;
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  /* ── Ripple click effect ── */
  .btn,
  .btn-primary,
  .btn-secondary {
    position: relative;
    overflow: hidden;
  }

  .text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    transition:
      color 0.18s ease;
  }

  .text-link:hover,
  .text-link:focus-visible {
    color: var(--brand-dark);
  }

  /* ==== Empty states ==== */

  .empty-state {
    padding: 1.4rem;
    text-align: center;
  }

  .empty-state h2,
  .empty-state h3 {
    margin-block-end: 0.5rem;
  }

  .empty-state p {
    margin-block-end: 0;
    color: var(--ink-soft);
  }

  /* ==== Generic content / rich text ==== */

  .rich-text,
  .article-body,
  .article-detail__body {
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--ink);
  }

  .rich-text p:last-child,
  .article-body p:last-child,
  .article-detail__body p:last-child {
    margin-block-end: 0;
  }

  /* ==== Articles support (non-detail global only) ==== */

  .article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-block-start: 1.25rem;
    display: grid;
    gap: 1rem;
  }

  .article-list > li {
    padding-block: 1.15rem;
    padding-inline: 1.2rem;
  }

  .article-list a {
    font-weight: 700;
    text-decoration: none;
  }

  .article-list a:hover,
  .article-list a:focus-visible {
    text-decoration: none;
    color: var(--brand-dark);
  }

  .article-list small {
    display: block;
    margin-block-start: 0.35rem;
    color: var(--muted);
  }

  /* ==== Utility ==== */

  .author-name {
    font-weight: 600;
  }

  /* ==== Social link component (shared header/footer) ====
     Раньше эти правила дублировались в header.css и footer.css
     (~70 строк копипасты на каждый файл). Теперь живут в одном месте. */

  :is(.ce-header-socials__link, .footer-socials__link) {
    --social-accent: #f7f2ea;
    display: inline-flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgb(247 242 234 / 0.68);
    box-shadow: none;
    isolation: isolate;
    text-decoration: none;
    backdrop-filter: none;
    transition:
      color 0.18s ease,
      filter 0.18s ease,
      transform 0.18s ease;
  }

  :is(.ce-header-socials__link, .footer-socials__link):hover,
  :is(.ce-header-socials__link, .footer-socials__link):focus-visible {
    color: var(--social-accent);
    filter: saturate(1.12) brightness(1.08);
    transform: translateY(-1px);
  }

  :is(.ce-header-socials__link, .footer-socials__link):focus-visible {
    outline: 2px solid var(--social-accent);
    outline-offset: 3px;
    border-radius: 2px;
  }

  :is(.ce-header-socials__link, .footer-socials__link) svg {
    position: relative;
    width: 16.15px;
    height: 16.15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  :is(.ce-header-socials__link, .footer-socials__link) svg path {
    fill: currentColor;
    stroke: none;
  }

  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="Instagram"] { --social-accent: #e4405f; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="Facebook"]  { --social-accent: #1877f2; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="X"]         { --social-accent: #f7f2ea; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="LinkedIn"]  { --social-accent: #0a66c2; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="Telegram"]  { --social-accent: #229ed9; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="WhatsApp"]  { --social-accent: #25d366; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="Twitch"]    { --social-accent: #9146ff; }
  :is(.ce-header-socials__link, .footer-socials__link)[aria-label="YouTube"]   { --social-accent: #ff0033; }

  @media (prefers-reduced-motion: reduce) {
    :is(.ce-header-socials__link, .footer-socials__link) {
      transition: none;
    }

    :is(.ce-header-socials__link, .footer-socials__link):hover,
    :is(.ce-header-socials__link, .footer-socials__link):focus-visible {
      transform: none;
    }
  }

  @media (forced-colors: active) {
    :is(.ce-header-socials__link, .footer-socials__link):focus-visible {
      outline: 2px solid Highlight;
    }
  }

  /* ==== Accessibility ==== */

  @media (forced-colors: active) {
    .btn-primary,
    .btn-secondary,
    .btn {
      border-color: ButtonText;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .category-nav-wrap,
    .category-nav-wrap::after,
    .category-nav-toggle__icon,
    .btn-primary,
    .btn-secondary,
    .btn,
    .text-link {
      transition: none;
    }

    .btn-primary:hover,
    .btn-primary:focus-visible,
    .btn-secondary:hover,
    .btn-secondary:focus-visible,
    .btn:hover,
    .btn:focus-visible {
      transform: none;
    }
  }

  /* ==== Responsive ==== */

  @media (max-width: 960px) {
    .page-header,
    .section-heading {
      align-items: center;
      flex-direction: column;
    }

    .page-header > .text-link,
    .section-heading > .text-link {
      display: none;
    }

    .hero--home {
      min-height: clamp(270px, 52vw, 420px);
    }

    .hero__overlay {
      background:
        linear-gradient(180deg, rgb(11 24 18 / 0.54) 0%, rgb(11 24 18 / 0.5) 100%);
    }

    .hero-copy {
      max-width: 720px;
    }

    .hero-subtitle {
      max-width: 68ch;
    }
  }

  @media (max-width: 640px) {
    .container,
    .wrapper,
    .wrap {
      width: min(100% - 1.25rem, var(--container));
    }

    .section,
    .page-section {
      padding-block: 1.75rem 1.9rem;
      padding-inline: 0;
    }

    .section--flush-top {
      padding-block-start: 0;
    }

    .hero--home {
      min-height: 300px;
    }

    .hero-peek-btn {
      display: none;
    }

    .hero__inner {
      width: min(100% - 1.25rem, var(--container));
      padding-block: 1.35rem;
      padding-inline: 0;
    }

    .hero-title {
      max-width: none;
      font-size: clamp(2rem, 10vw, 3rem);
    }

    .hero-subtitle,
    .page-subtitle,
    .section-intro {
      font-size: 0.98rem;
      line-height: 1.66;
    }

    .hero__actions {
      flex-direction: column;
      align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .btn {
      width: 100%;
    }
  }
}

@media (max-width: 480px) {
  :root {
    --bmc-bar-reserved-space: 0px;
  }
}

/* ==== Cloudflare Turnstile ==== */

.cf-turnstile {
  display: flex;
  justify-content: center;
  margin-block: 0.75rem;
}

/* ==== Toast notifications ==== */

.site-messages {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: max-content;
  max-inline-size: min(28rem, calc(100vw - 2rem));
  pointer-events: none;
}

.site-message {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.85rem;
  padding-inline: 1.1rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgb(20 33 27 / 0.1);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
  box-shadow:
    0 8px 24px rgb(20 33 27 / 0.1),
    0 2px 6px rgb(20 33 27 / 0.06);
  pointer-events: auto;
  animation: toast-in 0.25s ease;
}

.site-message__text {
  min-inline-size: 0;
}

.site-message__close {
  display: inline-flex;
  align-items: center;
  padding-block: 0.2rem;
  padding-inline: 0.75rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  opacity: 0.6;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-message__close:hover,
.site-message__close:focus-visible {
  opacity: 1;
  background: rgb(20 33 27 / 0.08);
}

.site-message__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.site-message--success {
  border-color: rgb(22 102 69 / 0.28);
  border-inline-start: 4px solid #166245;
  background: #eef7f2;
}

.site-message--error {
  border-color: rgb(160 49 49 / 0.28);
  border-inline-start: 4px solid #a03131;
  background: #fdf2f2;
}

.site-message--warning {
  border-color: rgb(185 117 20 / 0.28);
  border-inline-start: 4px solid #b97514;
  background: #fdf8ee;
}

.site-message--hiding {
  animation: toast-out 0.3s ease forwards;
}

.bmc-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.25rem;
  min-block-size: var(--bmc-bar-reserved-space);
  background: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 0.55rem 1rem calc(0.55rem + env(safe-area-inset-bottom));
  font-size: 0.85rem;
  line-height: 1.35;
  z-index: 9999;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.bmc-bar a {
  color: #f5a623;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.bmc-bar a:hover {
  text-decoration: none;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); max-block-size: 6rem; }
  to   { opacity: 0; transform: translateY(-0.5rem); max-block-size: 0; padding: 0; margin: 0; }
}

@media (max-width: 480px) {
  .bmc-bar {
    font-size: 0.82rem;
    padding-inline: 0.85rem;
  }
}

/* ── Ripple animation (global) ── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.32);
  transform: scale(0);
  animation: btn-ripple-expand 0.52s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

@keyframes btn-ripple-expand {
  to {
    transform: scale(1);
    opacity: 0;
  }
}

/* ── Skip link (WCAG 2.4.1) ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: 0.5rem 1rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 0;
}

/* ── Login modal ── */

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-modal[hidden] {
  display: none;
}

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(3px);
}

.login-modal__box {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 2rem 1.5rem;
  width: min(420px, calc(100vw - 2rem));
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.18);
  animation: modal-in 0.18s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.login-modal__close {
  position: absolute;
  inset-block-start: 1rem;
  inset-inline-end: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.login-modal__close:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.login-modal__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--brand);
  margin: 0 0 0.3rem;
}

.login-modal__subtitle {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.login-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.login-modal__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.login-modal__input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border, #ddd);
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface-soft, #fafaf8);
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.login-modal__input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgb(11 76 58 / 0.12);
}

.login-modal__error {
  font-size: 0.83rem;
  color: #b91c1c;
  margin: 0;
  padding: 0.45rem 0.6rem;
  background: #fef2f2;
  border-radius: 0.4rem;
  border: 1px solid #fecaca;
}

.login-modal__submit {
  margin-block-start: 0.25rem;
  padding: 0.7rem 1.25rem;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.login-modal__submit:hover {
  background: color-mix(in srgb, var(--brand) 82%, #000);
}

.login-modal__submit:active {
  transform: scale(0.97);
}

.login-modal__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-modal__link {
  display: block;
  margin-block-start: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.login-modal__link:hover {
  color: var(--brand);
  text-decoration: underline;
}

/* ==== About page ==== */

.about-intro-section {
  padding-block: 2.6rem 2.2rem;
}

.about-editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.72fr);
  gap: clamp(1.25rem, 4vw, 3.2rem);
  align-items: end;
}

.about-editorial--mirror {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  align-items: center;
}

.about-editorial__main {
  max-width: 760px;
}

.about-editorial__main--compact {
  justify-self: end;
  max-width: 690px;
}

.about-editorial__main--compact .section-kicker,
.about-editorial__main--compact h2,
.about-editorial__main--compact p {
  text-align: left;
}

.about-editorial__main--compact h2 {
  margin: 0 0 0.9rem;
  max-width: 13ch;
  font-size: clamp(1.8rem, 3.4vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: 0;
  color: #3a2c1e;
}

.about-editorial__main--compact p {
  margin: 0;
  max-width: 60ch;
  line-height: 1.72;
  color: var(--ink-soft);
}

.about-editorial__main--compact p + p {
  margin-block-start: 0.85rem;
}

.about-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7355;
  text-align: left;
}

.about-lede {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--ink);
}

.about-lede + .about-lede {
  margin-block-start: 1rem;
}

.about-lede--quiet {
  max-width: 58ch;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.about-mission {
  position: relative;
  padding: 1.2rem 0 0 1.35rem;
  border-inline-start: 3px solid #c7954b;
}

.about-mission--warm {
  align-self: center;
  padding: 1.25rem 1.35rem 1.25rem 0;
  border-inline-start: 0;
  border-inline-end: 3px solid #c7954b;
  text-align: right;
}

.about-mission__label {
  margin: 0 0 0.35rem;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a6a2f;
}

.about-mission p:last-child {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.38;
  letter-spacing: 0;
  color: var(--brand-dark);
}

.about-mission--warm p:last-child {
  margin-inline-start: auto;
}

.about-band {
  background:
    linear-gradient(180deg, rgb(255 253 249 / 0.72), rgb(245 238 228 / 0.6));
  border-block: 1px solid var(--line);
}

.about-band--table {
  background:
    linear-gradient(180deg, rgb(255 253 249 / 0.72), rgb(207 158 86 / 0.08));
}

.about-tree-node {
  position: relative;
}

.about-tree-node--left {
  width: min(100% - 2rem, calc(var(--container) - 5rem));
  margin-inline: max(1rem, calc((100vw - var(--container)) / 2)) auto;
}

.about-tree-node--right {
  width: min(100% - 2rem, calc(var(--container) - 5rem));
  margin-inline: auto max(1rem, calc((100vw - var(--container)) / 2));
}

.about-tree-node--left::before,
.about-tree-node--right::before {
  content: "";
  position: absolute;
  inset-block-start: -1.15rem;
  width: 56px;
  height: 1px;
  background: rgb(199 149 75 / 0.55);
}

.about-tree-node--left::before {
  inset-inline-start: 0;
}

.about-tree-node--right::before {
  inset-inline-end: 0;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  align-items: center;
}

.about-split--reverse {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.12fr);
}

.about-split__copy {
  max-width: 68ch;
}

.about-split__copy .section-kicker,
.about-split__copy h2,
.about-split__copy p {
  text-align: left;
}

.about-split__copy h2 {
  margin-block-end: 0.9rem;
  max-width: 14ch;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: 0;
  color: #3a2c1e;
}

.about-split__copy p {
  margin: 0;
  line-height: 1.72;
  color: var(--ink-soft);
}

.about-split__copy p + p {
  margin-block-start: 0.85rem;
}

.about-note {
  padding: 1.45rem;
  border: 1px solid rgb(24 76 58 / 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-note__title {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  color: #9a6a2f;
}

.about-note p:last-child {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--brand-dark);
}

.about-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  column-gap: clamp(1.2rem, 4vw, 3rem);
  row-gap: 1.2rem;
  align-items: start;
}

.about-feature__header {
  position: sticky;
  top: 1rem;
}

.about-feature__header .section-kicker,
.about-feature__header h2 {
  text-align: left;
}

.about-feature__header h2 {
  margin: 0;
  max-width: 12ch;
  color: #3a2c1e;
}

.about-feature__copy {
  max-width: 62ch;
}

.about-feature__copy p {
  margin: 0;
  line-height: 1.75;
  color: var(--ink-soft);
}

.about-feature__copy p + p {
  margin-block-start: 0.65rem;
}

.about-note--trust {
  background: var(--surface);
  border-color: var(--line);
}

.about-note--trust .about-note__title {
  color: #d7ad68;
}

.about-note--trust p:last-child {
  color: #3a2c1e;
}

.about-principles,
.about-workstations,
.about-path {
  display: grid;
  gap: 1rem;
}

.about-principles {
  grid-column: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block-start: 0.35rem;
}

.about-principle,
.about-workstation,
.about-path__step {
  min-width: 0;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.about-principle__mark {
  display: inline-flex;
  margin-block-end: 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #9a6a2f;
}

.about-principle h3,
.about-workstation h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.22;
  letter-spacing: 0;
  text-align: left;
  color: #3a2c1e;
}

.about-principle p,
.about-workstation p,
.about-path__step p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.about-workstations {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}

.about-workstation {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
}

.about-workstation:nth-child(2),
.about-workstation:nth-child(3) {
  transform: translateY(1rem);
}

.about-workstation:nth-child(odd) {
  justify-self: end;
}

.about-workstation:nth-child(even) {
  justify-self: start;
}

.about-workstation a,
.about-workstation span {
  margin-block-start: auto;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b7355;
  text-decoration: none;
}

.about-workstation span {
  color: #8b7355;
}

.about-workstation a:hover,
.about-workstation a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.about-checklist {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.about-checklist li {
  position: relative;
  padding-inline-start: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.about-checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #c7954b;
}

.about-path-section {
  padding-block: 2.8rem 3rem;
}

.about-path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: about-path;
  align-items: start;
}

.about-map-header,
.about-path-header {
  display: grid;
  justify-items: center;
  margin-block-end: 1.25rem;
  text-align: center;
}

.about-map-header__copy,
.about-path-header__copy {
  max-width: 720px;
}

.about-map-header h2,
.about-path-header h2 {
  margin: 0 0 0.7rem;
  color: #3a2c1e;
}

.about-map-header p,
.about-path-header p {
  margin: 0 auto;
  max-width: 62ch;
  line-height: 1.7;
  color: var(--ink-soft);
}

.about-path__step {
  position: relative;
  padding-block-start: 1.25rem;
}

.about-path__step:nth-child(2) {
  margin-block-start: 1.15rem;
}

.about-path__step:nth-child(3) {
  margin-block-start: 2.3rem;
}

.about-path__step span {
  display: block;
  margin-block-end: 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b7355;
}

.about-final {
  margin-block-start: 1.4rem;
  padding: 1.4rem;
  border-radius: 8px;
  background: var(--surface);
  color: #3a2c1e;
  text-align: center;
}

.about-final p {
  margin: 0 auto 1rem;
  max-width: 48ch;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  line-height: 1.35;
  letter-spacing: 0;
  color: inherit;
}

.about-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.about-final__actions .btn-primary,
.about-final__actions .btn-secondary {
  background: rgb(255 253 249 / 0.14);
  color: #fffdf9;
}

.about-final__actions .btn-primary:hover,
.about-final__actions .btn-primary:focus-visible,
.about-final__actions .btn-secondary:hover,
.about-final__actions .btn-secondary:focus-visible {
  background: rgb(255 253 249 / 0.22);
  color: #fff;
}

@media (max-width: 900px) {
  .about-editorial,
  .about-editorial--mirror,
  .about-feature,
  .about-split,
  .about-split--reverse,
  .about-principles,
  .about-workstations,
  .about-path {
    grid-template-columns: 1fr;
  }

  .about-editorial__main,
  .about-split__copy,
  .about-split__copy .section-kicker,
  .about-split__copy h2,
  .about-split__copy p {
    text-align: center;
  }

  .about-split__copy {
    max-width: none;
  }

  .about-kicker,
  .about-feature__header .section-kicker,
  .about-feature__header h2 {
    text-align: center;
  }

  .about-lede {
    max-width: 14ch;
    margin-inline: auto;
    text-align: center;
  }

  .about-lede--quiet {
    max-width: 58ch;
    text-align: center;
  }

  .about-mission {
    padding: 1rem 1.15rem;
    border-inline-start: 0;
    border-block-start: 3px solid #c7954b;
    text-align: center;
  }

  .about-mission--warm {
    padding: 1rem 1.15rem;
    border-inline-end: 0;
    border-block-start: 3px solid #c7954b;
    text-align: center;
  }

  .about-editorial__main--compact {
    justify-self: stretch;
    max-width: none;
  }

  .about-editorial__main--compact .section-kicker,
  .about-editorial__main--compact h2,
  .about-editorial__main--compact p {
    text-align: center;
  }

  .about-editorial__main--compact h2 {
    max-width: none;
  }

  .about-feature__header {
    position: static;
  }

  .about-feature__header h2,
  .about-split__copy h2 {
    max-width: none;
  }

  .about-feature__copy {
    max-width: none;
    text-align: center;
  }

  .about-principles {
    grid-column: auto;
  }

  .about-workstation:nth-child(2),
  .about-workstation:nth-child(3) {
    transform: none;
  }

  .about-tree-node--left,
  .about-tree-node--right {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
  }

  .about-tree-node--left::before,
  .about-tree-node--right::before {
    inset-inline: calc(50% - 28px) auto;
  }

  .about-workstation:nth-child(odd),
  .about-workstation:nth-child(even) {
    justify-self: stretch;
  }

  .about-path__step:nth-child(2),
  .about-path__step:nth-child(3) {
    margin-block-start: 0;
  }
}

@media (max-width: 640px) {
  .about-intro-section {
    padding-block-start: 1.7rem;
  }

  .about-lede {
    font-size: 2rem;
  }

  .about-lede--quiet,
  .about-principle p,
  .about-workstation p,
  .about-path__step p {
    font-size: 0.94rem;
  }

  .about-split__copy h2 {
    font-size: 1.55rem;
  }

  .about-note,
  .about-principle,
  .about-workstation,
  .about-path__step,
  .about-final {
    padding: 1rem;
  }

  .about-note p:last-child,
  .about-final p {
    font-size: 1.15rem;
  }

  .about-final__actions {
    align-items: stretch;
    flex-direction: column;
  }
}

/* About page layout stabilization: calm editorial rhythm, no floating modules. */

.hero--about {
  min-height: clamp(230px, 32vw, 350px);
}

.hero--about .hero-title {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.05;
}

.hero--about .hero-subtitle {
  max-width: 58ch;
  font-size: clamp(0.95rem, 1.25vw, 1.08rem);
  line-height: 1.6;
}

.about-intro-section,
.about-band,
.about-path-section,
.page-section:has(.about-feature),
.page-section:has(.about-split) {
  padding-block: clamp(1.65rem, 3vw, 2.35rem);
}

.about-editorial,
.about-editorial--mirror,
.about-feature,
.about-split,
.about-split--reverse {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: center;
}

.about-editorial--mirror,
.about-split--reverse {
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
}

.about-editorial__main,
.about-editorial__main--compact,
.about-split__copy,
.about-feature__copy {
  max-width: 66ch;
}

.about-editorial__main--compact {
  justify-self: stretch;
}

.about-kicker,
.about-editorial__main--compact .section-kicker,
.about-split__copy .section-kicker,
.about-feature__header .section-kicker,
.about-map-header .section-kicker,
.about-path-header .section-kicker {
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.09em;
}

.about-lede,
.about-editorial__main--compact h2,
.about-split__copy h2,
.about-feature__header h2,
.about-map-header h2,
.about-path-header h2 {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.about-lede--quiet,
.about-editorial__main--compact p,
.about-split__copy p,
.about-feature__copy p,
.about-map-header p,
.about-path-header p {
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.68;
}

.about-mission,
.about-mission--warm,
.about-note {
  align-self: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid #c7954b;
  border-right: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.about-mission__label,
.about-note__title {
  font-size: 0.68rem;
  letter-spacing: 0.09em;
}

.about-mission p:last-child,
.about-note p:last-child,
.about-final p {
  max-width: none;
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.45;
}

.about-tree-node--left,
.about-tree-node--right {
  width: min(100% - 2rem, 1040px);
  margin-inline: auto;
}

.about-tree-node--left::before,
.about-tree-node--right::before {
  display: none;
}

.about-feature {
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  align-items: start;
}

.about-feature__header {
  position: static;
}

.about-feature__header h2 {
  max-width: 13ch;
}

.about-principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-block-start: 0.5rem;
}

.about-principle,
.about-workstation,
.about-path__step {
  padding: 0.95rem;
  border-radius: 8px;
}

.about-principle__mark,
.about-path__step span,
.about-workstation a,
.about-workstation span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.about-principle h3,
.about-workstation h3 {
  font-size: 1.05rem;
  line-height: 1.22;
}

.about-principle p,
.about-workstation p,
.about-path__step p,
.about-checklist li {
  font-size: 0.9rem;
  line-height: 1.58;
}

.about-map-header,
.about-path-header {
  justify-items: start;
  max-width: 760px;
  margin: 0 0 1rem;
  text-align: left;
}

.about-map-header__copy,
.about-path-header__copy {
  max-width: 760px;
}

.about-map-header p,
.about-path-header p {
  margin-inline: 0;
}

.about-workstations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: none;
  margin-inline: 0;
}

.about-workstation {
  min-height: auto;
  transform: none;
  justify-self: stretch;
}

.about-workstation:nth-child(2),
.about-workstation:nth-child(3),
.about-workstation:nth-child(odd),
.about-workstation:nth-child(even) {
  transform: none;
  justify-self: stretch;
}

.about-path {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.about-path__step:nth-child(2),
.about-path__step:nth-child(3) {
  margin-block-start: 0;
}

.about-final {
  margin-block-start: 1rem;
  padding: 1.15rem;
}

@media (max-width: 900px) {
  .about-editorial,
  .about-editorial--mirror,
  .about-feature,
  .about-split,
  .about-split--reverse {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-lede,
  .about-editorial__main--compact h2,
  .about-split__copy h2,
  .about-feature__header h2,
  .about-map-header h2,
  .about-path-header h2 {
    max-width: 22ch;
    margin-inline: auto;
    text-align: center;
  }

  .about-kicker,
  .about-editorial__main--compact .section-kicker,
  .about-split__copy .section-kicker,
  .about-feature__header .section-kicker,
  .about-map-header .section-kicker,
  .about-path-header .section-kicker,
  .about-lede--quiet,
  .about-editorial__main--compact p,
  .about-split__copy p,
  .about-feature__copy p,
  .about-map-header p,
  .about-path-header p {
    text-align: center;
  }

  .about-mission,
  .about-mission--warm,
  .about-note {
    border-left: 0;
    border-top: 3px solid #c7954b;
    text-align: center;
  }

  .about-principles,
  .about-workstations,
  .about-path {
    grid-template-columns: 1fr;
  }

  .about-map-header,
  .about-path-header {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero--about .hero-title {
    font-size: 1.9rem;
  }

  .about-lede,
  .about-editorial__main--compact h2,
  .about-split__copy h2,
  .about-feature__header h2,
  .about-map-header h2,
  .about-path-header h2 {
    font-size: 1.35rem;
  }

  .about-lede--quiet,
  .about-editorial__main--compact p,
  .about-split__copy p,
  .about-feature__copy p,
  .about-map-header p,
  .about-path-header p {
    font-size: 0.9rem;
  }
}

/* About page final tuning: compact tablet-friendly layout and warm neutral palette. */

.hero--about .hero__inner {
  justify-content: center;
}

.hero--about .hero-copy {
  width: min(100%, 760px);
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.hero--about .pill,
.hero--about .hero-title,
.hero--about .hero-subtitle {
  text-align: center;
}

.hero--about .hero__actions {
  justify-content: center;
}

.hero--about .hero-title {
  font-size: clamp(1.85rem, 2.65vw, 2.75rem);
}

.hero--about .hero-subtitle {
  max-width: 48ch;
  font-size: 0.96rem;
}

.about-kicker,
.about-editorial__main--compact .section-kicker,
.about-split__copy .section-kicker,
.about-feature__header .section-kicker,
.about-map-header .section-kicker,
.about-path-header .section-kicker,
.about-mission__label,
.about-note__title,
.about-principle__mark,
.about-path__step span,
.about-workstation a,
.about-workstation span {
  color: #8b7355;
}

.about-lede,
.about-editorial__main--compact h2,
.about-split__copy h2,
.about-feature__header h2,
.about-map-header h2,
.about-path-header h2,
.about-principle h3,
.about-workstation h3 {
  color: #3a2c1e;
}

.about-lede,
.about-editorial__main--compact h2,
.about-split__copy h2,
.about-feature__header h2,
.about-map-header h2,
.about-path-header h2 {
  font-size: clamp(1.28rem, 1.75vw, 1.8rem);
  line-height: 1.16;
}

.about-lede--quiet,
.about-editorial__main--compact p,
.about-split__copy p,
.about-feature__copy p,
.about-map-header p,
.about-path-header p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.about-mission p:last-child,
.about-note p:last-child,
.about-final p {
  color: #3a2c1e;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
}

.about-note--trust {
  background: var(--surface);
  border-color: var(--line);
  border-left: 3px solid #c7954b;
}

.about-note--trust .about-note__title,
.about-note--trust p:last-child {
  color: #3a2c1e;
}

.about-final {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: #3a2c1e;
}

.about-final__actions .btn-primary,
.about-final__actions .btn-secondary {
  background: rgb(58 44 30 / 0.12);
  color: #3a2c1e;
}

.about-final__actions .btn-primary:hover,
.about-final__actions .btn-primary:focus-visible,
.about-final__actions .btn-secondary:hover,
.about-final__actions .btn-secondary:focus-visible {
  background: rgb(58 44 30 / 0.18);
  color: #3a2c1e;
}

@media (min-width: 700px) and (max-width: 1100px) {
  .hero--about .hero-copy {
    transform: translateX(0);
  }

  .about-editorial,
  .about-editorial--mirror,
  .about-feature,
  .about-split,
  .about-split--reverse,
  .about-tree-node--left,
  .about-tree-node--right {
    width: min(100% - 1.6rem, 980px);
  }

  .about-principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-principle,
  .about-workstation,
  .about-path__step {
    padding: 0.85rem;
  }
}

@media (max-width: 640px) {
  .hero--about .hero-title {
    font-size: 1.65rem;
  }

  .hero--about .hero-subtitle {
    font-size: 0.9rem;
  }

  .about-lede,
  .about-editorial__main--compact h2,
  .about-split__copy h2,
  .about-feature__header h2,
  .about-map-header h2,
  .about-path-header h2 {
    font-size: 1.18rem;
  }
}

/* About presentation deck. */

.about-deck {
  --about-ink: #2f251b;
  --about-muted: #766a5b;
  --about-line: rgb(70 55 38 / 0.16);
  --about-paper: #f6f0e8;
  --about-card: #fffdf8;
  --about-accent: #b47a33;
  --about-accent-dark: #60401f;
  background:
    linear-gradient(180deg, rgb(246 240 232 / 0.94), rgb(238 230 218 / 0.9)),
    var(--about-paper);
  color: var(--about-ink);
  padding: clamp(1.2rem, 3vw, 2.4rem) 0 clamp(1.8rem, 4vw, 3rem);
}

.about-deck__shell {
  position: relative;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
}

.about-deck__status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--about-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-deck__progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(47 37 27 / 0.12);
}

.about-deck__progress span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: var(--about-accent);
  transition: width 220ms ease;
}

.about-deck__viewport {
  position: relative;
  min-height: clamp(500px, 74vh, 860px);
  overflow: hidden;
  border: 1px solid var(--about-line);
  border-radius: 18px;
  background: var(--about-card);
  box-shadow: 0 24px 64px rgb(51 40 28 / 0.16);
  touch-action: pan-y;
}

.about-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.75fr);
  gap: clamp(1rem, 3.5vw, 3rem);
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 220ms ease, transform 260ms ease;
}

.about-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.about-slide--centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.about-slide--centered .about-slide__panel {
  display: grid;
  justify-items: center;
  width: min(100%, 820px);
}

.about-slide--centered h2,
.about-slide--centered p {
  margin-inline: auto;
}

.about-slide--centered h2 {
  max-width: 13ch;
}

.about-slide--centered .about-slide__list {
  width: min(100%, 620px);
  text-align: left;
}

.about-slide--centered .about-slide__grid,
.about-slide--centered .about-slide__timeline {
  width: min(100%, 760px);
}

.about-slide--balanced {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr);
}

.about-slide--cover {
  display: block;
  padding: 0;
}

.about-slide__image,
.about-slide__shade {
  position: absolute;
  inset: 0;
}

.about-slide__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-slide__shade {
  background:
    linear-gradient(90deg, rgb(47 37 27 / 0.62), rgb(47 37 27 / 0.24)),
    linear-gradient(180deg, rgb(47 37 27 / 0.2), rgb(47 37 27 / 0.58));
}

.about-slide__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 720px);
  color: #fffaf2;
}

.about-slide__content--center {
  display: flex;
  min-height: clamp(500px, 74vh, 860px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}

.about-slide__kicker {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--about-accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about-slide__content .about-slide__kicker {
  color: #dec49b;
}

.about-slide h1,
.about-slide h2 {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-size: clamp(2.15rem, 5vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.about-slide h2 {
  max-width: 11ch;
  color: var(--about-ink);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

.about-slide p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--about-muted);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
}

.about-slide__content p {
  max-width: 44ch;
  color: rgb(255 250 242 / 0.9);
}

.about-slide__panel,
.about-slide__note,
.about-slide__quote {
  position: relative;
  z-index: 1;
}

.about-slide__panel--wide {
  max-width: 820px;
}

.about-slide__note,
.about-slide__quote {
  align-self: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--about-line);
  border-left: 4px solid var(--about-accent);
  border-radius: 12px;
  background: rgb(255 253 248 / 0.82);
  box-shadow: 0 18px 42px rgb(54 43 31 / 0.1);
}

.about-slide__note span,
.about-slide__quote span,
.about-slide__timeline span {
  color: var(--about-accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-slide__note p,
.about-slide__quote p {
  margin-top: 0.55rem;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.22;
}

.about-slide__note--strong {
  background: #2f251b;
}

.about-slide__note--strong span {
  color: #d8b77f;
}

.about-slide__note--strong p {
  color: #fffaf2;
}

.about-slide__actions,
.about-deck__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.about-slide__actions {
  margin-top: 1.6rem;
}

.about-deck-btn,
.about-deck__quicklinks a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 250 242 / 0.2);
  border-radius: 999px;
  background: rgb(255 250 242 / 0.16);
  color: #fffaf2;
  font-weight: 800;
  text-decoration: none;
  padding: 0.72rem 1.15rem;
}

.about-deck-btn--primary {
  background: #fffaf2;
  color: var(--about-ink);
}

.about-slide__grid,
.about-slide__timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.about-slide__grid div,
.about-slide__timeline div {
  padding: 0.85rem;
  border: 1px solid var(--about-line);
  border-radius: 12px;
  background: rgb(255 253 248 / 0.78);
}

.about-slide__grid strong {
  display: block;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.1;
}

.about-slide__grid p,
.about-slide__timeline p {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.45;
}

.about-slide__list {
  display: grid;
  gap: 0.8rem;
  max-width: 660px;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.about-slide__list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--about-muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}

.about-slide__list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--about-accent);
}

.about-slide--final .about-slide__panel--wide {
  max-width: 920px;
}

.about-slide__timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-deck__nav {
  display: grid;
  grid-template-columns: 44px auto 44px;
  gap: 0.8rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.95rem;
}

.about-deck__arrow {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(47 37 27 / 0.16);
  border-radius: 999px;
  background: rgb(255 253 248 / 0.88);
  color: var(--about-ink);
  box-shadow: 0 10px 30px rgb(43 33 24 / 0.12);
}

.about-deck__arrow span {
  margin-top: -0.08em;
  font-size: 2.2rem;
  line-height: 1;
}

.about-deck__controls {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
}

.about-deck__controls button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgb(47 37 27 / 0.28);
  padding: 0;
}

.about-deck__controls button.is-active {
  width: 28px;
  background: var(--about-accent);
}

.about-deck__quicklinks {
  width: min(100% - 2rem, 1180px);
  margin: 1.2rem auto 0;
}

.about-deck__summary {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  width: min(100% - 2rem, 1180px);
  margin: 1rem auto 0;
  padding: clamp(1rem, 2.4vw, 1.45rem);
  border: 1px solid var(--about-line);
  border-radius: 14px;
  background: rgb(255 253 248 / 0.78);
  box-shadow: 0 10px 28px rgb(52 41 29 / 0.08);
}

.about-deck__summary span {
  color: var(--about-accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-deck__summary h2 {
  margin: 0.25rem 0 0;
  color: var(--about-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.2vw, 1.75rem);
  line-height: 1.12;
}

.about-deck__summary p {
  margin: 0;
  color: var(--about-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-deck__quicklinks a {
  border-color: var(--about-line);
  background: rgb(255 253 248 / 0.74);
  color: var(--about-ink);
  box-shadow: 0 10px 28px rgb(52 41 29 / 0.08);
}

#main-content:has(.about-deck) + .site-footer .footer-stripe__green,
#main-content:has(.about-deck) + .site-footer .footer-stripe__orange {
  background: #b47a33;
}

#main-content:has(.about-deck) + .site-footer .footer-stripe__white {
  background: rgb(255 253 248 / 0.7);
}

@media (max-width: 900px) {
  .about-deck {
    padding-top: 1rem;
  }

  .about-deck__shell,
  .about-deck__summary,
  .about-deck__quicklinks {
    width: min(100% - 1rem, 820px);
  }

  .about-deck__viewport {
    min-height: 560px;
    border-radius: 14px;
  }

  .about-slide {
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: center;
    gap: 1.2rem;
    padding: clamp(1.15rem, 5vw, 2.4rem);
    text-align: center;
  }

  .about-slide h1,
  .about-slide h2 {
    max-width: 14ch;
    font-size: clamp(1.9rem, 6.5vw, 3.1rem);
  }

  .about-slide p {
    max-width: 58ch;
    font-size: 1rem;
  }

  .about-slide__panel,
  .about-slide__panel--wide,
  .about-slide__note,
  .about-slide__quote {
    width: min(100%, 680px);
  }

  .about-slide__grid,
  .about-slide__timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    width: min(100%, 560px);
  }

  .about-slide__grid div,
  .about-slide__timeline div {
    padding: 0.75rem;
  }

  .about-deck__summary {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .about-deck__arrow {
    width: 40px;
    height: 40px;
  }

  .about-deck__nav {
    grid-template-columns: 40px auto 40px;
    margin-top: 0.75rem;
  }

  .about-deck__summary {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .about-deck__viewport {
    min-height: 620px;
  }

  .about-slide__content--center {
    min-height: 620px;
    padding: 1rem;
  }

  .about-slide h1,
  .about-slide h2 {
    font-size: clamp(1.95rem, 11vw, 3rem);
  }

  .about-slide__note,
  .about-slide__quote {
    padding: 0.9rem;
  }

  .about-slide__grid,
  .about-slide__timeline {
    grid-template-columns: 1fr;
  }

  .about-deck__quicklinks {
    gap: 0.55rem;
  }

  .about-deck__quicklinks a {
    flex: 1 1 42%;
    padding-inline: 0.8rem;
  }
}

