/* Final art direction pass: clean cinematic/editorial override layer. */
:root {
  --to-oled: #000000;
  --to-bone: #efebe1;
  --to-white: #f8f7f2;
  --white: #f8f7f2;
  --bone: #efebe1;
  --paper: #efebe1;
  --muted: rgba(239, 235, 225, 0.72);
  --soft: rgba(239, 235, 225, 0.48);
  --line: rgba(239, 235, 225, 0.16);
  --mark: #FFC700;
  --signal: var(--mark);
  --decision: var(--mark);
}

body {
  background: #000000;
}

body::after {
  opacity: 0.18;
  mix-blend-mode: screen;
}

.hero,
.file-cover,
.operating-cover,
.manual-cover,
.problem,
.ep,
.build,
.proof,
.pressure-test,
.record-status,
.engagements {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #000000;
}

.hero::before,
.file-cover::before,
.operating-cover::before,
.manual-cover::before,
.problem::before,
.ep::before,
.build::before,
.proof::before,
.pressure-test::before,
.record-status::before,
.bureau-work::before,
.opening-band::before,
.diag-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: none;
  transform-origin: center;
  background-size: cover;
  pointer-events: none;
}

.file-cover .wrap,
.operating-cover .wrap,
.manual-cover .wrap,
.record-status .wrap,
.pressure-test .wrap,
.engagements .wrap {
  position: relative;
  z-index: 2;
}

body .file-cover::before,
body .operating-cover::before,
body .manual-cover::before,
body .record-status::before,
body .pressure-test::before {
  display: block;
  visibility: visible;
  z-index: 0;
}

body .file-cover::after,
body .operating-cover::after,
body .manual-cover::after,
body .record-status::after,
body .pressure-test::after {
  z-index: 1;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.section-bg--dossier-cover {
  object-position: center 46%;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.72);
  opacity: 0.96;
}

.section-bg--record {
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(0.5);
  opacity: 0.42;
}

.section-bg--operating-cover {
  object-position: center 48%;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.74);
  opacity: 0.98;
}

.section-bg--engagements {
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.68);
  opacity: 0.38;
}

.section-bg--manual-cover {
  object-position: center 50%;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.82);
  opacity: 0.96;
}

.section-bg--pressure {
  object-position: center 38%;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.76);
  opacity: 0.96;
}

/* Home selected images. */
.hero::before {
  background: url("../assets/img/curation/home/HOME_HERO_01_train_motion_opening.jpg") center center / cover no-repeat;
  inset: -4%;
  transform: scale(0.94);
  transform-origin: center;
}

.do::before {
  background: url("../assets/img/rescue/index-theforesight/02_what-we-do__desk-dark.jpg") center 52% / cover no-repeat;
}

.problem::before {
  background:
    linear-gradient(180deg, #050505 0%, rgba(5, 5, 5, 0.08) 18%, rgba(5, 5, 5, 0.12) 78%, #050505 100%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.86), rgba(3, 3, 3, 0.38) 58%, rgba(3, 3, 3, 0.78)),
    url("../assets/img/rescue/index-theforesight/03_the-real-problem__problem-times-square.webp") center 58% / cover no-repeat;
}

.section-breath::before {
  background: url("../assets/img/rescue/index-theforesight/04_transition__culture-street.jpg") center 50% / cover no-repeat;
}

.opening-band::before,
.ep::before {
  background: url("../assets/img/rescue/index-theforesight/05_the-entry-point__pexels-jan-van-der-wolf-11680885-19155260.webp") center 50% / cover no-repeat;
}

.bureau-work::before {
  background: url("../assets/img/rescue/index-theforesight/06_bureau-at-work__pexels-jamie-kimball-2149238171-30665027.webp") center 50% / cover no-repeat;
}

.build::before {
  background: url("../assets/img/rescue/index-theforesight/07_what-we-build__pexels-douglas-schneiders-2148687071-30950159.webp") center 52% / cover no-repeat;
}

.diag-strip::before {
  background: url("../assets/img/curation/home/HOME_SUPPORT_02_phone_signal.jpg") center 48% / cover no-repeat;
}

.diagnostic-slip::before {
  background: url("../assets/img/rescue/index-theforesight/09_diagnostic-slip__tex-paper.jpg") center / cover no-repeat;
}

.proof::before {
  background: url("../assets/img/curation/home/HOME_PROOF_03_block_party_bw.jpg") center 40% / cover no-repeat;
}

.closing::before {
  background: url("../assets/img/rescue/index-theforesight/11_closing__tex-velvet.jpg") center / cover no-repeat;
}

.formats {
  background:
    linear-gradient(rgba(248, 247, 242, 0.94), rgba(248, 247, 242, 0.94)),
    url("../assets/img/rescue/index-theforesight/09_diagnostic-slip__tex-paper.jpg") center / clamp(680px, 75vw, 1200px) auto;
}

/* Dossier images. */
body .file-cover::before {
  background: url("../assets/img/curation/dossier/DOSSIER_HERO_02_darkroom_negatives.webp") center 46% / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.72);
  opacity: 0.96;
}

.file-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.7)),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.16) 34%, rgba(0, 0, 0, 0.24) 68%, #000000 100%);
  opacity: 0.54;
  pointer-events: none;
}

.evidence-image img {
  opacity: 1;
  object-position: center 52%;
  filter: grayscale(1) saturate(0) contrast(1.1) brightness(0.9);
}

body .record-status::before {
  background: url("../assets/img/curation/dossier/DOSSIER_GOLD_01_value_texture.jpg?v=assetfix1") center / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(0.5);
  opacity: 0.42;
}

.record-status::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54) 48%, rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.1) 42%, #000000 100%);
  pointer-events: none;
}

/* Operating Map images. */
body .operating-cover::before {
  background: url("../assets/img/curation/operating-map/OPMAP_HERO_01_blueprint_auditorium.jpg?v=assetfix1") center 48% / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.74);
  opacity: 0.98;
}

