/* Final screenshot review: scoped composition and navigation corrections. */
body[data-page="about"] .about-story {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-block: clamp(8rem, 11vw, 11rem) clamp(4rem, 7vw, 7rem);
}
body[data-page="about"] .about-headshot { position: static; grid-column: 1; grid-row: auto; width: 100%; align-self: center; margin: 0; }
body[data-page="about"] .about-headshot img { display: block; width: 100%; height: auto; aspect-ratio: 1199 / 1312; object-fit: contain; }
body[data-page="about"] .about-narrative { display: block; min-width: 0; }
body[data-page="about"] .about-narrative > .eyebrow { margin: 0 0 1.8rem; }
body[data-page="about"] .about-narrative h1 { font-size: clamp(2.5rem, 4.5vw, 4.8rem); line-height: 1.08; margin: 0; max-width: 46rem; }
body[data-page="about"] .about-narrative > p:not(.eyebrow) { max-width: 40rem; margin: 2rem 0 0; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.7; }
.site-header .brand-mark { width: 1.5rem; aspect-ratio: 1; border-radius: 0; overflow: hidden; background: #3472bf; }
.site-header .brand-mark .brand-avatar { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.55); transform-origin: 50% 42%; }
body[data-page="home"] .selected-work { padding-bottom: 0; }
body[data-page="home"] .capabilities-section .section-intro { min-height: 0; padding-top: 0; }
body[data-page="home"] .capabilities-stage-section { padding-top: clamp(4rem, 7vw, 7rem); }
body[data-page="about"] #earlier-work-title { font-size: .85rem; letter-spacing: .1em; line-height: 1.5; max-width: none; text-transform: uppercase; }
.experience-mark img { width: 36px; height: 26px; object-fit: contain; }
.experience-mark svg { width: 23px; height: 23px; }
.experience-mark--wordmark { border-color: #343438; background: #1b1b1e; }
@media(max-width: 760px) {
  html, body { background-color: #080808; }
  body::before, body .site-header[data-header]::before { content: none; }

  body[data-page="home"] .home-hero__media { transform: none !important; filter: none !important; }
  
  body[data-page="home"] .home-hero__media > img,
  body[data-page="home"] .home-hero__media.is-liquid-ready > img { filter: none; }
  body[data-page="home"] .capabilities-stage-section { padding-top: 3.5rem; }
  body[data-page="about"] .about-story { grid-template-columns: minmax(0, .6fr) minmax(0, 1fr); gap: .8rem 1.1rem; padding-block: calc(var(--mobile-header-height) + 2rem) 3rem; }
  body[data-page="about"] .about-headshot { grid-row: 1 / 3; }
  body[data-page="about"] .about-narrative { display: contents; }
  body[data-page="about"] .about-narrative > .eyebrow { grid-column: 2; align-self: end; margin: 0; font-size: .6rem; }
  body[data-page="about"] .about-narrative h1 { grid-column: 2; align-self: start; font-size: clamp(1.55rem, 5.8vw, 2.4rem); line-height: 1.13; margin: 0; }
  body[data-page="about"] .about-narrative > p:not(.eyebrow) { grid-column: 1 / -1; margin-top: .8rem; font-size: .95rem; line-height: 1.7; }
}
@media(max-width: 820px) {
  .source-case--music .music-context-layout .source-media-card--phone { height: auto; aspect-ratio: 1.4; overflow: hidden; }
  .source-case--music .music-context-layout .source-media-card--phone .image-frame { height: 100%; overflow: hidden; }
  .source-case--music .music-context-layout .source-media-card--phone img { width: 100%; height: auto; max-height: none; object-fit: cover; object-position: top; }
  #journey .fiture-story-grid { align-items: stretch; gap: 1.3rem .7rem; background: none; padding-bottom: .75rem; }
  #journey .fiture-story-grid .fiture-journey__label { margin-bottom: 1.25rem !important; }
  #journey .fiture-story-grid .fiture-ui-stage::before { display: block; content: ''; position: absolute; z-index: -1; inset: -.75rem -.35rem; background: #191a1f; }
  #journey .fiture-story-grid .fiture-journey__card:first-child .fiture-ui-stage::before { left: -.75rem; }
  #journey .fiture-story-grid .fiture-journey__card:last-child .fiture-ui-stage::before { right: -.75rem; }
  #journey .fiture-story-grid .fiture-journey__card { grid-template-rows: subgrid; grid-row: span 2; gap: 1.3rem; align-items: start; }
  #journey .fiture-story-grid .fiture-journey__copy { min-height: 0; padding: .85rem 0 0; }
  #journey .fiture-story-grid .fiture-ui-stage { width: 100%; margin: 0; align-self: start; }
  #journey .journey-screen { width: 100%; max-width: none; overflow: hidden; }
  #journey .journey-screen img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
  #journey .fiture-journey__card:last-child .journey-screen img { transform: scale(1.12); transform-origin: 50% 35%; }
}
@media(max-width: 650px) {
  .music-editorial .me-concept-scene { column-gap: .8rem; }
  .music-editorial .me-cover { grid-column: 1 / 8; }
  .music-editorial .me-cover-window { aspect-ratio: .74; }
  #concept.music-editorial .me-color-study { grid-column: 1 / 8; grid-row: 3; margin-top: 1rem; }
  #concept.music-editorial .me-result-caption { grid-column: 8 / 13; grid-row: 3; margin-top: 1rem; }
  #concept.music-editorial .me-color-study figcaption { display: block; margin-bottom: .6rem; }
  #concept.music-editorial .me-color-study figcaption > span:last-child { display: none; }
  #concept.music-editorial .me-color-heading { font-size: .57rem; letter-spacing: .04em; }
  #concept.music-editorial .me-color-samples { height: 2.2rem; gap: .45rem; }
  #concept.music-editorial .me-result-caption strong { font-size: .9rem; }
}
@media(max-width: 650px) {
  .music-editorial .me-cover-window { aspect-ratio: 1.23; }
  .music-editorial .me-concept-player { grid-row: 2 / 4; }
  #concept.music-editorial .me-color-study { align-self: start; margin-top: .8rem; }
  #concept.music-editorial .me-result-caption { grid-column: 1 / -1; grid-row: 4; margin-top: 1.4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: .3rem 1rem; }
  #concept.music-editorial .me-result-caption strong { font-size: 1rem; }
  #concept.music-editorial .me-result-caption > span:last-child { grid-column: 2; }
}

/* A real fixed, opaque edge element is sampled reliably by Safari chrome.
   Do not replace with an oversized pseudo-element or a blurred backdrop. */
.mobile-browser-chrome { display: none; }
@media (max-width: 760px) {
  .mobile-browser-chrome {
    display: block; position: fixed; z-index: 1010; top: 0; left: 0;
    width: 100%; height: max(16px, env(safe-area-inset-top, 0px));
    background: #080808; opacity: 1; pointer-events: auto;
  }
  body .site-header[data-header] { background: #080808; background-image: none; }
  body::after { top: var(--mobile-header-height); z-index: 79; }
  .reading-progress { top: calc(var(--mobile-header-height) - 2px); }

}

/* Final navigation and identity consistency. */
body .site-header .brand-mark { border-radius: 5px; }
body.narom-keynote { --narom-sans: var(--font); --narom-condensed: var(--font); --narom-mono: var(--font); }
body[data-page="about"] .experience-section { padding-top: clamp(2rem, 4vw, 3.5rem); }
body.case-page :is(.source-back, .back-link) { color: #fff !important; }
@media(max-width:760px) {
 
 body.nav-open .site-header[data-header] { background:#080808 !important; }
 body.case-page :is(.source-back, .back-link) { color:#fff !important; }
 .source-case--music .source-hero--music::after, .source-case--narom .source-hero--narom::after { background:none; }

 body.case-page :is(.source-hero__copy,.wallet-k-hero__title,.fiture-hero__copy) { background:none; text-shadow:0 1px 12px rgba(0,0,0,.4); }
 body.case-page .next-case { padding-block:2.5rem; min-height:0; }
 body.case-page .site-footer { padding-block:2rem; min-height:0; }
}


/* Mobile Home: one full-screen photographic opening, with the compact navigation. */
@media (max-width: 760px) {
  :root { --mobile-header-height: calc(4.5rem + max(16px, env(safe-area-inset-top, 0px))); }
  body .site-header[data-header], body .site-header[data-header].is-scrolled {
    padding-top: calc(max(16px, env(safe-area-inset-top, 0px)) + 8px);
    padding-bottom: 8px;
  }
  body[data-page="home"] .site-header[data-header] { background: #080808; }
  body[data-page="home"] .home-hero {
    position: sticky; top:0; margin-top: 0;
    height: 100vh; height: 100svh;
    min-height: calc(var(--mobile-header-height) + 36rem);
    scroll-margin-top: var(--mobile-header-height);
  }
  body[data-page="home"] .home-hero__scene { inset: 0; }
  body[data-page="home"] .home-hero__media > img { object-fit: cover; object-position: 52% 42%; }
  body[data-page="home"] .home-hero__content {
    display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
    gap: clamp(1.25rem, 3svh, 2rem);
    padding-top: calc(var(--mobile-header-height) + 10rem);
    padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px));
    padding-inline: clamp(1.4rem, 6vw, 2.5rem);
  }
  body[data-page="home"] .home-hero h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); line-height: .92; }
  body[data-page="home"] .home-hero__role { margin-top: .85rem; font-size: .82rem; line-height: 1.45; }
  body[data-page="home"] .home-hero__statement { max-width: 29rem; padding: 0; }
  body[data-page="home"] .home-hero-positioning { font-size: clamp(1rem, 4.5vw, 1.3rem); line-height: 1.4; letter-spacing: -.025em; }
  body[data-page="home"][data-lang="zh"] .home-hero-positioning { font-size: clamp(1.05rem, 4.6vw, 1.3rem); line-height: 1.65; }
  body[data-page="home"] .home-hero-meta { font-size: .75rem; line-height: 1.5; margin-top: .9rem; }
  body[data-page="home"] .home-hero__explore { font-size: .75rem; line-height: 1.4; margin-top: .65rem; padding-block: .6rem; }
  body[data-page="home"] .home-hero__shade {
    background: linear-gradient(180deg, transparent 30%, rgba(11,4,22,.08) 42%, rgba(11,4,22,.5) 64%, rgba(11,4,22,.84) 100%);
  }
}

/* Desktop-only image review; the mobile compositions remain unchanged. */
@media (min-width: 1025px) {
  body[data-page="home"] .work-row[href="narom/"] .work-media {
    aspect-ratio: 16 / 9;
    align-self: start;
  }
  body[data-page="home"] .work-row[href="narom/"] .work-media img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
  }
}
