/* Springleaf Residence: Old school.

   The last five homes in the development are in the conserved block of the
   former Upper Thomson Secondary School, so the page is a walk through the
   old school, room by room: the gate under the raintree, the notice board,
   history, the classroom (where every home is chalked up and rubbed out
   until five are left), Block 821, then geography, biology, the field, the
   ECA House, the staff room, the library, the register and the general
   office. A cream enamel room sign names the room you are in.
   Colours: the logo's deep leaf green, the brochure's olive and paper, the
   school's brick, chalk on a green board, and the chart's CC2 olive for the
   five homes. Type: Fraunces for the display, Figtree for the text. */

:root {
  --leaf: #22391A;
  --leaf-2: #2C3A26;
  --leaf-deep: #172512;
  --olive: #6F7D4A;
  --olive-deep: #454A36;
  --olive-dark: #3A3E2D;
  --cc2: #76854A;
  --cc2-deep: #5E6B38;
  --brick: #9A4B35;
  --brick-deep: #7C3A27;
  --brick-hi: #C98A6C;
  --board: #26332A;
  --board-2: #2D3B30;
  --chalk: #EEEBE1;
  --chalk-y: #E9D9A0;
  --wood: #6E5435;
  --wood-hi: #8D6E48;
  --enamel: #F4F0E4;
  --paper: #ECEAE4;
  --stone: #E1DDD2;
  --card: #FAF8F3;
  --ink: #22281E;
  --ink-soft: #596053;
  --white: #FFFFFF;
  --white-soft: rgb(255 255 255 / 0.84);
  --hair: rgb(34 40 30 / 0.14);
  --hair-2: rgb(34 40 30 / 0.28);
  --hair-w: rgb(255 255 255 / 0.22);
  --gut: clamp(1rem, 5vw, 5.5rem);
  --maxw: 84rem;
  --ease: cubic-bezier(.22, .61, .2, 1);

  --sc-canvas: var(--leaf-2);
  --sc-surface: var(--olive-deep);
  --sc-ink: var(--ink);
  --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--brick);
  --sc-accent-ink: var(--white);
  --sc-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --sc-font-text: "Figtree", "Helvetica Neue", Arial, system-ui, sans-serif;
}

html { background: var(--paper); }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure, blockquote { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--sc-font-text); font-weight: 400; overflow-x: clip; font-variant-numeric: lining-nums; }
::selection { background: var(--brick); color: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.skip { position: absolute; left: var(--gut); top: -4rem; z-index: 300; background: var(--card); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { top: 0.5rem; }
:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
.wrap { width: min(100% - 2 * var(--gut), var(--maxw)); margin-inline: auto; position: relative; }
svg use { fill: currentColor; }

/* ------------------------------------------------------------------ type -- */
.h2 { font: 400 clamp(2rem, 1.15rem + 2.6vw, 3.7rem)/1.05 var(--sc-font-display); font-variation-settings: "opsz" 120; letter-spacing: -0.012em; color: var(--leaf); text-wrap: balance; }
.h2 em { font-style: italic; color: var(--brick-deep); }
.h2--light { color: var(--white); }
.h2--light em { color: var(--chalk-y); }
.h3 { font: 600 0.72rem/1.3 var(--sc-font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--leaf); }
.h3--light { color: var(--chalk-y); }
.lede { margin-top: 1.3rem; max-width: 40rem; font-size: clamp(1rem, 0.95rem + 0.22vw, 1.12rem); font-weight: 400; line-height: 1.7; color: var(--ink-soft); text-wrap: pretty; }
.lede--light { color: var(--white-soft); }
.small { font-size: 0.84rem; line-height: 1.55; color: var(--ink-soft); }
.credit { margin-top: 0.6rem; font: 400 0.7rem/1.4 var(--sc-font-text); letter-spacing: 0.02em; color: var(--ink-soft); }
.credit--light { color: rgb(255 255 255 / 0.78); }
.pull { margin-top: 2rem; padding-left: 1.2rem; border-left: 2px solid var(--brick); font: italic 400 clamp(1.1rem, 1rem + 0.4vw, 1.35rem)/1.45 var(--sc-font-display); color: var(--leaf); max-width: 34rem; }
.pull--quote p { margin: 0; }
.pull--quote footer { margin-top: 0.8rem; font: 500 0.72rem/1.4 var(--sc-font-text); font-style: normal; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0.85rem 1.5rem; border-radius: 999px;
  font: 600 0.74rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  background: var(--brick); color: var(--white); border: 1px solid var(--brick);
  transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn--brick { background: var(--brick); border-color: var(--brick); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .btn--brick:hover { background: var(--brick-deep); border-color: var(--brick-deep); } }
.btn--ink { background: transparent; color: var(--leaf); border-color: rgb(34 57 26 / 0.5); }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: rgb(34 57 26 / 0.07); border-color: var(--leaf); } }
.btn--line { background: rgb(20 30 16 / 0.28); color: var(--white); border-color: rgb(255 255 255 / 0.75); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: rgb(255 255 255 / 0.16); } }
.btn--chalk { background: transparent; color: var(--chalk); border: 2px solid rgb(238 235 225 / 0.8); }
@media (hover: hover) and (pointer: fine) { .btn--chalk:hover { background: rgb(238 235 225 / 0.12); } }
.btn--sm { min-height: 2.6rem; padding: 0.6rem 1rem; font-size: 0.66rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------- the room sign -- */
.bar { position: fixed; z-index: 120; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; padding: 0.85rem var(--gut) 0; pointer-events: none; }
.bar > * { pointer-events: auto; }
.pill { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; background: var(--brick); color: var(--white); text-decoration: none; font: 600 0.68rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; box-shadow: 0 10px 24px -14px rgb(20 20 10 / 0.9); transition: background-color 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--brick-deep); } }
.sign { display: grid; gap: 0.4rem; justify-items: start; padding: 0; background: none; border: 0; cursor: pointer; color: var(--leaf); text-align: left; }
.sign__plate {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 0.75rem; align-items: center;
  min-width: 12.5rem; min-height: 2.75rem; padding: 0.45rem 0.85rem;
  background: var(--enamel); border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--enamel), inset 0 0 0 3.5px var(--leaf), 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 12px 26px -16px rgb(10 20 5 / 0.95);
  transition: transform 300ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .sign:hover .sign__plate { transform: translateY(-1px); } }
