/* =========================================================================
   Taska & Tadika PAC
   A page set on Montessori materials: pink tower, wooden shelf, ten-bead
   blue, unit-bead green, golden beads, red rods. Each section owns one
   material colour; the page ground flows between them as you scroll.
   ========================================================================= */

/* Fonts are served from the site itself (Latin subset, SIL Open Font License) */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(lexend-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: 'Playwrite GB S';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url(playwrite-gb-s.woff2) format('woff2');
}

/* Registered so theme changes animate everywhere they are used */
@property --ground { syntax: '<color>'; inherits: true; initial-value: #F3B5C3; }
@property --fg { syntax: '<color>'; inherits: true; initial-value: #1B1F3B; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #1E4FA3; }
@property --accent-fg { syntax: '<color>'; inherits: true; initial-value: #FFF7EA; }
@property --focus { syntax: '<color>'; inherits: true; initial-value: #1E4FA3; }

:root {
  /* Material palette */
  --pink: #F3B5C3;
  --pink-deep: #D2577A;
  --beech: #EAD7B7;
  --blue: #1E4FA3;
  --green: #1F6E47;
  --gold: #F1B53A;
  --amber: #B7791F;
  --red: #C8361F;
  --red-ink: #A82A17;
  --brown: #6B4226;
  --ink: #1B1F3B;
  --milk: #FFF7EA;
  --paper: #FFFDF6;
  --rule: #C3D3EF;

  /* Type */
  --font: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --hand: 'Playwrite GB S', 'Segoe Print', cursive;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 16px;
  --nav-h: 72px;

  /* Derived */
  --fg-2: color-mix(in oklab, var(--fg) 84%, var(--ground));
  --line: color-mix(in oklab, var(--fg) 26%, transparent);
  --shadow-ink: color-mix(in oklab, var(--ink) 55%, transparent);
}

html[data-theme='pink']  { --ground: var(--pink);  --fg: var(--ink);  --accent: var(--blue);  --accent-fg: var(--milk); --focus: var(--blue); }
html[data-theme='beech'] { --ground: var(--beech); --fg: var(--ink);  --accent: var(--red);   --accent-fg: var(--milk); --focus: var(--blue); }
html[data-theme='blue']  { --ground: var(--blue);  --fg: var(--milk); --accent: var(--gold);  --accent-fg: var(--ink);  --focus: var(--gold); }
html[data-theme='green'] { --ground: var(--green); --fg: var(--milk); --accent: var(--pink);  --accent-fg: var(--ink);  --focus: var(--gold); }
html[data-theme='gold']  { --ground: var(--gold);  --fg: var(--ink);  --accent: var(--blue);  --accent-fg: var(--milk); --focus: var(--blue); }
html[data-theme='red']   { --ground: var(--red);   --fg: var(--milk); --accent: var(--gold);  --accent-fg: var(--ink);  --focus: var(--milk); }
html[data-theme='ink']   { --ground: var(--ink);   --fg: var(--milk); --accent: var(--pink);  --accent-fg: var(--ink);  --focus: var(--gold); }

html {
  transition: --ground .8s var(--ease-in-out), --fg .6s var(--ease-in-out), --accent .6s var(--ease-in-out), --accent-fg .6s var(--ease-in-out), --focus .6s;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  touch-action: manipulation;
  scrollbar-color: color-mix(in oklab, var(--fg) 45%, transparent) transparent;
  scrollbar-width: thin;
}

/* Lenis (from lenis/dist/lenis.css, kept local so the CSP stays tight) */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--ground);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2.5px; }

::selection { background: var(--accent); color: var(--accent-fg); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h2 {
  font-size: clamp(2.35rem, 5.2vw, 4.6rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }

.hand { font-family: var(--hand); font-weight: 350; letter-spacing: 0; line-height: 1.5; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: .7em 1.1em; border-radius: 999px;
  background: var(--ink); color: var(--milk); font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Reveal gating: hidden only until main.js takes over; a failsafe shows it if scripts never run */
.motion:not(.ready) [data-reveal],
.motion:not(.ready) [data-movable],
.motion:not(.ready) [data-lines],
.motion:not(.ready) [data-words] { visibility: hidden; animation: pac-failsafe 0s 2.5s forwards; }
@keyframes pac-failsafe { to { visibility: visible; } }

/* ---------- Stage (WebGL) ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.stage canvas { width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.stage.is-live canvas { opacity: 1; }
.stage.is-static { position: absolute; inset: 0 0 auto; height: 100svh; }
main, .foot { position: relative; z-index: 1; }

/* ---------- Scroll progress as a number rod ---------- */
.rodbar {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 5px;
  display: flex; pointer-events: none;
}
.rodbar span { position: relative; flex: 1; overflow: hidden; }
.rodbar span::after {
  content: ''; position: absolute; inset: 0;
  transform: scaleX(var(--f, 0)); transform-origin: left;
}
.rodbar span:nth-child(odd)::after { background: var(--red); }
.rodbar span:nth-child(even)::after { background: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: 0 12px 26px -14px var(--shadow-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .85em 1.35em;
  border: 0; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn__icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease-out); }
.btn:hover .btn__icon { transform: translate(2px, -2px); }
.btn--accent {
  background: var(--accent); color: var(--accent-fg);
  box-shadow: var(--btn-shadow), inset 0 1px 0 color-mix(in oklab, white 30%, transparent);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px var(--shadow-ink), inset 0 1px 0 color-mix(in oklab, white 30%, transparent); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: color-mix(in oklab, var(--fg) 10%, transparent); }
.btn--text { background: none; padding-inline: .4em; color: inherit; text-decoration: underline; text-underline-offset: .25em; min-height: 44px; }
.btn--small { min-height: 40px; padding: .6em 1.05em; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h); padding: 0 var(--gutter);
  color: var(--fg);
  transition: transform .45s var(--ease-out), background-color .4s;
}
.nav.is-scrolled { background: color-mix(in oklab, var(--ground) 94%, transparent); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.nav__mark { width: 34px; height: 34px; fill: currentColor; }
.nav__name { display: grid; font-weight: 800; font-size: 1.3rem; line-height: .95; letter-spacing: -0.02em; }
.nav__name small { font-weight: 500; font-size: .7rem; letter-spacing: .01em; }
.nav__links { display: flex; gap: .25rem; }
.nav__links a {
  position: relative; padding: .5em .75em; border-radius: 999px;
  font-weight: 500; font-size: .95rem; text-decoration: none;
  transition: background-color .2s;
}
.nav__links a:hover { background: color-mix(in oklab, var(--fg) 10%, transparent); }
.nav__links a[aria-current='true'] { background: color-mix(in oklab, var(--fg) 14%, transparent); }
.nav__toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem 0 .7rem;
  border: 0; border-radius: 999px; background: color-mix(in oklab, var(--fg) 10%, transparent);
  font-weight: 600;
}
.nav__toggle-bars { display: grid; gap: 5px; width: 18px; }
.nav__toggle-bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease-out); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars i:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-bars i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem;
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  background: var(--ground); color: var(--fg);
  overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: .25rem; }
.menu a { text-decoration: none; }
.menu li a { display: inline-block; font-size: clamp(2.2rem, 10vw, 3.5rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; }
.menu__foot { display: grid; gap: .4rem; font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--nav-h) + 4vh) 0 clamp(5rem, 12vh, 8rem);
}
.hero__grid { position: relative; }
.hero__copy { max-width: min(46rem, 58%); }
.hero__title { margin: 0; font-weight: inherit; }
.hero__display {
  display: block;
  font-size: clamp(3.3rem, 8.2vw, 6rem);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.hero__display .mv-c { color: var(--blue); }
.hero__display .mv-v { color: var(--red-ink); }
.hero__kicker {
  display: block; max-width: 34ch; margin-top: 1.4rem;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem); font-weight: 560; line-height: 1.35; letter-spacing: -0.01em;
}
.hero__lede { max-width: 44ch; margin-top: 1.1rem; font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--fg-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__note {
  position: absolute; right: 1%; top: 30vh;
  width: 13.5rem; font-size: .92rem; color: var(--ink);
  transform: rotate(-3deg);
}
html:not(.has-scene) .hero__note { display: none; }
.areas:not(.is-pinned) .areas__hint { display: none; }
.hero__arrow { width: 7rem; margin: .5rem 0 0 1rem; transform: scaleX(-1); fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1080px) and (min-width: 761px) { .hero__note { display: none; } }

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.6rem; padding: .5rem .95rem .5rem .75rem; border-radius: 999px;
  background: color-mix(in oklab, var(--milk) 55%, transparent);
  font-size: .92rem; font-weight: 500;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--fg-2); flex: none; }
