/* SAMESATIONS — styles */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6a6a67;
  --line: rgba(17, 17, 17, 0.12);
  --guide: rgba(17, 17, 17, 0.06);
  --pad: clamp(16px, 2.4vw, 36px);
  --header: 64px;
  --footer: 58px;
  --gap: clamp(14px, 1.8vw, 28px);
  --ease: cubic-bezier(0.65, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
a, button, input, select, [role="slider"] { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior: none; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* hairline guides, like a floor plan under everything */
.guides { position: fixed; inset: 0; z-index: -1; pointer-events: none; display: grid; padding: 0 var(--pad); }
.guides span { border-left: 1px solid var(--guide); border-right: 1px solid var(--guide); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header);
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--pad);
  /* white header that keeps the two guide lines running through it */
  background:
    linear-gradient(var(--guide), var(--guide)) left var(--pad) top / 1px 100% no-repeat,
    linear-gradient(var(--guide), var(--guide)) right var(--pad) top / 1px 100% no-repeat,
    var(--bg);
}
.nav-word { position: relative; font: 700 15px/1 var(--sans); letter-spacing: 0.02em; text-transform: uppercase; padding: 12px 0; }
.home-link { transition: opacity 0.35s; }
html[data-page="home"] .home-link { visibility: hidden; opacity: 0; }
.menu-toggle { margin-left: auto; height: 40px; overflow: hidden; min-width: 56px; text-align: right; }
.menu-toggle span { display: block; transition: transform 0.55s var(--ease); }
.menu-toggle .t-close { position: absolute; right: 0; top: 12px; transform: translateY(210%); }
.menu-open .menu-toggle .t-open { transform: translateY(-210%); }
.menu-open .menu-toggle .t-close { transform: translateY(0); }

/* ---------- menu: a panel from the right ---------- */
.menu { position: fixed; inset: var(--header) 0 0 0; z-index: 25; overflow: hidden; pointer-events: none; visibility: hidden; transition: visibility 0s linear 0.75s; }
.menu-open .menu { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.menu-veil { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.08); opacity: 0; transition: opacity 0.6s var(--ease); cursor: pointer; }
.menu-open .menu-veil { opacity: 1; }
.menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 50vw;
  background: var(--bg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(28px, 5vh, 56px) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform 0.75s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .menu-panel { transform: none; }
.menu-links li { overflow: hidden; }
.menu-link {
  display: block;
  padding: clamp(6px, 1.2vh, 14px) 0;
  transform: translateX(40px); opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s, color 0.3s;
}
.menu-open .menu-link { transform: none; opacity: 1; }
.menu-links li:nth-child(1) .menu-link { transition-delay: 0.18s, 0.18s, 0s; }
.menu-links li:nth-child(2) .menu-link { transition-delay: 0.25s, 0.25s, 0s; }
.menu-name { font-weight: 500; font-size: clamp(36px, 4.6vw, 76px); line-height: 1; letter-spacing: -0.045em; display: inline-block; transition: transform 0.5s var(--ease); }
.menu-ext { font-size: clamp(20px, 2vw, 32px); color: var(--muted); transition: transform 0.5s var(--ease), color 0.3s; }
.menu-links:hover .menu-link { color: rgba(17, 17, 17, 0.3); }
.menu-links .menu-link:hover, .menu-links .menu-link:focus-visible { color: var(--ink); }
.menu-link:hover .menu-name { transform: translateX(0.12em); }
.menu-link:hover .menu-ext { transform: translate(3px, -3px); color: var(--ink); }
.menu-open @media (max-width: 699px) {
  .menu-panel { width: 100%; border-left: 0; }
  }

.cta::after, .room-row-name::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.cta:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- main + page transitions ---------- */
main { flex: 1; width: 100%; }
.site-footer {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  height: calc(var(--footer) + env(safe-area-inset-bottom));
  padding: 0 var(--pad) env(safe-area-inset-bottom);
  /* white band with the top hairline and the two guide lines running through */
  background:
    linear-gradient(var(--line), var(--line)) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) left var(--pad) top / 1px 100% no-repeat,
    linear-gradient(var(--guide), var(--guide)) right var(--pad) top / 1px 100% no-repeat,
    var(--bg);
}
main { padding-bottom: clamp(40px, 6vw, 80px); }
html[data-page="home"] main, html[data-page="contact"] main, html[data-page="room"] main { padding-bottom: 0; }
html[data-page="room"] main { display: flex; flex-direction: column; }
html[data-page="room"] main > .grid { padding-bottom: clamp(40px, 6vw, 80px); }
.site-footer p { display: grid; }
.fact-label { color: var(--muted); }
.site-footer a { transition: color 0.3s; }
.site-footer a:hover { color: var(--muted); }

