/* ============================================================
   About page section styles
   Source: NYC-Cupola/designs/about/index.html (inline <style>)
   Mirror this file from the design source — do not edit in place
   without updating the source first.
   ============================================================ */

/* Override site.css v1 heading color for v2 ink within <main>.
   Same workaround as home.css; remove during Phase 10 token consolidation. */
main h1, main h2, main h3, main h4, main h5, main h6 {
  color: var(--ink-primary);
}

.about-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.about-hero .bg-photo {
  background-image: url('/imgs/production/c01.jpg');
}
.about-hero .hero-content { padding-bottom: var(--space-9); }

.chapter {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--hairline);
}
.chapter:first-of-type { border-top: 0; }
.chapter__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: center;
}
.chapter--reverse .chapter__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); direction: rtl; }
.chapter--reverse .chapter__inner > * { direction: ltr; }
@media (max-width: 880px) {
  .chapter__inner { grid-template-columns: 1fr; gap: var(--space-6); }
  /* Mobile reorder for Chapter 02 (the reverse-layout chapter): show the
     historical photo first, then the body copy. The desktop direction:rtl
     trick is meaningless in a single-column grid, so we re-establish source
     order via flex on mobile. */
  .chapter--reverse .chapter__inner { display: flex; flex-direction: column; direction: ltr; }
  .chapter--reverse .chapter__media { order: 1; }
  .chapter--reverse .chapter__copy { order: 2; }
}
.chapter__copy { max-width: 60ch; }
.chapter__title {
  margin: 0 0 var(--space-5);
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.chapter__body p {
  margin: 0 0 var(--space-4);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.chapter__body p:last-child { margin-bottom: 0; }
.chapter__media .frame-a, .chapter__media .frame-trace { display: block; }
.chapter__media .frame-media { aspect-ratio: 4 / 5; }
.chapter--landscape .chapter__media .frame-media { aspect-ratio: 4 / 3; }
/* Video sized + cropped like a chapter <img>. object-fit:cover lets a 16:9
   source fit the 4:3 landscape frame with minor horizontal trim. */
.chapter__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Chapter "spread" variant — magazine-style float-wrap layout used by the
   Origins section. The video is the dominant visual: floated left at 70%
   width with prose wrapping to the right and continuing beneath when the
   float clears. Bespoke markup (skips the .chapter__inner grid entirely).
   Eyebrow + title sit above as a head, then the lede paragraph runs full
   width, then the video floats and the remaining body paragraphs wrap. */
.chapter--spread {
  padding: var(--space-9) 0;
  overflow: hidden; /* contain the floated media */
}
.chapter-spread__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.chapter-spread__head {
  max-width: 65ch;
  margin: 0 0 var(--space-6);
}
.chapter-spread__lede {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-primary);
  max-width: 70ch;
  margin: 0 0 var(--space-6);
}
.chapter--spread .chapter-spread__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 var(--space-4);
}
.chapter-spread__media {
  float: left;
  width: 70%;
  /* .em-card base class caps max-width at 720px (sized for the standard chapter
     grid). Release that cap so the spread's float-percentage controls width. */
  max-width: none;
  margin: var(--space-1) var(--space-7) var(--space-3) 0;
  /* Match the float's bounding box explicitly so layout engines that don't
     honor float on <figure> still get the same wrap behavior. */
  shape-outside: inset(0 var(--space-5) 0 0);
}
.chapter-spread__media .frame-media { aspect-ratio: 4 / 3; }
.chapter--spread .divider-gold {
  clear: both;
  margin-top: var(--space-6);
}
@media (max-width: 880px) {
  /* Magazine-spread collapses to a stacked column at narrow widths. The
     float releases, the video goes full-width, paragraphs stack naturally
     in source order (lede → video → body 1 → body 2 → divider). */
  .chapter-spread__media {
    float: none;
    width: 100%;
    margin: var(--space-5) 0;
  }
}

