/* ==========================================================================
   Golog LTC: media-led sections and page layouts (after the Golog Nexus model,
   reference mchb.com.my): full-bleed photo/video heroes and bands, image-first
   cards, short copy. Depends on tokens.css and site.css
   ========================================================================== */

/* ---------- Background media (Media.astro) ---------- */
.media-fill { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--night); }
.media-fill img, .media-fill video { width: 100%; height: 100%; object-fit: cover; }
.media-slot {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 72% 38%, rgba(11, 82, 200, 0.42), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(25, 59, 114, 0.7), transparent 70%),
    radial-gradient(circle at center, rgba(174, 184, 198, 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--night);
}
.media-slot__tag {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 0.75rem); max-width: min(30rem, calc(100% - var(--gutter) * 2));
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.8rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08); border: 1px dashed rgba(174, 184, 198, 0.5);
  color: var(--on-dark-muted); font-size: 0.6875rem; line-height: 1.4;
}
.media-slot__tag svg { width: 12px; height: 12px; flex: none; color: var(--sky); }
.media-slot__tag code { color: #fff; word-break: break-all; }
.media-slot__tag--video { gap: 0.75rem; padding: 0.7rem 1.1rem 0.7rem 0.7rem; border-radius: var(--radius-lg); border-color: var(--sky); font-size: var(--text-xs); }
.media-slot__tag--video svg { width: 32px; height: 32px; padding: 9px; border-radius: 50%; background: var(--market-blue); color: #fff; }
.media-slot__tag--video strong { color: #fff; font-weight: 600; }
@media (max-width: 760px) {
  .media-slot__desc { display: none; }
  .media-slot__tag--video { gap: 0.5rem; padding: 0.4rem 0.8rem 0.4rem 0.4rem; border-radius: var(--radius-pill); }
  .media-slot__tag--video svg { width: 24px; height: 24px; padding: 6px; }
}
.mband .media-slot__tag, .contact-band .media-slot__tag, .story__stage .media-slot__tag { top: auto; bottom: 1rem; }

/* Shared dark scrim so white text reads on any photo or video */
.mhero::after, .mband::after, .contact-band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mhero::after { background: linear-gradient(180deg, rgba(14, 19, 32, 0.62) 0%, rgba(14, 19, 32, 0.18) 40%, rgba(14, 19, 32, 0.78) 100%); }
.mhero--full::after { background: radial-gradient(70% 55% at 50% 50%, rgba(14, 19, 32, 0.5), transparent 75%), linear-gradient(180deg, rgba(14, 19, 32, 0.6) 0%, rgba(14, 19, 32, 0.25) 40%, rgba(14, 19, 32, 0.75) 100%); }

/* ---------- Media hero ---------- */
.mhero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(78svh, 46rem); background: var(--night); color: #fff;
}
.mhero--full { min-height: 100svh; justify-content: center; }
.mhero--tall { min-height: min(92svh, 56rem); }
.mhero__inner { padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 2rem + 4vw, 6rem); }
.mhero__inner--center { display: grid; justify-items: center; text-align: center; }
.mhero h1 { color: #fff; max-width: 16ch; }
.mhero .t-hero { max-width: 15ch; }
.mhero__inner--center h1 { max-width: 18ch; }
.mhero .accent, .mband .accent { color: var(--sky); }
.mhero .eyebrow, .mband .eyebrow { color: var(--global-silver); }
.mhero__inner--center .eyebrow { margin-bottom: 1.5rem; }
.mhero__inner--center .eyebrow::after { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.7; }
.mhero__sub { margin-top: 1.25rem; max-width: 44ch; font-size: var(--text-lg); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }.mhero__cta { margin-top: 2.25rem; }
.mhero__inner--center .mhero__cta { justify-content: center; }
.breadcrumb--light { color: rgba(255, 255, 255, 0.82); }
.breadcrumb--light a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .mhero__cta { width: 100%; }
  .mhero__cta .btn { flex: 1 1 auto; }
}

/* Home hero: the copy centres vertically in the full-screen frame */
.mhero--full .mhero__inner { margin-block: auto; }

/* ---------- Short intro (Home) ---------- */
.intro-short { text-align: center; padding-block: clamp(4.5rem, 3rem + 6vw, 9rem); }
.intro-short__inner { display: grid; justify-items: center; }
.intro-short .eyebrow::after { content: ""; width: 2rem; height: 1px; background: currentColor; opacity: 0.7; }
.intro-short h2 { margin-top: 1.25rem; max-width: 16ch; font-size: var(--text-3xl); }
.intro-short__text { margin-top: 1.25rem; max-width: 46ch; font-size: var(--text-md); color: var(--color-text-muted); }
.section--flush-top { padding-top: clamp(3.5rem, 2rem + 4vw, 6rem); }

/* ---------- Image cards with the caption over the photo (Home) ---------- */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.stretch:focus-visible { outline: none; }
.stretch:focus-visible::after { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius-lg); }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.pcard { position: relative; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; background: var(--night); }
.pcard__media { border: 0; border-radius: 0; }
/* Placeholder inside a caption card: dark like the media slots, label kept clear of the caption */
.pcard .ph[data-ph] {
  align-items: start; border: 0;
  background: radial-gradient(60% 60% at 70% 30%, rgba(11, 82, 200, 0.35), transparent 70%), radial-gradient(circle at center, rgba(174, 184, 198, 0.16) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--night);
}
.pcard .ph[data-ph]:hover { background-color: var(--trade-navy); }
.pcard .ph__inner svg, .pcard .ph__inner strong, .pcard .ph__hint { color: var(--sky); }
.pcard .ph__inner > span { display: none; }
.pcard .ph__inner small { color: var(--on-dark-muted); }
.pcard .ph__file { color: #fff; }
.pcard__media img { transition: transform 900ms var(--ease-out); }
.pcard__body {
  position: absolute; inset: auto 0 0 0; z-index: 2; display: grid; gap: 0.4rem;
  padding: 4.5rem clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: linear-gradient(180deg, transparent, rgba(14, 19, 32, 0.9) 50%);
}
.pcard__type { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--global-silver); }
.pcard__name { font-size: var(--text-xl); line-height: 1.15; color: #fff; }
.pcard__text { color: rgba(255, 255, 255, 0.82); max-width: 40ch; }
.pcard__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.5rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; }
.pcard__more svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .pcard:hover .pcard__media img { transform: scale(1.05); }
  .pcard:hover .pcard__more svg { transform: translateX(4px); }
}
.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
@media (max-width: 1000px) and (min-width: 761px) { .pcards .pcard__name { font-size: var(--text-lg); } }
/* three narrow columns: keep the photo visible; the description is on the Core Trading page */
@media (max-width: 1100px) and (min-width: 761px) { .pcards .pcard__text { display: none; } }
/* Four cards: four across on desktop, two by two on tablets (with the description shown again) */
.pcards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) and (min-width: 761px) {
  .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcards--4 .pcard__text { display: block; }
  .pcards.pcards--4 .pcard__media { --ar: 4/5 !important; }
}
@media (max-width: 760px) {
  .pcards, .sides { grid-template-columns: 1fr; }
  .pcards .pcard__media { --ar: 1/1 !important; }
  .sides .pcard__media { --ar: 4/5 !important; }
}
@media (max-width: 480px) { .mhero__inner--center .eyebrow::before, .mhero__inner--center .eyebrow::after { display: none; } }