.sign__screw { grid-row: 1 / 3; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #A9A69B 60%, #77756D); box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08); }
.sign__screw:last-child { grid-column: 3; }
.sign__k { grid-column: 2; font: 600 0.52rem/1.2 var(--sc-font-text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive); }
.sign__room { grid-column: 2; font: 500 1.02rem/1.15 var(--sc-font-display); color: var(--leaf); white-space: nowrap; transition: opacity 180ms var(--ease); }
.sign__room.is-flip { opacity: 0; }
.sign__hall { display: flex; gap: 3px; padding-left: 0.35rem; }
.sign__hall i { width: 7px; height: 10px; border-radius: 1px 1px 0 0; background: rgb(244 240 228 / 0.55); box-shadow: 0 0 0 1px rgb(20 30 16 / 0.35); transform-origin: left center; transition: background-color 300ms var(--ease), transform 300ms var(--ease); }
.sign__hall i.is-past { background: rgb(244 240 228 / 0.95); }
.sign__hall i.is-on { background: var(--brick); transform: perspective(40px) rotateY(-38deg); }
.sign.is-booked .sign__room { color: var(--brick-deep); }

/* the directory: a black felt letter board */
.dir { position: fixed; inset: 0; z-index: 200; display: grid; place-items: start start; padding: 4.6rem var(--gut) 2rem; background: rgb(14 20 10 / 0.6); backdrop-filter: blur(4px); overflow: auto; }
.dir[hidden] { display: none; }
.dir__in {
  width: min(100%, 30rem); padding: 1.4rem 1.6rem 1.6rem; color: #F2EFE6; border-radius: 4px;
  background: #1C1C1A repeating-linear-gradient(0deg, transparent 0 9px, rgb(255 255 255 / 0.035) 9px 10px);
  box-shadow: inset 0 0 0 6px var(--wood), inset 0 0 0 8px var(--wood-hi), 0 40px 70px -30px rgb(0 0 0 / 0.8);
  animation: slowin 400ms var(--ease) both;
}
.dir__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0.4rem 0.4rem 0; }
.dir__t { font: 700 0.8rem/1 "Figtree", sans-serif; letter-spacing: 0.32em; text-transform: uppercase; }
.dir__x { min-height: 2.75rem; padding: 0 1rem; background: none; border: 1px solid rgb(242 239 230 / 0.5); border-radius: 999px; color: inherit; font: 600 0.64rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.dir__list { list-style: none; padding: 0 0.4rem; display: grid; gap: 0.15rem; }
.dir__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px dotted rgb(242 239 230 / 0.2); }
.dir__list a { display: block; padding: 0.55rem 0; color: #F2EFE6; text-decoration: none; font: 700 0.86rem/1.2 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; }
.dir__list span { font-size: 0.78rem; color: rgb(242 239 230 / 0.6); text-align: right; }
@media (hover: hover) and (pointer: fine) { .dir__list a:hover { color: var(--chalk-y); } }

/* ------------------------------------------------------------------- hero -- */
.hero { position: relative; background: var(--leaf-2); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__view { position: absolute; inset: 0; }
.hero__plate, .hero__canopy { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 40%; will-change: transform; }
.hero__canopy { z-index: 3; }
.hero__haze { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(ellipse 38% 46% at var(--hx, 58%) var(--hy, 62%), rgb(255 232 186 / 0.75), rgb(255 232 186 / 0) 72%); mix-blend-mode: screen; will-change: opacity; }
.hero__mark { color: var(--enamel); }
.hero__h1 { margin: 0; line-height: 0; }
.hero__logo { width: clamp(10rem, 15vw, 14rem); aspect-ratio: 360 / 202; height: auto; filter: drop-shadow(0 2px 10px rgb(0 0 0 / 0.35)); }
.hero__addr { margin-top: 0.8rem; font: 600 0.64rem/1.4 var(--sc-font-text); letter-spacing: 0.22em; text-transform: uppercase; color: rgb(255 255 255 / 0.86); }
.hero__scrim { position: absolute; inset: auto 0 0 0; height: 72%; z-index: 4; background: linear-gradient(to top, rgb(16 22 12 / 0.84), rgb(16 22 12 / 0.45) 42%, rgb(16 22 12 / 0)); pointer-events: none; }
.hero__credit { position: absolute; z-index: 5; right: var(--gut); bottom: 0.8rem; margin: 0; }
.hero__foot { position: absolute; z-index: 6; left: var(--gut); right: var(--gut); bottom: clamp(2.2rem, 6vh, 4rem); display: grid; gap: 1.2rem; color: var(--white); max-width: 46rem; }
.hero__line { font: 400 clamp(2.1rem, 1.2rem + 3vw, 4.2rem)/1.02 var(--sc-font-display); font-variation-settings: "opsz" 144; letter-spacing: -0.015em; text-wrap: balance; will-change: transform, opacity; }
.hero__line em { font-style: italic; color: var(--chalk-y); }
.hero__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.4rem; font-size: 0.92rem; color: rgb(255 255 255 / 0.9); }
.hero__facts li { position: relative; }
.hero__facts li + li::before { content: ""; position: absolute; left: -0.78rem; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--chalk-y); }
.hero__facts b { font-weight: 600; color: var(--white); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* -------------------------------------------------------------- sections -- */
.sec { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.paper { background: var(--paper); }
.stone { background: var(--stone); }
.olive { background: var(--olive-deep); color: var(--white); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.facts > div { display: grid; grid-template-columns: minmax(8rem, 0.7fr) minmax(0, 1.3fr); gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--hair); font-size: 0.92rem; }
.facts dt { font: 600 0.66rem/1.5 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); padding-top: 0.15rem; }
.facts dd { line-height: 1.5; }
.facts--dark { border-color: var(--hair-w); }
.facts--dark > div { border-color: var(--hair-w); }
.facts--dark dt { color: var(--chalk-y); }
.facts--dark a { color: var(--white); text-decoration-color: var(--chalk-y); text-underline-offset: 0.22em; }
.ig__f { overflow: hidden; }
.ig__f img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }

