/* AFTER HOURS — a fictional venue website concept by Veyrform.
   Printed-poster identity: warm paper, near-black planes, one orange sun.
   Fonts are self-hosted (SIL OFL; licences in /fonts). */

@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-variable.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-variable-italic.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: italic; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #f3eee4;
  --paper-2: #e9e1d2;
  --paper-3: #ddd3c1;
  --ink: #151512;
  --ink-2: #2b2a25;
  --ink-3: #4a473f;
  --muted: #57534a;
  --orange: #f64b1f;
  --on-dark: #f3eee4;
  --on-dark-2: #c4bdaf;

  --sans: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(18px, 4.4vw, 72px);
  --header-h: 64px;
  --strip-h: 44px;

  --ease: cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --quick: 150ms;
  --std: 350ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scrollbar-gutter: stable;
  background: var(--paper);
}
html.anim { scroll-behavior: smooth; }
html.dlg-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, .3vw + 14.8px, 18px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
b, strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.enquire :focus-visible, .foot :focus-visible, .strip :focus-visible, .dlg-art :focus-visible { outline-color: var(--orange); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px;
  background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Shared type and controls ---------- */

.eyebrow {
  display: flex; align-items: center; gap: .9em;
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  font: 500 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow::after { content: ''; flex: 0 0 2.6em; height: 2px; background: currentColor; order: 1; }
.eyebrow .eb-no {
  display: inline-grid; place-items: center; min-width: 2.6em; height: 2.6em; padding: 0 .4em;
  background: var(--ink); color: var(--paper); border-radius: 999px;
}
.eyebrow-dark .eb-no { background: var(--orange); color: var(--ink); }

.sec-title {
  font-weight: 850; font-stretch: 74%;
  font-size: clamp(2.8rem, 7.6vw, 7.8rem);
  line-height: .86; letter-spacing: -.022em; text-transform: uppercase;
}
.sec-lede { max-width: 36ch; margin-top: clamp(18px, 2vw, 26px); color: var(--muted); font-size: 1.04rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid var(--ink); border-radius: 2px;
  font-weight: 700; font-size: .96rem; letter-spacing: .005em; text-decoration: none;
  cursor: pointer; background: transparent;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease), border-color var(--quick) var(--ease), transform var(--quick) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--std) var(--ease); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-line { color: var(--ink); }
.btn-orange { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.btn-line-light { border-color: rgba(243, 238, 228, .5); color: var(--on-dark); }
@media (hover: hover) {
  .btn-ink:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
  .btn-line:hover { background: var(--ink); color: var(--paper); }
  .btn-orange:hover { background: var(--paper); border-color: var(--paper); }
  .btn-line-light:hover { border-color: var(--on-dark); background: var(--on-dark); color: var(--ink); }
  .btn:hover svg { transform: translateX(3px); }
  .btn-ink[href^="#"]:hover svg { transform: translateY(3px); }
}

/* ---------- Return strip ---------- */

.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--strip-h); padding: 0 var(--gutter);
  background: var(--ink); color: var(--on-dark-2);
  font: 500 .72rem/1.3 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.strip a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--on-dark); text-decoration: none;
}
.strip a svg { width: 16px; height: 16px; }
.strip a:hover { color: var(--orange); }
.strip-note { text-align: center; }
@media (max-width: 720px) { .strip-cta, .hide-sm { display: none !important; } }