.operating-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22) 54%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.18) 36%, rgba(0, 0, 0, 0.28) 72%, #000000 100%);
  opacity: 0.54;
  pointer-events: none;
}

body .engagements::before {
  background: url("../assets/img/curation/operating-map/OPMAP_TEXTURE_01_blueprint_warm.jpg?v=assetfix1") center / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.68);
  opacity: 0.38;
}

/* Field Manual images. */
body .manual-cover::before {
  background: url("../assets/img/curation/field-manual/FIELD_HERO_02_stage_haze_no_floor.webp") center 50% / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.82);
  opacity: 0.96;
}

.manual-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.72)),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.14) 38%, rgba(0, 0, 0, 0.26) 74%, #000000 100%);
  opacity: 0.54;
  pointer-events: none;
}

body .pressure-test::before {
  background: url("../assets/img/curation/field-manual/FIELD_PRESSURE_01_times_square_bw.jpg?v=assetfix1") center 38% / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.76);
  opacity: 0.96;
}

.pressure-test::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 54% 48%, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.24) 72%),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.08) 42%, #000000 100%);
  pointer-events: none;
}

.field-reading,
.use-field {
  background:
    linear-gradient(rgba(239, 235, 225, 0.92), rgba(239, 235, 225, 0.92)),
    url("../assets/img/curation/field-manual/FIELD_TEXTURE_01_bone_paper.jpg?v=assetfix1") center / clamp(720px, 80vw, 1240px) auto;
}

.build-taxonomy,
.svc-waysin {
  background:
    linear-gradient(rgba(239, 235, 225, 0.965), rgba(239, 235, 225, 0.965)),
    url("../assets/img/curation/field-manual/FIELD_TEXTURE_01_bone_paper.jpg?v=assetfix1") center / clamp(720px, 80vw, 1240px) auto;
}

/* Slight readability lift for body copy only. */
.cover-sub,
.cover-copy,
.manual-sub,
.section-intro,
.status-copy,
.status-principle,
.t-desc,
.e-line,
.e-formed,
.logic-step p,
.engagement-for,
.engagement-result p,
.diagnostic-titleline,
.instrument-part p,
.decision-output p,
.limits-intro,
.observation p,
.code-line,
.field-question p,
.use-copy,
.start-copy,
.wayin p,
.svc-way p,
.form-record p,
.format-note,
.fmt-dev p,
.rec p {
  font-size: 1.045em;
  line-height: 1.62;
}

/* Field Manual pressure test: keep the last-version composition. */
body .pressure-test {
  align-items: flex-start;
  min-height: clamp(920px, 112svh, 1240px);
}

.pressure-test .wrap {
  position: relative;
  z-index: 2;
  padding-top: clamp(92px, 12vh, 150px);
  padding-bottom: clamp(62px, 9vh, 110px);
}

body .pressure-test .conditions.conditions-composed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: min(1010px, 100%);
  margin: clamp(50px, 6.2vw, 82px) 0 0 clamp(70px, 6.2vw, 116px);
  gap: clamp(9px, 0.9vw, 14px);
  font: 900 clamp(1.85rem, 3.05vw, 3.55rem)/0.92 var(--display);
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  color: rgba(239, 235, 225, 0.56);
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.92);
}

body .pressure-test .conditions-composed .conditions-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: clamp(28px, 3.45vw, 58px);
}

body .pressure-test .conditions-composed span {
  color: rgba(239, 235, 225, 0.56);
}

body .pressure-test .conditions-composed .is-mark {
  color: #ffc700;
}

body .pressure-test .pressure-signal {
  width: max-content;
  max-width: min(100%, 32rem);
  margin: clamp(24px, 3.1vw, 38px) 0 clamp(28px, 3.6vw, 48px);
  white-space: nowrap;
  box-shadow: none;
}

body .pressure-test .pressure-copy {
  max-width: 58ch;
}

body .pressure-test .pressure-end {
  max-width: 980px;
  margin: clamp(68px, 7.8vw, 104px) 0 0;
  font-size: clamp(1.5rem, 2.35vw, 2.55rem);
  line-height: 1.16;
}

/* Field Manual code: manifesto lines, one idea per row. */
body .field-code .code-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(8px, 0.9vw, 14px);
  max-width: min(1080px, 100%);
  margin-top: clamp(42px, 5.4vw, 76px);
}

body .field-code .code-line {
  width: max-content;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  color: var(--white);
  font: 900 clamp(2rem, 3.35vw, 4.25rem)/0.98 var(--display);
  letter-spacing: 0;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.82);
}

body .field-code .code-line b {
  color: #ffc700;
  font-weight: 900;
}

body .field-code .field-question {
  margin-top: clamp(58px, 7vw, 104px);
}

@media (max-width: 760px) {
  body .pressure-test {
    min-height: auto;
  }

  .pressure-test .wrap {
    padding-top: clamp(82px, 20vw, 118px);
  }

  body .pressure-test .conditions.conditions-composed {
    margin-left: 0;
    gap: 10px;
    font-size: clamp(1.55rem, 8vw, 2.85rem);
  }

  body .pressure-test .conditions-composed .conditions-row {
    flex-wrap: wrap;
    gap: 8px clamp(20px, 7vw, 36px);
  }

  body .field-code .code-line {
    width: auto;
    white-space: normal;
    font-size: clamp(1.75rem, 8.2vw, 3rem);
  }
}

/* Canvas continuity and cleanup. */
.hero::after,
.problem::after,
.ep::after,
.build::after,
.proof::after,
.bureau-work::after,
.opening-band::after,
.diag-strip::after {
  background:
    radial-gradient(ellipse at 50% 48%, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.28) 44%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.18) 28%, rgba(0, 0, 0, 0.22) 64%, #000000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.1) 48%, rgba(0, 0, 0, 0.68));
}

