/* =============================================================
   Casa Salvia — Interior Proposal
   Mobile-first. Tokens first, then base, layout, components.
   ============================================================= */

:root {
  /* Colour: two accents plus warm neutrals */
  --bg:        #f4efe6;   /* limewash ground */
  --bg-tint:   #ece3d4;   /* sand panel */
  --bg-deep:   #2e2a25;   /* warm charcoal, for the finale */
  --ink:       #2e2a25;
  --ink-soft:  #6b6157;
  --line:      rgba(46, 42, 37, 0.14);
  --terracotta:#b8693f;
  --sage:      #6f7f62;
  --white:     #fbf8f2;

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-body:    clamp(0.85rem, 0.82rem + 0.2vw, 0.95rem);
  --fs-small:   0.8125rem;
  --fs-eyebrow: 0.6875rem;
  --fs-sub:     clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  --fs-h2:      clamp(2.4rem, 1.6rem + 3.5vw, 4.6rem);
  --fs-h1:      clamp(3.4rem, 2rem + 8vw, 8.5rem);

  /* Space */
  --gutter:   clamp(1.25rem, 4vw, 3rem);
  --space-s:  clamp(1rem, 2vw, 1.5rem);
  --space-m:  clamp(2rem, 4vw, 3.5rem);
  --space-l:  clamp(4rem, 8vw, 8rem);
  --space-xl: clamp(6rem, 12vw, 12rem);
  --measure:  38rem;
  --container: 84rem;

  /* The one circle size used by every swatch / colour dot on the site */
  --circle: clamp(4.25rem, 3.6rem + 1.6vw, 5.25rem);

  /* Room boards: wide, with a generous but not edge-to-edge margin either side */
  --board-w: 62rem;
  --radius: 0.75rem;      /* main images and collage tiles */
  --radius-lg: 1rem;      /* the board itself */
  --shadow-board: 0 32px 60px -44px rgba(46, 42, 37, 0.45);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.9s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
/* A faint limewash grain over the whole page — the walls of the house, not a flat screen */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
body > * { position: relative; z-index: 1; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 300; line-height: 1.02; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 4px; }
.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--white); font-size: var(--fs-small);
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 48rem; }