/* ---------- Header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
  min-height: var(--header-h); padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 1px solid rgba(21, 21, 18, .16);
}
.brand { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wm {
  display: inline-flex; align-items: center; min-height: 40px;
  text-decoration: none; color: var(--ink);
}
.wm-type {
  font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  font-size: 1.62rem; line-height: 1; letter-spacing: -.012em; white-space: nowrap;
}
.wm-stair { display: inline-block; width: .56em; height: .56em; margin: 0 .1em 0 .08em; fill: currentColor; vertical-align: baseline; }
.wm-o {
  display: inline-block; width: .68em; height: .68em; margin: 0 .03em; border-radius: 50%;
  vertical-align: baseline;
  background: linear-gradient(var(--orange) 0 58%, var(--wm-cut, var(--paper)) 58% 67%, var(--orange) 67%);
}
.wm-note {
  margin-top: 2px;
  font: 500 .62rem/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 18px); margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px;
  font-weight: 650; font-size: .95rem; text-decoration: none;
}
.site-nav a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 9px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform var(--std) var(--ease);
}
.site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.site-nav .nav-cta { padding: 0 16px; background: var(--ink); color: var(--paper); border-radius: 2px; }
.site-nav .nav-cta:hover { background: var(--orange); color: var(--ink); }

.head-tools { display: flex; align-items: center; gap: 8px; }
.motion-btn, .menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1.5px solid rgba(21, 21, 18, .38); border-radius: 999px; background: transparent;
  font: 500 .7rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: border-color var(--quick) var(--ease), background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.motion-btn:hover, .menu-btn:hover { border-color: var(--ink); }
.motion-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.motion-btn:disabled { cursor: not-allowed; opacity: .62; }
.mb-ico { position: relative; width: 12px; height: 12px; flex: none; }
.mb-ico::before, .mb-ico::after { content: ''; position: absolute; top: 1px; bottom: 1px; width: 3.5px; background: currentColor; }
.mb-ico::before { left: 1.5px; }
.mb-ico::after { right: 1.5px; }
.motion-btn[aria-pressed="true"] .mb-ico::before { left: 2px; top: 0; bottom: 0; width: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.motion-btn[aria-pressed="true"] .mb-ico::after { display: none; }
.menu-lines { position: relative; width: 16px; height: 10px; }
.menu-lines::before, .menu-lines::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform var(--std) var(--ease); }
.menu-lines::before { top: 0; }
.menu-lines::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-lines::before { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines::after { transform: translateY(-4px) rotate(-45deg); }

@media (min-width: 860px) { .menu-btn { display: none !important; } }

@media (max-width: 859px) {
  :root { --header-h: 60px; }
  .wm-type { font-size: 1.42rem; }
  .mb-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .motion-btn { padding: 0; justify-content: center; }
  .head-tools { margin-left: auto; }
  /* Without JS the nav wraps under the brand as a plain row. */
  html:not(.menu-ready) { scroll-padding-top: 132px; }
  html:not(.menu-ready) .site-head { flex-wrap: wrap; padding-top: 6px; padding-bottom: 4px; }
  html:not(.menu-ready) .site-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  html:not(.menu-ready) .site-nav ul { gap: 4px; }
  .menu-ready .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    padding: 8px var(--gutter) 22px; background: var(--paper);
    border-bottom: 2px solid var(--ink);
    display: none;
  }
  .menu-ready .site-nav.is-open { display: block; }
  .menu-ready .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-ready .site-nav li + li { border-top: 1px solid rgba(21, 21, 18, .14); }
  .menu-ready .site-nav a { width: 100%; min-height: 56px; padding: 0; font-weight: 850; font-stretch: 76%; font-size: 1.9rem; text-transform: uppercase; }
  .menu-ready .site-nav a::after { display: none; }
  .menu-ready .site-nav .nav-cta { margin-top: 14px; justify-content: center; font-size: 1.2rem; padding: 0 16px; }
  .anim.menu-ready .site-nav.is-open { animation: drop-in .28s var(--ease-out) both; }
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 400px) {
  .site-head { gap: 10px; }
  .wm-note { white-space: normal; font-size: .56rem; letter-spacing: .05em; }
  .menu-btn { padding: 0 10px; }
}

/* ---------- Hero poster ---------- */

.hero { padding: clamp(14px, 2vw, 26px) var(--gutter) 0; }

.art {
  position: relative; isolation: isolate; overflow: hidden;
  container-type: inline-size;
  width: 100%;
  width: clamp(min(100%, 720px), (100vh - 14rem) * 1.6667, 100%);
  width: clamp(min(100%, 720px), (100svh - 14rem) * 1.6667, 100%);
  margin-inline: auto;
  aspect-ratio: 16 / 9.6;
  background: var(--paper);
  --d: 1.35cqw;
}
.layer { position: absolute; }
.anim .layer {
  translate: calc(var(--px, 0) * var(--dx, 0px)) calc(var(--py, 0) * var(--dy, 0px));
  transition: translate 1.1s var(--ease-out);
}
.anim .l-sun, .anim .l-type, .anim .l-slab, .anim .l-mono { will-change: transform; }