/* Vantage 3D carousel — same pattern as Home but with surface-mark band + slimmer corners */
.vantage {
  padding: var(--space-9) 0 var(--space-10);
  background: var(--surface-mark);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.vantage__head {
  max-width: var(--container-max);
  margin: 0 auto var(--space-6);
  padding: 0 var(--container-px);
}
.vantage__stage-wrap {
  position: relative;
  margin-top: var(--space-6);
  perspective: 1800px;
  perspective-origin: 50% 40%;
  padding: 0 var(--container-px);
}
.vantage__stage {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--cube-z) * -1)) rotateY(0deg);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  --cube-z: 360px;
}
@media (min-width: 720px)  { .vantage__stage { --cube-z: 500px; } }
@media (min-width: 1100px) { .vantage__stage { --cube-z: 640px; } }
.vantage__face {
  position: absolute;
  inset: 0;
  background: var(--surface-mark);
  border: 1px solid var(--gold-faint);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-origin: 50% 50%;
}
.vantage__face[data-angle="0"]   { transform: rotateY(0deg)   translateZ(var(--cube-z)); }
.vantage__face[data-angle="90"]  { transform: rotateY(90deg)  translateZ(var(--cube-z)); }
.vantage__face[data-angle="180"] { transform: rotateY(180deg) translateZ(var(--cube-z)); }
.vantage__face[data-angle="270"] { transform: rotateY(270deg) translateZ(var(--cube-z)); }
.vantage__face img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.18); transform-origin: center center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
  .vantage__face img { transition: none; transform: scale(1.05); }
}
.vantage__corner {
  position: absolute;
  width: 28px; height: 28px;
  border: 1px solid var(--gold-accent);
  pointer-events: none;
}
.vantage__corner.tl { top: 12px; left: 12px;  border-right: 0; border-bottom: 0; }
.vantage__corner.tr { top: 12px; right: 12px; border-left: 0;  border-bottom: 0; }
.vantage__corner.bl { bottom: 12px; left: 12px;  border-right: 0; border-top: 0; }
.vantage__corner.br { bottom: 12px; right: 12px; border-left: 0;  border-top: 0; }
.vantage__compass {
  position: absolute;
  top: 22px; right: 24px;
  padding: 6px 12px;
  background: oklch(13% 0.025 268 / 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-accent);
  text-transform: uppercase;
}
.vantage__placard {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: 80%;
  padding: 14px 28px;
  background: oklch(13% 0.025 268 / 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--gold-soft);
  text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
}
.vantage__placard__dir {
  font-family: var(--mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; color: var(--gold-accent);
  text-transform: uppercase;
}
.vantage__placard__rule { width: 1px; height: 14px; background: var(--gold-soft); }
.vantage__placard__title {
  margin: 0;
  font-family: var(--serif-display); font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.05; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink-primary);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .vantage__placard { padding: 10px 18px; bottom: 18px; gap: 10px; }
  .vantage__placard__title { font-size: 16px; }
  .vantage__compass { top: 14px; right: 16px; }
}
.vantage__controls {
  margin: var(--space-6) auto 0;
  max-width: 1280px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
}
.vantage__arrow {
  background: transparent; color: var(--ink-primary);
  border: 1px solid var(--gold-soft);
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.vantage__arrow:hover { background: var(--gold-accent); color: var(--surface-base); border-color: var(--gold-accent); }
.vantage__arrow svg { width: 18px; height: 18px; }
.vantage__dots { display: flex; gap: 18px; align-items: center; }
.vantage__dot {
  background: transparent; border: 0;
  padding: 10px 2px; cursor: pointer;
  color: var(--ink-quiet);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  position: relative;
  transition: color var(--t-fast);
}
.vantage__dot::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 1px; background: var(--gold-accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--t-medium);
}
.vantage__dot[aria-current="true"] { color: var(--gold-accent); }
.vantage__dot[aria-current="true"]::after { transform: scaleX(1); }
.vantage__dot:hover { color: var(--gold-accent); }
@media (max-width: 640px) {
  /* Arrows stay on the same row; dots collapse to a second row underneath. */
  .vantage__controls {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
  }
  .vantage__dots { order: 2; flex-basis: 100%; justify-content: center; }
  .vantage__stage-wrap { touch-action: pan-y; }
}
@media (prefers-reduced-motion: reduce) {
  .vantage__stage { transition: none; }
  .vantage__face { backface-visibility: visible; }
}

.building-band {
  padding: var(--space-9) 0;
}
.building-band__intro {
  max-width: var(--container-max);
  margin: 0 auto var(--space-6);
  padding: 0 var(--container-px);
}
.building-band__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .building-band__grid { grid-template-columns: 1fr; }
}

.plan-band {
  position: relative;
  padding: var(--space-10) var(--container-px);
  overflow: hidden;
  background: var(--surface-mark);
}
/* Plan-band background: use a real <img> inside .bg-photo (not a
   CSS background) so we can transform-pan it cleanly. CSS animations
   beat author styles in the cascade, so on hover we set
   `animation: none` rather than `animation-play-state: paused` —
   otherwise the paused animation keeps owning the transform value
   and the cursor-driven pan can't take effect.

   Image is 140% of container width so it always overflows
   horizontally (full-bleed on any screen + ~28% pan budget on each
   side). Top-anchored (object-position 50% 0) so the top of the
   photo stays visible; the vertical overflow falls below the fold
   and is clipped by .plan-band's overflow:hidden. */
