:root {
  --ivory: #F1EFE7;
  --ivory-deep: #E5E1D4;
  --black: #000000;
  --ink: #000000;
  --ink-soft: #45423B;      /* 9.4:1 on ivory */
  --line: rgba(0, 0, 0, 0.16);
  --line-strong: rgba(0, 0, 0, 0.6);
  --on-black: #F1EFE7;
  --on-black-soft: #B9B5A9; /* 9.6:1 on black */
  --error: #9B1C1C;

  --f-head: 'League Spartan', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Quicksand', 'Helvetica Neue', Arial, sans-serif;
  --f-script: 'Handsome', 'Mrs Saint Delafield', cursive;

  --s-4: 4px; --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px; --s-48: 48px; --s-64: 64px;
  --bar-h: 64px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --z-stage: 0; --z-ui: 10; --z-bar: 20; --z-intro: 100;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
body.reading { overflow: auto; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.intro :focus-visible, .on-black :focus-visible { outline-color: var(--ivory); }

.skip-link {
  position: absolute; left: var(--s-16); top: -60px; z-index: 200;
  background: var(--black); color: var(--ivory); padding: var(--s-8) var(--s-16);
  text-decoration: none; border-radius: 2px;
}
.skip-link:focus { top: var(--s-16); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--bar-h); z-index: var(--z-bar);
  display: flex; align-items: center; gap: var(--s-24);
  padding: 0 var(--s-32);
  background: rgba(241, 239, 231, 0.84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { background: none; border: 0; padding: var(--s-8) 0; display: flex; }
.brand img { height: 26px; width: auto; }
.rooms { display: flex; gap: var(--s-4); margin: 0 auto; }
.rooms button {
  background: none; border: 0; padding: var(--s-8) var(--s-12); min-height: 44px;
  font-family: var(--f-head); font-size: 15px; font-weight: 400; letter-spacing: .01em;
  color: var(--ink-soft); position: relative;
  transition: color .2s var(--ease-out);
}
.rooms button::after {
  content: ''; position: absolute; left: var(--s-12); right: var(--s-12); bottom: 8px; height: 1px;
  background: var(--black); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.rooms button:hover { color: var(--ink); }
.rooms button[aria-current="true"] { color: var(--ink); font-weight: 500; }
.rooms button[aria-current="true"]::after { transform: scaleX(1); }
.actions { display: flex; gap: var(--s-8); align-items: center; }

.btn-solid, .btn-quiet, .btn-ivory {
  min-height: 44px; padding: 0 var(--s-24); border-radius: 999px;
  font-family: var(--f-head); font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out);
}
.btn-solid { background: var(--black); color: var(--ivory); border: 1px solid var(--black); }
.btn-solid:hover { background: #26241f; }
.btn-solid:active, .btn-ivory:active { transform: scale(.97); }
.btn-quiet { background: transparent; border: 1px solid var(--line-strong); }
.btn-quiet:hover { background: rgba(0,0,0,.05); }
.btn-quiet[aria-pressed="true"] { background: var(--black); color: var(--ivory); border-color: var(--black); }
.btn-ivory { background: var(--ivory); color: var(--black); border: 1px solid var(--ivory); }
.btn-ivory:disabled { opacity: .45; cursor: progress; }
.btn-wide { width: 100%; }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; z-index: var(--z-stage); }
#scene { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#scene.dragging { cursor: grabbing; }
#scene.pointing { cursor: pointer; }

.room-caption {
  position: fixed; left: var(--s-32); bottom: var(--s-32); z-index: var(--z-ui);
  pointer-events: none; max-width: 420px;
  background: rgba(241, 239, 231, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: var(--s-16) var(--s-24); border-radius: 4px;
}
.room-caption__name {
  margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 44px; line-height: 1;
  letter-spacing: -0.02em;
}
.room-caption__line { margin: var(--s-4) 0 0; font-size: 16px; color: var(--ink-soft); }
.room-caption.swap .room-caption__name, .room-caption.swap .room-caption__line { animation: caption-in .7s var(--ease-out); }
@keyframes caption-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hint {
  position: fixed; right: var(--s-32); bottom: var(--s-32); z-index: var(--z-ui);
  margin: 0; max-width: 340px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); text-align: left;
  background: rgba(241, 239, 231, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: var(--s-12) var(--s-16); border-radius: 4px;
  transition: opacity .6s var(--ease-out);
}
.hint.gone { opacity: 0; }

.sound {
  position: fixed; right: var(--s-32); bottom: var(--s-32); z-index: var(--z-ui);
  display: inline-flex; align-items: center; gap: var(--s-8);
  min-height: 44px; padding: 0 var(--s-16) 0 var(--s-12); border-radius: 999px;
  background: rgba(241, 239, 231, 0.9); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-family: var(--f-head); font-size: 14px; font-weight: 500;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.sound:hover { background: var(--black); color: var(--ivory); }
.sound[hidden] { display: none; }
.sound .sound__off, .sound.is-muted .sound__on, .sound.is-muted .sound__bars { display: none; }
.sound.is-muted .sound__off { display: block; }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: -.4s; }
.sound__bars i:nth-child(3) { animation-delay: -.75s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
body.reading .sound { display: none; }
.hint { bottom: calc(var(--s-32) + 112px); }
.hint--touch { display: none; }
@media (hover: none) and (pointer: coarse) { .hint--fine { display: none; } .hint--touch { display: inline; } }

.hover-tag {
  position: fixed; z-index: var(--z-ui); margin: 0; pointer-events: none;
  background: var(--black); color: var(--ivory); font-family: var(--f-head); font-size: 14px;
  padding: 6px 12px; border-radius: 999px; transform: translate(14px, 14px);
  opacity: 0; transition: opacity .15s;
}
.hover-tag.on { opacity: 1; }

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: var(--z-intro);
  background: var(--black); color: var(--on-black);
  display: grid; place-items: center; padding: var(--s-24);
  transition: opacity .9s var(--ease-out), visibility .9s;
}
.intro.out { opacity: 0; visibility: hidden; }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: var(--s-24); text-align: center; }
.intro__logo { width: min(340px, 70vw); height: auto; }
.intro__tag { margin: 0; font-family: var(--f-script); font-size: 34px; line-height: 1.1; color: var(--on-black); }
.intro__progress { width: 180px; height: 1px; background: rgba(241,239,231,.22); overflow: hidden; }
.intro__progress span { display: block; height: 100%; width: 0; background: var(--ivory); transition: width .3s var(--ease-out); }
.intro__alt {
  background: none; border: 0; color: var(--on-black-soft); font-size: 14px; min-height: 44px;
  text-decoration: underline; text-underline-offset: 4px;
}
.intro__alt:hover { color: var(--on-black); }

/* ---------- Sheets (dialogs) ---------- */
.sheet {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); max-width: 100vw;
  border: 0; padding: 0; background: var(--ivory); color: var(--ink);
  box-shadow: -1px 0 0 var(--line);
}
.sheet[open] { animation: sheet-in .45s var(--ease-out); }
.sheet::backdrop { background: rgba(0, 0, 0, .38); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close {
  position: sticky; top: var(--s-16); float: right; margin: var(--s-16) var(--s-16) 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--ivory); display: grid; place-items: center;
}
.sheet__close:hover { background: var(--black); color: var(--ivory); }
.sheet__body { padding: var(--s-48) var(--s-48) var(--s-64); }
.sheet__client { margin: 0 0 var(--s-8); font-family: var(--f-script); font-size: 42px; line-height: 1.1; }
.sheet__title {
  margin: 0 0 var(--s-16); font-family: var(--f-head); font-weight: 800;
  font-size: clamp(32px, 5vw, 44px); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance;
}
.sheet__lede { margin: 0 0 var(--s-32); font-size: 18px; color: var(--ink-soft); max-width: 60ch; }
.sheet h3 { font-family: var(--f-head); font-weight: 700; font-size: 20px; margin: var(--s-32) 0 var(--s-8); }
.sheet p { max-width: 62ch; }
.sheet ul.ticks { list-style: none; padding: 0; margin: var(--s-16) 0 0; border-top: 1px solid var(--line); }
.sheet ul.ticks li { padding: var(--s-12) 0; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: var(--s-32) 0; border-top: 1px solid var(--black); }
.stat { padding: var(--s-16) var(--s-16) var(--s-16) 0; border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-head); font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--ink-soft); }
.shots { display: grid; gap: var(--s-12); margin-top: var(--s-32); }
.shots img, .shots video { width: 100%; height: auto; background: var(--ivory-deep); }
.sheet .todo, .text-view .todo { background: #FFF3BF; padding: 0 4px; }
.sheet__cta { margin-top: var(--s-48); }
.founder-photo { width: 100%; max-width: 320px; height: auto; margin: 0 0 var(--s-24); }
.sheet__note { font-size: 14px; color: var(--ink-soft); margin-top: calc(-1 * var(--s-16)); }
.svc-art { margin: 0 0 var(--s-24); overflow: hidden; border: 10px solid #B98F3E; box-shadow: inset 0 0 0 2px #E2C27A, 0 10px 24px -12px rgba(0,0,0,.45); max-width: 320px; }
.svc-art img { width: 100%; height: auto; display: block; }
.svc-art.is-cropped img { margin-top: -9%; }
.brand-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-16); margin-top: var(--s-24); }
.brand-grid figure { margin: 0; }
.brand-grid img { width: 100%; height: auto; background: var(--ivory-deep); box-shadow: 0 1px 0 var(--line); }
.brand-grid figcaption { margin-top: var(--s-8); font-family: var(--f-head); font-weight: 500; font-size: 15px; }

