/* Redesign 2026-11. Loaded last; shared tokens keep all three themes intact. */
:root { --pg-header-height: 94px; scroll-padding-top: calc(var(--pg-header-height) + 20px); }
.site-header { position: fixed; z-index: 40; padding-block: 18px; transition: background .2s, box-shadow .2s; }
.site-header.is-scrolled { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
:root[data-theme="dark"] .site-header.is-scrolled { background: #141619; }
:root[data-theme="studio"] .site-header.is-scrolled { background: #252522; }
.nav__mobile-contact { display: none; }
.gw__tiles { padding: clamp(24px, 2.6vw, 48px); gap: clamp(10px, .85vw, 16px); }
.gw-stat--area { padding-inline: clamp(24px, 2.6vw, 48px); }
.gw-tile__title, .gw-panel__title, .sec-title, .about__title, .contact__title { overflow-wrap: normal; word-break: normal; hyphens: none; }
.gw-tile__go { background: var(--lime); color: #171815; border-color: var(--lime); }
.gw-tile__body { min-height: 0; padding-bottom: 36px; }
.gw-tile__text { padding-right: 0; }
.gw-panel__grid { grid-template-columns: minmax(0, 31fr) minmax(0, 69fr); gap: clamp(24px, 3vw, 48px); }
.gw-panel__grid--single { grid-template-columns: 1fr; }
.gw-panel__title { font-size: clamp(24px, 2.25vw, 40px); line-height: 1.04; }
.gw-panel__content { min-width: 0; container-type: inline-size; }
.gw-proj__track { display: block; overflow: visible; }
.gw-proj__page { display: block; }
.gw-proj__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gw-proj { min-width: 0; }
.gw-proj__title { font-size: clamp(15px, 1.1vw, 19px); }
.gw-proj__meta, .gw-media__btn { font-size: 14px; }
.gw-explore { padding-top: 28px; }
.d4-refs__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: stretch; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.d4-ref { min-height: 102px; padding: 18px 12px; flex-direction: column; gap: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d4-ref__name { font-stretch: 100%; font-weight: 750; font-size: clamp(18px, 1.4vw, 24px); letter-spacing: 0; text-transform: none; overflow-wrap: normal; }
.d4-ref__context { font-size: 12px; line-height: 1.4; letter-spacing: .07em; text-transform: uppercase; color: inherit; opacity: .78; }
.xp-fx__pair { display: block; }
.xp-row__meta { display: none; }
.xp-row__main { display: flex; flex-direction: column; }
.xp-row__project { order: 2; margin-top: 6px; font-size: 14px; font-weight: 400; }
.xp-row__btn { padding-right: 92px; }
.xp-row { position: relative; }
.xp-favorite { right: 46px; }
.xp-row-share { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 36px; height: 40px; padding: 8px; color: inherit; background: transparent; border: 0; opacity: .7; }
.xp-row-share svg { width: 18px; height: 18px; }
.xp-row-share:hover, .xp-row-share:focus-visible { opacity: 1; color: var(--lime-deep); }
.xp-selection-share, .xp-selection-clear { border: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; padding: 8px 4px; }
.xp-selection-notice { font-size: 14px; line-height: 1.6; margin-top: 12px; }
.xp-request { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.xp-request svg { width: 16px; height: 12px; }
.xp-stage__facts { display: none; }
.d4-contact__direct p { margin-top: 12px; }
.d4-contact__direct a { overflow-wrap: anywhere; }
.cform-reference { border-left: 3px solid var(--lime); padding: 15px; margin-block: 18px; background: #8881; font-size: 14px; line-height: 1.6; }
.cform-reference button { display: inline-block; margin-top: 8px; padding: 5px 0; color: inherit; background: none; border: 0; text-decoration: underline; }
.cform-reference__clear { display: block; margin-top: 10px; }
.pg-js .cform-reference__clear { display: none; }
@container (max-width: 520px) { .gw-proj__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 1100px) { .gw-proj__grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .d4-refs__grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) {
 :root { --pg-header-height: 82px; }
 .site-header { padding-block: 14px; }
 .nav__mobile-contact { display: block; }
 .gw__tiles { padding: 22px 20px; }
 .gw-panel__grid { grid-template-columns: 1fr; }
 .gw-proj__grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .gw-proj__page { display:block; }
 .gw-panel__title { font-size: clamp(25px, 5.5vw, 36px); }
 .d4-refs__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .d4-ref { min-height: 88px; padding: 15px 8px; }
 .d4-ref__context { font-size: 10px; }
 .xp-row__project { font-size: 13px; }
}
@media (max-width: 520px) { .gw-proj__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
/* Reserve separate hit targets for favorite and sharing. */
.xp .xp-row { display: block; position: relative; }
.xp .xp-row__btn { padding-right: 92px; }
.xp .xp-favorite { position: absolute; right: 44px; top: 50%; transform: translateY(-50%); width: 40px; min-height: 44px; }
.xp .xp-row-share { width: 40px; min-height: 44px; right: 2px; }
.hero__side { display: none; }

/* Layout correction: one outer grid for tiles and opened world. */
.gw { --pg-world-gutter: clamp(24px, 2.6vw, 48px); }
.gw__tiles { padding-inline: var(--pg-world-gutter); }
.gw-panel > .wrap { max-width: none; padding-inline: var(--pg-world-gutter); }
.gw-panel__grid { grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); }
.gw-panel__head { border-left: 0; padding-left: 0; }
.gw-panel__lede { max-width: none; }
.gw-panel__grid--single { grid-template-columns: 1fr; }
.d4-refs__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.d4-ref__name { font-size: clamp(15px, 1.1vw, 20px); font-weight: 650; }
.d4-ref__context { font-size: 10px; letter-spacing: .055em; }
.d4-ref__logo { max-height: 34px; max-width: min(130px,100%); }

/* Explorer player: the agreed title/context order and single transport surface. */
.xp.xp--wide .xp-stage, .xp.xp--mid .xp-stage { top: calc(var(--pg-header-height) + 18px); }
.xp-stage__kicker { color: var(--lime-deep); font-size: 12px; letter-spacing: .12em; margin-top: 20px; }
.xp-stage__kicker > svg { display: none; }
.xp .xp-stage__title { font-size: clamp(24px, 1.7vw, 32px); font-weight: 650; line-height: 1.15; margin-top: 18px; overflow-wrap: normal; }
.xp .xp-stage__project { margin: 18px 0 0; color: var(--stone); font-size: 15px; font-weight: 500; line-height: 1.5; }
.xp-stage__surface { margin-top: 28px; padding: 20px 18px 16px; border: 1px solid var(--line); background: var(--xp-screen); color: var(--xp-screen-ink); }
.xp-stage__surface .xp-stage__screen { margin: 0; height: 150px; background: transparent; }
.xp-stage__surface .xp-stage__wave { inset: 12px 0 auto; height: 120px; }
.xp-stage__clock, .xp-stage__tag { display: none; }
.xp-stage__bar { flex-wrap: nowrap; gap: 10px; margin-top: 18px; }
.xp-stage__bar .xp-pbtn { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--lime); color: #171815; }
.xp-stage__bar .xp-pbtn[hidden] { display: none; }
.xp-stage__bar .xp-pbtn > span { display: none; }
.xp-stage__bar .xp-pbtn > svg { width: 19px; height: 19px; }
.xp-stage__transport-time { flex: 1; font-size: 12px; line-height: 1.4; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--xp-screen-dim); }
.xp-stage__acts { flex-wrap: nowrap; gap: 10px; margin-left: 0; }
.xp-stage__acts .text-btn { color: var(--xp-screen-ink); font-size: 13px; padding: 4px 0; white-space: nowrap; }
.xp-stage__acts [data-xp-share] > svg { display: none; }
.xp-stage__acts .xp-stage__download { min-width: 24px; justify-content: center; }
.xp-stage__download > svg { width: 18px; height: 18px; }
.xp-request { margin-top: 24px; color: var(--lime-deep); line-height: 1.5; font-size: 16px; text-decoration: none; }
.xp-stage__desc { border: 0; padding: 0; }
.xp-stage__tone { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; color: var(--stone); font-size: 14px; line-height: 1.5; }
.xp-stage__tone[hidden] { display: none; }
.xp-stage.is-video .xp-stage__surface .xp-stage__screen { height: auto; aspect-ratio: 16/9; }
.xp-stage.is-video .xp-stage__transport-time { white-space: normal; font-size: 11px; }
@media(max-width:1100px) {
 .d4-refs__grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:899px) {
 .xp .xp-fx__chips--grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
 .xp .xp-fx__chips--grid .xp-chip { width:100%; min-width:0; white-space:normal; }
 .xp .xp-stage__title { font-size: 26px; }
 .xp .xp-stage__project { font-size: 15px; }
 .xp-stage__surface { margin-top: 24px; }
}
@media(max-width:760px) {
 .gw { --pg-world-gutter: 20px; }
 .gw-panel__grid { grid-template-columns: 1fr; }
 .d4-refs__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .d4-ref__name { font-size: 16px; }
}
.xp .xp-stage__bar .xp-pbtn:not(.xp-pbtn--mini) { background: var(--lime); color: #171815; }

/* Final visual tuning: compact waveform, equally centered actions, wider desktop hero. */
.xp-stage:not(.is-video) .xp-stage__surface .xp-stage__screen { height: 88px; }
.xp-stage:not(.is-video) .xp-stage__surface .xp-stage__wave { top: 10px; height: 64px; }
.xp .xp-favorite, .xp .xp-row-share { display: grid; place-items: center; height: 44px; min-height: 44px; padding: 0; line-height: 1; opacity: .55; }
.xp .xp-favorite svg, .xp .xp-row-share svg { display: block; width: 18px; height: 18px; }
.xp .xp-favorite svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.xp .xp-favorite[aria-pressed="true"] { opacity: .85; }
.xp .xp-favorite[aria-pressed="true"] svg { fill: currentColor; }
.xp .xp-favorite:hover, .xp .xp-favorite:focus-visible, .xp .xp-row-share:hover, .xp .xp-row-share:focus-visible { opacity: 1; }
@media(min-width:1101px) {
 .hero .hero__wrap--reel { max-width: none; padding-inline: clamp(24px, 2.6vw, 48px); }
}

/* Balance desktop composition after the wider outer grid. */
.xp .xp-stage__desc { display: none; }
@media(min-width:1101px) {
 .hero .hero__wrap--reel { padding-inline: clamp(72px, 7vw, 160px); }
 .gw-panel__grid { grid-template-columns: minmax(0,44fr) minmax(0,56fr); }
 .gw-panel__grid--single { grid-template-columns: 1fr; }
}
