/* Avondale redesign. One idea: the blue gingham of the uniform is the site's
   fabric. It is the giant shape, the band, the bullets, the stair on every
   picture's corners and the blocks of the footer. */
:root {
  /* The five theme colours (inc/themes.php) arrive as --navy, --gold, --sage,
     --rust and --cream. Everything here is worked out from them in the browser,
     so choosing a theme, or previewing one in the editor, re-skins the page. */
  --ground: var(--cream);
  --white: #ffffff;
  --ink: color-mix(in oklab, var(--navy) 55%, #000);        /* words */
  --blue: color-mix(in oklab, var(--navy) 72%, #fff);       /* the uniform */
  --blue-mid: color-mix(in oklab, var(--navy) 35%, #fff);
  --tone-2: color-mix(in oklab, var(--navy) 80%, #000);
  --tone-3: color-mix(in oklab, var(--sage) 85%, #000);
  --tone-4: color-mix(in oklab, var(--rust) 82%, #000);
  --accent: var(--gold);
  --gut: clamp(16px, 2.2vw, 32px);
  --step: clamp(16px, 2vw, 30px); /* one check of the corner stair */
  --ease: cubic-bezier(.23, 1, .32, 1);
  --t-small: 14px;
  --t-body: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --t-lead: clamp(1.25rem, 1.1rem + .7vw, 1.625rem);
  --t-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --t-display: clamp(2.6rem, 5.5vw, 5.75rem);
  --gap: clamp(96px, 12vw, 200px);
  /* The weave: four flat squares, in the theme's colours. taste-skill-ignore */
  --cloth: conic-gradient(var(--blue-mid) 25%, #fff 0 50%, var(--blue-mid) 0 75%, var(--blue) 0);
}
/* Pages hand over to each other instead of blinking. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .26s var(--ease) both vt-out; }
::view-transition-new(root) { animation: .42s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.box-open { overflow: hidden; }
body { background: var(--ground); color: var(--ink); font: 400 var(--t-body)/1.5 "Albert Sans", system-ui, sans-serif; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: var(--t-display); margin-bottom: 32px; }
h2 { font-size: var(--t-head); }
h3 { font-size: var(--t-lead); letter-spacing: -.02em; line-height: 1.15; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: var(--t-lead); line-height: 1.32; }
.wrap { padding-inline: var(--gut); }
.sec { padding: var(--sec-pad-t, var(--gap)) var(--gut) var(--sec-pad-b, 0); }
.sec--first { padding-top: clamp(24px, 4vw, 56px); }
.foot-gap { height: var(--gap); }

.gingham { background-color: #fff; background-image: var(--cloth); background-size: calc(var(--check, 96px) * 2) calc(var(--check, 96px) * 2); }
.shape {
  clip-path: polygon(calc(var(--step) * 2) 0, 100% 0, 100% calc(100% - var(--step) * 2), calc(100% - var(--step)) calc(100% - var(--step) * 2),
    calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - var(--step) * 2) calc(100% - var(--step)), calc(100% - var(--step) * 2) 100%,
    0 100%, 0 calc(var(--step) * 2), var(--step) calc(var(--step) * 2), var(--step) var(--step), calc(var(--step) * 2) var(--step));
}
.par { overflow: hidden; }
.par img { width: 100%; height: 100%; object-fit: cover; }
.par__img { will-change: transform; transform: scale(1.16); }

/* Pressed the moment the finger lands, not when it lifts. */
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); font: 600 var(--t-body)/1 "Albert Sans", sans-serif;
  padding: 18px 26px; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .28s var(--ease), background-color .16s ease;
}
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.cta .btn--line { box-shadow: inset 0 0 0 2px var(--accent-ink); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background-color: color-mix(in oklab, var(--accent) 82%, #fff); transform: translateY(-2px); }
  .btn--ink:hover { background-color: color-mix(in oklab, var(--ink) 86%, #fff); }
  .btn--line:hover { background-color: var(--ink); color: #fff; }
  .btn:active { transform: scale(.96); }
}

/* ---- Bar ---- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; z-index: 40; pointer-events: none; }
[hidden] { display: none !important; }
.bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px var(--gut); height: 84px; background: var(--ground); transition: transform .42s var(--ease); }
.bar.is-away { transform: translateY(-100%); }
.bar__mark span { max-width: 11em; }
.bar__mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; margin-right: auto; }
.bar__mark img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.bar__toggle { display: none; }
.bar__nav { display: flex; gap: clamp(14px, 1.8vw, 28px); }
.bar__nav a { text-decoration: none; font-weight: 500; position: relative; }
.bar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.bar__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .bar__nav a:hover::after { transform: scaleX(1); } }
.bar__apply { padding: 14px 22px; }

/* ---- Home: the picture grows out of the cloth ---- */
.pinhero__stage { position: relative; min-height: calc(100svh - 84px); display: grid; grid-template-columns: 56% 44%; overflow: hidden; }
.pinhero.is-live { height: 260svh; }
.pinhero.is-live .pinhero__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.hero__copy { align-self: center; padding: 32px var(--gut) 40px; position: relative; z-index: 2; will-change: transform, opacity; }
.hero__copy .hero__sub { font-size: var(--t-lead); line-height: 1.32; max-width: 30em; margin-bottom: 28px; }
.hero__badge { font-weight: 600; margin-bottom: 12px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
.tiles:not(:has(.hero__meta-item)) { display: none; }
.top__copy > .btn + .tiles, .top__copy .hero__actions + .tiles { margin-top: 28px; }
.top__copy .tiles + .btn { margin-top: 28px; }
.hero__meta-item { font-size: var(--t-small); line-height: 1.3; }
.hero__meta-item strong { display: block; font-size: var(--t-body); font-weight: 600; }
.hero__side, .top__side { position: relative; display: flex; align-items: center; padding: clamp(20px, 3.5vw, 56px) var(--gut) clamp(20px, 3.5vw, 56px) clamp(20px, 3.5vw, 56px); }
.hero__cloth { --check: clamp(56px, 7vw, 120px); position: absolute; inset: 0; will-change: transform; transform-origin: 70% 50%; }
.top__cloth { --check: clamp(52px, 6.4vw, 110px); position: absolute; inset: 0; }
.hero__window { position: relative; z-index: 2; width: 100%; overflow: hidden; --step: clamp(28px, 3.4vw, 56px); }
.hero__window img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.pinhero.is-live .hero__window img { visibility: hidden; }
.hero__full { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; will-change: clip-path; }
.hero__full img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.hero__end { display: none; }
.pinhero.is-live .hero__end { display: block; position: absolute; z-index: 4; left: var(--gut); bottom: var(--gut); background: var(--ink); color: #fff; padding: clamp(24px, 3vw, 48px); max-width: min(92vw, 720px); opacity: 0; will-change: transform, opacity; }
.hero__more { position: absolute; z-index: 5; right: var(--gut); bottom: var(--gut); display: none; align-items: center; gap: 12px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); font: 600 var(--t-body)/1 "Albert Sans", sans-serif; padding: 16px 20px; opacity: 0; transition: transform .28s var(--ease); }
.hero__more:active { transform: scale(.96); transition-duration: .08s; }
.pinhero.is-live .hero__more { display: inline-flex; }
.hero__more i { display: block; width: 10px; height: 10px; margin-top: -4px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); animation: more-bob 1.5s var(--ease) infinite; }
@keyframes more-bob { 50% { translate: 0 5px; } }
.hero__end h2 { color: #fff; }
.hero__end p { margin-top: 12px; }

/* ---- Inner page openings ---- */
.top { position: relative; overflow: hidden; display: grid; grid-template-columns: 56% 44%; min-height: calc(82svh - 84px); }
.top__copy { position: relative; z-index: 2; align-self: center; padding: var(--hero-pad-t, 40px) var(--gut) var(--hero-pad-b, 72px); }
.top__copy .hero__sub { font-size: var(--t-lead); line-height: 1.32; max-width: 30em; }
.top__copy > .btn, .top__copy .hero__actions { margin-top: 32px; }
.top__pic--high img { object-position: var(--pic-pos, 50% 30%); }
.top__pic { position: relative; z-index: 2; width: 100%; aspect-ratio: var(--pic-ratio, 4/3); --step: clamp(24px, 3vw, 48px); animation: shutter 1.1s var(--ease) .1s both; }
@keyframes shutter { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---- Words ---- */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; }
.js:not(.rm) .split .wi { transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms + var(--d, 0ms) * .4); }
.js:not(.rm) .split.is-in .wi { transform: none; }
.js:not(.rm):not(.editing) .split:not(.is-split) { visibility: hidden; }
.say { padding: var(--sec-pad-t, var(--gap)) var(--gut) var(--sec-pad-b, var(--gap)); }
.say p, .say blockquote { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 500; line-height: 1.32; letter-spacing: -.02em; max-width: 34em; margin-inline: auto; }
.lw { transition: opacity .18s linear; }
.say__cite { display: block; font-style: normal; text-align: center; margin-top: 20px; font-weight: 500; }

/* ---- Family panel ---- */
.family { margin: 0 var(--gut); background: var(--ink); color: #fff; display: grid; grid-template-columns: 54% 46%; overflow: hidden; }
.family__left { padding: clamp(32px, 4vw, 56px); padding-bottom: 0; }
.family h2 { color: #fff; max-width: 11em; margin-bottom: clamp(32px, 4vw, 64px); }
.family__photo { aspect-ratio: 4/3; margin-bottom: -6vw; --step: clamp(24px, 3vw, 48px); }
.family__right { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: clamp(32px, 3.4vw, 56px); align-items: flex-start; justify-content: center; }
.family__right h3 { color: var(--accent); margin-bottom: 12px; }

/* ---- Age finder ---- */
.age { display: grid; grid-template-columns: 42% 58%; margin-top: var(--gap); align-items: stretch; }
.age__list { padding: 0 var(--gut); align-self: center; }
.age__hint { font-size: var(--t-lead); line-height: 1.3; margin: 24px 0 32px; max-width: 22em; }
.age__picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 500px; }
.age__picks button { aspect-ratio: 1; border: 0; background: var(--white); color: var(--ink); cursor: pointer; font: 600 clamp(1.25rem, 2vw, 1.75rem)/1 "Albert Sans", sans-serif; letter-spacing: -.02em; transition: background-color .18s ease, color .18s ease, transform .28s var(--ease); }
.age__picks button:active { transform: scale(.92); transition-duration: .08s; }
.age__picks button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .age__picks button:hover:not([aria-checked="true"]) { background: var(--blue-mid); } }
.age__cloth { --check: clamp(44px, 5vw, 84px); padding: clamp(40px, 6vw, 96px) var(--gut) clamp(40px, 6vw, 96px) clamp(40px, 6vw, 96px); }
.age__card { background: #fff; padding: clamp(32px, 4vw, 64px); --step: clamp(20px, 2.4vw, 40px); min-height: 620px; }
.age__result { display: flex; flex-direction: column; align-items: flex-start; min-height: 100%; }
.age__result + .age__result { margin-top: 48px; }
.js .age__result:not(.is-on) { display: none; }
.js .age__result + .age__result { margin-top: 0; }
.age__class { font-size: var(--t-head); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.age__line { font-size: var(--t-lead); margin: 8px 0 32px; }
.age__card { display: grid; }
.age__card h3 { margin-bottom: 6px; }
.age__card h3 + p { margin-bottom: 24px; max-width: 34em; }
.age__card .btn { margin-top: auto; }
.is-swap > * { animation: swap .44s var(--ease) both; }
.is-swap > *:nth-child(2) { animation-delay: 30ms; } .is-swap > *:nth-child(3) { animation-delay: 60ms; } .is-swap > *:nth-child(4) { animation-delay: 90ms; }
.is-swap > *:nth-child(5) { animation-delay: 120ms; } .is-swap > *:nth-child(6) { animation-delay: 150ms; }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.band { --check: clamp(28px, 3.2vw, 48px); height: calc(var(--check) * 4); margin-top: var(--gap); }

/* ---- Chapters: the picture holds while the words pass ---- */
.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); padding: var(--sec-pad-t, var(--gap)) var(--gut) var(--sec-pad-b, 0); align-items: start; }
.chapters__stage { position: sticky; top: clamp(20px, 10svh, 96px); aspect-ratio: 1; max-height: 80svh; width: 100%; overflow: hidden; --step: clamp(24px, 3vw, 48px); background: var(--blue-mid); }
.chapters__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity .7s ease, transform 1.2s var(--ease); }
.chapters__stage img.is-on { opacity: 1; transform: none; }
.chapters__intro { margin-bottom: 12svh; }
.chapter__pic { display: none; }
.chapter__stage { font-weight: 600; margin-bottom: 10px; font-size: var(--t-body) !important; }
.chapter { position: relative; min-height: 62svh; display: flex; flex-direction: column; justify-content: center; transition: opacity .5s ease, transform .7s var(--ease); }
.js:not(.rm) .chapter:not(.is-here) { opacity: .42; transform: translateY(10px); }
.chapter h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 16px; line-height: 1.04; }
.chapter p { font-size: var(--t-lead); line-height: 1.34; max-width: 26em; }
.chapter ul { margin-top: 16px; }
.chapter li, .ticklist li { position: relative; padding-left: 30px; margin-top: 8px; }
.chapter li::before, .ticklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; background-image: var(--cloth); background-size: 18px 18px; }

/* ---- Walk: a row walked sideways by the scroll ---- */
.walk { padding-top: var(--gap); }
.walk__stage { padding-bottom: 16px; }
.walk__head { padding: 0 var(--gut); margin-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.walk__tools { display: flex; flex-wrap: wrap; gap: 8px; }
.walk__ctl { border: 0; background: #fff; color: var(--ink); cursor: pointer; font: 600 var(--t-body)/1 "Albert Sans", sans-serif; padding: 18px 22px; transition: background-color .18s ease, color .18s ease, opacity .18s ease, transform .28s var(--ease); }
.walk__ctl:active { transform: scale(.94); transition-duration: .08s; }
.walk__ctl:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .walk__ctl:hover:not(:disabled) { background: var(--ink); color: #fff; } }
.walk__track { display: flex; gap: 12px; padding: 0 var(--gut); scroll-padding-inline: var(--gut); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.walk__track::-webkit-scrollbar { display: none; }
.walk__track.is-dragging { cursor: grabbing; user-select: none; }
.walk__item { flex: 0 0 min(44svh, 72vw); scroll-snap-align: start; }
.walk__item figure { height: min(55svh, 90vw); overflow: hidden; --step: clamp(20px, 2.6vw, 40px); }
.walk__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; will-change: transform; transform: scale(1.14); }
.walk__item figcaption, .caption { margin-top: 12px; font-size: var(--t-small); font-weight: 500; }
.walk__bar { height: 6px; background: #fff; margin: 28px var(--gut) 0; }
.walk__bar i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

/* ---- Deck: pictures that step back as the next arrives ---- */
.deck { padding: var(--sec-pad-t, var(--gap)) var(--gut) var(--sec-pad-b, 0); }
.deck__card { position: sticky; top: 7svh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; margin-bottom: 7svh; min-height: 78svh; transform-origin: 50% 0; will-change: transform; }
.deck__card:nth-of-type(2n) { background: var(--ink); color: #fff; }
.deck__card:nth-of-type(2n) h3, .deck__card:nth-of-type(2n) h2 { color: var(--accent); }
.deck__card:nth-of-type(3n) { background: var(--accent); color: var(--accent-ink); }
.deck__card:nth-of-type(3n) h3, .deck__card:nth-of-type(3n) h2 { color: var(--accent-ink); }
.deck__card:nth-of-type(3n) .btn--ink { background: var(--ink); color: #fff; }
.deck__head { margin-bottom: 48px; }
.deck__text { padding: clamp(28px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px; }
.deck__text h2, .deck__text h3 { font-size: clamp(1.75rem, 1rem + 2.6vw, 3.25rem); letter-spacing: -.03em; line-height: 1.04; }
.deck__pic { position: relative; overflow: hidden; min-height: 300px; }
.deck__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--pic-fit, cover); }

/* ---- Lists ---- */
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 40px; }
.head p { font-size: var(--t-lead); white-space: nowrap; }
.head--next { margin-top: clamp(128px, 10vw, 160px); }
.menu { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.menu li { position: relative; padding-left: 52px; }
.menu li::before, .clubs li::before { content: ""; position: absolute; left: 0; top: .1em; width: 32px; height: 32px; background-image: var(--cloth); background-size: 32px 32px; }
.menu h3 { margin-bottom: 4px; }
.clubs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; font-size: var(--t-lead); font-weight: 500; letter-spacing: -.02em; }
.clubs li { position: relative; padding-left: 34px; }
.clubs li::before { width: 22px; height: 22px; top: .22em; background-size: 22px 22px; }

/* ---- Split: words beside a picture ---- */
.split2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split2--flip > :first-child { order: 2; }
.split2 h2 { margin-bottom: 24px; }
.split2 p { margin-bottom: 18px; max-width: 36em; }
.split2 .btn { margin-top: 12px; }
.picbox { aspect-ratio: 4/3; --step: clamp(24px, 3vw, 48px); }
.picbox--tall { aspect-ratio: 4/5; }

/* ---- Wolves ---- */
.wolves { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.wolves__mark { width: 120px; height: auto; margin-bottom: 24px; --step: 10px; }
.wolves h2 { margin-bottom: 24px; }
.wolves__copy p { margin-bottom: 18px; max-width: 36em; }
.ticks { display: grid; gap: 16px; margin: 8px 0 8px; }
.ticks li { position: relative; }
.ticks h3 { font-size: var(--t-body); letter-spacing: 0; margin-bottom: 2px; }
.ticks p { margin: 0; }
.wolves__copy .btn { margin-top: 12px; }
.wolves__frame { max-width: 460px; width: 100%; justify-self: end; }
.frame { position: relative; aspect-ratio: 4/5; overflow: hidden; --step: clamp(24px, 3vw, 48px); background: var(--blue-mid); cursor: pointer; }
.frame .slot { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.frame img { object-position: var(--pic-pos, 50% 25%); }
.frame .slot.is-on { opacity: 1; }
.caption:not(.is-on) { display: none; }

/* ---- Full-width picture that arrives ---- */
.front__pic { height: 100%; }
.front { margin: var(--gap) var(--gut) 0; position: relative; aspect-ratio: 16/9; max-height: 92svh; width: calc(100% - var(--gut) * 2); overflow: hidden; will-change: transform; }
.front__tag { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; padding: clamp(18px, 2.4vw, 36px); max-width: 80%; }
.front__tag h2 { color: #fff; font-size: clamp(1.5rem, 1rem + 2.2vw, 3rem); }

/* ---- Steps ---- */
.twin { display: grid; grid-template-columns: 5fr 1fr 6fr; margin-bottom: 64px; align-items: end; }
.twin h2 { grid-column: 1; }
.twin p { grid-column: 3; font-size: var(--t-lead); line-height: 1.32; }
.steps__row { display: flex; height: 440px; }
.step { flex: 0 0 96px; overflow: hidden; color: #fff; display: flex; transition: flex-basis .55s var(--ease), flex-grow .55s var(--ease); position: relative; }
.step.is-open { flex: 1 1 auto; }
.step:nth-child(1) { background: var(--ink); } .step:nth-child(2) { background: var(--tone-2); } .step:nth-child(3) { background: var(--tone-3); }
.step:nth-child(4) { background: var(--blue-mid); color: var(--ink); }
.step button { flex: 0 0 96px; background: none; border: 0; color: inherit; cursor: pointer; padding: 28px 0; display: flex; align-items: flex-end; justify-content: center; font: 600 var(--t-lead)/1 "Albert Sans", sans-serif; letter-spacing: -.02em; }
.step button span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.step:focus-within button:focus-visible { outline-color: currentColor; outline-offset: -8px; }
.step.is-open button { position: absolute; left: 40px; top: 40px; padding: 0; height: auto; align-items: flex-start; font-size: var(--t-head); letter-spacing: -.035em; cursor: default; }
.step.is-open button span { writing-mode: horizontal-tb; transform: none; }
.step__body { flex: 1 1 auto; min-width: 0; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 24px; opacity: 0; visibility: hidden; transition: opacity .25s ease; }
.step.is-open .step__body { opacity: 1; visibility: visible; transition-delay: .2s; }
.step__body p { font-size: var(--t-lead); line-height: 1.32; max-width: 30em; }

/* ---- Tabs ---- */
.tabs { position: relative; display: inline-flex; background: #fff; padding: 6px; margin-bottom: 40px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs__pill { position: absolute; left: 0; top: 6px; bottom: 6px; background: var(--ink); will-change: transform, width; }
.tabs button { position: relative; z-index: 1; background: none; border: 0; cursor: pointer; font: 600 var(--t-body)/1 "Albert Sans", sans-serif; color: var(--ink); padding: 15px 22px; white-space: nowrap; transition: color .2s ease; }
.tabs button[aria-selected="true"] { color: #fff; background: var(--ink); }
.tabs.is-moving button[aria-selected="true"] { background: none; }
.subjects { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px 40px; }
.subjects li h3 { margin-bottom: 6px; }

/* ---- Facts ---- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts--3 { grid-template-columns: repeat(3, 1fr); }
.facts--5 { grid-template-columns: repeat(5, 1fr); }
.facts--5 .fact { min-height: 180px; }
.facts--text .fact b { font-size: var(--t-lead); letter-spacing: -.02em; line-height: 1.15; }
.grid > * { grid-column: span var(--card-span, 1); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.trio figure { aspect-ratio: 4/3; overflow: hidden; --step: clamp(16px, 2vw, 32px); }
.trio img { width: 100%; height: 100%; object-fit: cover; }
.fact span { overflow-wrap: anywhere; }
.facts--words .fact b { font-size: clamp(1.5rem, .9rem + 1.5vw, 2.5rem); }
.fact { position: relative; min-width: 0; background: var(--ink); color: #fff; padding: var(--card-pad, clamp(20px, 2.4vw, 36px)); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.fact:nth-child(2) { background: var(--tone-2); } .fact:nth-child(3) { background: var(--tone-3); } .fact:nth-child(4) { background: var(--accent); color: var(--accent-ink); } .fact:nth-child(5) { background: var(--tone-4); }
.fact a { color: inherit; text-underline-offset: 3px; }
.fact b { font-size: var(--t-head); font-weight: 600; letter-spacing: -.035em; line-height: 1; }

/* ---- Quote ---- */
.quote { font-size: var(--t-lead); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; max-width: 30em; margin-top: 24px; }
.quote cite { display: block; font: 500 var(--t-body) "Albert Sans", sans-serif; letter-spacing: 0; margin-top: 16px; }

/* ---- Values ---- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.value { --check: 22px; padding: 22px; aspect-ratio: 1; display: flex; }
.value div { background: #fff; flex: 1; padding: clamp(16px, 1.8vw, 28px); display: flex; flex-direction: column; justify-content: flex-end; --step: 16px; }
.value h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); letter-spacing: -.03em; }

/* ---- CTA ---- */
.cta { margin: var(--gap) var(--gut) 0; color: var(--accent-ink); background: var(--accent); padding: clamp(40px, 6vw, 96px); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 14em; }
.cta p { margin-top: 12px; font-size: var(--t-lead); max-width: 28em; }

/* ---- Map ---- */
.map { width: 100%; height: min(70svh, 560px); border: 0; display: block; }

/* ---- Reply slip ---- */
.visit { padding: var(--gap) var(--gut); }
.slip { background: var(--accent); color: var(--accent-ink); display: grid; grid-template-columns: 56% 44%; max-width: 1240px; margin-inline: auto; position: relative; overflow: hidden; }
.slip::before, .slip::after { content: ""; position: absolute; left: 56%; width: 32px; height: 32px; margin-left: -13px; border-radius: 50%; background: var(--ground); }
.slip::before { top: -16px; } .slip::after { bottom: -16px; }
.slip__left { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.slip h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); max-width: 12em; }
.slip__num { font-size: clamp(6rem, 15vw, 14rem); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.slip__left a { text-underline-offset: 3px; }
.slip__right { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 10px; justify-content: center; border-left: 5px dotted var(--ground); }
.slip input, .slip select { width: 100%; height: 56px; border: 0; background: color-mix(in oklab, var(--accent) 28%, #fff); color: var(--ink); font: 400 var(--t-body) "Albert Sans", sans-serif; padding: 0 18px; border-radius: 0; }
.slip ::placeholder { color: color-mix(in oklab, var(--ink) 74%, #fff); opacity: 1; }
.slip input:focus-visible, .slip select:focus-visible { outline-offset: -3px; }
.slip .btn { width: 100%; height: 60px; margin-top: 4px; }
.slip__trap { position: absolute; left: -9999px; }
.slip__note { font-weight: 600; min-height: 1.5em; }

/* ---- Gallery ---- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { border: 0; background: #fff; color: var(--ink); cursor: pointer; font: 600 var(--t-body)/1 "Albert Sans", sans-serif; padding: 15px 20px; transition: background-color .18s ease, color .18s ease, transform .28s var(--ease); }
.filters button:active { transform: scale(.95); transition-duration: .08s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .filters button:hover:not([aria-pressed="true"]) { background: var(--blue-mid); } }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 250px); grid-auto-flow: dense; gap: 12px; }
.shot { position: relative; will-change: transform; }
.shot--w { grid-column: span 2; grid-row: span 2; }
.shot--t { grid-row: span 2; }
.shot button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; box-sizing: border-box; }
.shot button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.shot figure { width: 100%; height: 100%; overflow: hidden; --step: clamp(14px, 1.6vw, 24px); position: relative; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
@media (hover: hover) and (pointer: fine) { .shot button:hover img { transform: scale(1.05); } }
.shot.is-lifted figure { visibility: hidden; }
.box { position: fixed; inset: 0; z-index: 100; touch-action: none; }
.box[hidden] { display: none; }
.box__scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--ink) 94%, transparent); opacity: 0; transition: opacity .3s ease; }
.box__stage { position: absolute; inset: 0; overflow: hidden; }
.box__img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 50% 50%; cursor: grab; user-select: none; will-change: transform; }
.box__img:active { cursor: grabbing; }
.box__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut); color: #fff; opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .5s var(--ease); pointer-events: none; }
.box.is-on .box__bar { opacity: 1; transform: none; pointer-events: auto; }
.box__cap { font-weight: 500; }
.box__ctl { display: flex; gap: 6px; }
.box button { border: 0; background: #fff; color: var(--ink); font: 600 var(--t-body)/1 "Albert Sans", sans-serif; padding: 14px 18px; cursor: pointer; transition: transform .28s var(--ease); }
.box button:active { transform: scale(.94); transition-duration: .08s; }

/* ---- Footer ---- */
.foot { background: var(--ink); color: #fff; padding: 56px var(--gut) 0; overflow: hidden; }
.foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.foot h4 { font-size: var(--t-body); font-weight: 600; margin-bottom: 12px; }
.foot__about p, .foot__contact p { margin-bottom: 10px; max-width: 30em; }
.foot__motto { font-weight: 500; }
.foot__social { display: flex; gap: 18px; margin-top: 14px; font-weight: 500; }
.foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: var(--t-small); padding-bottom: 40px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.blocks { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-items: end; height: 34svh; min-height: 200px; }
.blocks span::before { content: attr(data-l); }
.blocks span { display: flex; align-items: flex-end; justify-content: center; color: var(--ink); font-weight: 600; font-size: clamp(2.75rem, 11vw, 11rem); line-height: .86; padding-bottom: .04em; overflow: hidden; will-change: transform; }
.blocks span:nth-child(3n+1) { background: var(--blue); height: 100%; }
.blocks span:nth-child(3n+2) { background: var(--blue-mid); height: 72%; }
.blocks span:nth-child(3n) { background: #fff; height: 86%; }

/* ---- Entrances: visible unless the script has marked them as waiting ---- */
.js:not(.rm) .reveal, .js:not(.rm) .reveal-list > * { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js:not(.rm) .reveal.is-in, .js:not(.rm) .reveal-list > .is-in { opacity: 1; transform: none; }

/* ---- Tablet ---- */
@media (max-width: 1000px) {
  .pinhero__stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  h1 { font-size: clamp(2.6rem, 8.6vw, 4.5rem); }
  .hero__copy { padding: 28px var(--gut) 28px; align-self: start; }
  .hero__copy p { margin-bottom: 22px; }
  .hero__cloth { --check: 12vw; }
  .hero__side { padding: 8vw var(--gut) 8vw 12vw; }
  .top { grid-template-columns: 1fr; min-height: 0; }
  .top__copy { padding: 28px var(--gut) 40px; }
  .top__side { padding: 12vw var(--gut) 12vw 12vw; }
  .top__cloth { --check: 12vw; }
  .family { grid-template-columns: 1fr; }
  .family__left { display: contents; }
  .family h2 { order: -2; padding: 32px 32px 0; margin: 0; }
  .family__right { order: -1; padding-bottom: 0; }
  .family__photo { order: 2; width: 86%; margin: 32px auto -10vw; }
  .age { grid-template-columns: 1fr; gap: 40px; }
  .age__picks { max-width: none; }
  .age__cloth { padding: 40px var(--gut); }
  .age__card { min-height: 0; }
  .age__card .btn { margin-top: 8px; }
  .chapters { grid-template-columns: 1fr; }
  .chapters__stage { display: none; }
  .chapter__pic { display: block; aspect-ratio: 4/3; margin-bottom: 24px; overflow: hidden; --step: 24px; }
  .chapter__pic img { width: 100%; height: 100%; object-fit: cover; }
  .chapter { min-height: 0; justify-content: flex-start; margin-top: 64px; }
  .js:not(.rm) .chapter:not(.is-here) { opacity: 1; transform: none; }
  .chapters__intro { margin-bottom: 0; }
  .deck__card { grid-template-columns: 1fr; position: static; min-height: 0; margin-bottom: 12px; }
  .deck__pic { aspect-ratio: var(--pic-ratio, 4/3); min-height: 0; order: -1; }
  .twin { grid-template-columns: 1fr; gap: 20px; }
  .twin p { grid-column: 1; }
  .steps__row { flex-direction: column; height: auto; }
  .step, .step.is-open { flex: 0 0 auto; flex-direction: column; }
  .step button, .step.is-open button { position: static; flex: none; width: 100%; height: 64px; padding: 0 20px; justify-content: flex-start; align-items: center; font-size: var(--t-lead); letter-spacing: -.02em; }
  .step button span { writing-mode: horizontal-tb; transform: none; }
  .step__body { display: none; padding: 0 20px 28px; justify-content: flex-start; }
  .step.is-open .step__body { display: flex; }
  .wolves, .split2 { grid-template-columns: 1fr; }
  .split2--flip > :first-child { order: 0; }
  .wolves__frame { justify-self: start; }
  .clubs, .subjects { grid-template-columns: repeat(2, 1fr); }
  .facts, .values { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .facts--3 { grid-template-columns: 1fr; row-gap: 12px; }
  .trio { grid-template-columns: 1fr; }
  .facts--3 .fact { min-height: 0; }
  .facts--5 { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .duo, .trio-text { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 40vw; }
  .shot--w { grid-column: span 2; grid-row: span 2; }
  .front { aspect-ratio: 4/3; }
}
/* ---- The menu folds up before the links can wrap ---- */
@keyframes menu-in { from { opacity: 0; } }
@keyframes menu-link { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1140px) {
  .bar__toggle { display: block; margin-left: auto; border: 0; cursor: pointer; font: 600 var(--t-body) "Albert Sans", sans-serif; background: #fff; color: var(--ink); padding: 13px 16px; }
  .bar__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 84px); overflow-y: auto; flex-direction: column; gap: 4px; padding: 24px var(--gut); background: var(--ink); }
  .bar__nav.is-open { display: flex; animation: menu-in .36s var(--ease) both; }
  .bar__nav a { align-self: flex-start; padding: 10px 0; color: #fff; font-size: var(--t-lead); font-weight: 600; letter-spacing: -.02em; }
  .bar__nav a::after { background: var(--accent); }
  .bar__nav.is-open a { animation: menu-link .5s var(--ease) both; }
  .bar__nav.is-open a:nth-child(2) { animation-delay: .04s; }
  .bar__nav.is-open a:nth-child(3) { animation-delay: .08s; }
  .bar__nav.is-open a:nth-child(4) { animation-delay: .12s; }
  .bar__nav.is-open a:nth-child(5) { animation-delay: .16s; }
  .bar__nav.is-open a:nth-child(6) { animation-delay: .2s; }
  html.menu-open { overflow: hidden; }
  .bar__mark { margin-right: 0; }
}
/* ---- Phone: its own composition ---- */
@media (max-width: 640px) {
  .bar { gap: 12px; padding: 12px var(--gut); height: 68px; }
  .bar__nav { height: calc(100dvh - 68px); }
  .bar__mark img { width: 44px; height: 44px; }
  .bar__mark span { display: none; }
  .bar__apply { padding: 13px 16px; }
  .pinhero__stage { min-height: calc(100svh - 68px); }
  h1 { font-size: 11.2vw; margin-bottom: 18px; }
  .hero__copy { padding: 12px var(--gut) 20px; }
  .hero__copy .hero__sub, .top__copy .hero__sub { font-size: 1.125rem; }
  .hero__cloth { --check: 15vw; }
  .hero__side { padding: 15vw var(--gut) 15vw 15vw; }
  .say p { font-size: 1.5rem; }
  .family { margin: 0 10px; }
  .age__picks button { font-size: 1.25rem; }
  .menu, .subjects, .values { grid-template-columns: 1fr; gap: 28px; }
  .values { gap: 12px; }
  .value { aspect-ratio: auto; min-height: 150px; }
  .clubs { grid-template-columns: 1fr 1fr; gap: 16px; font-size: 1.125rem; }
  .slip { grid-template-columns: 1fr; }
  .slip::before, .slip::after { display: none; }
  .slip__right { border-left: 0; border-top: 5px dotted var(--ground); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .blocks { height: 22svh; min-height: 130px; }
  .blocks span { font-size: 11.5vw; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: visible; width: 100%; }
  .tabs__pill { display: none; }
  .tabs.is-moving button[aria-selected="true"] { background: var(--ink); }
  .tabs button { padding: 14px 8px; }
  .box__bar { flex-wrap: wrap; }
}
/* ---- Words and panels added for the school's full content ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duo__card { position: relative; background: #fff; padding: var(--card-pad, clamp(28px, 4vw, 56px)); }
.duo__card--ink { background: var(--ink); color: #fff; }
.duo__card--ink h3 { color: var(--accent); }
.duo__card h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 6px; }
.duo__tag { font-weight: 600; margin-bottom: 18px; }
.deck__text .duo__tag { margin-bottom: 0; }
.panel__tag { font-weight: 600; margin-bottom: 24px; }
.trio-text { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; margin-top: 48px; }
.trio-text > div { position: relative; }
.trio-text h3 { margin-bottom: 8px; }
.banner { background: #fff; padding: clamp(28px, 4vw, 56px); }
.banner h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 16px; }
.banner p { max-width: 44em; }
.parts__title { margin-bottom: 24px; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); letter-spacing: -.03em; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cta > div:first-child { flex: 1 1 340px; }
.quote blockquote { font: inherit; }
.quote cite { display: block; font: 500 var(--t-body) "Albert Sans", sans-serif; letter-spacing: 0; margin-top: 12px; }
.family .quote { margin-top: 0; }
.split2--even { align-items: start; grid-template-columns: 1fr 1fr; }
.sec > .lead + .tabs { margin-top: 0; }
.policy { max-width: 860px; margin-inline: auto; }
.policy__intro { margin-bottom: 40px; }
.policy__body h2 { font-size: clamp(1.4rem, 1rem + 1vw, 2rem); margin: 40px 0 12px; }
.policy__body p { margin-bottom: 16px; }
.policy__body ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.policy__body li { margin-bottom: 8px; }
.policy__body a { text-decoration: underline; }
.policy__date { margin-top: 40px; font-size: var(--t-small); }

/* ---- What the office adds in the editor (inc/widgets.php renders these) ---- */
.slot { position: relative; }
.slot img { width: 100%; height: 100%; object-fit: var(--pic-fit, cover); object-position: var(--pic-pos, center); }
[data-picture][style*="--pic-ratio"] { aspect-ratio: var(--pic-ratio); height: auto; }
.section.block { padding: var(--sec-pad-t, var(--gap)) var(--gut) var(--sec-pad-b, 0); }
.section-header { margin-bottom: 32px; }
.section-header h2 { margin-bottom: 16px; }
.block--text { margin-top: 16px; }
.subject-card, .card { position: relative; background: #fff; color: var(--ink); padding: var(--card-pad, 28px); }
.subject-card h4, .card h3 { margin: 12px 0 6px; font-size: var(--t-lead); font-weight: 600; letter-spacing: -.02em; }
.subject-card__emoji, .card__icon { color: var(--blue); display: block; line-height: 0; }
.quote-block { margin-top: 24px; }
.quote-block blockquote { font-size: var(--t-lead); font-weight: 500; line-height: 1.3; }
.quote-block cite { display: block; font-style: normal; margin-top: 12px; }
.block--heading { margin-top: 24px; }
.block--button { margin-top: 20px; }
.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--navy { background: var(--ink); color: #fff; }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.block--list { display: grid; gap: 8px; margin-top: 16px; }
.block--list li { display: flex; gap: 10px; align-items: flex-start; }
.block--divider { border: 0; height: 4px; background: var(--blue-mid); margin: 32px 0; }
.block--spacer { height: var(--w-h, 48px); }
.block--row { display: grid; gap: var(--w-gap, 24px); margin-top: 24px; }
.block--embed { margin-top: 24px; }
.block--embed iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.pic { position: relative; overflow: hidden; aspect-ratio: var(--pic-ratio, 4/3); background: var(--blue-mid); margin-top: 16px; }
.pic img { width: 100%; height: 100%; object-fit: var(--pic-fit, cover); object-position: var(--pic-pos, center); }
.pic--empty { display: grid; place-items: center; background: #fff; }
.pic__hint { font-size: var(--t-small); text-align: center; padding: 0 18px; }
body:not(.adm-editing) .pic--empty, body:not(.adm-editing) .block--embed.is-empty { display: none; }
.fact .block, .duo__card--ink .block { color: inherit; }

@media (min-width: 1001px) and (max-height: 720px) { .hero__copy .tiles { display: none; } .hero__copy .hero__sub { margin-bottom: 20px; } }

/* ---- Holidays: the scene takes the opening of each page, on the season's own colour ---- */
.season-ribbon .container { padding-inline: var(--gut); }
.season-on .hero { background: var(--s-bg); color: #fff; }
.season-on .hero .btn--line { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.season-on .hero__cloth, .season-on .top__cloth { display: none; }
.season-on .hero__window img, .season-on .top__pic { visibility: hidden; }
.season-on .hero__copy, .season-on .top__copy { z-index: 2; }
.season-on .hero__badge { color: var(--s-hi); }
.season-on .hero__end { z-index: 4; }
.season-stage { z-index: 1; }
.adm-hero-btn { display: none; }

/* ---- Editing: everything holds still, shows at once, and can be clicked ---- */
.editing .reveal, .editing .reveal-list > *, .editing .split .wi { opacity: 1 !important; transform: none !important; }
.editing .par__img { transform: none !important; }
.editing .zoom { transform: none !important; opacity: 1 !important; }
.editing .bar { transform: none !important; }
.editing .pinhero { height: auto !important; }
.editing .pinhero__stage { position: relative !important; height: auto !important; min-height: 0; overflow: visible; }
.editing .hero__window img, .editing .top__pic { visibility: visible !important; }
.editing .hero__end { display: block; grid-column: 1 / -1; background: var(--ink); color: #fff; padding: 32px var(--gut); }
.editing .chapters__stage { display: none; }
.editing .chapters { grid-template-columns: minmax(0, 860px); }
.editing .chapter { opacity: 1 !important; transform: none !important; min-height: 0; margin-top: 56px; }
.editing .chapter__pic { display: block; aspect-ratio: var(--pic-ratio, 4/3); margin-bottom: 24px; overflow: hidden; }
.editing .walk__track { flex-wrap: wrap; overflow: visible; }
.editing .walk__item { flex-basis: 260px; }
.editing .walk__item .slot { height: 320px; }
.editing .walk__item img { transform: none !important; pointer-events: auto; }
.editing .walk__track { cursor: auto; }
.editing .walk__bar, .editing .walk__ctl { display: none !important; }
.editing .deck__card { position: relative; transform: none !important; opacity: 1 !important; min-height: 0; }
.editing .panel[hidden], .editing .box .box__cap { display: block !important; }
.editing .panel + .panel { margin-top: 48px; }
.editing .age__card { min-height: 0; }
.editing .age__result { display: flex !important; margin-top: 48px; }
.editing .age__result:first-child { margin-top: 0; }
.editing .age__card .btn { margin-top: 12px; }
.editing .steps__row { flex-direction: column; height: auto; }
.editing .step, .editing .step.is-open { flex: 0 0 auto; flex-direction: column; }
.editing .step button, .editing .step.is-open button { position: static; flex: none; width: 100%; height: 64px; padding: 0 20px; justify-content: flex-start; align-items: center; font-size: var(--t-lead); }
.editing .step button span { writing-mode: horizontal-tb; transform: none; }
.editing .step__body { opacity: 1 !important; visibility: visible !important; padding: 0 20px 28px; }
.editing .frame { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; aspect-ratio: auto; clip-path: none; }
.editing .frame .slot { position: relative; opacity: 1; aspect-ratio: 4/5; }
.editing .caption { display: block; }
.editing .front { aspect-ratio: auto; max-height: none; overflow: visible; }
.editing .front__pic { aspect-ratio: 16/9; }
.editing .front__tag { position: relative; max-width: none; }
.editing .blocks span { transform: none !important; }
.editing .shape { clip-path: none; }

/* ---- Less motion: the same page, with cross-fades and nothing travelling ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .top__pic, .is-swap > *, .bar__nav.is-open a, .hero__more i { animation: none; }
  .is-swap { animation: none; }
  .bar, .step, .btn, .age__picks button, .filters button, .shot img, .chapters__stage img { transition-duration: .01s; }
  .chapters__stage img { transform: none; }
}

/* ---- The gallery while it is being edited ---- */
.gal-add { margin-bottom: 20px; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gal-card { display: flex; flex-direction: column; gap: 8px; background: #fff; padding: 10px; }
.gal-card__pic { aspect-ratio: 4/3; overflow: hidden; }
.gal-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.gal-card__cap, .gal-card select { font: 400 15px "Albert Sans", sans-serif; color: var(--ink); background: var(--ground); border: 0; padding: 9px 10px; width: 100%; }
.gal-card__row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gal-card__row select { width: auto; flex: 1 1 96px; }
.gal-card .adm-btn { color: var(--ink); }
.editing .shots { display: none; }

/* ---- These components come after the main breakpoints, so they fold here ---- */
@media (max-width: 1000px) {
  .duo, .trio-text, .split2--even { grid-template-columns: 1fr; }
  .hero__more { right: auto; left: 50%; bottom: auto; top: 84px; translate: -50% 0; white-space: nowrap; }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ---- Two captioned photos, side by side ---- */
.trio--2 { grid-template-columns: repeat(2, 1fr); margin-top: 40px; }
.trio__item figcaption { margin-top: 12px; font-size: var(--t-small); font-weight: 500; }
.trio--2 .slot { aspect-ratio: var(--pic-ratio, 4/3); overflow: hidden; }
.trio figure.trio__item { aspect-ratio: auto; overflow: visible; }
.ticklist { margin-top: 20px; }
@media (max-width: 640px) { .trio--2 { grid-template-columns: 1fr; } }
.picbox--doc { aspect-ratio: var(--pic-ratio, 738/980); }
