.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.development-chapter { padding-block: clamp(58px, 9vw, 132px) 0; }
.development-reel {
  /* --live-vh is the phone's visible height, set by journey.js and eased, so Safari's toolbar
     never makes the stage jump (Phil, 25 Nov 2026: "flickery and buggy"). */
  --stage-height: max(525px, calc(var(--live-vh, 100dvh) - var(--atalla-header-height)));
  --stage-layout: max(525px, calc(100lvh - var(--atalla-header-height)));
  --reel-travel: clamp(700px, 145svh, 1450px);
  margin-top: clamp(26px, 5vw, 70px);
  background: #101312;
}
.development-reel.is-scrubbing { height: calc(var(--stage-height) + var(--reel-travel)); }
/* The reel's own height never changes as the toolbar moves, so the sections below it never jump. */
@supports (height: 100lvh) {
  .development-reel.is-scrubbing { height: calc(var(--stage-layout) + var(--reel-travel)); }
}
.vh-ready .development-reel.is-scrubbing .development-stage { transition: height .45s cubic-bezier(.23,1,.32,1), min-height .45s cubic-bezier(.23,1,.32,1); }
.development-reel.is-scrubbing .development-stage {
  position: sticky;
  top: var(--atalla-header-height);
  height: var(--stage-height);
  overflow: clip;
}
.development-stage { position: relative; isolation: isolate; }
.development-reel.is-scrubbing .development-stage::before,
.development-reel.is-scrubbing .development-stage::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 5;
  width: 1px;
  background: rgba(255, 253, 241, .78);
  opacity: var(--gallery-seam-alpha, 1);
  transform: translateX(-50%);
  pointer-events: none;
}
.development-stage::before { left: var(--gallery-seam, 33.333%); }
.development-stage::after { left: calc(100% - var(--gallery-seam, 33.333%)); }
.development-controls {
  display: none;
  position: absolute;
  inset: 0 auto auto 0;
  z-index: 8;
  width: 100%;
  pointer-events: none;
}
.development-reel.is-interactive .development-controls { display: block; }
.development-controls .feature-choices { pointer-events: auto; }
.development-progress { height: 2px; background: #ffffff4c; }
.development-progress i {
  display: block;
  height: 100%;
  background: var(--red);
  transform: scaleX(var(--gallery-progress, 0));
  transform-origin: left;
}
.development-stage .feature-panel {
  min-height: var(--stage-height);
  padding-bottom: clamp(40px, 5vw, 85px);
  clip-path: inset(0 var(--panel-right, 0%) 0 var(--panel-left, 0%));
}
.development-stage .feature-panel::after { opacity: var(--property-scrim, 1); }
.development-stage .feature-panel img { transform: translateX(var(--property-offset, 0%)) scale(var(--property-scale, 1)); }
.development-stage .feature-copy {
  position: relative;
  opacity: var(--caption-alpha, 1);
  clip-path: inset(0 0 var(--caption-cut, 0%) 0);
  z-index: 2;
}
.development-reel.is-scrubbing .feature-panel { position: absolute; inset: 0; }
.development-stage #oasis-project img { object-position: 50% 51%; }
.development-stage #bayn-project img { object-position: 50% 60%; }
.development-stage #palm-project img { object-position: 54% 55%; }
.development-chapter .feature-copy h3 { font-size: clamp(36px, 6.7vw, 105px); }
.development-chapter .feature-copy p:not(:first-child) { max-width: 38ch; }
.development-controls .feature-choices button {
  background: #111315db;
  border: 1px solid #fffdf18c;
}
.development-controls .feature-choices button[aria-pressed="true"],
.development-controls .feature-choices button:hover {
  color: var(--ink);
  background: var(--paper);
}

.animated-amount {
  font-size: clamp(35px, 4.7vw, 75px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.payment-timeline {
  display: flex;
  justify-content: space-between;
  color: #dedacc;
  font: 550 11px/1.38 ui-monospace, monospace;
  margin-bottom: 7px;
}
.budget-tool .money-track { height: 13px; }
.budget-tool .money-track i { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }

.insights .insight-grid {
  grid-template-columns: repeat(3, minmax(0, 320px));
  justify-content: center;
  gap: clamp(14px, 4vw, 48px);
}
.insights .insight-grid a { display: block; }
.insights .insight-grid a > div { aspect-ratio: 9/16; }
.insights .insight-grid img { object-fit: cover; }
.questions-list details[open] summary { color: #b50c2a; }
.contact-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  clip-path: inset(0 var(--city-inset, 0%) 0 var(--city-inset, 0%));
}
.contact-photo img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 61%;
  transform: scale(var(--city-scale, 1));
}
.site-head nav a[aria-current="location"] { text-decoration: underline #d0193b; text-underline-offset: 5px; }

@media (max-width: 670px) {
  .development-reel {
    --stage-height: max(520px, calc(var(--live-vh, 100dvh) - var(--atalla-header-height)));
    --stage-layout: max(520px, calc(100lvh - var(--atalla-header-height)));
    --reel-travel: clamp(650px, 109svh, 1000px);
  }
  .development-stage .feature-panel { padding-bottom: 39px; }
  .development-stage #oasis-project img { object-position: 51% 55%; }
  .development-stage #bayn-project img { object-position: 37% 56%; }
  .development-stage #palm-project img { object-position: 53% 55%; }
  .development-controls .feature-choices button { min-height: 44px; }
  .insights .insight-grid {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 15px;
    overscroll-behavior-inline: contain;
  }
  .insights .insight-grid a { flex: 0 0 73%; scroll-snap-align: start; }
  .insights .insight-grid h3 { padding-block: 13px; }
}
@media (max-height: 560px) {
  .development-reel.is-scrubbing .development-stage { top: calc(100dvh - var(--stage-height)); }
}

/* ---------- Direction A, The Drawing Set ----------
   Developments: an index of sheets on the paper edge, the photography beside it. */
.development-chapter { padding-block: 0; border-top: 1px solid var(--ink); }
.development-reel { margin-top: 0; background: var(--paper); }
.development-stage {
  display: grid;
  grid-template-columns: minmax(250px, 23vw) minmax(0, 1fr);
  min-height: var(--stage-height);
}
.dev-rail {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vh, 28px);
  padding: clamp(28px, 5vh, 56px) clamp(20px, 2.4vw, 40px) clamp(22px, 4vh, 40px) var(--gutter);
  border-right: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  min-width: 0;
}
.dev-rail h2 { font-size: clamp(42px, 4.6vw, 80px); font-weight: 650; letter-spacing: -.05em; line-height: .92; }
.dev-rail h2 span { color: var(--red); }
.dev-lede { color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.dev-rail .development-controls,
.development-reel.is-interactive .dev-rail .development-controls { display: block; position: static; width: auto; pointer-events: auto; }
.dev-rail .feature-choices { position: static; display: grid; gap: 0; border-bottom: 1px solid var(--rule); }
.dev-rail .feature-choices button,
.development-controls .feature-choices button {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  align-items: baseline;
  padding: 14px 0;
  min-height: 48px;
  border: 0;
  border-top: 1px solid var(--rule);
  background: none;
  color: var(--ink);
  text-align: left;
  font-size: clamp(16px, 1.25vw, 20px);
  font-weight: 600;
  letter-spacing: -.02em;
  cursor: pointer;
}
.dev-rail .feature-choices button span { font: 500 12px ui-monospace, "SF Mono", Menlo, monospace; color: var(--muted); letter-spacing: .02em; }
.dev-rail .feature-choices button[aria-pressed="true"],
.dev-rail .feature-choices button[aria-pressed="true"] span { color: #d0102f; background: none; }
.dev-rail .feature-choices button:hover { color: #d0102f; background: none; }
.dev-rail .development-progress { height: 2px; margin-top: -1px; background: transparent; }
.dev-rail .text-link { margin-top: auto; }
.dev-view { position: relative; overflow: hidden; background: #101312; min-width: 0; }
.development-reel.is-scrubbing .development-stage::before,
.development-reel.is-scrubbing .development-stage::after { content: none; }
.development-reel.is-scrubbing .dev-view::before,
.development-reel.is-scrubbing .dev-view::after {
  content: "";
  position: absolute;
  inset-block: 0;
  z-index: 5;
  width: 1px;
  background: rgba(255, 253, 241, .78);
  opacity: var(--gallery-seam-alpha, 1);
  transform: translateX(-50%);
  pointer-events: none;
}
.dev-view::before { left: var(--gallery-seam, 33.333%); }
.dev-view::after { left: calc(100% - var(--gallery-seam, 33.333%)); }
.dev-view .feature-panel { padding-left: clamp(24px, 3.4vw, 64px); padding-right: clamp(24px, 3.4vw, 64px); }

/* Let's talk: ORA's Bayn terrace at sunset. */
.contact-photo picture { display: block; height: 100%; }
.contact-photo img { object-position: 50% 58%; }

/* Pearls (Ahmad's videos): full width, not small and centred. */
@media (min-width: 901px) {
  .insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
  .insights .section-top { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .insights .section-top > .text-link { justify-self: start; }
  .insights .insight-grid { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: clamp(14px, 1.8vw, 28px); }
}

@media (max-width: 670px) {
  .development-stage { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .dev-rail { gap: 10px; padding: 18px var(--gutter) 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .dev-rail h2 { font-size: 38px; }
  .dev-lede { display: none; }
  .dev-rail .feature-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; }
  .dev-rail .feature-choices button { grid-template-columns: 1fr; padding: 8px 6px 10px 0; font-size: 14px; border-top: 0; }
  .dev-rail .text-link { display: none; }
}
.development-reel.is-scrubbing .dev-view .feature-panel { min-height: 0; }

/* The footer sits on the Let's talk photo (round 3): no black bar. The section grows by the
   footer's height (measured by plan.js) and the footer is pulled up over its foot. */
.contact { padding-bottom: calc(108px + var(--foot-h, 118px)); }
.contact::after {
  background:
    linear-gradient(0deg, #070707e0 0, #07070700 calc(var(--foot-h, 118px) + 120px)),
    linear-gradient(90deg, #070707d9, #07070740 72%),
    linear-gradient(0deg, #07070782, transparent 58%);
}
.site-footer.dark { position: relative; z-index: 2; margin-top: calc(-1 * var(--foot-h, 118px)); background: transparent; border-top: 1px solid rgba(255,253,241,.24); }
@media (max-width: 670px) {
  .contact { padding-bottom: calc(62px + var(--foot-h, 200px)); }
}

/* Round 4 (23 Nov), phones: the developments reel is built vertically. The three photographs
   open as stacked bands (top, middle, bottom) and each new one rises from the foot of the frame,
   instead of side-by-side slices that wipe in from the right. journey.js is unchanged: the same
   --panel-left / --panel-right values are read as top and bottom insets here. */
@media (max-width: 670px) {
  .development-stage .feature-panel { clip-path: inset(var(--panel-left, 0%) 0 var(--panel-right, 0%) 0); }
  .development-stage .feature-panel img { transform: translateY(var(--property-offset, 0%)) scale(var(--property-scale, 1)); }
  /* white seams between the bands, horizontal (Phil, 23 Nov) */
  .development-reel.is-scrubbing .dev-view::before,
  .development-reel.is-scrubbing .dev-view::after { inset: auto 0; left: 0; right: 0; width: auto; height: 2px; transform: translateY(-50%); background: rgba(255, 253, 241, .92); }
  .development-reel.is-scrubbing .dev-view::before { top: var(--gallery-seam, 33.333%); }
  .development-reel.is-scrubbing .dev-view::after { top: calc(100% - var(--gallery-seam, 33.333%)); }
}

/* Phones: room for the scroll cue (Phil, 24 Nov 2026, "make room"). The caption sits 88px off the
   bottom instead of 39px, so the cue (24px off the bottom, 50px tall) never covers it. */
@media (max-width: 720px) {
  .development-reel.is-scrubbing .development-stage .feature-panel { padding-bottom: 88px; }
}
