/* About (about.html) in the new system: the real yard as the hero, a scroll-driven film from the yard
   to the room, the families with a slab that follows the pointer, and the showroom. */
.ab { --dusk: #1d1916; --glow: #e9b89f; }
.ab .display { font-family: var(--serif); font-weight: 400; }
.ab .display em { font-style: italic; color: var(--terracotta); }
.ab-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(30px, 4vw, 56px); }
.ab-head .mono { grid-column: 1 / -1; color: var(--terracotta); }
.ab-head h2 { font-size: clamp(38px, 5.2vw, 80px); line-height: 1; }
.ab-head .lede { margin: 0; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ab-more { margin-top: 30px; }

/* hero: the yard, slowly drifting */
.ab-hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--dusk); }
.ab-hero-media { position: absolute; inset: 0; margin: 0; }
.ab-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: ab-drift 18s var(--ease) forwards; }
@keyframes ab-drift { to { transform: scale(1.0) translateY(-1%); } }
.ab-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 10, 0.45) 0%, rgba(14, 12, 10, 0.05) 35%, rgba(14, 12, 10, 0.78) 100%), linear-gradient(90deg, rgba(14, 12, 10, 0.5), transparent 60%); }
.ab-hero-copy { position: relative; z-index: 1; padding: calc(var(--header-h) + 40px) var(--gutter) clamp(60px, 9vh, 110px); max-width: 1100px; }
.ab-hero-copy .mono { color: var(--glow); }
.ab-hero h1 { font-size: clamp(46px, 7.6vw, 124px); line-height: 0.96; margin: 16px 0 20px; text-wrap: balance; }
.ab-hero h1 em { color: var(--glow); }
.ab-hero .lede { color: rgba(255, 255, 255, 0.84); max-width: 48ch; }
.ab-hero-pin { position: absolute; z-index: 1; right: var(--gutter); bottom: clamp(60px, 9vh, 110px); display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; color: #fff; font-size: 10.5px;
  background: rgba(20, 17, 15, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ab-hero-pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--terracotta); box-shadow: 0 0 0 0 rgba(179, 71, 50, 0.7); animation: ab-pulse 2s infinite; }
@keyframes ab-pulse { 70% { box-shadow: 0 0 0 10px rgba(179, 71, 50, 0); } 100% { box-shadow: 0 0 0 0 rgba(179, 71, 50, 0); } }

/* facts */
.ab-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ab-fact { display: grid; gap: 6px; align-content: start; padding: clamp(26px, 3.4vw, 46px) var(--gutter); border-right: 1px solid var(--line); }
.ab-fact:last-child { border-right: 0; }
.ab-fact b { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 84px); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ab-fact span { font-size: 14px; color: var(--mute); max-width: 24ch; }