.proofbar {
  border-top: 0;
  border-bottom: 0;
  background: linear-gradient(180deg, #000000 0%, #030303 48%, #000000 100%);
}

.proofbar::before,
.proofbar::after,
.tv-seam,
.tv-seam::before,
.tv-seam::after {
  display: none;
  content: none;
  height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
}

.origin,
.diagnostic,
.operating-logic,
.field-code,
.limits {
  background-color: #000000;
}

.aperture {
  background: #000000;
}

.ap-track,
.ap-cut {
  background: transparent;
}

.section,
.chapter {
  scroll-margin-top: 86px;
}

.file-cover .wrap,
.operating-cover .wrap,
.manual-cover .wrap {
  width: min(1120px, calc(100% - var(--pad) * 2));
}

.cover-register,
.cover-grid,
.manual-grid {
  gap: clamp(46px, 7vw, 106px);
}

.pb-cat,
.diagnostic-copy,
.form-record,
.svc-way,
.wayin,
.t-block,
.engagement,
.instrument-part,
.limit,
.observation,
.e-piece,
.rec,
.fmt-dev {
  box-shadow: none;
}

/* Hero editorial side block. */
.hero-side {
  align-self: end;
  max-width: 350px;
  justify-self: auto;
  margin: 0 0 clamp(30px, 5vh, 60px);
  transform: translateY(2vh);
}

.hero-side p {
  max-width: none;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.42rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  text-shadow: none;
}

.hero-side strong {
  display: table;
  width: auto;
  white-space: nowrap;
  margin: 0 0 0.7em;
  padding: 7px 12px 8px;
  background: var(--mark);
  color: var(--night);
  font-family: var(--display);
  font-size: 0.92em;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  box-shadow: 10px 10px 0 rgba(3, 3, 3, 0.72);
}

.signal-plate {
  display: table;
}

.hero-side .signal-plate {
  font-size: 0.92em;
}

.cover-signal {
  margin: clamp(22px, 2.8vw, 36px) 0 0;
}

.pressure-signal {
  margin: clamp(24px, 3vw, 38px) 0 clamp(24px, 3vw, 36px);
}

.record-signal {
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(28px, 3.4vw, 44px);
}

@media (min-width: 980px) {
  .file-cover,
  .operating-cover,
  .manual-cover {
    min-height: clamp(660px, 78svh, 820px);
  }

  .chapter,
  .section {
    padding-top: clamp(104px, 11vw, 156px);
    padding-bottom: clamp(104px, 11vw, 156px);
  }
}

@media (max-width: 760px) {
  .file-cover::before,
  .operating-cover::before,
  .manual-cover::before,
  .pressure-test::before {
    background-position: center center;
  }

  .cover-register,
  .cover-grid,
  .manual-grid {
    gap: 34px;
  }

  .hero-side {
    max-width: 100%;
    transform: none;
  }

  .hero-side strong,
  .signal-plate,
  .hero-side .signal-plate {
    width: auto;
    max-width: 100%;
    white-space: normal;
    line-height: 1.05;
  }
}

/* Dossier selected records: restore the archive-card register. */
body .public-evidence {
  background: #000000;
}

body .public-evidence .public-head {
  max-width: 980px;
  margin-bottom: clamp(46px, 7vw, 86px);
}

body .public-evidence .public-head p,
body .public-evidence .e-attribution {
  color: rgba(239, 235, 225, 0.66);
}

body .public-evidence .evidence-scroll-container,
body .public-evidence .evidence-sticky {
  height: auto;
  min-height: 0;
  position: relative;
  top: auto;
  overflow: visible;
}

body .public-evidence .evidence-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(22px, 3.2vw, 38px);
  max-width: min(1120px, 100%);
  transform: none;
}

body .public-evidence .e-piece,
body .public-evidence .e-piece:nth-child(even) {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background:
    linear-gradient(rgba(248, 247, 242, 0.94), rgba(248, 247, 242, 0.94)),
    url("../assets/img/curation/field-manual/FIELD_TEXTURE_01_bone_paper.jpg?v=assetfix1") center / 920px auto;
  color: #0a0a0a;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

body .public-evidence .e-meta {
  display: block;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 26px) clamp(22px, 3vw, 42px);
  background: #050505;
}