/* ---------- Form ---------- */
.form { display: grid; gap: var(--s-16); }
.field { display: grid; gap: var(--s-4); }
.field label { font-family: var(--f-head); font-weight: 500; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  padding: var(--s-8) 0; min-height: 44px;
}
.field textarea { resize: vertical; }
.field select { appearance: none; background: transparent url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path d="M1 1l5 5 5-5" stroke="black" fill="none" stroke-width="1.4"/></svg>') no-repeat right 4px center; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--black); }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.field__error { margin: 0; min-height: 0; font-size: 14px; color: var(--error); }
.form__status { margin: 0; font-size: 15px; }
.contact-links { display: flex; flex-wrap: wrap; gap: var(--s-8) var(--s-24); margin-top: var(--s-32); padding-top: var(--s-24); border-top: 1px solid var(--line); }
.contact-links a { color: var(--ink); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Text version ---------- */
.text-view {
  position: relative; z-index: var(--z-ui); background: var(--ivory);
  padding: calc(var(--bar-h) + var(--s-64)) var(--s-32) var(--s-64);
  min-height: 100dvh;
}
.text-view:focus { outline: none; }
.tv { max-width: 1120px; margin: 0 auto; }
.tv section { padding: var(--s-64) 0; border-top: 1px solid var(--black); display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-32); }
.tv section:first-child { border-top: 0; display: block; padding-top: 0; }
.tv h1 { font-family: var(--f-head); font-weight: 800; font-size: clamp(48px, 9vw, 120px); line-height: .92; letter-spacing: -0.035em; margin: 0 0 var(--s-24); max-width: 11ch; }
.tv h2 { font-family: var(--f-head); font-weight: 700; font-size: 32px; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
.tv h3 { font-family: var(--f-head); font-weight: 700; font-size: 22px; margin: 0 0 var(--s-8); }
.tv .script { font-family: var(--f-script); font-size: 42px; line-height: 1.1; margin: 0 0 var(--s-8); }
.tv p { max-width: 64ch; margin: 0 0 var(--s-16); }
.tv .lede { font-size: 20px; color: var(--ink-soft); }
.tv .rows > div { padding: var(--s-24) 0; border-bottom: 1px solid var(--line); }
.tv .rows > div:first-child { padding-top: 0; }
.tv .chips { display: flex; flex-wrap: wrap; gap: var(--s-8); padding: 0; list-style: none; }
.tv .chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.tv blockquote { margin: 0 0 var(--s-24); font-size: 20px; }
.tv cite { display: block; font-style: normal; font-size: 14px; color: var(--ink-soft); margin-top: var(--s-8); }
.tv .actions-row { display: flex; flex-wrap: wrap; gap: var(--s-12); margin-top: var(--s-24); }

.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--s-32); background: var(--ivory); z-index: 300; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  /* backdrop-filter would trap the fixed bottom room bar inside the header */
  .topbar { padding: 0 var(--s-16); gap: var(--s-12); backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(241, 239, 231, 0.96); }
  .rooms {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0; justify-content: space-around;
    background: rgba(241, 239, 231, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom));
  }
  .rooms button { flex: 1; font-size: 14px; padding: var(--s-8) var(--s-4); }
  .rooms button::after { left: 30%; right: 30%; bottom: 6px; }
  .actions { margin-left: auto; }
  .room-caption { left: var(--s-16); bottom: calc(72px + env(safe-area-inset-bottom)); }
  .room-caption__name { font-size: 30px; }
  .room-caption { padding: var(--s-12) var(--s-16); }
  .hint { left: var(--s-16); right: var(--s-16); top: calc(var(--bar-h) + var(--s-12)); bottom: auto; text-align: left; max-width: none; }
  .sound { right: var(--s-16); bottom: calc(76px + env(safe-area-inset-bottom)); padding: 0 var(--s-12); }
  .sound__label { display: none; }
  .room-caption { max-width: calc(100% - 120px); }
  .text-view { padding: calc(var(--bar-h) + var(--s-32)) var(--s-16) calc(96px + env(safe-area-inset-bottom)); }
  .tv section { grid-template-columns: 1fr; gap: var(--s-16); padding: var(--s-48) 0; }
  .sheet__body { padding: var(--s-32) var(--s-16) var(--s-48); }
}
@media (max-width: 560px) {
  #toggle-text { display: none; }
  .btn-solid, .btn-quiet { padding: 0 var(--s-16); }
  .brand img { height: 22px; }
}