/* ---------- Type helpers ---------- */
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow--light { color: var(--white); opacity: 0.85; }
.wordmark { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; letter-spacing: 0.04em; margin: 0; }
.label {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(env(safe-area-inset-top, 0px) + 1rem) var(--gutter) 1rem;
  color: var(--white);
  background: rgba(111, 127, 98, 0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: color 0.4s, background 0.4s;
}
.site-header__right { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.header-chapter {
  margin: 0; display: none;
  font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  opacity: 0.85;
}

/* Language switcher: EN · ES */
.lang { display: inline-flex; align-items: center; gap: 0.4rem; }
.lang__btn {
  min-height: 44px; padding-inline: 0.2rem; display: inline-flex; align-items: center;
  font-size: var(--fs-eyebrow); letter-spacing: 0.2em; font-weight: 500; opacity: 0.55;
  border-bottom: 1px solid transparent; transition: opacity 0.3s, border-color 0.3s;
}
.lang__btn[aria-pressed="true"] { opacity: 1; border-bottom-color: currentColor; }
.lang__btn:hover { opacity: 1; }
.lang__sep { font-size: var(--fs-eyebrow); opacity: 0.55; }

.index-toggle { display: inline-flex; align-items: center; gap: 0.75rem; min-height: 44px; padding-inline: 0.25rem; }
.index-toggle__label { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.index-toggle__icon { position: relative; width: 22px; height: 10px; }
.index-toggle__icon::before, .index-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.index-toggle__icon::before { top: 0; }
.index-toggle__icon::after { top: 9px; }
.index-toggle[aria-expanded="true"] .index-toggle__icon::before { top: 4.5px; transform: rotate(45deg); }
.index-toggle[aria-expanded="true"] .index-toggle__icon::after  { top: 4.5px; transform: rotate(-45deg); }

/* Full-screen room index */
.room-index {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(111, 127, 98, 0.97);
  padding: calc(env(safe-area-inset-top, 0px) + 5rem) var(--gutter) 3rem;
  overflow-y: auto;
  opacity: 0; transition: opacity 0.4s;
}
.room-index[hidden] { display: none; }
.room-index.is-open { opacity: 1; }
.room-index__list { display: grid; gap: 0.15rem 2.5rem; width: 100%; max-width: 60rem; }
.room-index__list a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 0.45rem 0;
  font-family: var(--font-display); font-size: clamp(1.35rem, 1rem + 1.8vw, 2.1rem); font-weight: 300;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}
.room-index__list a span { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; color: rgba(255,255,255,0.6); min-width: 2rem; }
.room-index__list a:hover { color: #fff; padding-left: 0.5rem; }
body.index-open { overflow: hidden; }
body.index-open .site-header { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 85svh; display: grid; align-items: end;
  color: var(--white); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #8a6c55 center / cover no-repeat; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 14, 8, 0.72) 0%, rgba(20, 14, 8, 0.48) 50%, rgba(20, 14, 8, 0.28) 100%);
}
.hero__content { position: relative; padding: 0 var(--gutter) clamp(5rem, 12vh, 8rem); max-width: var(--container); margin-inline: auto; width: 100%; }
.hero__title { font-size: var(--fs-h1); font-weight: 300; letter-spacing: 0.02em; }
.hero__sub { margin: 1rem 0 0; font-family: var(--font-display); font-style: italic; font-size: var(--fs-sub); font-weight: 300; opacity: 0.9; }
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 2rem);
  width: 44px; height: 44px; display: grid; place-items: center;
}
.hero__scroll span { width: 1px; height: 44px; background: var(--white); opacity: 0.7; animation: drip 2.4s var(--ease-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 0.7; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Intro ---------- */
.intro { padding: var(--space-xl) 0 var(--space-l); }
.intro__lead { font-family: var(--font-display); font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem); font-weight: 300; line-height: 1.3; margin-bottom: 1.5em; }
.intro__body { color: var(--ink-soft); max-width: var(--measure); }
.keywords { margin-top: var(--space-m); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; color: var(--terracotta); font-weight: 500; line-height: 2; }

/* ---------- Chapters ---------- */
.chapter { padding: var(--space-l) 0; scroll-margin-top: 4rem; }
.chapter--tint { background: var(--bg-tint); }
.chapter__head { margin-bottom: var(--space-m); }
.chapter__head--inline { margin-bottom: var(--space-s); }
.chapter__title { font-size: var(--fs-h2); }
.chapter__sub { margin: 0.6rem 0 0; font-family: var(--font-display); font-style: italic; font-size: var(--fs-sub); font-weight: 300; color: var(--ink-soft); }
.chapter__note { margin: 1.5rem 0 0; max-width: var(--measure); color: var(--ink-soft); }

/* Full-width image */
.bleed { width: 100%; }
.bleed img { width: 100%; height: auto; border-radius: var(--radius); }
.bleed--inset { padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
/* Moodboard: an important beat, but a step smaller than the room renders */
.bleed--moodboard { padding-inline: var(--gutter); max-width: 66rem; margin-inline: auto; }
.chapter--moodboard { padding-bottom: var(--space-m); }
.bleed + .split { margin-top: var(--space-m); }
.bleed + .mood-centered { margin-top: var(--space-m); }

/* Moodboard centered layout */
.mood-centered { text-align: center; }
.mood-centered__text { max-width: 42rem; margin-inline: auto; }
.mood-centered__text p + p { margin-top: 1.2em; }
.mood-centered .aside__title { margin-top: var(--space-m); }
.swatch-row--palette { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }

/* Text + aside / image + text */
.split { display: grid; gap: var(--space-m); margin-top: var(--space-s); }
.split__text { max-width: var(--measure); }
.split__text p + p { margin-top: 1.2em; }
.split__media img { width: 100%; height: auto; }
/* ---------- Room sections: title → story ∥ features → large collage → materials ----------
   Everything in a room shares one width (--board-w), so the text sits on the same edges as the
   board and the three parts read as a single composition. */
.chapter.room { position: relative; padding: var(--space-l) 0; }
.room__inner { width: min(var(--board-w), 100% - 2 * var(--gutter)); margin-inline: auto; }
.room__head { position: relative; display: grid; gap: var(--space-s); margin-bottom: var(--space-m); }
/* Ghost chapter numeral: an editorial accent that also gives each room a quiet sense of place */
.room__head::before {
  content: attr(data-num); position: absolute; right: -0.05em; top: -0.35em; z-index: 0;
  font-family: var(--font-display); font-weight: 300; font-size: clamp(6rem, 14vw, 13rem); line-height: 1;
  color: var(--terracotta); opacity: 0.07; pointer-events: none; user-select: none;
}
.room__title, .room__story, .room__features { position: relative; z-index: 1; }
.room__title .eyebrow::after { content: ""; display: block; width: 2.25rem; height: 1px; background: var(--terracotta); margin-top: 0.7rem; }
.room__story .room-intro { margin-bottom: 0; max-width: var(--measure); }
.room__features .features { max-width: 26rem; }

/* Two-panel bottom: Materials + Furniture side by side */
.room__bottom {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  margin-top: var(--space-s); align-items: start;
}
@media (max-width: 640px) { .room__bottom { grid-template-columns: 1fr; } }

/* Materials & Textures: compact column on the left */
.room__materials {
  text-align: center;
  padding: 1rem 0.75rem;
  background: none; border: none; border-radius: 0;
  max-width: 160px;
}
@media (max-width: 640px) { .room__materials { max-width: none; } }
.room__materials .swatch { --circle: 3rem; }
.room__inner > .room__materials { margin-top: var(--space-s); }

/* Furniture Selection panel */
.room__furniture {
  padding: 1rem 1.25rem 1.25rem;
  background: rgba(111, 127, 98, 0.06); border: 1px solid rgba(111, 127, 98, 0.14); border-radius: var(--radius-lg);
}
.chapter--tint .room__furniture { background: rgba(111, 127, 98, 0.08); }
.furniture__title {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.85rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1rem; color: var(--sage);
  text-align: center; width: 100%; justify-content: center;
}
.furniture__title::before, .furniture__title::after { content: ""; width: 1.5rem; height: 1px; background: rgba(111, 127, 98, 0.25); }
.furniture__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem;
}
@media (max-width: 480px) { .furniture__list { grid-template-columns: 1fr; } }
.furniture__list li {
  padding: 0.5rem 0.65rem 0.5rem 1.6rem;
  background: rgba(255,255,255,0.6); border: 1px solid rgba(111, 127, 98, 0.1);
  border-radius: 0.4rem; font-size: 0.65rem; color: var(--ink-soft); line-height: 1.3;
  position: relative;
}
.furniture__list li::before {
  content: ""; position: absolute; left: 0.6rem; top: 0.7rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(111, 127, 98, 0.3);
}
.chapter--tint .furniture__list li { background: rgba(255,255,255,0.75); }
.furniture__list li strong {
  display: block; font-family: var(--font-display); font-weight: 400; font-style: italic;
  color: var(--sage); font-size: 0.75rem; margin-bottom: 0;
}
/* Floor plan location */
.room__plan {
  margin-top: 1rem; text-align: center;
}
.room__plan-img {
  width: 100%; max-width: 360px; border-radius: var(--radius-lg);
  margin: 0 auto; display: block;
}
.materials__title {
  display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem;
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 0.8rem; color: var(--ink-soft);
}
.materials__title::before, .materials__title::after { content: ""; width: 1rem; height: 1px; background: var(--line); }
.room__materials .swatch-row { justify-content: center; margin-top: 0; gap: 0.5rem; flex-direction: column; align-items: center; }

/* ---------- Room collage: render + inspiration board as one composition ----------
   A proportional grid (fixed aspect ratio, 1fr rows) so every cell keeps its shape at any width.
   The render is the dominant image; the folder references sit around it at readable sizes.
   On phones the grid collapses to: render(s) full width, then references two-up. */
.collage { display: grid; gap: 0.5rem; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); box-shadow: var(--shadow-board); }
.collage > figure { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); }
.collage > figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collage__render { grid-column: 1 / -1; aspect-ratio: auto; }
.collage__render img { position: static; height: auto; }