/* ---------------------------------------------------------------- notice -- */
.notice__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.notice__pic { margin-top: 2.6rem; }
.notice__pic img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.memo { position: relative; padding: 2.2rem 1.9rem 1.9rem; background: var(--card); box-shadow: 0 1px 0 var(--hair), 0 30px 50px -34px rgb(30 30 10 / 0.55); transform: rotate(-0.8deg); }
.memo::after { content: ""; position: absolute; inset: auto 0 -6px 0; height: 6px; background: linear-gradient(to bottom, rgb(0 0 0 / 0.06), transparent); }
.memo__pin { position: absolute; top: -0.55rem; left: 50%; width: 1.1rem; height: 1.1rem; margin-left: -0.55rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #E2876A, var(--brick) 55%, var(--brick-deep)); box-shadow: 0 4px 6px -2px rgb(0 0 0 / 0.4); }
.memo__k { font: 700 0.66rem/1 var(--sc-font-text); letter-spacing: 0.34em; text-transform: uppercase; color: var(--brick); }
.memo__t { margin-top: 0.7rem; font: 500 2rem/1.05 var(--sc-font-display); color: var(--leaf); }
.memo__p { margin-top: 0.8rem; font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.memo__dl { margin: 1.3rem 0 1.6rem; display: grid; border-top: 1px solid var(--hair); }
.memo__dl > div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.8rem; padding: 0.62rem 0; border-bottom: 1px solid var(--hair); font-size: 0.88rem; line-height: 1.45; }
.memo__dl dt { font: 600 0.62rem/1.6 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.memo__dl dd { font-weight: 500; }

/* --------------------------------------------------------------- history -- */
.history { position: relative; background: var(--paper); padding-bottom: clamp(5rem, 10vw, 9rem); }
.gable { position: relative; height: 92vh; height: 92svh; min-height: 30rem; overflow: hidden; background: #8A8E90; }
.gable img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.gable__cap { position: absolute; left: var(--gut); bottom: 1.2rem; z-index: 2; max-width: 30rem; }
.gable::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to top, rgb(20 16 12 / 0.55), transparent); pointer-events: none; }
.history__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: clamp(2.5rem, 5vw, 5rem); margin-top: clamp(4rem, 8vw, 7rem); align-items: start; }
.history__copy { position: sticky; top: 7rem; }
.blind--b { grid-column: 1 / -1; }
.blind--b img { width: 100%; aspect-ratio: 3.25 / 1; object-fit: cover; }
.blind--a img { width: 100%; aspect-ratio: 2.5 / 1; object-fit: cover; }
/* the roller blind: the picture shows from the bottom up as the blind rises,
   its rolled bar and pull at the moving edge */