/* ---------- Flip book ---------- */
.book {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: radial-gradient(ellipse at 50% 42%, #2B2722 0%, #0F0E0C 78%); color: var(--on-black);
}
.book[open] { display: grid; grid-template-rows: auto 1fr auto; }
.book::backdrop { background: rgba(0, 0, 0, .6); }
.book :focus-visible { outline-color: var(--ivory); }
.book__top { display: flex; align-items: center; gap: var(--s-16); padding: var(--s-16) var(--s-24); }
.book__title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.book__count { margin: 0 0 0 auto; white-space: nowrap; font-size: 14px; color: var(--on-black-soft); font-variant-numeric: tabular-nums; }
.book__close, .book__turn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--ivory); border: 1px solid rgba(241, 239, 231, .45);
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.book__close:hover, .book__turn:hover:not(:disabled) { background: var(--ivory); color: var(--black); }
.book__turn:disabled { opacity: .3; cursor: default; }
.book__stage { display: grid; place-items: center; overflow: hidden; min-height: 0; }
.book__nav { display: flex; align-items: center; justify-content: center; gap: var(--s-24); padding: var(--s-12) var(--s-16) var(--s-24); }
.book__hint { margin: 0; font-size: 14px; color: var(--on-black-soft); min-width: 0; text-align: center; }