.status[data-state='open'] .status__dot { background: #1E8A4F; box-shadow: 0 0 0 0 color-mix(in oklab, #1E8A4F 55%, transparent); animation: pac-pulse 2.2s var(--ease-out) 4; }
.status[data-state='closed'] .status__dot { background: var(--red-ink); }
@keyframes pac-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.scrollcue {
  position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0;
  display: grid; place-items: center; width: 44px; height: 64px; border-radius: 999px;
}
.scrollcue__rod {
  width: 8px; height: 40px; border-radius: 4px;
  background: linear-gradient(var(--red) 0 33.3%, var(--blue) 0 66.6%, var(--red) 0);
  animation: pac-cue 2.4s var(--ease-in-out) 3;
}
@keyframes pac-cue { 0%, 100% { transform: translateY(-4px); } 50% { transform: translateY(6px); } }

/* ---------- Approach (pinned word swap) ---------- */
.approach__pin { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--nav-h) + 2rem) 0 3rem; }
.approach__inner { display: grid; gap: clamp(2rem, 5vh, 3.5rem); }
.approach__title { font-size: inherit; letter-spacing: normal; line-height: normal; }
.approach__lead { display: block; font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 500; letter-spacing: -0.02em; }
.swap { display: grid; margin-top: .3rem; }
.swap__word {
  display: block;
  font-size: clamp(2.8rem, 7.2vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
}
.swap__word:nth-child(1) { color: var(--red-ink); }
.swap__word:nth-child(2) { color: var(--blue); }
.swap__word:nth-child(3) { color: var(--green); }
.swap__word:nth-child(4) { color: var(--brown); }
.approach.is-live .swap { overflow: clip; padding-bottom: .12em; }
.approach.is-live .swap__word { grid-area: 1 / 1; }

.aims { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; max-width: 72rem; }
.aims__item { display: grid; gap: .7rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--line); transition: border-color .4s; }
.aims__item p { font-size: .98rem; max-width: 30ch; }
.aims__dot { width: 14px; height: 14px; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--fg); transition: background-color .3s, transform .4s var(--ease-out); }
.approach.is-live .aims__item.is-on { border-color: var(--fg); }
.approach.is-live .aims__item.is-on .aims__dot { background: var(--pink-deep); box-shadow: none; transform: rotate(45deg); }
.approach__quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; }
.approach__quote p { font-family: var(--hand); font-size: clamp(1.05rem, 1.6vw, 1.35rem); }
.approach__quote footer { font-size: .9rem; color: var(--fg-2); }
.approach__after { padding: clamp(5rem, 16vh, 10rem) 0 clamp(4rem, 12vh, 8rem); }
.approach__inclusion {
  max-width: 30ch; margin-left: auto;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem); font-weight: 520; line-height: 1.22; letter-spacing: -0.02em;
}