.l-grid, .l-shadow, .l-meta { inset: 0; }
.rule { position: absolute; background: var(--ink); }
.rule-v { top: 0; bottom: 0; left: var(--x); width: 1px; opacity: .08; }
.rule-h { left: 0; right: 0; top: 88%; height: max(1.5px, .14cqw); transform-origin: left center; }

.shadow {
  position: absolute; left: 4%; width: 32.5%; top: 88%; bottom: 0;
  background: var(--paper-3);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  transform-origin: right center;
}

.l-sun { left: 52%; top: 23%; width: 30%; aspect-ratio: 1; }
.sun { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); }
.sun-ring {
  position: absolute; top: -.7cqw; bottom: .7cqw; left: 1.1cqw; right: -1.1cqw;
  border-radius: 50%; border: max(1.5px, .2cqw) solid var(--ink); mix-blend-mode: multiply;
}

.l-type { left: 2.4%; top: 2.6%; z-index: 3; }
.pt {
  font-weight: 850; font-stretch: 76%; font-size: 19cqw;
  line-height: .78; letter-spacing: -.034em; text-transform: uppercase; color: var(--ink);
}
.pt-line { display: block; overflow: hidden; padding-top: .055em; }
.pt-in { display: block; }
.pt-o {
  display: inline-block; width: .68em; height: .68em; margin: 0 .02em 0 .01em; border-radius: 50%;
  vertical-align: baseline;
  background: linear-gradient(var(--orange) 0 58%, var(--paper) 58% 66%, var(--orange) 66%);
}

