/* Maria Teresa · prototype v1
   One typeface (Begum Sans), centred logo, tiny chapter index, chapters as pages. */

@font-face { font-family: "Begum Sans"; src: url("../fonts/BegumSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Begum Sans"; src: url("../fonts/BegumSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Begum Sans"; src: url("../fonts/BegumSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bone: #EFEAE1;
  --paper: #F6F2EB;
  --ink: #1A1614;
  --ink-2: #2A2421;
  --stone: #857C70;
  --claret: #4B1D26;
  --champagne: #B9A27A;
  --night: #12141C;

  --sans: "Begum Sans", "Helvetica Neue", Arial, sans-serif;
  --safe-x: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --gutter: calc(clamp(20px, 4vw, 64px) + var(--safe-x));
  --ease: cubic-bezier(.22, .7, .12, 1);
  --header-h: 88px;
  --gutter-l: calc(var(--gutter) + 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bone); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--champagne); color: var(--ink); }

/* ---------- type ---------- */
.label { font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; line-height: 1.6; }
.display { font-weight: 300; text-transform: uppercase; letter-spacing: .14em; line-height: 1.08; font-size: clamp(30px, 5.6vw, 92px); }
.display.xl { font-size: clamp(34px, 7.4vw, 124px); letter-spacing: .12em; }
.title { font-weight: 300; font-size: clamp(26px, 3.2vw, 50px); line-height: 1.22; letter-spacing: .005em; }
.lead { font-weight: 300; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.5; }
.muted { opacity: .62; }
.measure { max-width: 46ch; }
.center { text-align: center; }

/* thin drawn arrow (the font has no → glyph) */
.arrow { display: inline-block; width: 42px; height: 1px; background: currentColor; position: relative; vertical-align: middle; transition: transform .6s var(--ease); }
.arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 9px; height: 9px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); transform-origin: center; }
a:hover .arrow, a:focus-visible .arrow { transform: translateX(12px); }

.link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 8px; border-bottom: 1px solid currentColor; }

/* ---------- sections & themes ---------- */
section { position: relative; }
.theme-dark  { background: var(--ink);    color: var(--bone); }
.theme-claret{ background: var(--claret); color: var(--bone); }
.theme-night { background: var(--night);  color: var(--bone); }
.theme-light { background: var(--bone);   color: var(--ink); }
.theme-paper { background: var(--paper);  color: var(--ink); }
.pad { padding: clamp(110px, 15vw, 220px) var(--gutter) clamp(110px, 15vw, 220px) var(--gutter-l); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; }

/* ---------- header: centred logo, Privy-style ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter);
  color: var(--bone);
  pointer-events: none; transition: color .5s var(--ease), transform .7s var(--ease);
}
.site-header > * { pointer-events: auto; }
.site-header::before { content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: linear-gradient(color-mix(in srgb, var(--hdr-bg, #1A1614) 92%, transparent) 40%, color-mix(in srgb, var(--hdr-bg, #1A1614) 0%, transparent)); }
body.scrolled .site-header::before { opacity: 1; }
.site-header.hidden { transform: translateY(-110%); }
.site-header.light, .chapter-index.light, .mobile-index.light { color: var(--ink); }
.site-header .logo-link { grid-column: 2; display: block; width: clamp(54px, 4.4vw, 66px); transform-origin: 50% 50%; transition: transform .6s var(--ease); }
body.scrolled .site-header .logo-link { transform: scale(.76); }
.site-header .enquire { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 12px; }
.site-header .enquire .arrow { width: 22px; }
.site-header .enquire:hover .arrow { transform: translateX(6px); }

.logo { display: block; width: 100%; height: auto; overflow: visible; }
.logo text { font-family: var(--sans); font-weight: 300; fill: currentColor; }
.logo .ink { fill: currentColor; }

/* ---------- the tiny chapter index ---------- */
.chapter-index {
  position: fixed; left: calc(clamp(18px, 2.4vw, 36px) + var(--safe-x)); top: 50%; transform: translateY(-50%); z-index: 60;
  color: var(--bone); transition: color .5s var(--ease);
}
.chapter-index ol { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.chapter-index a { position: relative; display: flex; align-items: center; gap: 12px; height: 22px; font-size: 11px; font-weight: 400; letter-spacing: .24em; opacity: .55; transition: opacity .4s; }
.chapter-index a .num { width: 22px; display: inline-block; }
.chapter-index a .name { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(-6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.chapter-index a:hover, .chapter-index a:focus-visible { opacity: 1; }
.chapter-index a:hover .name, .chapter-index a:focus-visible .name { opacity: 1; transform: none; }
.chapter-index a[aria-current="page"] { opacity: 1; }
.chapter-index a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; width: 10px; height: 1px; background: currentColor; }
.chapter-index .progress { position: absolute; left: -16px; top: calc(100% + 22px); width: 1px; height: 64px; background: color-mix(in srgb, currentColor 20%, transparent); }
.chapter-index .progress i { position: absolute; inset: 0 0 auto 0; height: 0; background: currentColor; }

/* phone: thin bottom row */
.mobile-index { display: none; }

/* ---------- curtain (page transitions) ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--curtain, var(--ink)); color: var(--bone);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 14px;
  opacity: 1; transition: opacity .7s var(--ease); pointer-events: none;
}
.curtain.out { opacity: 0; }
.curtain .c-num { font-size: 11px; letter-spacing: .3em; opacity: .7; }
.curtain .c-name { font-size: clamp(16px, 3vw, 40px); padding: 0 var(--gutter); text-align: center; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; }

/* ---------- hero (home) ---------- */
.hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bone); background: var(--ink); }
.hero video, .hero .poster { position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 42% at 50% 50%, rgba(20,16,14,.42), rgba(20,16,14,0) 70%),
    linear-gradient(180deg, rgba(20,16,14,.6) 0%, rgba(20,16,14,.28) 34%, rgba(20,16,14,.32) 66%, rgba(20,16,14,.72) 100%); }