body .public-evidence .e-no {
  display: block;
  margin: 0 0 8px;
  color: #ffc700;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body .public-evidence .e-title {
  max-width: none;
  margin: 0;
  color: #efebe1;
  font-size: clamp(1.35rem, 2.1vw, 2.15rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}

body .public-evidence .e-title .serif-em {
  color: #efebe1;
}

body .public-evidence .e-body {
  padding: clamp(26px, 3.6vw, 48px) clamp(22px, 3vw, 42px) clamp(30px, 4vw, 54px);
}

body .public-evidence .e-names,
body .public-evidence .e-piece:nth-child(even) .e-names {
  display: block;
  max-width: none;
  margin: 0 0 0.62em;
  padding: 0;
  color: rgba(10, 10, 10, 0.94);
  font: 900 clamp(1.58rem, 2.75vw, 2.9rem)/1.1 var(--display);
  letter-spacing: -0.03em;
  text-align: left;
  text-transform: uppercase;
  opacity: 1;
}

body .public-evidence .e-names span::after {
  content: none;
}

body .public-evidence .e-names i {
  font: 700 clamp(0.78rem, 0.95vw, 0.98rem)/1.3 var(--mono);
  font-style: normal;
  letter-spacing: 0.08em;
  color: rgba(10, 10, 10, 0.52);
}

body .public-evidence .e-line {
  max-width: 64ch;
  margin: 0 0 1.15em;
  color: rgba(10, 10, 10, 0.78);
  font: 400 clamp(0.98rem, 1.14vw, 1.12rem)/1.62 var(--sans);
  letter-spacing: -0.005em;
}

body .public-evidence .e-formed {
  max-width: 64ch;
  margin: clamp(18px, 2.5vw, 28px) 0 0;
  color: rgba(10, 10, 10, 0.92);
  font: 500 clamp(0.98rem, 1.14vw, 1.12rem)/1.58 var(--sans);
}

body .public-evidence .e-formed b {
  display: block;
  margin: 0 0 6px;
  color: rgba(10, 10, 10, 0.54);
  font: 800 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

@media (hover: hover) and (pointer: fine) {
  body .public-evidence .e-names:hover span {
    color: rgba(10, 10, 10, 0.35);
  }

  body .public-evidence .e-names span:hover {
    color: var(--mark);
  }
}

@media (max-width: 760px) {
  body .public-evidence .evidence-gallery {
    gap: 20px;
  }

  body .public-evidence .e-piece {
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  }
}

/* Spanish ways-in grids: keep the cards editorial, prevent title collisions. */
html[lang="es"] body .waysin .waysin-grid,
html[lang="es"] body .svc-waysin .svc-waysin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: min(1120px, 100%);
  margin-top: clamp(48px, 6vw, 82px);
}

html[lang="es"] body .waysin .wayin,
html[lang="es"] body .svc-waysin .svc-way {
  min-height: clamp(270px, 27vw, 365px);
  padding: clamp(28px, 3.2vw, 46px) clamp(28px, 3.4vw, 52px);
  border-left: 1px solid currentColor;
}

html[lang="es"] body .waysin .wayin:nth-child(odd),
html[lang="es"] body .svc-waysin .svc-way:nth-child(odd) {
  border-left: 0;
}

html[lang="es"] body .waysin .wayin:nth-child(n + 3),
html[lang="es"] body .svc-waysin .svc-way:nth-child(n + 3) {
  border-top: 1px solid currentColor;
}

html[lang="es"] body .waysin .wayin {
  border-color: rgba(248, 247, 242, 0.16);
}

html[lang="es"] body .svc-waysin .svc-way {
  border-color: rgba(10, 10, 10, 0.22);
}

html[lang="es"] body .waysin .wayin h3,
html[lang="es"] body .svc-waysin .svc-way h3 {
  max-width: 14ch;
  margin-top: clamp(12px, 1.6vw, 20px);
  margin-bottom: clamp(16px, 2vw, 24px);
  font-size: clamp(1.95rem, 3vw, 3.15rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

html[lang="es"] body .waysin .wi-when,
html[lang="es"] body .svc-waysin .when {
  display: block;
  max-width: 32ch;
  min-height: 2.4em;
  line-height: 1.25;
}

html[lang="es"] body .waysin .wayin p,
html[lang="es"] body .svc-waysin .svc-way p {
  max-width: 42ch;
}

@media (max-width: 860px) {
  html[lang="es"] body .waysin .waysin-grid,
  html[lang="es"] body .svc-waysin .svc-waysin-grid {
    grid-template-columns: 1fr;
  }

  html[lang="es"] body .waysin .wayin,
  html[lang="es"] body .svc-waysin .svc-way {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid currentColor;
  }

  html[lang="es"] body .waysin .wayin:first-child,
  html[lang="es"] body .svc-waysin .svc-way:first-child {
    border-top: 0;
  }
}

/* Home closing: brutalist signal poster on yellow. */
body .closing {
  position: relative;
  min-height: clamp(680px, 92svh, 900px);
  align-items: stretch;
  padding: clamp(104px, 10.5vh, 138px) 0 clamp(38px, 5vw, 66px);
  overflow: hidden;
  background: #ffc700;
  color: #030303;
  border-top: 0;
  box-shadow: inset 0 98px 78px -56px rgba(0, 0, 0, 0.9);
}

body .closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 18%),
    radial-gradient(ellipse at 76% 18%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

body .closing .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(24px, 3.6vw, 54px) clamp(42px, 6vw, 98px);
  width: min(1420px, calc(100% - var(--pad) * 2));
  max-width: none;
  min-height: calc(clamp(680px, 92svh, 900px) - clamp(152px, 16vh, 204px));
}

body .closing .kicker {
  grid-column: 1 / -1;
  align-self: start;
  margin: 0;
  color: #030303;
  opacity: 1;
  font-weight: 800;
}

body .closing .kicker::before {
  width: clamp(26px, 2.8vw, 40px);
  height: clamp(26px, 2.8vw, 40px);
  flex-basis: clamp(26px, 2.8vw, 40px);
  background: #030303;
  opacity: 0.34;
}

body .closing-head {
  grid-column: 1 / -1;
  align-self: start;
  max-width: 15ch;
  margin: 0;
  color: #030303;
  font: 950 clamp(4.35rem, 8.25vw, 10.3rem)/0.78 var(--display);
  letter-spacing: -0.052em;
  text-transform: uppercase;
  text-shadow: none;
}

body .closing-head .serif-em,
html[lang="es"] body .closing-head .serif-em {
  display: block;
  max-width: 17ch;
  margin-top: 0.04em;
  color: #030303;
  font-family: "Newsreader", Georgia, serif;
  font-size: 0.46em;
  font-style: italic;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-transform: none;
  border: 0;
}

body .closing-body {
  grid-column: 2;
  align-self: end;
  max-width: 44ch;
  margin: 0;
  color: #030303;
  opacity: 1;
  font: 850 clamp(1.08rem, 1.34vw, 1.38rem)/1.24 var(--sans);
  letter-spacing: -0.03em;
}

body .closing-cta {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 5vw, 90px);
  margin: 0;
}

body .closing-tag {
  max-width: 28ch;
  margin: 0;
  color: #030303;
  opacity: 1;
  font: 800 clamp(0.62rem, 0.74vw, 0.74rem)/1.42 var(--mono);
  letter-spacing: 0.28em;
}

body .closing .cta-big {
  display: inline-flex;
  justify-content: center;
  min-width: min(500px, 38vw);
  padding: clamp(15px, 1.55vw, 22px) clamp(24px, 2.7vw, 46px);
  background: #030303;
  color: #ffc700;
  border: 0;
  box-shadow: 14px 14px 0 rgba(3, 3, 3, 0.2);
  font: 900 clamp(1.55rem, 2.38vw, 2.72rem)/0.92 var(--display);
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

body .closing .cta-big span {
  color: #ffc700;
}

body .closing .cta-big:hover {
  background: #030303;
  color: #ffc700;
  transform: translate(-3px, -3px);
}

body .closing .cta-big:hover span {
  color: #ffc700;
}

@media (max-width: 900px) {
  body .closing {
    min-height: auto;
    padding-top: clamp(96px, 22vw, 128px);
  }

  body .closing .wrap,
  body .closing-cta {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body .closing-head {
    font-size: clamp(3.7rem, 15.5vw, 6.2rem);
  }

  body .closing-body {
    grid-column: 1;
  }

  body .closing .cta-big {
    min-width: 0;
    width: 100%;
  }
}

/* Home real problem: same monochrome cinematic image treatment, no inner grey plate. */
body .problem::before {
  z-index: 0;
  background: url("../assets/img/rescue/home-premium/problem-times-square.webp") center 58% / cover no-repeat;
  filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.56);
  opacity: 1;
}

body .problem::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 52% 50%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.32) 24%, rgba(0, 0, 0, 0.44) 72%, #000000 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.16) 48%, rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

body .problem .wrap {
  position: relative;
  z-index: 2;
}

body .problem .wrap::after {
  content: none;
  display: none;
}

body .problem-verdict p {
  font-weight: 850;
  font-size: clamp(2.35rem, 4.05vw, 4.45rem);
  letter-spacing: -0.035em;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.86);
}