/* Bone — Pure & Original: a colour circle with its name inside, like the reference */
.swatch .swatch__solid--bone {
  --c: #eee8e1;
  display: grid; grid-template-columns: 1fr; place-content: center; justify-items: center; text-align: center;
  gap: 0.15rem; color: var(--ink-soft); line-height: 1;
}
a.swatch__solid--bone { text-decoration: none; cursor: pointer; }
.swatch__solid--bone b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.04em; color: var(--ink); }
.swatch__solid--bone small { display: block; font-size: 0.42rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.aside__title { font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin-bottom: 1rem; }

/* Two-image editorial composition: a wide main image, and a detail set lower and narrower */
.duo { display: grid; gap: var(--space-s); margin-bottom: var(--space-m); }
.duo img { width: 100%; height: auto; }
.duo figcaption { margin-top: 0.7rem; font-size: var(--fs-small); color: var(--ink-soft); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; }

/* Room copy: a short atmospheric intro, then a scannable list of key features */
.room-intro { margin-bottom: 1.6em; }
.features__title {
  font-family: var(--font-body); font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  color: var(--terracotta); margin: 0 0 0.8em;
}
.features { display: grid; gap: 0.45em; font-size: 0.95em; line-height: 1.5; }
.features li { position: relative; padding-left: 1.1rem; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 4px; height: 4px; border-radius: 50%; background: var(--terracotta); }

/* Option tag + divider between the two master bedroom directions */
.option-tag { margin: 0 0 0.9rem; }
.option-tag span {
  display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--ink); border-radius: 999px;
  font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.option-divider {
  display: flex; align-items: center; gap: 1.25rem; max-width: var(--container); margin-inline: auto;
  padding: var(--space-m) var(--gutter);
}
.option-divider__line { flex: 1; height: 1px; background: var(--line); }
.option-divider__label { font-size: var(--fs-eyebrow); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); white-space: nowrap; }