/* ---------- Full-bleed media band (Home teaser) ---------- */
.mband { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(82svh, 46rem); background: var(--night); color: #fff; }
.mband::after { background: linear-gradient(90deg, rgba(14, 19, 32, 0.8) 0%, rgba(14, 19, 32, 0.35) 60%, rgba(14, 19, 32, 0.15) 100%); }
.mband__inner { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.mband h2 { margin-top: 1rem; max-width: 13ch; color: #fff; }
.mband__sub { margin-top: 1rem; max-width: 40ch; font-size: var(--text-lg); line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
/* About: market gap band. Keep the ship (right of the photo) in view as the band narrows */
.mband--gap .media-fill img { object-position: 75% 50%; }
@media (max-width: 760px) { .mband--gap::after { background: linear-gradient(180deg, rgba(14, 19, 32, 0.1) 0%, rgba(14, 19, 32, 0.6) 45%, rgba(14, 19, 32, 0.92) 100%); } }

/* ---------- Closing contact band ---------- */
.contact-band { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: min(78svh, 40rem); padding-block: clamp(4rem, 3rem + 6vw, 8rem); background: var(--night); }
.contact-band::after { background: linear-gradient(90deg, rgba(14, 19, 32, 0.45), rgba(14, 19, 32, 0.05)); }
.contact-band__card { max-width: 32rem; padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.97); box-shadow: var(--shadow-2); }
.contact-band__card h2 { margin-top: 1rem; }
.contact-band__card p:not(.eyebrow) { margin-top: 0.75rem; color: var(--muted); }

/* ---------- Film dialog ---------- */
.film { width: min(92vw, 1100px); max-width: none; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius-lg); background: #000; color: var(--on-dark); overflow: hidden; }
.film::backdrop { background: rgba(14, 19, 32, 0.88); }
.film video { width: 100%; height: 100%; display: block; }
.film__close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); }
.film__close svg { width: 18px; height: 18px; transform: rotate(45deg); }
.film__soon { height: 100%; display: grid; place-content: center; justify-items: center; gap: 1rem; padding: 1rem; text-align: center; background: var(--night); }
.film__soon svg { width: 44px; height: 44px; color: var(--sky); }
.film__soon p { font-family: var(--font-display); font-size: var(--text-xl); }
@media (max-width: 600px) { .film { aspect-ratio: 4 / 3; } }

/* ---------- Offering cards (Core Trading, Product Portfolio) ---------- */
.dcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.dcards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dcard { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow 500ms var(--ease-out); }
.dcard__media { border: 0; border-radius: 0; }
.dcard__media img { transition: transform 900ms var(--ease-out); }
.dcard__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.dcard__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; }
.dcard__kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--market-blue); }
.dcard__name { font-size: var(--text-xl); line-height: 1.15; }
.dcard__name a { transition: color var(--dur-fast); }
.dcard__name a:hover { color: var(--market-blue); }
/* Whole card opens the sub page (stretched name link); the CTA link stays on top of it */
.dcard:has(.stretch) { cursor: pointer; }
.dcard:has(.stretch):hover .dcard__name a { color: var(--market-blue); }
.dcard .dcard__more { position: relative; z-index: 4; }
.dcard__text { color: var(--muted); }
.dcard__hl { display: grid; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--text-sm); }
.dcard__hl li { position: relative; padding-left: 1.1rem; }
.dcard__hl li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--market-blue); }
.dcard__more { margin-top: auto; align-self: start; }
@media (hover: hover) {
  .dcard:hover { box-shadow: var(--shadow-2); }
  .dcard:hover .dcard__media img { transform: scale(1.04); }
}
@media (max-width: 1000px) and (min-width: 641px) {
  .dcards { grid-template-columns: 1fr; }
  .dcard { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .dcard__media { aspect-ratio: auto; height: 100%; min-height: 18rem; }
}
@media (max-width: 640px) { .dcards { grid-template-columns: 1fr; } }

/* ---------- Three Pillars (Our Services): photo over a deep navy caption ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.pillar { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; background: color-mix(in srgb, var(--trade-navy) 55%, var(--night)); color: #fff; box-shadow: var(--shadow-1); transition: box-shadow 500ms var(--ease-out); }
.pillar__media { border: 0; border-radius: 0; }
.pillar__media img { transition: transform 900ms var(--ease-out); }
.pillar__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.pillar__kicker { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--sky); }
.pillar__name { font-size: var(--text-xl); line-height: 1.15; color: #fff; }
.pillar__text { font-size: var(--text-sm); color: var(--on-dark-muted); }
.pillar__more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; }
.pillar__more svg { width: 14px; height: 14px; transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .pillar:hover { box-shadow: var(--shadow-2); }
  .pillar:hover .pillar__media img { transform: scale(1.04); }
  .pillar:hover .pillar__more svg { transform: translateX(4px); }
}
@media (max-width: 1000px) and (min-width: 641px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .pillar__media { aspect-ratio: auto; height: 100%; min-height: 15rem; }
}
@media (max-width: 640px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Product types (product-portfolio-<id>.html) ---------- */
.ptypes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: clamp(0.75rem, 0.5rem + 1vw, 1.25rem); }
/* Each type is a solid block: Market Blue top rule, large faded number behind, "Coming soon" chip at the foot */
.ptype {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem;
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); min-height: clamp(12rem, 10rem + 5vw, 15rem);
  background: var(--mist); border: 1px solid var(--line); border-top: 3px solid var(--market-blue); border-radius: var(--radius-lg);
}
.ptype__num {
  position: absolute; right: 0.12em; bottom: -0.18em; z-index: -1;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5.5rem, 4rem + 5vw, 8.5rem);
  line-height: 1; letter-spacing: -0.05em; color: rgba(25, 59, 114, 0.07);
}
.ptype__label { font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--market-blue); }
.ptype__name { font-size: var(--text-lg); line-height: 1.2; color: var(--trade-navy); max-width: 18ch; }
.ptype .chip { margin-top: auto; background: var(--paper); }