body .problem-verdict p span {
  font-weight: 600;
}

/* Home visual icons: keep existing SVGs visible; only invert marks on light/yellow panels. */
body .formats .kicker::before,
body .closing .kicker::before {
  content: "";
  display: inline-block;
  width: clamp(28px, 2.8vw, 40px);
  height: clamp(28px, 2.8vw, 40px);
  flex: 0 0 clamp(28px, 2.8vw, 40px);
  background: #030303;
  background-image: none;
  opacity: 1;
  filter: none;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

body .formats .kicker::before {
  -webkit-mask-image: url("../assets/brand/visual-icons/asset-05-field-vector.svg");
  mask-image: url("../assets/brand/visual-icons/asset-05-field-vector.svg");
}

body .closing .kicker::before {
  -webkit-mask-image: url("../assets/brand/visual-icons/asset-07-threshold-cut.svg");
  mask-image: url("../assets/brand/visual-icons/asset-07-threshold-cut.svg");
}

/* Field Manual closing: restore dark editorial contrast. */
body .use-field {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #000000;
  color: var(--to-white);
}

body .use-field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 68% 36%, rgba(255, 199, 0, 0.08), rgba(0, 0, 0, 0) 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, #000000 0%, rgba(0, 0, 0, 0.2) 38%, #000000 100%),
    url("../assets/img/curation/field-manual/FIELD_TEXTURE_01_bone_paper.jpg?v=assetfix1") center / clamp(720px, 80vw, 1240px) auto;
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(0.34);
  opacity: 1;
  pointer-events: none;
}

body .use-field .wrap {
  position: relative;
  z-index: 1;
}

body .use-field .use-grid {
  min-height: min(920px, 100svh);
  display: flex;
  align-items: center;
}

body .use-field .use-grid > div {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  grid-template-areas:
    "kicker kicker"
    "title copy"
    "title actions";
  gap: clamp(22px, 3vw, 48px) clamp(42px, 7vw, 112px);
  align-items: end;
}

body .use-field .kicker {
  grid-area: kicker;
  color: #ffc700;
  opacity: 1;
  margin-bottom: clamp(14px, 2.2vw, 30px);
}

body .use-field h2 {
  grid-area: title;
  max-width: 25ch;
  margin: 0;
  color: var(--to-white);
  font-size: clamp(2.25rem, 5.8vw, 6.6rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.92);
}

body .use-field .use-copy {
  grid-area: copy;
  max-width: 47ch;
  margin: 0;
  color: rgba(239, 235, 225, 0.86);
  font: italic clamp(1.08rem, 1.22vw, 1.32rem)/1.52 "Newsreader", Georgia, serif;
  letter-spacing: 0;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.9);
}

body .use-field .use-copy strong {
  color: #f8f7f2;
  font-weight: 700;
}

body .use-field .actions {
  grid-area: actions;
  margin-top: clamp(4px, 1.2vw, 14px);
}

body .use-field .cta-line {
  width: max-content;
  max-width: 100%;
  background: #ffc700;
  color: #030303;
  padding: clamp(14px, 1.55vw, 20px) clamp(20px, 2.5vw, 34px);
  box-shadow: 12px 12px 0 rgba(255, 199, 0, 0.16);
}

body .use-field .cta-line span {
  color: #030303;
}

@media (max-width: 980px) {
  body .use-field .use-grid {
    min-height: auto;
    align-items: flex-start;
  }

  body .use-field .use-grid > div {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "copy"
      "actions";
    gap: clamp(18px, 5vw, 34px);
  }

  body .use-field h2 {
    max-width: 17ch;
    font-size: clamp(2.15rem, 10vw, 4.9rem);
  }

  body .use-field .use-copy {
    max-width: 58ch;
  }
}

/* Field Manual field-reading: observation register, not generic cards. */
body .field-reading {
  background:
    linear-gradient(rgba(239, 235, 225, 0.965), rgba(239, 235, 225, 0.965)),
    url("../assets/img/curation/field-manual/FIELD_TEXTURE_01_bone_paper.jpg?v=assetfix1") center / clamp(760px, 82vw, 1280px) auto;
  color: #030303;
}