.bk-spread {
  position: relative; width: calc(var(--pw) * 2); height: var(--ph);
  perspective: 3000px; cursor: pointer; touch-action: pan-y;
  transition: transform .9s cubic-bezier(.45, .05, .25, 1);
}
.bk-spread.is-single { width: var(--pw); }
.bk-page { position: absolute; top: 0; left: 0; width: var(--pw); height: var(--ph); background: #F7F5F0; overflow: hidden; }
.bk-page img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.bk-page.is-empty { background: transparent; }
.bk-page.is-cover { background: #EFEDE6; }
.bk-page.is-cover img { object-fit: contain; }   /* covers are A4, inner pages slightly wider */
.bk-page.is-paper { background: #ECE8E0; }
.bk-page:not(.is-empty) { box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .7); }
.slot-right { left: var(--pw); }
.slot-left::after, .slot-right::after, .bk-leaf .face::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.slot-left::after { background: linear-gradient(to left, rgba(0, 0, 0, .24), rgba(0, 0, 0, 0) 9%); }
.slot-right::after { background: linear-gradient(to right, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0) 9%); }
.bk-page.is-cover::after, .bk-page.is-empty::after { background: none; }

.bk-leaf {
  position: absolute; top: 0; width: var(--pw); height: var(--ph); z-index: 5;
  transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .25, 1);
}
.bk-leaf.from-right { left: var(--pw); transform-origin: left center; }
.bk-leaf.from-left { left: 0; transform-origin: right center; }
.bk-leaf.from-single { left: 0; transform-origin: left center; }
.bk-leaf .face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-leaf .back { transform: rotateY(180deg); }
.bk-leaf.go-next, .bk-leaf.start-turned { transform: rotateY(-180deg); }
.bk-leaf.go-prev { transform: rotateY(180deg); }
.bk-leaf.start-turned.go-prev-single { transform: rotateY(0deg); }
.bk-leaf .face::after { background: linear-gradient(to left, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 70%); opacity: 0; }
.bk-leaf.go-next .face::after, .bk-leaf.go-prev .face::after, .bk-leaf.go-prev-single .face::after { animation: page-shade .9s ease-in-out; }
@keyframes page-shade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