/* ---------- Programmes ---------- */
.rooms { padding: clamp(6rem, 16vh, 10rem) 0; }
.rooms__head { display: grid; gap: 1rem; max-width: 46rem; }
.rooms__head p { font-size: 1.15rem; color: var(--fg-2); }

.rod { position: relative; max-width: 920px; margin: clamp(4.5rem, 9vh, 6rem) 0 2.5rem; }
.rod__track {
  display: grid; grid-template-columns: repeat(10, 1fr);
  height: 58px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 18px 30px -18px rgba(5, 12, 40, .7), inset 0 -4px 0 rgba(0, 0, 0, .12);
}
.rod__track span {
  display: grid; place-items: center;
  font-weight: 650; font-size: .95rem; color: var(--milk);
  background: var(--red);
  transition: opacity .35s var(--ease-out), filter .35s;
}
.rod__track span:nth-child(even) { background: #2E62C2; }
.rod__track span.is-off { background: color-mix(in oklab, var(--milk) 13%, var(--blue)); color: color-mix(in oklab, var(--milk) 82%, var(--blue)); }
.rod__input {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 58px; margin: 0;
  opacity: 0; cursor: grab; -webkit-appearance: none; appearance: none;
}
.rod__input:active { cursor: grabbing; }
.rod:has(.rod__input:focus-visible) .rod__track { outline: 3px solid var(--focus); outline-offset: 4px; }
.rod__thumb {
  --k: 2;
  position: absolute; bottom: calc(100% + 12px);
  left: calc((var(--k) + .5) / 10 * 100%);
  translate: -50% 0;
  display: grid; justify-items: center; padding: .45rem .8rem .5rem; border-radius: 12px;
  background: var(--milk); color: var(--ink); line-height: 1;
  box-shadow: 0 12px 20px -12px rgba(5, 12, 40, .7);
  transition: left .35s var(--ease-out);
  pointer-events: none;
}
.rod__thumb::after { content: ''; position: absolute; top: 100%; left: 50%; translate: -50% -1px; border: 7px solid transparent; border-top-color: var(--milk); }
.rod__thumb-age { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rod__thumb small { font-size: .72rem; font-weight: 500; margin-top: .2rem; }

.room {
  display: grid; grid-template-columns: 5fr 6fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--milk); color: var(--ink);
  box-shadow: 0 40px 70px -40px rgba(5, 12, 40, .75);
}
.room__media { position: relative; min-height: 340px; background: color-mix(in oklab, var(--blue) 12%, var(--milk)); overflow: hidden; }
.room__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.room__body { display: grid; align-content: center; gap: .9rem; padding: clamp(1.6rem, 4vw, 3rem); }
.room__title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 760; letter-spacing: -0.03em; }
.room__ages { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-weight: 560; font-size: 1.05rem; }
.room__tag { padding: .25em .7em; border-radius: 999px; background: var(--blue); color: var(--milk); font-size: .85rem; font-weight: 650; }
.room__text { color: color-mix(in oklab, var(--ink) 86%, var(--milk)); max-width: 52ch; }
.room__list { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1.4rem; margin-top: .4rem; font-size: .97rem; }
.room__list li { position: relative; padding-left: 1.2rem; }
.room__list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--red); }
.room__list li:nth-child(even)::before { background: var(--blue); }