body .field-reading .section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(44px, 6.6vw, 104px);
  align-items: end;
  margin-bottom: clamp(54px, 7vw, 96px);
}

body .field-reading .h-display {
  max-width: 10.5ch;
  color: #030303;
  font-size: clamp(3.35rem, 6vw, 6.45rem);
  line-height: 0.88;
  letter-spacing: -0.042em;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

body .field-reading .serif-em {
  color: #030303;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

body .field-reading .section-intro {
  max-width: 40ch;
  margin: 0;
  color: rgba(3, 3, 3, 0.74);
  font: italic clamp(1.2rem, 1.56vw, 1.62rem)/1.5 "Newsreader", Georgia, serif;
  letter-spacing: 0;
}

body .field-reading .observation-scroll-container,
body .field-reading .observation-sticky {
  height: auto;
  min-height: 0;
  position: static;
  overflow: visible;
}

body .field-reading .observation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  transform: none;
  border-top: 1px solid rgba(3, 3, 3, 0.28);
  border-bottom: 1px solid rgba(3, 3, 3, 0.28);
}

body .field-reading .observation,
body .field-reading .observation:nth-child(n) {
  display: grid;
  grid-template-columns: minmax(44px, 0.16fr) minmax(230px, 0.58fr) minmax(0, 1.18fr);
  gap: clamp(18px, 3.2vw, 58px);
  align-items: baseline;
  min-height: 0;
  margin: 0;
  padding: clamp(25px, 3.1vw, 44px) 0;
  border: 0;
  border-top: 1px solid rgba(3, 3, 3, 0.18);
  background: transparent;
  color: #030303;
  box-shadow: none;
}

body .field-reading .observation:first-child {
  border-top: 0;
}

body .field-reading .observation-no {
  color: #ffc700;
  font: 800 clamp(0.95rem, 1.28vw, 1.22rem)/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

body .field-reading .observation h3 {
  margin: 0;
  color: #030303;
  font: 880 clamp(1.55rem, 2.55vw, 2.85rem)/0.94 var(--display);
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

body .field-reading .observation p {
  max-width: 58ch;
  margin: 0;
  color: rgba(3, 3, 3, 0.72);
  font: 500 clamp(1rem, 1.18vw, 1.16rem)/1.58 var(--sans);
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  body .field-reading .section-head,
  body .field-reading .observation,
  body .field-reading .observation:nth-child(n) {
    grid-template-columns: 1fr;
  }

  body .field-reading .section-intro {
    max-width: 100%;
  }
}

/* Field Manual limits: operating register with clear hierarchy. */
body .limits {
  background: #000000;
  color: var(--to-white);
}

body .limits .wrap {
  max-width: min(1180px, calc(100% - var(--pad) * 2));
}

body .limits .kicker {
  color: #ffc700;
}

body .limits .h-display {
  max-width: 12.5ch;
  color: var(--to-white);
  text-shadow: none;
}

body .limits .serif-em {
  color: var(--to-bone);
  text-shadow: none;
}

body .limits .limits-intro {
  max-width: 44ch;
  margin-top: clamp(22px, 2.8vw, 38px);
  color: rgba(239, 235, 225, 0.72);
  font: italic clamp(1.14rem, 1.42vw, 1.42rem)/1.5 "Newsreader", Georgia, serif;
  letter-spacing: 0;
}

body .limits .limit-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(54px, 7vw, 100px);
  border-top: 1px solid rgba(239, 235, 225, 0.22);
  border-bottom: 1px solid rgba(239, 235, 225, 0.22);
}

body .limits .limit,
body .limits .limit:nth-child(n) {
  position: relative;
  top: auto;
  z-index: auto;
  display: grid;
  grid-template-columns: minmax(42px, 0.16fr) minmax(250px, 0.58fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3.4vw, 64px);
  align-items: baseline;
  min-height: 0;
  margin: 0;
  padding: clamp(26px, 3.2vw, 46px) 0;
  border: 0;
  border-top: 1px solid rgba(239, 235, 225, 0.15);
  background: transparent;
  box-shadow: none;
}

body .limits .limit:first-child {
  border-top: 0;
}

body .limits .limit-no {
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffc700;
  box-shadow: none;
  font: 800 clamp(0.95rem, 1.25vw, 1.22rem)/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
}

body .limits .limit h3 {
  margin: 0;
  max-width: 11ch;
  color: #f8f7f2;
  font: 880 clamp(1.55rem, 2.65vw, 3rem)/0.92 var(--display);
  letter-spacing: -0.038em;
  text-transform: uppercase;
  text-shadow: none;
}

body .limits .limit p {
  max-width: 62ch;
  margin: 0;
  color: rgba(239, 235, 225, 0.74);
  font: 500 clamp(1rem, 1.18vw, 1.16rem)/1.58 var(--sans);
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  body .limits .limit,
  body .limits .limit:nth-child(n) {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body .limits .limit h3 {
    max-width: 100%;
  }
}

/* Operating Map forms: make the deciding sentence read as a black principle. */
body .build-taxonomy .section-intro b {
  display: block;
  margin-top: clamp(14px, 1.8vw, 22px);
  color: #030303;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.55vw, 1.58rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

/* Operating Map logic: remove the full-width rule that flashes between steps. */
body .operating-logic .logic-scroll-container,
body .operating-logic .logic-sticky,
body .operating-logic .logic-route,
body .operating-logic .logic-step {
  border: 0;
  box-shadow: none;
  background-image: none;
}

body .operating-logic .logic-route::before,
body .operating-logic .logic-route::after,
body .operating-logic .logic-step::before,
body .operating-logic .logic-step::after,
body .operating-logic .logic-text::before,
body .operating-logic .logic-text::after {
  content: none;
  display: none;
}

body .operating-logic .logic-step {
  overflow: visible;
}

/* Non-home pages: use the real image layer once, visible, with a controlled veil. */
body .file-cover::before,
body .operating-cover::before,
body .manual-cover::before,
body .pressure-test::before,
body .record-status::before {
  display: none;
}

body .file-cover > .section-bg,
body .operating-cover > .section-bg,
body .manual-cover > .section-bg,
body .pressure-test > .section-bg,
body .record-status > .section-bg,
body .engagements > .section-bg {
  z-index: 0;
  display: block;
  visibility: visible;
  opacity: 1;
}

body .section-bg--dossier-cover {
  filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.88);
}

body .section-bg--operating-cover {
  filter: grayscale(1) saturate(0) contrast(1.15) brightness(0.9);
}

body .section-bg--manual-cover {
  filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.9);
}

body .section-bg--pressure {
  filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.86);
}

body .section-bg--record,
body .section-bg--engagements {
  opacity: 0.62;
  filter: grayscale(1) saturate(0) contrast(1.15) brightness(0.72);
}

body .file-cover::after,
body .operating-cover::after,
body .manual-cover::after,
body .pressure-test::after {
  opacity: 0.36;
}

/* ======================================================================
   V5 IMAGE GRADE LOCK — align Dossier / Operating Map / Field Manual
   with Home's noir editorial treatment.
   The non-home pages keep their own compositions, but the image language
   returns to the same black / bone / signal system: grayscale, lower
   brightness, stronger veil, no warm/blue standalone image color.
   ====================================================================== */

body .file-cover > .section-bg,
body .operating-cover > .section-bg,
body .manual-cover > .section-bg,
body .pressure-test > .section-bg {
  opacity: 0.88 !important;
}

body .section-bg--dossier-cover,
body .section-bg--operating-cover,
body .section-bg--manual-cover,
body .section-bg--pressure {
  filter: grayscale(1) saturate(0) contrast(1.14) brightness(0.58) !important;
}

body .section-bg--record,
body .section-bg--engagements {
  opacity: 0.48 !important;
  filter: grayscale(1) saturate(0) contrast(1.16) brightness(0.48) !important;
}

body .file-cover::after,
body .operating-cover::after,
body .manual-cover::after {
  opacity: 0.92 !important;
  background:
    radial-gradient(ellipse at 24% 48%, rgba(3, 3, 3, 0.22) 0 16%, rgba(3, 3, 3, 0.08) 42%, rgba(3, 3, 3, 0.2) 68%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.94) 0%, rgba(3, 3, 3, 0.54) 54%, rgba(3, 3, 3, 0.88) 100%),
    linear-gradient(180deg, #030303 0%, rgba(3, 3, 3, 0.14) 28%, rgba(3, 3, 3, 0.34) 70%, #030303 100%) !important;
}

body .pressure-test::after {
  opacity: 0.9 !important;
  background:
    radial-gradient(ellipse at 58% 48%, rgba(3, 3, 3, 0.08), rgba(3, 3, 3, 0.72) 80%),
    linear-gradient(90deg, rgba(3, 3, 3, 0.82), rgba(3, 3, 3, 0.34) 58%, rgba(3, 3, 3, 0.74)),
    linear-gradient(180deg, #030303 0%, rgba(3, 3, 3, 0.16) 34%, rgba(3, 3, 3, 0.44) 76%, #030303 100%) !important;
}

/* Interior editorial image plates: no sepia/blue cast, closer to Home. */
.evidence-image {
  isolation: isolate;
}

.evidence-image img img {
  filter: grayscale(1) saturate(0) contrast(1.12) brightness(0.62) !important;
}

.evidence-image::after::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 3, 3, 0.78), rgba(3, 3, 3, 0.16) 48%, rgba(3, 3, 3, 0.66)),
    linear-gradient(180deg, #030303 0%, rgba(3, 3, 3, 0.08) 26%, rgba(3, 3, 3, 0.28) 70%, #030303 100%) !important;
}

