/* Macan Awan — direction B, «Линия пути». Rules: FOUNDATION.md, "Direction B".
   Paper page, ink text, one pine line that carries every page and ends in a dawn disc.
   Display: Alumni Sans 600 (never below 32 px). Text and UI: Onest 400 / 600. */

/* Self-hosted fonts (OFL, licences in assets/fonts/). Subsets as Google Fonts serves them: latin, latin-ext,
   cyrillic, cyrillic-ext, vietnamese. Fallbacks are metric-matched with size-adjust so the swap does not shift text. */
@font-face { font-family: "Alumni Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/alumni-sans-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Alumni Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/alumni-sans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alumni Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/alumni-sans-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Alumni Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/alumni-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Alumni Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/alumni-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-cyrillic-ext.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 103%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Alumni Sans Fallback"; src: local("Arial Narrow"), local("Helvetica Neue Condensed Bold"), local("Arial"); size-adjust: 82%; ascent-override: 110%; descent-override: 30%; }

:root {
  --paper: #F2F5F6; --ink: #141915; --pine: #1E4D3A; --mist: #C5CBC2; --dawn: #EFA678;
  --quiet: #4A524C;                 /* secondary text on paper, 7.4:1 */
  --line: rgb(20 25 21 / .16);
  --gutter: clamp(1.5rem, 4.45vw, 4rem);
  --t-small: .875rem; --t-body: 1.0625rem; --t-lead: 1.1875rem; --t-h3: 1.625rem;
  --d-h1: clamp(4.25rem, 10.4vw, 9.375rem);     /* program and region headline */
  --d-home: clamp(5rem, 21.9vw, 19.75rem);      /* home headline */
  --d-h2: clamp(3.25rem, 7.8vw, 7rem);          /* section headline */
  --d-num: clamp(6.5rem, 14.6vw, 13.125rem);    /* scene numeral */
  --d-mid: clamp(2.25rem, 3.05vw, 2.75rem);     /* lengths, prices, region names in lists */
  /* Alumni Sans: the word space is .173em once tabular figures are off (with tnum it was .427em, the cause of the
     uneven gaps). Display text has no NBSP: the generator keeps short pairs together with span.nb. */
  --ws: -.035em;                             /* Russian: short words and long words, a tighter gap reads as one line */
  --ws-num: -.02em;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --mast: 4.5rem;
  --focus: var(--ink);
  interpolate-size: allow-keywords;
}
:root:lang(en) { --ws: -.02em; --ws-num: -.02em; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--mast) + 1rem); background: var(--paper); }
body {
  margin: 0; font-family: "Onest", "Onest Fallback", "Segoe UI", Arial, sans-serif;
  font-size: var(--t-body); line-height: 1.5; font-weight: 400; font-synthesis: none; font-variant-numeric: tabular-nums;
  color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { text-wrap: pretty; }

/* display face */
h1, h2, .big, .row__way, .row__price, .entries__name, .cat__head h3, .mast__brand span, .sheet__title, .next__name, .price strong, .pl__day, .wl__num {
  font-family: "Alumni Sans", "Alumni Sans Fallback", "Arial Narrow", sans-serif; font-weight: 600; word-spacing: var(--ws);
  font-variant-numeric: normal;     /* tabular figures in Alumni Sans also widen the space and the comma */
}
.nb { white-space: nowrap; }
h1, h2, .big--word { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }   /* «лицензированными» at 375 px */
h1 { font-size: var(--d-h1); line-height: .82; letter-spacing: -.005em; text-wrap: balance; }
h2 { font-size: var(--d-h2); line-height: .85; text-wrap: balance; }
h3 { font-size: var(--t-body); line-height: 1.3; font-weight: 600; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--ink); color: var(--paper); border-radius: 4px; }
.skip:focus { top: .5rem; }

