/* Scrub! — the washed-window palette, the two hands of type and the measures every page shares */
:root {
  --washed-window: #b9e4f3;
  --petrol: #0a2c3f;
  --biro: #153bff;
  --receipt: #93cde6;
  --plan-lettering: 'Comfortaa', ui-rounded, 'Trebuchet MS', sans-serif;
  --pen-text: 'Alegreya Sans', 'Gill Sans', Calibri, sans-serif;
  --corner-arm: .875rem;
  --corner-weight: .125rem;
  --baseboard: .1875rem;
  --plan-tilt: -7deg;
  --hall-width: 33%;
  --phone-hall: 1.625rem;
  --house-width: 86rem;
  --reach: clamp(1rem, 4vw, 3rem);
  --storey: clamp(2.5rem, 9vh, 6.5rem);
  --swing: .34s cubic-bezier(.3, .7, .2, 1);
}

/* ---------- CHROME ---------- */

/* Skip link: .jump--main, shown on focus */
.jump--main { position: absolute; left: .5rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--petrol); color: var(--washed-window); }
.jump--main:focus { top: .5rem; }

/* Consent: #cookie-note.notice--strip, a full-width petrol strip at the very top, above the path; .notice--none (nothing to consent to) never shows */
#cookie-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; padding: .35rem var(--reach); background: var(--petrol); color: var(--washed-window); font-size: 1rem; line-height: 1.35; }
#cookie-note[hidden] { display: none; }
#cookie-note.notice--none { display: none; }
#cookie-note p { flex: 1 1 100%; margin: .3rem 0 0; }
#cookie-note a, #cookie-note button { color: var(--washed-window); text-decoration: underline; text-underline-offset: .2em; }
#cookie-note button { min-height: 2.75rem; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
#cookie-note :focus-visible { outline-color: var(--washed-window); }

/* Header: .path--top holds the file path (.path--steps), the slash disclosure (.path--slash) and the section list (#rooms.path--rooms) */
.path--top { position: relative; z-index: 5; display: grid; grid-template-areas: "trail slash" "rooms rooms"; grid-template-columns: auto 1fr; align-items: center; column-gap: .6rem; max-width: var(--house-width); margin-inline: auto; padding: .6rem var(--reach) 0; }
.path--trail { grid-area: trail; }
.path--steps { display: flex; flex-wrap: wrap; align-items: center; gap: 0 .5rem; margin: 0; padding: 0; list-style: none; font-size: 1.0625rem; }
.path--steps li { display: flex; align-items: center; gap: .5rem; white-space: nowrap; }
.path--steps li + li::before { content: "/"; opacity: .6; }
.path--steps a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: var(--petrol); text-decoration: none; }
.path--steps a:hover, .path--steps a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--biro); text-underline-offset: .25em; text-decoration-thickness: .1em; }
.path--mark { width: 1.5rem; height: 1.5rem; flex: none; }
.path--slash { grid-area: slash; justify-self: start; display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: 0 .4rem; border: 0; background: none; color: var(--biro); font: 1rem var(--pen-text); cursor: pointer; }
.path--slash::before { content: ""; width: .14rem; height: 1.3rem; background: currentColor; transform: rotate(22deg); transition: transform var(--swing); }
.path--slash[aria-expanded="true"]::before { transform: rotate(-22deg); }
.path--rooms { grid-area: rooms; }
.path--rooms ul { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin: 0; padding: .2rem 0 .4rem; list-style: none; }
.js .path--rooms[data-state="shut"] { display: none; }
.path--rooms a { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; color: var(--petrol); font-size: 1.125rem; text-decoration: none; }
.path--rooms a::before { content: "/"; color: var(--biro); }
.path--rooms a:hover, .path--rooms a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--biro); }