.evidence-caption .ps-tag .ps-cap {
  position: absolute;
  z-index: 3;
}


/* ======================================================================
   V6 LAUNCH IMAGE LOCK
   - Dossier hero uses darkroom negatives as the archive / origin image.
   - Field Manual hero uses abstract haze / light without visible floor.
   - Operating Map Engagement Models carries no photographic layer.
   - Removed the Operating Map full-bleed poster shot.
   ====================================================================== */
body .section-bg--dossier-cover {
  object-position: center 46% !important;
  opacity: 0.86 !important;
  filter: grayscale(1) saturate(0) contrast(1.18) brightness(0.5) !important;
}
body .section-bg--manual-cover {
  object-position: center 45% !important;
  opacity: 0.9 !important;
  filter: grayscale(1) saturate(0) contrast(1.14) brightness(0.52) !important;
}
body .engagements::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
body .engagements > .section-bg,
body .section-bg--engagements {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
body .engagements {
  background: #000000 !important;
}


/* LAUNCH PALETTE LOCK v8: black / bone / warm white / signal yellow only. */
:root {
  --white: #f8f7f2;
  --bone: #efebe1;
  --paper: #efebe1;
  --muted: rgba(239, 235, 225, 0.72);
  --soft: rgba(239, 235, 225, 0.48);
  --line: rgba(239, 235, 225, 0.16);
  --mark: #FFC700;
  --signal: var(--mark);
  --decision: var(--mark);
}

@media (hover: hover) and (pointer: fine) {
  body .limits .limit:hover h3,
  body .limits .limit:focus-within h3,
  body .limits .limit:hover .limit-no,
  body .limits .limit:focus-within .limit-no,
  body .field-reading .observation:hover h3,
  body .field-reading .observation:focus-within h3,
  body .field-reading .observation:hover .observation-no,
  body .field-reading .observation:focus-within .observation-no {
    color: var(--mark) !important;
  }

  body .field-reading .observation:hover,
  body .field-reading .observation:focus-within {
    border-color: rgba(255, 199, 0, 0.55) !important;
  }
}


/* ===== V9 MOBILE POLISH: scroll grammar + mobile progress =====
   Palette locked: black / bone / warm white / signal yellow only. */
.progress {
  display: none;
}

@media (max-width: 860px) {
  body .progress {
    display: block !important;
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--mark);
    z-index: 9999;
    opacity: 0.96;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    box-shadow: 0 0 18px rgba(255, 199, 0, 0.16);
  }
}

