/* Mitrama page CSS: only what the kit has no class for */

/* the client's logo (a round mark) beside the name, in the nav and the footer */
.nav__logo { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo .brand-mark { width: 32px; height: 32px; flex: none; display: block; }
.nav__logo .brand-name { font: 500 18px/1.1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 1279px) { .nav--split .lang-link { display: none; } }
@media (max-width: 639px) { .nav__logo .brand-name { font-size: 16px; } .nav__logo .brand-mark { width: 28px; height: 28px; } }

/* #how: the four steps as a ruled list beside the route diagram */
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list > li { padding: var(--s-4) 0; border-top: 1px solid var(--line); }
.steps-list > li:last-child { border-bottom: 1px solid var(--line); }
.steps-list__num { display: block; font: 500 var(--t-label)/1.5 var(--font-text); color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: var(--s-1); }
.steps-list h3 { font: 500 var(--t-card)/1.3 var(--font-text); margin: 0 0 var(--s-1); letter-spacing: -0.01em; }
.steps-list p { margin: 0; }
/* the diagram on a flat panel (kind other: no lit ground) */
.how__panel { height: 100%; min-height: 460px; display: flex; align-items: center; }
.how__panel .dg { width: 100%; }
@media (max-width: 1023px) { .how__panel { min-height: 300px; height: auto; margin-top: var(--s-6); } }
@media (max-width: 639px) { #how .panel.how__panel { min-height: 0; height: 320px; margin-top: var(--s-5); } .steps-list > li { padding: var(--s-3) 0; display: grid; grid-template-columns: 24px 1fr; column-gap: var(--s-3); align-items: center; } .steps-list p { display: none; } .steps-list__num { margin-bottom: 0; font-size: 0; } .steps-list h3 { margin: 0; } }

/* #company: a lower map on a phone so the details card fits the screen */
@media (max-width: 639px) { #company .cx-map__ground { height: 240px; } }

/* the navy footer: the name set large beside the logo */
.footer--dark .closing__links .nav__logo .brand-mark { width: 48px; height: 48px; }
.footer--dark .closing__links .nav__logo .brand-name { font-size: 28px; }
@media (max-width: 639px) { .footer--dark .closing__links .nav__logo .brand-name { font-size: 22px; } }

/* the hero: the logo's M set large on the navy, on the right half of the wrap, above the facts */
.hero--statement .hero__in { position: relative; }
.hero-mark { position: absolute; right: 0; top: 24px; width: min(44%, 560px); height: auto; opacity: .95; pointer-events: none; }
@media (max-width: 1023px) { .hero-mark { top: auto; bottom: 140px; width: min(48%, 380px); } }
@media (max-width: 639px) { .hero-mark { bottom: 8px; width: 62%; } }

/* the privacy and credits pages: one column of text under the bar */
main.legal, main#top:has(> .credits-list) { padding: calc(var(--nav) + var(--s-8)) 0 var(--s-9); }
main.legal .wrap > * { max-width: 62ch; }
main.legal h1 { font: var(--display-weight) var(--t-h2)/1.15 var(--font-display); letter-spacing: var(--display-tracking); margin: var(--s-5) 0 var(--s-6); }
main.legal h2 { font: 500 var(--t-card)/1.3 var(--font-text); margin: var(--s-7) 0 var(--s-3); }
.footer--legal { height: auto; }

/* the details card on the map: wide enough for the registered address, phone and email in ink */
@container (min-width: 900px) { #company .cx-map__card { width: 430px; } }
#company .cx-map__line { font-size: var(--t-small); color: var(--ink); }

/* phone: the bar holds the logo and the menu; the main action is the hero's and the close's button */
@media (max-width: 639px) { .nav__actions .btn--primary { display: none; } }

/* each step's icon beside its number, in the action colour */
.steps-list__num { display: flex; align-items: center; gap: var(--s-2); }
.steps-list__ic { width: 24px; height: 24px; color: var(--action); flex: none; }

/* the diagram panel: a flat surface, as tall as the four steps beside it */
#how .panel.how__panel { background: var(--p-surface); background-image: none; border-color: transparent; }
@media (min-width: 1024px) { #how .panel.how__panel { min-height: 640px; } }

/* the nav over the film: no bar, white words, the gold button */
.nav.nav--over { background: #142f55; border-bottom-color: rgba(245,246,248,.12); box-shadow: none; }
.nav.nav--over .nav__link, .nav.nav--over .brand-name { color: #fff; }
.nav.nav--over .btn--primary { background: #d6a22d; color: #142f55; border-color: #d6a22d; }
.nav.nav--over .nav__toggle { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.nav { transition: background-color .3s ease, border-color .3s ease; }

/* #channels: three columns, each with its icon */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.channels__item { padding: var(--s-6); border-radius: var(--r-lg); background: var(--p-surface); }
.channels__ic { width: 40px; height: 40px; color: var(--p-ink); margin-bottom: var(--s-6); }
.channels__item h3 { margin: 0 0 var(--s-2); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.channels__item p { margin: 0; }
.channels__item:hover .channels__ic { color: #c48f10; }
@media (max-width: 1023px) { .channels { grid-template-columns: 1fr; } .channels__item { padding: var(--s-5); } .channels__ic { margin-bottom: var(--s-3); } }
/* the channel cards fill the screen: the icon at the top, the words at the foot */
@media (min-width: 1024px) {
  .channels__item { display: flex; flex-direction: column; min-height: 440px; padding: var(--s-7); }
  .channels__ic { width: 56px; height: 56px; margin-bottom: auto; }
  .channels__item h3 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: var(--s-3); }
}
.channels__item:nth-child(2) { background: #142f55; color: #f5f6f8; }
.channels__item:nth-child(2) .channels__ic { color: #d6a22d; }
@media (max-width: 639px) { .film__layer[data-scene="0"] img { object-position: 74% 60%; } }

/* ===================== the truck journey (#journey) =====================
   A navy band of five stops. journey.js draws svg.road through them and moves .truck with the scroll;
   --lane is the room the road takes beside the content (set by journey.js). */
main > section.journey { position: relative; height: auto; padding: 0; background: #142f55; color: #f5f6f8; overflow: hidden; --lane: 0px; }
.road { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 0; }
.road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.road__base { stroke: #13345f; stroke-width: 58; }
.road__line { stroke: rgba(245,246,248,.35); stroke-width: 2; stroke-dasharray: 16 18; }
.road__trail { stroke: #d6a22d; stroke-width: 4; }
@media (max-width: 767px) { .road__base { stroke-width: 30; } .road__trail { stroke-width: 3; } .road__line { stroke-dasharray: 10 12; } }
.truck { position: absolute; top: 0; left: 0; width: 120px; height: 56px; margin: -28px 0 0 -60px; z-index: 2; pointer-events: none; display: none; will-change: transform; }
.truck svg { width: 100%; height: 100%; display: block; }
.journey--live .truck { display: block; }
@media (max-width: 767px) { .truck { width: 64px; height: 30px; margin: -15px 0 0 -32px; } }

.stop { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + var(--s-7)) 0 var(--s-9); }
.journey--live .stop:not(.stop--end) { padding-bottom: min(360px, 40vh); }
.stop__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-8); align-items: center; padding-left: var(--lane); }
.stop--right .stop__inner { padding-left: 0; padding-right: var(--lane); }
.stop--start .stop__inner { grid-template-columns: minmax(0, 1fr); }
.stop__kicker { margin: 0 0 var(--s-4); font: 500 var(--t-label)/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #d6a22d; }
.stop h1 { margin: 0; max-width: 12ch; font: 400 clamp(48px, 8vw, 128px)/.98 var(--font-display); letter-spacing: -0.045em; color: #fff; }
.stop h2 { margin: 0 0 var(--s-5); max-width: 16ch; font: 400 clamp(36px, 4.6vw, 68px)/1.02 var(--font-display); letter-spacing: -0.035em; color: #fff; }
.stop--end h2 { max-width: 16ch; }
.stop p { max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: rgba(245,246,248,.86); }
.stop__lead { margin-top: var(--s-5); font-size: clamp(18px, 1.6vw, 22px); }
.stop__pic { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.stop__pic img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.22,1,.36,1); }
.stop.is-here .stop__pic img { transform: scale(1); }
.journey .btn-row { margin-top: var(--s-6); }
.journey .btn--primary { background: #d6a22d; color: #142f55; border-color: #d6a22d; }
.journey .btn--secondary, .journey .btn--secondary:visited { color: #fff; }
.stop__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); margin: var(--s-8) 0 0; padding-top: var(--s-5); border-top: 1px solid rgba(245,246,248,.22); max-width: 1000px; }
.stop__facts dt { font-size: var(--t-label); color: rgba(245,246,248,.7); margin-bottom: var(--s-1); }
.stop__facts dd { margin: 0; font-weight: 500; color: #fff; }

.journey__cue { display: inline-flex; align-items: center; gap: 14px; margin-top: var(--s-8) !important; font: 500 12px/1 var(--font-text) !important; letter-spacing: .22em; text-transform: uppercase; color: #fff !important; }
.journey__cue i { width: 40px; height: 1px; background: linear-gradient(90deg, #d6a22d, transparent); animation: journey-cue 1.8s ease-in-out infinite; transform-origin: left; }
@keyframes journey-cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .journey__cue i { animation: none; } .stop__pic img { transition: none; transform: none; } }

@media (max-width: 1023px) {
  .stop__inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .stop__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .stop { min-height: 0; padding: calc(var(--nav) + var(--s-6)) 0 var(--s-8); }
  .journey--live .stop:not(.stop--end) { padding-bottom: 140px; }
  .stop--start { min-height: 100svh; }
  .stop__inner, .stop--right .stop__inner { padding-left: 60px; padding-right: 0; }
  .journey .btn-row { flex-direction: column; align-items: stretch; }
}

/* ===================== a day passing (journey sky) =====================
   .sky stays behind the road for the whole journey (sticky, one screen tall); journey.js sets its colours
   (--sky-a top, --sky-b foot) and moves the sun and the moon with the truck's progress: dawn at the start,
   morning at the warehouse, midday at the supermarket, afternoon at the warung, night at "your brand". */
main > section.journey { background: #fbefd9; color: #142f55; }
.sky { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; z-index: 0; overflow: hidden; pointer-events: none;
  --sky-a: #f7d9a0; --sky-b: #fbefd9; background: linear-gradient(180deg, var(--sky-a), var(--sky-b)); }
.sky__glow { position: absolute; inset: 0; background: radial-gradient(60% 50% at var(--sun-x, 20%) var(--sun-y, 80%), rgba(255, 236, 190, var(--glow, .5)), transparent 70%); }
.sky__sun, .sky__moon { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; }
.sky__sun { width: 120px; height: 120px; margin: -60px 0 0 -60px; background: #ffd56b; opacity: var(--sun-o, 1); transform: translate(var(--sun-px, 20vw), var(--sun-py, 80vh)); }
.sky__moon { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #f5f6f8; box-shadow: inset -14px -6px 0 0 #dfe3ea; opacity: var(--moon-o, 0); transform: translate(78vw, 22vh); }
.sky__stars { position: absolute; inset: 0; opacity: var(--moon-o, 0);
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 28% 36%, #fff 99%, transparent), radial-gradient(1px 1px at 44% 12%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 63% 30%, #fff 99%, transparent), radial-gradient(1px 1px at 86% 48%, #fff 99%, transparent), radial-gradient(1px 1px at 92% 14%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 7% 58%, #fff 99%, transparent), radial-gradient(1px 1px at 52% 52%, #fff 99%, transparent); }
@media (max-width: 767px) { .sky__sun { width: 72px; height: 72px; margin: -36px 0 0 -36px; } .sky__moon { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }

/* the road in daylight: grey asphalt, a white centre line, the gold trail darkened so it reads on cream */
.road { z-index: 1; }
.road__base { stroke: #3a4659; }
.road__line { stroke: rgba(255,255,255,.7); }
.road__trail { stroke: #d6a22d; }
.truck { z-index: 3; }
.stop { z-index: 2; }

/* daytime text in navy; the night stop keeps white text */
.stop h1, .stop h2 { color: #142f55; }
.stop p { color: rgba(20,47,85,.82); }
.stop__kicker { color: #8f6100; }
.journey__cue { color: #142f55 !important; }
.journey .btn--secondary, .journey .btn--secondary:visited { color: #142f55; }
.stop--end h2 { color: #fff; }
.stop--end p { color: rgba(245,246,248,.86); }
.stop--end .stop__kicker { color: #d6a22d; }
.stop--end .btn--secondary, .stop--end .btn--secondary:visited { color: #fff; }
.stop__facts { border-top-color: rgba(245,246,248,.22); }
/* overflow: clip (not hidden) so the sticky sky keeps the page as its scroller */
main > section.journey { overflow: clip; }
/* without the script there is no night sky: the last stop gets its own navy so its white text still reads */
.journey:not(.journey--live) .stop--end { background: #142f55; }
/* the Mitrama depot at the start of the road (seen from above). journey.js places it so its door sits just below
   the parked truck; its roof covers the truck until the visitor scrolls. Hidden without the script. */
.depot { position: absolute; top: 0; left: 0; width: 132px; height: 186px; margin: -172px 0 0 -66px; z-index: 4; pointer-events: none; display: none; }
.depot svg { width: 100%; height: 100%; display: block; }
.journey--live .depot { display: block; }
@media (max-width: 767px) { .depot { width: 60px; height: 85px; margin: -79px 0 0 -30px; } }

/* the logo (30 Nov 2026): the lockup image in the bar, the tagline lockup in white in the footer */
.nav__logo .brand-lockup { height: 36px; width: auto; display: block; }
.brand-lockup--white { display: none !important; }
.nav.nav--over .brand-lockup { display: none; }
.nav.nav--over .brand-lockup--white { display: block !important; }
@media (max-width: 639px) { .nav__logo .brand-lockup { height: 30px; } }
.footer__lockup img { height: 72px; width: auto; display: block; }
@media (max-width: 639px) { .footer__lockup img { height: 56px; } }

/* revisions of 30 Nov 2026 */
/* the motto under the headline, set like the logo's tagline */
.stop__motto { margin-top: var(--s-6) !important; font: italic 500 clamp(22px, 2.4vw, 34px)/1.25 var(--font-display) !important; letter-spacing: 0.01em; color: #142f55 !important; }
/* the drawn pictures: a soft frame, no zoom */
.stop__pic--drawn { box-shadow: 0 18px 40px -24px rgba(20,47,85,.45); }
.stop__pic--drawn img, .stop.is-here .stop__pic--drawn img { transform: none; }
.stop--end .stop__pic--drawn { box-shadow: 0 18px 40px -20px rgba(0,0,0,.6); }
/* #about: a small label over the headline */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--s-4); font: 600 12px/1.4 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: #8f6100; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: #d6a22d; }
.about h2 { margin: 0 0 var(--s-6); max-width: 16ch; }
.about p { max-width: 52ch; margin: 0 0 var(--s-4); }
.about p + p { color: var(--muted); }
/* a phone: the words fill the width, so the moon stays away (the stars say night) and the sun is faint */
@media (max-width: 767px) { .sky__moon { display: none; } .sky__sun { opacity: calc(var(--sun-o, 1) * .5); } }

/* ===== version 3 (30 Nov 2026): the stops' scenes are part of the ground, drawn from above, beside the road =====
   The scene sits on the road's side of the stop; journey.js draws the road from its entrance (data-joint) to the
   main road at any width, and draws none when the road runs on the other side (a phone). */
.stop__scene { aspect-ratio: auto; border-radius: 0; overflow: visible; box-shadow: none; }
.stop__scene img, .stop.is-here .stop__scene img { width: 100%; height: auto; transform: none; }
@media (min-width: 768px) {
  .journey--live .stop:not(.stop--start):not(.stop--right) .stop__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .journey--live .stop:not(.stop--start):not(.stop--right) .stop__scene { order: -1; }
  .journey--live .stop--right .stop__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}
/* the side roads journey.js draws out to each scene: the main road's asphalt, square ends, a dashed centre line */
.road .road__joint { stroke: #3a4659; stroke-linecap: butt; }
.road .road__joint-line { stroke: rgba(255,255,255,.7); stroke-width: 2; stroke-dasharray: 10 10; stroke-linecap: butt; }
/* one road width (version 3): journey.js sets --road from the scenes' scale; the truck and the depot keep their
   proportions to it (at full size: a 58px road, a 120 x 56 truck, a 132 x 186 depot) */
.journey .truck { width: calc(var(--road, 58px) * 2.069); height: calc(var(--road, 58px) * .966);
  margin: calc(var(--road, 58px) * -.483) 0 0 calc(var(--road, 58px) * -1.035); }
.journey .depot { width: calc(var(--road, 58px) * 2.276); height: calc(var(--road, 58px) * 3.207);
  margin: calc(var(--road, 58px) * -2.966) 0 0 calc(var(--road, 58px) * -1.138); }
/* the moving pieces (journey.js): over the scenes, under the truck; the depot's roof over the truck */
.actors { position: absolute; top: 0; left: 0; z-index: 3; pointer-events: none; overflow: visible; }
.journey .truck { z-index: 4; }
.journey .depot { z-index: 5; }
/* a fuller second paragraph under each stop's sentence */
.stop .stop__more { margin-top: var(--s-4); font-size: clamp(16px, 1.15vw, 18px); color: rgba(20,47,85,.72); }
.stop--end .stop__more { color: rgba(245,246,248,.78); }
/* a short screen (a laptop with display scaling, 30 Nov 2026): a section is at least one screen tall but grows
   with its content instead of laying it over the next part (the kit fixes it at one screen from 1280px up) */
@media (min-width: 1280px) {
  main > :is(section, .section):not(.journey), footer.closing { height: auto; min-height: 100vh; min-height: 100svh; }
}