.care { margin-top: clamp(3rem, 7vh, 4.5rem); display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.care__title { font-size: clamp(1.25rem, 1.9vw, 1.6rem); max-width: 18ch; }
.care__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.care__list li { display: grid; gap: .25rem; padding-top: .9rem; border-top: 2px solid var(--line); }
.care__list strong { font-size: 1.1rem; }
.care__list span { color: var(--fg-2); font-size: .97rem; }

/* ---------- Curriculum (horizontal shelf) ---------- */
.areas { position: relative; }
.areas__pin { position: relative; }
.areas__track {
  display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem);
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.areas.is-pinned .areas__pin { height: 100svh; overflow: hidden; }
.areas.is-pinned .areas__track { height: 100%; width: max-content; overflow: visible; scroll-snap-type: none; padding-right: 22vw; }
.areas__intro { flex: none; width: min(36rem, 82vw); display: grid; gap: 1.2rem; scroll-snap-align: start; }
.areas__intro p { font-size: 1.12rem; max-width: 40ch; color: var(--fg-2); }
.areas__hint { font-size: .95rem; }
.area {
  flex: none; width: clamp(280px, 27vw, 380px);
  display: grid; gap: .85rem; align-content: start;
  scroll-snap-align: center;
}
.area:nth-of-type(even) { margin-top: 9vh; }
.area:nth-of-type(odd) { margin-bottom: 7vh; }
.area__glyph { width: 76px; height: 76px; overflow: visible; }
.area__photo { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: color-mix(in oklab, var(--milk) 14%, var(--green)); box-shadow: 0 26px 40px -26px rgba(0, 20, 10, .8); }
.area__photo img { width: 112%; max-width: none; height: 100%; object-fit: cover; }
.area h3 { font-size: 1.65rem; margin-top: .35rem; }
.area p { font-size: .98rem; }
.area__seen { padding-top: .7rem; border-top: 1px solid var(--line); font-size: .9rem !important; color: var(--fg-2); }
.area__seen span { display: block; font-weight: 650; color: var(--fg); }

.g-line { fill: none; stroke: var(--milk); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-ink { stroke: color-mix(in oklab, var(--brown) 70%, transparent); stroke-width: .8; }
.g-fill { stroke: none; }
.g-pink { fill: #F6C3CF; } .g-pink2 { fill: #E995A9; }
.g-gold { fill: var(--gold); } .g-blue { fill: #3B70D0; } .g-red { fill: #E0533A; }
.g-milk { fill: var(--milk); } .g-green2 { fill: #8FD3A8; } .g-brown { fill: #B07A4F; }
.g-letter { fill: var(--milk); font: 800 64px/1 var(--font); }

.ribbon { overflow: hidden; padding: 2.4rem 0 5rem; }
.ribbon__row { display: flex; width: max-content; gap: 2.4rem; will-change: transform; }
.ribbon__row span {
  display: inline-flex; align-items: center; gap: 2.4rem;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem); font-weight: 760; letter-spacing: -0.03em; white-space: nowrap;
}
.ribbon__row span::after { content: ''; width: .42em; height: .42em; border-radius: 50%; background: var(--gold); box-shadow: inset -3px -4px 0 rgba(120, 70, 0, .3); }

/* ---------- Archive (charts + moments) ---------- */
.archive { padding: clamp(6rem, 16vh, 10rem) 0; }
.archive__head { display: grid; gap: 1.1rem; max-width: 52rem; }
.archive__head p { font-size: clamp(1.1rem, 1.5vw, 1.3rem); max-width: 48ch; }
.charts { display: grid; grid-template-columns: 7fr 5fr; gap: 1.25rem; margin-top: 3.5rem; }
.chart {
  position: relative;
  display: grid; gap: 1rem; align-content: start;
  padding: clamp(1.1rem, 2.2vw, 1.75rem);
  border-radius: var(--radius);
  background: #FFF4DA; color: var(--ink);
  box-shadow: 0 30px 50px -34px rgba(70, 12, 0, .75);
}
.chart h3 { font-size: 1.15rem; }
.chart__hint { font-size: .88rem; color: color-mix(in oklab, var(--ink) 80%, #FFF4DA); }
.chart__plot { position: relative; }
.chart__plot svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 12px; fill: color-mix(in oklab, var(--ink) 80%, #FFF4DA); font-variant-numeric: tabular-nums; }
.chart .axis line, .chart .grid line { stroke: color-mix(in oklab, var(--ink) 16%, transparent); stroke-width: 1; }
.chart .crosshair { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; transition: opacity .15s; }
.chart .bar-hit { fill: transparent; cursor: pointer; outline: none; }
.chart .bar-hit:focus-visible { fill: color-mix(in oklab, var(--ink) 8%, transparent); stroke: var(--blue); stroke-width: 2; }
.chart .ring-seg:focus-visible { outline: none; stroke: var(--ink); stroke-width: 4; }
.chart .seg { transition: opacity .3s var(--ease-out); }
.chart .is-dim { opacity: .18; }
.chart .ring-seg { cursor: pointer; transition: opacity .3s var(--ease-out); }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ring-center strong { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-center span { font-size: .9rem; margin-top: .3rem; }
.legend { display: flex; flex-wrap: wrap; gap: .4rem; }
.legend button {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 34px;
  padding: .3rem .75rem .3rem .55rem; border: 0; border-radius: 999px;
  background: color-mix(in oklab, var(--ink) 7%, transparent); color: var(--ink);
  font-size: .85rem; font-weight: 550;
  transition: background-color .2s, opacity .2s;
}
.legend button:hover { background: color-mix(in oklab, var(--ink) 12%, transparent); }
.legend button[aria-pressed='true'] { background: var(--ink); color: var(--milk); }
.legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.archive__source { margin-top: 1rem; font-size: .85rem; color: var(--fg-2); }

.tip {
  position: fixed; left: 0; top: 0; z-index: 80;
  min-width: 170px; padding: .7rem .85rem; border-radius: 12px;
  background: var(--ink); color: var(--milk);
  font-size: .85rem; line-height: 1.45;
  box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6);
  pointer-events: none; opacity: 0; transform: translate3d(0, 0, 0) scale(.96);
  transition: opacity .15s, transform .15s var(--ease-out);
}
.tip.is-on { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.tip b { display: block; font-weight: 700; margin-bottom: .25rem; font-size: .92rem; }
.tip .row { display: flex; align-items: center; gap: .5rem; justify-content: space-between; font-variant-numeric: tabular-nums; }
.tip .row i { width: 9px; height: 9px; border-radius: 2px; background: var(--c); margin-right: .35rem; display: inline-block; }

.moments { position: relative; margin-top: clamp(5rem, 12vh, 8rem); }
.moments__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.moments__hint { margin: .35rem 0 1.25rem; font-size: .95rem; color: var(--fg-2); }
.moments__list { border-bottom: 1px solid var(--line); }
.moment { border-top: 1px solid var(--line); }
.moment__open {
  display: grid; grid-template-columns: 1fr auto 7.5rem auto; gap: 1rem; align-items: center;
  width: 100%; padding: 1.05rem .25rem; border: 0; border-radius: 6px;
  background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer; outline-offset: -3px; -webkit-tap-highlight-color: transparent;
}
.moment__name { font-size: clamp(1.15rem, 2.1vw, 1.7rem); font-weight: 620; letter-spacing: -0.02em; transition: transform .45s var(--ease-out); }
.moment__theme { font-size: .9rem; font-weight: 500; }
.moment__year { font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.moment__go {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color .25s, color .25s, transform .35s var(--ease-out);
}
.moment__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.moment__open:hover .moment__name, .moment__open:focus-visible .moment__name { transform: translateX(14px); }
.moment__open:hover .moment__go, .moment__open:focus-visible .moment__go { background: var(--fg); color: var(--ground); transform: translateX(4px); }
.moment__open:active .moment__go { transform: scale(.92); }
.moment__thumb { display: none; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4 / 3;
  border-radius: 14px; overflow: hidden; pointer-events: none;
  box-shadow: 0 30px 50px -24px rgba(40, 20, 0, .7);
  opacity: 0; visibility: hidden;
}
.peek img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Album viewer ---------- */
.album {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--ink); color: var(--milk);
  overscroll-behavior: contain;
}
.album[open] { display: grid; }
.album::backdrop { background: transparent; }
html.album-open { overflow: hidden; }
.album__bar {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: clamp(1rem, 2.5vh, 1.5rem) var(--gutter) .5rem;
}
.album__title { font-size: clamp(1.35rem, 2.8vw, 2.2rem); font-weight: 760; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
.album__sub { margin-top: .35rem; font-size: .92rem; color: color-mix(in oklab, var(--milk) 80%, var(--ink)); }
.album__close, .album__nav {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; color: var(--milk);
  background: color-mix(in oklab, var(--milk) 14%, transparent);
  transition: background-color .2s, transform .2s var(--ease-out);
}
.album__close:hover, .album__nav:hover { background: color-mix(in oklab, var(--milk) 24%, transparent); }
.album__close:active, .album__nav:active { transform: scale(.94); }
.album__close svg, .album__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.album :focus-visible { outline-color: var(--gold); }
.album__stage {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem);
  min-height: 0; padding: .5rem var(--gutter); touch-action: pan-y;
}
.album__figure { height: 100%; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.album__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  user-select: none; -webkit-user-drag: none;
}
.album__foot { display: grid; gap: .75rem; padding: .5rem var(--gutter) clamp(1rem, 3vh, 1.75rem); }
.album__caption { font-size: .95rem; text-align: center; }
.album__count { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: .4rem; }
.album__thumbs { display: flex; gap: .5rem; justify-content: center; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.album__thumbs button {
  flex: none; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: color-mix(in oklab, var(--milk) 10%, transparent); opacity: .55;
  transition: opacity .2s, box-shadow .2s;
}
.album__thumbs button:hover { opacity: .85; }
.album__thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }
.album__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.album__text { max-width: 60ch; margin-inline: auto; font-size: .95rem; text-align: center; color: color-mix(in oklab, var(--milk) 84%, var(--ink)); }
.album__next { justify-self: center; }

/* ---------- Hours ---------- */
.day { padding: clamp(6rem, 16vh, 10rem) 0; }
.day__grid { display: grid; gap: clamp(3rem, 7vh, 4.5rem); }
.day__head { display: grid; gap: 1.1rem; max-width: 44rem; }
.day__head p { font-size: 1.12rem; max-width: 42ch; }
.day__small { font-size: .95rem !important; color: var(--fg-2); }
.chart--week { background: transparent; box-shadow: none; padding: 0; color: var(--ink); }
.chart--week text { fill: color-mix(in oklab, var(--ink) 84%, var(--gold)); font-size: 13px; }
.chart--week .day-label { fill: var(--ink); font-weight: 650; font-size: 14px; }
.chart--week .axis line { stroke: color-mix(in oklab, var(--ink) 22%, transparent); }
.chart--week .slot { fill: color-mix(in oklab, var(--ink) 10%, transparent); }
.chart--week .open { fill: var(--ink); }
.chart--week .open.is-today { fill: var(--blue); }
.chart--week .row-hit { fill: transparent; cursor: default; }
.chart--week .now { stroke: var(--red-ink); stroke-width: 2.5; }
.chart--week .now-dot { fill: var(--red-ink); }
.chart--week .now-label { fill: var(--milk); font-weight: 700; font-size: 12px; }
.chart--week .now-pill { fill: var(--red-ink); }
.chart--week .closed-label { fill: color-mix(in oklab, var(--ink) 84%, var(--gold)); font-size: 13px; }

/* ---------- Visit ---------- */
.visit { padding: clamp(6rem, 16vh, 10rem) 0 clamp(7rem, 18vh, 12rem); }
.visit__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.visit__info { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--nav-h) + 2rem); }
.visit__info > p { font-size: 1.15rem; max-width: 38ch; }
.contact { display: grid; gap: 1rem; margin-top: 1rem; }
.contact div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.contact dt { font-weight: 650; font-size: .95rem; }
.contact dd { font-size: 1rem; }
.map { display: grid; gap: .8rem; justify-items: start; margin-top: 1rem; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: 0 24px 40px -28px var(--shadow-ink); }
.map__link { font-weight: 550; font-size: .95rem; }

.book { perspective: 1400px; }
.book__page {
  --line-h: 2.4rem;
  position: relative;
  display: grid; gap: 1.1rem;
  padding: 2.6rem clamp(1.4rem, 3vw, 2.6rem) 2.4rem clamp(3.6rem, 6vw, 4.6rem);
  border-radius: 6px 16px 16px 6px;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(clamp(2.6rem, 4.6vw, 3.4rem) - 1px), #E77C70 calc(clamp(2.6rem, 4.6vw, 3.4rem) - 1px), #E77C70 calc(clamp(2.6rem, 4.6vw, 3.4rem) + 1px), transparent calc(clamp(2.6rem, 4.6vw, 3.4rem) + 1px)),
    repeating-linear-gradient(transparent 0 calc(var(--line-h) - 1px), var(--rule) calc(var(--line-h) - 1px) var(--line-h));
  background-position: 0 0, 0 1.6rem;
  box-shadow: 0 50px 80px -50px rgba(60, 35, 10, .75), inset 10px 0 18px -14px rgba(60, 35, 10, .35);
  transform-origin: left center;
}
.book__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
.field { display: grid; gap: .35rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; padding: 0; }
.optional { font-weight: 400; color: color-mix(in oklab, var(--ink) 75%, var(--paper)); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem;
  border: 0; border-radius: 10px;
  background: color-mix(in oklab, var(--beech) 30%, var(--paper));
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 30%, transparent);
  font-size: 1rem; color: var(--ink);
  transition: box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 55%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2.5px var(--blue); background: var(--paper); }
.field [aria-invalid='true'] { box-shadow: inset 0 0 0 2.5px var(--red-ink); }
.field__err { min-height: 0; font-size: .85rem; font-weight: 550; color: var(--red-ink); }
.field__err:empty { display: none; }
.field--checks { display: flex; flex-wrap: wrap; gap: .45rem; }
.field--checks legend { margin-bottom: .45rem; float: left; width: 100%; }
.check { position: relative; display: inline-flex; }
.check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .9rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink) 35%, transparent);
  background: var(--paper); font-size: .92rem; font-weight: 500;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.check input:hover + span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.check input:checked + span { background: var(--blue); color: var(--milk); box-shadow: none; }
.check input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.book__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .4rem; }
.book .btn--accent { background: var(--red); color: var(--milk); }
.book__status { font-size: .92rem; font-weight: 550; }
.book__status:empty { display: none; }
.book__status.is-error { color: var(--red-ink); }

/* ---------- Footer ---------- */
.foot { padding: clamp(4rem, 10vh, 7rem) 0 2rem; color: var(--fg); overflow: hidden; }
.foot__mark {
  display: flex; gap: .02em;
  font-size: clamp(7rem, 29vw, 25rem); font-weight: 800; line-height: .78; letter-spacing: -0.04em;
  color: var(--pink); margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.foot__mark span { display: inline-block; }
.foot__mark span:nth-child(2) { color: var(--gold); }
.foot__mark span:nth-child(3) { color: #6E95E0; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.foot__h { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: .6rem; line-height: 1.3; }
.foot__cols p { font-size: .95rem; color: var(--fg-2); }
.foot__base { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; justify-content: space-between; margin-top: 3.5rem; font-size: .88rem; color: var(--fg-2); }
.foot__base p a { margin-right: 1.2rem; }
.foot__top { font-weight: 600; color: var(--fg); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-items: center; padding: 4rem 0; }
.lost .wrap { display: grid; gap: 1.2rem; justify-items: start; }
.lost__tower { width: 120px; height: 120px; fill: var(--pink-deep); }
.lost__tower rect:nth-child(3) { fill: var(--red); }
.lost__title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; line-height: 1; letter-spacing: -0.035em; max-width: 16ch; text-wrap: balance; }
.lost__text { font-size: 1.15rem; max-width: 44ch; color: var(--fg-2); }
.lost__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .6rem; }

/* ---------- Motion toggle (WCAG 2.2.2: pause anything that moves on its own) ---------- */
.motion-toggle {
  position: fixed; left: 14px; bottom: 14px; z-index: 55;
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .85rem .45rem .6rem;
  border: 0; border-radius: 999px;
  background: color-mix(in oklab, var(--ground) 82%, var(--fg)); color: var(--fg);
  font-size: .82rem; font-weight: 600;
  box-shadow: 0 10px 22px -14px var(--shadow-ink);
  transition: background-color .2s, transform .2s var(--ease-out);
}
.motion-toggle:hover { background: color-mix(in oklab, var(--ground) 70%, var(--fg)); }
.motion-toggle:active { transform: scale(.96); }
.motion-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.motion-toggle .i-play { display: none; }
.motion-toggle[aria-pressed='true'] .i-play { display: block; }
.motion-toggle[aria-pressed='true'] .i-pause { display: none; }
.still .motion-toggle { display: none; }
.paused .status__dot, .paused .scrollcue__rod { animation: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .aims { grid-template-columns: repeat(2, 1fr); }
  .charts { grid-template-columns: 1fr; }
  .visit__grid { grid-template-columns: 1fr; }
  .visit__info { position: static; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .care { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  body { font-size: 1rem; }
  .nav { gap: .6rem; }
  .nav__cta { display: none; }
  .hero { align-items: end; padding-bottom: 5.5rem; }
  .hero__copy { max-width: none; padding-top: 38svh; }
  .hero__note { right: auto; left: 0; top: calc(var(--nav-h) + 1rem); bottom: auto; width: 11rem; font-size: .8rem; }
  .hero__arrow { width: 5rem; margin-left: 5rem; transform: none; }
  .hero__actions .btn { flex: 1 1 auto; }
  .aims { grid-template-columns: 1fr; gap: .4rem; }
  .aims__item { grid-template-columns: auto 1fr; align-items: start; gap: .8rem; padding-top: .7rem; }
  .aims__dot { margin-top: .35rem; }
  .approach.is-live .aims__item:not(.is-on) { display: none; }
  .approach__inclusion { margin-left: 0; }
  .rod__track { height: 50px; }
  .rod__input { height: 50px; }
  .rod__track span { font-size: .78rem; }
  .room { grid-template-columns: 1fr; }
  .room__media { min-height: 0; aspect-ratio: 4 / 3; }
  .room__list { grid-template-columns: 1fr; }
  .care__list { grid-template-columns: 1fr; gap: .8rem; }
  .area { width: 78vw; }
  .area:nth-of-type(even) { margin-top: 4vh; }
  .area:nth-of-type(odd) { margin-bottom: 3vh; }
  .moment__open { grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; column-gap: .9rem; row-gap: .1rem; align-items: center; }
  .moment__thumb { display: block; grid-row: span 2; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
  .moment__theme, .moment__year { grid-column: 2; text-align: left; font-size: .85rem; }
  .moment__year { display: none; }
  .moment__go { grid-column: 3; grid-row: 1 / span 2; }
  .album__stage { position: relative; grid-template-columns: minmax(0, 1fr); padding-inline: 12px; }
  .album__nav { position: absolute; top: 50%; z-index: 1; translate: 0 -50%; background: color-mix(in oklab, var(--ink) 60%, transparent); }
  .album__nav--prev { left: 18px; }
  .album__nav--next { right: 18px; }
  .album__thumbs { justify-content: flex-start; }
  .album__thumbs button { width: 52px; height: 40px; }
  .contact div { grid-template-columns: 1fr; gap: .2rem; }
  .foot__cols { grid-template-columns: 1fr; }
  .motion-toggle { padding: 0; width: 40px; justify-content: center; }
  .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (hover: none) {
  .peek { display: none; }
  .moment__open:hover .moment__name { transform: none; }
  .moment__open:hover .moment__go { background: none; color: inherit; transform: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ribbon__row { flex-wrap: wrap; width: auto; padding-inline: var(--gutter); }
  .ribbon__row span:nth-child(n + 7) { display: none; }
}