[data-blind] { --blind: 0; }
.js [data-blind] > img { clip-path: inset(calc(var(--blind) * 100%) 0 0 0); }
.js [data-blind]::before {
  content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 12px; pointer-events: none;
  top: calc(var(--blind) * 100% - 6px); opacity: calc(var(--blind) * 6);
  background: linear-gradient(to bottom, #EDE7D6, #C9C0A6 60%, #A79E86); box-shadow: 0 4px 8px -3px rgb(0 0 0 / 0.35);
}
.blind, .gable { position: relative; }

/* ----------------------------------------------------------- the board -- */
.board { position: relative; background: #1B1D17; }
.board__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 4.8rem clamp(0.75rem, 3vw, 2.5rem) clamp(1rem, 3vh, 2rem); background: radial-gradient(ellipse at 50% 30%, #2A2C24, #17180F); }
.board__frame {
  position: relative; width: 100%; height: 100%; max-width: 92rem; border-radius: 3px; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, #34433A, var(--board) 55%, #1F2A22);
  box-shadow: inset 0 0 0 10px var(--wood), inset 0 0 0 12px var(--wood-hi), inset 0 0 70px rgb(0 0 0 / 0.45), 0 30px 60px -30px rgb(0 0 0 / 0.9);
}
.board__canvas { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); }
.board__head { position: absolute; left: clamp(1.4rem, 4vw, 3.4rem); top: clamp(1.4rem, 4vh, 2.8rem); color: var(--chalk); text-shadow: 0 0 1px rgb(238 235 225 / 0.6); }
.board__k { font: 600 0.66rem/1.2 var(--sc-font-text); letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.75; }
.board__n { margin-top: 0.3rem; font: italic 400 clamp(1.8rem, 1rem + 2.4vw, 3.2rem)/1 var(--sc-font-display); font-variation-settings: "opsz" 144; }
.board__n [data-board-n] { font-variant-numeric: tabular-nums; }
.board__lines { list-style: none; padding: 0; position: absolute; left: clamp(1.4rem, 4vw, 3.4rem); bottom: clamp(3.6rem, 9vh, 5.6rem); right: 40%; min-height: 3em; }
.board__lines li { position: absolute; left: 0; bottom: 0; font: 400 clamp(1.5rem, 0.9rem + 1.9vw, 2.8rem)/1.08 var(--sc-font-display); color: var(--chalk); opacity: 0; transform: translateY(10px); text-shadow: 0 0 1px rgb(238 235 225 / 0.5); transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
.board__lines li.is-on { opacity: 1; transform: none; }
.board__lines em { font-style: italic; color: var(--chalk-y); }
.board__labels { position: absolute; inset: 12px; pointer-events: none; }
.board__label { position: absolute; transform: translate(-50%, 0); font: italic 400 clamp(0.85rem, 0.6rem + 0.6vw, 1.15rem)/1.15 var(--sc-font-display); color: var(--chalk); text-align: center; white-space: nowrap; opacity: 0; transition: opacity 300ms var(--ease); }
.board__label small { display: block; font: 600 0.58rem/1.3 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--chalk-y); font-style: normal; }
.board__label.is-on { opacity: 1; }
.board__go { position: absolute; right: clamp(1.4rem, 4vw, 3.4rem); bottom: clamp(3.4rem, 8.6vh, 5.4rem); opacity: 0; pointer-events: none; transition: opacity 400ms var(--ease); }
.board__go.is-on { opacity: 1; pointer-events: auto; }
.board__ledge { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 18px; background: linear-gradient(to bottom, var(--wood-hi), var(--wood)); box-shadow: 0 -2px 6px rgb(0 0 0 / 0.35); }
.board__chalk { position: absolute; left: 18%; top: -5px; width: 46px; height: 8px; border-radius: 4px; background: linear-gradient(to bottom, #fff, #DDD8C8); }
.board__duster { position: absolute; left: 0; top: -14px; width: 92px; height: 22px; border-radius: 3px; background: linear-gradient(to bottom, #8C6A45 0 45%, #3B3A36 45%); box-shadow: 0 3px 5px rgb(0 0 0 / 0.4); will-change: transform; }

/* ------------------------------------------------------------- the five -- */
.five__head { max-width: 46rem; }
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.8rem); margin-top: 3rem; }
.door { display: grid; gap: 0.25rem; align-content: start; }
.door__frame { position: relative; aspect-ratio: 3 / 5; padding: 7px 7px 0; background: #CFC8B6; border-radius: 3px 3px 0 0; perspective: 900px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); overflow: hidden; }
.door__frame::before { content: ""; position: absolute; inset: 7px 7px 0; background: radial-gradient(ellipse at 30% 60%, #FFE9B8, #E7B977 60%, #B98A52); }
.door__leaf {
  position: absolute; inset: 7px 7px 0; display: block; padding: 0; border: 0; cursor: pointer; transform-origin: left center;
  background: linear-gradient(90deg, rgb(0 0 0 / 0.07), transparent 12%, transparent 88%, rgb(0 0 0 / 0.1)), var(--cc2);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12);
  transition: transform 700ms var(--ease), box-shadow 700ms var(--ease);
}
.door__leaf::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 7%; height: 30%; border: 1px solid rgb(0 0 0 / 0.14); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08); }
.door__glass { position: absolute; left: 22%; right: 22%; top: 9%; height: 30%; border: 3px solid var(--cc2-deep); background: repeating-linear-gradient(45deg, rgb(255 255 255 / 0.0) 0 9px, rgb(80 90 80 / 0.28) 9px 10px), repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.0) 0 9px, rgb(80 90 80 / 0.28) 9px 10px), linear-gradient(160deg, #DDE6E3, #AFC0BC); }
.door__plate { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); padding: 0.25rem 0.5rem; background: var(--enamel); border-radius: 3px; box-shadow: inset 0 0 0 1px var(--leaf); font: 600 clamp(0.7rem, 0.55rem + 0.35vw, 0.86rem)/1 var(--sc-font-text); letter-spacing: 0.06em; color: var(--leaf); white-space: nowrap; }
.door__handle { position: absolute; right: 9%; top: 56%; width: 7%; height: 2.5%; border-radius: 3px; background: linear-gradient(to bottom, #E8CF8E, #A6833F); box-shadow: 0 2px 2px rgb(0 0 0 / 0.3); }
@media (hover: hover) and (pointer: fine) {
  .door__leaf:hover { transform: rotateY(-24deg); box-shadow: 20px 0 30px -14px rgb(0 0 0 / 0.5); }
}
.door.is-picked .door__leaf { transform: rotateY(-30deg); box-shadow: 20px 0 30px -14px rgb(0 0 0 / 0.5); }
.door__no { margin-top: 0.9rem; font: 500 1.6rem/1 var(--sc-font-display); color: var(--leaf); }
.door__lv { font-size: 0.86rem; color: var(--ink-soft); }
.door__out { display: flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--cc2-deep); }
.door__out::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--cc2); }
.door .btn { margin-top: 0.8rem; justify-self: start; }
.cc2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); margin-top: clamp(4rem, 7vw, 6rem); align-items: start; }
.cc2__plan, .sheet__btn { position: relative; display: block; width: 100%; padding: 1.2rem; border: 1px solid var(--hair); background: #fff; cursor: zoom-in; }
.cc2__plan img { width: 100%; }
.cc2__plan span, .sheet__zoom { position: absolute; right: 0.7rem; bottom: 0.7rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: var(--leaf); color: var(--white); font: 600 0.6rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; }
.tv__kind { font: 600 0.66rem/1.3 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick-deep); }
.tv__name { margin-top: 0.4rem; font: 500 2.3rem/1.05 var(--sc-font-display); color: var(--leaf); }
.tv__name small { font-size: 1.1rem; color: var(--ink-soft); }
.tv__size { margin-top: 0.5rem; font-size: 1.05rem; }
.tv__size small { color: var(--ink-soft); }
.tv__acts { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.rooms { margin-top: 1.3rem; padding: 0; list-style: none; border-top: 1px solid var(--hair); }
.rooms li { position: relative; padding: 0.6rem 0 0.6rem 1.3rem; border-bottom: 1px solid var(--hair); font-size: 0.94rem; line-height: 1.45; }
.rooms li::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.5rem; height: 0.5rem; border-radius: 1px; background: var(--cc2); }
.cc2__key { margin-top: 1.6rem; max-width: 22rem; }
.cc2__key img { width: 100%; background: #fff; border: 1px solid var(--hair); }

/* ---------------------------------------------------------------- inside -- */
.inside__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 14vw, 13rem); gap: clamp(0.6rem, 1.4vw, 1.2rem); margin-top: 3rem; }
.ig .ig__f { width: 100%; height: 100%; }
.ig--a { grid-column: 1 / 5; grid-row: 1 / 4; }
.ig--b { grid-column: 5 / 7; grid-row: 1 / 3; }
.ig--c { grid-column: 1 / 4; grid-row: 4 / 6; }
.ig--d { grid-column: 4 / 5; grid-row: 4 / 6; }
.ig--e { grid-column: 5 / 7; grid-row: 3 / 6; }
.inside__cap { margin-top: 1rem; }

