/* capabilities.css — "The Press Room". Owner: fp2-capabilities. ADDS only; never
   restyles base chrome. PRESSROOM/press-grammar grammar: paper ground, ink + press-blue +
   board rationed, hexachrome CMYKOG semantic-only (one --hx-* per chapter via --unit),
   foil gold ONLY in unit 04. Two signature moves live here: the fixed press-pass rail
   and the hot-foil shimmer headline. Motion = fades + small translate-y (base.css). */

/* registration mark ⌖ — the only decorative glyph (hero meta, section corners).
   Rendered as the U+2316 glyph (like portfolio) — NO CSS circle, honours the
   absolute no-rounded-corners law. */
.reg {
  display: inline-block;
  margin-right: .4em;
  vertical-align: -.02em;
  font-weight: 400;
  line-height: 1;
  opacity: .7;
}
.reg::before { content: "\2316"; }

/* ---- signature move 1: fixed press-pass CMYKOG rail ---- */
.presspass {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  display: flex;
  flex-direction: column;
  background: rgba(16, 21, 27, .06);
  border-right: 1px solid var(--line);
  pointer-events: none;
}

.pp-seg {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.pp-seg + .pp-seg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line-paper);
  z-index: 1;
}

.pp-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--u);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .7s var(--ease);
}

.pp-seg.on::after { transform: scaleY(1); }

.pp-label {
  position: absolute;
  bottom: clamp(4.5rem, 12vh, 9rem);
  left: 100%;
  margin-left: .55rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .5;
  white-space: nowrap;
}

/* ---- "The Press Room" hero: full-bleed press line, copy over an ink scrim ---- */
.caps-hero {
  position: relative;
  min-height: clamp(30rem, 62vh + 6vw, 46rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  padding-block: calc(var(--hdr-h) + 3rem) clamp(3rem, 5vw, 5.5rem);
}

.caps-hero-media {
  position: absolute;
  inset: 0;
}

.caps-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) brightness(.5);
}

.caps-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 21, 27, .78) 0%, rgba(16, 21, 27, .5) 42%, rgba(16, 21, 27, .28) 100%);
}

.caps-hero-copy {
  position: relative;
  z-index: 2;
  color: var(--paper);
  width: 100%;
}

.caps-hero-copy .eyebrow { opacity: .72; }
.caps-hero-copy .display { margin: 1.1rem 0 1.4rem; max-width: 16ch; }
.caps-hero-copy .lede { color: rgba(242, 241, 236, .84); }

.caps-hero-meta {
  margin-top: 1.7rem;
  font-size: var(--eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 241, 236, .66);
}

/* ---- chapter rhythm ---- */
.caps-journey { position: relative; }

.ch {
  padding-block: var(--sec);
  border-top: 1px solid var(--line);
}

.ch:first-child { border-top: 0; }

/* the ONE dark chapter break — unit 04, the hot-stamping moment (ink ground so the
   foil headline reads at AA and the gold actually looks like foil). */
.ch--foil {
  background: var(--ink);
  color: var(--paper);
}

.ch--foil .muted { color: rgba(242, 241, 236, .6); }
.ch--foil .accent { color: var(--paper); }
.ch--foil .frame-cap,
.ch--foil .panel-cap { color: rgba(242, 241, 236, .62); }

/* ---- mechanic 4: editorial lead — idx/label far left, headline offset right,
   narrow prose column dropped down the right (the deliberate empty gap). ---- */
.ch-lead {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--pad);
  row-gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}

.ch-open {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--pad);
  row-gap: clamp(.6rem, 1.4vw, 1.1rem);
  align-items: end;
}

.ch-idx {
  grid-column: 1 / 5;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: .7rem;
  font-size: var(--eyebrow);
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .62;
}

.ch-idx-n {
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  font-weight: 300;
  letter-spacing: 0;
  color: var(--unit);
  opacity: 1;
}

.unit-label {
  grid-column: 1 / 5;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--eyebrow);
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .8;
}

.u-swatch {
  width: 1.5rem;
  height: 7px;
  background: var(--unit);
  flex: none;
}

.ch-open .display {
  grid-column: 5 / 13;
  grid-row: 1 / 3;
  align-self: center;
  max-width: 20ch;
}

.ch-body {
  grid-column: 8 / 13;
  max-width: 34rem;
  font-weight: 300;
  display: grid;
  gap: 1rem;
}

.muted { color: rgba(16, 21, 27, .58); }

.accent {
  font-weight: 500;
  white-space: nowrap;
}

/* unit 04: Key = the ink ground itself; render its numeral/swatch in the chapter's
   own material — foil gold — so they read on dark and tie to the moment. */
.ch--foil .ch-idx-n,
.ch--foil .u-swatch { color: var(--foil-1); background-color: var(--foil-1); }
.ch--foil .ch-idx-n { background: none; }

/* ---- figures ---- */
.frame {
  position: relative;
  aspect-ratio: var(--ar, 4 / 3);
  overflow: hidden;
  background: rgba(16, 21, 27, .08);
}

.frame img,
.frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--frame-pos, 50% 50%);
}

.frame-cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: .55rem .8rem;
  background: rgba(16, 21, 27, .78);
  color: var(--paper);
  font-size: .625rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.media-2 {
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, .5rem + 1.5vw, 1.75rem);
}

/* ---- mechanic 3-ish full-bleed panel ---- */
/* the chapter sections are already full-viewport width (no inline padding), so a bleed
   is just width:100% — NEVER transform:translateX here: [data-reveal].in sets
   transform:none and would wipe the centering, shoving the 100vw block off-canvas. */
