/* The MyFerry landing page: a day told by scroll, in motion and 3D. No libraries.
   Motion thesis: ONE authored moment, the morning ride. The first screen stays put; scrolling opens the phone in the
   driver's hand into a 3D Yangon, and two ferries drive through three chapters. Everything below it is still:
   controls answer with colour and border only, and the safety evening follows the scroll because time is its subject. */
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("fonts/gabarito-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Noto Sans Myanmar"; src: url("fonts/noto-sans-myanmar.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+1000-109F, U+200C-200D, U+2060, U+25CC, U+A9E0-A9FE, U+AA60-AA7F; }
:root {
  --yellow: #FFD400; --yellow-lit: #FFDE33; --yellow-deep: #E6BF00; --yellow-soft: #FFF6C2;
  --ink: #121212; --ink-2: #2A2A26; --paper: #FFFFFF; --warm: #F6F6F3; --warm-2: #EFEDE6; --line: #E4E4E0; --sub: #55554F;
  --on-yellow: rgba(18, 18, 18, 0.76);
  --green: #1B8A4E; --green-soft: #E3F5EA; --green-ink: #146A3B; --amber-soft: #FFF0DC; --amber-ink: #874400; --red: #C62828; --red-soft: #FDE7E7; --red-ink: #A11F1F;
  --night-sub: #A3A39D;
  --sans: "Figtree", "Noto Sans Myanmar", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Gabarito", "Figtree", "Noto Sans Myanmar", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --lift: 0 30px 50px -26px rgba(74, 56, 0, 0.55);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink) var(--warm-2); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); overflow-x: hidden; caret-color: var(--ink); }
html[lang="my"] body { line-height: 1.75; }
::selection { background: var(--ink); color: var(--yellow); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
html[lang="my"] h1, html[lang="my"] h2, html[lang="my"] h3 { font-weight: 700; letter-spacing: 0; line-height: 1.5 !important; }
h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.02; }
html[lang="my"] h2 { font-size: clamp(27px, 3.1vw, 42px); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 46ch; }
.ic { width: 22px; height: 22px; flex: none; }

/* controls answer with colour and border, never with a lift */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px; border: 0; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; transition: background-color 160ms var(--ease); }
.btn:hover { background: #33332E; }
.btn:active { background: #000; }
.textlink { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.textlink:hover { text-decoration-thickness: 3px; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 30; inset: 0 0 auto 0; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav.stuck { background: #fff; box-shadow: 0 1px 0 var(--line); }
/* over the night sky the bar turns light */
.nav .wrap { transition: color 300ms var(--ease); }
.nav.dark:not(.stuck) .wrap { color: #fff; }
.nav.dark:not(.stuck) .brand img { content: url("img/myferry-mark.svg"); }
.nav.dark:not(.stuck) .nav-links a:hover { text-decoration-color: #fff; }
.nav.dark:not(.stuck) .lang { color: var(--ink); }
.nav.dark:not(.stuck) :focus-visible { outline-color: #fff; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-weight: 600; font-size: 16px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline transparent 2px; text-underline-offset: 7px; transition: text-decoration-color 160ms var(--ease); }
.nav-links a:hover { text-decoration-color: var(--ink); }
.lang { margin-left: auto; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; background: #fff; font-weight: 700; font-size: 15px; transition: border-color 160ms var(--ease); }
.lang:hover { border-color: var(--ink); }

/* ---------- the story ----------
   0. the approved hero: headline, the people, the leaves, the tilted status card
   1. the phone in the driver's hand opens until it is the whole screen
   2. inside it Yangon builds itself; the staff ferry and the school van drive, chapter by chapter */
section { padding: clamp(72px, 9vw, 128px) 0; scroll-margin-top: 56px; }
section.story { position: relative; height: 560vh; padding: 0; background: var(--yellow); }
.pin { --artw: min(62vw, calc(94vh * 1.471)); --copy-l: max(var(--gutter), calc((100vw - 1180px) / 2)); position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(circle at 74% 34%, var(--yellow-lit) 0, rgba(255, 222, 51, 0) 46%), var(--yellow); }
/* the words stop short of the people, whatever the window size: the box ends before the cut-out begins and the type scales with the box */
.copy { position: absolute; z-index: 3; left: var(--copy-l); top: 50%; width: min(620px, calc(100vw - 0.92 * var(--artw) - var(--copy-l))); transform: translateY(-54%); container-type: inline-size; }
.copy-in { will-change: transform, opacity; }
.story h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(34px, 14.4cqw, 94px); line-height: 0.93; letter-spacing: -0.035em; }
html[lang="my"] .story h1 { font-size: clamp(28px, 10cqw, 62px); }
.story h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
html[lang="my"] .story h1 .w { padding-top: 0.3em; margin-top: -0.3em; }
.story h1 .w > span { display: inline-block; transform: translateY(115%); animation: rise 900ms var(--ease) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
.story h1 .w > span.up { animation: none; transform: none; }
@keyframes rise { to { transform: none; } }
.story .lead { margin-top: 22px; max-width: 30ch; font-size: clamp(17px, 4.6cqw, 28px); line-height: 1.25; color: var(--ink); }
html[lang="my"] .story .lead { line-height: 1.6; font-size: clamp(16px, 3.9cqw, 23px); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.settle { opacity: 0; transform: translateY(14px); animation: settle 700ms var(--ease) forwards; animation-delay: var(--d, 500ms); }
@keyframes settle { to { opacity: 1; transform: none; } }

.art { position: absolute; z-index: 1; right: -2vw; bottom: 0; width: var(--artw); aspect-ratio: 1602 / 1089; transform-origin: 91.91% 33.9%; will-change: transform; }
/* the picture has straight cut edges at the top and right: both melt into the yellow */
.art img { width: 100%; height: 100%; --m: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.5) 7%, #000 16%), linear-gradient(to left, transparent 0, rgba(0, 0, 0, 0.45) 1.6%, #000 3.6%); -webkit-mask-image: var(--m); mask-image: var(--m); -webkit-mask-composite: source-in; mask-composite: intersect; }
/* the phone's own bezel, and the fingers that hold it, cut from the same picture and laid over the map: the map sits inside the real frame */
.art-top { z-index: 5; visibility: hidden; pointer-events: none; }
.art-top img { position: absolute; left: 87.64%; top: 21.855%; width: 8.739%; height: auto; --m: none; -webkit-mask-image: none; mask-image: none; }
.leaves { position: absolute; z-index: 2; left: -34px; bottom: -44px; width: clamp(150px, 17vw, 270px); will-change: transform; }
/* the phone's screen: a window that grows from the driver's hand until it fills the view */
.win { position: absolute; z-index: 4; inset: 0; visibility: hidden; opacity: 0; background: radial-gradient(circle at 67% 47%, #FFF3AE 0, rgba(255, 243, 174, 0) 58%), var(--yellow); will-change: clip-path; }
/* the sky behind the map: the yellow morning, then an amber dusk, then night */
.sky { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.sky-dusk { background: linear-gradient(180deg, #FFC24A 0%, #F79A4E 48%, #E26D6D 100%); }
.sky-night { background: radial-gradient(circle at 67% 42%, #2A3566 0, #151B3A 55%, #0B0F22 100%); }
#city { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.world #city { cursor: grab; }
.world #city.drag { cursor: grabbing; }

/* the app's status card stays on screen from the first frame to the last */
.status { position: absolute; z-index: 6; left: 43vw; bottom: 9vh; display: flex; align-items: center; gap: 16px; width: min(400px, 86vw); padding: 16px 20px 16px 16px; border-radius: 26px; background: #fff; box-shadow: 0 28px 44px -22px rgba(70, 52, 0, 0.6), 0 2px 6px rgba(18, 18, 18, 0.08); transform: rotate(-4.2deg); transition: left 800ms var(--ease), bottom 800ms var(--ease); }
.world .status { left: 40vw; bottom: 5vh; }
.status.pop { animation: pop 460ms var(--ease); }
@keyframes pop { from { transform: rotate(-4.2deg) scale(0.95); } to { transform: rotate(-4.2deg) scale(1); } }
.status .thumb { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; background: var(--yellow-soft); }
.status .thumb svg { width: 36px; height: 36px; }
.status .body { flex: 1; min-width: 0; }
.status b { display: block; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
html[lang="my"] .status b { font-weight: 700; font-size: 17px; letter-spacing: 0; line-height: 1.6; }
.rail { display: block; position: relative; height: 6px; margin: 14px 8px 6px; border-radius: 3px; background: #DCDCD6; }
.rail i { position: absolute; inset: 0; border-radius: 3px; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); }
.rail s { position: absolute; top: -5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: #fff; border: 4px solid #C2C2BB; transition: border-color 300ms var(--ease); }
.rail s.on { border-color: var(--green); }
/* On the opening view the card is alive before anything is scrolled: it arrives, the little ferry drives, the line
   shows it is live and the first stop calls out. The script adds a slow float and lets it lift and tilt with the scroll. */
.pin:not(.world) .status { animation: cardin 900ms var(--ease) 700ms backwards; will-change: translate, rotate, scale; }
@keyframes cardin { from { opacity: 0; scale: 0.86; translate: 0 34px; } }
.pin:not(.world) .status .thumb svg { animation: drive 620ms ease-in-out infinite alternate; }
@keyframes drive { from { transform: translateY(1.5px) rotate(-1.5deg); } to { transform: translateY(-1.5px) rotate(1.5deg); } }
.rail s { z-index: 1; }
.pin:not(.world) .rail::after { content: ""; position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, rgba(27, 138, 78, 0) 0, rgba(27, 138, 78, 0.55) 50%, rgba(27, 138, 78, 0) 100%) no-repeat; background-size: 34% 100%; animation: sweep 2.4s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
@keyframes sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.pin:not(.world) .rail s.on { animation: ping 1.9s ease-out infinite; }
@keyframes ping { from { box-shadow: 0 0 0 0 rgba(27, 138, 78, 0.5); } 70%, to { box-shadow: 0 0 0 11px rgba(27, 138, 78, 0); } }

/* beside the map: the chapter's words, its people, and where you are in the morning */
.side { position: absolute; z-index: 7; left: max(var(--gutter), calc((100vw - 1180px) / 2)); top: 96px; bottom: 5vh; width: min(34vw, 460px); display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0; transform: translateY(28px); pointer-events: none; transition: opacity 500ms var(--ease), transform 800ms var(--ease); }
.world .side { opacity: 1; transform: none; pointer-events: auto; }
.cap { padding: 24px 26px; border-radius: 28px; background: #fff; box-shadow: var(--lift); }
.cap h2 { font-size: clamp(26px, 2.7vw, 40px); }
html[lang="my"] .cap h2 { font-size: clamp(22px, 2.1vw, 30px); }
.cap p { margin-top: 8px; color: var(--sub); }
.cap.swap > * { animation: capin 520ms var(--ease) both; }
.cap.swap p { animation-delay: 70ms; }
@keyframes capin { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
/* the frame has the pictures' own shape, so each one shows whole; each picture carries its own ground, so the one before never shows through */
.frame { position: relative; flex: 0 1 auto; min-height: 0; aspect-ratio: 1602 / 1089; border-radius: 32px; overflow: hidden; background: var(--yellow-soft); box-shadow: var(--lift); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 36%; background: var(--yellow-soft); clip-path: circle(0% at 50% 55%); will-change: clip-path, transform; }
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chapter { min-height: 48px; padding: 6px 2px 0; border: 0; background: none; text-align: left; font-weight: 700; font-size: 15px; color: var(--on-yellow); transition: color 160ms var(--ease); }
.chapter:hover, .chapter[aria-current] { color: var(--ink); }
.chapter i { display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--yellow-deep); overflow: hidden; }
.chapter b { display: block; height: 100%; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(var(--f, 0)); }
.night .chapter { color: rgba(255, 255, 255, 0.92); }
.night .chapter:hover, .night .chapter[aria-current] { color: #fff; }
.night .chapter i { background: rgba(255, 255, 255, 0.24); }
.night .chapter b { background: var(--yellow); }
.night .hint { color: rgba(255, 255, 255, 0.82); }
.night :focus-visible { outline-color: #fff; }
.hint { position: absolute; z-index: 6; right: 4vw; bottom: 5vh; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--on-yellow); pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease); }
.world .hint { opacity: 1; }
.cue { position: absolute; z-index: 8; left: 22vw; bottom: 3vh; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; pointer-events: none; }

/* with reduced motion the morning is told as three stills under the hero */
.stills { display: none; }
.calm section.story { height: auto; padding-bottom: clamp(48px, 7vw, 96px); }
.calm .pin { position: relative; }
.calm .win, .calm .side, .calm .cue, .calm .hint { display: none; }
.calm .stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.stills figure { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--lift); }
.stills img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 40%; background: var(--yellow-soft); }
.stills figcaption { padding: 20px 22px 24px; }
.stills h2 { font-size: 26px; }
.stills p { margin-top: 6px; color: var(--sub); }

/* ---------- after the night: dawn, the sun coming up behind the next section ---------- */
.dawn { position: relative; height: 52vh; margin-bottom: -44px; background: radial-gradient(circle at 50% 100%, #FFF8D6 0, #FFE566 16%, rgba(255, 212, 0, 0) 44%), linear-gradient(180deg, #10152C 0%, #10152C 8%, #1D2550 26%, #6B3F36 46%, #E0803F 64%, #FFB93F 82%, #FFD400 100%); }
/* the night sky of the story carries on into the top of the band, so there is no line where one ends and the other begins */
.dawn::before { content: ""; position: absolute; inset: 0 0 auto; height: 62%; background: var(--sky, #10152C); -webkit-mask-image: linear-gradient(180deg, #000 0, #000 12%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 12%, transparent 100%); }
.calm .dawn { display: none; }
.roles { position: relative; border-radius: 44px 44px 0 0; background: #fff; }
.calm .roles { border-radius: 0; }

/* ---------- see your ride: each person's real screen ---------- */
.roles-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; }
#pic1 { object-position: 50% 8%; }
#pic2 { object-position: 60% 42%; }
.pills { display: flex; gap: 8px; }
#tab-driver .ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pills button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--warm-2); font-weight: 600; font-size: 16px; white-space: nowrap; flex: none; transition: background-color 160ms var(--ease); }
.pills button:hover { background: #E6E3DA; }
.pills button[aria-selected="true"] { background: var(--yellow); font-weight: 700; box-shadow: inset 0 0 0 2px var(--ink); }
.role-panel { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 88px); align-items: center; margin-top: 40px; }
.shot-stage { position: relative; display: grid; place-items: center; padding: clamp(28px, 3.4vw, 48px) 0; border-radius: 32px; background: #E6E6E1; overflow: hidden; }
/* behind the phone: a grey city map where one ferry keeps driving its route, live. Only the ferry has colour. */
.livemap { position: absolute; inset: 0; width: 100%; height: 100%; }
.lm-road { fill: none; stroke: #F4F4F0; }
.lm-route, .lm-done { fill: none; stroke: #ABABA5; stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; }
.lm-done { stroke: #4A4A45; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lmdraw 24s linear infinite; }
.lm-stop { fill: #fff; stroke: #4A4A45; stroke-width: 5; }
.lm-van { offset-path: path("M50 820V530H190V210H470V370H590V60H720"); offset-rotate: 0deg; animation: lmride 24s linear infinite; }
.lm-ring { fill: none; stroke: #121212; stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; animation: lmping 2.2s var(--ease) infinite; }
@keyframes lmride { to { offset-distance: 100%; } }
@keyframes lmdraw { to { stroke-dashoffset: 0; } }
@keyframes lmping { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(2.6); opacity: 0; } }
.roles:not(.live) .lm-van, .roles:not(.live) .lm-done, .roles:not(.live) .lm-ring { animation-play-state: paused; }
.calm .lm-van { animation: none; offset-distance: 16%; }
.calm .lm-done { animation: none; stroke-dashoffset: 0.84; }
.calm .lm-ring { animation: none; }
/* a phone: the screenshot sits in its screen, and the next person's screen slides in from the side they were picked from */
.device { position: relative; z-index: 1; width: clamp(240px, 25vw, 320px); padding: 9px; border-radius: 44px; background: var(--ink); box-shadow: 0 44px 60px -34px rgba(18, 18, 18, 0.55), 0 2px 6px rgba(18, 18, 18, 0.12), inset 0 0 0 1.5px #3B3B3B; }
.device::before, .device::after { content: ""; position: absolute; width: 3px; background: var(--ink); }
.device::before { left: -3px; top: 19%; height: 34px; border-radius: 2px 0 0 2px; box-shadow: 0 46px 0 var(--ink); }
.device::after { right: -3px; top: 25%; height: 62px; border-radius: 0 2px 2px 0; }
.screen { position: relative; aspect-ratio: 540 / 1135; border-radius: 36px; overflow: hidden; background: #fff; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; }
#role-shot-old { visibility: hidden; }
.screen.swap #role-shot { animation: shotin 560ms var(--ease) both; }
.screen.swap #role-shot-old { visibility: visible; animation: shotout 560ms var(--ease) both; }
@keyframes shotin { from { transform: translateX(calc(var(--dir, 1) * 100%)); } }
@keyframes shotout { to { transform: translateX(calc(var(--dir, 1) * -100%)); } }
.role-copy h3 { font-size: clamp(28px, 3vw, 42px); line-height: 1.05; }
html[lang="my"] .role-copy h3 { font-size: clamp(23px, 2.3vw, 32px); }
.hair { list-style: none; margin-top: 22px; }
.hair > * { padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; }
.hair > :last-child { border-bottom: 1px solid var(--line); }

/* ---------- built for Yangon: the whole street, wide; the heading is a tab on its corner; four facts stand under it ---------- */
.yangon { background: var(--warm); }
.photo { position: relative; border-radius: 36px; overflow: hidden; aspect-ratio: 1800 / 858; background: var(--yellow-soft); box-shadow: 0 40px 60px -40px rgba(70, 52, 0, 0.55); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; transform: scale(var(--z, 1)) translateY(var(--y, 0)); will-change: transform; }
/* the card from the top of the page, here beside the ferry it speaks of */
.chip { position: absolute; top: 9%; right: 13%; display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 22px; background: #fff; box-shadow: 0 24px 40px -20px rgba(40, 30, 0, 0.6), 0 2px 6px rgba(18, 18, 18, 0.1); transform: rotate(-4deg); transition: opacity 600ms var(--ease) 500ms, transform 800ms var(--ease) 500ms; }
.js .yangon:not(.in) .chip { opacity: 0; transform: rotate(-4deg) translateY(18px); }
.chip .thumb { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--yellow-soft); }
.chip .thumb svg { width: 30px; height: 30px; }
.chip b { display: block; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
html[lang="my"] .chip b { font-weight: 700; font-size: 15.5px; letter-spacing: 0; line-height: 1.6; }
.chip .rail { margin: 10px 8px 4px; min-width: 150px; }
.yg-title { position: relative; z-index: 1; display: inline-block; max-width: min(680px, 88%); margin: -62px 0 0 clamp(14px, 3vw, 40px); padding: 22px 32px 24px; border-radius: 28px; background: #fff; box-shadow: var(--lift); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.8vw, 40px); margin-top: clamp(36px, 4.6vw, 60px); }
.facts > div { padding-top: 22px; border-top: 2px solid var(--ink); transition: opacity 600ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i) * 90ms + 120ms); }
.js .yangon:not(.in) .facts > div { opacity: 0; transform: translateY(20px); }
.facts .thumb { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 15px; background: var(--yellow); font-family: "Noto Sans Myanmar", var(--sans); font-weight: 700; font-size: 24px; line-height: 1; }
.facts .thumb .ic { width: 26px; height: 26px; }
.facts dt { font-weight: 800; font-size: 20px; line-height: 1.25; }
html[lang="my"] .facts dt { font-weight: 700; font-size: 18px; line-height: 1.6; }
.facts dd { color: var(--sub); margin-top: 6px; }

/* ---------- safety: one evening, and the clock follows the scroll ----------
   The section is the evening: --e runs 0 (16:00, the last of the dusk on the horizon) to 1 (22:12, night and stars).
   Each line of the log is a window that lights when its hour comes. */
.safety { position: relative; background: radial-gradient(circle at 80% -10%, #2A3566 0, #151B3A 46%, #0E1228 100%); color: #fff; overflow: clip; }
.safety::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(180deg, rgba(247, 154, 78, 0.42) 0, rgba(247, 154, 78, 0) 100%); opacity: calc(1 - var(--e, 1)); pointer-events: none; }
.safety::after { content: ""; position: absolute; inset: 0; opacity: calc(var(--e, 1) * 0.9); pointer-events: none; background-image: radial-gradient(circle, #fff 0 1px, transparent 1.6px), radial-gradient(circle, #fff 0 1.3px, transparent 2px), radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px); background-size: 233px 197px, 389px 311px, 157px 263px; background-position: 40px 30px, 170px 120px, 96px 210px; }
.safety .wrap { position: relative; z-index: 1; }
.safety :focus-visible { outline-color: #fff; }
.safety-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.safety-side { position: sticky; top: 120px; }
.safety-side .lead { margin-top: 18px; color: var(--night-sub); }
.clock { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 10px 20px 10px 14px; border-radius: 18px; background: #232B52; color: #fff; font-family: var(--head); font-weight: 800; font-size: 34px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clock small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--night-sub); letter-spacing: 0; }
/* the sun on the clock wanes into a crescent moon as the evening goes */
.orb { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #FFD400; box-shadow: inset calc(var(--e, 1) * -10px) calc(var(--e, 1) * -3px) 0 0 #232B52, 0 0 calc(18px - var(--e, 1) * 8px) rgba(255, 212, 0, 0.55); }
.log { position: relative; padding: 8px 0 8px 46px; }
.log::before, .log .fill { content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); }
.log .fill { background: var(--yellow); transform: scaleY(var(--p, 1)); transform-origin: top; }
.log ol { list-style: none; display: grid; gap: 18px; }
.log li { position: relative; padding: 22px 24px; border-radius: 22px; border: 1.5px solid #fff; background: #fff; color: var(--ink); transition: background-color 500ms var(--ease), border-color 500ms var(--ease), color 500ms var(--ease); }
.js .log li:not(.in) { background: transparent; border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.62); }
.log li::before { content: ""; position: absolute; left: -42.5px; top: 28px; width: 22px; height: 22px; border-radius: 50%; background: #151B3A; border: 5px solid var(--yellow); transition: border-color 500ms var(--ease); }
.js .log li:not(.in)::before { border-color: rgba(255, 255, 255, 0.3); }
.log time { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.tag { display: inline-flex; align-items: center; margin-left: 10px; padding: 3px 10px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.ok .tag { background: var(--green-soft); color: var(--green-ink); }
.bad .tag { background: var(--red-soft); color: var(--red-ink); }
.warn .tag { background: var(--amber-soft); color: var(--amber-ink); }
.log li.bad.in { border-color: var(--red); }
.log b { display: block; margin-top: 10px; font-size: 19px; font-weight: 800; }
.log p { margin-top: 4px; color: var(--sub); font-size: 16px; transition: color 500ms var(--ease); }
.js .log li:not(.in) p { color: inherit; }
.note { margin: 16px 0 0 46px; font-size: 14px; color: var(--night-sub); }

/* ---------- questions ---------- */
.faq { background: var(--warm); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); }
.q { border-top: 1px solid #DDDDD7; }
.q:last-child { border-bottom: 1px solid #DDDDD7; }
.q button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 22px 0; border: 0; background: none; text-align: left; font-weight: 800; font-size: 19px; }
.q button svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; transition: transform 300ms var(--ease); }
.q button[aria-expanded="true"] svg { transform: rotate(135deg); }
.q .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease); }
.q button[aria-expanded="true"] + .a { grid-template-rows: 1fr; }
.q .a p { overflow: hidden; color: var(--sub); max-width: 62ch; }
.q button[aria-expanded="true"] + .a p { padding-bottom: 22px; }

/* ---------- pilot: the form is a white sheet on the yellow ---------- */
.faq { padding-bottom: calc(clamp(72px, 9vw, 128px) + 44px); }
.pilot { position: relative; margin-top: -44px; border-radius: 44px 44px 0 0; background: radial-gradient(circle at 78% 8%, #FFE566 0, rgba(255, 229, 102, 0) 46%), var(--yellow); overflow: hidden; }
.pilot h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
html[lang="my"] .pilot h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.5; }
.pilot-leaves { position: absolute; right: -30px; bottom: -40px; width: clamp(120px, 14vw, 220px); transform: scaleX(-1); } /* on the right, clear of the route's stops */
.pilot-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pilot .lead { margin-top: 18px; color: var(--ink); }
/* the three days of the pilot as stops on a ferry route: the line fills and each stop turns on as the page reaches it */
.days { position: relative; list-style: none; margin-top: 36px; padding-left: 44px; }
.days::before, .days::after { content: ""; position: absolute; left: 11px; top: 10px; bottom: 34px; width: 4px; border-radius: 2px; background: rgba(18, 18, 18, 0.16); }
.days::after { background: var(--ink); transform: scaleY(var(--p, 1)); transform-origin: top; }
.days li { position: relative; padding-bottom: 28px; }
.days li::before { content: ""; position: absolute; z-index: 1; left: -44px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 6px solid var(--ink); transition: border-color 400ms var(--ease), background-color 400ms var(--ease); }
.js .days li:not(.in)::before { background: #fff; border-color: #55554F; }
.days .day { display: inline-block; padding: 3px 14px; border-radius: 999px; background: var(--ink); color: var(--yellow); font-family: var(--head); font-weight: 800; font-size: 16px; }
html[lang="my"] .days .day { font-weight: 700; font-size: 14.5px; line-height: 1.7; }
.days li > span:last-child { display: block; margin-top: 8px; font-size: 18px; max-width: 46ch; }
.days span span { color: var(--on-yellow); }
.sheet { padding: clamp(22px, 3vw, 40px); border-radius: 32px; background: #fff; box-shadow: 0 50px 70px -38px rgba(74, 56, 0, 0.75), 0 2px 8px rgba(74, 56, 0, 0.12); }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.field .opt { font-weight: 500; color: var(--sub); }
.field input, .field textarea { display: block; width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #8C8C86; border-radius: 14px; background: var(--warm); transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #6F6F69; }
.field input:hover, .field textarea:hover { border-color: #55554F; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); background: #fff; }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFF7F7; }
.field .err { margin-top: 6px; font-size: 14.5px; font-weight: 600; color: var(--red-ink); }
.field .err:empty { display: none; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sheet .btn { width: 100%; }
.form-msg { margin-top: 14px; font-weight: 600; color: var(--sub); }
.form-msg:empty { display: none; }

.foot { background: var(--ink); color: #fff; padding: 44px 0; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot .brand { font-size: 22px; }
.foot small { color: var(--night-sub); font-size: 14px; }
.foot :focus-visible { outline-color: #fff; }
@media (max-width: 899px) { .in-world .badge { opacity: 0; } }
section[tabindex="-1"]:focus { outline: none; } /* a section that a link landed on takes focus without a ring */
/* a link inside the page: a sheet of the city map closes over the page, the little ferry drives to its stop, and the map
   parts along the route to show the part you asked for. Only opacity and transform move. */
.veil { position: fixed; z-index: 29; inset: 0; overflow: hidden; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 320ms; }
.veil.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 320ms cubic-bezier(0.4, 0, 0.2, 1); }
.vh { position: absolute; left: 0; width: 100%; height: calc(50% + 1px); background-color: var(--warm); background-image: linear-gradient(#ECECE6 0 0), linear-gradient(#ECECE6 0 0), repeating-linear-gradient(0deg, transparent 0 86px, #ECECE6 86px 96px), repeating-linear-gradient(90deg, transparent 0 126px, #ECECE6 126px 140px); background-size: 100% 0, 100% 0, auto, auto; transition: transform 1100ms cubic-bezier(0.7, 0, 0.2, 1); will-change: transform; backface-visibility: hidden; }
.vh-up { top: 0; z-index: 1; background-position: 0 0, 0 0, 50% 100%, 50% 0; }
.vh-down { bottom: 0; background-position: 0 0, 0 0, 50% 0, 50% 0; }
.veil.lift .vh-up { transform: translateY(calc(-100% - 48px)); }
.veil.lift .vh-down { transform: translateY(101%); }
.v-route { position: absolute; left: 50%; bottom: -3px; width: 176px; height: 6px; margin-left: -88px; border-radius: 3px; background: #C9C9C3; }
.v-done { position: absolute; inset: 0; border-radius: 3px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }
.v-stop { position: absolute; top: -6px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink); }
.v-stop + .v-stop { left: 100%; }
.v-van { position: absolute; left: -19px; top: -16px; width: 38px; height: 38px; will-change: transform; }
.veil.on .v-van { animation: vride 700ms cubic-bezier(0.5, 0, 0.15, 1) 160ms both; }
.veil.on .v-done { animation: vdone 700ms cubic-bezier(0.5, 0, 0.15, 1) 160ms both; will-change: transform; }
@keyframes vride { to { transform: translateX(176px); } }
@keyframes vdone { to { transform: scaleX(1); } }
.veil.noanim, .veil.noanim * { transition: none !important; animation: none !important; }
.arrive h2 { animation: arrive 700ms var(--ease) 520ms both; }
@keyframes arrive { from { opacity: 0.6; transform: translateY(10px); } }
.badge { transition: opacity 300ms; position: fixed; z-index: 40; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; pointer-events: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .copy { left: var(--gutter); right: var(--gutter); top: 84px; width: auto; transform: none; }
  .story .lead { margin-top: 14px; }
  .cta-row { margin-top: 20px; gap: 14px; }
  .pin { --artw: 114vw; }
  .art { left: -7vw; right: -7vw; width: auto; bottom: 8vh; }
  .copy { container-type: normal; }
  .story h1 { font-size: clamp(34px, 11vw, 48px); }
  html[lang="my"] .story h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .story .lead, html[lang="my"] .story .lead { font-size: 17px; }
  .side { justify-content: flex-start; }
  .leaves, .cue, .hint { display: none; }
  .status { left: var(--gutter); bottom: 3vh; width: min(340px, 88vw); padding: 12px 16px 12px 12px; border-radius: 20px; transform: rotate(-3deg); transition: opacity 300ms var(--ease); }
  .world .status { left: var(--gutter); bottom: calc(100% - 56px - 41vh + 8px); width: auto; max-width: 76vw; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 16px; transition: bottom 800ms var(--ease); }
  .world .status .thumb { width: 38px; height: 38px; border-radius: 11px; }
  .world .status .thumb svg { width: 26px; height: 26px; }
  .world .status b, html[lang="my"] .world .status b { font-size: 15px; }
  .world .status .rail { height: 4px; margin: 8px 6px 4px; min-width: 150px; }
  .world .status .rail s { top: -4px; width: 12px; height: 12px; margin-left: -6px; border-width: 3px; }
  @keyframes pop { from { transform: rotate(-3deg) scale(0.95); } to { transform: rotate(-3deg) scale(1); } }
  .status .thumb { width: 50px; height: 50px; }
  .side { left: var(--gutter); right: var(--gutter); width: auto; top: calc(56px + 41vh); bottom: 10px; gap: 8px; }
  .cap { padding: 14px 16px; border-radius: 20px; }
  .cap h2, html[lang="my"] .cap h2 { font-size: 22px; }
  .cap p { margin-top: 3px; font-size: 14.5px; line-height: 1.4; }
  html[lang="my"] .cap p { line-height: 1.6; }
  .frame { border-radius: 22px; }
  .chapter { font-size: 14px; }
  .calm .stills { grid-template-columns: 1fr; }
  .roles-head { align-items: stretch; }
  .pills { overflow-x: auto; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pills button { padding: 0 18px; }
  .role-panel, .yangon-grid, .safety-grid, .faq-grid, .pilot-grid { grid-template-columns: 1fr; }
  .safety-side { position: static; }
  .photo { aspect-ratio: 4 / 3.3; border-radius: 26px; }
  .photo img { object-position: 60% 50%; }
  .chip { top: 5%; right: 5%; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; }
  .chip .thumb { width: 38px; height: 38px; border-radius: 11px; }
  .chip .thumb svg { width: 24px; height: 24px; }
  .chip b, html[lang="my"] .chip b { font-size: 14.5px; }
  .chip .rail { height: 4px; margin: 7px 6px 3px; min-width: 120px; }
  .chip .rail s { top: -4px; width: 12px; height: 12px; margin-left: -6px; border-width: 3px; }
  .yg-title { margin: -34px 0 0 10px; padding: 14px 18px 16px; border-radius: 20px; max-width: 94%; }
  .facts { grid-template-columns: 1fr; margin-top: 28px; }
  .facts > div { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 18px 0; border-top-width: 1.5px; }
  .facts .thumb { grid-row: span 2; margin: 0; }
  .hair > * { font-size: 17px; }
  .field-pair { grid-template-columns: 1fr; gap: 0; }
  .pilot-leaves { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .story h1 .w > span, .settle { opacity: 1; transform: none; }
}

/* ---------- the parts every public page has: skip link, sign in, the invite line, what the form says back, the footer ---------- */
.skip { position: absolute; left: 12px; top: -80px; z-index: 70; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.signin { display: inline-flex; align-items: center; min-height: 44px; margin-left: 16px; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: underline transparent 2px; text-underline-offset: 7px; transition: text-decoration-color 160ms var(--ease); }
.signin:hover { text-decoration-color: currentColor; }
.invite-line { margin-top: 24px; color: var(--sub); font-size: 16px; }
.invite-line a { font-weight: 700; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sheet .btn[disabled] { background: #55554F; }
.form-alt { margin-top: 14px; font-size: 15px; color: var(--sub); }
.addr { font-weight: 700; color: var(--ink); }
.sent { text-align: center; padding: 24px 8px; }
.sent:focus { outline: none; }
.sent-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); }
.sent-ic .ic { width: 28px; height: 28px; stroke-width: 2.6; }
.sent h3 { margin-top: 16px; font-family: var(--head); font-size: 28px; line-height: 1.15; }
html[lang="my"] .sent h3 { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.6; }
.sent p { margin: 8px 0 20px; color: var(--sub); }
.btn-line { min-height: 48px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font-weight: 700; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.btn-line:hover { background: var(--ink); color: #fff; }
.foot { padding: clamp(48px, 6vw, 80px) 0 28px; }
.foot .foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.foot-tag { margin-top: 18px; font-family: var(--head); font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
html[lang="my"] .foot-tag { font-family: var(--sans); font-weight: 700; font-size: 22px; line-height: 1.6; letter-spacing: 0; }
.foot-sub { margin-top: 8px; color: var(--night-sub); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot .foot-links h2, html[lang="my"] .foot .foot-links h2 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0; line-height: 1.5; color: var(--night-sub); }
.foot-links ul { list-style: none; margin-top: 10px; }
.foot-links li { display: flex; align-items: center; min-height: 44px; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot .addr { color: #fff; }
.foot .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #2E2E2E; font-size: 14px; color: var(--night-sub); }
@media (max-width: 899px) {
  .signin { margin-left: 10px; font-size: 14.5px; }
  .foot .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