/* ---------- Our Services: partner tracks and service cards ---------- */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.track { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.track__media { border: 0; border-radius: 0; }
.track__body { display: flex; flex-direction: column; gap: 1rem; flex: 1; padding: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.track__name { font-size: var(--text-2xl); line-height: 1.1; }
.track__lead { color: var(--muted); font-size: var(--text-md); }
.track__list { display: grid; gap: 0.75rem; padding-block: 1.25rem 0.75rem; border-top: 1px solid var(--line); }
.track__list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.track__list svg { width: 18px; height: 18px; flex: none; margin-top: 0.3em; color: var(--market-blue); }
.track__cta { margin-top: auto; align-self: start; }
@media (max-width: 860px) { .tracks { grid-template-columns: 1fr; } }

.dcard__worry { font-family: var(--font-display); font-size: var(--text-md); line-height: 1.3; color: var(--market-blue); }
/* Enquiry card that closes the service grid */
.dcard--cta { display: flex; grid-column: 1 / -1; background: var(--trade-navy); color: #fff; }
.dcard--cta .dcard__body { justify-content: center; }
.dcard--cta .dcard__name { color: #fff; font-size: var(--text-2xl); }
.dcard--cta .dcard__text { color: var(--on-dark-muted); }
.dcard--cta .eyebrow { color: var(--sky); }

/* ---------- Sub pages ---------- */
.btn .btn__arrow--back { transform: rotate(180deg); }
.btn:hover .btn__arrow--back { transform: rotate(180deg) translateX(4px); }
.psub-next { display: grid; gap: 0.5rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--market-blue); }
.psub-next__name { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; color: var(--trade-navy); transition: color var(--dur-base); }
.psub-next__name svg { width: 0.7em; height: 0.7em; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.psub-next:hover .psub-next__name { color: var(--market-blue); }
.psub-next:hover .psub-next__name svg { transform: translateX(6px); }

/* ---------- About ---------- */
.vision__text { margin-top: 1.5rem; max-width: 22ch; font-family: var(--font-display); font-size: var(--text-3xl); line-height: 1.08; color: #fff; text-wrap: balance; }
.vision .eyebrow.mt-4 { margin-top: clamp(3rem, 2rem + 4vw, 6rem); }
.vision__mission { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 1rem + 2vw, 3rem); margin-top: 1.5rem; }
.vision__mission li { padding-top: 1.25rem; border-top: 1px solid var(--line-dark); }
.vision__mission p { margin-top: 0.75rem; font-size: var(--text-md); color: var(--on-dark); }
@media (max-width: 1100px) { .vision__mission { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .vision__mission { grid-template-columns: 1fr; } }

.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; position: relative; }
.timeline li { position: relative; padding-top: 2.5rem; }
.timeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: -2rem; height: 1px; background: var(--line); }
.timeline li:last-child::before { right: 0; }
.timeline__dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--market-blue); background: var(--paper); }
.timeline li:last-child .timeline__dot { background: var(--market-blue); box-shadow: 0 0 0 6px rgba(11, 82, 200, 0.15); }
.timeline__stage { display: block; color: var(--market-blue); margin-bottom: 0.75rem; }
.timeline__entity { margin-block: 0.5rem 0.75rem; color: var(--muted); }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 2.5rem; }
  .timeline li { padding: 0 0 0 2.25rem; }
  .timeline li::before { top: 13px; left: 6px; right: auto; bottom: -2.5rem; width: 1px; height: auto; }
  .timeline li:last-child::before { display: none; }
  .timeline__dot { top: 0.2rem; }
}