.hero .display, .opener .display { text-shadow: 0 0 40px rgba(20,16,14,.35); }
/* the full name sits just above the services line; padding-left balances the letter-spacing browsers add after the last letter */
.hero .hero-name { font-size: clamp(15px, 2.4vw, 34px); font-weight: 300; letter-spacing: .2em; padding-left: .2em; text-transform: uppercase; line-height: 1.2; margin-bottom: -14px; text-shadow: 0 0 30px rgba(20,16,14,.35); }
.hero .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); gap: 28px; }
.foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; color: var(--bone); }
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- prologue statement ---------- */
.prologue .label { grid-column: 1 / 4; padding-top: .9em; }
.prologue .body { grid-column: 4 / 10; }
.prologue .title { margin-bottom: 1em; }
.prologue .cols { display: grid; grid-template-columns: 1fr; gap: 1.1em; max-width: 46ch; }
.prologue figure { grid-column: 10 / 13; grid-row: 1; align-self: start; margin-top: clamp(60px, 9vw, 140px); }
.prologue figure img { aspect-ratio: 4 / 5; height: auto; }
.prologue figcaption { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-top: 12px; opacity: .55; }

/* ---------- chapter doors (home) ---------- */
.doors { padding: clamp(100px, 12vw, 180px) var(--gutter) clamp(100px, 12vw, 180px) var(--gutter-l); overflow: hidden; }
.doors .head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.door { position: relative; z-index: 2; display: grid; grid-template-columns: 140px 1fr auto; align-items: center; gap: 24px; padding: clamp(22px, 2.6vw, 38px) 0; border-top: 1px solid rgba(239,234,225,.16); }
.door:last-child { border-bottom: 1px solid rgba(239,234,225,.16); }
.door .display { font-size: clamp(30px, 5.2vw, 84px); transition: letter-spacing .9s var(--ease), opacity .5s; }
.door .note { font-size: 13px; opacity: 0; transform: translateX(-10px); transition: opacity .5s var(--ease), transform .5s var(--ease); display: flex; align-items: center; gap: 16px; }
.doors:hover .door .display { opacity: .35; }
.doors .door:hover .display, .doors .door:focus-visible .display { opacity: 1; letter-spacing: .2em; }
.door:hover .note, .door:focus-visible .note { opacity: .85; transform: none; }
.door-preview { position: fixed; z-index: 1; width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 5; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.92); transition: opacity .5s var(--ease), transform .7s var(--ease); overflow: hidden; left: 0; top: 0; }
.door-preview.show { opacity: .85; transform: translate(-50%, -50%) scale(1); }
.door-preview img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s; }
.door-preview img.on { opacity: 1; }

/* ---------- chapter opener ---------- */
.opener { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bone); background: var(--ink); }
.opener video, .opener img.bg { position: absolute; inset: 0; }
.opener::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,.6), rgba(20,16,14,.2) 45%, rgba(20,16,14,.65)); }
.opener .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; padding: 0 var(--gutter); }

/* ---------- statement block ---------- */
.statement .label { grid-column: 1 / 4; padding-top: .9em; }
.statement .body { grid-column: 4 / 11; }
.statement .title { margin-bottom: .9em; }
.statement p + p { margin-top: 1em; }