/* Swatches — every circle on the site is exactly var(--circle) */
.swatch-row { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; margin-top: var(--space-m); }
.swatch { display: grid; justify-items: center; align-content: start; gap: 0.55rem; width: calc(var(--circle) + 0.75rem); flex: none; text-align: center; }
.swatch img, .swatch__solid {
  width: var(--circle); height: var(--circle); max-width: none; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: inset 0 0 0 1px rgba(46, 42, 37, 0.08), 0 6px 16px -8px rgba(46, 42, 37, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}
.swatch img:hover, .swatch__solid:hover {
  transform: scale(2.8);
  box-shadow: 0 8px 30px -4px rgba(46, 42, 37, 0.5);
  z-index: 10;
}
.swatch__solid { background: var(--c); }
.swatch figcaption { font-size: 0.7rem; line-height: 1.3; letter-spacing: 0.02em; color: var(--ink-soft); }
.swatch-row--tight { margin-top: 0; }
.swatch-row--cloud {
  justify-content: center; gap: 1.75rem 1.5rem;
  margin-top: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--line);
}

/* Finale */
.chapter--finale { background: var(--bg-deep); color: var(--white); }
.chapter--finale .chapter__sub, .chapter--finale .aside__title, .chapter--finale .split__text { color: rgba(251, 248, 242, 0.75); }
.chapter--finale .eyebrow { color: #d69a72; }
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.35rem; padding-inline: 0.35rem; }
.mosaic a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: calc(var(--radius) * 0.6); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity 0.4s; }
.mosaic a:hover img { transform: scale(1.04); }
.mosaic a:focus-visible { outline-offset: -3px; }
/* Finale statement: centred, then the connecting idea beneath it */
.together { margin-top: var(--space-m); text-align: center; max-width: 40rem; }
.together__statement {
  margin: 0 auto; max-width: 30rem; font-family: var(--font-display); font-weight: 300; line-height: 1.3;
  font-size: clamp(1rem, 0.85rem + 0.7vw, 1.3rem); color: var(--white); text-wrap: balance;
}
.together__title {
  margin: var(--space-s) 0 0.6rem; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; font-weight: 500; color: #d69a72;
}
.together__title::before { content: ""; display: block; width: 1.75rem; height: 1px; background: #d69a72; margin: 0 auto 0.8rem; }
.together__body { margin: 0 auto; max-width: 28rem; font-size: 0.72rem; line-height: 1.65; color: rgba(251, 248, 242, 0.65); }

/* Disclaimer banner */
.disclaimer-banner {
  margin: var(--space-m) auto 0;
  max-width: 40rem;
  text-align: center;
  padding: 1rem 2rem;
  border: 1px solid rgba(214, 154, 114, 0.3);
  border-radius: 4px;
}
.disclaimer-banner p {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(251, 248, 242, 0.6);
  letter-spacing: 0.02em;
  margin: 0;
}

.disclaimer-banner--light {
  border-color: rgba(184, 105, 63, 0.35);
  background: rgba(184, 105, 63, 0.06);
  padding: 1.5rem 2.5rem;
  max-width: 50rem;
}
.disclaimer-banner--light p {
  color: var(--ink-soft);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

/* Floorplans — the technical reference at the very end */
.plans { display: grid; gap: var(--space-m); align-content: start; justify-items: center; }
.plan { padding: 0; max-width: 420px; }
.plan img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.plan figcaption { margin-top: 1.2rem; font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); }
.chapter__hint { margin: 0.6rem 0 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }

/* Clickable room tags on the floorplans. On narrow screens they wrap beneath the drawing. */
.plan__map { position: relative; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.plan__map img { width: 100%; margin-bottom: 0.6rem; }
.plan__tag {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.18rem 0.4rem; min-height: 1rem;
  background: var(--bg-tint); color: var(--ink); border: 1px solid rgba(46, 42, 37, 0.35); border-radius: 999px;
  font-size: 0.38rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; white-space: nowrap; line-height: 1;
  box-shadow: 0 3px 8px -6px rgba(46, 42, 37, 0.4);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.plan__tag::before { content: ""; width: 3px; height: 3px; border-radius: 50%; background: var(--terracotta); flex: none; transition: background 0.3s; }
.plan__tag:hover, .plan__tag:focus-visible { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 10px 20px -10px rgba(46, 42, 37, 0.6); }
.plan__tag:hover::before, .plan__tag:focus-visible::before { background: #d69a72; }

/* Footer */
.site-footer { padding: var(--space-m) 0 calc(var(--space-m) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.site-footer__meta { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.site-footer__top { font-size: var(--fs-eyebrow); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="image"] { transform: none; clip-path: inset(6% 0 6% 0); transition: opacity 1.2s var(--ease-out), clip-path 1.4s var(--ease-out); }
[data-reveal="image"].is-visible { clip-path: inset(0 0 0 0); }
[data-reveal="image"] img { transform: scale(1.05); transition: transform 1.8s var(--ease-out); }
[data-reveal="image"].is-visible img { transform: none; }
.mosaic[data-reveal="image"] img, .duo[data-reveal="image"] img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-reveal="image"], [data-reveal="image"] img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .hero__scroll span { animation: none; }
  .hero__img { transform: none !important; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .duo--dining { grid-template-columns: repeat(12, 1fr); row-gap: 0; }
  .duo--dining .duo__main { grid-column: 1 / 10; grid-row: 1; }
  .duo--dining .duo__detail { grid-column: 4 / 13; grid-row: 2; margin-top: -14%; position: relative; z-index: 1; }
  .duo--dining .duo__detail img { border: 0.4rem solid var(--bg-tint); box-shadow: 0 24px 48px -28px rgba(46, 42, 37, 0.45); }
}

@media (min-width: 768px) {
  .header-chapter { display: block; }
  .room-index__list { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-l); align-items: start; }
  .split--text-first { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
  .split--text-first .split__aside { justify-self: end; width: 100%; max-width: 22rem; }
  .split--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  /* Nanny's room: give the render a little more of the row */
  .split--reverse.split--wide-media { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split--portrait { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
  .split__text--sticky, .split__media--sticky { position: sticky; top: 6rem; }
  .swatch-row--column { display: grid; grid-template-columns: repeat(2, max-content); gap: 1.5rem 2rem; margin-top: 0; }

  /* Room head: title across the top, then the story and the key features side by side */
  .room__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "title title" "story features"; column-gap: var(--space-l); row-gap: var(--space-s); align-items: start; }
  .room__title { grid-area: title; }
  .room__story { grid-area: story; }
  .room__features { grid-area: features; padding-top: 0.35rem; }
  .room__head::before { top: -0.2em; }

  /* Collage variants — named by render orientation (l = landscape, p = portrait, sq = square) and
     number of reference images. Cells: [column-start / row-start / column-end / row-end]. */
  .collage > figure, .collage__render { aspect-ratio: auto; }
  .collage__render img { position: absolute; height: 100%; }
  /* Wide, single-screen boards (Living Room's 8:5 is the reference scale). The render keeps its own
     proportions on the left; the references fill the right-hand third. */
  .collage--l4  { grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 20 / 9; }
  .collage--l4  > :nth-child(1) { grid-area: 1 / 1 / 3 / 7; }
  .collage--l4  > :nth-child(2) { grid-area: 1 / 7 / 2 / 9; }
  .collage--l4  > :nth-child(3) { grid-area: 1 / 9 / 2 / 11; }
  .collage--l4  > :nth-child(4) { grid-area: 2 / 7 / 3 / 9; }
  .collage--l4  > :nth-child(5) { grid-area: 2 / 9 / 3 / 11; }
  .collage--sq4 { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 2 / 1; }
  .collage--sq4 > :nth-child(1) { grid-area: 1 / 1 / 3 / 7; }
  .collage--sq4 > :nth-child(2) { grid-area: 1 / 7 / 2 / 10; }
  .collage--sq4 > :nth-child(3) { grid-area: 1 / 10 / 2 / 13; }
  .collage--sq4 > :nth-child(4) { grid-area: 2 / 7 / 3 / 10; }
  .collage--sq4 > :nth-child(5) { grid-area: 2 / 10 / 3 / 13; }
  .collage--l3  { grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 5 / 2; }
  .collage--l3  > :nth-child(1) { grid-area: 1 / 1 / 3 / 7; }
  .collage--l3  > :nth-child(2) { grid-area: 1 / 7 / 2 / 11; }
  .collage--l3  > :nth-child(3) { grid-area: 2 / 7 / 3 / 9; }
  .collage--l3  > :nth-child(4) { grid-area: 2 / 9 / 3 / 11; }
  .collage--l2  { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 8 / 3; }
  .collage--l2  > :nth-child(1) { grid-area: 1 / 1 / 4 / 5; }
  .collage--l2  > :nth-child(2) { grid-area: 1 / 5 / 4 / 7; }
  .collage--l2  > :nth-child(3) { grid-area: 1 / 7 / 4 / 9; }
  .collage--p4  { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); aspect-ratio: 8 / 5; }
  .collage--p4  > :nth-child(1) { grid-area: 1 / 1 / 6 / 5; }
  .collage--p4  > :nth-child(2) { grid-area: 1 / 5 / 4 / 7; }
  .collage--p4  > :nth-child(3) { grid-area: 1 / 7 / 4 / 9; }
  .collage--p4  > :nth-child(4) { grid-area: 4 / 5 / 6 / 7; }
  .collage--p4  > :nth-child(5) { grid-area: 4 / 7 / 6 / 9; }
  .collage--p3  { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(5, 1fr); aspect-ratio: 8 / 5; }
  .collage--p3  > :nth-child(1) { grid-area: 1 / 1 / 6 / 5; }
  .collage--p3  > :nth-child(2) { grid-area: 1 / 5 / 4 / 7; }
  .collage--p3  > :nth-child(3) { grid-area: 1 / 7 / 4 / 9; }
  .collage--p3  > :nth-child(4) { grid-area: 4 / 5 / 6 / 9; }
  .collage--p2  { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 5 / 3; }
  .collage--p2  > :nth-child(1) { grid-area: 1 / 1 / 3 / 4; }
  .collage--p2  > :nth-child(2) { grid-area: 1 / 4 / 2 / 7; }
  .collage--p2  > :nth-child(3) { grid-area: 2 / 4 / 3 / 7; }
  /* Two renders: the main one large on the left, the second above two references on the right */
  .collage--duo { grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(3, 1fr); aspect-ratio: 20 / 9; }
  .collage--duo > :nth-child(1) { grid-area: 1 / 1 / 4 / 7; }
  .collage--duo > :nth-child(2) { grid-area: 3 / 7 / 4 / 9; }
  .collage--duo > :nth-child(3) { grid-area: 3 / 9 / 4 / 11; }
  .collage--duo > :nth-child(4) { grid-area: 1 / 7 / 3 / 11; }
  /* Pool: portrait render on the left, two references stacked in the middle, tall image on the right */
  .collage--pool { grid-template-columns: repeat(20, 1fr); grid-template-rows: repeat(2, 1fr); aspect-ratio: 15 / 7; }
  .collage--pool > :nth-child(1) { grid-area: 1 / 1 / 3 / 9; }
  .collage--pool > :nth-child(2) { grid-area: 1 / 9 / 2 / 16; }
  .collage--pool > :nth-child(3) { grid-area: 2 / 9 / 3 / 16; }
  .collage--pool > :nth-child(4) { grid-area: 1 / 16 / 3 / 21; }
  .swatch-row--cloud { gap: 2rem 1.75rem; }

  /* Outdoor dining: the wide render sits smaller in its frame; the close-up overlaps its lower-right corner */
  .duo--dining { grid-template-columns: repeat(12, 1fr); row-gap: 0; }
  .duo--dining .duo__main { grid-column: 1 / 9; grid-row: 1; width: 100%; }
  .duo--dining .duo__detail { grid-column: 6 / 13; grid-row: 2; margin-top: -22%; position: relative; z-index: 1; }
  .duo--dining .duo__detail img { border: 0.6rem solid var(--bg-tint); box-shadow: 0 30px 60px -30px rgba(46, 42, 37, 0.45); }
  .duo--dining .duo__main figcaption { width: 60%; }

  /* Master option 1: main view wide, second view narrower and lower */
  .duo--master { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .duo--master .duo__main { grid-column: 1 / 9; }
  .duo--master .duo__detail { grid-column: 9 / 13; margin-top: 16%; }

  .plans { grid-template-columns: 1fr 1fr; align-items: start; justify-items: center; max-width: 900px; margin-inline: auto; }
  .plans .plan:nth-child(2) { margin-top: 0; }
  /* From tablet up the tags sit on the drawing itself, at their room */
  .plan__map { display: block; }
  .plan__map img { margin-bottom: 0; }
  .plan__tag { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
  .plan__tag:hover, .plan__tag:focus-visible { transform: translate(-50%, calc(-50% - 1px)); }

  /* 4 columns × 3 rows: living and master-2 run tall, outdoor dining runs wide */
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 22vw; grid-auto-flow: dense; gap: 0.5rem; padding-inline: 0.5rem; }
  .mosaic a { aspect-ratio: auto; height: 100%; }
  .mosaic a:nth-child(1) { grid-row: span 2; }
  .mosaic a:nth-child(4) { grid-row: span 2; }
  .mosaic a:nth-child(9) { grid-column: span 2; }
  .thread { columns: 2; }
}

@media (min-width: 1024px) {
  .hero__content { padding-bottom: clamp(5rem, 14vh, 9rem); }
  .chapter { padding: var(--space-xl) 0; }
  .chapter--moodboard { padding-bottom: var(--space-l); }
  .chapter__head--inline { margin-bottom: var(--space-m); }
  .split--portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); }
  .duo--master .duo__main { grid-column: 1 / 8; }
  .duo--master .duo__detail { grid-column: 8 / 13; margin-top: 18%; }
  .duo--dining .duo__main { grid-column: 1 / 8; }
  .duo--dining .duo__detail { grid-column: 6 / 12; margin-top: -20%; }

  /* 6 columns × 3 rows, every cell filled:
     row 1: living(2) kitchen(1) sitting(2) master-2(1)
     row 2: living     daughter(2) entrance(1) master-2
     row 3: pool(1) master-1(2) outdoor dining(3) */
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 15vw; }
  .mosaic a:nth-child(1) { grid-row: span 2; grid-column: span 2; }
  .mosaic a:nth-child(3) { grid-column: span 2; }
  .mosaic a:nth-child(4) { grid-row: span 2; grid-column: span 1; }
  .mosaic a:nth-child(5) { grid-column: span 2; }
  .mosaic a:nth-child(8) { grid-column: span 2; }
  .mosaic a:nth-child(9) { grid-column: span 3; }
}

@media (min-width: 1280px) {
  .split--reverse .split__media { margin-left: auto; width: 100%; }
  .chapter.room { padding: var(--space-l) 0 calc(var(--space-l) + 1rem); }
  .bleed--inset { padding-inline: calc(var(--gutter) * 2); }
}

@media (min-width: 1536px) {
  /* On large monitors keep a generous margin either side of the board (~20 cm on a 27" screen) */
  :root { --board-w: min(72rem, 60vw); }
}

/* ─── Image placeholders (no-image mode) ─── */
.img-ph {
  background: var(--bg-tint);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: var(--fs-small);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  opacity: 0.7;
}
.img-ph::after { content: attr(data-label); }
.collage__render .img-ph { min-height: 520px; width: 100%; }
.collage__tile .img-ph  { min-height: 280px; width: 100%; }
.swatch .img-ph { width: var(--circle); height: var(--circle); min-height: 0; border-radius: 50%; }
.room__plan .img-ph { min-height: 220px; width: 100%; }

/* ─── Apartment divider sections ─── */
.chapter--apt-divider {
  min-height: 60svh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: var(--space-xl) var(--gutter) var(--space-l);
  max-width: 100%; overflow: hidden;
  background: var(--bg-deep); color: var(--white);
}
.chapter--apt-divider .eyebrow { color: var(--terracotta); }
.chapter--apt-divider .chapter__title { color: var(--white); }
.chapter--apt-divider .chapter__sub { color: rgba(251,248,242,0.55); font-style: italic; }

/* ─── Furniture Proposals section ─── */
.chapter--proposals {
  background: var(--bg-tint);
  padding: var(--space-xl) 0;
}
.proposals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-m);
}
.proposal-card {
  display: flex; align-items: center; gap: var(--space-s);
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  text-decoration: none; color: var(--ink);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  box-shadow: 0 2px 12px rgba(46,42,37,0.06);
}
.proposal-card:hover {
  box-shadow: 0 8px 32px rgba(46,42,37,0.13);
  transform: translateY(-2px);
}
.proposal-card__apt {
  flex-shrink: 0;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--bg-deep); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 300;
}
.proposal-card__body { flex: 1; }
.proposal-card__label {
  font-family: var(--font-body); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 0.15rem;
}
.proposal-card__title {
  font-family: var(--font-display); font-size: 1rem;
  font-weight: 400; margin: 0 0 0.15rem;
}
.proposal-card__meta {
  font-family: var(--font-body); font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); opacity: 0.7;
}
.proposal-card__arrow {
  font-size: 1.1rem; color: var(--terracotta);
  flex-shrink: 0; transition: transform 0.2s ease;
}
.proposal-card:hover .proposal-card__arrow { transform: translate(2px, -2px); }

