/* =============================================================
   SYSTEMA RYABKO — responsive.css
   Mobile-first overrides layered on top of style.css
   Breakpoints: 320 / 375 / 768 / 1024 / 1280 / 1440
   -------------------------------------------------------------
   style.css holds the base (small-screen) truth.
   This file: refines the narrow end, then progressively
   unlocks editorial asymmetry on wider viewports.
   ============================================================= */

/* -------------------------------------------------------------
   0. FLUID TOKENS
   Recalculated per breakpoint band rather than one clamp soup,
   so the editorial rhythm stays intentional.
   ------------------------------------------------------------- */
:root {
  --gutter: 20px;
  --shell-max: 100%;
  --rail-w: 0px;

  --sp-section: 56px;
  --sp-block: 28px;

  --fs-display: 2.375rem;   /* 38px */
  --fs-h1: 2rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.1875rem;
  --fs-lead: 1.0625rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.6875rem;

  --lh-display: 1.02;
  --lh-body: 1.65;

  --header-h: 68px;
}

/* =============================================================
   1. 320px BAND — smallest supported (iPhone SE 1st gen, etc.)
   ============================================================= */
@media (max-width: 374px) {
  :root {
    --gutter: 16px;
    --sp-section: 44px;
    --sp-block: 22px;
    --fs-display: 2rem;      /* 32px */
    --fs-h1: 1.75rem;
    --fs-h2: 1.375rem;
    --fs-h3: 1.125rem;
    --fs-lead: 1rem;
    --fs-body: 0.9375rem;
    --header-h: 64px;
  }

  .brand__mark { width: auto; height: 2.25rem; }
  .brand__name { font-size: 1.08rem; }

  .hero__title,
  .display {
    letter-spacing: -0.015em;
    hyphens: auto;
  }

  /* Kill horizontal overflow risks on tiny screens */
  .hero__kicker,
  .section__kicker,
  .eyebrow {
    letter-spacing: 0.16em;
    font-size: 0.625rem;
  }

  .btn,
  .button {
    width: 100%;
    justify-content: center;
  }

  .btn-row,
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* Tables never fit at 320 — force scroll capsule */
  .table-wrap {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
}

/* =============================================================
   2. GLOBAL MOBILE BASE (up to 767px)
   ============================================================= */
@media (max-width: 767px) {

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    font-size: var(--fs-body);
    line-height: var(--lh-body);
  }

  /* --- Layout shell --------------------------------------- */
  .shell,
  .container,
  .wrap {
    width: 100%;
    max-width: none;
    padding-inline: var(--gutter);
    margin-inline: 0;
  }

  .section {
    padding-block: var(--sp-section);
  }
  .section--tight { padding-block: calc(var(--sp-section) * 0.7); }
  .section--flush { padding-block: 0; }

  /* Editorial vertical rails / margin notes are desktop-only */
  .rail,
  .section__rail,
  .side-note,
  .vertical-label,
  .index-number--float,
  .decor,
  .decor-line,
  .parallax-layer {
    display: none !important;
  }

  /* --- Header --------------------------------------------- */
  .site-header {
    height: var(--header-h);
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
  }

  .site-header .brand,
  .site-header__brand {
    font-size: 0.9375rem;
    letter-spacing: 0.12em;
  }
  .brand__mark { width: auto; height: 2.45rem; }
  .brand__sub,
  .brand__tagline { display: none; }

  /* Desktop nav + inline utilities collapse into the drawer */
  .site-nav,
  .site-nav--primary,
  .header-actions,
  .header__cta,
  .header-cta,
  .lang-switch,
  .lang-switch--inline {
    display: none !important;
  }

  .menu-toggle,
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    height: 44px;
    margin-right: -4px;
    background: none;
    border: 0;
    cursor: pointer;
  }

  /* --- Fullscreen drawer ---------------------------------- */
  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: var(--c-bg);
    transform: translateY(-100%);
    opacity: 1;
    visibility: hidden;
    transition:
      transform 480ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 480ms;
  }

  .nav-drawer.is-open,
  body.nav-open .nav-drawer {
    transform: translateY(0);
    visibility: visible;
    transition:
      transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s;
  }

  .nav-drawer__head {
    flex: 0 0 auto;
    height: var(--header-h);
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--c-line);
  }

  .nav-drawer__body {
    flex: 1 1 auto;
    padding: 28px var(--gutter) 16px;
  }

  .nav-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .nav-drawer__list > li {
    border-bottom: 1px solid var(--c-line);
  }

  .nav-drawer__link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 15px 0;
    font-family: var(--ff-display, "Cormorant Garamond", serif);
    font-size: 1.75rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: var(--c-paper, #f2efe9);
  }

  .nav-drawer__link .idx,
  .nav-drawer__num {
    font-family: var(--ff-ui, "Manrope", sans-serif);
    font-size: 0.625rem;
    letter-spacing: 0.2em;
    color: var(--c-muted, #8a8a8a);
    min-width: 2.2em;
  }

  .nav-drawer__link[aria-current="page"],
  .nav-drawer__link.is-active {
    color: var(--c-accent, #a3232b);
  }

  /* Staggered reveal of drawer items */
  body.nav-open .nav-drawer__list > li {
    animation: navItemIn 520ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
  }
  body.nav-open .nav-drawer__list > li:nth-child(1) { animation-delay: 90ms; }
  body.nav-open .nav-drawer__list > li:nth-child(2) { animation-delay: 140ms; }
  body.nav-open .nav-drawer__list > li:nth-child(3) { animation-delay: 190ms; }
  body.nav-open .nav-drawer__list > li:nth-child(4) { animation-delay: 240ms; }
  body.nav-open .nav-drawer__list > li:nth-child(5) { animation-delay: 290ms; }
  body.nav-open .nav-drawer__list > li:nth-child(6) { animation-delay: 340ms; }
  body.nav-open .nav-drawer__list > li:nth-child(7) { animation-delay: 390ms; }
  body.nav-open .nav-drawer__list > li:nth-child(8) { animation-delay: 440ms; }

  @keyframes navItemIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-drawer__foot {
    flex: 0 0 auto;
    padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(28, 24, 18, 0.12);
    display: grid;
    gap: 18px;
  }

  .nav-drawer__foot .btn,
  .nav-drawer__cta {
    width: 100%;
    justify-content: center;
  }

  .nav-drawer .lang-switch {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 1px solid rgba(28, 24, 18, 0.16);
  }
  .nav-drawer .lang-switch a,
  .nav-drawer .lang-switch__item {
    flex: 1 1 0;
    padding: 11px 0;
    text-align: center;
    font-size: var(--fs-micro);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav-drawer .lang-switch a + a,
  .nav-drawer .lang-switch__item + .lang-switch__item {
    border-left: 1px solid rgba(28, 24, 18, 0.16);
  }

  .nav-drawer__meta,
  .nav-drawer__contacts {
    font-size: var(--fs-small);
    line-height: 1.5;
    color: var(--c-muted, #8a8a8a);
  }
  .nav-drawer__contacts a { display: block; }

  body.nav-open { overflow: hidden; }

  /* --- Hero reflow ---------------------------------------- */
  .hero {
    display: block;
    min-height: 0;
    height: auto;
    padding-block: 0;
  }

  .hero__media,
  .hero__figure {
    position: relative;
    inset: auto;
    width: 100%;
    height: 62vh;
    min-height: 340px;
    max-height: 560px;
    margin: 0;
    clip-path: none;
  }
  .hero__media img,
  .hero__media video,
  .hero__figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 32%;
  }

  /* Text sits below the frame, not on top of it */
  .hero__body,
  .hero__content,
  .hero__text {
    position: relative;
    inset: auto;
    max-width: none;
    width: 100%;
    padding: 26px var(--gutter) var(--sp-section);
    transform: none;
    text-align: left;
  }

  .hero--overlay .hero__body,
  .hero--overlay .hero__content {
    margin-top: -64px;
    background: linear-gradient(
      to bottom,
      transparent,
      var(--c-bg) 64px
    );
    padding-top: 74px;
  }

  .hero__kicker {
    margin-bottom: 12px;
  }

  .hero__title {
    font-size: var(--fs-display);
    line-height: var(--lh-display);
    margin: 0 0 16px;
  }
  .hero__title .line { display: block; }
  .hero__title .indent,
  .hero__title--offset { margin-left: 0; text-indent: 0; }

  .hero__lead,
  .hero__sub {
    font-size: var(--fs-lead);
    max-width: 42ch;
    margin: 0 0 22px;
  }

  .hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero__actions .btn { flex: 1 1 100%; }

  .hero__scroll,
  .hero__scroll-hint { display: none; }

  .hero__meta,
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin-top: 28px;
    background: var(--c-line);
    border: 1px solid var(--c-line);
  }
  .hero__meta > *,
  .hero__stats > * {
    background: var(--c-surface);
    padding: 14px;
  }

  /* --- Section headings ----------------------------------- */
  .section__head,
  .section-head {
    display: block;
    margin-bottom: var(--sp-block);
  }
  .section__title {
    font-size: var(--fs-h2);
    line-height: 1.12;
    margin: 6px 0 10px;
  }
  .section__lead {
    font-size: var(--fs-body);
    max-width: 46ch;
  }
  .section__aside,
  .section__meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(28, 24, 18, 0.12);
  }

  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
  h3 { font-size: var(--fs-h3); }
  .display,
  .display--xl { font-size: var(--fs-display); line-height: var(--lh-display); }

  /* --- Grids collapse ------------------------------------- */
  .editorial-grid,
  .editorial-grid--split,
  .editorial-grid--offset,
  .grid,
  .grid--2,
  .grid--3,
  .grid--4,
  .cards,
  .card-grid,
  .feature-grid,
  .team-grid,
  .gallery-grid,
  .post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
    gap: 24px;
  }

  .editorial-grid > *,
  .editorial-grid--offset > * {
    grid-column: auto !important;
    grid-row: auto !important;
    grid-area: auto !important;
    margin-top: 0 !important;
    transform: none !important;
  }

  /* Media before copy in every split block */
  .editorial-grid--split .editorial-grid__media,
  .split__media,
  .media-first { order: -1; }

  .editorial-grid__media img,
  .figure img,
  .media img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .figure--portrait img,
  .media--portrait img { aspect-ratio: 3 / 4; }

  /* Two-up only where it still reads well */
  .grid--pair-mobile,
  .stat-grid,
  .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
  }

  /* --- Cards ---------------------------------------------- */
  .card {
    padding: 20px;
  }
  .card--feature,
  .card--wide { padding: 22px 20px; }
  .card__title { font-size: var(--fs-h3); }
  .card__index,
  .card__num { font-size: var(--fs-micro); }
  .card:hover { transform: none; }

  /* --- Horizontal snap rails (galleries / lineage) -------- */
  .h-scroll,
  .scroller,
  .gallery--rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .h-scroll::-webkit-scrollbar,
  .scroller::-webkit-scrollbar { display: none; }
  .h-scroll > *,
  .scroller > *,
  .gallery--rail > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  /* --- Schedule → stacked list ---------------------------- */
  .schedule-table,
  .schedule--table { display: none; }

  .schedule-list {
    display: block;
    border-top: 1px solid rgba(28, 24, 18, 0.12);
  }

  .schedule-day {
    padding: 16px 0 18px;
    border-bottom: 1px solid rgba(28, 24, 18, 0.12);
  }

  .schedule-day__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--ff-ui, "Manrope", sans-serif);
    font-size: var(--fs-micro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-muted, #8a8a8a);
    margin-bottom: 10px;
  }

  .schedule-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 2px;
    padding: 9px 0;
  }
  .schedule-item + .schedule-item {
    border-top: 1px dashed rgba(28, 24, 18, 0.12);
  }
  .schedule-item__time {
    font-variant-numeric: tabular-nums;
    font-size: var(--fs-small);
    letter-spacing: 0.04em;
    white-space: nowrap;
    color: var(--c-paper, #f2efe9);
  }
  .schedule-item__title {
    font-family: var(--ff-display, "Cormorant Garamond", serif);
    font-size: 1.125rem;
    line-height: 1.25;
  }
  .schedule-item__meta {
    grid-column: 2;
    font-size: var(--fs-small);
    color: var(--c-muted, #8a8a8a);
  }
  .schedule-item__level {
    grid-column: 2;
    font-size: var(--fs-micro);
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .schedule-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 18px;
    font-size: var(--fs-small);
  }

  /* --- Forms ---------------------------------------------- */
  .form,
  .form--inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .form-row,
  .form__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .field {
    display: block;
  }

  .field__label,
  .form label {
    display: block;
    font-size: var(--fs-micro);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .field input,
  .field select,
  .field textarea,
  .form input[type="text"],
  .form input[type="email"],
  .form input[type="tel"],
  .form input[type="password"],
  .form input[type="date"],
  .form select,
  .form textarea {
    width: 100%;
    min-height: 48px;
    padding: 13px 14px;
    font-size: 1rem;            /* ≥16px: prevents iOS zoom-on-focus */
    line-height: 1.4;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
  }
  .form textarea,
  .field textarea { min-height: 132px; resize: vertical; }

  .field--check,
  .checkbox {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .field--check input,
  .checkbox input {
    width: 20px;
    height: 20px;
    min-height: 0;
    margin-top: 2px;
  }
  .field--check label,
  .checkbox label {
    font-size: var(--fs-small);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.5;
    margin: 0;
  }

  .field__hint,
  .field__error {
    font-size: var(--fs-small);
    margin-top: 6px;
  }

  .form__actions,
  .form-actions {
    display: grid;
    gap: 12px;
  }
  .form__actions .btn { width: 100%; justify-content: center; }

  .form-note,
  .form__consent { font-size: var(--fs-small); }

  /* Honeypot must remain hidden at every size */
  .hp-field,
  .honeypot,
  .field--hp { position: absolute !important; left: -9999px !important; }

  .flash,
  .alert { padding: 14px 16px; font-size: var(--fs-small); }

  /* --- Quotes / pull text --------------------------------- */
  .pullquote,
  blockquote.display {
    font-size: 1.5rem;
    line-height: 1.22;
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid rgba(28, 24, 18, 0.14);
  }
  .pullquote__source { font-size: var(--fs-small); margin-top: 14px; }

  /* --- Article body --------------------------------------- */
  .prose { max-width: none; font-size: 1.0625rem; }
  .prose h2 { font-size: var(--fs-h2); margin-top: 34px; }
  .prose h3 { font-size: var(--fs-h3); margin-top: 26px; }
  .prose figure { margin-inline: calc(var(--gutter) * -1); }
  .prose figcaption { padding-inline: var(--gutter); font-size: var(--fs-small); }
  .prose ul, .prose ol { padding-left: 1.15em; }

  /* --- FAQ / accordion ----------------------------------- */
  .accordion__trigger {
    padding: 16px 40px 16px 0;
    font-size: var(--fs-h3);
    text-align: left;
    min-height: 56px;
  }
  .accordion__panel { padding-bottom: 18px; font-size: var(--fs-body); }

  /* --- Footer -------------------------------------------- */
  .site-footer {
    padding: 44px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer__grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .site-footer__brand .display { font-size: 1.75rem; }
  .footer-col__title {
    font-size: var(--fs-micro);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
  }
  .footer-nav a { display: block; padding: 7px 0; }
  .site-footer__bottom,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    font-size: var(--fs-small);
  }

  /* --- Touch target hygiene ------------------------------ */
  .btn,
  .button,
  button,
  .link-arrow,
  .pagination a,
  .tabs__btn {
    min-height: 46px;
  }
  .btn { padding-inline: 20px; }

  /* Disable hover-only reveals on touch */
  .reveal-on-hover { opacity: 1; transform: none; }
}

/* =============================================================
   3. 375px+ BAND — slightly more room
   ============================================================= */
@media (min-width: 375px) and (max-width: 767px) {
  :root {
    --gutter: 22px;
    --fs-display: 2.625rem;   /* 42px */
  }
  .hero__actions .btn { flex: 1 1 auto; }
  .nav-drawer__link { font-size: 1.9375rem; }
}

@media (min-width: 480px) and (max-width: 767px) {
  :root {
    --gutter: 26px;
    --sp-section: 64px;
    --fs-display: 3rem;
  }
  .grid--pair-mobile,
  .card-grid,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .h-scroll > *,
  .scroller > * { flex-basis: 58%; }
  .prose figure { margin-inline: 0; }
  .prose figcaption { padding-inline: 0; }
}

/* =============================================================
   4. 768px BAND — tablet portrait
   Drawer still active (nav-toggle visible), layout opens up.
   ============================================================= */
@media (min-width: 768px) {
  :root {
    --gutter: 40px;
    --shell-max: 100%;
    --sp-section: 88px;
    --sp-block: 40px;
    --fs-display: 3.75rem;    /* 60px */
    --fs-h1: 2.75rem;
    --fs-h2: 2.125rem;
    --fs-h3: 1.375rem;
    --fs-lead: 1.125rem;
    --fs-body: 1.0625rem;
    --fs-small: 0.9375rem;
    --header-h: 72px;
  }

  .shell,
  .container,
  .wrap {
    padding-inline: var(--gutter);
  }

  .section { padding-block: var(--sp-section); }

  /* Header: keep drawer up to 1023, but show language + CTA */
  .site-header { height: var(--header-h); }
  .site-header .brand,
  .site-header__brand { font-size: 1.0625rem; }
  .brand__mark { width: auto; height: 3.4rem; }

  .header-actions { display: flex; align-items: center; gap: 18px; }
  .header-actions .lang-switch { display: flex; gap: 10px; }
  .header__cta { display: inline-flex; }

  .nav-drawer {
    max-width: 480px;
    left: auto;
    right: 0;
    transform: translateX(100%);
    border-left: 1px solid rgba(28, 24, 18, 0.12);
  }
  .nav-drawer.is-open,
  body.nav-open .nav-drawer { transform: translateX(0); }

  .nav-drawer__backdrop,
  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 880;
    background: rgba(6, 6, 7, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 320ms ease, visibility 0s linear 320ms;
  }
  body.nav-open .nav-drawer__backdrop,
  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    transition: opacity 320ms ease, visibility 0s;
  }
  .nav-drawer__body { padding: 34px var(--gutter) 20px; }
  .nav-drawer__link { font-size: 2.125rem; }
  .nav-drawer__foot { padding-inline: var(--gutter); }

  /* Hero: two-column, media dominant right */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 78vh;
  }
  .hero__body,
  .hero__content,
  .hero__text {
    padding: 72px var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
    background: none;
    padding-top: 72px;
  }
  .hero__media,
  .hero__figure {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .hero__title { font-size: var(--fs-display); }
  .hero__lead { max-width: 34ch; }
  .hero__actions { flex-wrap: nowrap; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__meta,
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Grids: 2-up, section heads become 2-column */
  .section__head,
  .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
  }
  .section__aside,
  .section__meta {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .cards,
  .card-grid,
  .feature-grid,
  .team-grid,
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

  .editorial-grid,
  .editorial-grid--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    align-items: center;
  }
  .editorial-grid--split .editorial-grid__media,
  .split__media { order: 0; }

  .h-scroll,
  .scroller { overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: 0; padding-inline: 0; }
  .h-scroll > *, .scroller > * { flex: none; }

  .card { padding: 28px; }

  /* Schedule: real table returns */
  .schedule-list { display: none; }
  .schedule-table,
  .schedule--table {
    display: table;
    width: 100%;
    border-collapse: collapse;
  }
  .schedule-table th,
  .schedule-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(28, 24, 18, 0.12);
  }
  .schedule-table th {
    font-size: var(--fs-micro);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-muted, #8a8a8a);
  }

  /* Forms: paired fields */
  .form-row--2,
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form__actions,
  .form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .form__actions .btn { width: auto; }
  .form--boxed { padding: 36px; }

  .pullquote,
  blockquote.display { font-size: 2rem; line-height: 1.16; }

  .prose { max-width: 66ch; }
  .prose figure { margin-inline: 0; }

  .site-footer { padding: 72px var(--gutter) 34px; }
  .site-footer__grid,
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .site-footer__bottom,
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Tablet landscape nuance */
@media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
  .hero { min-height: 100vh; }
  .hero__body { padding-block: 56px; }
}

/* =============================================================
   5. 1024px BAND — desktop nav appears, editorial rails on
   ============================================================= */
@media (min-width: 1024px) {
  :root {
    --gutter: 48px;
    --shell-max: 1180px;
    --rail-w: 96px;
    --sp-section: 116px;
    --sp-block: 52px;
    --fs-display: 4.5rem;     /* 72px */
    --fs-h1: 3.25rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-lead: 1.1875rem;
    --header-h: 72px;
  }

  .shell,
  .container,
  .wrap {
    max-width: var(--shell-max);
    margin-inline: auto;
  }

  /* Drawer machinery off */
  .nav-toggle,
  .nav-drawer,
  .nav-drawer__backdrop,
  .nav-backdrop { display: none !important; }
  body.nav-open { overflow: auto; }

  .site-nav,
  .site-nav--primary {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  .site-nav a {
    font-size: 0.8125rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .lang-switch--inline { display: flex; gap: 12px; }

  /* Restore editorial decoration */
  .rail,
  .section__rail,
  .side-note,
  .vertical-label,
  .index-number--float,
  .decor,
  .decor-line {
    display: block !important;
  }
  .vertical-label {
    writing-mode: vertical-rl;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: var(--fs-micro);
  }

  .section--railed {
    display: grid;
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 0 40px;
  }

  /* Hero: asymmetric 5/7 with overlap */
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* =============================================================
   6. 1280px BAND
   ============================================================= */
@media (min-width: 1280px) {
  :root {
    --gutter: 56px;
    --shell-max: 1360px;
    --rail-w: 108px;
    --sp-section: 132px;
    --sp-block: 60px;
    --fs-display: 4.75rem;
    --header-h: 72px;
  }
}

/* =============================================================
   7. 1440px BAND
   ============================================================= */
@media (min-width: 1440px) {
  :root {
    --gutter: 64px;
    --shell-max: 1560px;
    --rail-w: 120px;
    --sp-section: 144px;
    --fs-display: 5rem;
  }
}

/* =============================================================
   8. 1920px BAND — align shell with --wrap from style.css
   ============================================================= */
@media (min-width: 1920px) {
  :root {
    --gutter: 72px;
    --shell-max: 1680px;
    --sp-section: 152px;
  }
}