/* ------------------------------------------------------------- geography -- */
.geo { padding-bottom: clamp(3rem, 6vw, 5rem); }
.geo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.geo__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tel { position: relative; background: var(--olive-dark); color: var(--white); }
.tel__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: clamp(5.5rem, 12vh, 8rem) 0 clamp(1.4rem, 4vh, 2.6rem); }
.tel__note { margin-top: 0.7rem; max-width: 40rem; font-size: 0.92rem; line-height: 1.55; color: rgb(255 255 255 / 0.78); }
.tel__rail { position: relative; align-self: center; justify-self: start; width: max-content; padding: 0 var(--gut); will-change: transform; }
.tel__line { position: absolute; left: 0; right: 0; top: calc(var(--th) + 2.3rem); height: 6px; background: #9D5B2B; border-radius: 3px; }
.tel { --th: clamp(9rem, 26vh, 15rem); }
.tel__stops { list-style: none; padding: 0; display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); }
.stop { position: relative; width: clamp(12rem, 22vw, 18rem); display: grid; grid-template-rows: var(--th) auto auto auto; align-content: start; }
.stop img { width: 100%; height: var(--th); object-fit: cover; border-radius: 2px; }
.stop--text::before { content: ""; height: var(--th); border: 1px dashed rgb(255 255 255 / 0.25); border-radius: 2px; }
.stop__n { margin-top: 1.1rem; justify-self: start; display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.55rem; border-radius: 999px; background: var(--enamel); color: var(--leaf); font: 600 1rem/1 var(--sc-font-text); box-shadow: 0 0 0 5px var(--olive-dark), 0 0 0 7px #9D5B2B; }
.stop__name { margin-top: 0.9rem; font: 400 1.35rem/1.15 var(--sc-font-display); }
.stop__s { margin-top: 0.35rem; font-size: 0.84rem; line-height: 1.4; color: rgb(255 255 255 / 0.72); }
.stop--here { width: clamp(13rem, 20vw, 16rem); }
.stop--here::before { content: "You are here"; height: var(--th); display: grid; place-items: end start; padding: 1rem; font: italic 400 1.4rem/1.1 var(--sc-font-display); color: var(--chalk-y); background: linear-gradient(160deg, rgb(255 255 255 / 0.06), transparent); border: 1px solid rgb(233 217 160 / 0.4); }
.stop__dot { margin-top: 0.7rem; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 6px var(--olive-dark), 0 0 0 9px var(--chalk-y); }
.stop--here .stop__name { font-size: 1.7rem; color: var(--chalk-y); }
.tel__foot { font-size: 0.78rem; color: rgb(255 255 255 / 0.62); }
.around { padding-top: clamp(4rem, 8vw, 7rem); }
.around__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.6rem; margin-top: 1.4rem; }
.list h4 { font: 500 1.25rem/1.2 var(--sc-font-display); color: var(--leaf); padding-bottom: 0.5rem; border-bottom: 2px solid var(--leaf); }
.list ul { list-style: none; padding: 0; }
.list li, .parks li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--hair); font-size: 0.9rem; line-height: 1.4; }
.list b, .parks b { font-weight: 600; white-space: nowrap; color: var(--brick-deep); }
.future { display: grid; gap: 0.9rem; margin-top: 2.2rem; padding: 1.4rem 1.5rem; background: var(--card); border-left: 3px solid var(--olive); }
.future p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.future b { color: var(--leaf); font-weight: 600; }
.around .small { margin-top: 1rem; }
.around__map img { width: 100%; }
.around__map { position: sticky; top: 6rem; }

/* --------------------------------------------------------------- biology -- */
.bio__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.bio__bird img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; margin: clamp(3.5rem, 6vw, 5rem) 0; padding: 2rem 0; border-top: 1px solid var(--hair-w); border-bottom: 1px solid var(--hair-w); }
.counts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.6rem; }
.counts dt { font-size: 0.86rem; line-height: 1.4; color: rgb(255 255 255 / 0.78); }
.counts dd { font: 300 clamp(2.6rem, 1.6rem + 3vw, 4.6rem)/1 var(--sc-font-display); font-variation-settings: "opsz" 144; color: var(--chalk-y); font-variant-numeric: tabular-nums; }
.counts small { margin-left: 0.15rem; font-size: 0.45em; color: rgb(255 255 255 / 0.8); }
.bio__pics { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.bp .ig__f { aspect-ratio: 16 / 9; }
.bp--a { grid-column: 1 / 8; }
.bp--b { grid-column: 8 / 13; grid-row: span 2; }
.bp--b .ig__f { aspect-ratio: auto; height: calc(100% - 2rem); }
.bp--c { grid-column: 1 / 5; }
.bp--d { grid-column: 5 / 8; }
.bp--c .ig__f, .bp--d .ig__f { aspect-ratio: 4 / 3; }
.parks { margin-top: clamp(3rem, 5vw, 4rem); max-width: 44rem; }
.parks ul { list-style: none; padding: 0; margin-top: 1rem; }
.parks li { border-color: var(--hair-w); color: rgb(255 255 255 / 0.9); }
.parks b { color: var(--chalk-y); }

/* ------------------------------------------------------------- the field -- */
.field__head { max-width: 46rem; }
.field__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-top: 3rem; }
.fp--a { grid-column: 1 / 9; }
.fp--a .ig__f { aspect-ratio: 16 / 9; }
.fp--b { grid-column: 9 / 13; align-self: end; }
.fp--b .ig__f { aspect-ratio: 4 / 5; }
.fp--c { grid-column: 2 / 8; }
.fp--d { grid-column: 8 / 13; margin-top: 3rem; }
.fp--c .ig__f, .fp--d .ig__f { aspect-ratio: 16 / 9; }