/* ---------- the rooms: sideways track ---------- */
.rooms { --room-bg: #1E3527; --room-fg: #EDE6D0; background: var(--room-bg); color: var(--room-fg); }
.rooms .pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.rooms .track { display: flex; height: 100%; will-change: transform; }
.room { flex: 0 0 100vw; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding: var(--header-h) var(--gutter) 56px var(--gutter-l); }
.room .text { grid-column: 1 / 5; }
.room .text .label { opacity: .7; }
.room .text .display { font-size: clamp(28px, 3.6vw, 60px); margin: 18px 0 26px; }
.room .text p { max-width: 36ch; opacity: .86; }
.room .text .tags { margin-top: 28px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; line-height: 2.2; opacity: .6; }
.room .media { grid-column: 6 / 13; position: relative; height: min(72vh, 680px); }
.room .media .main { position: absolute; right: 0; top: 0; width: 82%; height: 78%; overflow: hidden; }
.room .media .inset { position: absolute; left: 0; bottom: 0; width: 38%; aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.room .media.portrait .main { width: 46%; height: 100%; right: 6%; }
.room .media.portrait .inset { width: 40%; left: 0; bottom: 4%; }
.rooms .counter { position: absolute; right: var(--gutter); bottom: 28px; opacity: .6; }
.proto-note { display: inline-block; margin-top: 18px; padding: 6px 10px; border: 1px dashed currentColor; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }

/* ---------- next chapter ---------- */
.next { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; display: block; color: var(--bone); background: var(--ink); }
.next img { position: absolute; inset: 0; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.next::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,.58); transition: background .8s var(--ease); }
.next:hover img { transform: scale(1); }
.next:hover::after { background: rgba(20,16,14,.48); }
.next .inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; }

/* ---------- closing & footer ---------- */
.closing { text-align: center; }
.closing .display { margin: 26px auto 44px; max-width: 18ch; }
.site-footer { padding: 70px var(--gutter) 36px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.site-footer .logo-full { width: clamp(240px, 26vw, 380px); grid-column: 2; }
.site-footer .r { justify-self: end; }

.stub-note { margin-top: 18px; font-size: 12px; letter-spacing: .14em; opacity: .7; }

/* ---------- phone ---------- */
@media (max-width: 820px) {
  :root { --header-h: 72px; --gutter-l: var(--gutter); }
  body { font-size: 16px; }
  .chapter-index { display: none; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .site-header .enquire .txt { display: none; }
  .site-header .logo-link { width: 50px; }
  body.scrolled .site-header .logo-link { transform: scale(.853); }

  .mobile-index {
    display: flex; position: fixed; z-index: 60; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
    color: var(--bone); padding: 0 6px; border-radius: 999px;
    background: color-mix(in srgb, var(--ink) 38%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: color .5s var(--ease), background .5s var(--ease);
  }
  .mobile-index.light { background: color-mix(in srgb, var(--bone) 60%, transparent); }
  .mobile-index a { min-width: 46px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 11px; letter-spacing: .2em; opacity: .5; }
  .mobile-index a[aria-current="page"] { opacity: 1; }
  .mobile-index .bar { position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: color-mix(in srgb, currentColor 18%, transparent); }
  .mobile-index .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: currentColor; }

  .grid { grid-template-columns: 1fr; gap: 18px; }
  .prologue .label, .prologue .body, .prologue figure, .statement .label, .statement .body { grid-column: 1 / -1; grid-row: auto; }
  .prologue .cols { grid-template-columns: 1fr; }
  .prologue figure { width: 64%; margin: 40px 0 0 auto; }

  .door { grid-template-columns: 1fr; gap: 8px; }
  .door .note { opacity: .7; transform: none; }
  .doors:hover .door .display { opacity: 1; }
  .door-preview { display: none; }

  /* rooms stack vertically on phones: each one keeps its colour */
  .rooms .pin { position: static; height: auto; }
  .rooms .track { flex-direction: column; transform: none !important; }
  .room { flex: none; height: auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 100px var(--gutter) 110px; background: var(--this-bg); color: var(--this-fg); }
  .room .media, .room .media.portrait { width: 100%; height: 52vh; }
  .room .media .main { width: 88%; height: 80%; }
  .room .media.portrait .main { width: 58%; height: 100%; right: 0; }
  .rooms .counter { display: none; }

  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-bottom: 90px; }
  .site-footer .logo-full { grid-column: 1; width: 260px; }
  .site-footer .r { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
  .curtain { transition: none; }
}

/* =========================================================
   v2 · one page
   ========================================================= */

/* manifesto: words light up as you scroll */
.manifesto { height: 260vh; }
.manifesto .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 0 var(--gutter) 0 var(--gutter-l); }
.manifesto [data-words] { font-weight: 300; font-size: clamp(30px, 4.4vw, 72px); line-height: 1.16; max-width: 19ch; }
.manifesto .w { opacity: .13; transition: opacity .6s var(--ease); }
.manifesto .pin { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; column-gap: clamp(32px, 6vw, 110px); }
.manifesto .words-col { display: flex; flex-direction: column; gap: 34px; }
.manifesto .portrait { justify-self: end; width: min(100%, 520px); }
.manifesto .portrait img { aspect-ratio: 4 / 5; height: auto; max-height: 72vh; object-fit: cover; transform: scale(calc(1.06 - .06 * var(--mp, 0))); transform-origin: 50% 40%; opacity: calc(.35 + .65 * min(1, var(--mp, 0) * 2.5)); transition: opacity .3s linear; }
.manifesto .portrait { overflow: hidden; }
.manifesto .portrait figcaption { margin-top: 12px; }
.manifesto .w.on { opacity: 1; }

/* full-bleed photo band with gentle parallax */
.band { height: 100vh; height: 100svh; overflow: hidden; background: var(--ink); color: var(--bone); }
.band img { position: absolute; inset: 0; transform: scale(1.18); will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,14,.05) 40%, rgba(20,16,14,.6)); }
.band .caption { position: absolute; z-index: 2; left: var(--gutter-l); right: var(--gutter); bottom: 46px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.band .caption .title { max-width: 16ch; }

/* tracks that travel left */
.rooms.left .track { flex-direction: row-reverse; }
.hint { display: inline-flex; align-items: center; gap: 16px; opacity: .7; }
.arrow.back { transform: scaleX(-1); }

/* chapter title cards inside a track */
.room.card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 22px; position: relative; overflow: hidden; padding-left: var(--gutter); }
.room.card .bgimg { position: absolute; inset: 0; z-index: 0; }
.room.card .bgimg::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,14,.56); }
.room.card > *:not(.bgimg) { position: relative; z-index: 1; }
.room.card .display { font-size: clamp(44px, 8.4vw, 140px); margin: 0; letter-spacing: .16em; }
.room.card .lead { max-width: 30ch; }
.room.card .hint { margin-top: 30px; }