/* actions: the dawn button is the one accent */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.5rem; padding: .75rem 1.75rem;
  background: var(--dawn); color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 6px; white-space: nowrap;
  transition: background-color .12s ease, transform .12s var(--ease-out);
}
.btn--ink { background: var(--ink); color: var(--paper); }      /* on the hour scene the sun is the accent */
.btn__ic { flex: none; }
.btn:active { transform: scale(.97); }
.tlink { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (hover: hover) { .btn:hover { background: #F5B892; } .btn--ink:hover { background: #2A322C; } .tlink:hover { text-decoration-thickness: 2px; } }
.promise, .cap, .note { font-size: var(--t-small); line-height: 1.4; color: var(--quiet); }
.promise { margin-top: .75rem; max-width: 24rem; }
.honest { margin-top: .625rem; font-size: .9375rem; line-height: 1.45; color: var(--quiet); }

/* ---------- masthead ---------- */

.mast {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: .25rem 2rem;
  min-height: var(--mast); padding: 0 var(--gutter); background: var(--paper); transition: transform .24s var(--ease-out);
}
.mast.is-away { transform: translateY(-100%); }
.mast:focus-within { transform: none; }
.mast__brand { display: inline-flex; align-items: center; gap: .625rem; min-height: 2.75rem; text-decoration: none; }
.mast__brand span { font-size: 2rem; line-height: 1; white-space: nowrap; }
.mast__nav { display: flex; align-items: center; gap: 1rem; margin-inline: auto; }
.mast__item { position: relative; }
.mast__link, .mast__lang > *, .mast__tg, .mast__menu { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .75rem; font-size: 1rem; text-decoration: none; }
.mast__link[aria-current] { text-decoration: underline; text-underline-offset: .4em; }
.mast__lang { display: flex; }
.mast__lang > * { color: var(--quiet); padding: 0 .375rem; min-width: 2.75rem; justify-content: center; }
.mast__lang [aria-current] { color: var(--ink); font-weight: 600; }
.mast__tg { text-decoration: underline; text-underline-offset: .3em; padding-right: 0; }
.mast__menu { display: none; padding: 0 1rem; border: 1.5px solid var(--ink); border-radius: 6px; }

.panel {
  position: absolute; top: 100%; left: -.5rem; z-index: 11; min-width: 20rem; padding: .5rem;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px;
  visibility: hidden; opacity: 0; transition: opacity .12s ease .2s, visibility 0s .32s;
}
.mast__item:hover .panel, .mast__item:focus-within .panel { visibility: visible; opacity: 1; transition-delay: 0s; }
.panel a { display: grid; gap: 0 1rem; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; padding: .625rem .75rem; text-decoration: none; border-radius: 4px; }
.panel__name { font-weight: 600; }
.panel__meta { font-size: var(--t-small); color: var(--quiet); white-space: nowrap; }
.panel a[aria-current] .panel__name { text-decoration: underline; text-underline-offset: .3em; }
@media (hover: hover) { .panel a:hover { background: rgb(20 25 21 / .07); } }

.sheet { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: rgb(20 25 21 / .5); }
.sheet__bar { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; padding: 0 var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet__title { font-size: 2rem; line-height: 1; }
.sheet__close { min-height: 2.75rem; padding: 0 1rem; font: inherit; color: inherit; background: none; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; }
.sheet__body { padding: 1rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
.sheet section + section { margin-top: 1.5rem; }
.sheet h2 { font-size: 2.75rem; line-height: 1; }
.sheet h2 a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.sheet li a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; min-height: 2.75rem; padding: .5rem 0; text-decoration: none; border-top: 1px solid var(--line); }
.sheet li a[aria-current] > span:first-child { font-weight: 600; }
.sheet__meta { font-size: var(--t-small); color: var(--quiet); white-space: nowrap; }
.sheet__foot { display: grid; gap: .25rem; margin-top: 2rem; }
.sheet__foot a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

/* ---------- the line: a headline stands on it, it ends in the dawn disc ---------- */

.hline { display: flex; align-items: center; margin: -.04em calc(-1 * var(--gutter)) 0; pointer-events: none; }
.hline__way { flex: 0 0 93%; height: 4px; background: var(--pine); transform-origin: 0 50%; }
.hline__sun { flex: none; width: 3.5rem; height: 3.5rem; margin-left: -.25rem; border-radius: 50%; background: var(--dawn); }

/* ---------- home and region hero ---------- */

.hero { padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4.5rem); }
.hero h1 { font-size: var(--d-home); line-height: .78; letter-spacing: -.01em; padding-top: .02em; }
.hero--region h1 { font-size: var(--d-h1); line-height: .82; margin-top: .5rem; max-width: 11em; }
.hero .hline { font-size: var(--d-home); }
.hero--region .hline { font-size: var(--d-h1); margin-top: .08em; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 28.5rem) minmax(0, 1fr); gap: 2.5rem 6rem; margin-top: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.hero__decision { font-size: var(--t-lead); }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.5rem; }
.hero__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--mist); }
.hero__photo figcaption { margin-top: .5rem; }

/* three regions on one axis: how long the way is */
.entries__scale, .entries a { display: grid; grid-template-columns: 10.625rem minmax(0, 25rem) minmax(11rem, 1fr); gap: 0 1.5rem; align-items: center; }
.entries a { min-height: 4rem; text-decoration: none; }
.entries__name { font-size: 3.5rem; line-height: 1; }
.entries__range { font-size: 1rem; }
/* Axis labels sit where the axis puts them (x = 10 + 56·i of 300) and never collide: below 19rem of axis width only
   the two ends («утро», «3 нед.») stay. */
.ticks { position: relative; display: block; height: 1.3em; min-width: 0; font-size: var(--t-small); line-height: 1.3; color: var(--quiet); container-type: inline-size; }
.ticks > span { position: absolute; top: 0; white-space: nowrap; transform: translateX(-50%); }
.ticks > span:nth-child(1) { left: 0; transform: none; }
.ticks > span:nth-child(2) { left: 22%; }
.ticks > span:nth-child(3) { left: 40.67%; }
.ticks > span:nth-child(4) { left: 59.33%; }
.ticks > span:nth-child(5) { left: 78%; }
.ticks > span:nth-child(6) { left: auto; right: 0; transform: none; }
@container (max-width: 19rem) { .ticks > span:not(:first-child):not(:last-child) { display: none; } }
.axis { width: 100%; height: auto; overflow: visible; }
.axis__track { stroke: var(--mist); stroke-width: 2; }
.axis__way { stroke: var(--pine); stroke-width: 4; }
.axis__way--range { stroke-dasharray: 2 5; }
.axis__hour { fill: var(--dawn); }
.axis__bar { stroke: var(--pine); stroke-width: 10; stroke-linecap: round; }
@media (hover: hover) { .entries a:hover .entries__range { text-decoration: underline; text-underline-offset: .25em; } }