/* ---------- home: one fixed screen ---------- */
html[data-page="home"] body, html[data-page="contact"] body { height: 100vh; height: 100dvh; overflow: hidden; }
html[data-page="home"] main, html[data-page="contact"] main { min-height: 0; display: flex; flex-direction: column; }
.contact { flex: 1; min-height: 0; display: grid; padding: 0 var(--pad); }
.contact-inner { align-self: center; justify-self: center; text-align: center; display: grid; gap: 14px; justify-items: center; }
.contact-line { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); }
.contact-mail { position: relative; font-weight: 500; font-size: clamp(30px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.045em; word-break: break-word; }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -0.08em; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.55s var(--ease); }
.contact-mail:hover::after { transform: scaleX(1); transform-origin: left; }
.home {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(6px, 1vw, 14px) var(--pad) 0;
}
.home { position: relative; }
.home-mark { line-height: 0; }
.wm path { transition: none; }

/* logo colour slider, sitting on the left guide line */
.home-mark { color: var(--ink); }
.tint { position: absolute; left: var(--pad); top: 50%; transform: translateY(-50%); z-index: 2; }
.tint-track {
  position: relative; width: 9px; height: clamp(160px, 32vh, 300px); margin-left: 1px;
  background: var(--strip); cursor: ns-resize; touch-action: none; outline: none;
}
.tint-track::before { content: ""; position: absolute; inset: -8px -16px; }
.tint-track { isolation: isolate; transform: translateZ(0); }
.tint-thumb {
  position: absolute; inset: 0 -5px; pointer-events: none;
  transform: translate3d(0, calc(var(--t, 0) * 100%), 0); will-change: transform;
}
.tint-thumb::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ink);
  transition: transform 0.25s var(--ease);
}
@media (hover: hover) { .tint-track:hover .tint-thumb::before, .tint-track.is-dragging .tint-thumb::before { transform: scaleX(1.35); } }
.tint-track:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--ink); }
@media (max-width: 699px) {
  .home .home-statement { padding-inline: 34px; }
}
}
.wm { width: 100%; height: auto; display: block; }
.wm-stack { display: none; }
@media (max-width: 699px) { .wm-line { display: none; } .wm-stack { display: block; } }
.home-statement { align-self: center; justify-self: center; text-align: center; max-width: 34em; padding: 24px 0; }
.home-tagline { font-weight: 500; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.24; letter-spacing: -0.03em; }
.home-intro { margin-top: 14px; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.55; max-width: 30em; margin-inline: auto; text-wrap: balance; }
/* text set like a highlighted selection: white on ink, line by line */
.hl { background: var(--ink); color: #fff; padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl::selection { background: #fff; color: var(--ink); }
.home .cta-home { font-size: clamp(26px, 2.5vw, 36px); font-weight: 500; letter-spacing: -0.03em; }
.cta { position: relative; display: inline-flex; gap: 10px; align-items: baseline; margin-top: 28px; font-size: 16px; letter-spacing: -0.01em; }
.cta-arrow { display: inline-block; transition: transform 0.45s var(--ease); }
.cta:hover .cta-arrow { transform: translateX(6px); }
.fact-label { color: var(--muted); }
@media (max-height: 560px) and (min-width: 700px) { .home-statement { padding: 8px 0; } .cta { margin-top: 14px; } }

/* ---------- page heads ---------- */
.page-head { padding: clamp(4px, 1vw, 14px) var(--pad) clamp(22px, 2.6vw, 38px); display: grid; gap: 10px; }
.eyebrow { color: var(--muted); }
.eyebrow .of { opacity: 0.6; }
.display { font-weight: 500; font-size: clamp(38px, 5.2vw, 80px); line-height: 0.93; letter-spacing: -0.055em; margin-left: -0.04em; padding-right: 0.06em; text-wrap: balance; }
.lede { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 32em; text-wrap: balance; }
.room-head .count, .room-block-head .count { color: var(--muted); }
.notfound { min-height: 50vh; align-content: center; }
.notfound .cta { margin-top: 8px; color: var(--ink); }

/* ---------- grid of pieces ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 40px) clamp(10px, 1.2vw, 18px);
  padding: 0 var(--pad);
}
@media (max-width: 1099px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 699px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 8px; } }
.tile-link { display: block; cursor: zoom-in; }
.tile-frame { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: rgba(17, 17, 17, 0.05); }
.tile-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity 0.6s; }
.js .tile-frame img { opacity: 0; }
.js .tile-frame img.is-loaded { opacity: 1; }
.tile-link:hover .tile-frame img { transform: scale(1.025); }
.tile-label { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-top: 8px; min-height: 1.5em; }
.tile-label .mono { flex: none; }
.tile-title { font-size: 12px; line-height: 1.35; letter-spacing: -0.005em; opacity: 0; transform: translateY(4px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.tile:hover .tile-title, .tile:focus-within .tile-title { opacity: 1; transform: none; }
@media (hover: none) { .tile-title { opacity: 1; transform: none; } }
.tile.is-hidden-for-flip .tile-frame img { visibility: hidden; }
.empty { padding: 0 var(--pad); color: var(--muted); }
.view-rooms > .empty { padding: 0; margin: 0 var(--pad); }

/* reveal on scroll */
.js .tile { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out); }
.js .tile.in { opacity: 1; transform: none; }

