/* October 05 review refinements. Loaded last so scoped fixes do not disturb
   the restored case-study layouts. */

/* Home capabilities and About career story use their own lead image as a
   restrained atmospheric field, matching the Music validation treatment. */
body[data-page="home"] .home-next-panel > .capabilities-section,
body[data-page="about"] .about-story {
  position: relative;
  isolation: isolate;
}

/* Keep each image-driven atmosphere inside its own screen. The filter used
   to extend into the Home hero / Selected Work and the About photography
   header because the source layer deliberately overscanned vertically. */
body[data-page="home"] .home-next-panel,
body[data-page="about"] .about-story {
  overflow: clip;
}

body[data-page="home"] .home-next-panel > .capabilities-section { background: transparent; }

body[data-page="home"] .home-next-panel > .capabilities-section::before,
body[data-page="about"] .about-story::before {
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
  clip-path: inset(0);
  content: "";
  filter: blur(68px) saturate(.92) brightness(.28);
  transform: translateX(-50%);
}



body[data-page="about"] .about-story::before {
  background-image: url('../images/about/display/profile-2026-ambient.webp');
  filter: blur(68px) saturate(.88) brightness(.24);
}

body[data-page="home"] .home-next-panel > .capabilities-section::after,
body[data-page="about"] .about-story::after {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: rgba(7,8,11,.64);
  content: "";
  pointer-events: none;
}

/* Adjacent screens keep their original solid surfaces even while the
   preceding atmospheric section is composited by the browser. */
body[data-page="home"] .selected-work,
body[data-page="about"] .about-photo {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

body[data-page="home"] .selected-work { background: var(--bg); }

/* Let the atmospheric field continue beneath the Home capability captions.
   Sticky positioning and the stack transforms remain owned by home-hero.css. */
body[data-page="home"] .capability-panel,
body[data-page="home"] .capability-panel:nth-child(n) {
  background: transparent;
}

/* The panels stay visually transparent, but their compact caption rail needs
   an opaque local surface while cards overlap in the restored sticky stack.
   Using the existing page color prevents lower captions from showing through
   without changing the imagery, proportions or card styling. */
body[data-page="home"] .capability-panel__copy {
  background: var(--bg);
}

/* The final card no longer overlaps another caption rail, so let its copy sit
   directly on the continuous capabilities background instead of introducing
   a separate black band beneath the image. */
body[data-page="home"] .capability-panel:nth-child(4) .capability-panel__copy {
  background: transparent;
}

/* Number / year labels share the visual centreline of their heading. The
   supporting paragraph remains on the following line in the copy column. */
.source-case--music .source-point-list li,
body.wallet-keynote .wallet-k-list li,
.fiture-page .fiture-facts li {
  align-items: start;
}

.source-case--music .source-point-list strong,
body.wallet-keynote .wallet-k-list strong {
  display: block;
  line-height: 1.4;
}

.source-case--music .source-point-list li > span,
body.wallet-keynote .wallet-k-list li > span {
  display: flex;
  min-height: 1.4rem;
  align-items: center;
  padding-top: 0;
  line-height: 1;
}

.source-case--music .music-principle-notes article {
  grid-template-rows: auto auto;
  align-items: start;
}

.source-case--music .music-principle-notes span {
  grid-row: 1;
  align-self: center;
  line-height: 1;
}

.source-case--music .music-principle-notes h3 { line-height: 1.35; }

.fiture-page .fiture-facts strong { line-height: 1.25; }
.fiture-page .fiture-facts li > span {
  display: flex;
  min-height: clamp(1.44rem, 2.06vw, 1.94rem);
  align-items: center;
  padding-top: 0;
  line-height: 1;
}

body[data-page="about"] .career-item { align-items: start; }
body[data-page="about"] .career-item h2 { line-height: 1.1; }
body[data-page="about"] .career-item time {
  align-self: start;
  padding-top: clamp(.55rem, .8vw, .95rem);
  line-height: 1;
}

/* 01 — Restore a legible mask to every project hero. */
.source-case--music .source-hero--music::after,
.source-case--narom .source-hero--narom::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background:
    linear-gradient(90deg, rgba(3,4,9,.62) 0%, rgba(3,4,9,.24) 50%, rgba(3,4,9,.08) 78%),
    linear-gradient(0deg, rgba(3,4,9,.6) 0%, transparent 58%);
  content: "";
  pointer-events: none;
}

.source-case--music .source-hero__overlay,
.source-case--narom .source-hero__overlay { position: relative; z-index: 2; }