/* ---------- catalogue ---------- */

.cat { padding: clamp(1.5rem, 3vw, 2.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.cat__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.cat__top p { max-width: 21rem; font-size: .9375rem; color: var(--quiet); margin-bottom: .375rem; }
.cat__top h2 { font-size: clamp(3.5rem, 8.9vw, 8rem); line-height: .82; }
.cat__cols, .row { display: grid; grid-template-columns: 5.5rem minmax(0, 2fr) 11rem minmax(0, 1.6fr) minmax(0, 1.4fr) 8.5rem; gap: .25rem 1.25rem; align-items: center; }
.cat__cols--wide, .row--wide { grid-template-columns: 5.5rem minmax(0, 1.7fr) 11rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.3fr) 8.5rem; }
.cat__cols { margin-top: 1.625rem; font-size: var(--t-small); color: var(--quiet); }
.cat__cols .num, .row__price { text-align: right; }
.cat__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .25rem 1.5rem; min-height: 3.75rem; padding: .75rem 0 .375rem; }
.cat__head h3 { font-size: 3rem; line-height: .9; }
.cat__head h3 a { text-decoration: none; }
.cat__head p { font-size: var(--t-small); color: var(--quiet); margin-bottom: .1875rem; max-width: 52rem; }
.cat__now { font-weight: 600; color: var(--ink); }
.row { min-height: 5.25rem; padding: .5625rem 0; text-decoration: none; }
.row__img { width: 5.5rem; height: 4.125rem; object-fit: cover; border-radius: 4px; background: var(--mist); }
.row__name { display: block; font-size: 1.25rem; line-height: 1.2; font-weight: 600; }
.row__line { display: block; margin-top: .125rem; font-size: .9375rem; line-height: 1.35; color: var(--quiet); }
.row__len { min-width: 0; }
.row__way, .row__price { display: block; font-size: var(--d-mid); line-height: .9; white-space: nowrap; }
.row__dist { display: block; margin-top: .25rem; font-size: .9375rem; line-height: 1.3; color: var(--quiet); }
.row__hard, .row__a, .row__b { font-size: .9375rem; line-height: 1.35; }
@media (hover: hover) { .row:hover .row__name, .cat__head h3 a:hover, .next:hover .next__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; } }
.cat__help { margin-top: 1.5rem; max-width: 50rem; }
.cat__help .tlink { margin-right: 1.5rem; }

/* ---------- program hero: the way drawn as one line that ends in the hour ---------- */

.hour { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; gap: 0 3rem; padding: 0 var(--gutter); grid-template-areas: "crumbs photo" "h1 photo" "panel photo" "line line"; align-items: start; }
.crumbs { grid-area: crumbs; display: flex; flex-wrap: wrap; gap: 0 .375rem; align-items: center; font-size: .9375rem; color: var(--quiet); }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .25em; }
.hour h1 { grid-area: h1; margin-top: .25rem; max-width: 9.2em; }
.hour__photo { grid-area: photo; }
.hour__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; background: var(--mist); }
.hour__photo figcaption { margin-top: .5rem; text-align: right; }
.hour__panel { grid-area: panel; max-width: 37.5rem; margin-top: 1.75rem; position: relative; z-index: 1; }
.hour__decision { font-size: var(--t-lead); }
.hour__act { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; margin-top: 1.375rem; }
.hour__line { grid-area: line; margin: -7rem calc(-1 * var(--gutter)) 0; pointer-events: none; }
.wl { width: 100%; height: auto; overflow: visible; }
.wl--narrow { display: none; }
.wl__line { fill: none; stroke: var(--pine); stroke-width: 4; stroke-linejoin: round; }
.wl__lead { stroke: var(--pine); stroke-width: 4; stroke-dasharray: 2 8; }
.wl__ring { fill: var(--paper); stroke: var(--pine); stroke-width: 3; }
.wl__hour { fill: var(--dawn); }
.wl__label { font-size: 15px; fill: var(--ink); }
.wl__label--quiet { fill: var(--quiet); }
.wl__num { fill: var(--ink); word-spacing: var(--ws-num); }

/* ---------- story: the numeral is the picture ---------- */