.icon-badge { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--market-blue); color: #fff; flex: none; }
.icon-badge svg { width: 20px; height: 20px; }
.icon-badge--light { background: #fff; color: var(--market-blue); }
/* Home proof points on Trade Navy */
.proofs .eyebrow { color: var(--sky); }
.proofs .creds li { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: none; }
.creds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 1.5vw, 2rem); }
.creds li { display: flex; gap: 1.25rem; align-items: flex-start; padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.creds h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.creds > li:only-child { grid-column: 1 / -1; }
@media (min-width: 1001px) { .creds--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values__eyebrow { margin-bottom: 1.5rem; }
.creds-head { margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--market-blue); }
.values li { padding: 2rem 1.5rem 0 0; }
.values li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.values h3 { margin-block: 1rem 0.6rem; font-size: var(--text-xl); }
@media (max-width: 1000px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values li:nth-child(3) { border-left: 0; padding-left: 0; }
  .values li:nth-child(n+3) { margin-top: 1.5rem; }
}
@media (max-width: 760px) { .creds { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .values li, .values li + li { padding: 1.5rem 0; border-left: 0; margin: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Scroll story (CorridorStory.astro) ---------- */
.layers { overflow: clip; }
.layers .section-head { margin-bottom: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.layers__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 6rem); }
.layers__stage { position: relative; }
.layers__sticky { position: sticky; top: calc(var(--header-h) + 1rem); height: calc(100vh - var(--header-h) - 2rem); display: flex; flex-direction: column; justify-content: center; }
.layers__hud { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.layers__count { font-family: var(--font-display); font-size: var(--text-lg); color: var(--sky); }
.layers__count .muted { font-size: var(--text-sm); }
.layers__bar { flex: 1; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.layers__bar i { position: absolute; inset: 0; background: var(--sky); transform-origin: left; transform: scaleX(0); transition: transform 700ms var(--ease-out); }
.layers__steps li { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-block: 2rem; opacity: 0.25; transition: opacity 600ms var(--ease-out); }
.layers__steps li:first-child { min-height: 55vh; }
.layers__steps li:last-child { min-height: 65vh; }
.layers__steps li.is-active { opacity: 1; }
.layers__steps h3 { font-size: var(--text-2xl); margin-block: 0.75rem 1rem; }
.layers__steps p { color: var(--color-text-muted); max-width: 34ch; font-size: var(--text-md); }

.story__stage { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - var(--header-h) - 8rem); border-radius: var(--radius-lg); overflow: hidden; background: var(--trade-navy); box-shadow: var(--shadow-2); }
.story__frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 900ms var(--ease-out); }
.story__frame.cur { opacity: 1; }
.story__zoom { position: absolute; inset: 0; transform-origin: var(--ox) var(--oy); transform: scale(var(--z0, 1)); transition: transform 6s cubic-bezier(0.25, 0.6, 0.2, 1); }
.story__frame.cur .story__zoom { transform: scale(var(--z, 1)); }
.story__zoom img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .layers__grid { grid-template-columns: 1fr; gap: 0; }
  .layers__stage { display: contents; } /* lets the sticky panel travel with the steps */
  .layers__sticky { top: var(--header-h); height: auto; padding-block: 0.75rem 1.5rem; z-index: 2; background: linear-gradient(var(--night) 90%, rgba(14, 19, 32, 0)); }
  .story__stage { max-height: 40vh; }
  .layers__steps li { min-height: 55vh; justify-content: flex-start; padding-top: 1.5rem; }
  .layers__steps li:first-child { min-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) { .story__zoom, .story__frame { transition: none; } }

/* ---------- Roadmap (Global Market Blueprint) ---------- */
.roadmap { overflow: hidden; isolation: isolate; }
.roadmap > .container { position: relative; }
.roadmap__globe { position: absolute; z-index: -1; width: min(820px, 120vw); right: -240px; top: -160px; opacity: 0.4; pointer-events: none; }
@media (max-width: 900px) { .roadmap__globe { opacity: 0.2; right: -40%; } }
.roadmap__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem clamp(1.25rem, 0.5rem + 2vw, 2.5rem); }
.roadmap__list li { padding-top: 1.5rem; border-top: 1px solid var(--global-silver); }
.roadmap__list h3 { margin-block: 1rem 0.75rem; font-size: var(--text-xl); }
.roadmap__list p { color: rgba(255, 255, 255, 0.82); }
@media (max-width: 1000px) { .roadmap__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roadmap__list { grid-template-columns: 1fr; } }

/* ---------- Brand motif: dotted globe (Globe.astro + globe.js) ---------- */
.globe { aspect-ratio: 1; width: 100%; color: var(--global-silver); --arc: var(--market-blue); --pulse: var(--market-blue); pointer-events: none; }
.globe.dark { color: #9AA6B8; --arc: var(--sky); --pulse: #fff; }
.globe canvas { width: 100%; height: 100%; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start; }
.contact__info { display: grid; gap: 1.75rem; align-content: start; }
.contact__item { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.contact__item > div { min-width: 0; }
.contact__item h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-ui); text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem; }
.contact__item p, .contact__addr { font-size: var(--text-md); font-style: normal; line-height: 1.55; overflow-wrap: anywhere; }
.contact__item p a:hover { color: var(--market-blue); }
.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem); background: var(--mist); border-radius: var(--radius-lg); }
.contact__form .full { grid-column: 1 / -1; }
.contact__title { font-size: var(--text-2xl); }
.contact__submit { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.form__trap { position: absolute; left: -9999px; }
.form__status { padding: 1rem; border-radius: var(--radius-lg); font-weight: 600; }
.form__status:empty { display: none; }
.form__status.is-error { background: rgba(180, 35, 24, 0.08); color: #B42318; }
.contact__done { padding: clamp(2rem, 1rem + 3vw, 4rem); background: var(--market-blue); color: #fff; border-radius: var(--radius-lg); }
.contact__done h2 { margin-block: 1.5rem 1rem; color: #fff; }
.contact__done p { color: rgba(255, 255, 255, 0.85); }
.contact__done:focus { outline: none; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contact__form { grid-template-columns: 1fr; } }

/* ---------- Privacy Notice and 404 ---------- */
.prose { font-size: var(--text-md); }
.prose h2 { font-size: var(--text-xl); margin-block: 2.5rem 0.75rem; }
.prose p, .prose ul { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose ul { padding-left: 1.25rem; margin-block: 0.75rem 1rem; }
.prose a { color: var(--market-blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.draft { border: 1px dashed var(--trade-navy); border-radius: var(--radius); padding: 0.75rem 1rem; color: var(--trade-navy) !important; font-weight: 600; }
.page-hero--full { min-height: 80svh; display: flex; align-items: center; }
.page-hero--full h1 { margin-top: 1rem; }

/* Story frames without a photo yet: a large step number so the cross-fade still reads */
.story__ph-num { position: absolute; left: 1.5rem; top: 1rem; font-family: var(--font-display); font-size: clamp(5rem, 3rem + 8vw, 11rem); line-height: 1; color: rgba(255, 255, 255, 0.12); }
/* Caption cards: compact placeholder label, and taller cards on tablets */
.pcard .ph__inner { padding-top: 1rem; gap: 0.2rem; }
.pcard .ph__hint { display: none; }
@media (max-width: 1000px) and (min-width: 761px) { .pcards .pcard__media { --ar: 2/3 !important; } }
