/* ============================================================================
   DONDA — deck.css · the concept document as a site (2026-08-02)
   The design system IS the investor deck's: cream paper pages with brass mono
   labels and hairline definition rows, alternating with full-bleed dark plates
   captioned in mono. "Day people for the nighttime" as a literal palette.
   Loads AFTER styles.css (which supplies the splash / pad / sound-pill systems
   verbatim — the owner loves them); everything here is new-namespace (.paper,
   .plate, .bar, .fin …) so the two sheets never fight. Palette sampled from
   the PDF itself: paper #f1ece3 · ink #1a1713 · brass #b6a07f (deepened to
   #8f7a52 for small type so it clears contrast on cream).
   ========================================================================== */

:root {
  --paper: #f1ece3;
  --paper-2: #eae4d8;
  --ink: #1a1713;
  --ink-soft: #3a362f;
  --brass: #8f7a52;
  --brass-bright: #b6a07f;
  --hair: rgba(26, 23, 19, 0.14);
  --hair-strong: rgba(26, 23, 19, 0.3);
  --night: #0b0b0d;
  --bone: #e6e1d7;      /* light type on dark plates */
  --bone-dim: #9b968c;
}

html { scroll-behavior: smooth; }
body.deck { background: var(--night); }
body.deck main { display: block; }

/* ---------- the fixed bar: the mark + the one ask ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(0.9rem, env(safe-area-inset-top)) clamp(1.1rem, 4vw, 2rem) 0.9rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.62), rgba(11, 11, 13, 0));
}
.bar > * { pointer-events: auto; }
.bar__mark { display: inline-flex; height: 17px; }
.bar__mark img { height: 100%; width: auto; display: block; filter: drop-shadow(0 1px 8px rgba(0,0,0,0.6)); }
.bar__cta {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: #f2f5f7; text-decoration: none;
  border: 1px solid rgba(242, 245, 247, 0.42); border-radius: 2px;
  padding: 0.6rem 0.95rem; min-height: 40px; display: inline-flex; align-items: center;
  background: rgba(11, 11, 13, 0.55);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.bar__cta:hover, .bar__cta:focus-visible { background: rgba(11, 11, 13, 0.85); border-color: #f2f5f7; }
/* over PAPER sections the bar flips to ink (deck.js toggles .bar--paper): the
   white wordmark and dark gradient read as a dirty wash on cream */
.bar--paper { background: linear-gradient(to bottom, rgba(241, 236, 227, 0.82), rgba(241, 236, 227, 0)); }
.bar--paper .bar__mark img { filter: invert(1); }
.bar--paper .bar__cta { color: var(--ink); border-color: rgba(26, 23, 19, 0.5); background: rgba(241, 236, 227, 0.66); }
.bar--paper .bar__cta:hover, .bar--paper .bar__cta:focus-visible { background: rgba(26, 23, 19, 0.08); border-color: var(--ink); }
.bar, .bar__mark img, .bar__cta { transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, filter 0.35s ease; }

/* ---------- THE SPLASH SHELL — the loved opener, freed from the descent ----
   The splash markup + styles come from styles.css untouched; this shell just
   turns the 800vh pinned cosmos into one static full-height opening frame. */
.deck-splash.cosmos.is-live { height: 100vh; height: 100svh; background: var(--night); }
.deck-splash .cosmos__pin,
.deck-splash.cosmos.is-live .cosmos__pin {
  position: relative; top: auto; height: 100vh; height: 100svh; overflow: hidden;
}

/* ---------- PLATES — full-bleed dark image pages, mono caption ---------- */
.plate {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  margin: 0; background: var(--night);
  display: flex; align-items: flex-end; overflow: hidden;
}
.plate--half { min-height: 74vh; min-height: 74svh; }
/* NB styles.css sets `picture { display: contents }`, so the <picture> box does
   not exist — every framing rule must sit on the IMG itself. */
.plate img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.07);
  transition: transform 1.6s cubic-bezier(0.22, 0.61, 0.2, 1);
}
.plate.in img { transform: scale(1.005); }
.plate::after {   /* legibility scrim for the caption band */
  content: ""; position: absolute; inset: auto 0 0 0; height: 34%;
  background: linear-gradient(to top, rgba(6, 6, 8, 0.78), transparent);
  pointer-events: none;
}
/* FIT PLATES — small landscape photographs (the aerial, the two frontage
   shots). Cover-cropping these into a portrait frame showed a blurry sliver;
   the deck shows the WHOLE image on a dark page with the caption beneath —
   so does this. */
.plate--fit {
  min-height: 0;
  display: block;
  padding: clamp(2.75rem, 7vh, 4.5rem) 0;
}
.plate--fit img {
  position: static; inset: auto;
  width: 100%; height: auto; object-fit: unset;
  transform: none; transition: opacity 1s ease; opacity: 0.001;
}
.plate--fit.in img { opacity: 1; transform: none; }
.plate--fit::after { display: none; }
.plate--fit .plate__cap { padding-top: 1.1rem; padding-bottom: 0; }

