/* ============================================================================
   Portfolio detail (light page with a photo hero). Source:
   ajid-portfolio-detail-buckminster-mockup-v4.html (09-21), Dan Rak's
   No. 02 margins. Shared by every project page (Buckminster, Ledge...).

   Four vertical lines: every frame edge lands on the band's left edge, the
   small-frame inset left, the small-frame inset right, or the band's right
   edge. Native aspect ratios; only the hero is cropped.
   ========================================================================= */

.page-detail {
  /* Ground relief-b #D8D7D4, run and close alike (Robb, 2026-10-29; was #E7E7E4) */
  --relief: var(--relief-b);
  --run-ground: var(--relief-b);
  --band: 68.0556vw;          /* 980px at 1440 */
  --lg: 31.9444vw;            /* 460 */
  --sm: 19.4444vw;            /* 280 */
  --inset: 6.25vw;            /* 90 */
  --row-gap: 6.79012vh;
  /* entrances and settles as the detail mockup tunes them */
  --rev-dist: 26px; --rev-dur: .9s; --rev-step: 90ms;
  --set-scale: 1.04; --set-dur: 1.2s;
}
@media (orientation: portrait) { .page-detail { --band: 90vw; --row-gap: 5vw; } }
:where(.page-detail) p + p { margin-top: 1.15em; }

/* ---- Hero: the only full-bleed frame; revealed by a curtain ---------------- */
.detail-hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--d-deep);
}
.detail-hero__media { position: absolute; inset: -9% 0; will-change: transform; }
.detail-hero__curtain {
  position: absolute; inset: 0;
  transition: clip-path 1.1s var(--ease);
}
.js .detail-hero__curtain { clip-path: inset(0 0 100% 0); }
.js .detail-hero__media.in .detail-hero__curtain { clip-path: inset(0); }
.detail-hero__curtain img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); transition: transform var(--dur-image) var(--ease);
}
.detail-hero__media.in .detail-hero__curtain img { transform: none; }
.detail-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 84% at 50% 44%, rgba(16,21,30,.54) 0%, rgba(16,21,30,.28) 50%, rgba(16,21,30,0) 82%),
    linear-gradient(180deg, rgba(20,26,36,.50) 0%, rgba(20,26,36,.18) 34%, rgba(20,26,36,.22) 66%, rgba(20,26,36,.44) 100%);
}
.detail-hero__inner {
  position: relative; z-index: 3; width: 100%; max-width: var(--wide);
  padding: 0 var(--gut); text-align: center;
  color: var(--d-display); will-change: transform, opacity;
}
.detail-hero__eyebrow {                 /* Coming Soon pages only */
  margin-bottom: 18px;
  font-size: var(--size-eyebrow); letter-spacing: .24em; text-transform: uppercase;
  color: color-mix(in srgb, var(--d-display) 86%, transparent);
}
.detail-hero__title {
  font-family: var(--display); font-weight: 100;
  font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.018em;
  color: var(--d-display);
  text-shadow: 0 1px 40px rgba(20,26,36,.4);
}
.detail-hero__sub {
  margin-top: 20px;
  font-size: clamp(15px, 1.5vw, 23px); line-height: 1.5;
  color: color-mix(in srgb, var(--d-display) 92%, transparent);
}
/* The scroll cue is centred as on Home (components.css); the static detail page had it at the right edge (Robb, 2026-11-09). */

@media (prefers-reduced-motion: reduce) {
  .js .detail-hero__curtain { clip-path: none; }
  .detail-hero__curtain img { transform: none; }
}

/* ---- The run: one column, one gap, every row inside the band ------------------ */
.frames {
  display: flex; flex-direction: column; gap: var(--row-gap);
  padding-block: var(--row-gap);
  background: var(--run-ground);
}
.run-band { width: var(--band); margin-inline: auto; }
.run-single .slot { width: 100%; }
[data-float] { will-change: transform; }
.pair { display: flex; align-items: center; justify-content: space-between; }
.pair--rev { flex-direction: row-reverse; }
.pair__lg { width: var(--lg); }
.pair__sm { width: var(--sm); margin-right: var(--inset); }
.pair--rev .pair__sm { margin-right: 0; margin-left: var(--inset); }
@media (orientation: portrait) {
  .pair, .pair--rev { flex-direction: column; gap: var(--row-gap); }
  .pair__lg, .pair__sm, .pair--rev .pair__sm { width: 100%; margin: 0; }
}
.frames .slot { background: var(--r-lift); }

/* ---- About this project ----------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(34px, 4.5vw, 66px); }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.14fr .86fr; align-items: start; }
  .about__fig { position: sticky; top: 112px; }
}
.about__body .h2 { margin-top: 18px; max-width: 20ch; }
.about__body p { margin-top: 22px; max-width: 62ch; color: var(--ink-2); }
.about__body .lede { color: var(--ink); }
.about__body .tlink { margin-top: 34px; }
.project-facts { margin-top: clamp(32px, 3.6vw, 48px); max-width: 62ch; }
.project-facts dt {
  padding-top: 15px;
  font-size: 11px; letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  color: var(--quiet);
}
.project-facts dd {
  margin: 5px 0 0; padding-bottom: 15px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
}
.project-facts dd:last-of-type { border-bottom: 0; padding-bottom: 0; }

/* ---- Next project ---------------------------------------------------------------------- */
.next { display: grid; grid-template-columns: 1fr; align-items: center; gap: clamp(24px, 4vw, 52px); }
@media (min-width: 900px) { .next { grid-template-columns: .9fr 1.1fr; } }
.next__title {
  margin-top: 16px;
  font-family: var(--display); font-weight: 100;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -.021em;
  color: var(--headline);
}
.next .tlink { margin-top: 22px; }
.lift { display: block; transition: transform var(--dur-chrome) var(--ease), box-shadow var(--dur-chrome) var(--ease); }
.lift:hover { transform: translateY(-4px); box-shadow: 0 16px 38px rgba(48,48,46,.18); }

@media (prefers-reduced-motion: reduce) {
  [data-float] { transform: none !important; }
}

/* ---- Coming Soon pages (Ledge Mountain) --------------------------------------------
   Rendered rooms are lighter than Buckminster's charcoal dining room, so the
   hero uses the lighter scrim the Ledge mockup measured (eyebrow 6.19:1, title
   6.01:1, status line 5.81:1). The page closes on one frame at the large-frame
   size, centred (Robb, 2026-09-24): the only frame off the four lines. */
.detail-hero--light .detail-hero__scrim {
  background:
    radial-gradient(91% 69% at 50% 45%, rgba(18,24,34,.64) 0%, rgba(18,24,34,.44) 44%, rgba(18,24,34,0) 82%),
    linear-gradient(180deg, rgba(20,26,36,.39) 0%, rgba(20,26,36,.09) 30%, rgba(20,26,36,.13) 64%, rgba(20,26,36,.36) 100%);
}
.solo-center { display: flex; justify-content: center; }
.solo-center > * { width: var(--lg); }
@media (orientation: portrait) { .solo-center > * { width: 100%; } }

/* Story links: Start a conversation + How we work (critique S-11, 2026-10-02) */
.about__body .about__links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 34px; }
.about__body .about__links .tlink { margin-top: 0; }