.way { padding: clamp(1rem, 2vw, 2rem) 0 0; }
.scene { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem) 15.25rem; gap: 0 2.5rem; align-items: start; padding: 1.25rem var(--gutter) clamp(2.5rem, 5vw, 4rem); grid-template-areas: "kicker kicker kicker" "num text media"; }
.scene--text { grid-template-columns: minmax(0, 1fr) minmax(0, 23.75rem) 15.25rem; }
.scene__kicker { grid-area: kicker; font-size: .9375rem; color: var(--quiet); }
.scene__num { grid-area: num; position: relative; min-width: 0; }
.big { position: relative; font-size: var(--d-num); line-height: .8; white-space: nowrap; word-spacing: var(--ws-num); margin-top: .04em; }
.big--word { font-size: clamp(3.5rem, 6vw, 6.875rem); line-height: .9; white-space: normal; word-spacing: var(--ws); max-width: 6.5em; text-wrap: balance; }
.scene__rule { position: relative; display: block; height: 4px; margin: .4rem 0 0 calc(-1 * var(--gutter)); width: min(100%, 38.75rem); background: var(--pine); }
.scene__rule::after { content: ""; position: absolute; right: -.875rem; top: 50%; width: .875rem; height: .875rem; margin-top: -.4375rem; border: 4px solid var(--pine); border-radius: 50%; background: var(--paper); box-sizing: content-box; }
.scene__cap { margin-top: .875rem; font-size: .9375rem; color: var(--quiet); }
.scene__text { grid-area: text; padding-top: 1.5rem; }
.scene__text h3 { font-size: 1.75rem; line-height: 1.15; }
.scene__text h3 + p { margin-top: .875rem; }
.scene__text .tlink { margin-top: .5rem; }
.scene__media { grid-area: media; }
.scene__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: 4px; background: var(--mist); }
.scene__media figcaption { margin-top: .375rem; text-align: right; }
.scene__cta { margin-top: 1.375rem; }
.scene__after { margin-bottom: .75rem; font-weight: 600; }

/* the hour: the dot at the end of the line becomes the sun */
.scene--hour .scene__rule::after { display: none; }
.sun { position: absolute; left: 22%; bottom: calc(100% - var(--sun-y, 0px)); width: min(21rem, 62%); aspect-ratio: 2 / 1; border-radius: 999px 999px 0 0; background: var(--dawn); transform-origin: 50% 100%; }
.scene--hour .scene__num { --sun-y: 0px; }
.scene--hour .big { z-index: 1; }
.scene--hour .sun { bottom: auto; top: 0; height: 0; aspect-ratio: auto; }
.scene--hour .scene__num { display: grid; }
.scene--hour .sun, .scene--hour .big { grid-area: 1 / 1; }
.scene--hour .sun { position: relative; left: auto; align-self: end; justify-self: center; height: auto; aspect-ratio: 2 / 1; width: min(21rem, 62%); top: auto; margin-right: 12%; }
.scene--hour .scene__rule { grid-row: 2; }
.scene--hour .scene__cap { grid-row: 3; }
.js .sun { transform: scale(.1); }
.js .sun.is-up { transform: none; }

.way--home { padding-top: 0; }
.way__title { padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) .5rem; }
.way__name { display: grid; grid-template-columns: auto minmax(0, 40rem); gap: 1.25rem; align-items: center; padding: 0 var(--gutter) clamp(2.5rem, 5vw, 4rem); color: var(--quiet); }

/* ---------- proof and plan ---------- */