.brand-grid button { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.brand-grid button:hover img { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .4); }
.brand-grid img { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }

@media (max-width: 759px) {
  .book__hint { display: none; }
  .book__top { padding: var(--s-12) var(--s-16); }
  .book__title { font-size: 16px; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-leaf { visibility: hidden; }
  .bk-spread { transition: none; }
}

/* ---------- Campaign slideshow ---------- */
.slides {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: radial-gradient(ellipse at 50% 45%, #2B2722 0%, #0F0E0C 78%); color: var(--on-black);
}
.slides[open] { display: grid; grid-template-rows: auto 1fr auto; }
.slides::backdrop { background: rgba(0, 0, 0, .6); }
.slides :focus-visible { outline-color: var(--ivory); }
.slides__top { display: flex; align-items: flex-start; gap: var(--s-16); padding: var(--s-16) var(--s-24); }
.slides__heading { min-width: 0; }
.slides__client { margin: 0; font-family: var(--f-script); font-size: 32px; line-height: 1; color: var(--on-black); }
.slides__title { margin: var(--s-4) 0 0; font-family: var(--f-head); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -0.01em; }
.slides__line { margin: var(--s-4) 0 0; font-size: 15px; color: var(--on-black-soft); }
.slides__count { margin: var(--s-8) 0 0 auto; white-space: nowrap; font-size: 14px; color: var(--on-black-soft); font-variant-numeric: tabular-nums; }
.slides__stage { position: relative; overflow: hidden; min-height: 0; touch-action: pan-y; }
.slides[open] .slides__stage { animation: slides-in .7s var(--ease-out); }
@keyframes slides-in { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
.slides__track { position: absolute; inset: 0; display: flex; transition: transform .65s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.slide { flex: 0 0 100%; margin: 0; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; padding: var(--s-8) var(--s-48); }
.slide img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7); user-select: none; -webkit-user-drag: none; background: #1c1a17; }
.slides__nav { display: flex; align-items: center; justify-content: center; gap: var(--s-24); padding: var(--s-12) var(--s-16) var(--s-24); }
.slides__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 60vw; }
.slides__dots[hidden] { display: none; }
.slides__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; display: grid; place-items: center; }
.slides__dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(241, 239, 231, .35); transition: background-color .2s, transform .2s; }
.slides__dots button[aria-current="true"]::before { background: var(--ivory); transform: scale(1.3); }
@media (max-width: 759px) {
  .slide { padding: var(--s-8) var(--s-12); }
  .slides__title { font-size: 22px; }
  .slides__client { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .slides__track { transition: none; } }
.tv .camp-list { display: flex; flex-wrap: wrap; gap: var(--s-8); margin-top: var(--s-12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* phone held sideways: keep the whole landing page and gallery controls in view */
.intro { overflow-y: auto; }
@media (max-height: 500px) {
  .intro { padding: var(--s-12); }
  .intro__inner { gap: var(--s-12); }
  .intro__logo { width: 220px; }
  .intro__tag { font-size: 28px; }
  .room-caption__name { font-size: 22px; }
  .room-caption__line { display: none; }
  .hint { display: none; }
}
@media (max-width: 380px) {
  .intro__tag { font-size: 30px; }
  .topbar .btn-solid { padding: 0 var(--s-12); font-size: 14px; }
}
/* on phones the room label stays small so it does not cover the artwork */
@media (max-width: 560px) {
  .room-caption { padding: var(--s-8) var(--s-12); }
  .room-caption__name { font-size: 22px; }
  .room-caption__line { font-size: 13px; line-height: 1.4; margin-top: 2px; }
}

/* ---------- Audit button, WhatsApp, proof, founder ---------- */
.cta-mid, .cta-short { display: none; }
@media (max-width: 1279px) { .topbar .cta-long { display: none; } .topbar .cta-mid { display: inline; } }
@media (max-width: 560px) { .topbar .cta-mid { display: none; } .topbar .cta-short { display: inline; } }
.sheet__cta .btn-solid, .actions-row .btn-solid { min-height: 48px; line-height: 1.25; }

.whatsapp {
  position: fixed; right: var(--s-32); bottom: calc(var(--s-32) + 56px); z-index: var(--z-bar);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-8);
  min-width: 48px; min-height: 48px; padding: 0 var(--s-16); border-radius: 999px;
  background: #0B6B4F; color: #fff; text-decoration: none;
  font-family: var(--f-head); font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
}
.whatsapp:hover { background: #095a43; }
body.reading .whatsapp { bottom: var(--s-32); }
@media (max-width: 1023px) {
  .whatsapp { right: var(--s-16); bottom: calc(128px + env(safe-area-inset-bottom)); padding: 0; }
  body.reading .whatsapp { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .whatsapp__label { display: none; }
}

.room-quote { margin: var(--s-8) 0 0; padding-top: var(--s-8); border-top: 1px solid var(--line); }
.room-quote[hidden] { display: none; }
.room-quote blockquote { margin: 0; font-size: 14px; line-height: 1.45; }
.room-quote figcaption { margin-top: 2px; font-family: var(--f-head); font-weight: 700; font-size: 13px; }
@media (max-width: 560px) { .room-quote blockquote { font-size: 12px; } .room-quote figcaption { font-size: 12px; } }

.proof { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-16); }
.proof li { display: flex; flex-direction: column; border-top: 1px solid currentColor; padding-top: var(--s-8); }
.proof b { font-family: var(--f-head); font-weight: 800; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof span { font-size: 13px; line-height: 1.35; }
.proof small { font-size: 12px; line-height: 1.4; opacity: .72; margin-top: 2px; }
.proof--text { margin-top: var(--s-48); }

.intro { place-items: safe center; }
.intro__inner { gap: var(--s-16); width: 100%; max-width: 640px; }
.intro__logo { width: min(260px, 62vw); }
.intro__niche { margin: 0; font-size: 15px; line-height: 1.5; max-width: 46ch; color: var(--on-black); text-wrap: balance; }
.intro .proof { width: 100%; text-align: left; margin-top: var(--s-8); }
.intro__clients { list-style: none; margin: 0 0 var(--s-8); padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-8); }
.intro__clients li { width: 104px; height: 48px; display: grid; place-items: center; padding: 6px 10px; border-radius: 4px; background: #fff; }
.intro__clients li.is-dark { background: #000; border: 1px solid rgba(241,239,231,.35); }
.intro__clients img { max-width: 100%; max-height: 34px; object-fit: contain; }
@media (max-width: 560px) {
  .intro .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-12); }
  .proof b { font-size: 24px; }
  .proof--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro__clients { gap: 6px; }
  .intro__clients li { width: 74px; height: 40px; padding: 4px 6px; }
  .intro__clients img { max-height: 28px; }
  .intro__niche { font-size: 14px; }
}
@media (max-height: 760px) { .intro__logo { width: min(200px, 52vw); } .intro__inner { gap: var(--s-12); } .intro__tag { font-size: 28px; } }

.founder-chip { display: flex; align-items: center; gap: var(--s-12); margin: 0 0 var(--s-16); }
.founder-chip img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.founder-chip p { margin: 0; line-height: 1.35; }
.founder-chip strong { display: block; font-family: var(--f-head); font-size: 17px; }
.founder-chip span { font-size: 14px; color: var(--ink-soft); }

.contact-note { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink-soft); }
.botcheck { position: absolute; left: -9999px; opacity: 0; }

.tv .cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-16); }
.tv .case { border: 1px solid var(--line-strong); border-radius: 4px; padding: var(--s-16); display: flex; flex-direction: column; align-items: flex-start; }
.tv .case__num b { display: block; font-family: var(--f-head); font-weight: 800; font-size: 40px; line-height: 1; }
.tv .case__num span { font-size: 14px; color: var(--ink-soft); }
.tv .case h3 { font-size: 18px; line-height: 1.2; }
.tv .case button { margin-top: auto; }
@media (max-width: 1023px) { .tv .cases { grid-template-columns: 1fr; } }

/* ---------- Guided tour ---------- */
.tour { display: flex; gap: var(--s-8); margin-top: var(--s-12); pointer-events: auto; }
.tour button { min-height: 44px; border-radius: 999px; font-family: var(--f-head); font-size: 14px; font-weight: 500; }
.tour__next { padding: 0 var(--s-16); background: var(--black); color: var(--ivory); border: 1px solid var(--black); }
.tour__next:hover { background: #26241f; }
.tour__back { width: 44px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); }
.tour__back[hidden] { display: none; }
@media (max-width: 560px) { .tour { margin-top: var(--s-8); } }
@media (max-width: 560px) { body.explored .room-quote { display: none; } }   /* more floor to see once exploring */
.contact-book { margin: calc(-1 * var(--s-16)) 0 var(--s-32); }
.contact-book a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; text-align: center; text-decoration: none; }
