/* After the walkthrough: the house in numbers, stills, the viewing, the footer (Atlantic Fog). */

.house,
.stills,
.book,
.site-foot { margin-top: var(--inset); border-radius: var(--radius); }

/* ---------- The house ---------- */
.house {
  background: var(--fog);
  color: var(--rock);
  padding: clamp(72px, 14vh, 160px) clamp(20px, 6vw, 96px) clamp(56px, 10vh, 120px);
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--granite);
  margin-bottom: clamp(16px, 2vw, 28px);
}
.house__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 1rem + 5.4vw, 7.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.house__title .ln { display: block; }
.house__wide {
  margin: clamp(48px, 9vh, 110px) 0 clamp(40px, 7vh, 90px);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 14px;
  background: #c9ccc7;
}
.house__wide img { object-position: 50% 82%; }
.house__wide img,
.still img { display: block; width: 100%; height: 100%; object-fit: cover; }
.house__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 120px);
  align-items: start;
}
.house__lede {
  font-size: clamp(1.05rem, 0.8rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  max-width: 36ch;
  color: #2a2c28;
}
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 3vw, 48px); }
.specs div { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0 14px; }
/* each row's rule draws in from the left when the list arrives */
.specs div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(17, 19, 18, 0.28); transform-origin: 0 50%; }
.specs dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--granite); }
.specs dd { margin: 0; font-size: clamp(1rem, 0.85rem + 0.4vw, 1.25rem); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Stills ---------- */
.stills {
  background: var(--rock);
  color: #E9EBE7;
  padding: clamp(56px, 10vh, 120px) clamp(20px, 6vw, 96px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
}
.still { margin: 0; }
.still > :first-child { overflow: hidden; border-radius: 12px; background: #1c1e1c; }
.still--a { grid-column: 1 / 8; }
.still--b { grid-column: 8 / 13; margin-top: clamp(60px, 14vh, 180px); }
.still--c { grid-column: 3 / 11; margin-top: clamp(24px, 4vh, 60px); }
.still--a img, .still--c img { aspect-ratio: 16 / 10; }
.still--b img { aspect-ratio: 4 / 5; }
.still figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(233, 235, 231, 0.62); }

/* ---------- The viewing ---------- */
.book {
  background: var(--fog);
  color: var(--rock);
  padding: clamp(96px, 20vh, 220px) clamp(20px, 6vw, 96px);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(16px, 2vw, 26px);
}
.book__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 1rem + 5vw, 7rem); line-height: 0.95; letter-spacing: -0.045em; }
.book__sub { max-width: 34ch; font-size: clamp(1rem, 0.85rem + 0.5vw, 1.3rem); line-height: 1.45; color: #2a2c28; }
.book__cta { margin-top: 8px; justify-self: center; }

/* ---------- Footer ---------- */
.site-foot {
  margin-bottom: var(--inset);
  background: var(--rock);
  color: rgba(233, 235, 231, 0.7);
  padding: clamp(40px, 7vh, 80px) clamp(20px, 6vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  font-size: 0.95rem;
}
.site-foot .brand { color: #E9EBE7; }
.site-foot__note { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; width: 100%; color: rgba(233, 235, 231, 0.6); }

/* ---------- Entries (close.js adds .is-in once each part is on screen) ---------- */
/* words and lines come out of the fog: blur to sharp, a small rise, line by line */
.js [data-in] { opacity: 0; filter: blur(10px); translate: 0 18px; transition: opacity 0.9s var(--ease-soft), filter 1s var(--ease-soft), translate 1.1s var(--ease-out); }
.js [data-in].is-in { opacity: 1; filter: none; translate: none; }
.js .house__title[data-in] { opacity: 1; filter: none; translate: none; }
.js .house__title .ln { opacity: 0; filter: blur(12px); translate: 0 0.25em; transition: opacity 1s var(--ease-soft), filter 1.1s var(--ease-soft), translate 1.2s var(--ease-out); }
.js .house__title.is-in .ln { opacity: 1; filter: none; translate: none; }
.js .house__title.is-in .ln:nth-child(2) { transition-delay: 0.12s; }
.js .house__title.is-in .ln:nth-child(3) { transition-delay: 0.24s; }
/* the spec rules draw in, row by row */
.js .specs div::before { transform: scaleX(0); transition: transform 1s var(--ease-in-out); }
.js .specs.is-in div::before { transform: none; }
.specs div:nth-child(2)::before { transition-delay: 0.06s; } .specs div:nth-child(3)::before { transition-delay: 0.12s; }
.specs div:nth-child(4)::before { transition-delay: 0.18s; } .specs div:nth-child(5)::before { transition-delay: 0.24s; }
.specs div:nth-child(6)::before { transition-delay: 0.3s; }
/* pictures open from the bottom like a blind going up, and settle from a slight zoom */
.js [data-img] > img, .js .still[data-img] img { clip-path: inset(100% 0 0 0); scale: 1.08; transition: clip-path 1.2s var(--ease-in-out), scale 1.6s var(--ease-out); }
.js [data-img].is-in > img, .js .still[data-img].is-in img { clip-path: inset(0 0 0 0); scale: 1; }

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .house__body { grid-template-columns: 1fr; }
  .house__wide { aspect-ratio: 4 / 3; }
  .stills { grid-template-columns: 1fr; }
  .still--a, .still--b, .still--c { grid-column: 1 / -1; margin-top: 0; }
  .still--b img { aspect-ratio: 4 / 5; }
  .specs { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-in], .js .house__title .ln, .js [data-img] > img, .js .still[data-img] img { opacity: 1; filter: none; translate: none; clip-path: none; scale: 1; transition: none; }
  .js .specs div::before { transform: none; transition: none; }
}

/* the template hides the header .cta on small screens; this one stays */
@media (max-width: 960px) { .book .book__cta { display: inline-flex; } }

/* the concept note wraps at a reading length instead of one 220-character line */
.site-foot__note { max-width: 62ch; }