/* the film: a pinned frame whose track slides as you scroll */
.ab-film { position: relative; height: 420vh; background: var(--dusk); color: #fff; }
.ab-film-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding-top: calc(var(--header-h) + 24px); }
.ab-film-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); align-items: end; gap: 10px 30px; padding: 0 var(--gutter); }
.ab-film-head .mono { grid-column: 1 / -1; color: var(--glow); }
.ab-film-head h2 { font-size: clamp(36px, 5vw, 76px); }
.ab-film-head h2 em { color: var(--glow); }
.ab-film-progress { height: 2px; background: rgba(255, 255, 255, 0.16); margin-bottom: 14px; }
.ab-film-progress i { display: block; height: 100%; background: var(--glow); transform-origin: left; transform: scaleX(var(--p, 0)); }
.ab-film-track { display: flex; gap: clamp(16px, 2vw, 30px); align-items: center; padding: 0 var(--gutter); will-change: transform; transform: translateX(var(--x, 0px)); }
.ab-frame { flex: none; width: min(78vw, 980px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(18px, 2.4vw, 36px); align-items: center;
  opacity: calc(0.35 + 0.65 * var(--on, 0)); transform: scale(calc(0.92 + 0.08 * var(--on, 0))); transition: opacity 0.2s linear; }
.ab-frame figure { margin: 0; overflow: hidden; aspect-ratio: 1; max-height: 58svh; }
.ab-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.12 - 0.12 * var(--on, 0))); }
.ab-frame .mono { color: var(--glow); }
.ab-frame h3 { margin: 10px 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 46px); line-height: 1.04; letter-spacing: -0.02em; }
.ab-frame p { margin: 0; color: rgba(255, 255, 255, 0.76); font-size: 16px; line-height: 1.6; max-width: 40ch; }
.ab-frame .text-link { margin-top: 18px; color: #fff; }

/* families: a slab follows the pointer over the list */
.ab-families { position: relative; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.ab-family-list { display: grid; border-top: 1px solid var(--line); }
.ab-family-list a { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 40px; align-items: center; gap: 18px; padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding-left 0.5s var(--ease), color 0.3s; }
.ab-family-list a:hover { padding-left: 18px; color: var(--terracotta); }
.ab-family-list .mono { color: var(--mute); }
.ab-family-list strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 56px); line-height: 1; }
.ab-family-list small { font-size: 14.5px; color: var(--ink-soft); max-width: 44ch; }
.ab-family-list i { font-style: normal; justify-self: end; transition: transform 0.4s var(--ease); }
.ab-family-list a:hover i { transform: rotate(45deg); }
.ab-family-peek { position: absolute; z-index: 3; left: 0; top: 0; width: 220px; height: 280px; pointer-events: none; background: var(--tex) center / cover; border-radius: 2px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); opacity: 0; transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--pr, 0deg)) scale(0.8); transition: opacity 0.3s, transform 0.5s var(--ease); }
.ab-family-peek.is-on { opacity: 1; transform: translate(var(--px, 0), var(--py, 0)) rotate(var(--pr, 0deg)) scale(1); }

/* projects */
.ab-projects { padding: clamp(80px, 10vw, 150px) var(--gutter); background: var(--dusk); color: #fff; }
.ab-projects .ab-head .mono { color: var(--glow); }
.ab-projects .ab-head h2 em { color: var(--glow); }
.ab-projects .lede { color: rgba(255, 255, 255, 0.76); }
.ab-project-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 12px; height: clamp(440px, 52vw, 720px); }
.ab-project { position: relative; overflow: hidden; color: #fff; text-decoration: none; }
.ab-project-lead { grid-row: 1 / span 2; }
.ab-project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ab-project:hover img { transform: scale(1.06); }
.ab-project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 9, 8, 0.75)); }
.ab-project span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 4px; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; }
.ab-project small { color: var(--glow); font-size: 10px; }
.ab-project i { font-style: normal; font-family: var(--sans); font-size: 18px; }
.ab-projects .text-link { color: #fff; }

/* Bali */
.ab-bali { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(80px, 10vw, 150px) var(--gutter); }
.ab-bali-media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.ab-bali-media img { width: 100%; height: 100%; object-fit: cover; }
.ab-bali-copy .mono { color: var(--terracotta); }
.ab-bali-copy h2 { font-size: clamp(36px, 4.4vw, 68px); margin: 14px 0 18px; }
.ab-bali-copy > p { color: var(--ink-soft); line-height: 1.65; max-width: 52ch; }
.ab-bali-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ab-bali-points li { display: grid; grid-template-columns: 80px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-soft); }
.ab-bali-points b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); }