/* split panels: text one side, pictures the other */
.room.flip .text { grid-column: 8 / 13; grid-row: 1; }
.room.flip .media { grid-column: 1 / 7; grid-row: 1; }
.room.flip .media .main { right: auto; left: 0; }
.room.flip .media .inset { left: auto; right: 0; }
.room.flip .media.portrait .main { left: 6%; right: auto; }
.room .steps { list-style: none; margin-top: 30px; display: grid; gap: 12px; counter-reset: s; }
.room .steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; opacity: .9; }
.room .steps li::before { content: "0" counter(s); font-size: 10.5px; letter-spacing: .2em; padding-top: .4em; opacity: .6; }
.room .lines { margin-top: 26px; display: grid; gap: 8px; }
.room .lines p { font-size: clamp(17px, 1.5vw, 23px); line-height: 1.35; max-width: 30ch; opacity: .92; }

/* chapter IV: services, philosophy, enquiry */
.services .items-wrap { margin-top: clamp(36px, 5vw, 70px); overflow-x: clip; overflow-y: visible; }
/* each dot sits in front of its item; the list is shifted left by one gap, so a dot that starts a line is clipped away */
.services .items { display: flex; flex-wrap: wrap; row-gap: .1em; margin-left: -1.1em; font-weight: 300; font-size: clamp(24px, 3.3vw, 54px); line-height: 1.3; }
.services .svc { position: relative; padding-left: 1.1em; white-space: nowrap; }
.services .svc::before { content: "\00B7"; position: absolute; left: .4em; color: var(--champagne); }
.services .svc { transition: color .4s var(--ease), opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.services .svc:hover { color: var(--claret); }
.love { text-align: center; }
.love .display { margin: 24px auto 34px; }
.love .lead { max-width: 34ch; margin: 0 auto 26px; }
.love p.measure { margin: 0 auto; }

.enquiry .grid { align-items: start; }
.enquiry .intro { grid-column: 1 / 6; }
.enquiry .intro .display { font-size: clamp(30px, 3.6vw, 58px); margin: 22px 0 30px; }
.enquiry .contact { margin-top: 44px; display: grid; gap: 14px; }
.enquiry .contact div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(239,234,225,.16); font-size: 15px; }
.enquiry form { grid-column: 7 / 13; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; border: 0; }
.field > label, .field > legend { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-bottom: 6px; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(239,234,225,.32); border-radius: 0; color: inherit; font: inherit; font-size: 18px; font-weight: 300; padding: 8px 0 10px; outline: none; transition: border-color .4s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { border-color: var(--champagne); }
.field input::placeholder, .field textarea::placeholder { color: rgba(239,234,225,.35); }
.field input[type="date"] { color-scheme: dark; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid rgba(239,234,225,.3); border-radius: 999px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.chip input:focus-visible + span { outline: 1px solid var(--champagne); outline-offset: 3px; }
.submit { display: inline-flex; align-items: center; gap: 18px; background: none; border: 1px solid var(--bone); color: inherit; padding: 16px 26px; font: inherit; font-size: 11px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; cursor: pointer; transition: background .4s, color .4s; }
.submit:hover, .submit:focus-visible { background: var(--bone); color: var(--ink); }
[data-status] { margin-top: 18px; font-size: 13px; letter-spacing: .04em; opacity: 0; transition: opacity .4s; }
[data-status].show { opacity: .85; }
.site-footer .v1 { display: block; margin-top: 10px; opacity: .55; }
.site-footer .v1:hover { opacity: 1; }

@media (max-width: 820px) {
  .manifesto { height: 220vh; }
  .manifesto .pin { grid-template-columns: 1fr; row-gap: 22px; align-content: center; padding-top: 70px; }
  .manifesto .portrait { order: -1; justify-self: start; width: 52%; }
  .manifesto .portrait img { max-height: 34vh; }
  .manifesto .words-col { gap: 18px; }
  .rooms.left .track { flex-direction: column; }
  .room.card { min-height: 100svh; padding: 100px var(--gutter); }
  .room.card .hint { display: none; }
  .room.flip .text, .room.flip .media { grid-column: auto; grid-row: auto; }
  .room.flip .media .main { left: auto; right: 0; }
  .room.flip .media .inset { right: auto; left: 0; }
  .band .caption { flex-direction: column; align-items: start; padding-bottom: 50px; }
  .enquiry .intro, .enquiry form { grid-column: 1 / -1; }
  .enquiry form { margin-top: 50px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================
   phones on their side: short screens
   ========================================================= */
@media (orientation: landscape) and (max-height: 520px) {
  :root { --header-h: 58px; }
  .site-header .logo-link { width: 50px; }
  body.scrolled .site-header .logo-link { transform: scale(.853); }

  /* full-screen moments fit the screen instead of a 560px minimum */
  .hero, .opener, .next { min-height: 0; }
  .hero .inner, .opener .inner, .next .inner { gap: 12px; }
  .hero .hero-name { margin-bottom: -2px; }
  .display.xl { font-size: clamp(28px, 6vw, 58px); }
  .display { font-size: clamp(24px, 4.2vw, 48px); }
  .foot { bottom: 10px; }
  .scroll-cue i { height: 24px; }
  .pad { padding-top: 64px; padding-bottom: 64px; }
  .doors { padding-top: 64px; padding-bottom: 64px; }

  /* sideways panels: tighter text so a whole panel fits between header and bottom */
  .room { padding-top: calc(var(--header-h) + 4px); padding-bottom: 20px; }
  .room .text .display { font-size: clamp(22px, 3vw, 34px); margin: 8px 0 12px; }
  .room .text p { font-size: 14px; line-height: 1.55; }
  .room .text .tags, .room .proto-note { display: none; }
  .room .steps { margin-top: 12px; gap: 4px; }
  .room .steps li { font-size: 13px; }
  .room .lines { margin-top: 10px; gap: 2px; }
  .room .lines p { font-size: 14px; line-height: 1.4; }
  /* a wider text column so headings wrap less on short screens */
  .room .text { grid-column: 1 / 6; }
  .room .media { grid-column: 7 / 13; }
  .room.flip .text { grid-column: 7 / 13; }
  .room.flip .media { grid-column: 1 / 6; }
  .room .media { height: 74vh; }
  .room.card .display { font-size: clamp(34px, 7vw, 72px); }
  .room.card .hint { margin-top: 8px; }
  .rooms .counter { bottom: 12px; }

  .chapter-index ol { gap: 8px; }
  .chapter-index .progress { top: calc(100% + 12px); height: 40px; }
  .manifesto [data-words] { font-size: clamp(22px, 3.4vw, 38px); }
  .manifesto .pin { gap: 18px; }
  .manifesto .portrait img { max-height: 70vh; width: auto; margin-left: auto; }
  .manifesto .portrait figcaption { display: none; }
  .band .caption { bottom: 18px; }
  .enquiry .intro .display { font-size: clamp(24px, 3vw, 36px); }
}