body.wallet-keynote .wallet-k-hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(2,3,8,.68) 0%, rgba(2,3,8,.22) 58%, rgba(2,3,8,.08) 82%),
    linear-gradient(0deg, rgba(2,3,8,.62) 0%, transparent 58%);
}

body.wallet-keynote .wallet-k-hero__content { position: relative; z-index: 2; }

.fiture-page .fiture-hero__veil {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3,4,9,.58) 0%, rgba(3,4,9,.2) 55%, rgba(3,4,9,.08) 80%),
    linear-gradient(0deg, rgba(3,4,9,.62) 0%, transparent 58%);
}

.fiture-page .fiture-hero__inner { position: relative; z-index: 2; }

/* 02 — Keep Wallet's personalization field full size; reduce only its contents. */
body.wallet-keynote #personalization .wallet-k-media--mixed-3 {
  display: block;
  width: 100%;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  background: rgba(255,255,255,.34);
}

body.wallet-keynote #personalization .wallet-k-media__inner {
  display: grid;
  width: 70%;
  margin-inline: auto;
  grid-template-columns: minmax(0, .805fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

body.wallet-keynote #personalization .wallet-k-media__inner figure { padding: 0; background: transparent; }
body.wallet-keynote #personalization .wallet-k-media__inner figure:first-child { grid-column: 1; grid-row: 1 / span 2; }
body.wallet-keynote #personalization .wallet-k-media__inner figure:nth-child(2),
body.wallet-keynote #personalization .wallet-k-media__inner figure:nth-child(3) { grid-column: 2; }

/* 03–04 — Keep all six concept circles visible and anchor captions to images. */
.source-case--music .music-concept-card,
.source-case--music .music-concept-card--color .source-concept-art { overflow: visible !important; }

.source-case--music .music-concept-colors {
  width: min(100%, 13.25rem);
  padding-inline: .45rem;
  overflow: visible;
}

.source-case--music .music-concept-colors span {
  flex-basis: clamp(1.75rem, 2.35vw, 2.35rem);
  margin-left: -.32rem;
}

.source-case--music :is(.music-player-before, .music-player-after) figure,
.source-case--music .music-player-after { align-items: stretch; }

.source-case--music :is(.music-player-before, .music-player-after) figcaption {
  width: 100%;
  text-align: left;
}

.source-case--music .music-player-before .image-frame,
.source-case--music .music-player-after .image-frame { justify-content: flex-start; }

.source-case--music .music-player-before img,
.source-case--music .music-player-after img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

/* 05 — One spacing and typography system for Music, Wallet and FITURE summaries. */
.source-case--music .source-takeaway,
body.wallet-keynote .wallet-k-section--takeaway,
.fiture-page .fiture-section--role { padding-block: clamp(5rem, 8vw, 8rem); }

.source-case--music .source-takeaway-grid article,
body.wallet-keynote .wallet-k-takeaway-grid li,
.fiture-page .fiture-role-grid article {
  display: flex;
  min-height: clamp(24rem, 30vw, 29rem);
  padding: clamp(1.5rem, 2.4vw, 2rem);
  flex-direction: column;
  justify-content: space-between;
}

.source-case--music .music-takeaway-icon,
body.wallet-keynote .wallet-k-takeaway-icon,
.fiture-page .fiture-role-icon {
  width: clamp(4.75rem, 7vw, 7rem);
  margin-block: auto;
  align-self: flex-start;
  opacity: .9;
}

.source-case--music .source-takeaway-grid h2,
body.wallet-keynote .wallet-k-takeaway-grid strong,
.fiture-page .fiture-role-grid h3 {
  max-width: 12ch;
  margin: 0 0 .9rem;
  font-size: clamp(1.85rem, 2.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.source-case--music .source-takeaway-grid p,
.fiture-page .fiture-role-grid p {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: .92rem;
  letter-spacing: 0;
  line-height: 1.55;
}

/* 06 — Carry the same atmospheric Gaussian treatment into Wallet and Narom. */
body.wallet-keynote #final,
.narom-keynote .narom-k-section--digital {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #f2f0eb;
  background: #0a0b0e;
}

body.wallet-keynote #final::before,
.narom-keynote .narom-k-section--digital::before {
  position: absolute;
  z-index: 0;
  inset: -5rem;
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(62px) saturate(.82) brightness(.26);
  transform: scale(1.12);
}

body.wallet-keynote #final::before {
  background-image: url('../images/wallet/display/final-experience-ambient.webp');
  filter: blur(64px) saturate(1.25) brightness(.38);
}

.narom-keynote .narom-k-section--digital::before {
  background-image: url('../images/narom/display/digital-product-ambient.webp');
  filter: blur(64px) saturate(1.12) brightness(.36);
}

body.wallet-keynote #final::after,
.narom-keynote .narom-k-section--digital::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(8,9,13,.54);
  content: "";
}

body.wallet-keynote #final > .wallet-k-content,
.narom-keynote .narom-k-section--digital > .wallet-k-content { position: relative; z-index: 2; }

body.wallet-keynote #final .wallet-k-final { background: transparent; }
body.wallet-keynote #final .wallet-k-heading .eyebrow { color: rgba(255,255,255,.62); }

/* 07 — Digital Product keeps Narom's report-style heading rhythm. */
.narom-keynote .narom-k-section--digital .wallet-k-heading > p:last-child {
  margin-top: 1.7rem;
  color: rgba(255,255,255,.62);
  font-size: 1.08rem;
}

.narom-keynote .narom-digital-points { border-top: 0; }

.narom-keynote .narom-digital-points li {
  display: block;
  min-height: 9rem;
  padding: 1.25rem 1rem 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,.52);
  text-align: left;
}