/* Offer: #nudge.offer--disc — on phones one compact line of text docked in the flow under the path (no ring); on desks a pinned turning disc; always on solid sky. .offer--line wraps the sentence and its link: one inline run on phones, transparent to the grid on desks */
#nudge { display: grid; grid-template-areas: "words shut" "hub shut"; grid-template-columns: 1fr auto; align-items: center; gap: 0 .5rem; padding: .45rem .7rem; background-color: var(--washed-window); color: var(--petrol); opacity: 0; visibility: hidden; transform: translateY(-.75rem); transition: opacity var(--swing), transform var(--swing), max-height var(--swing), padding var(--swing), visibility 0s .34s; }
#nudge.is-in { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
#nudge[hidden] { display: none; }
@media (max-width: 47.9375rem) {
  #nudge { position: relative; z-index: 4; margin: 0 var(--reach); max-height: 0; padding: 0; overflow: hidden; }
  #nudge.is-in { max-height: 9rem; padding-block: .15rem; }
}
.offer--line { display: contents; }
.offer--ring, .offer--hold { display: none; }
.offer--words { grid-area: words; margin: 0; font-size: .95rem; line-height: 1.3; }
.offer--hub { grid-area: hub; justify-self: start; display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--biro); font-size: .95rem; }
.offer--knob { min-width: 2.75rem; min-height: 2.75rem; padding: 0 .3rem; border: 0; background: none; color: var(--petrol); font: .95rem var(--pen-text); cursor: pointer; }
.offer--shut { grid-area: shut; font-size: 1.5rem; line-height: 1; }
.offer--ring text { font: 500 7.2px var(--plan-lettering); fill: var(--biro); }
@keyframes offer-turn { to { transform: rotate(1turn); } }
/* Phones, every page (the home page's docked disc included): the stationary sentence alone, its link inline, the close beside it.
   Marked important so that no page stylesheet can bring the ring back at phone width. */
@media (max-width: 47.9375rem) {
  #nudge { grid-template-areas: "line shut" !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: start !important; }
  #nudge .offer--ring, #nudge .offer--hold { display: none !important; }
  #nudge .offer--line { display: block !important; grid-area: line !important; min-width: 0; padding-block: .6rem; font-size: 1rem; line-height: 1.35; }
  #nudge .offer--words { display: inline !important; position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip-path: none !important; margin: 0 !important; font-size: 1rem; line-height: 1.35; }
  #nudge .offer--hub { display: inline !important; position: static !important; min-height: 0; max-width: none; padding-block: .8rem; font-size: 1rem; line-height: 1.35; text-align: left; }
  #nudge .offer--shut { grid-area: shut !important; display: inline-block !important; }
}

/* Call strip: .dial--pin, one tap to call on phones, a full-width petrol strip along the bottom edge; body padding reserves its room */
.dial--pin { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .9rem; background: var(--petrol); color: var(--washed-window); font-size: 1rem; text-underline-offset: .2em; }