.proof { padding: clamp(1rem, 2vw, 2rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.psec + .psec { margin-top: clamp(3rem, 6vw, 5rem); }
.psec__body { margin-top: 1.375rem; max-width: 46rem; }
.psec__body > p + p, .psec__body > ul + p, .psec__body > p + ul { margin-top: .75rem; }
.psec__body > .tlink { margin-top: .5rem; }
.psec .note { max-width: 46rem; }
.lead { font-size: var(--t-h3); line-height: 1.3; }
.plain li + li { margin-top: .5rem; }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 3rem; }
#fit .psec__body, #dates .psec__body, #plan .psec__body { max-width: none; }
.fit h3 { margin-bottom: .5rem; }
.fit p, .fit li { font-size: 1rem; }

.price strong { font-size: clamp(3rem, 5vw, 4.5rem); line-height: .9; margin-right: .5rem; }
.price span, .market span { font-size: var(--t-small); color: var(--quiet); }
.price + p, .market + p { margin-top: 1rem; }
#dates .psec__body > p { max-width: 40rem; }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.dep { margin-top: .75rem; border-bottom: 1px solid var(--line); max-width: 40rem; }
.dep li { display: flex; flex-wrap: wrap; gap: 0 1.5rem; align-items: center; justify-content: space-between; padding: .25rem 0; border-top: 1px solid var(--line); }
.dep__date { font-weight: 600; }
.composer { display: none; margin-top: 1.5rem; }
.js .composer { display: block; }
.composer__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .625rem; }
.composer__label { min-width: 6rem; font-size: .9375rem; color: var(--quiet); }
.chip { min-height: 2.75rem; padding: 0 .875rem; font: inherit; font-size: .9375rem; color: inherit; background: none; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.tlink--strong { font-weight: 600; }

.plan-wide { display: none; margin: 1rem 0 0; }
.pl { width: 100%; height: auto; overflow: visible; }
.pl__line { stroke: var(--pine); stroke-width: 4; stroke-linecap: round; }
.pl__line--gap { stroke-width: 3; stroke-dasharray: 2 7; }
.pl__ring { fill: var(--paper); stroke: var(--pine); stroke-width: 3; }
.pl__hour { fill: var(--dawn); }
.pl__alt { font-size: 14px; font-weight: 600; fill: var(--ink); }
.pl__day { font-size: 34px; fill: var(--ink); }
.pl__stop { font-size: 14px; fill: var(--ink); }
.pl__walk { font-size: 14px; fill: var(--quiet); }
.pf { margin: 1.25rem 0; max-width: 35rem; }
.profile { width: 100%; height: auto; overflow: visible; }
.pf-area { fill: var(--pine); fill-opacity: .07; }
.pf-line { fill: none; stroke: var(--pine); stroke-width: 3; stroke-linecap: round; }
.pf-gap { stroke-dasharray: 2 6; }
.pf-reach { fill: none; stroke: var(--pine); stroke-width: 1.5; stroke-dasharray: 2 4; }
.pf-top { fill: var(--paper); stroke: var(--pine); stroke-width: 3; }
.pf-dot { fill: var(--pine); }
.pf-base { stroke: var(--mist); stroke-width: 2; }
.pf-alt { font-size: 22px; font-weight: 600; fill: var(--ink); }
.pf-day { font-size: 19px; fill: var(--quiet); }

details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 2.75rem; padding: .625rem 0; font-weight: 600; }
details > summary::-webkit-details-marker { display: none; }
.tog { position: relative; flex: none; width: 2.75rem; height: 2.75rem; }
.tog::before, .tog::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1rem; height: 2px; margin: -1px 0 0 -.5rem; background: currentColor; transition: transform .2s var(--ease-out); }
.tog::after { transform: rotate(90deg); }
[open] > summary .tog::after { transform: rotate(0deg); }
.plan, .qa, .sourcebox details { border-top: 1px solid var(--line); }
.qas, .plan { border-bottom: 1px solid var(--line); max-width: 46rem; }
.plan > summary { display: none; }
.qa > p { max-width: 38rem; padding: 0 3.5rem 1.5rem 0; }
.days { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.4; margin: .25rem 0 .75rem; }
.days th, .days td { padding: .625rem .75rem .625rem 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); }
.days thead th { border-top: 0; font-weight: 400; color: var(--quiet); }
.days tbody th { font-weight: 600; white-space: nowrap; }
.days .num { text-align: right; padding-right: 0; white-space: nowrap; }
.steps { counter-reset: s; max-width: 40rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: .875rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); font-weight: 600; }
.defs { border-bottom: 1px solid var(--line); }
.defs > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .25rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 600; }
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.guide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: .75rem; }
.reviews li + li { margin-top: 2rem; }
.psec__photo { margin-top: 1.5rem; }
.psec__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }

/* ---------- final band, ladder, sources, footer ---------- */

.final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding: clamp(1.75rem, 3vw, 2.5rem) var(--gutter); background: var(--pine); color: var(--paper); --focus: var(--paper); }
.final h2 { font-size: clamp(3.5rem, 7.8vw, 7rem); }
.final .promise { color: #C9D2CA; }      /* 6.2:1 on pine */

.ladder, .sourcebox { padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 0; }
.sourcebox { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ladder h2, .sourcebox h2 { font-size: clamp(2.75rem, 5.6vw, 5rem); }
.nexts { margin-top: 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; max-width: 60rem; }
.next { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.2fr); gap: .25rem 1.5rem; align-items: baseline; padding: .875rem 0; border-top: 1px solid var(--line); text-decoration: none; }
.next__label { font-size: var(--t-small); color: var(--quiet); }
.next__name { font-size: var(--d-mid); line-height: 1; }
.next__line { font-size: .9375rem; color: var(--quiet); }
.sourcebox details { margin-top: 1rem; border-bottom: 1px solid var(--line); max-width: 60rem; }
.sourcebox__body { max-width: 46rem; padding-bottom: 2rem; font-size: .9375rem; line-height: 1.5; }
.sourcebox__body h3 { margin: 1.75rem 0 .625rem; }
.sourcebox__body p + p { margin-top: .625rem; }
.sheetfacts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .125rem 1.5rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.sheetfacts dt, .sheetfacts span, .links span { color: var(--quiet); }
.sheetfacts { margin: .75rem 0; border-bottom: 1px solid var(--line); }
.links li + li { margin-top: .5rem; }
.links a { font-weight: 600; overflow-wrap: anywhere; }
.links span::before { content: "— "; }

.foot { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom)); border-top: 2px solid var(--mist); }
.foot h2 { font-size: 3rem; line-height: 1; }
.foot__regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 1rem; font-size: .9375rem; }
.foot h3 a, .foot li a { display: inline-flex; align-items: center; min-height: 2rem; text-decoration: none; }
.foot li span { color: var(--quiet); white-space: nowrap; font-size: var(--t-small); }
.foot li a[aria-current] { font-weight: 600; }
@media (hover: hover) { .foot a:hover { text-decoration: underline; text-underline-offset: .3em; } }
.foot__brand { justify-self: end; max-width: 16rem; color: var(--quiet); font-size: var(--t-small); }
.foot__brand img { width: 7.5rem; transform: rotate(-5deg); margin-bottom: 1rem; }
.foot__legal { grid-column: 1 / -1; display: grid; gap: .5rem; font-size: var(--t-small); color: var(--quiet); }