/* Operating Map: keep the finger-operated sequence, but make it tighter on mobile. */
@media (max-width: 760px) {
  .operating-logic {
    padding-top: clamp(72px, 18vw, 104px);
    padding-bottom: clamp(70px, 18vw, 110px);
  }

  .logic-scroll-container {
    height: 235svh;
    margin-top: clamp(42px, 12vw, 70px);
    margin-bottom: clamp(34px, 10vw, 64px);
  }

  .logic-sticky {
    height: 100svh;
    min-height: 540px;
    align-items: center;
    padding: 72px 0 54px;
  }

  .logic-no {
    font-size: clamp(4.8rem, 24vw, 7.2rem);
    color: rgba(248, 247, 242, 0.10);
    margin-bottom: 10px;
  }

  .logic-step h3 {
    font-size: clamp(3.1rem, 17vw, 5.7rem);
    line-height: 0.88;
    margin-bottom: 16px;
  }

  .logic-step p {
    width: min(31ch, 86vw);
    font-size: clamp(0.98rem, 3.7vw, 1.1rem);
    line-height: 1.54;
  }

  .logic-equation {
    margin-top: clamp(28px, 10vw, 48px);
  }
}

/* V10 — Street discipline + softer field containers.
   Keeps the system brutal/editorial, but removes excess ruling and adds a little more field/calle texture.
   Palette remains: black / bone / warm white / signal yellow. */
:root {
  --to-corner: clamp(8px, 0.9vw, 14px);
  --to-corner-soft: clamp(10px, 1.2vw, 18px);
  --line: rgba(239, 235, 225, 0.10);
  --paper-line: rgba(10, 10, 10, 0.13);
}

/* Less ruled, more built: lower the line pressure across editorial cards/records. */
.t-block,
.e-piece,
.form-record,
.limit,
.observation,
.svc-way,
.instrument-part,
.start-sheet,
.decision-output,
.opening-card,
.diag-card {
  border-color: rgba(239, 235, 225, 0.10);
}

/* Paper-side lines use ink, not random grays. */
.svc-waysin-grid,
.svc-way,
.build-taxonomy .form-record,
.how-to-start .start-sheet,
.field-reading .observation {
  border-color: rgba(10, 10, 10, 0.13) !important;
}

/* Slightly soften containers. Not app-rounded, just field-worn. */
.svc-waysin-grid,
.svc-way,
.instrument-part,
.start-sheet,
.decision-output,
.limit,
.observation,
.t-block,
.e-piece,
.first-card,
.form-card,
.diagnostic-slip,
.evidence-image img,
.record-status .cta-line,
.cta-line {
  border-radius: var(--to-corner) !important;
}

.svc-waysin-grid {
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.10);
}

.svc-way,
.instrument-part,
.start-sheet,
.decision-output,
.limit,
.observation,
.t-block,
.e-piece {
  overflow: clip;
}

@supports not (overflow: clip) {
  .svc-way,
  .instrument-part,
  .start-sheet,
  .decision-output,
  .limit,
  .observation,
  .t-block,
  .e-piece { overflow: hidden; }
}

/* Street / field atmosphere: subtle, not decorative. */
.operating-logic,
.limits,
.field-code,
.engagements {
  position: relative;
  isolation: isolate;
}

.operating-logic::before,
.limits::after,
.field-code::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.74), rgba(0,0,0,0.92)),
    url("../assets/img/rescue/index-theforesight/04_transition__culture-street.jpg") center / cover no-repeat;
  filter: grayscale(1) contrast(1.2) brightness(0.52);
  opacity: 0.13;
  mix-blend-mode: screen;
}

.operating-logic .wrap,
.limits .wrap,
.field-code .wrap,
.engagements .wrap {
  position: relative;
  z-index: 1;
}

/* The office/brain stays, but the surface should feel touched by real conditions. */
.logic-step .logic-no,
.limit-no,
.observation-no {
  text-shadow: 0 10px 32px rgba(0,0,0,0.35);
}

/* Card hover: one signal action, no new palette. */
@media (hover: hover) and (pointer: fine) {
  .svc-way,
  .instrument-part,
  .start-sheet,
  .decision-output,
  .t-block,
  .e-piece {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 180ms ease;
  }

  .svc-way:hover,
  .instrument-part:hover,
  .t-block:hover,
  .e-piece:hover {
    border-color: rgba(255, 199, 0, 0.32) !important;
    transform: translateY(-2px);
  }
}

/* Mobile: soften stacked cards and reduce ruler density. */
@media (max-width: 760px) {
  .limit {
    border-radius: var(--to-corner-soft) !important;
    border: 1px solid rgba(239, 235, 225, 0.10) !important;
    box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.28), 0 18px 42px rgba(0, 0, 0, 0.22) !important;
  }

  .limit::before {
    left: clamp(20px, 6vw, 30px) !important;
    top: 0;
    height: 2px;
    border-radius: 0 0 2px 2px;
  }

  .field-reading .observation {
    border: 1px solid rgba(10, 10, 10, 0.12) !important;
    border-radius: var(--to-corner-soft) !important;
    padding: clamp(22px, 6.4vw, 32px) clamp(18px, 5.4vw, 28px) !important;
    margin-bottom: 14px;
    background: rgba(239, 235, 225, 0.18);
  }

  .svc-waysin-grid {
    border-radius: var(--to-corner-soft) !important;
  }

  .svc-way {
    border-top-color: rgba(10, 10, 10, 0.12) !important;
  }
}