/* Footer: .slip--foot centres one narrow receipt (.slip--paper) with torn edges; .slip--name drifts while in view */
.slip--foot { padding: var(--storey) var(--reach); }
.slip--paper { position: relative; max-width: 23rem; margin-inline: auto; padding: 1.75rem 1.4rem 1.9rem; background: var(--receipt); color: var(--petrol); font-size: 1rem; line-height: 1.4; }
.slip--paper::before, .slip--paper::after { content: ""; position: absolute; left: 0; right: 0; height: .5rem; background: conic-gradient(from 135deg at 50% 0, var(--receipt) 90deg, #0000 0) 0 0 / 1rem 100%; }
.slip--paper::before { top: -.5rem; }
.slip--paper::after { bottom: -.5rem; background: conic-gradient(from -45deg at 50% 100%, var(--receipt) 90deg, #0000 0) 0 0 / 1rem 100%; }
.slip--name { overflow: hidden; margin: 0; font: 500 1.25rem/1.35 var(--plan-lettering); }
.slip--name span { display: inline-block; padding-right: 1rem; }
.slip--name span[data-state="drifting"] { animation: slip-drift 16s ease-in-out infinite alternate; }
[data-motion="still"] .slip--name span { animation: none; }
@keyframes slip-drift { to { transform: translateX(.9rem); } }
.slip--city { margin: .2rem 0 .9rem; }
.slip--address { font-style: normal; }
.slip--tally { margin: 1rem 0 0; padding: 0; list-style: none; }
.slip--tally li { display: flex; align-items: baseline; gap: .4rem; }
.slip--dots { flex: 1; min-width: 1rem; border-bottom: .125rem dotted currentColor; opacity: .55; }
.slip--tally a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.slip--hours { margin: .5rem 0 1rem; }
.slip--pages { display: flex; flex-wrap: wrap; gap: 0 .9rem; margin: 0; padding: .4rem 0; list-style: none; border-top: .125rem dashed rgba(10, 44, 63, .35); }
.slip--pages a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--petrol); }
.slip--knobs { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: .4rem 0 0; }
.slip--knob { min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--biro); font: 1rem var(--pen-text); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.slip--knob[aria-pressed="true"] { color: var(--petrol); }

/* ---------- SHARED PIECES ---------- */

/* Corner marks, the device's frame: .door--frame on any mount; .knob--press and .knob--toggle carry them too; add .door--biro for electric marks */
.door--frame, .knob--press, .knob--toggle {
  --corner-ink: var(--petrol);
  background-image: linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink)), linear-gradient(var(--corner-ink), var(--corner-ink));
  background-repeat: no-repeat;
  background-size: var(--corner-arm) var(--corner-weight), var(--corner-weight) var(--corner-arm), var(--corner-arm) var(--corner-weight), var(--corner-weight) var(--corner-arm), var(--corner-arm) var(--corner-weight), var(--corner-weight) var(--corner-arm), var(--corner-arm) var(--corner-weight), var(--corner-weight) var(--corner-arm);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.door--frame { display: block; padding: calc(var(--corner-arm) * .6); }
.door--biro, .knob--press, #nudge { --corner-ink: var(--biro); }

/* Section band: .storey--band gives every section its width and vertical rhythm */
.storey--band { max-width: var(--house-width); margin-inline: auto; padding: var(--storey) var(--reach); }

/* Hall layout: .storey--run puts the drawn hall (.storey--hall) beside the spread (.storey--spread); a 26px gutter on phones */
.storey--run { display: grid; grid-template-areas: "hall spread"; grid-template-columns: var(--phone-hall) minmax(0, 1fr); column-gap: .9rem; }
.storey--hall { grid-area: hall; }
.storey--spread { grid-area: spread; min-width: 0; }

/* Hall plan SVG: svg.hall--plan with .hall--floor, .hall--wall, .hall--leaf (door leaf) and .hall--swing; a [data-door] group with data-state="open" swings */
.hall--plan { display: block; width: 100%; height: 100%; overflow: visible; }
.hall--plan * { vector-effect: non-scaling-stroke; }
.hall--floor { fill: var(--receipt); opacity: .6; }
.hall--wall { fill: none; stroke: var(--petrol); stroke-width: 2.5; stroke-linecap: square; }
.hall--leaf { fill: none; stroke: var(--petrol); stroke-width: 2; transform-box: fill-box; transform-origin: 0 0; transition: transform var(--swing); }
.hall--swing { fill: none; stroke: var(--biro); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0; transition: opacity var(--swing); }
[data-door][data-state="open"] .hall--leaf { transform: rotate(-80deg); stroke: var(--biro); }
[data-door][data-state="open"] .hall--swing { opacity: 1; }

/* Page opening: h1.room--title (23px plan label), p.entry--lead under it, a.entry--call the underlined call link */
.room--title, .room--head { margin: 0; font-family: var(--plan-lettering); font-weight: 500; letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
.room--title { font-size: 1.4375rem; max-width: 24ch; }
/* Section and service heads: h2.room--head, 24–30px, tilted like a plan label on desks */
.room--head { font-size: clamp(1.5rem, 1.15rem + 1vw, 1.875rem); max-width: 22ch; }
.entry--lead { max-width: 38rem; margin: .8rem 0 0; font-size: 1.1875rem; line-height: 1.45; }
.entry--call { display: inline-flex; align-items: center; min-height: 2.75rem; margin-top: .3rem; color: var(--biro); font-size: 1.25rem; text-decoration-thickness: .1em; text-underline-offset: .22em; }

/* Photograph in a mount: figure.view--photo (add .door--frame for corner marks) with figcaption.view--words */
.view--photo { margin: 0; min-width: 0; }
.view--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.view--words { margin-top: .55rem; font-size: .95rem; line-height: 1.35; }

/* Baseboard rule: hr.sill--rule, the one shared line that pictures and plans stand on */
.sill--rule { height: var(--baseboard); margin: 0; border: 0; background: var(--petrol); }

/* Primary action: a.knob--press, lettering inside electric corner marks */
.knob--press { display: inline-flex; align-items: center; min-height: 3rem; padding: .7rem 1.3rem; color: var(--biro); font: 500 1.0625rem var(--plan-lettering); text-decoration: none; }
.knob--press:hover { text-decoration: underline; text-underline-offset: .25em; }

/* Toggles: button.knob--toggle with aria-pressed inside a .knob--row [data-picks="name"]; each carries data-pick="word" */
.knob--row { display: flex; gap: .6rem; overflow-x: auto; padding: .2rem .1rem .5rem; scrollbar-width: thin; }
.knob--toggle { flex: none; min-height: 2.9rem; padding: .6rem 1.05rem; border: 0; background-color: transparent; color: var(--petrol); font: 1.0625rem var(--pen-text); text-align: left; cursor: pointer; transition: background-color var(--swing); }
.knob--toggle:hover { --corner-ink: var(--biro); }
.knob--toggle[aria-pressed="true"] { --corner-ink: var(--biro); background-color: var(--receipt); color: var(--biro); }

/* Live hours line written by script beside [data-hours]: p.clock--now */
.clock--now { margin: .4rem 0 0; color: var(--biro); font-size: 1.0625rem; }

/* Settle on scroll: add data-settle to a block below the first window; script sets data-state waiting → settled */
[data-settle] { transition: opacity .5s ease-out, transform .5s ease-out; }
[data-settle][data-state="waiting"] { opacity: 0; transform: translateY(1rem); }

/* Words for screen readers only: .unseen--text */
.unseen--text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- DESK ---------- */
@media (min-width: 48rem) {
  #cookie-note p { flex: 1 1 30rem; margin: 0; }
  .room--title, .room--head { transform: rotate(var(--plan-tilt)); transform-origin: 0 100%; margin-block: 1.85em .35em; }
  .storey--run { grid-template-areas: "hall spread"; grid-template-columns: var(--hall-width) minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
  .knob--row { flex-wrap: wrap; overflow: visible; }
  .dial--pin { display: none; }
  #nudge { position: fixed; z-index: 30; left: auto; right: 1.25rem; bottom: 1.25rem; width: 12.5rem; grid-template-areas: "ring ring" "hold shut"; grid-template-columns: 1fr auto; padding: .7rem; transform: translateY(2rem) rotate(-7deg); }
  #nudge.is-in { transform: none; }
  .offer--ring { grid-area: ring; display: block; width: 100%; animation: offer-turn 60s linear infinite; }
  #nudge:hover .offer--ring, #nudge:focus-within .offer--ring, #nudge[data-state="held"] .offer--ring, [data-motion="still"] .offer--ring { animation-play-state: paused; }
  .offer--words { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .offer--hub { grid-area: ring; place-self: center; position: relative; z-index: 1; max-width: 6.25rem; justify-content: center; text-align: center; line-height: 1.25; }
  .offer--hold { grid-area: hold; display: inline-flex; align-items: center; justify-self: start; text-decoration: underline; }
  .offer--hold[aria-pressed="true"] { color: var(--biro); }
  .slip--foot { padding-bottom: var(--storey); }
  body { font-size: 1.125rem; }
}

/* ---------- STILL ---------- */
@media (prefers-reduced-motion: reduce) {
  #nudge, #nudge.is-in { transition: none; transform: none; }
  .offer--ring, .slip--name span[data-state="drifting"] { animation: none; }
  [data-settle], .hall--leaf, .hall--swing, .path--slash::before, .knob--toggle { transition: none; }
  [data-settle][data-state="waiting"] { opacity: 1; transform: none; }
}

/* ---------- BARE ELEMENTS ---------- */
html { background: var(--washed-window); color: var(--petrol); -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-bottom: 2.75rem; font: 1.0625rem/1.5 var(--pen-text); overflow-x: hidden; }
@media (min-width: 48rem) { body { padding-bottom: 0; } }
h1, h2, h3 { font-family: var(--plan-lettering); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--biro); text-underline-offset: .18em; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button { color: inherit; }
:focus-visible { outline: .15rem solid var(--biro); outline-offset: .2rem; }
::selection { background: var(--petrol); color: var(--washed-window); }

@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
nav a, nav button, header a, header button {
  position: relative;
  z-index: 2;
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
html,body{overflow-x:clip}