.plan-band .bg-photo {
  background-image: none;
  transform: none;
  animation: none;
  opacity: 1;
  overflow: hidden;
}
.plan-band .bg-photo img {
  position: absolute;
  top: 0; left: 0;
  /* --plan-img-w: image rendered width (% of container).
     --plan-pan: pan distance (% of image) so the right edge of the image
     lands flush against the right edge of the container at the extreme.
     Math: (W - 100) / W as a percentage. Keep these two in sync. */
  --plan-img-w: 140%;
  --plan-pan: 28.57%;
  width: var(--plan-img-w);
  /* override the global `img, video { max-width: 100% }` from c360.css
     so the width custom property actually renders. Without this, the image
     was clamped to 100% and pan-translateX exposed empty area on the right. */
  max-width: none;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: translateX(0%);
  animation: plan-band-drift 28s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
@media (max-width: 760px) {
  /* At narrow widths the desktop 140% crop only reveals ~71% of the panorama
     and the pan drifts within a tight band — feels like the photo never
     reaches its edges. Widen the rendered image so a smaller slice is visible
     at any moment, and extend the pan to cover the full image left → right. */
  .plan-band .bg-photo img {
    --plan-img-w: 280%;
    --plan-pan: 64.28%;
    animation-duration: 40s;
  }
}
@keyframes plan-band-drift {
  0%, 100% { transform: translateX(0%); }
  50%      { transform: translateX(calc(-1 * var(--plan-pan))); }
}
/* Hover takeover is handled entirely by inline JS (see _PlanBand.cshtml)
   so we can smoothly transition from the animation's current frame
   to the cursor-driven position instead of snapping. CSS hover rules
   can't read the live animation transform, which is why the JS path
   is necessary here. */
@media (prefers-reduced-motion: reduce) {
  .plan-band .bg-photo img { animation: none; transform: none; }
}

/* Veil: left-dark to right-light gradient, anchoring readable text
   on the left while letting the photograph breathe on the right. */
.plan-band .bg-photo-veil {
  background: linear-gradient(to right,
    oklch(13% 0.025 268 / 0.82) 0%,
    oklch(13% 0.025 268 / 0.62) 38%,
    oklch(13% 0.025 268 / 0.22) 78%,
    oklch(13% 0.025 268 / 0.08) 100%);
}
.plan-band__inner {
  position: relative; z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: end;
}
@media (max-width: 760px) {
  .plan-band__inner { grid-template-columns: 1fr; }
}
.plan-band__copy h2 {
  margin: 0 0 var(--space-4);
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 60px);
  line-height: var(--lh-tight);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.plan-band__copy p {
  margin: 0;
  font-size: 17px; line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}
.plan-band__actions {
  display: flex; flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .plan-band__actions { justify-content: flex-start; }
}

/* Civic Fame chapter - crown gradient pattern (mirrors home) */
.chapter-civic {
  position: relative;
  padding: clamp(248px, calc(18vh + 120px), 340px) 0;
  margin: -140px 0;
  overflow: hidden;
  isolation: isolate;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 76%, transparent 100%);
}
.chapter-civic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--surface-mark);
  z-index: 0;
}
.chapter-civic .chapter__inner { position: relative; z-index: 1; }
/* Subtle background — DCAS source · cluster 3 (BG · 19 in Design System v2).
   Sits behind the A-frame image, centered on the .chapter__media column so it
   tracks the image at every viewport width. Sized larger than the column so
   the swirl pattern bleeds past the frame; the section's overflow:hidden
   confines it to the chapter band. */
.chapter-civic__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1800px;
  height: 1800px;
  margin: -900px 0 0 -900px;
  pointer-events: none;
  z-index: 0;
  background-image: url('/imgs/background_swirls/Centre360-WebAssets-_multiswirl-cluster-bg-3.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  -webkit-mask-image: radial-gradient(circle at center, #000 0%, #000 22%, rgba(0,0,0,0.55) 44%, transparent 70%);
          mask-image: radial-gradient(circle at center, #000 0%, #000 22%, rgba(0,0,0,0.55) 44%, transparent 70%);
}
@media (max-width: 880px) {
  .chapter-civic__bg {
    width: 1200px; height: 1200px;
    margin: -600px 0 0 -600px;
  }
}
.chapter-civic .chapter__media { position: relative; z-index: 1; }
.chapter-civic .frame-a { position: relative; z-index: 1; width: 100%; }
.chapter-civic .frame-media { aspect-ratio: 9 / 16; }
.chapter-civic__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.chapter-civic .chapter__inner:hover .frame-a .corner,
.chapter-civic .chapter__inner:focus-within .frame-a .corner {
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  opacity: 1;
}