.dock { display: none; }

/* ---------- program h1: the name line (query words) over the narrative line ---------- */

.h1__name { display: block; margin-bottom: .12em; font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1; color: var(--pine); letter-spacing: .005em; }
.h1__line { display: block; }

/* ---------- related programs, region reading ---------- */

.ladder__more { margin: 1.75rem 0 .5rem; }
.sibs { display: grid; gap: .25rem; max-width: 60rem; }
.sibs li { padding: .25rem 0; }
.sibs a { font-weight: 600; text-underline-offset: .25em; }
.sibs span { color: var(--quiet); font-size: .9375rem; }
.ladder .tlink { margin-top: .75rem; }
.reads { display: grid; gap: 1.25rem; max-width: 46rem; }
.reads a { font-weight: 600; font-size: 1.125rem; text-underline-offset: .25em; }
.reads p { margin-top: .25rem; color: var(--quiet); font-size: .9375rem; }

/* ---------- guides: an editorial column, 60–70 characters ---------- */

.art { max-width: calc(42rem + 2 * var(--gutter)); padding: 1rem var(--gutter) clamp(3rem, 6vw, 5rem); margin-inline: auto 0; margin-left: 0; }
.art h1 { font-size: clamp(3rem, 6.4vw, 5.5rem); line-height: .88; margin-top: .25rem; }
.art--index h1 { font-size: clamp(4rem, 9vw, 8rem); }
.art__lead { margin-top: 1.25rem; font-size: var(--t-lead); line-height: 1.5; }
.art > .note { margin-top: .75rem; }
.art__photo { margin-top: 1.75rem; }
.art__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; background: var(--mist); }
.art__photo figcaption { margin-top: .5rem; }
.art section { margin-top: 2.5rem; }
.art h2 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: .95; margin-bottom: .875rem; }
.art p + p { margin-top: .875rem; }
.art section > p, .art .dots { max-width: 42rem; }
.dots { margin-top: .875rem; padding-left: 1.25rem; list-style: disc; }
.dots li + li { margin-top: .375rem; }
.art__table { margin-top: 1rem; overflow-x: auto; }
.art__table .days { min-width: 32rem; }
.art__next .nexts { max-width: none; }
.art__act { margin-top: 2rem; }
.art__act .promise { max-width: 28rem; }
.art__src .links { font-size: .9375rem; }
.reads__group { margin-top: 2.5rem; }
.reads__group h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.reads__group h2 a { text-decoration: none; }
.nf .sibs { margin: 1rem 0 2rem; }
.nf h2 { margin-top: 2.5rem; }

/* ---------- contact chooser: a popover by the button on desktop, a bottom sheet on phones ---------- */