/* ---------- collection: Rooms or colours ---------- */
.switch-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.3em; line-height: 1.02; }
.collection-head .switch-title { margin-left: 0; }
.switch-title .hl { padding: 0 0.06em; }
.st-main { display: inline-block; overflow: hidden; padding: 0.04em 0.12em 0.08em 0.04em; margin: -0.04em -0.12em -0.08em -0.04em; }
.st-word { display: inline-block; }
.st-alt { position: relative; font: 500 clamp(17px, 1.5vw, 23px)/1 var(--sans); letter-spacing: -0.035em; color: var(--ink); transition: opacity 0.3s; }
.st-alt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.st-alt:hover { opacity: 0.6; }
.st-alt:hover::after { transform: scaleX(1); transform-origin: left; }

.rooms-list { margin: 0 var(--pad); display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(24px, 3vw, 48px); }
.rooms-list li { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; }
.room-row {
  grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center;
  min-height: clamp(40px, 3.6vw, 54px); padding: 3px 0;
  transition: color 0.3s;
}
.room-row-name { position: relative; justify-self: start; font-weight: 500; font-size: clamp(24px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.04em; transition: transform 0.55s var(--ease); }
.room-row-num { margin-left: 0.6em; vertical-align: 0.9em; color: var(--muted); letter-spacing: 0.04em; }
.room-row-thumbs { display: grid; grid-template-columns: repeat(10, clamp(26px, 2.4vw, 38px)); gap: 5px; justify-self: start; }
.room-row-thumbs img { width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.55s var(--ease); }
.room-row-thumbs img:nth-child(2) { transition-delay: 0.03s; } .room-row-thumbs img:nth-child(3) { transition-delay: 0.06s; }
.room-row-thumbs img:nth-child(4) { transition-delay: 0.09s; } .room-row-thumbs img:nth-child(5) { transition-delay: 0.12s; }
.room-row-thumbs img:nth-child(6) { transition-delay: 0.15s; } .room-row-thumbs img:nth-child(7) { transition-delay: 0.18s; }
.room-row-thumbs img:nth-child(8) { transition-delay: 0.21s; } .room-row-thumbs img:nth-child(9) { transition-delay: 0.24s; }
.room-row-thumbs img:nth-child(10) { transition-delay: 0.27s; }
.room-row:hover .room-row-thumbs img, .room-row:focus-visible .room-row-thumbs img { opacity: 1; transform: none; }
.rooms-list:hover .room-row { color: rgba(17, 17, 17, 0.3); }
.rooms-list .room-row:hover, .rooms-list .room-row:focus-visible { color: var(--ink); }
.room-row:hover .room-row-name { transform: translateX(0.1em); }
@media (hover: none) { .room-row-thumbs { display: none; } }
@media (max-width: 699px) { .room-row { min-height: 0; padding: 5px 0; } .room-row-thumbs { display: none; } }

/* dense colour grid: ~20 per row on computers, 10 on phones */
.grid-dense { grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 8px; }
.grid-dense .tile-label { display: none; }
.grid-dense .tile-link:hover .tile-frame img { transform: scale(1.06); }
@media (max-width: 1099px) { .grid-dense { grid-template-columns: repeat(14, minmax(0, 1fr)); } }
@media (max-width: 699px) { .grid-dense { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; } }

/* room page filters */
.filters { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 8px; color: var(--muted); }
.f-field { display: inline-flex; align-items: baseline; gap: 8px; }
.f-or { color: var(--muted); }
.f-select-wrap { position: relative; display: inline-block; }
.f-select-wrap::after { content: "▾"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--ink); pointer-events: none; }
.f-select, .f-input {
  font: inherit; letter-spacing: inherit; text-transform: uppercase; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 2px 0; outline: none; transition: border-color 0.3s;
}
.f-select { appearance: none; -webkit-appearance: none; padding-right: 16px; cursor: pointer; }
.f-input { width: 4.2ch; text-align: center; }
.f-input::placeholder { color: rgba(17, 17, 17, 0.28); }
.f-select:hover, .f-select:focus-visible, .f-input:hover, .f-input:focus { border-color: var(--ink); }
.f-empty { padding: 0 var(--pad); color: var(--muted); }