.ch-bleed {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  width: 100%;
}

.ch-bleed .frame { aspect-ratio: 21 / 9; }

.panel-cap {
  max-width: var(--wrap);
  margin: .9rem auto 0;
  padding-inline: var(--pad);
  font-size: var(--eyebrow);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(16, 21, 27, .6);
}

/* ambient loops */
.ch-loop { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.ch-loop--2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  align-items: start;
}

/* ---- hexachrome specimen (unit 02 only): the six inks named ---- */
.hex-spec-wrap { margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.hex-spec {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(.75rem, .4rem + 1vw, 1.5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(1.25rem, .8rem + 1.4vw, 2rem);
}

.hex-spec li {
  display: grid;
  gap: .7rem;
  font-size: var(--eyebrow);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hex-spec .chip { height: 3px; background: var(--chip); }
.hex-spec .chip-k {
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem);
  letter-spacing: 0;
  color: var(--chip);
}
.hex-spec .chip-k { color: color-mix(in oklab, var(--chip) 100%, var(--ink) 8%); }
.hex-spec li.is-x .chip { height: 6px; }
.hex-note { margin-top: 1rem; opacity: .55; }

/* ---- signature move 2: hot-foil shimmer headline (unit 04, on ink) ---- */
.foil-text {
  --sweep: rgba(255, 255, 255, .85);
  background:
    linear-gradient(100deg, transparent 30%, var(--sweep) 48%, transparent 62%) 0 0 / 220% 100% no-repeat,
    var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-color: transparent;
  animation: foilSweep 5.5s var(--ease) 1.2s infinite;
}

@keyframes foilSweep {
  0%, 22% { background-position: 130% 0, 0 0; }
  55%, 100% { background-position: -30% 0, 0 0; }
}

/* ---- numbered rows ---- */
.num-rows {
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  display: grid;
  gap: clamp(1rem, .6rem + 1vw, 1.6rem);
}

.num-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: clamp(1rem, .5rem + 1.5vw, 2rem);
  align-items: baseline;
  padding-top: clamp(1rem, .6rem + 1vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.nr-n {
  font-size: clamp(1.1rem, .9rem + .7vw, 1.5rem);
  font-weight: 300;
  color: rgba(16, 21, 27, .4);
}

.ch--foil .nr-n { color: rgba(242, 241, 236, .45); }
.ch--foil .num-row { border-color: var(--line-paper); }

.nr-t {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.nr-b { max-width: 40rem; font-weight: 300; color: rgba(16, 21, 27, .72); }
.ch--foil .nr-b { color: rgba(242, 241, 236, .72); }

.ch-close-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

.ch-close-grid .num-rows { margin-top: 0; }
.ch-close-grid .frame { aspect-ratio: 3 / 2; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .ch-lead { grid-template-columns: 1fr; }
  .ch-open { grid-column: 1; grid-template-columns: 1fr; }
  .ch-idx, .unit-label { grid-column: 1; }
  .ch-open .display { grid-column: 1; grid-row: auto; max-width: none; }
  .ch-body { grid-column: 1; }
  .media-2 { grid-template-columns: 1fr; }
  .ch-loop--2 { grid-template-columns: 1fr; }
  .ch-close-grid { grid-template-columns: 1fr; align-items: start; }
  .hex-spec { grid-template-columns: repeat(3, 1fr); row-gap: 1.5rem; }
}

@media (max-width: 720px) {
  .pp-label { display: none; }
  .presspass { width: 5px; }
}

@media (max-width: 480px) {
  .hex-spec { grid-template-columns: repeat(2, 1fr); }
}

/* ---- "the floor, as shot" — real-photo epilogue (v4.1r9). Dark ink archive band;
   client photos at NATURAL aspect (r3 law: never crop the client's own shots). ---- */
.floor {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 3rem + 5vw, 8rem) clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  display: grid;
  gap: clamp(1rem, .5rem + 1.5vw, 1.75rem);
}

.floor .media-2 {
  margin-top: 0;
}

.floor-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(1rem, .5rem + 1.5vw, 2rem);
}

.floor-head .eyebrow,
.floor-note .eyebrow {
  color: var(--hdr-red);
}

.floor-head .lede {
  opacity: .85;
}

.floor .frame {
  background: rgba(242, 241, 236, .06);
}

.floor-plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, .5rem + 1.5vw, 1.75rem);
  align-items: center;
}

.floor-note {
  display: grid;
  gap: 1rem;
  max-width: 26rem;
  justify-self: center;
}

.floor-note p:not(.eyebrow) {
  font-weight: 300;
  opacity: .85;
}

@media (max-width: 900px) {
  .floor-plate {
    grid-template-columns: 1fr;
  }

  .floor-note {
    justify-self: start;
  }
}

/* ---- process-group labels + the full-width die-board (v4.1r11) ---- */
.floor-group {
  color: var(--hdr-red); /* == .floor-head .eyebrow — #f5c9c2 on --ink, AA pass */
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); /* one rhythm step above its row = group break */
}

/* first group sits tight under the head, no extra break */
.floor-head + .floor-group {
  margin-top: 0;
}

/* one photo, full wrap width — natural aspect comes from .frame --ar; never cropped */
.floor-wide .frame {
  width: 100%;
}

/* ---- reduced motion: rail shows static full bar, foil sits static gold ---- */
@media (prefers-reduced-motion: reduce) {
  .pp-seg::after { transform: none; }
  .foil-text { animation: none; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