.plate__cap {
  position: relative; z-index: 2;
  margin: 0 auto; width: 100%; max-width: 44rem;
  padding: 0 clamp(1.4rem, 6vw, 3rem) clamp(1.6rem, 4vh, 2.6rem);
  font-family: var(--mono); font-size: 0.6rem; line-height: 1.7;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-dim);
}
.plate__body {
  position: relative; z-index: 2; width: 100%; max-width: 44rem;
  margin: 0 auto; padding: 0 clamp(1.4rem, 6vw, 3rem) clamp(4rem, 12vh, 7rem);
}
.plate__title {
  font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.9rem, 7.4vw, 3.4rem); line-height: 1.04; letter-spacing: -0.015em;
  color: #f2f5f7; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.7); text-wrap: balance;
}
.plate__sub {
  margin: 1.1rem 0 0; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--bone-dim);
}

/* ---------- PAPER — the light editorial pages ---------- */
.paper {
  position: relative;
  background: var(--paper); color: var(--ink);
  padding: clamp(4.5rem, 13vh, 8rem) clamp(1.4rem, 6vw, 3rem);
}
.paper > * { position: relative; z-index: 2; max-width: 38rem; margin-left: auto; margin-right: auto; }
.eb {
  margin: 0 0 1.1rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--brass);
}
.hl {
  margin: 0 0 1.2rem; font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(1.75rem, 6.6vw, 3rem); line-height: 1.05; letter-spacing: -0.015em;
  color: var(--ink); text-wrap: balance;
}
.hl--sm { font-size: clamp(1.25rem, 4.4vw, 1.8rem); margin-top: 2.4rem; line-height: 1.2; }
.bd { margin: 0 0 2.2rem; font-size: 0.99rem; line-height: 1.66; color: var(--ink-soft); }
.src {
  margin: 2.2rem 0 0; font-family: var(--mono); font-size: 0.58rem; line-height: 1.8;
  letter-spacing: 0.14em; text-transform: uppercase; color: #8a8172;
}

/* definition rows — the deck's signature device */
.rows { margin: 0; }
.row {
  display: grid; grid-template-columns: minmax(6.4rem, 8.6rem) 1fr;
  gap: 0.5rem 1.1rem; padding: 1rem 0; border-top: 1px solid var(--hair);
}
.rows > .row:last-child { border-bottom: 1px solid var(--hair); }
.row dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brass); padding-top: 0.2rem;
}
.row dd { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft); }
.row dd b { color: var(--ink); font-weight: 650; }
.rows--time .row dt, .rows--season .row dt { font-variant-numeric: tabular-nums; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--ink); }
.rows--season .row dd { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* KPI quads (THE GAP / THE CUSTOMER) */
.kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--hair); border-block: 1px solid var(--hair);
  margin: 0 auto 2rem;
}
.kpi { background: var(--paper); padding: 1.05rem 1rem 1.1rem; }
.kpi b {
  display: block; font-size: clamp(1.35rem, 5vw, 1.7rem); font-weight: 800;
  letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums;
}
.kpi span {
  display: block; margin-top: 0.4rem; font-family: var(--mono); font-size: 0.55rem;
  line-height: 1.6; letter-spacing: 0.12em; text-transform: uppercase; color: #7d7466;
}