/* ---------- room page title row ---------- */
.title-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 0.9em; }
.back-link { position: relative; font: 500 clamp(13px, 1vw, 15px)/1 var(--sans); letter-spacing: -0.035em; transition: opacity 0.3s; }
.back-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.back-link:hover { opacity: 0.6; }
.back-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- room nav ---------- */
/* thin bar that sits right on top of the footer */
.room-nav {
  position: sticky; bottom: calc(var(--footer) + env(safe-area-inset-bottom)); z-index: 19;
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: auto; padding: 0 var(--pad);
  background:
    linear-gradient(var(--line), var(--line)) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat,
    linear-gradient(var(--guide), var(--guide)) left var(--pad) top / 1px 100% no-repeat,
    linear-gradient(var(--guide), var(--guide)) right var(--pad) top / 1px 100% no-repeat,
    var(--bg);
}
.room-nav a { display: inline-flex; align-items: center; gap: 0.4em; padding: 11px 0; font-size: 14px; letter-spacing: -0.01em; color: var(--muted); transition: color 0.3s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-nav a:hover { color: var(--ink); }
.room-nav-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: var(--header) 1fr; }
.viewer[hidden] { display: none; }
.viewer-bg { position: absolute; inset: 0; background: var(--bg); }
.viewer-top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 0 var(--pad); }
.viewer-count { color: var(--muted); }
.viewer-stage { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: clamp(24px, 4vw, 72px); padding: clamp(20px, 3vh, 40px) var(--pad); }
.viewer-figure { min-height: 0; display: flex; align-items: center; justify-content: center; container-type: size; }
.viewer-img { width: min(100cqw, 75cqh); height: auto; aspect-ratio: 3 / 4; object-fit: cover; transform-origin: 0 0; background: rgba(17, 17, 17, 0.05); }
.viewer-info { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; padding-left: clamp(20px, 2.4vw, 36px); }
.viewer-info-inner { display: grid; gap: 10px; align-content: start; padding-top: 4px; }
.v-no { color: var(--ink); }
.v-room a { color: var(--muted); transition: color 0.3s; }
.v-room a:hover { color: var(--ink); }
.v-title { font-weight: 500; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.04; letter-spacing: -0.035em; margin: 10px 0 18px; text-wrap: balance; }
.v-block { padding-top: 12px; margin-top: 4px; display: grid; gap: 10px; }
.v-label { color: var(--muted); }
.v-colours { display: grid; gap: 8px; }
.v-colours li { display: grid; grid-template-columns: 14px auto; justify-content: start; gap: 12px; align-items: center; }
.v-colours .v-hex { color: var(--ink); }
.v-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.14); }
.v-hex { color: var(--muted); }
.v-date { font-size: 14px; }
.v-ig { margin-top: 12px; font-size: 14px; }
.v-ig a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color 0.3s; }
.v-ig a:hover { border-color: var(--ink); }
.viewer-nav { display: flex; justify-content: space-between; padding-top: 14px; }
.viewer-nav button { padding: 6px 0; color: var(--muted); transition: color 0.3s; }
.viewer-nav button:hover { color: var(--ink); }
.viewer-nav button:disabled { opacity: 0.3; cursor: default; }
.viewer-nav button:disabled:hover { color: var(--muted); }
.viewer-info-inner, .viewer-nav, .viewer-top > * { transition: opacity 0.35s, transform 0.5s var(--ease); }
.viewer.is-entering .viewer-info-inner, .viewer.is-entering .viewer-nav, .viewer.is-entering .viewer-top > * { opacity: 0; transform: translateY(8px); }
.viewer.is-swapping .viewer-info-inner { opacity: 0; transform: translateY(6px); transition-duration: 0.2s; }
@media (max-width: 799px) {
  .viewer { grid-template-rows: 52px minmax(0, 1fr); height: 100vh; height: 100dvh; }
  .viewer-stage { display: flex; flex-direction: column; gap: 14px; overflow: hidden; padding: 4px var(--pad) calc(10px + env(safe-area-inset-bottom)); }
  .viewer-figure { flex: 1 1 auto; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
  .viewer-img { width: min(100cqw, 75cqh); }
  .viewer-info { flex: none; border-left: 0; padding-left: 0; gap: 10px; }
  .viewer-info-inner { gap: 4px; padding-top: 0; }
  .v-title { font-size: 21px; margin: 4px 0 6px; }
  .v-block { padding-top: 8px; gap: 6px; }
  .v-label { display: none; }
  .v-colours { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .v-colours li { gap: 7px; }
  .v-swatch { width: 11px; height: 11px; }
  .v-date-block .v-label { display: none; }
  .v-ig { margin-top: 2px; }
  .viewer-nav { padding-top: 8px; }
}
}

body.is-locked { overflow: hidden; }

/* ---------- home: submit a sensation ---------- */
.submit { width: min(30em, 100%); margin: 26px auto 0; text-align: center; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-line { position: relative; }
.s-text, .s-credit {
  width: 100%; font: 400 16px/1.3 var(--sans); letter-spacing: -0.01em; color: var(--ink); text-align: center;
  background: transparent; border: 1.5px solid var(--ink); border-radius: 0;
  padding: 11px 58px; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.s-text::placeholder, .s-credit::placeholder { color: rgba(17, 17, 17, 0.4); }
.s-text:focus::placeholder, .s-credit:focus::placeholder { color: rgba(17, 17, 17, 0.25); }
.s-send { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 6px 0; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.submit:focus-within .s-send, .submit:has(.s-text:not(:placeholder-shown)) .s-send { opacity: 1; pointer-events: auto; }
.s-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s var(--ease), opacity 0.4s; }
.s-more-inner { min-height: 0; overflow: hidden; display: grid; gap: 10px; justify-items: center; }
.submit:focus-within .s-more, .submit:has(.s-text:not(:placeholder-shown)) .s-more { grid-template-rows: 1fr; opacity: 1; }
.s-credit { font-size: 14px; padding: 8px 12px; max-width: 18em; margin-top: 10px; }
.s-consent { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); cursor: pointer; text-align: left; }
.s-consent input { appearance: none; -webkit-appearance: none; flex: none; width: 12px; height: 12px; margin: 0; border: 1px solid var(--ink); border-radius: 0; cursor: pointer; display: grid; place-content: center; }
.s-consent input::after { content: ""; width: 6px; height: 6px; background: var(--ink); transform: scale(0); transition: transform 0.2s var(--ease); }
.s-consent input:checked::after { transform: scale(1); }
.s-note { color: var(--muted); max-width: 34em; text-transform: none; letter-spacing: 0.01em; }
.s-status { min-height: 1.45em; margin-top: 8px; color: var(--muted); }
.s-status.is-error { color: #b3261e; }
.s-done { margin: 26px auto 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.55; }
.home .cta-home { margin-top: 6px; }
/* short screens: tighter spacing, and the middle can scroll if the open form still doesn't fit */
.home-statement { overscroll-behavior: contain; }
@media (max-height: 760px) {
  .home-statement { padding: 6px 0; }
  .home-intro { margin-top: 10px; }
  .submit { margin-top: 14px; }
  .s-text { padding-block: 9px; }
  .s-more-inner { gap: 7px; }
  .s-credit { margin-top: 6px; padding-block: 6px; }
  .s-status { margin-top: 4px; }
}
@media (max-width: 699px) and (max-height: 760px) { .home-tagline { font-size: 20px; } .home-intro { font-size: 13.5px; } }
.home { overflow-y: auto; scrollbar-width: none; }
.home::-webkit-scrollbar { display: none; }

/* touch screens: the hover effects play on tap instead */
@media (hover: none) {
  .cta.is-pressed::after, .st-alt.is-pressed::after,
  .back-link.is-pressed::after, .contact-mail.is-pressed::after { transform: scaleX(1); transform-origin: left; }
  .st-alt.is-pressed, .back-link.is-pressed { opacity: 0.6; }
  .menu-link.is-pressed .menu-name { transform: translateX(0.12em); }
  .menu-links:has(.is-pressed) .menu-link:not(.is-pressed) { color: rgba(17, 17, 17, 0.3); }
  .room-row.is-pressed .room-row-name { transform: translateX(0.1em); }
  .rooms-list:has(.is-pressed) .room-row:not(.is-pressed) { color: rgba(17, 17, 17, 0.3); }
  .tile-link.is-pressed .tile-frame img { transform: scale(1.03); transition-duration: 0.35s; }
  .room-nav a.is-pressed, .viewer-nav button.is-pressed, .site-footer a.is-pressed, .v-room a.is-pressed { color: var(--ink); }
  .site-footer a.is-pressed { color: var(--muted); }
  /* no sticky hover states left behind after a tap */
  .rooms-list:hover .room-row, .menu-links:hover .menu-link { color: inherit; }
}

/* "reduce motion" on: keep the fades, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .js .tile, .js .tile.in { transform: none; }
  .menu-panel, .menu-open .menu-panel { transform: none; opacity: 0; transition: opacity 0.45s var(--ease); }
  .menu-open .menu-panel { opacity: 1; }
  .menu-link, .menu-open .menu-link { transform: none; }
  .tile-link:hover .tile-frame img, .room-row:hover .room-row-name, .menu-link:hover .menu-name, .room-row-thumbs img { transform: none !important; }
}