/* Architectonic stair: front face + lit top face + shaded side face, extruded up-right. */
.l-slab, .l-mono { bottom: -30%; z-index: 4; }
.s1 { left: 36%; right: -6%; top: 88%; }
.s2 { left: 45%; right: 4%; top: 79.5%; }
.s3 { left: 53%; right: 9.5%; top: 71%; }
.s4 { left: 60%; right: 15.5%; top: 62.5%; }
.l-mono { left: 89.5%; width: 3.2%; top: 21%; z-index: 5; }
.slab { position: absolute; inset: 0; background: linear-gradient(180deg, #1d1d19, var(--ink) 40%); }
.slab::before {
  content: ''; position: absolute; left: 0; right: calc(-1 * var(--d)); top: calc(-1 * var(--d)); height: var(--d);
  background: var(--ink-3);
  clip-path: polygon(0 100%, var(--d) 0, 100% 0, calc(100% - var(--d)) 100%);
}
.slab::after {
  content: ''; position: absolute; top: calc(-1 * var(--d)); right: calc(-1 * var(--d)); bottom: var(--d); width: var(--d);
  background: var(--ink-2);
  clip-path: polygon(0 var(--d), 100% 0, 100% 100%, 0 100%);
}

.l-meta { z-index: 6; pointer-events: none; }
.l-meta, .l-meta * { font-family: var(--mono); font-weight: 500; text-transform: uppercase; }
.m-code {
  position: absolute; right: 3%; top: 4%; text-align: right;
  font-size: max(9px, .86cqw); line-height: 1.45; letter-spacing: .06em;
}
.colour-bar { position: absolute; right: 3%; top: 13.5%; display: flex; gap: .3cqw; }
.colour-bar i { width: max(8px, .9cqw); height: max(8px, .9cqw); }
.colour-bar i:nth-child(1) { background: var(--ink); }
.colour-bar i:nth-child(2) { background: var(--orange); }
.colour-bar i:nth-child(3) { background: var(--ink-3); }
.colour-bar i:nth-child(4) { background: var(--paper-3); }
.lineup { position: absolute; left: 2.8%; top: 59%; width: 31%; font-size: max(9px, .98cqw); letter-spacing: .04em; }
.lu-h { padding-bottom: .5em; border-bottom: 1.5px solid var(--ink); font-size: .86em; }
.lineup ol { margin: 0; padding: 0; list-style: none; }
.lineup li { display: grid; grid-template-columns: 3.4em 4.6em 1fr; padding: .32em 0; line-height: 1.3; }
.lineup li.lu-sat { border-top: 1px solid rgba(21, 21, 18, .35); margin-top: .2em; padding-top: .5em; }
.lineup li span:first-child { position: relative; padding-left: 1em; }
.lineup li span:first-child:not(:empty)::before { content: ''; position: absolute; left: 0; top: .28em; width: .62em; height: .62em; border-radius: 50%; background: var(--orange); }
.m-vert {
  position: absolute; right: 1%; top: 31%; writing-mode: vertical-rl;
  font-size: max(8px, .74cqw); letter-spacing: .12em;
}
.reg { position: absolute; width: max(12px, 1.6cqw); height: max(12px, 1.6cqw); fill: none; stroke: var(--ink); stroke-width: 1.2; }
.reg-tr { right: .9%; top: 1.4%; }
.reg-bl { left: .9%; bottom: 1.6%; }

/* Portrait composition: recomposed, not squeezed. */
@media (max-width: 759px) {
  .art { width: 100%; aspect-ratio: 4 / 5.3; --d: 2cqw; }
  .pt { font-size: 25.5cqw; }
  .l-type { left: 3.6%; top: 2.2%; }
  .l-sun { left: 34%; top: 25%; width: 58%; }
  .s1 { left: 6%; right: -6%; top: 89%; }
  .s2 { left: 20%; right: 6%; top: 81%; }
  .s3 { left: 32%; right: 14%; top: 73%; }
  .s4 { left: 43%; right: 22%; top: 65%; }
  .l-mono { left: 86%; width: 4.6%; top: 46%; }
  .rule-h { top: 89%; }
  .shadow, .lineup, .reg-bl { display: none; }
  .m-code { right: 4%; top: 2.6%; font-size: max(9px, 2.3cqw); }
  .colour-bar { right: 4%; top: 11.2%; gap: .8cqw; }
  .colour-bar i { width: 2.2cqw; height: 2.2cqw; }
  .m-vert { right: 1.2%; top: 38%; font-size: max(8px, 2cqw); }
  .rule-v:nth-child(2) { display: none; }
}

.hero-foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px clamp(16px, 2.4vw, 32px);
  align-items: start;
  margin-top: clamp(14px, 1.8vw, 22px); padding: clamp(18px, 2vw, 24px) 0 clamp(36px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.hero-lede { grid-column: 1 / span 6; max-width: 34ch; font-size: clamp(1.12rem, 1.5vw, 1.45rem); line-height: 1.3; font-weight: 560; letter-spacing: -.01em; }
.hero-actions { grid-column: 7 / span 4; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-hours { grid-column: 11 / span 2; display: flex; flex-direction: column; gap: 3px; text-align: right; font: 500 .74rem/1.45 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.hero-hours b { font-weight: 500; display: inline-block; min-width: 3em; text-align: left; }
.hero-hours em { font-style: normal; color: var(--muted); margin-top: 4px; }
@media (max-width: 1099px) {
  .hero-lede { grid-column: 1 / span 7; }
  .hero-actions { grid-column: 8 / span 5; justify-content: flex-end; }
  .hero-hours { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; text-align: left; }
}
@media (max-width: 680px) {
  .hero-lede, .hero-actions { grid-column: 1 / -1; }
  .hero-actions { justify-content: stretch; }
  .hero-actions .btn { flex: 1 1 160px; }
}

/* Intro guard: hidden only until the timeline has set its from-states (2.6s failsafe in <head>). */
.intro .art, .intro .hero-foot, .intro .site-head .wm { visibility: hidden; }
@media (max-width: 359px) { .art .m-code { display: none; } }

/* ---------- 01 The idea ---------- */

.about { padding: clamp(84px, 12vw, 180px) var(--gutter) clamp(72px, 10vw, 150px); }
.manifesto {
  max-width: 18em;
  font-weight: 720; font-stretch: 90%;
  font-size: clamp(2rem, 4.9vw, 5.1rem); line-height: 1.02; letter-spacing: -.035em;
  text-wrap: pretty;
}
.mf-mark { font-weight: 900; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.01em; }
.ph { transition: color .7s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }
.gl { display: inline-block; width: .74em; height: .74em; margin: 0 .1em 0 .12em; vertical-align: -.04em; transition: opacity .7s var(--ease); transition-delay: inherit; }
.gl-sun { border-radius: 50%; background: var(--orange); }
.gl-disc { border-radius: 50%; background: radial-gradient(circle, var(--orange) 0 24%, var(--ink) 25% 46%, var(--paper) 47% 53%, var(--ink) 54%); }
.gl-stair { fill: var(--ink); }
.anim.ready .manifesto:not(.is-in) .ph { color: rgba(21, 21, 18, .16); }
.anim.ready .manifesto:not(.is-in) .gl { opacity: .18; }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 36px);
  margin: clamp(56px, 8vw, 120px) 0 0; padding: 0; list-style: none;
}
.facts li { display: flex; align-items: flex-end; gap: 16px; padding-top: 16px; border-top: 2px solid var(--ink); }
.f-n { font-weight: 850; font-stretch: 66%; font-size: clamp(4.4rem, 10vw, 10rem); line-height: .78; letter-spacing: -.04em; }
.f-l { display: flex; flex-direction: column; gap: 2px; padding-bottom: .4em; font-size: .92rem; line-height: 1.35; color: var(--muted); max-width: 22ch; }
.f-l b { font: 500 .74rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.about-note { margin-top: clamp(28px, 3vw, 44px); max-width: 48ch; font-size: .92rem; color: var(--muted); }
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { padding: 14px 0; border-top-width: 1px; }
  .facts li:first-child { border-top-width: 2px; }
}

/* Generic reveal (JS + motion only; content is visible otherwise). */
.reveal { transition: opacity .55s var(--ease), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.anim.ready .reveal:not(.is-in) { opacity: 0; transform: translateY(28px); }

/* ---------- 02 Programme ---------- */

.programme { padding: clamp(72px, 10vw, 150px) var(--gutter); border-top: 2px solid var(--ink); }
.prog-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
@media (max-width: 900px) { .prog-top { grid-template-columns: 1fr; } }

.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--ink); background: var(--paper); }
.tab-plate {
  position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--ink);
  transition: transform .38s var(--ease);
}
.tabs[data-active="sat"] .tab-plate { transform: translateX(100%); }
.tab {
  position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-height: 84px; padding: 14px clamp(14px, 1.8vw, 22px);
  border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink);
  transition: color .3s var(--ease);
}
.tab + .tab { border-left: 2px solid var(--ink); }
.tab[aria-selected="true"] { color: var(--paper); }
.tab:focus-visible { outline: 3px solid var(--orange); outline-offset: -7px; }
.tab-day { font-weight: 850; font-stretch: 74%; font-size: clamp(1.7rem, 2.8vw, 2.6rem); line-height: .9; text-transform: uppercase; letter-spacing: -.01em; }
.tab-day::after {
  content: ''; display: inline-block; width: .38em; height: .38em; margin-left: .22em; border-radius: 50%;
  background: var(--orange); vertical-align: .12em; transform: scale(0); transition: transform .3s var(--ease);
}
.tab[aria-selected="true"] .tab-day::after { transform: scale(1); }
.tab-span { font: 500 .68rem/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase; opacity: .88; }
@media (hover: hover) { .tab[aria-selected="false"]:hover { background: var(--paper-2); } }