/* showroom */
.ab-showroom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--terracotta); color: #fff; }
.ab-showroom-media { margin: 0; min-height: 420px; }
.ab-showroom-media img { width: 100%; height: 100%; object-fit: cover; }
.ab-showroom-copy { padding: clamp(50px, 7vw, 110px) var(--gutter); }
.ab-showroom-copy .mono { color: rgba(255, 255, 255, 0.82); }
.ab-showroom-copy h2 { font-size: clamp(40px, 5vw, 78px); margin: 14px 0 18px; }
.ab-showroom-copy h2 em { color: #fff; }
.ab-showroom-copy > p { color: rgba(255, 255, 255, 0.86); max-width: 46ch; line-height: 1.6; }
.ab-address { margin-top: 26px; font-size: 15px; line-height: 1.55; }
.ab-address strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.ab-address address { font-style: normal; color: rgba(255, 255, 255, 0.86); }
.ab-showroom .btn-light { color: var(--terracotta); }

/* notes */
.ab-notes { padding: clamp(80px, 10vw, 150px) var(--gutter); }
.ab-note-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ab-note-list a { display: grid; gap: 12px; align-content: start; text-decoration: none; }
.ab-note-list img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.8s var(--ease); }
.ab-note-list a:hover img { transform: translateY(-4px); }
.ab-note-list span { font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.ab-note-list i { font-style: normal; color: var(--terracotta); }

/* closing */
.ab-closing { padding: clamp(90px, 12vw, 170px) var(--gutter); background: var(--dusk) url(./assets/house/yard/yard-aisle-1536.webp) center / cover; background-blend-mode: multiply; color: #fff; text-align: center; display: grid; justify-items: center; }
.ab-closing { background-color: #3a302a; }
.ab-closing .mono { color: var(--glow); }
.ab-closing h2 { font-size: clamp(42px, 6vw, 96px); max-width: 16ch; margin: 16px 0 18px; }
.ab-closing h2 em { color: var(--glow); }
.ab-closing .lede { color: rgba(255, 255, 255, 0.84); margin: 0 auto; }
.ab-closing .ab-actions { justify-content: center; }

@media (max-width: 900px) {
  .ab-head, .ab-bali, .ab-showroom { grid-template-columns: 1fr; }
  .ab-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-fact:nth-child(2) { border-right: 0; }
  .ab-fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ab-note-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-family-list a { grid-template-columns: 40px minmax(0, 1fr) 30px; }
  .ab-family-list small { grid-column: 2; }
  .ab-family-list i { grid-row: 1; grid-column: 3; }
  .ab-family-peek { display: none; }
}
@media (max-width: 760px) {
  .ab-fact { min-width: 0; }
  .ab-fact b { font-size: clamp(28px, 8vw, 44px); }
  .ab-hero-pin { left: var(--gutter); right: auto; bottom: auto; top: calc(var(--header-h) + 16px); }
  .ab-hero h1 { font-size: clamp(40px, 11vw, 56px); }
  /* the film becomes a swipeable row on phones: no pinning, thumb-driven */
  .ab-film { height: auto; padding-bottom: 60px; }
  .ab-film-pin { position: static; height: auto; padding-top: 70px; }
  .ab-film-head { grid-template-columns: 1fr; }
  .ab-film-progress { display: none; }
  .ab-film-track { transform: none; overflow-x: auto; scroll-snap-type: x mandatory; padding: 26px var(--gutter) 6px; scrollbar-width: none; }
  .ab-film-track::-webkit-scrollbar { display: none; }
  .ab-frame { width: 82vw; grid-template-columns: 1fr; scroll-snap-align: center; opacity: 1; transform: none; }
  .ab-frame figure { aspect-ratio: 4 / 3; }
  .ab-frame img { transform: none; }
  .ab-project-grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .ab-project, .ab-project-lead { grid-row: auto; aspect-ratio: 4 / 3; }
  .ab-note-list { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 70%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .ab-note-list a { scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-hero-media img { animation: none; transform: none; }
}

/* the header stays solid over the photo hero */
.ab .site-header { background: rgba(244, 240, 233, 0.92); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ab .site-header::before { content: none; }
/* italic accents read light on the dark sections */
.ab .ab-hero h1 em, .ab .ab-film-head h2 em, .ab .ab-projects .ab-head h2 em, .ab .ab-closing h2 em { color: var(--glow); }
.ab .ab-showroom-copy h2 em { color: #fff; }