.chooser { position: fixed; inset: auto; margin: 0; z-index: 30; width: min(23rem, calc(100vw - 2rem)); padding: 0; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; }
.chooser::backdrop { background: rgb(20 25 21 / .5); }
.chooser__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem .5rem .25rem 1rem; }
.chooser__title { font-weight: 600; }
.chooser__close { min-height: 2.75rem; padding: 0 .75rem; font: inherit; font-size: .9375rem; color: inherit; background: none; border: 0; border-radius: 4px; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.chooser__list { padding: 0 .5rem .5rem; }
.chooser__item { display: grid; gap: .125rem; min-height: 3.5rem; padding: .625rem .5rem; text-decoration: none; border-top: 1px solid var(--line); }
li:first-child > .chooser__item { border-top: 0; }
.chooser__name { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.chooser__note { font-size: var(--t-small); line-height: 1.35; color: var(--quiet); }
.chooser__dev { display: block; font-style: normal; color: var(--ink); }
@media (hover: hover) { .chooser__item:hover { background: rgb(20 25 21 / .07); } .chooser__item:hover .chooser__name { text-decoration-thickness: 2px; } }
.mast__tg { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }

/* ---------- inquiry form ---------- */

.psec--form .inq { max-width: 40rem; }
.inq { margin-top: 2.5rem; max-width: 40rem; }
.psec--form .inq { margin-top: 0; }
h3.inq__title { font-size: var(--t-h3); line-height: 1.2; }
.inq__lead { margin-top: .75rem; }
.inq__nojs { margin-top: .75rem; }
.js .inq__nojs { display: none; }
html:not(.js) .inq--offline .inq__form, html:not(.js) .inq--offline .inq__direct { display: none; }
.inq__form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: .375rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { font-weight: 600; padding: 0; }
.field__opt { font-weight: 400; color: var(--quiet); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .625rem .75rem; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 6px;
}
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23141915' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .875rem center; }
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field__msg { font-size: var(--t-small); line-height: 1.4; color: var(--quiet); }
.field__msg:empty { display: none; }
.field.is-error .field__msg { color: #A3361B; font-weight: 600; }      /* 6.4:1 on paper */
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: #A3361B; border-width: 2px; }
.field legend { margin-bottom: .375rem; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 .875rem; font-size: .9375rem; border: 1.5px solid var(--ink); border-radius: 6px; cursor: pointer; transition: background-color .12s ease, color .12s ease; }
.opt input:checked + span { background: var(--ink); color: var(--paper); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: .625rem; align-items: start; }
.check input { width: 1.25rem; height: 1.25rem; margin: .1875rem 0 0; accent-color: var(--ink); }
.check label { font-weight: 400; }
.check a { text-underline-offset: .2em; }
.inq__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq__act { margin-top: .25rem; }
.inq__submit { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.inq__submit[aria-disabled="true"] { cursor: progress; }
.inq__status:focus { outline: none; }
.inq__status > :not([hidden]) { margin-top: 1.25rem; }
.inq__ok { font-size: var(--t-h3); line-height: 1.3; }
.inq__fail { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inq__links { margin-top: .5rem; font-weight: 600; }
.inq__links, .inq__direct, .composer__send, .sheet__write { line-height: 2.75rem; }     /* 44 px rows for the inline links */
.inq__links a, .inq__direct a, .composer__send a, .sheet__write a { padding-block: .625rem; text-underline-offset: .25em; }
.inq__direct { margin-top: 1.25rem; color: var(--quiet); }
.inq__direct a { color: var(--ink); }
.composer__send { margin-top: .25rem; }
.composer__send a { font-weight: 600; }
.sheet__write { display: block; font-weight: 400; }

/* ---------- the request form as a modal (desktop: a centred panel; phones: a full-height sheet) ---------- */

.inq-modal { width: min(44rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0 0 2rem; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; }
.inq-modal::backdrop { background: rgb(20 25 21 / .55); }
.inq-modal__bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: .5rem .5rem 0; background: var(--paper); }
.inq-modal .inq { margin: 0; padding: 0 clamp(1.25rem, 4vw, 2.5rem); max-width: none; }
.inq-modal h2.inq__title { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: .9; }
html.is-locked, html.is-locked body { overflow: hidden; }
.inq-page .inq { margin-top: 0; }
.inq-page h1.inq__title { font-size: clamp(3.25rem, 7.8vw, 6rem); line-height: .85; }
.inq__done { padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inq__done > p:first-child { font-size: var(--t-lead); line-height: 1.4; }
.toast { position: fixed; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom)); z-index: 40; max-width: min(28rem, calc(100vw - 2rem)); padding: .75rem 1rem; color: var(--paper); background: var(--ink); border-radius: 6px; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- privacy ---------- */

.legal__main { max-width: 46rem; padding: 1rem var(--gutter) clamp(3rem, 6vw, 5rem); }
.legal__main h1 { font-size: clamp(3.25rem, 7.8vw, 6rem); line-height: .85; hyphens: manual; }
.legal__main { max-width: 60rem; }
.legal__main section, .legal__draft { max-width: 46rem; }
.legal__draft { margin-top: 1rem; }
.legal__main section { margin-top: 2.25rem; }
.legal__main h2 { font-size: clamp(2.25rem, 4vw, 3rem); line-height: .95; margin-bottom: .75rem; }
.legal__main p + p { margin-top: .75rem; }
mark.owner { background: var(--mist); color: var(--ink); padding: 0 .25rem; border-radius: 2px; }

/* ---------- motion: the line draws once, the dot becomes the sun; nothing else moves ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hline__way { animation: draw-x .6s var(--ease-out) both; }
  .hline__sun, .wl__hour, .wl__num { animation: appear .24s ease .5s both; }
  .wl__line { stroke-dasharray: 1; animation: draw-path .6s var(--ease-out) both; }
  .sun { transition: transform .6s var(--ease-out); }
}
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-path { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes appear { from { opacity: 0; } }

/* the wide plan and the wide hero line need room for their labels */
@media (min-width: 80rem) {
  .plan-wide { display: block; }
  .pf--narrow, .plan--narrow { display: none; }
}

/* ---------- below 1200: the hero's region strip gets the full width, so its line and its words both have room ---------- */

@media (max-width: 74.99rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero__panel { max-width: 36rem; }
  .entries__scale, .entries a { grid-template-columns: 10.625rem minmax(0, 1fr) minmax(12rem, 16rem); }
}

/* ---------- below 1024 ---------- */

@media (max-width: 63.99rem) {
  :root { --mast: 3.5rem; }
  .mast { gap: .25rem .75rem; }
  .mast__nav, .mast__tg { display: none; }
  .mast__lang { margin-left: auto; }
  .mast__lang [aria-current] { display: none; }     /* phones show only the other language */
  .mast__menu { display: inline-flex; }
  .hero h1 { font-size: clamp(4.5rem, 20.5vw, 11rem); line-height: .8; }
  .hero--region h1 { font-size: clamp(3.75rem, 17vw, 8rem); line-height: .84; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; margin-top: 1.5rem; }
  .hero__act { display: none; }                     /* on phones the docked bar is the action */
  .hero__panel .promise { display: none; }
  .hline__sun { width: 2.5rem; height: 2.5rem; }
  .hline__way { flex-basis: 86%; }
  .entries__scale { display: none; }
  .entries a { grid-template-columns: 7.5rem minmax(0, 1fr); gap: .125rem 1rem; padding: .375rem 0; border-top: 1px solid var(--line); }
  .entries__name { font-size: 2.75rem; }
  .entries .axis { display: none; }
  .entries__range { font-size: .9375rem; }
  .cat__cols { display: none; }
  /* phones and tablets: the row stacks, so the length, the line and the effort each get a full line */
  .row, .row--wide { grid-template-columns: 4.5rem minmax(0, 1fr) auto; grid-template-areas: "img hour price" "len len len" "axis axis axis" "hard hard hard"; align-items: start; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
  .row--wide { grid-template-areas: "img hour price" "len len len" "axis axis axis" "a a a" "b b b"; }
  .row__img { grid-area: img; width: 4.5rem; height: 3.375rem; }
  .row__hour { grid-area: hour; } .row__price { grid-area: price; font-size: 2.25rem; }
  .row__len { grid-area: len; display: flex; flex-wrap: wrap; align-items: baseline; gap: .125rem .75rem; }
  .row__way { font-size: 2.25rem; }
  .row__dist { margin-top: 0; }
  .row .axis { grid-area: axis; max-width: 30rem; }
  .row__hard { grid-area: hard; } .row__a { grid-area: a; } .row__b { grid-area: b; }
  .row__a::before, .row__b::before { content: attr(data-label) ": "; font-weight: 600; }
  .hour { display: flex; flex-direction: column; }      /* phone order as in B-Mobile: headline, the line, photo, text */
  .crumbs { order: 1; } .hour h1 { order: 2; } .hour__line { order: 3; } .hour__photo { order: 4; } .hour__panel { order: 5; }
  .hour h1 { font-size: clamp(3.75rem, 19vw, 8rem); line-height: .84; max-width: none; }
  .hour__line { margin: .5rem calc(-1 * var(--gutter)) 0; }
  .wl--wide { display: none; }
  .wl--narrow { display: block; max-width: 34rem; }
  .wl--narrow .wl__label { font-size: 13px; }
  .hour__photo { margin-top: .75rem; }
  .hour__photo img { aspect-ratio: 3 / 2; }
  .hour__photo figcaption { text-align: left; }
  .hour__panel { margin-top: 1.125rem; }
  .hour__act .btn, .hour__panel .promise { display: none; }
  .hour__decision { font-size: var(--t-body); }
  .scene, .scene--text { display: block; padding: 1.75rem var(--gutter) 1.5rem; }
  .big { font-size: clamp(6rem, 33vw, 12rem); }
  .big--word { font-size: clamp(3.5rem, 17vw, 7rem); }
  .scene__rule { width: 88%; }
  .scene__text { padding-top: 1rem; }
  .scene__text h3 { font-size: 1.5rem; line-height: 1.2; }
  .scene__media { margin-top: 1.25rem; }
  .scene__media img { aspect-ratio: 3 / 2; }
  .scene__media figcaption { text-align: left; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__brand { justify-self: start; }
  .next { grid-template-columns: minmax(0, 1fr); }
  body { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: 5rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)) var(--gutter); background: var(--pine); color: var(--paper);
    transition: transform .24s var(--ease-out); --focus: var(--paper);
  }
  .dock.is-away { transform: translateY(110%); }
  .inq-modal { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding-bottom: calc(2rem + env(safe-area-inset-bottom)); }
  .inq-modal .inq { padding: 0 var(--gutter); }
  .chooser:modal { inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85dvh; overflow: auto; border-width: 0; border-radius: 6px 6px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .chooser__bar { padding: .75rem .75rem .25rem var(--gutter); }
  .chooser__list { padding: 0 .75rem 1rem calc(var(--gutter) - .5rem); }
  .chooser__item { min-height: 4rem; }
  .dock__info { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .3em; text-decoration-thickness: 1px; }
  .dock .btn { min-height: 3.25rem; min-width: 11.5rem; }
  .dock--single .btn { width: 100%; }
}

@media (max-width: 40rem) {
  .mast { padding-inline: 1rem; gap: .25rem .5rem; }
  .mast__menu { padding: 0 .75rem; }
  .mast__brand { gap: .5rem; }
  .fit, .incl, .foot__regions { grid-template-columns: minmax(0, 1fr); }
  .sheetfacts > div, .defs > div { grid-template-columns: minmax(0, 1fr); }
  .qa > p { padding-right: 0; }
  .composer__label { min-width: 100%; }
  .way__name { grid-template-columns: minmax(0, 1fr); }
  .final .btn { width: 100%; }
  .final__act { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .sun { transform: none; }
}
@media (forced-colors: active) { .btn, .chip { border: 1px solid ButtonText; } }