.narom-keynote .narom-digital-points li + li { padding-left: 1.25rem; }
.narom-keynote .narom-digital-points span { display: block; }
.narom-keynote .narom-digital-points strong {
  display: block;
  max-width: 18rem;
  margin-top: 2rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}

.narom-keynote .narom-process-line {
  max-width: none;
  margin-top: 2.5rem;
  padding: 0;
  color: rgba(255,255,255,.66);
  border-left: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -.015em;
  text-align: left;
}

/* 03–04 — Center the copy groups against the adjacent Music evidence. */
@media (min-width: 761px) {
  .source-case--music .music-problem-layout { align-items: center; }
  .source-case--music .music-problem-layout > .source-point-list {
    width: 100%;
    align-self: center;
  }
  .source-case--music .music-player-restructure { align-items: center; }
  .source-case--music .music-player-before,
  .source-case--music .music-player-after { align-self: center; }
}

@media (min-width: 981px) {
  /* Increase the paired references by another 20%, reduce the final state by
     20%, and move the transition arrow onto the 01/02 → 03 caption axis. */
  .source-case--music .music-player-restructure {
    grid-template-columns: minmax(0, 1.236fr) auto minmax(15rem, .728fr);
    align-items: start;
  }

  .source-case--music .music-player-transition {
    align-self: start;
    margin-top: .05rem;
    min-height: 1.4rem;
    line-height: 1;
  }

  .source-case--music .music-player-before,
  .source-case--music .music-player-after { align-self: start; }

  .source-case--music .music-player-after {
    width: 100%;
    justify-self: stretch;
  }

  .source-case--music .music-player-before .image-frame,
  .source-case--music .music-player-after .image-frame { justify-content: center; }
}

/* 08 — Neutral Music panels use one pure-white five-percent value. */
.source-case--music { --music-review-panel: rgba(255,255,255,.05); }

.source-case--music :is(
  .music-context-layout .source-media-card,
  .music-problem-layout,
  .music-player-restructure,
  .music-concept-board,
  .music-color-problem-stage,
  .music-research-comparison,
  .music-system-pair figure
) { background: rgba(255,255,255,.05); }

.source-case--music .music-concept-board .music-concept-card,
.source-case--music .music-concept-card figcaption { background: transparent; }

/* The two context PNGs contain transparent rounded top corners. A white
   carrier removes the exposed dark corner blocks without altering the art. */
.source-case--music .music-context-layout .source-media-card--phone {
  background: #fff;
}

@media (max-width: 760px) {
  body.wallet-keynote #personalization .wallet-k-media__inner {
    width: 100%;
    grid-template-columns: 1fr;
  }

  body.wallet-keynote #personalization .wallet-k-media__inner figure:first-child,
  body.wallet-keynote #personalization .wallet-k-media__inner figure:nth-child(2),
  body.wallet-keynote #personalization .wallet-k-media__inner figure:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
  }

  .source-case--music .source-takeaway-grid article,
  body.wallet-keynote .wallet-k-takeaway-grid li,
  .fiture-page .fiture-role-grid article { min-height: 18rem; }

  .narom-keynote .narom-digital-points { grid-template-columns: 1fr; }
  .narom-keynote .narom-digital-points li,
  .narom-keynote .narom-digital-points li + li { min-height: 7rem; padding-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
}