/* --------------------------------------------------------------- eca house -- */
.eca__head { max-width: 50rem; }
.eca__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(0.8rem, 1.6vw, 1.4rem); margin-top: 3rem; }
.ep img { width: 100%; object-fit: cover; }
.ep--a { grid-column: 1 / 9; }
.ep--a img { aspect-ratio: 2.25 / 1; }
.ep--b { grid-column: 9 / 13; grid-row: span 2; }
.ep--b img { aspect-ratio: auto; height: calc(100% - 2.2rem); }
.ep--c { grid-column: 1 / 9; }
.ep--c img { aspect-ratio: 3.3 / 1; }
.ep--d { grid-column: 1 / 8; }
.ep--d img { aspect-ratio: 2.5 / 1; }
.ep--e { grid-column: 8 / 13; }
.ep--e img { aspect-ratio: 16 / 9; }

/* ------------------------------------------------------------ staff room -- */
.staff__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.staff__facts { margin-top: 0.4rem; }
.works { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(3rem, 6vw, 5rem); }
.works img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.works span { display: block; margin-top: 0.6rem; font: 500 1rem/1.25 var(--sc-font-display); color: var(--leaf); }

/* -------------------------------------------------------------- site plan -- */
.site__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.site__plan { position: sticky; top: 6rem; }
.site__plan img { width: 100%; }
.key { display: grid; gap: 1.6rem; margin-top: 2rem; }
.key h3 { font: 600 0.7rem/1.3 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick-deep); }
.key__list { margin-top: 0.7rem; padding-left: 0; list-style: none; columns: 2; column-gap: 1.6rem; font-size: 0.84rem; line-height: 1.4; }
.key__list li { break-inside: avoid; display: flex; gap: 0.55rem; padding: 0.2rem 0; }
ol.key__list li { counter-increment: k; }
ol.key__list li::before { content: counter(k); flex: none; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #8A6A57; color: var(--white); font: 600 0.6rem/1 var(--sc-font-text); }
.key .small { margin-top: 0.6rem; }
.ebro { padding-top: 0; }
.ebro__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4rem; align-items: end; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); }
.papers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.dl { display: grid; gap: 0.5rem; padding: 1.6rem 1.5rem 1.4rem; text-decoration: none; color: var(--ink); background: var(--card); border-top: 3px solid var(--brick); box-shadow: 0 1px 0 var(--hair); transition: transform 500ms var(--ease), box-shadow 500ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .dl:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgb(30 30 10 / 0.45); } }
.dl__k { font: 600 0.62rem/1.2 var(--sc-font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--brick-deep); }
.dl__t { font: 500 1.35rem/1.2 var(--sc-font-display); color: var(--leaf); }
.dl__s { font-size: 0.82rem; color: var(--ink-soft); }
.plans { padding-top: 0; }
.plans__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--hair); }
.plans__copy .facts { margin-top: 1.6rem; }
.plans__copy .small { margin-top: 1.2rem; }
.plans__sheet img { width: 100%; }

/* ------------------------------------------------------------ the register -- */
.homes__head { max-width: 46rem; }
.chart { margin-top: 3rem; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.6rem 2rem; }
.chart__date { font-size: 0.86rem; color: var(--ink-soft); }
.chart__old { margin-top: 1.6rem; max-width: 44rem; }
.chart__blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2.4rem; }
.chart__scroll { overflow-x: auto; scrollbar-width: thin; }
.chart__table { border-collapse: separate; border-spacing: 2px; width: 100%; table-layout: fixed; font-size: 0.55rem; }
.chart__table caption { text-align: left; padding-bottom: 0.5rem; font: 600 0.62rem/1.2 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brick-deep); }
.chart__table th { font: 600 0.52rem/1 var(--sc-font-text); color: var(--ink-soft); padding: 0.15rem 0; text-align: center; }
.chart__table th[scope="row"] { width: 1.3rem; text-align: right; padding-right: 0.25rem; }
.chart__table td { height: 0.62rem; padding: 0; }
.chart__table td.s { background: rgb(34 40 30 / 0.13); }
.chart__table td.x { background: transparent; box-shadow: inset 0 0 0 1px rgb(34 40 30 / 0.07); }
.chart__table--old { font-size: 0.7rem; border-spacing: 3px; }
.chart__table--old th { font-size: 0.66rem; }
.chart__table--old th[scope="row"] { width: 2rem; }
.chart__table--old td { height: 2.6rem; }
.chart__table--old td.club { background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); font: 600 0.56rem/1.2 var(--sc-font-text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-align: center; }
.chart__table button { width: 100%; height: 100%; min-height: 2.6rem; padding: 0; border: 0; background: var(--cc2); color: var(--white); font: 600 0.7rem/1.1 var(--sc-font-text); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); }
.chart__table button small { display: block; font-weight: 500; font-size: 0.56rem; opacity: 0.85; }
@media (hover: hover) and (pointer: fine) { .chart__table button:hover { background: var(--cc2-deep); } }
.chart__table button[aria-pressed="true"] { outline: 2px solid var(--brick); outline-offset: 1px; }
.chart__key { list-style: none; padding: 0; margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.82rem; color: var(--ink-soft); }
.chart__key li { display: flex; align-items: center; gap: 0.5rem; }
.chart__key i { width: 1.1rem; height: 0.8rem; }
.k-open { background: var(--cc2); }
.k-sold { background: rgb(34 40 30 / 0.13); }
.k-none { box-shadow: inset 0 0 0 1px rgb(34 40 30 / 0.2); }
.chart__full { margin-top: 1.6rem; }