@media (max-width: 640px) {
  .proposals-grid { grid-template-columns: 1fr; }
  .proposal-card { padding: 0.85rem 1.15rem; }
}

/* ─── Estimate notice ─── */
.estimate-notice {
  max-width: 52rem;
  margin: 0 auto var(--space-m);
  padding: 1.5rem 2.5rem;
  background: rgba(184, 105, 63, 0.06);
  border: 1px solid rgba(184, 105, 63, 0.3);
  border-radius: var(--radius-lg);
  text-align: center;
}
.estimate-notice p {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0;
}
.chapter--estimates .chapter__head { margin-bottom: var(--space-m); }

/* ─── Compact quotation section ─── */
.chapter--compact {
  padding: var(--space-l) 0 var(--space-l);
}
.chapter__head--compact { margin-bottom: var(--space-s); }
.chapter__title--sm { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); }
.proposals-grid--wrap {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.proposals-grid--wrap .proposal-card {
  padding: 0.7rem 1rem;
}
.proposals-grid--wrap .proposal-card__apt {
  width: 2.25rem; height: 2.25rem; font-size: 0.9rem;
}
.proposals-grid--wrap .proposal-card__title { font-size: 0.9rem; }
.proposals-grid--wrap .proposal-card__label { font-size: 0.6rem; }
.proposals-grid--wrap .proposal-card__meta { font-size: 0.55rem; }

/* ─── Show full images in collage tiles ─── */
.collage__tile { background: var(--bg); }
.collage__tile img { object-fit: contain; }
.collage img, .collage__render img { cursor: zoom-in; }

/* ─── Room Gallery (replaces collage system) ─── */
.room-gallery { margin: var(--space-l) 0; }
.room-gallery__renders,
.room-gallery__tiles { display: grid; gap: var(--space-s); }
.room-gallery__renders { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.room-gallery__tiles { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); margin-top: var(--space-s); max-width: 70%; }
.room-gallery__renders img,
.room-gallery__tiles img { width: 100%; height: auto; display: block; border-radius: var(--radius); cursor: zoom-in; }
.room-gallery__plan { margin-top: var(--space-m); }
.room-gallery__plan-label {
  font-family: var(--font-body); font-size: var(--fs-small);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  display: block; margin-bottom: 0.75rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid color-mix(in srgb, var(--ink-soft) 20%, transparent);
}
.room-gallery__plan img { width: 100%; max-width: 500px; height: auto; display: block; border-radius: var(--radius); cursor: zoom-in; }

@media (max-width: 600px) {
  .room-gallery__renders,
  .room-gallery__tiles { grid-template-columns: 1fr; gap: var(--space-xs, 0.75rem); }
  .room-gallery { margin: var(--space-m) 0; }
}

/* ─── Lightbox ─── */
.lightbox {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10, 8, 6, 0.94);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: all; }
.lightbox__img {
  max-width: 92vw; max-height: 92vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); font-size: 2rem; line-height: 1;
  padding: 0.4rem 0.6rem;
  transition: color 0.2s, transform 0.2s;
}
.lightbox__close:hover { color: #fff; transform: scale(1.15); }

/* ─── Investment summary (síntesis) ─── */
.inv { background: var(--bg-tint); padding: var(--space-l) 0; scroll-margin-top: 4rem; }
.inv__hero { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-s); margin-top: var(--space-s); }
.inv__kpi { background: var(--white); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; box-shadow: 0 2px 12px rgba(46,42,37,0.06); min-width: 0; }
.inv__kpi--main { background: var(--bg-deep); color: var(--white); }
.inv__label { font-size: var(--fs-eyebrow); letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; opacity: 0.75; margin: 0 0 0.5rem; }
.inv__big { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); line-height: 1; margin: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.inv__mid { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); line-height: 1.05; margin: 0; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.inv__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; margin: var(--space-m) 0 var(--space-s); }
.inv__table { background: var(--white); border-radius: var(--radius-lg); box-shadow: 0 2px 12px rgba(46,42,37,0.06); overflow: hidden; }
.inv__row { display: grid; grid-template-columns: 0.7rem 1fr auto auto 1rem; align-items: center; gap: 0.9rem; padding: 0.95rem 1.4rem; border-top: 1px solid var(--line); color: var(--ink); transition: background 0.2s ease; }
.inv__row:first-child { border-top: 0; }
a.inv__row:hover { background: rgba(184,105,63,0.05); }
.inv__dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; }
.inv__what { min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.6rem; }
.inv__what strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; }
.inv__what em { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.inv__pto { font-size: 0.65rem; letter-spacing: 0.14em; color: var(--ink-soft); font-weight: 500; }
.inv__est { color: var(--terracotta); font-size: 0.65rem; font-weight: 500; }
.inv__pct { font-size: var(--fs-small); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.inv__amt { font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; text-align: right; min-width: 7.5rem; font-variant-numeric: lining-nums tabular-nums; }
.inv__arrow { color: var(--terracotta); }
.inv__row--total { background: var(--bg); }
.inv__row--total .inv__amt { font-weight: 500; }
.inv__note { margin: var(--space-s) 0 0; font-family: var(--font-display); font-style: italic; color: var(--ink-soft); max-width: 52rem; }
@media (max-width: 720px) {
  .inv__hero { grid-template-columns: 1fr 1fr; }
  .inv__kpi--main { grid-column: 1 / -1; }
  .inv__kpi { padding: 1rem 1.1rem; }
  .inv__row { grid-template-columns: 0.6rem 1fr auto; gap: 0.25rem 0.7rem; padding: 0.85rem 1rem; }
  .inv__pct, .inv__arrow { display: none; }
  .inv__amt { min-width: 0; font-size: 1.1rem; }
}
.inv-pill { position: fixed; z-index: 50; left: 50%; bottom: calc(1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: baseline; gap: 0.45rem; padding: 0.7rem 1.2rem; border-radius: 999px; background: var(--bg-deep); color: var(--white);
  font-size: var(--fs-small); box-shadow: 0 10px 30px -10px rgba(46,42,37,0.5); transition: opacity 0.3s ease, transform 0.3s var(--ease-out); white-space: nowrap; }
.inv-pill strong { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.inv-pill.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (prefers-reduced-motion: reduce) { .inv-pill { transition: none; } }
.hero__inv { display: inline-flex; align-items: baseline; gap: 0.4rem; margin-top: 1.6rem; padding: 0.75rem 1.3rem; border-radius: 999px;
  background: rgba(251,248,242,0.94); color: var(--ink); font-size: var(--fs-small); min-height: 44px; flex-wrap: wrap; }
.hero__inv strong { font-variant-numeric: lining-nums; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.hero__inv:hover { background: var(--white); }