/* room stat stacks */
.stats { margin-top: 0.4rem; }
.stat { padding: 1.05rem 0; border-top: 1px solid var(--hair); }
.stats .stat:last-child { border-bottom: 1px solid var(--hair); }
.stat b { display: block; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 0.3rem; font-size: 0.8rem; color: #6f6759; }

/* dark editorial pages (THE PROMISE / THE KITCHEN) */
.paper--dark { background: #100f0d; color: var(--bone); }
.paper--dark__bg { position: absolute; inset: 0; z-index: 0; max-width: none; margin: 0; }
.paper--dark__bg picture, .paper--dark__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.paper--dark__bg img { opacity: 0.34; }
.paper--dark__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10, 9, 8, 0.55), rgba(10, 9, 8, 0.88)); }
.paper--dark .eb { color: var(--brass-bright); }
.paper--dark .hl { color: #f2efe8; }
.paper--dark .bd { color: #c9c3b7; }
.paper--dark .row { border-top-color: rgba(230, 225, 215, 0.16); }
.paper--dark .rows > .row:last-child { border-bottom-color: rgba(230, 225, 215, 0.16); }
.paper--dark .row dt { color: var(--brass-bright); }
.paper--dark .row dd { color: #c9c3b7; }
.paper--dark .row dd b { color: #f2efe8; }

/* la carta */
.carta { column-gap: 3rem; }
.carta__group { margin-top: 2rem; break-inside: avoid; }
.carta__group h3 {
  margin: 0 0 0.9rem; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass);
  padding-bottom: 0.6rem; border-bottom: 1px solid var(--hair);
}
.carta__group p { margin: 0 0 0.65rem; font-size: 0.86rem; line-height: 1.5; color: #5d564a; }
.carta__group p b { color: var(--ink); font-weight: 650; }
@media (min-width: 720px) { .carta { columns: 2; max-width: 44rem; } }

/* dancing food grid */
.foodgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem; margin-top: 0.4rem; }
.food { margin: 0; }
/* picture is display:contents (styles.css) — crop on the img directly */
.food img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  border-radius: 2px; transform: scale(1.02); transition: transform 1.2s ease;
}
.in .food img { transform: scale(1); }
.food figcaption {
  margin-top: 0.5rem; font-family: var(--mono); font-size: 0.55rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-dim);
}

/* revenue bars */
.barsbox { margin-top: 0.6rem; }
.barrow {
  display: grid; grid-template-columns: 6.4rem 1fr auto; align-items: center;
  gap: 0.9rem; padding: 0.78rem 0; border-top: 1px solid var(--hair);
}
.barsbox .barrow:last-child { border-bottom: 1px solid var(--hair); }
.barrow > span:first-child { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: #7d7466; }
.barrow .track { display: block; height: 11px; background: rgba(26, 23, 19, 0.09); }
.barrow .track i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1.15s cubic-bezier(0.22, 0.61, 0.2, 1); }
.in .barrow .track i { width: var(--w, 0%); }
.barrow b { font-size: 0.78rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* forecast tiers */
.tiers { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-bottom: 2rem; }
.tier { background: var(--paper); padding: 1.25rem 1.2rem 1.35rem; }
.tier__tag { margin: 0 0 0.5rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--brass); }
.tier b { display: block; font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.tier p:last-child { margin: 0.55rem 0 0; font-size: 0.85rem; line-height: 1.55; color: #6f6759; }
@media (min-width: 760px) { .tiers { grid-template-columns: 1fr 1fr 1fr; } }

/* the floor plan */
.paper--plan { background: var(--paper-2); }
.plan { margin: 0; }
.plan img { width: 100%; height: auto; display: block; border: 1px solid var(--hair-strong); background: #fff; }
.plan figcaption { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8a8172; }

/* the play line (THE SOUND section → opens the pad) */
.playline {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin-top: 2.2rem; padding: 0.85rem 1.15rem; min-height: 48px;
  background: none; border: 1px solid var(--hair-strong); border-radius: 2px;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink); cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.playline:hover, .playline:focus-visible { background: rgba(26, 23, 19, 0.06); border-color: var(--ink); }
.playline__disc {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink); position: relative; flex: 0 0 auto;
}
.playline__disc::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  border-style: solid; border-width: 3.5px 0 3.5px 6px; border-color: transparent transparent transparent var(--paper);
  transform: translate(-42%, -50%);
}

/* ---------- FIN ---------- */
.fin {
  background: var(--night); color: var(--travertine, #cfd6db);
  /* bottom reserve: safe-area + ~6rem so the fixed PLAY THE ROOM pill never
     covers the footer at full scroll (the homepage's standing rule) */
  padding: clamp(5rem, 16vh, 9rem) clamp(1.4rem, 6vw, 3rem) calc(clamp(4rem, 10vh, 6rem) + 6rem + env(safe-area-inset-bottom, 0px));
}
.fin > * { max-width: 38rem; margin-left: auto; margin-right: auto; }
.fin__title {
  margin: 0 0 1.2rem; font-family: var(--display); font-weight: 700; font-stretch: 112%;
  font-size: clamp(2.5rem, 11vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; color: #f2f5f7;
}
.fin .bd { color: #a9b0b5; }
.fin .enquire { margin-top: 2.4rem; }
.fin__foot {
  margin-top: clamp(4rem, 10vh, 6rem); padding-top: 1.6rem;
  border-top: 1px solid rgba(207, 214, 219, 0.14);
  display: flex; flex-direction: column; gap: 0.9rem; align-items: flex-start;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: #878e94;
}
.fin__foot img { height: 16px; width: auto; opacity: 0.85; }
.fin__foot a { color: #b9c0c6; text-decoration: none; }
.fin__foot a:hover, .fin__foot a:focus-visible { color: #f2f5f7; }

/* ---------- MOVEMENT — the reveal grammar (JS adds .in per section) ---------- */
.r { opacity: 0; transform: translateY(20px); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 0.61, 0.2, 1); }
.in .r { opacity: 1; transform: none; }

/* wide screens: paper pages breathe, plates stay full-bleed */
@media (min-width: 1024px) {
  .paper { padding-top: clamp(6rem, 16vh, 9.5rem); padding-bottom: clamp(6rem, 16vh, 9.5rem); }
  .paper > *, .fin > * { max-width: 40rem; }
  .plate__cap, .plate__body { max-width: 52rem; }
}

/* reduced motion: everything lands settled */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r { opacity: 1 !important; transform: none !important; transition: none !important; }
  .plate img, .food img { transform: none !important; transition: none !important; }
  .barrow .track i { transition: none !important; width: var(--w, 0%); }
}