.day { margin-top: clamp(30px, 4.4vw, 60px); }
.day-h { margin-bottom: 12px; font: 500 .8rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.day-h span { color: var(--muted); }
.tabs-ready .day-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tabs-ready .day { margin-top: clamp(26px, 3.4vw, 44px); }

.rows { margin: 0; padding: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.row {
  position: relative; isolation: isolate;
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr) minmax(11rem, 17rem) 4.8rem 8.6rem;
  grid-template-areas: "time name room glyph btn" "time name desc glyph btn";
  column-gap: clamp(16px, 2.2vw, 36px); row-gap: 6px; align-items: center;
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--ink);
}
.row::before {
  content: ''; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
  background: var(--orange);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .38s var(--ease);
}
.row-time { grid-area: time; align-self: start; padding-top: .5em; font: 500 .82rem/1.3 var(--mono); letter-spacing: .03em; display: flex; flex-wrap: wrap; gap: 0 .4em; }
.row-time .arr { color: var(--muted); }
.row-name {
  grid-area: name;
  font-weight: 850; font-stretch: 74%; font-size: clamp(2.2rem, 4.8vw, 5.4rem);
  line-height: .86; letter-spacing: -.02em; text-transform: uppercase;
}
.row-room { grid-area: room; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font: 500 .74rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.row-no { display: inline-grid; place-items: center; min-width: 2.4em; height: 1.9em; padding: 0 .35em; background: var(--ink); color: var(--paper); }
.row-then { color: var(--muted); }
.row-desc { grid-area: desc; align-self: start; max-width: 38ch; font-size: .95rem; line-height: 1.45; color: var(--muted); transition: color .3s var(--ease); }
.row-glyph { grid-area: glyph; width: 100%; height: auto; color: var(--ink); --glyph-bg: var(--paper); }
.row-btn {
  grid-area: btn; justify-self: end;
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px 0 18px;
  border: 2px solid var(--ink); border-radius: 999px; background: transparent;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.row-btn svg { width: 18px; height: 18px; transition: transform var(--std) var(--ease); }
.row-btn::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.row-btn:focus-visible { outline: none; }
.row:has(.row-btn:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.row:has(.row-btn:focus-visible)::before { transform: scaleY(1); }
.row:has(.row-btn:focus-visible) .row-btn { background: var(--ink); color: var(--paper); }

/* Glyph parts: CSS owns fill so hover can invert the sun. */
.g-ink { fill: currentColor; }
.g-ring { fill: none; stroke: var(--glyph-bg); stroke-width: 3; }
.g-sun { fill: var(--orange); }
.row-glyph .g-sun, .row-glyph .g-a, .row-glyph .g-b {
  transform-box: fill-box; transform-origin: center;
  transition: transform .45s var(--ease), fill .3s var(--ease);
}
@media (hover: hover) {
  .row:hover::before { transform: scaleY(1); }
  .row:hover .row-desc { color: var(--ink); }
  .row:hover .row-btn { background: var(--ink); color: var(--paper); }
  .row:hover .row-btn svg { transform: rotate(90deg); }
  .row:hover .g-sun { fill: var(--paper); transform: translateY(-7px); }
  .row:hover .g-a { transform: translateX(5px); }
  .row:hover .g-b { transform: translateX(-5px); }
  .row:hover .row-time .arr { color: var(--ink); }
  .row:hover .row-then { color: var(--ink); }
}
.row:has(.row-btn:focus-visible) .g-sun { fill: var(--paper); }
.row:has(.row-btn:focus-visible) .row-desc { color: var(--ink); }

@media (max-width: 1199px) {
  .row {
    grid-template-columns: 6.6rem minmax(0, 1fr) 4.4rem auto;
    grid-template-areas: "time name glyph btn" "time room glyph btn" "time desc desc desc";
    row-gap: 10px;
  }
  .row-room { align-self: start; }
}
@media (max-width: 680px) {
  .row {
    grid-template-columns: minmax(0, 1fr) 3.8rem;
    grid-template-areas: "time glyph" "name glyph" "room room" "desc desc" "btn btn";
    row-gap: 10px;
  }
  .row-time { padding-top: 0; }
  .row-glyph { align-self: start; }
  .row-btn { justify-self: start; margin-top: 4px; }
}
.prog-note { margin-top: 18px; font: 500 .72rem/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* ---------- Dialog ---------- */

.dlg {
  width: min(900px, calc(100vw - 32px)); max-width: none;
  max-height: min(740px, calc(100vh - 32px)); max-height: min(740px, calc(100dvh - 32px));
  padding: 0; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.dlg::backdrop { background: rgba(21, 21, 18, .76); }
.dlg:not([open]) { display: none; }
.dlg-card { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); min-height: 100%; }
.dlg-art { position: relative; overflow: hidden; display: grid; place-items: center; min-height: 300px; background: var(--ink); color: var(--paper); }
.dlg-sun { position: absolute; left: -15%; width: 130%; aspect-ratio: 1; bottom: 0; border-radius: 50%; background: var(--orange); transform: translateY(78%); }
.dlg-glyph { position: relative; width: min(64%, 230px); }
.dlg-glyph svg { width: 100%; height: auto; color: var(--paper); --glyph-bg: var(--ink); }
.dlg-body { padding: clamp(22px, 3.4vw, 40px); }
.dlg-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.dlg-kicker { padding-top: 12px; font: 500 .76rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.dlg-x {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px;
  border: 2px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.dlg-x svg { width: 20px; height: 20px; }
.dlg-x:hover { background: var(--ink); color: var(--paper); }
.dlg-title { margin: .28em 0 .32em; font-weight: 850; font-stretch: 74%; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: .86; letter-spacing: -.02em; text-transform: uppercase; }
.dlg-lede { max-width: 46ch; font-size: 1rem; line-height: 1.55; }
.dlg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0; border-top: 2px solid var(--ink); }
.dlg-facts div { padding: 12px 14px 0 0; }
.dlg-facts div + div { padding-left: 14px; border-left: 1px solid rgba(21, 21, 18, .2); }
.dlg-facts dt { font: 500 .68rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dlg-facts dd { margin: 4px 0 0; font-weight: 650; font-size: .95rem; line-height: 1.3; }
.dlg-demo { padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--paper-2); font-size: .88rem; line-height: 1.5; }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.anim .dlg[open] { animation: dlg-in .34s var(--ease-out) both; }
.anim .dlg[open]::backdrop { animation: fade-in .3s var(--ease) both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(22px) scale(.985); } }
@keyframes sheet-in { from { transform: translateY(48px); opacity: .4; } }
@keyframes fade-in { from { opacity: 0; } }

@media (max-width: 680px) {
  .dlg { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; max-height: 92dvh; border-radius: 0; }
  .anim .dlg[open] { animation-name: sheet-in; }
  .dlg-card { grid-template-columns: 1fr; }
  .dlg-art { min-height: 150px; }
  .dlg-glyph { width: 104px; }
  .dlg-sun { transform: translateY(84%); }
  .dlg-facts { grid-template-columns: 1fr 1fr; }
  .dlg-facts div:nth-child(3) { grid-column: 1 / -1; padding-left: 0; border-left: 0; border-top: 1px solid rgba(21, 21, 18, .2); margin-top: 12px; }
  .dlg-actions .btn { flex: 1 1 140px; }
}

/* ---------- 03 The house ---------- */

.house { padding: clamp(72px, 10vw, 150px) 0 clamp(72px, 10vw, 140px); border-top: 2px solid var(--ink); }
.house-head { padding: 0 var(--gutter); }
.house-fig { margin: clamp(32px, 4.4vw, 64px) 0 0; }
.house-frame { position: relative; overflow: hidden; aspect-ratio: 16 / 8.6; background: var(--paper); border-block: 2px solid var(--ink); }
.house-svg { width: 100%; height: 100%; transform-origin: 50% 60%; }
.house-svg .h-label text { font: 500 24px var(--mono); letter-spacing: .08em; }
.house-svg .h-label .h-title { font: 850 40px var(--sans); font-stretch: 74%; letter-spacing: .01em; }
.room-fill { fill: var(--orange); opacity: 0; transition: opacity .4s var(--ease); }
.marker circle { fill: var(--paper); stroke: var(--ink); stroke-width: 4; transition: fill .3s var(--ease); }
.marker text { font: 800 30px var(--sans); text-anchor: middle; fill: var(--ink); transition: fill .3s var(--ease); }
.house-fig[data-active="studio"] .room-fill[data-room="studio"],
.house-fig[data-active="low"] .room-fill[data-room="low"],
.house-fig[data-active="hall"] .room-fill[data-room="hall"],
.house-fig[data-active="roof"] .room-fill[data-room="roof"] { opacity: 1; }
.house-fig[data-active="studio"] .marker[data-room="studio"] circle,
.house-fig[data-active="low"] .marker[data-room="low"] circle,
.house-fig[data-active="hall"] .marker[data-room="hall"] circle,
.house-fig[data-active="roof"] .marker[data-room="roof"] circle { fill: var(--ink); }
.house-fig[data-active="studio"] .marker[data-room="studio"] text,
.house-fig[data-active="low"] .marker[data-room="low"] text,
.house-fig[data-active="hall"] .marker[data-room="hall"] text,
.house-fig[data-active="roof"] .marker[data-room="roof"] text { fill: var(--paper); }
.house-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px;
  padding: 12px var(--gutter) 0; font: 500 .7rem/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.house-status { color: var(--ink); }

.house-body {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px);
  padding: clamp(40px, 5vw, 72px) var(--gutter) 0;
}
.story-lede { font-weight: 760; font-stretch: 88%; font-size: clamp(1.6rem, 2.7vw, 2.5rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 18px; }
.story p + p { margin-top: 14px; }
.story > p:not(.story-lede) { max-width: 46ch; }
.story-note { font-size: .88rem; color: var(--muted); }
.rooms-h { margin-bottom: 12px; font: 500 .72rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.rooms-hint { color: var(--muted); }
html:not(.rooms-ready) .rooms-hint { display: none; }
.room-key { margin: 0; padding: 0; list-style: none; border-bottom: 2px solid var(--ink); }
.room-key li { border-top: 1px solid var(--ink); }
.rk {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "desc";
  gap: 2px 14px; align-items: center; width: 100%; min-height: 72px; padding: 14px 12px 14px 0;
  border: 0; background: transparent; text-align: left; color: var(--ink);
  transition: background-color .3s var(--ease), color .3s var(--ease), padding .3s var(--ease);
}
button.rk { cursor: pointer; }
.rk-no {
  grid-area: no; display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  border: 2px solid var(--ink); font-weight: 800; font-size: .95rem;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.rk-name { grid-area: name; font-weight: 850; font-stretch: 76%; font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1; text-transform: uppercase; }
.rk-desc { grid-area: desc; font-size: .9rem; line-height: 1.4; color: var(--muted); transition: color .3s var(--ease); }
button.rk:focus-visible { outline-offset: -3px; }
@media (hover: hover) { button.rk:hover { background: var(--paper-2); } }
button.rk[aria-pressed="true"] { background: var(--ink); color: var(--paper); padding-left: 12px; }
button.rk[aria-pressed="true"] .rk-no { background: var(--orange); border-color: var(--orange); color: var(--ink); }
button.rk[aria-pressed="true"] .rk-desc { color: var(--on-dark-2); }

@media (max-width: 860px) { .house-body { grid-template-columns: 1fr; } }
@media (max-width: 759px) { .house-frame { aspect-ratio: 1 / 1; } }

/* ---------- Enquiry ---------- */

.enquire {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(90px, 12vw, 190px) var(--gutter) clamp(230px, 30vw, 440px);
  background: var(--ink); color: var(--on-dark);
}
.enq-art { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; z-index: -1; pointer-events: none; }
.enq-sun-wrap { position: absolute; left: 50%; bottom: 0; width: clamp(440px, 70vw, 1080px); aspect-ratio: 1; translate: -50% 0; }
.enq-sun { position: absolute; inset: 0; border-radius: 50%; background: var(--orange); transform: translateY(60%); }
.enq-step { position: absolute; bottom: 0; background: var(--ink); border-top: 2px solid var(--ink-3); }
.el1 { left: 0; width: 33%; height: 7vw; }
.el2 { left: 0; width: 24%; height: 12vw; }
.el3 { left: 0; width: 15%; height: 17vw; }
.er1 { right: 0; width: 33%; height: 7vw; }
.er2 { right: 0; width: 24%; height: 12vw; }
.er3 { right: 0; width: 15%; height: 17vw; }
.enq-inner { max-width: 1100px; }
.enq-title {
  font-weight: 850; font-stretch: 72%; font-size: clamp(3.6rem, 12vw, 12.5rem);
  line-height: .82; letter-spacing: -.03em; text-transform: uppercase;
}
.enq-copy { max-width: 52ch; margin-top: clamp(22px, 3vw, 36px); font-size: clamp(1rem, 1.2vw, 1.12rem); color: var(--on-dark-2); }
.enq-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.enq-note { max-width: 56ch; margin-top: 18px; font: 500 .72rem/1.55 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-2); }
@media (max-width: 680px) {
  .enq-sun-wrap { width: 128vw; }
  .el1, .er1 { width: 30%; height: 9vw; }
  .el2, .er2 { width: 21%; height: 16vw; }
  .el3, .er3 { width: 12%; height: 23vw; }
  .enq-actions .btn { flex: 1 1 220px; }
}

/* ---------- Footer ---------- */

.foot { padding: 0 var(--gutter) 28px; background: var(--ink); color: var(--on-dark); --wm-cut: var(--ink); }
.foot-mark {
  display: flex; flex-wrap: wrap; column-gap: 0;
  padding-top: clamp(20px, 3vw, 36px); border-top: 1px solid var(--ink-3);
  font-weight: 900; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.02em;
  font-size: min(13vw, 15rem); line-height: .84;
}
.foot-disclaimer { max-width: 70ch; margin-top: clamp(24px, 3vw, 40px); font-size: .95rem; color: var(--on-dark); }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--ink-3);
  font-size: .86rem; color: var(--on-dark-2);
}
.foot-lic { font-size: .78rem; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot-row nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.foot-row nav a:hover { color: var(--orange); }

/* ---------- Motion off ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
}
html:not(.anim) .reveal, html:not(.anim) .ph, html:not(.anim) .gl { transition: none; }