/* ------------------------------------------------------------- the close -- */
.close { position: relative; overflow: hidden; padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 7rem); background: var(--leaf-deep); color: var(--white); }
.close__pic { position: absolute; inset: 0; }
.close__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.close__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(12 18 9 / 0.86), rgb(12 18 9 / 0.62) 45%, rgb(12 18 9 / 0.35)); }
.book { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 31rem); gap: 4rem; align-items: start; }
.book__copy { padding-top: 1rem; }
.book__logo { width: 9rem; aspect-ratio: 360 / 202; height: auto; color: var(--enamel); margin-bottom: 2rem; }
.book__facts { margin-top: 2rem; max-width: 34rem; }

/* ------------------------------------------------------- the booking card -- */
.card-wrap { position: relative; }
.tb { position: relative; overflow: hidden; background: var(--card); color: var(--ink); border-radius: 4px; box-shadow: 0 40px 80px -36px rgb(0 8 0 / 0.85); }
.tb > * { border-top: 1px solid var(--hair); }
.tb > :first-child, .tb > input, .tb > .hp { border-top: 0; }
.tb__head { position: relative; padding: 1.7rem 1.6rem 1.3rem; border-top: 0 !important; }
.tb__head::after { content: ""; position: absolute; left: 1.6rem; right: 1.6rem; top: 0; height: 3px; background: var(--brick); }
.tb__title { font: 500 2rem/1 var(--sc-font-display); color: var(--leaf); }
.tb__sub { margin-top: 0.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.tb__interest { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.6rem; background: #EEF0E2; font-size: 0.9rem; }
.tb__interest[hidden] { display: none; }
.tb__interest-x { background: none; border: 0; padding: 0.25rem; font: inherit; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; color: var(--ink-soft); }
.when { border: 0; margin: 0; padding: 1.25rem 1.6rem; min-width: 0; }
.when__legend { padding: 0; margin-bottom: 1rem; float: left; width: 100%; font: 600 0.62rem/1.2 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--brick-deep); }
.when__legend + * { clear: both; }
.when__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1.1rem; }
.when__tabs button {
  display: grid; gap: 0.3rem; text-align: left; padding: 0.65rem 0.9rem; min-height: 3.6rem;
  background: #fff; border: 1px solid var(--hair-2); border-radius: 3px; cursor: pointer; color: var(--ink);
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.when__n { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.when__v { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.when__tabs button.is-set .when__v { color: var(--ink); }
.when__tabs [aria-selected="true"] { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf), inset 0 -3px 0 var(--brick); }
@media (hover: hover) and (pointer: fine) { .when__tabs button:hover { border-color: var(--leaf); } }
.when__month { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.75rem; }
.when__dow, .when__dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.35rem; }
.when__dow { font-size: 0.7rem; color: var(--ink-soft); text-align: center; margin-bottom: 0.35rem; }
.when__dates { margin-bottom: 1.1rem; }
.when__dates button, .when__times button {
  position: relative; font: 500 0.9rem/1 var(--sc-font-text); color: var(--ink);
  background: #fff; border: 1px solid var(--hair-2); border-radius: 3px;
  cursor: pointer; min-height: 2.75rem; padding: 0.3rem 0.2rem; font-variant-numeric: tabular-nums;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.when__dates button { display: grid; place-items: center; align-content: center; gap: 0.1rem; }
.when__dates .m { font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.when__dates .pad { visibility: hidden; }
@media (hover: hover) and (pointer: fine) { .when__dates button:hover, .when__times button:not(:disabled):hover { border-color: var(--leaf); } }
.when__dates [aria-checked="true"], .when__times [aria-checked="true"] { background: var(--leaf); border-color: var(--leaf); color: var(--white); }
.when__dates [aria-checked="true"] .m { color: rgb(255 255 255 / 0.85); }
.when__dates button[data-other]::after { content: ""; position: absolute; left: 50%; bottom: 0.26rem; width: 0.32rem; height: 0.32rem; margin-left: -0.16rem; border-radius: 50%; background: var(--brick); }
.when__times { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.35rem; }
.when__times button:disabled { opacity: 0.35; cursor: not-allowed; text-decoration: line-through; }
.when__native label { display: block; margin-top: 0.75rem; font-size: 0.92rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { padding: 0.8rem 1.6rem 0.95rem; min-width: 0; }
.field + .field { border-left: 1px solid var(--hair); }
.field--wide { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--hair); }
.field label { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.45rem; }
.field input {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem; font: 400 1rem/1.3 var(--sc-font-text); color: var(--ink);
  background: #FFFEFA; border: 1px solid var(--hair-2); border-radius: 3px;
}
.field input::placeholder { color: color-mix(in oklab, var(--ink-soft) 75%, transparent); }
.field input:focus-visible { border-color: var(--leaf); background: #fff; outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #A3342A; }
.field__error { margin: 0.35rem 0 0; font-size: 0.86rem; color: #A3342A; }
.field__error:empty { display: none; }
.tb__submit { padding: 1.3rem 1.6rem 1.1rem; }
.tb__fineprint { margin-top: 1rem; font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); text-align: center; text-wrap: pretty; }
.tb__status { padding: 1rem 1.6rem; font-size: 0.93rem; }
.tb__status.is-wait { background: #EEF0E2; color: var(--ink); }
.tb__status.is-err { background: #F7E2DA; color: #7A2A14; }
.tb__status a { color: inherit; font-weight: 600; }
.tb__status:focus { outline: none; }
.tb.is-sending > :not([data-status]):not(.tb__head), .tb.is-done > :not([data-status]) { display: none; }
.tb.is-sending .tb__status { padding: 2rem 1.75rem; font-size: 1.1rem; line-height: 1.55; }
.tb__status.is-ok { padding: 2.6rem 2rem 2.4rem; background: var(--card); color: var(--ink); font-size: 1.02rem; line-height: 1.65; animation: settle 800ms var(--ease) both; }
.tb__status.is-ok strong { display: block; margin-bottom: 0.6rem; font: 500 2rem/1.1 var(--sc-font-display); color: var(--leaf); }
.ok-mark { display: block; width: 4.6rem; height: 3rem; margin-bottom: 1.1rem; overflow: visible; }
.ok-mark rect { fill: var(--board); }
.ok-mark path { fill: none; stroke: var(--chalk); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: tick 700ms 200ms cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes slowin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ footer -- */
.foot { position: relative; padding: 2.25rem var(--gut) 2.75rem; font-size: 0.86rem; background: var(--leaf-deep); color: rgb(255 255 255 / 0.8); }
.foot__lines { text-align: center; }
.foot__lines p { line-height: 1.7; }
.foot__lines p + p { margin-top: 0.25rem; }
.foot__lines span { white-space: nowrap; }
.foot a { color: var(--white); text-decoration-color: var(--chalk-y); text-underline-offset: 0.25em; }

/* ----------------------------------------------------------------- dialogs -- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--card); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6); }
dialog::backdrop { background: rgb(12 18 9 / 0.86); }
.dlg-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 1rem 0.8rem 1.4rem; border-bottom: 1px solid var(--hair); }
.dlg-title { font: 500 1.1rem/1.3 var(--sc-font-display); color: var(--leaf); }
.dlg-close { min-height: 2.75rem; padding: 0.4rem 1.2rem; cursor: pointer; background: var(--leaf); color: var(--white); border: 0; border-radius: 999px; font: 600 0.64rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; }
.viewer { width: calc(100vw - 2rem); height: calc(100svh - 2rem); max-width: none; max-height: none; }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__body { overflow: auto; background: #fff; display: grid; place-items: start center; }
.viewer__body img { display: block; width: auto; max-width: none; height: auto; }
.viewer.is-fit .viewer__body img { width: 100%; max-width: 100%; cursor: zoom-in; }
.viewer:not(.is-fit) .viewer__body img { cursor: zoom-out; }

/* ------------------------------------------------------------------ tablet -- */
@media (max-width: 1100px) {
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chart__blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cc2, .plans__grid, .site__grid { grid-template-columns: minmax(0, 1fr); }
  .site__plan, .around__map { position: static; }
}

/* ------------------------------------------------------------------- phone -- */
@media (max-width: 860px) {
  .bar { padding: 0.6rem 0.75rem 0; }
  .sign__plate { min-width: 0; padding: 0.4rem 0.7rem; column-gap: 0.55rem; }
  .sign__room { font-size: 0.95rem; }
  .sign__hall i { width: 5px; height: 8px; }
  .pill { min-height: 2.75rem; padding: 0 1rem; font-size: 0.62rem; }
  .hero__plate, .hero__canopy { object-position: 60% 40%; }
  .hero__logo { width: 9.5rem; }
  .hero__addr { font-size: 0.56rem; }
  .hero__scrim { height: 78%; }
  .hero__foot { bottom: 1.6rem; gap: 0.9rem; }
  .hero__facts { font-size: 0.84rem; gap: 0.2rem 1.2rem; }
  .hero__acts .btn { flex: 1 1 auto; }
  .notice__grid, .history__grid, .geo__grid, .around__grid, .bio__grid, .staff__grid, .book, .ebro__grid { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
  .history__copy { position: static; }
  .memo { transform: none; padding: 2rem 1.3rem 1.4rem; }
  .gable { height: 72svh; min-height: 24rem; }
  .gable img { object-position: 46% 72%; }
  .blind--a img, .blind--b img { aspect-ratio: 16 / 10; }
  .board__stage { padding: 4.4rem 0.5rem 0.75rem; }
  .board__lines { right: 1.2rem; bottom: 6.2rem; }
  .board__go { left: clamp(1.4rem, 4vw, 3.4rem); right: auto; bottom: 2.4rem; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
  .door__no { font-size: 1.35rem; }
  .door .btn { justify-self: stretch; }
  .inside__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .ig .ig__f { aspect-ratio: 4 / 3; height: auto; }
  .ig--a, .ig--c { grid-column: 1 / -1; grid-row: auto; }
  .ig--b, .ig--d, .ig--e { grid-column: auto; grid-row: auto; }
  .ig--b { grid-column: 1 / -1; }
  .tel { --th: 24svh; }
  .stop { width: 72vw; }
  .stop--here { width: 60vw; }
  .lists { grid-template-columns: minmax(0, 1fr); }
  .counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bio__pics, .field__grid, .eca__grid { grid-template-columns: minmax(0, 1fr); }
  .bp, .fp, .ep { grid-column: 1 / -1 !important; grid-row: auto !important; margin-top: 0 !important; }
  .bp--b .ig__f, .fp--b .ig__f { aspect-ratio: 4 / 3; height: auto; }
  .ep img, .ep--b img { aspect-ratio: 16 / 10; height: auto; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .papers { grid-template-columns: minmax(0, 1fr); }
  .key__list { columns: 1; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .chart__blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 0.8rem; }
  .chart__table--old td { height: 2.4rem; }
  .chart__table button { min-height: 2.4rem; font-size: 0.62rem; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .field + .field { border-left: 0; border-top: 1px solid var(--hair); }
  .when { padding: 1.1rem 1.1rem; }
  .tb__head, .tb__submit, .field, .tb__interest { padding-left: 1.1rem; padding-right: 1.1rem; }
  .close__pic img { object-position: 22% 50%; }
}

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .js [data-blind] > img { clip-path: none; }
  .js [data-blind]::before { display: none; }
  .door__leaf:hover { transform: none; }
}

/* reduced motion: nothing is held */
.board.is-static .board__stage { position: relative; height: auto; min-height: 92svh; aspect-ratio: auto; }
.board.is-static .board__frame { height: 86svh; }
.tel.is-static .tel__stage { position: relative; height: auto; overflow-x: auto; }
.tel.is-static .tel__rail { width: max-content; }
