/* ==========================================================================
   Higlob Landing — "Dari kaki Merapi, ke negeri matahari terbit"
   Washi paper + ink + Higlob blue, hinomaru red as single accent, gold for award.
   ========================================================================== */

:root {
    --washi: #f4f1ea;
    --paper: #fbf9f4;
    --ink: #15171c;
    --ink-2: #4a4f59;
    --ink-3: #8a8f98;
    --line: rgba(21, 23, 28, 0.12);
    --blue: #1469a8;
    --blue-deep: #0b2f4f;
    --red: #d7262e;
    --gold: #c9a24a;
    --gold-2: #f1dca0;

    --f-display: "Instrument Serif", "Shippori Mincho", Georgia, serif;
    --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --f-jp: "Shippori Mincho", "Hiragino Mincho ProN", serif;

    --gutter: clamp(16px, 4vw, 48px);
    --radius: 22px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.lp {
    margin: 0;
    background: var(--washi);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Japanese UI: serif display fallback reads better in Mincho */
body.is-jp {
    --f-display: "Shippori Mincho", serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.skip {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

.skip:focus {
    left: 8px;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

.wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.muted {
    color: var(--ink-2);
}

/* Grain overlay — gives the "paper" feel */
body.lp::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.eyebrow--gold {
    color: var(--gold);
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.7);
}

.h2 {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(36px, 5.6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
}

.h2--light {
    color: #fff;
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.section-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.link {
    font-weight: 600;
    color: var(--blue);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

/* ---------- Buttons ---------- */
.btn {
    --bg: var(--ink);
    --fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--bg);
    color: var(--fg);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -12px rgba(20, 105, 168, 0.55);
}

.btn--sm {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.btn--blue {
    --bg: var(--blue);
}

.btn--ghost {
    --bg: rgba(255, 255, 255, 0.55);
    --fg: var(--ink);
    border-color: var(--line);
    backdrop-filter: blur(8px);
}

.btn--light {
    --bg: #fff;
    --fg: var(--ink);
}

.btn--ghost-light {
    --bg: transparent;
    --fg: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.pill--gold {
    background: linear-gradient(90deg, #fff8e4, #fff);
    border-color: rgba(201, 162, 74, 0.45);
    color: #6b5420;
}

.pill__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.2);
}

/* ---------- Reveal ---------- */
.reveal,
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: var(--d, 0s);
}

.reveal.is-in,
.reveal-up.is-in {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    width: calc(100% - 2 * var(--gutter));
    max-width: 1240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 10px 10px 22px;
    border-radius: 999px;
    background: rgba(251, 249, 244, 0.72);
    border: 1px solid var(--line);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    transition: transform 0.5s var(--ease), box-shadow 0.4s;
}

.nav.is-hidden {
    transform: translate(-50%, -140%);
}

.nav.is-scrolled {
    box-shadow: 0 12px 40px -20px rgba(21, 23, 28, 0.35);
}

.nav__logo img {
    height: 30px;
    width: auto;
}

@media (max-width: 760px) {
    .nav__logo img {
        height: 24px;
    }
}

.nav__links {
    display: flex;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
}

.nav__links a {
    position: relative;
    color: var(--ink-2);
    transition: color 0.2s;
}

.nav__links a:hover {
    color: var(--ink);
}

.nav__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang {
    display: flex;
    padding: 3px;
    border-radius: 999px;
    background: rgba(21, 23, 28, 0.06);
    font-size: 12px;
    font-weight: 600;
}

.lang a {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ink-3);
}

.lang a.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.nav__burger {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: var(--ink);
    cursor: pointer;
    position: relative;
}

.nav__burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.4s var(--ease);
}

.nav__burger span:first-child {
    top: 16px;
}

.nav__burger span:last-child {
    top: 24px;
}

.nav__burger[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.drawer {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: var(--washi);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 40px;
    clip-path: circle(0 at calc(100% - 44px) 40px);
    transition: clip-path 0.7s var(--ease);
    visibility: hidden;
}

.drawer.is-open {
    clip-path: circle(150% at calc(100% - 44px) 40px);
    visibility: visible;
}

.drawer a:not(.btn) {
    font-family: var(--f-display);
    font-size: 44px;
    line-height: 1.2;
}

.drawer .btn {
    margin-top: 24px;
    align-self: flex-start;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(120% 70% at 50% 100%, #e8eef3 0%, transparent 60%),
        linear-gradient(180deg, var(--paper) 0%, var(--washi) 100%);
    isolation: isolate;
}

.hero__canvas,
.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video {
    object-fit: cover;
    opacity: 0.35;
    mix-blend-mode: multiply;
}

/* Static fallback sun — visible until WebGL takes over */
.hero__sun {
    position: absolute;
    z-index: -2;
    right: 14%;
    top: 22%;
    width: clamp(120px, 18vw, 260px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ff5a4f, var(--red));
    filter: blur(0.5px);
    opacity: 0.9;
    transition: opacity 1s;
}

.hero.has-webgl .hero__sun {
    opacity: 0;
}

.hero__inner {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 120px var(--gutter) 160px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    pointer-events: none;
}

.hero__inner a {
    pointer-events: auto;
}

.hero .pill {
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(46px, 7.2vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    max-width: 13ch;
    margin-bottom: 26px;
}

.hero__title .line {
    display: block;
}

.hero__title .is-italic {
    font-style: italic;
    color: var(--blue);
}

body.is-jp .hero__title {
    font-size: clamp(40px, 7vw, 104px);
    line-height: 1.1;
    max-width: none;
}

body.is-jp .hero__title .is-italic {
    font-style: normal;
}

.hero__sub {
    max-width: 520px;
    font-size: clamp(16px, 1.4vw, 18px);
    color: var(--ink-2);
    margin-bottom: 32px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 var(--gutter) 28px;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    font-size: 13px;
    color: var(--ink-2);
}

.hero__note {
    max-width: 340px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dot-live {
    flex: none;
    margin-top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(20, 105, 168, 0.5); }
    100% { box-shadow: 0 0 0 12px rgba(20, 105, 168, 0); }
}

/* Vertical JP labels near the two peaks */
.hero__jp {
    position: absolute;
    writing-mode: vertical-rl;
    font-family: var(--f-jp);
    font-size: 13px;
    letter-spacing: 0.4em;
    color: var(--ink-3);
    top: 46%;
    z-index: 0;
}

.hero__jp--l { left: 2.5%; }
.hero__jp--r { right: 2.5%; }

/* ==========================================================================
   TICKER
   ========================================================================== */
.ticker {
    overflow: hidden;
    background: var(--ink);
    color: #fff;
    padding: 16px 0;
    font-size: 14px;
    font-weight: 500;
}

.ticker__track {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.ticker__track b {
    color: var(--red);
    font-weight: 400;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   ORIGIN — cinematic video band (frame opens up as it scrolls in)
   ========================================================================== */
.origin {
    --p: 1; /* scroll progress 0→1, set by JS; 1 = fully open (no-JS fallback) */
    padding: clamp(24px, 4vw, 48px) 0 0;
    background: var(--washi);
}

.origin__frame {
    position: relative;
    height: min(88svh, 920px);
    min-height: 420px;
    overflow: hidden;
    background: #e9e2d4;
    /* Starts as an inset rounded card and expands to full-bleed */
    clip-path: inset(0 calc((1 - var(--p)) * 7%) round calc((1 - var(--p)) * 36px));
    will-change: clip-path;
}

.origin__media {
    position: absolute;
    inset: 0;
}

.origin__media > img,
.origin__media > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 55%;
    /* Gentle zoom-out while the frame opens */
    transform: scale(calc(1.14 - var(--p) * 0.14));
}

.origin__media > video {
    opacity: 0;
    transition: opacity 1.2s linear;
}

.origin__media > video.is-active {
    opacity: 1;
}

.origin__poster {
    transition: opacity 0.8s;
}

.origin__media.is-playing .origin__poster {
    opacity: 0;
}

.origin__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(12, 16, 22, 0.62) 0%, rgba(12, 16, 22, 0.18) 38%, transparent 60%),
        linear-gradient(to bottom, var(--washi) 0%, transparent 14%);
    pointer-events: none;
}

.origin__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(28px, 5vw, 64px);
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    color: #fff;
}

.origin__caption .eyebrow {
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.origin__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(40px, 6.4vw, 96px);
    line-height: 1;
    letter-spacing: -0.01em;
    max-width: 12ch;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

body.is-jp .origin__title {
    line-height: 1.2;
    max-width: none;
}

.origin__geo {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(32px, 5vw, 72px);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

@media (max-width: 760px) {
    .origin__frame {
        height: 72svh;
    }

    .origin__geo {
        display: none;
    }
}

/* ==========================================================================
   STORY
   ========================================================================== */
.story {
    padding: clamp(96px, 14vw, 180px) 0;
}

.story__grid {
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    gap: clamp(32px, 6vw, 96px);
}

.story__side {
    position: relative;
}

.story__kanji {
    display: block;
    font-family: var(--f-jp);
    font-size: clamp(80px, 12vw, 180px);
    line-height: 1;
    writing-mode: vertical-rl;
    color: transparent;
    -webkit-text-stroke: 1px rgba(21, 23, 28, 0.25);
    position: sticky;
    top: 120px;
}

.story__text {
    font-family: var(--f-display);
    font-size: clamp(26px, 3.4vw, 46px);
    line-height: 1.22;
    letter-spacing: -0.005em;
}

body.is-jp .story__text {
    font-size: clamp(22px, 2.6vw, 36px);
    line-height: 1.6;
}

/* Words dim until scrolled past */
.story__text .w {
    opacity: 0.16;
    transition: opacity 0.4s;
}

.story__text .w.is-lit {
    opacity: 1;
}

.story__sign {
    margin-top: 28px;
    color: var(--ink-3);
    font-size: 14px;
}

.facts {
    margin: clamp(48px, 6vw, 80px) 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.fact {
    padding: 22px 20px 0 0;
}

.fact + .fact {
    padding-left: 20px;
    border-left: 1px solid var(--line);
}

.fact dt {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.fact dd {
    margin: 0;
    font-family: var(--f-display);
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1;
}

.fact dd.fact__mono {
    font-family: var(--f-body);
    font-weight: 600;
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.4;
    padding-top: 10px;
}

/* ==========================================================================
   JOURNEY (horizontal pinned on desktop)
   ========================================================================== */
.journey {
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.journey__pin {
    padding: clamp(80px, 10vw, 120px) 0;
}

.journey__head {
    margin-bottom: 48px;
}

.journey__rail {
    position: relative;
    display: flex;
    gap: 20px;
    padding: 36px var(--gutter) 8px;
    width: max-content;
}

.journey__line {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: 0;
    height: 2px;
    background: var(--line);
}

.journey__line i {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform-origin: left;
    transform: scaleX(var(--p, 0));
}

.quest {
    position: relative;
    width: min(360px, 78vw);
    flex: none;
    padding: 28px;
    border-radius: var(--radius);
    background: var(--washi);
    border: 1px solid var(--line);
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.quest::before {
    content: "";
    position: absolute;
    top: -43px;
    left: 28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--blue);
}

.quest:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -30px rgba(21, 23, 28, 0.35);
}

.quest__lv {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--blue);
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(20, 105, 168, 0.08);
}

.quest__year {
    font-family: var(--f-display);
    font-size: 64px;
    line-height: 1;
    color: var(--ink-3);
}

.quest__title {
    font-size: 20px;
    font-weight: 700;
    margin: 18px 0 6px;
}

.quest__num {
    font-family: var(--f-display);
    font-size: 44px;
    line-height: 1.1;
    color: var(--blue);
}

.quest__num small {
    font-family: var(--f-body);
    font-size: 14px;
    color: var(--ink-2);
}

.quest__desc {
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 15px;
}

.quest--gold {
    background: linear-gradient(160deg, #1b1d22, #0e0f12);
    color: #fff;
    border-color: transparent;
}

.quest--gold::before {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(201, 162, 74, 0.2);
}

.quest--gold .quest__year {
    color: var(--gold);
}

.quest--gold .quest__num {
    color: var(--gold-2);
}

.quest--gold .quest__desc,
.quest--gold .quest__num small {
    color: rgba(255, 255, 255, 0.7);
}

.quest--gold .quest__lv {
    color: var(--gold);
    background: rgba(201, 162, 74, 0.14);
}

/* ==========================================================================
   STATS / CHARACTER SHEET
   ========================================================================== */
.stats {
    padding: clamp(96px, 12vw, 160px) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    perspective: 1000px;
}

.totem {
    --rx: 0deg;
    --ry: 0deg;
    transform-style: preserve-3d;
}

.totem__inner {
    position: relative;
    height: 100%;
    min-height: 420px;
    padding: 26px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--paper), #efeae0);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
    transform-style: preserve-3d;
}

.totem:hover .totem__inner {
    box-shadow: 0 40px 80px -40px rgba(20, 105, 168, 0.5);
}

.totem__kanji {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 150px;
    line-height: 1;
    color: var(--ink);
    transform: translateZ(40px);
    transition: color 0.4s;
}

.totem:hover .totem__kanji {
    color: var(--blue);
}

.totem:nth-child(4):hover .totem__kanji {
    color: var(--red);
}

.totem__body {
    transform: translateZ(20px);
}

.totem h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.totem p {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 18px;
}

.meter {
    height: 6px;
    border-radius: 6px;
    background: rgba(21, 23, 28, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.meter i {
    display: block;
    height: 100%;
    width: var(--w);
    background: linear-gradient(90deg, var(--blue), #4aa3e0);
    border-radius: inherit;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.6s var(--ease) 0.3s;
}

.totem.is-in .meter i {
    transform: scaleX(1);
}

.totem__lvl {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.stats__note {
    margin-top: 28px;
    font-size: 14px;
    color: var(--ink-2);
    padding: 14px 18px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    display: inline-block;
}

/* ==========================================================================
   PATHS
   ========================================================================== */
.paths {
    padding: 0 0 clamp(96px, 12vw, 160px);
}

.torii {
    font-size: 64px;
    line-height: 1;
    color: var(--red);
    filter: grayscale(0.1);
}

.paths__list {
    border-top: 1px solid var(--ink);
}

.path {
    display: grid;
    grid-template-columns: 60px 1.2fr 1.4fr 48px;
    align-items: center;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
    position: relative;
    isolation: isolate;
    transition: padding 0.5s var(--ease), color 0.4s;
}

/* Ink fill sweeps in on hover */
.path::before {
    content: "";
    position: absolute;
    inset: 0 calc(-1 * var(--gutter));
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s var(--ease);
    z-index: -1;
}

.path:hover {
    color: #fff;
    padding-left: 16px;
}

.path:hover::before {
    transform: scaleY(1);
}

.path__no {
    font-family: var(--f-display);
    font-size: 22px;
    color: var(--ink-3);
}

.path__main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.path__tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}

.path:hover .path__tag {
    color: #7fc0ef;
}

.path__title {
    font-family: var(--f-display);
    font-size: clamp(30px, 3.6vw, 48px);
    line-height: 1.05;
}

.path__desc {
    color: var(--ink-2);
    font-size: 15px;
    transition: color 0.4s;
}

.path:hover .path__desc {
    color: rgba(255, 255, 255, 0.7);
}

.path__go {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    font-size: 18px;
    transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s;
}

.path:hover .path__go {
    background: var(--red);
    border-color: var(--red);
    transform: rotate(-45deg);
}

.fields {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.fields__label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 8px;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-size: 14px;
}

/* ==========================================================================
   AWARD
   ========================================================================== */
.award {
    position: relative;
    background: radial-gradient(80% 80% at 70% 50%, #1d2633 0%, #0d0f13 70%);
    color: #fff;
    padding: clamp(96px, 12vw, 160px) 0;
    overflow: hidden;
}

.award__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
}

.award__desc {
    color: rgba(255, 255, 255, 0.72);
    max-width: 480px;
    font-size: 17px;
}

.award__rank {
    margin-top: 40px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.award__rank span {
    font-family: var(--f-display);
    font-size: clamp(140px, 18vw, 240px);
    line-height: 0.75;
    background: linear-gradient(180deg, var(--gold-2), var(--gold) 60%, #7c5f1e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.award__rank small {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1.5;
    padding-bottom: 10px;
}

.award__stage {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 900px;
}

.award__stage img {
    position: relative;
    width: min(260px, 60vw);
    height: auto;
    border-radius: 16px;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform 0.4s var(--ease);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 162, 74, 0.35);
}

.award__halo {
    position: absolute;
    width: 120%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, rgba(201, 162, 74, 0.35), transparent 30%, rgba(201, 162, 74, 0.2), transparent 60%);
    filter: blur(40px);
    animation: spin 14s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   VOICES
   ========================================================================== */
.voices {
    padding: clamp(96px, 12vw, 160px) 0;
}

.voices__track {
    --pad: var(--gutter);
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* scroll-padding keeps snap from pulling the first card past the gutter */
    scroll-padding-inline: var(--pad);
    padding: 4px var(--pad) 24px;
    scrollbar-width: none;
    cursor: grab;
}

.voices__track::-webkit-scrollbar {
    display: none;
}

.voices__track.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

/* Align first card with .wrap on wide screens */
@media (min-width: 1240px) {
    .voices__track {
        --pad: calc((100vw - 1240px) / 2 + var(--gutter));
    }
}

.voice {
    flex: none;
    width: min(440px, 84vw);
    margin: 0;
    scroll-snap-align: start;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    user-select: none;
}

.voice blockquote {
    margin: 0;
    font-family: var(--f-display);
    font-size: 22px;
    line-height: 1.35;
}

body.is-jp .voice blockquote {
    font-size: 18px;
    line-height: 1.7;
}

.voice blockquote::before {
    content: "“";
    display: block;
    font-size: 64px;
    line-height: 0.6;
    color: var(--red);
    margin-bottom: 8px;
}

.voice figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
}

.voice img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
}

.voice figcaption span {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.voice small {
    color: var(--ink-3);
}

.voice .voice__flag {
    margin-left: auto;
    font-size: 14px;
    white-space: nowrap;
}

/* ==========================================================================
   GALLERY (infinite drift)
   ========================================================================== */
.gallery {
    padding-bottom: clamp(96px, 12vw, 160px);
}

.gallery__strip {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gallery__track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 60s linear infinite;
}

.gallery__strip:hover .gallery__track {
    animation-play-state: paused;
}

.gallery__track img {
    height: clamp(200px, 28vw, 340px);
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.gallery__track img:nth-child(odd) {
    aspect-ratio: 3 / 4;
}

/* ==========================================================================
   NEWS
   ========================================================================== */
.news {
    padding-bottom: clamp(96px, 12vw, 160px);
}

.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.post {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.post__img {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e0d5;
}

.post__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.post:hover .post__img img {
    transform: scale(1.05);
}

.post__meta {
    font-size: 12px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post__title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
    padding-bottom: clamp(96px, 12vw, 160px);
}

.faq__grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq details:first-child {
    border-top: 1px solid var(--line);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary i {
    flex: none;
    position: relative;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line);
}

.faq summary i::before,
.faq summary i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.5px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform 0.3s var(--ease);
}

.faq summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] summary i::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq details p {
    padding: 0 48px 24px 0;
    color: var(--ink-2);
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */
.final {
    position: relative;
    overflow: hidden;
    background: var(--blue-deep);
    color: #fff;
    padding: clamp(110px, 16vw, 220px) 0;
    text-align: center;
    isolation: isolate;
}

.final__orb {
    position: absolute;
    left: 50%;
    bottom: -60%;
    width: min(1100px, 160vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 38, 46, 0.95) 0%, rgba(215, 38, 46, 0.4) 35%, transparent 65%);
    z-index: -1;
    animation: rise 8s ease-in-out infinite alternate;
}

@keyframes rise {
    to { transform: translate(-50%, -6%); }
}

.final__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(42px, 7.4vw, 104px);
    line-height: 1;
    max-width: 14ch;
    margin-bottom: 40px;
}

body.is-jp .final__title {
    line-height: 1.25;
}

.final .hero__cta {
    justify-content: center;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.75);
    padding: 72px 0 28px;
    font-size: 14px;
}

.foot__grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot__grid p + p {
    margin-top: 10px;
}

.foot__logo {
    height: 30px;
    width: auto;
    margin-bottom: 16px;
}

.foot__tag {
    font-family: var(--f-display);
    font-size: 24px;
    color: #fff;
}

.foot__label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.foot a:hover {
    color: #fff;
}

.foot .muted {
    color: rgba(255, 255, 255, 0.5);
}

.foot__social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.foot__bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

.foot__jp {
    font-family: var(--f-jp);
    letter-spacing: 0.2em;
}

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.7);
    transition: transform 0.3s var(--ease);
}

.wa-float:hover {
    transform: scale(1.08);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
    .nav__links {
        display: none;
    }

    .nav__burger {
        display: block;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .totem__inner {
        min-height: 360px;
    }

    .path {
        grid-template-columns: 40px 1fr 40px;
        gap: 6px 16px;
    }

    .path__desc {
        grid-column: 2 / 3;
    }

    .path__go {
        grid-row: 1 / 3;
        grid-column: 3;
        width: 40px;
        height: 40px;
    }

    .award__grid {
        grid-template-columns: 1fr;
    }

    .award__stage {
        order: -1;
    }

    /* Trophy is a tall portrait image: cap by viewport height, not width */
    .award__stage img {
        width: auto;
        max-height: min(440px, 52svh);
    }
}

@media (max-width: 760px) {
    .nav {
        top: 10px;
        padding: 8px 8px 8px 16px;
    }

    .nav__right > .btn {
        display: none;
    }

    .lang a {
        padding: 6px 8px;
    }

    .hero__inner {
        padding: 110px var(--gutter) 28px;
    }

    .hero__cta .btn {
        flex: 1 1 auto;
    }

    .hero__foot {
        padding-bottom: 20px;
    }

    .hero__jp {
        display: none;
    }

    /* Mobile hero: content first, then a dedicated zone for the 3D scene */
    .hero {
        justify-content: flex-start;
        padding-bottom: max(300px, 42svh);
    }

    .hero__foot {
        position: static;
        padding-top: 0;
    }

    .hero__sun {
        right: -8%;
        top: auto;
        bottom: 18%;
    }

    .story__grid {
        grid-template-columns: 1fr;
    }

    .story__kanji {
        writing-mode: horizontal-tb;
        position: static;
        font-size: 72px;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .fact,
    .fact + .fact {
        padding: 18px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    /* Journey becomes a vertical timeline on mobile */
    .journey__rail {
        flex-direction: column;
        width: auto;
        padding: 0 var(--gutter) 0 calc(var(--gutter) + 28px);
    }

    .journey__line {
        left: calc(var(--gutter) + 6px);
        right: auto;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .journey__line i {
        transform-origin: top;
        transform: scaleY(var(--p, 0));
    }

    .quest {
        width: 100%;
    }

    .quest::before {
        top: 30px;
        left: -29px;
    }

    .quest__year {
        font-size: 48px;
    }

    .stats__grid {
        grid-template-columns: 1fr;
    }

    .totem__inner {
        min-height: 0;
        flex-direction: row;
        gap: 18px;
        align-items: flex-start;
    }

    .totem__kanji {
        font-size: 72px;
    }

    .torii {
        display: none;
    }

    .path {
        padding: 22px 0;
    }

    .path:hover {
        padding-left: 0;
    }

    .news__grid {
        grid-template-columns: 1fr;
    }

    .faq__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .faq details p {
        padding-right: 0;
    }

    .foot__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .wa-float {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .reveal-up {
        opacity: 1;
        transform: none;
    }

    .story__text .w {
        opacity: 1;
    }

    .meter i {
        transform: none;
    }
}

/* ==========================================================================
   EXPEDITION HERO — scroll-driven: 01 Peta → 02 Merapi → 03 Garis → 04 Higlob
   Paper (map) theme on chapter 0, night theme from chapter 1 onward.
   ========================================================================== */
:root {
    --map-paper: #ece5d6;
    --night: #0a1220;
    --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

.btn--red {
    --bg: var(--red);
}

.btn--red:hover {
    box-shadow: 0 14px 30px -12px rgba(215, 38, 46, 0.6);
}

.nav__logo {
    position: relative;
    display: block;
}

.nav__logo-light {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
}

.nav__logo img:first-child {
    transition: opacity 0.4s;
}

/* Nav over the night chapters */
body.nav-dark .nav {
    background: rgba(10, 18, 32, 0.55);
    border-color: rgba(255, 255, 255, 0.12);
}

body.nav-dark .nav__logo img:first-child {
    opacity: 0;
}

body.nav-dark .nav__logo-light {
    opacity: 1;
}

body.nav-dark .nav__links a {
    color: rgba(255, 255, 255, 0.72);
}

body.nav-dark .nav__links a:hover {
    color: #fff;
}

body.nav-dark .lang {
    background: rgba(255, 255, 255, 0.1);
}

body.nav-dark .lang a {
    color: rgba(255, 255, 255, 0.55);
}

body.nav-dark .lang a.is-active {
    color: var(--ink);
}

body.nav-dark .nav .btn--ink {
    --bg: #fff;
    --fg: var(--ink);
}

.exp {
    position: relative;
    height: 100svh; /* JS switches to the long scroll track once the 3D is live */
    background: var(--map-paper);
    color: var(--ink);
}

.exp.is-live {
    height: 520svh;
}

.exp__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    transition: color 0.8s;
}

.exp__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.exp.is-night .exp__sticky {
    color: #f4f1ea;
}

/* Legibility veil behind the text column */
.exp__sticky::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(236, 229, 214, 0.85) 0%, rgba(236, 229, 214, 0.4) 34%, transparent 58%);
    transition: opacity 0.8s;
}

.exp__sticky::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 18, 32, 0.85) 0%, rgba(10, 18, 32, 0.35) 36%, transparent 60%);
    opacity: 0;
    transition: opacity 0.8s;
}

.exp.is-night .exp__sticky::before {
    opacity: 0;
}

.exp.is-night .exp__sticky::after {
    opacity: 1;
}

/* ---------- Chapters ---------- */
.exp__chapters {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.chap {
    position: absolute;
    left: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
    top: 50%;
    width: min(640px, calc(100% - 2 * var(--gutter)));
    opacity: 0;
    transform: translateY(calc(-50% + 36px));
    transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
    pointer-events: none;
}

.chap.is-active {
    opacity: 1;
    transform: translateY(-50%);
    pointer-events: auto;
    transition-delay: 0.15s;
}

.chap .pill {
    margin-bottom: 22px;
}

.chap__logo {
    width: 64px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 30px rgba(20, 105, 168, 0.5));
}

.chap__chip {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 7px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    opacity: 0.85;
    margin-bottom: 22px;
}

.chap__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(44px, 6vw, 92px);
    line-height: 0.98;
    letter-spacing: -0.015em;
    margin-bottom: 22px;
}

.chap__title em {
    font-style: italic;
    color: var(--red);
}

.exp.is-night .chap__title em {
    color: #ff5f55;
}

body.is-jp .chap__title {
    font-size: clamp(34px, 4.4vw, 68px);
    line-height: 1.25;
}

body.is-jp .chap__title em {
    font-style: normal;
}

.chap__body {
    max-width: 520px;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.65;
    opacity: 0.82;
}

.chap__body strong {
    opacity: 1;
    font-weight: 700;
}

.chap__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.chap__scroll {
    margin-top: 34px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.chap__scroll i {
    width: 2px;
    height: 28px;
    background: var(--red);
    animation: drip-y 1.8s var(--ease) infinite;
    transform-origin: top;
}

@keyframes drip-y {
    0% { transform: scaleY(0); }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

.chap__skills {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chap__skills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

.chap__skills b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-family: var(--f-jp);
    font-size: 14px;
}

/* ---------- 3D-anchored labels ---------- */
.exp__labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.geo-tag {
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    align-items: center;
    padding: 6px 12px 6px 6px;
    border-radius: 8px;
    font-family: var(--f-mono);
    font-size: 11px;
    line-height: 1.35;
    color: #f4f1ea;
    background: rgba(10, 18, 32, 0.72);
    backdrop-filter: blur(6px);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.5s;
    will-change: transform, opacity;
}

.geo-tag i {
    grid-row: span 2;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(215, 38, 46, 0.25);
    animation: pulse-red 2s infinite;
}

.geo-tag b {
    font-weight: 500;
    letter-spacing: 0.12em;
}

.geo-tag small {
    font-size: 10px;
    opacity: 0.65;
}

.geo-tag--higlob i {
    background: var(--blue);
    box-shadow: 0 0 0 4px rgba(20, 105, 168, 0.3);
    animation: none;
}

.geo-tag--japan i {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(215, 38, 46, 0.6);
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(215, 38, 46, 0.6); }
    100% { box-shadow: 0 0 0 12px rgba(215, 38, 46, 0); }
}

/* ---------- Map ornaments (chapter 01 only) ---------- */
.exp__map-ui {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    transition: opacity 0.6s;
}

.exp.is-night .exp__map-ui {
    opacity: 0;
}

.exp__sheet {
    position: absolute;
    top: 96px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border: 1px solid rgba(21, 23, 28, 0.35);
    background: rgba(236, 229, 214, 0.7);
}

.exp__scale {
    position: absolute;
    right: 120px;
    bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.exp__scale i {
    display: block;
    width: 136px;
    height: 6px;
    border: 1px solid var(--ink);
    background: repeating-linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 68px);
}

.exp__compass {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1px solid var(--ink);
    display: grid;
    place-items: center;
}

.exp__compass::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 30px solid var(--red);
    transform: translateY(-14px);
}

.exp__compass span {
    position: absolute;
    top: -18px;
    font-weight: 500;
}

.exp__corner {
    position: absolute;
    z-index: 2;
    width: 14px;
    height: 14px;
    border: 0 solid currentColor;
    opacity: 0.7;
    pointer-events: none;
}

.exp__corner--tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
.exp__corner--tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
.exp__corner--bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
.exp__corner--br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- Chapter rail ---------- */
.exp__rail {
    position: absolute;
    z-index: 4;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.exp__rail::before,
.exp__rail-fill {
    content: "";
    position: absolute;
    right: 5px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: currentColor;
    opacity: 0.25;
}

.exp__rail-fill {
    opacity: 1;
    background: var(--red);
    transform-origin: top;
    transform: scaleY(var(--p, 0));
}

.exp__rail button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    opacity: 0.55;
    transition: opacity 0.3s;
}

.exp__rail button em {
    font-style: normal;
    font-family: var(--f-jp);
    font-size: 12px;
    opacity: 0.7;
}

.exp__rail button i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid currentColor;
    background: var(--map-paper);
    transition: background 0.3s, border-color 0.3s;
}

.exp.is-night .exp__rail button i {
    background: var(--night);
}

.exp__rail button.is-on {
    opacity: 1;
}

.exp__rail button.is-on i {
    background: var(--red);
    border-color: var(--red);
}

/* No-WebGL fallback: plain night gradient behind the chapters */
.exp.is-static .exp__sticky {
    background: radial-gradient(80% 60% at 70% 40%, #1d2f4a, var(--night));
}

@media (max-width: 760px) {
    .exp__sticky::before {
        background: linear-gradient(0deg, rgba(236, 229, 214, 0.96) 0%, rgba(236, 229, 214, 0.75) 38%, transparent 62%);
    }

    .exp__sticky::after {
        background: linear-gradient(0deg, rgba(10, 18, 32, 0.95) 0%, rgba(10, 18, 32, 0.7) 40%, transparent 64%);
    }

    .chap {
        top: auto;
        bottom: 28px;
        transform: translateY(24px);
    }

    .chap.is-active {
        transform: none;
    }

    .chap__title {
        font-size: clamp(34px, 9.6vw, 46px);
        margin-bottom: 14px;
    }

    body.is-jp .chap__title {
        font-size: clamp(26px, 7.4vw, 36px);
    }

    .chap__chip {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .chap .pill {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .chap__logo {
        width: 44px;
        margin-bottom: 12px;
    }

    .chap__cta {
        margin-top: 20px;
    }

    .chap__scroll {
        margin-top: 18px;
    }

    .chap__skills {
        margin-top: 16px;
    }

    .chap__skills li {
        font-size: 13px;
    }

    .exp__sheet,
    .exp__scale {
        display: none;
    }

    .exp__compass {
        top: 84px;
        bottom: auto;
        right: 18px;
        width: 52px;
        height: 52px;
    }

    .exp__compass::before {
        border-bottom-width: 20px;
        border-left-width: 5px;
        border-right-width: 5px;
        transform: translateY(-9px);
    }

    /* Rail collapses to dots */
    .exp__rail {
        right: 12px;
        top: 38%;
        gap: 18px;
    }

    .exp__rail button span,
    .exp__rail button em {
        display: none;
    }

    .geo-tag {
        font-size: 10px;
    }

    .geo-tag small {
        display: none;
    }
}

/* Floating WhatsApp would cover the chapter CTAs on small screens */
.wa-float {
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

@media (max-width: 760px) {
    body.in-exp .wa-float {
        opacity: 0;
        pointer-events: none;
    }
}

/* ==========================================================================
   SENBAZURU HERO — day theme on top of the .exp scroll framework
   ========================================================================== */
.exp--day {
    --map-paper: #f4efe4;
    background: var(--map-paper);
}

.exp--day .exp__sticky::before {
    background: linear-gradient(90deg, rgba(244, 239, 228, 0.92) 0%, rgba(244, 239, 228, 0.55) 36%, transparent 60%);
}

.exp--day .exp__corner {
    opacity: 0.35;
}

/* Fold checklist: each item lights up when its fold completes */
.sbz-folds {
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 240px));
    gap: 10px;
}

.sbz-folds li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    opacity: 0.4;
    transform: translateY(6px);
    transition: opacity 0.5s, transform 0.6s var(--ease), border-color 0.5s, background 0.5s;
}

.sbz-folds li.is-done {
    opacity: 1;
    transform: none;
    border-color: rgba(215, 38, 46, 0.35);
    background: #fff;
}

.sbz-folds b {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-family: var(--f-jp);
    font-size: 20px;
    transition: background 0.5s;
}

.sbz-folds li.is-done b {
    background: var(--red);
}

.sbz-folds span {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
}

.sbz-folds small {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

.sbz-count {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.sbz-count span {
    font-family: var(--f-display);
    font-size: clamp(76px, 10vw, 150px);
    line-height: 0.9;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
}

.sbz-count small {
    margin-top: 10px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.sbz-cred {
    max-width: 520px;
    padding-left: 14px;
    border-left: 2px solid var(--gold);
    font-size: 14px;
    color: var(--ink-2);
}

.sbz-partner {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    min-height: 52px;
    padding: 0 6px;
    line-height: 1.3;
    border-bottom: 1px solid transparent;
}

.sbz-partner b {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 15px;
}

.sbz-partner small {
    font-size: 12px;
    color: var(--ink-2);
}

.sbz-partner:hover small {
    color: var(--blue);
}

@media (max-width: 760px) {
    .exp--day .exp__sticky::before {
        background: linear-gradient(0deg, rgba(244, 239, 228, 0.97) 0%, rgba(244, 239, 228, 0.8) 42%, transparent 64%);
    }

    .sbz-folds {
        margin-top: 16px;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sbz-folds li {
        padding: 8px 10px 8px 8px;
        gap: 8px;
    }

    .sbz-folds b {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .sbz-folds span {
        font-size: 13px;
    }

    .sbz-count span {
        font-size: 64px;
    }

    .sbz-cred {
        font-size: 12px;
    }
}

/* ==========================================================================
   DEPARTURE BOARD (split-flap) — replaces the quest log
   ========================================================================== */
.board-sec {
    padding: clamp(96px, 12vw, 160px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.board {
    background: #111418;
    color: #f4f1ea;
    border-radius: var(--radius);
    padding: clamp(16px, 2.4vw, 28px);
    box-shadow: 0 40px 80px -40px rgba(17, 20, 24, 0.6);
    font-family: var(--f-mono);
}

.board__row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr 1.4fr 1fr 1.2fr;
    align-items: center;
    gap: 16px;
    padding: 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    opacity: 0.25;
    transition: opacity 0.6s;
}

.board__row.is-in,
.board__row--head {
    opacity: 1;
}

.board__row--head {
    padding-top: 4px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Each character sits in its own flap tile */
.board__flap {
    display: flex;
    gap: 3px;
}

.board__flap b {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 1.15em;
    height: 1.6em;
    padding: 0 2px;
    border-radius: 4px;
    background: linear-gradient(180deg, #23272e 0 50%, #1b1e24 50% 100%);
    font-weight: 500;
    font-size: clamp(16px, 1.7vw, 24px);
    color: #f4f1ea;
}

/* Hinge line across the middle of the tile */
.board__flap b::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.6);
}

.board__flap b.is-flip {
    transform: scaleY(0.92);
}

.board__num b {
    color: #f2b950;
}

.board__dest {
    font-size: clamp(13px, 1.2vw, 16px);
    letter-spacing: 0.08em;
}

.board__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    color: #8fe3a8;
}

.board__status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.board__row--gold .board__status {
    color: var(--gold-2);
}

.board__row--gold .board__flap b {
    background: linear-gradient(180deg, #3a2f17 0 50%, #2e2512 50% 100%);
    color: var(--gold-2);
}

.board__note {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 760px) {
    .board__row {
        grid-template-columns: auto 1fr auto;
        gap: 6px 12px;
        padding: 14px 4px;
    }

    .board__row--head {
        display: none;
    }

    .board__flight,
    .board__dest {
        display: none;
    }

    .board__status {
        grid-column: 1 / -1;
        font-size: 11px;
    }

    .board__flap b {
        font-size: 18px;
    }
}

/* Mincho numerals sit taller; keep the big counter in the Latin display face */
body.is-jp .sbz-count span {
    font-family: "Instrument Serif", Georgia, serif;
}

/* ==========================================================================
   DOJO — real building photo next to the origin story (bridge from the hero)
   ========================================================================== */
.story--photo .story__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
}

.dojo {
    position: sticky;
    top: 100px;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #dfe7ee;
    box-shadow: 0 40px 80px -40px rgba(21, 23, 28, 0.45);
}

.dojo img {
    width: 100%;
    height: auto; /* otherwise the height attribute wins over aspect-ratio */
    aspect-ratio: 3 / 4;
    object-fit: cover;
    /* 9:16 source: frame the "HIGLOB 送り出し機関" sign and the trainee's helmet */
    object-position: 50% 42%;
}

.dojo figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(251, 249, 244, 0.86);
    backdrop-filter: blur(8px);
    font-size: 12px;
    line-height: 1.4;
}

.dojo figcaption a {
    flex: none;
    font-weight: 700;
    color: var(--blue);
}

.dojo__bridge {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(34px, 4.4vw, 60px);
    line-height: 1.02;
    margin-bottom: 28px;
}

.dojo__bridge em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .dojo__bridge {
    line-height: 1.3;
}

body.is-jp .dojo__bridge em {
    font-style: normal;
}

/* The bridge headline carries the section; the story paragraph steps down a size */
.story--photo .story__text {
    font-size: clamp(22px, 2.3vw, 32px);
}

@media (max-width: 760px) {
    .story--photo .story__grid {
        grid-template-columns: 1fr;
    }

    .dojo {
        position: relative;
        top: 0;
    }

    .dojo img {
        aspect-ratio: 3 / 4;
        object-position: 50% 42%;
    }

    .dojo figcaption {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Narrower text column next to the photo: give the licence number room */
.story--photo .facts {
    grid-template-columns: 1.4fr 1fr 0.8fr;
}

.story--photo .fact dd.fact__mono {
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .story--photo .facts {
        grid-template-columns: 1fr;
    }
}

/* Current year on the departure board: amber, blinking "in progress" */
.board__row--live .board__status {
    color: #f2b950;
}

.board__row--live .board__status i {
    animation: board-blink 1.4s steps(2, jump-none) infinite;
}

@keyframes board-blink {
    50% { opacity: 0.2; }
}

/* ==========================================================================
   DISTRIBUTION MAP — generated halftone Japan with prefecture bubbles
   ========================================================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dist {
    padding: clamp(96px, 12vw, 160px) 0;
}

.dist .h2 em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .dist .h2 em {
    font-style: normal;
}

.dist__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: center;
}

.dist__map {
    position: relative;
    border-radius: var(--radius);
    background:
        radial-gradient(60% 50% at 70% 45%, rgba(215, 38, 46, 0.06), transparent 70%),
        var(--paper);
    border: 1px solid var(--line);
    padding: clamp(10px, 2vw, 24px);
}

.dist__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.dist__land circle {
    fill: var(--ink);
    opacity: 0.22;
}

.dist__inset rect {
    fill: none;
    stroke: var(--line);
    stroke-dasharray: 4 4;
}

.dist__inset text {
    font: 500 11px var(--f-mono);
    fill: var(--ink-3);
    letter-spacing: 0.06em;
}

.dist__inset-dot {
    fill: var(--ink);
    opacity: 0.3;
}

/* Marching dashes along the flight line from Indonesia */
.dist__flight {
    fill: none;
    stroke: var(--blue);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-dasharray: 0.01 0.012;
    opacity: 0;
    transition: opacity 1s 1.2s;
    animation: dist-march 6s linear infinite;
}

@keyframes dist-march {
    to { stroke-dashoffset: -0.22; }
}

.dist__map.is-in .dist__flight {
    opacity: 0.7;
}

.dist__from {
    font: 500 11px var(--f-mono);
    fill: var(--blue);
    letter-spacing: 0.06em;
}

/* Bubbles bloom in with a staggered delay set per prefecture */
.dist__b {
    cursor: pointer;
    outline: none;
    transform-box: fill-box;
    transform-origin: center;
    transform: scale(0);
    transition: transform 0.9s var(--ease), opacity 0.3s;
    transition-delay: var(--delay, 0s), 0s;
}

.dist__map.is-in .dist__b {
    transform: scale(1);
}

.dist__dot {
    fill: var(--red);
    fill-opacity: 0.78;
    stroke: var(--paper);
    stroke-width: 1.5;
    transition: fill-opacity 0.3s;
}

.dist__halo {
    fill: var(--red);
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
}

.dist__b.is-hot .dist__dot,
.dist__b:focus-visible .dist__dot {
    fill-opacity: 1;
    stroke: var(--ink);
}

.dist__b.is-hot .dist__halo {
    animation: dist-pulse 1.4s ease-out infinite;
}

@keyframes dist-pulse {
    from { opacity: 0.35; transform: scale(1); }
    to { opacity: 0; transform: scale(1.9); }
}

.dist__map.is-focus .dist__b:not(.is-hot) {
    opacity: 0.18;
}

.dist__leader {
    fill: none;
    stroke: var(--ink);
    stroke-width: 0.8;
    stroke-dasharray: 2 3;
    opacity: 0;
    transition: opacity 0.6s 1.6s;
}

.dist__map.is-in .dist__leader {
    opacity: 0.35;
}

.dist__leader.is-dim {
    opacity: 0.06 !important;
    transition-delay: 0s;
}

.dist__lbl-k {
    font-family: var(--f-jp);
    font-weight: 700;
}

.dist__lbl-n {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 17px;
    fill: var(--red);
}

.dist__lbl {
    font: 600 12px var(--f-body);
    fill: var(--ink);
    paint-order: stroke;
    stroke: var(--paper);
    stroke-width: 4px;
    stroke-linejoin: round;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s 1.6s;
}

.dist__map.is-in .dist__lbl {
    opacity: 1;
}

.dist__lbl.is-dim {
    opacity: 0.15 !important;
    transition-delay: 0s;
}

.dist__tip[hidden] {
    display: none; /* the flex rule below would otherwise override [hidden] */
}

.dist__tip {
    position: absolute;
    z-index: 3;
    transform: translate(-50%, calc(-100% - 18px));
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.dist__tip b {
    font-family: var(--f-jp);
}

.dist__tip strong {
    margin-left: 4px;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 22px;
    line-height: 1;
    color: #ff8a80;
}

.dist__tip small {
    opacity: 0.6;
}

/* ---------- Side panel ---------- */
.dist__total {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
}

.dist__total span {
    font-family: var(--f-display);
    font-size: clamp(64px, 7vw, 104px);
    line-height: 0.9;
    color: var(--blue);
}

.dist__total small {
    margin-top: 8px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.dist__label {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 10px;
}

.dist__top {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.dist__top li {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    cursor: default;
}

/* Bar behind each row, scaled to the leader */
.dist__top li i {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 2px;
    width: var(--w);
    background: var(--red);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.2s var(--ease) 0.4s;
}

.dist.is-in .dist__top li i,
.dist__top li:hover i {
    transform: scaleX(1);
}

.dist__rank {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
}

.dist__name {
    font-weight: 600;
}

.dist__name b {
    font-family: var(--f-jp);
    font-weight: 700;
    margin-right: 8px;
}

.dist__n {
    font-family: var(--f-display);
    font-size: 26px;
    line-height: 1;
}

.dist__top li:hover {
    background: rgba(215, 38, 46, 0.05);
}

.dist__strip {
    display: flex;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    gap: 2px;
    margin-bottom: 12px;
}

.dist__strip i,
.dist__regions li i {
    background: var(--red);
    transition: opacity 0.3s;
}

/* Region tones: strongest red for the largest region, fading down the list */
.dist__strip i:nth-child(1), .dist__regions li:nth-child(1) i { opacity: 1; }
.dist__strip i:nth-child(2), .dist__regions li:nth-child(2) i { opacity: 0.82; }
.dist__strip i:nth-child(3), .dist__regions li:nth-child(3) i { opacity: 0.68; }
.dist__strip i:nth-child(4), .dist__regions li:nth-child(4) i { opacity: 0.56; }
.dist__strip i:nth-child(5), .dist__regions li:nth-child(5) i { opacity: 0.45; }
.dist__strip i:nth-child(6), .dist__regions li:nth-child(6) i { opacity: 0.36; }
.dist__strip i:nth-child(7), .dist__regions li:nth-child(7) i { opacity: 0.28; }
.dist__strip i:nth-child(8), .dist__regions li:nth-child(8) i { opacity: 0.2; }

.dist__strip i.is-hot {
    background: var(--ink);
    opacity: 1 !important;
}

.dist__regions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 16px;
    font-size: 14px;
}

.dist__regions li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    cursor: default;
}

.dist__regions li i {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.dist__regions li b {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
}

.dist__regions li.is-hot {
    color: var(--red);
}

.dist__asof {
    margin-top: 18px;
    font-size: 12px;
    color: var(--ink-3);
}

@media (max-width: 960px) {
    .dist__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .dist__lbl {
        font-size: 14px;
    }

    .dist__from,
    .dist__inset text {
        font-size: 14px;
    }
}

/* ==========================================================================
   ABOUT PAGE — "Di balik setiap lipatan"
   ========================================================================== */
.nav__links a.is-current {
    color: var(--ink);
    font-weight: 700;
}

/* ---------- Hero with self-drawing crane crease pattern ---------- */
.ab-hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(64px, 8vw, 110px);
    overflow: hidden;
}

.ab-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.ab-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(52px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.ab-hero__title em,
.ab-team .h2 em,
.dojo__bridge em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .ab-hero__title {
    font-size: clamp(34px, 4.4vw, 64px);
    line-height: 1.2;
}

body.is-jp .ab-hero__title em,
body.is-jp .ab-team .h2 em {
    font-style: normal;
}

.ab-hero__sub {
    max-width: 540px;
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--ink-2);
    margin-bottom: 28px;
}

.ab-chips {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ab-chips li {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
}

.ab-chips li:nth-child(2) {
    border-color: rgba(201, 162, 74, 0.5);
    background: #fff8e4;
    color: #6b5420;
}

.cp {
    position: relative;
    margin: 0;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}

.cp__sun {
    position: absolute;
    width: 46%;
    aspect-ratio: 1;
    right: 2%;
    top: 4%;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #ff5a4f, var(--red));
    opacity: 0.92;
}

/* Paper sits on its corner like a sheet about to be folded */
.cp__svg {
    position: relative;
    width: 74%;
    overflow: visible;
    transform: rotate(45deg);
    filter: drop-shadow(0 30px 40px rgba(60, 40, 20, 0.18));
    animation: cp-float 7s ease-in-out infinite;
}

@keyframes cp-float {
    50% { transform: rotate(45deg) translate(-6px, -6px); }
}

.cp__paper {
    fill: #fffdf8;
    stroke: rgba(21, 23, 28, 0.15);
    stroke-width: 1;
}

.cp__l {
    stroke-width: 1.6;
    stroke-linecap: round;
}

.cp__l--mountain,
.cp__l--kite {
    stroke: var(--red);
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: cp-draw 1.1s var(--ease) forwards;
    animation-delay: calc(0.35s + var(--i) * 0.11s);
}

.cp__l--kite {
    stroke: var(--ink);
    stroke-width: 1.1;
    opacity: 0.7;
}

.cp__l--valley {
    stroke: var(--blue);
    stroke-dasharray: 6 6;
    opacity: 0;
    animation: cp-fade 0.8s ease forwards;
    animation-delay: calc(0.2s + var(--i) * 0.15s);
}

.cp__center {
    fill: var(--red);
    opacity: 0;
    animation: cp-fade 0.6s ease forwards 2.4s;
}

@keyframes cp-draw {
    to { stroke-dashoffset: 0; }
}

@keyframes cp-fade {
    to { opacity: 0.85; }
}

.cp__label {
    position: absolute;
    left: 0;
    bottom: 2%;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--ink-3);
}

/* ---------- Origin extras ---------- */
.ab-origin__more {
    margin-top: 22px;
    max-width: 560px;
    color: var(--ink-2);
}

/* ---------- Timeline: zig-zag folded strip that opens flat ---------- */
.ab-time {
    padding: clamp(96px, 12vw, 160px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.fold-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    perspective: 1400px;
}

.fold-panel {
    position: relative;
    min-height: 330px;
    padding: 26px 22px;
    background: linear-gradient(90deg, #fffdf8, #f3ede1);
    border: 1px solid rgba(21, 23, 28, 0.08);
    transform-origin: left center;
    /* Closed: alternate panels lean in and out like an accordion fold */
    transform: rotateY(calc(var(--dir, 1) * 38deg));
    transition: transform 1.2s var(--ease), background 0.6s;
    transition-delay: calc(var(--i) * 0.09s);
}

.fold-panel:nth-child(even) {
    --dir: -1;
    transform-origin: right center;
    background: linear-gradient(270deg, #fffdf8, #ebe3d4);
}

.fold-strip.is-open .fold-panel {
    transform: rotateY(0deg);
    background: #fffdf8;
}

.fold-panel__year {
    display: block;
    font-family: var(--f-display);
    font-size: clamp(40px, 4vw, 58px);
    line-height: 1;
    color: var(--ink-3);
}

.fold-panel__title {
    margin: 16px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.fold-panel__num {
    font-family: var(--f-display);
    font-size: 36px;
    line-height: 1.1;
    color: var(--blue);
}

.fold-panel__num small {
    font-family: var(--f-body);
    font-size: 13px;
    color: var(--ink-2);
}

.fold-panel__desc {
    margin-top: 10px;
    font-size: 14px;
    color: var(--ink-2);
}

.fold-panel--gold {
    background: linear-gradient(160deg, #1b1d22, #0e0f12) !important;
    color: #fff;
}

.fold-panel--gold .fold-panel__year,
.fold-panel--gold .fold-panel__num {
    color: var(--gold-2);
}

.fold-panel--gold .fold-panel__desc,
.fold-panel--gold .fold-panel__num small {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Vision & mission ---------- */
.ab-vm {
    padding: clamp(96px, 12vw, 160px) 0;
}

.ab-vm__grid {
    display: grid;
    grid-template-columns: 1fr 2.4fr;
    gap: clamp(32px, 6vw, 96px);
}

.ab-vm__kanji {
    position: sticky;
    top: 110px;
    display: block;
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: clamp(120px, 16vw, 240px);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--red);
}

.ab-vm__label {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 14px;
}

.ab-vm__mission {
    font-family: var(--f-display);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.22;
    margin-bottom: clamp(48px, 6vw, 80px);
}

body.is-jp .ab-vm__mission {
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.7;
}

.ab-vm__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ink);
}

.ab-vm__list li {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(16px, 1.3vw, 18px);
}

.ab-vm__list b {
    font-family: var(--f-jp);
    font-size: 30px;
    color: var(--red);
}

/* ---------- Core values: dog-eared cards that unfold ---------- */
.ab-values {
    padding: 0 0 clamp(96px, 12vw, 160px);
}

.val-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.val {
    --ear: 46px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 260px;
    padding: 24px;
    text-align: left;
    font: inherit;
    color: inherit;
    border: 0;
    cursor: pointer;
    background: var(--paper);
    /* Folded top-right corner */
    clip-path: polygon(0 0, calc(100% - var(--ear)) 0, 100% var(--ear), 100% 100%, 0 100%);
    box-shadow: inset 0 0 0 1px var(--line);
    transition: clip-path 0.5s var(--ease), background 0.4s;
}

.val::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: var(--ear);
    height: var(--ear);
    background: linear-gradient(225deg, transparent 50%, #e6dccb 50%);
    box-shadow: -3px 3px 8px rgba(60, 40, 20, 0.12);
    transition: width 0.5s var(--ease), height 0.5s var(--ease);
}

.val__no {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
}

.val__kanji {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 84px;
    line-height: 1;
    color: var(--ink);
    transition: color 0.4s, transform 0.5s var(--ease);
}

.val__title {
    margin-top: auto;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.val__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-2);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease), opacity 0.4s;
}

/* Unfolded: corner flattens, kanji turns red, description slides in */
.val:hover,
.val:focus-visible,
.val[aria-expanded="true"] {
    background: #fff;
}

.val:hover::after,
.val:focus-visible::after,
.val[aria-expanded="true"]::after {
    width: 0;
    height: 0;
}

.val:hover,
.val:focus-visible,
.val[aria-expanded="true"] {
    clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%);
}

.val:hover .val__kanji,
.val:focus-visible .val__kanji,
.val[aria-expanded="true"] .val__kanji {
    color: var(--red);
    transform: scale(0.8);
    transform-origin: left top;
}

.val:hover .val__desc,
.val:focus-visible .val__desc,
.val[aria-expanded="true"] .val__desc {
    max-height: 200px;
    opacity: 1;
}

/* ---------- Team: polaroids taped onto the page ---------- */
.ab-team {
    padding: clamp(96px, 12vw, 160px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.team-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Source photos are 216px wide: keep cards at that size so they stay sharp */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 32px);
}

.team-grid .polaroid {
    flex: 0 1 216px;
}

.polaroid {
    position: relative;
    padding: 10px 10px 16px;
    background: #fff;
    box-shadow: 0 18px 30px -18px rgba(60, 40, 20, 0.45), 0 0 0 1px rgba(21, 23, 28, 0.05);
    transform: rotate(var(--tilt));
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.polaroid.reveal-up.is-in {
    transform: rotate(var(--tilt));
}

.polaroid:hover {
    transform: rotate(0deg) translateY(-6px) !important;
    box-shadow: 0 30px 50px -24px rgba(60, 40, 20, 0.5), 0 0 0 1px rgba(21, 23, 28, 0.05);
}


.polaroid img {
    width: 100%;
    aspect-ratio: 216 / 280;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.polaroid__tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 72px;
    height: 24px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(215, 38, 46, 0.55);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 8px);
    mix-blend-mode: multiply;
}

.polaroid:nth-child(3n + 2) .polaroid__tape {
    background-color: rgba(20, 105, 168, 0.5);
    transform: translateX(-50%) rotate(4deg);
}

.polaroid:nth-child(3n) .polaroid__tape {
    background-color: rgba(201, 162, 74, 0.6);
}

.polaroid__name {
    display: block;
    margin-top: 12px;
    font-family: var(--f-display);
    font-size: 19px;
    line-height: 1.15;
}


.polaroid__role {
    display: block;
    margin-top: 4px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
}

/* ---------- Award strip ---------- */
.ab-award {
    background: radial-gradient(80% 80% at 30% 50%, #1d2633 0%, #0d0f13 70%);
    color: #fff;
    padding: clamp(72px, 9vw, 120px) 0;
}

.ab-award__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.ab-award img {
    width: clamp(110px, 12vw, 170px);
    height: auto;
    border-radius: 12px;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 162, 74, 0.35);
}

.ab-faq {
    padding-top: clamp(96px, 12vw, 160px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .fold-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .val-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .ab-hero__grid,
    .ab-vm__grid {
        grid-template-columns: 1fr;
    }

    .cp {
        width: 82%;
        margin: 0 auto;
        order: -1;
    }

    .ab-vm__kanji {
        position: static;
        font-size: 96px;
    }

    /* Vertical accordion: panels fold on the X axis instead */
    .fold-strip {
        grid-template-columns: 1fr;
    }

    .fold-panel {
        min-height: 0;
        transform-origin: center top;
        transform: rotateX(calc(var(--dir, 1) * 50deg));
    }

    .fold-panel:nth-child(even) {
        transform-origin: center top;
    }

    .val-grid {
        grid-template-columns: 1fr;
    }

    .val {
        min-height: 0;
    }

    /* No hover on touch: show descriptions by default */
    .val__desc {
        max-height: none;
        opacity: 1;
    }

    .val__kanji {
        font-size: 56px;
    }

    .team-grid .polaroid {
        flex-basis: calc(50% - 10px);
    }

    .polaroid__name {
        font-size: 16px;
    }

    .ab-award__inner {
        grid-template-columns: 1fr;
    }

    .ab-chips li {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp__l--mountain,
    .cp__l--kite {
        stroke-dashoffset: 0;
    }

    .cp__l--valley,
    .cp__center {
        opacity: 0.85;
    }

    .fold-panel {
        transform: none;
    }
}

@media (max-width: 760px) {
    .cp__label {
        bottom: -18px;
        width: 100%;
        text-align: center;
    }

    .ab-hero__copy {
        margin-top: 12px;
    }

    /* Descriptions are always open on touch screens */
    .ab-values__hint {
        display: none;
    }
}

/* ==========================================================================
   NEWS — "Kabar dari dua negeri": airmail letters, postmarks, stamps
   ========================================================================== */
.nw-hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(40px, 5vw, 64px);
}

.nw-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) auto;
    gap: 40px;
    align-items: end;
}

.nw-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(52px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.nw-hero__title em,
.nd-title em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .nw-hero__title {
    font-size: clamp(32px, 4.4vw, 64px);
    line-height: 1.2;
}

body.is-jp .nw-hero__title em {
    font-style: normal;
}

.nw-hero__sub {
    max-width: 560px;
    font-size: clamp(16px, 1.3vw, 18px);
    color: var(--ink-2);
}

/* Perforated postage stamps */
.nw-stamps {
    display: flex;
    gap: 16px;
}

.stamp {
    --c: var(--red);
    position: relative;
    isolation: isolate;
    width: 148px;
    padding: 20px 18px 18px;
    color: var(--c);
    transform: rotate(-3deg);
    /* Perforated edge: a grid of holes, covered in the middle by ::after so only the rim shows */
    background: radial-gradient(circle, transparent 4px, #fff 4.5px) -7px -7px / 14px 14px;
    filter: drop-shadow(0 10px 14px rgba(60, 40, 20, 0.2));
}

.stamp::after {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: -1;
    background: #fff;
}

.stamp::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1.5px solid var(--c);
}

.stamp--blue {
    --c: var(--blue);
    transform: rotate(4deg) translateY(-12px);
}

.stamp__n {
    position: relative;
    display: block;
    font-family: var(--f-display);
    font-size: 44px;
    line-height: 1;
}

.stamp__l {
    position: relative;
    display: block;
    margin-top: 6px;
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stamp__jp {
    position: absolute;
    right: 16px;
    bottom: 12px;
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 30px;
    opacity: 0.18;
}

/* ---------- Shared meta ---------- */
.nw-label {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}

.nw-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    text-transform: uppercase;
}

.nw-cat {
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(215, 38, 46, 0.1);
    color: var(--red);
    font-weight: 500;
}

.nw-read {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: var(--ink);
}

.nw-read i {
    font-style: normal;
    transition: transform 0.4s var(--ease);
}

a:hover .nw-read i {
    transform: translateX(6px);
}

/* ---------- Most read ---------- */
.nw-top {
    padding: clamp(32px, 4vw, 56px) 0 clamp(72px, 9vw, 120px);
}

.nw-top__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

.nw-feature {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.5s, transform 0.5s var(--ease);
}

.nw-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 80px -40px rgba(21, 23, 28, 0.35);
}

.nw-feature__img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e0d5;
}

.nw-feature__img img,
.nw-runner__img img,
.letter__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}

.nw-feature:hover img,
.nw-runner:hover img,
.letter:hover .letter__img img {
    transform: scale(1.05);
}

.nw-rank {
    position: absolute;
    left: 18px;
    bottom: 10px;
    font-family: var(--f-display);
    font-size: 96px;
    line-height: 1;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.nw-rank--sm {
    position: static;
    font-size: 44px;
    color: var(--red);
    text-shadow: none;
}

.nw-feature__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(20px, 2.4vw, 32px);
}

.nw-feature__title {
    font-family: var(--f-display);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.nw-feature__excerpt {
    color: var(--ink-2);
}

.nw-runners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nw-runner {
    display: grid;
    grid-template-columns: auto 120px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color 0.3s;
}

.nw-runner:hover {
    border-color: rgba(215, 38, 46, 0.4);
}

.nw-runner__img {
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    background: #e5e0d5;
}

.nw-runner__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nw-runner__title {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.35;
}

/* ---------- All: airmail letters ---------- */
.nw-all {
    padding: clamp(72px, 9vw, 120px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.nw-all__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.nw-all__head .h2 {
    margin: 0;
}

.nw-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nw-filter a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s, color 0.3s;
}

.nw-filter a small {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    color: var(--ink-3);
}

.nw-filter a.is-on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.nw-filter a.is-on small {
    color: rgba(255, 255, 255, 0.6);
}

.letters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 2.4vw, 32px);
}

/* Airmail envelope border: red/blue diagonal stripes around a white letter */
.letter {
    --tilt: 0deg;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px;
    background: repeating-linear-gradient(135deg, var(--red) 0 14px, #fff 14px 22px, var(--blue) 22px 36px, #fff 36px 44px);
    border-radius: 6px;
    transform: rotate(var(--tilt));
    box-shadow: 0 18px 30px -22px rgba(60, 40, 20, 0.5);
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
}

.letter.reveal-up.is-in {
    transform: rotate(var(--tilt));
}

.letter:hover {
    transform: rotate(0deg) translateY(-6px) !important;
    box-shadow: 0 34px 50px -26px rgba(60, 40, 20, 0.55);
}

.letter__img,
.letter__body {
    background: #fffdf8;
}

.letter__img {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 3px 3px 0 0;
}

.letter__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    border-radius: 0 0 3px 3px;
}

.letter__title {
    font-family: var(--f-display);
    font-size: 24px;
    line-height: 1.15;
}

.letter__excerpt {
    font-size: 14px;
    color: var(--ink-2);
    flex: 1;
}

/* Circular postmark stamped over the photo corner */
.postmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.92);
    outline: 1px dashed rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(21, 23, 28, 0.32);
    backdrop-filter: blur(4px);
    transform: rotate(-12deg);
    font-family: var(--f-mono);
    line-height: 1.05;
    text-align: center;
}

.postmark b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 28px;
}

.postmark i {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.postmark em {
    font-style: normal;
    font-size: 8px;
    letter-spacing: 0.14em;
    margin-top: 3px;
    opacity: 0.85;
}

.postmark--lg {
    width: 110px;
    height: 110px;
    top: 20px;
    right: 20px;
}

.postmark--lg b {
    font-size: 40px;
}

.nw-empty {
    padding: 48px 0;
    color: var(--ink-2);
}

/* ---------- Pagination ---------- */
.nw-pager {
    margin-top: clamp(40px, 5vw, 64px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nw-pager__btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    font-size: 14px;
}

.nw-pager__btn.is-off {
    opacity: 0.4;
}

.nw-pager__pages {
    display: flex;
    gap: 6px;
}

.nw-pager__pages a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-family: var(--f-mono);
    font-size: 14px;
    border: 1px solid transparent;
}

.nw-pager__pages a:hover {
    border-color: var(--line);
}

.nw-pager__pages a.is-on {
    background: var(--red);
    color: #fff;
}

.nw-pager__info {
    margin-top: 12px;
    text-align: center;
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-3);
}

/* ==========================================================================
   NEWS DETAIL
   ========================================================================== */
.nd-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 60;
}

.nd-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform-origin: left;
    transform: scaleX(0);
}

.nd-head {
    padding: clamp(120px, 14vw, 170px) 0 clamp(28px, 4vw, 44px);
}

.nd-head__inner {
    max-width: 960px;
}

.nd-back {
    display: inline-block;
    margin-bottom: 26px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
}

.nd-back:hover {
    color: var(--red);
}

.nd-head__meta {
    margin-bottom: 18px;
}

.nd-title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(40px, 5.6vw, 80px);
    line-height: 1.02;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

body.is-jp .nd-title {
    line-height: 1.2;
}

.nd-byline {
    color: var(--ink-2);
}

.nd-cover {
    margin: 0 auto clamp(40px, 5vw, 72px);
}

.nd-cover__frame {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e5e0d5;
    box-shadow: 0 50px 90px -50px rgba(21, 23, 28, 0.5);
}

.nd-cover__frame img {
    width: 100%;
    height: auto;
    max-height: 640px;
    object-fit: cover;
}

.nd-body {
    display: grid;
    grid-template-columns: 64px minmax(0, 720px);
    justify-content: center;
    gap: clamp(24px, 5vw, 72px);
    padding-bottom: clamp(72px, 9vw, 120px);
}

.nd-rail {
    position: sticky;
    top: 110px;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.nd-rail__label {
    font-family: var(--f-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    writing-mode: vertical-rl;
    margin-bottom: 6px;
}

.nd-share {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    font: 600 12px var(--f-mono);
    color: var(--ink);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.nd-share:hover,
.nd-share.is-done {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.nd-share.is-done::after {
    content: "✓";
}

.nd-share.is-done {
    font-size: 0;
}

.nd-share.is-done::after {
    font-size: 16px;
}

.nd-note {
    margin-bottom: 24px;
    padding: 10px 14px;
    border-left: 2px solid var(--blue);
    background: rgba(20, 105, 168, 0.06);
    font-size: 13px;
    color: var(--ink-2);
}

/* ---------- Article typography (content from the Quill editor) ---------- */
.prose {
    font-size: 18px;
    line-height: 1.8;
    color: #2a2d33;
}

.prose > * + * {
    margin-top: 1.1em;
}

.prose > p:first-child::first-letter {
    float: left;
    font-family: var(--f-display);
    font-size: 4.4em;
    line-height: 0.82;
    padding: 6px 12px 0 0;
    color: var(--red);
}

.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--f-display);
    font-weight: 400;
    color: var(--ink);
    line-height: 1.15;
    margin-top: 1.8em;
}

.prose h2 {
    font-size: 36px;
}

.prose h3 {
    font-size: 30px;
}

.prose h4 {
    font-size: 24px;
}

/* Quill sometimes emits empty headings; don't let them add gaps */
.prose h2:empty,
.prose h3:empty,
.prose p:empty {
    display: none;
}

.prose a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--ink);
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li + li {
    margin-top: 0.4em;
}

.prose ul li::marker {
    color: var(--red);
}

.prose blockquote {
    margin-left: 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--red);
    font-family: var(--f-display);
    font-size: 26px;
    line-height: 1.35;
    color: var(--ink);
}

.prose img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 1.4em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.prose th,
.prose td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
    border-radius: 14px;
}

.nd-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.nd-tags__label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-right: 6px;
}

/* ---------- Fold a crane (like) ---------- */
.fold-like {
    margin-top: 48px;
    display: grid;
    grid-template-columns: 84px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px dashed rgba(215, 38, 46, 0.35);
}

.fold-like__crane {
    width: 84px;
    height: auto;
    overflow: visible;
}

.fold-like__crane path {
    fill: #fff;
    stroke: var(--ink);
    stroke-width: 1.2;
    stroke-linejoin: round;
    transform-box: fill-box;
    transition: transform 0.7s var(--ease), fill 0.5s;
}

/* Unfolded: wings and neck lie flat; folded: they rise into a crane */
.fold-like__crane .w1 { transform-origin: right bottom; transform: rotate(38deg) scaleY(0.4); }
.fold-like__crane .w2 { transform-origin: left bottom; transform: rotate(-38deg) scaleY(0.4); }
.fold-like__crane .nk { transform-origin: left bottom; transform: rotate(30deg); }
.fold-like__crane .tl { transform-origin: right bottom; transform: rotate(-26deg); }

.fold-like:hover .fold-like__crane .w1,
.fold-like:hover .fold-like__crane .w2 {
    transform: rotate(0deg) scaleY(0.8);
}

.fold-like.is-folded .fold-like__crane path {
    transform: none;
}

.fold-like.is-folded .fold-like__crane .w1,
.fold-like.is-folded .fold-like__crane .w2,
.fold-like.is-folded .fold-like__crane .bd {
    fill: var(--red);
    stroke: var(--red);
}

.fold-like.is-folded .fold-like__crane {
    animation: crane-lift 1.2s var(--ease);
}

@keyframes crane-lift {
    40% { transform: translateY(-10px) rotate(-4deg); }
}

.fold-like__title {
    font-family: var(--f-display);
    font-size: 26px;
    line-height: 1.15;
}

.fold-like__msg {
    margin-top: 4px;
    font-size: 14px;
    color: var(--red);
    min-height: 1.4em;
}

.fold-like__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.fold-like__action .btn[disabled] {
    opacity: 0.55;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.fold-like__count {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-3);
}

.fold-like__count b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 22px;
    color: var(--ink);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .letters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nw-top__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .nw-hero__grid {
        grid-template-columns: 1fr;
    }

    .nw-stamps {
        justify-content: flex-start;
    }

    .stamp {
        width: 132px;
    }

    .stamp__n {
        font-size: 34px;
    }

    .nw-rank {
        font-size: 64px;
    }

    .nw-runner {
        grid-template-columns: auto 88px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .nw-rank--sm {
        font-size: 30px;
    }

    .nw-runner__title {
        font-size: 15px;
    }

    .letters {
        grid-template-columns: 1fr;
    }

    .letter,
    .letter.reveal-up.is-in {
        transform: none;
    }

    .nw-all__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .nw-pager__btn {
        padding: 0 14px;
    }

    /* Share rail becomes a horizontal row above the article */
    .nd-body {
        grid-template-columns: 1fr;
    }

    .nd-rail {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nd-rail__label {
        writing-mode: horizontal-tb;
        margin: 0 6px 0 0;
    }

    .postmark--lg {
        width: 84px;
        height: 84px;
        top: 12px;
        right: 12px;
    }

    .postmark--lg b {
        font-size: 30px;
    }

    .prose {
        font-size: 17px;
    }

    .prose h2 {
        font-size: 30px;
    }

    .prose h3 {
        font-size: 26px;
    }

    .fold-like {
        grid-template-columns: 64px 1fr;
    }

    .fold-like__crane {
        width: 64px;
    }

    .fold-like__action {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Placeholder behind thumbnails (shows when an upload is missing) */
.nw-feature__img,
.nw-runner__img,
.letter__img,
.nd-cover__frame {
    background:
        radial-gradient(circle at 70% 40%, rgba(215, 38, 46, 0.16) 0 18%, transparent 19%),
        repeating-linear-gradient(45deg, #ece4d4 0 10px, #e6dccb 10px 20px);
}

.nd-cover__frame {
    min-height: 240px;
}

/* ==========================================================================
   GALLERY — "Album kenangan": fanned photo stack, index tabs, masonry, lightbox
   ========================================================================== */
.gl-hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(40px, 6vw, 80px);
    overflow: hidden;
}

.gl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.gl-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(52px, 8vw, 120px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}

.gl-hero__title em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .gl-hero__title {
    font-size: clamp(34px, 4.6vw, 68px);
    line-height: 1.25;
}

body.is-jp .gl-hero__title em {
    font-style: normal;
}

.gl-hero__sub {
    max-width: 520px;
    font-size: clamp(16px, 1.3vw, 18px);
    color: var(--ink-2);
    margin-bottom: 22px;
}

.gl-hero__count {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.gl-hero__count b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 48px;
    letter-spacing: 0;
    color: var(--blue);
    margin-right: 6px;
    vertical-align: -6px;
}

/* Fanned stack: cards rotate around a common bottom pivot and spread on hover */
.fan {
    position: relative;
    height: clamp(300px, 34vw, 440px);
}

.fan__card {
    --spread: 9deg;
    position: absolute;
    left: 50%;
    bottom: 6%;
    width: clamp(170px, 19vw, 250px);
    aspect-ratio: 4 / 5;
    padding: 9px 9px 30px;
    background: #fff;
    box-shadow: 0 24px 40px -22px rgba(60, 40, 20, 0.5);
    transform-origin: 50% 120%;
    transform: translateX(-50%) rotate(calc((var(--i) - (var(--n) - 1) / 2) * var(--spread)));
    transition: transform 0.7s var(--ease);
    background-image: repeating-linear-gradient(45deg, #ece4d4 0 10px, #e6dccb 10px 20px);
    background-clip: content-box;
}

.fan__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fan:hover .fan__card {
    --spread: 16deg;
}

/* ---------- Index tabs ---------- */
.gl-album {
    padding: 0 0 clamp(96px, 12vw, 160px);
}

.gl-tabs {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 2px solid var(--ink);
    margin-bottom: clamp(28px, 4vw, 48px);
}

.gl-tabs::-webkit-scrollbar {
    display: none;
}

.gl-tabs button {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: var(--paper);
    font: 600 14px var(--f-body);
    color: var(--ink-2);
    cursor: pointer;
    transform: translateY(4px);
    transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}

.gl-tabs button small {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 11px;
    color: var(--ink-3);
}

.gl-tabs button:hover {
    transform: translateY(0);
}

.gl-tabs button.is-on {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
    transform: translateY(0);
}

.gl-tabs button.is-on small {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------- Masonry of mounted photos ---------- */
.gl-grid {
    columns: 4 240px;
    column-gap: clamp(16px, 2vw, 28px);
    transition: opacity 0.3s;
}

.gl-grid.is-swapping {
    opacity: 0.35;
}

.ph {
    --tilt: 0deg;
    position: relative;
    break-inside: avoid;
    margin: 0 0 clamp(16px, 2vw, 28px);
    padding: 8px 8px 12px;
    background: #fff;
    box-shadow: 0 16px 28px -20px rgba(60, 40, 20, 0.5), 0 0 0 1px rgba(21, 23, 28, 0.05);
    transform: rotate(var(--tilt));
    transition: transform 0.5s var(--ease), box-shadow 0.5s;
    animation: ph-in 0.7s var(--ease) both;
}

@keyframes ph-in {
    from { opacity: 0; transform: translateY(18px) rotate(var(--tilt)); }
}

/* Washi tape strip on every other photo */
.ph:nth-child(odd)::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -10px;
    left: 50%;
    width: 64px;
    height: 20px;
    transform: translateX(-50%) rotate(-4deg);
    background: rgba(215, 38, 46, 0.5);
    background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 4px, transparent 4px 8px);
}

.ph:nth-child(4n + 3)::before {
    background-color: rgba(20, 105, 168, 0.45);
    transform: translateX(-50%) rotate(3deg);
}

.ph:hover {
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 30px 44px -24px rgba(60, 40, 20, 0.55), 0 0 0 1px rgba(21, 23, 28, 0.05);
}

.ph__link {
    position: relative;
    display: block;
    overflow: hidden;
    background: repeating-linear-gradient(45deg, #ece4d4 0 10px, #e6dccb 10px 20px);
}

.ph__link img {
    width: 100%;
    height: auto;
    min-height: 120px;
    transition: transform 0.8s var(--ease);
}

.ph:hover .ph__link img {
    transform: scale(1.04);
}

/* Missing upload: keep a calm placeholder instead of a broken-image icon */
.ph.is-missing .ph__link {
    aspect-ratio: 4 / 3;
}

.ph.is-missing img {
    visibility: hidden;
}

.ph__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 4px;
    background: rgba(215, 38, 46, 0.92);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s var(--ease);
}

.ph:hover .ph__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.ph__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--ink);
    color: #fff;
    font: 500 10px var(--f-mono);
    letter-spacing: 0.08em;
}

.ph__cap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 4px 0;
}

.ph__cat {
    align-self: flex-start;
    font: 500 10px var(--f-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
}

.ph__title {
    font-family: var(--f-display);
    font-size: 18px;
    line-height: 1.2;
}

.gl-status {
    margin-top: 24px;
    min-height: 1.5em;
    text-align: center;
    font: 12px var(--f-mono);
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

/* ---------- Lightbox ---------- */
.lb {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 64px clamp(16px, 7vw, 96px) 20px;
    background: rgba(12, 14, 18, 0.94);
    color: #fff;
}

.lb[hidden] {
    display: none;
}

.lb__stage {
    display: grid;
    place-items: center;
    min-height: 0;
}

.lb__stage img,
.lb__stage video {
    max-width: 100%;
    max-height: calc(100svh - 150px);
    border: 8px solid #fff;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    animation: lb-in 0.4s var(--ease);
}

@keyframes lb-in {
    from { opacity: 0; transform: scale(0.97); }
}

.lb__cap {
    padding-top: 14px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    font-size: 14px;
    text-align: center;
}

.lb__count {
    font: 12px var(--f-mono);
    color: rgba(255, 255, 255, 0.5);
}

.lb__btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.lb__btn:hover {
    background: var(--red);
    border-color: var(--red);
}

.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
    .gl-hero__grid {
        grid-template-columns: 1fr;
    }

    .fan {
        order: -1;
        height: 260px;
    }

    .fan__card {
        width: 150px;
    }

    .gl-grid {
        columns: 2 140px;
        column-gap: 12px;
    }

    .ph {
        margin-bottom: 14px;
        padding: 5px 5px 8px;
    }

    .ph__title {
        font-size: 15px;
    }

    .ph__play {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .lb__prev,
    .lb__next {
        top: auto;
        bottom: 12px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph {
        animation: none;
    }
}

/* ==========================================================================
   CONTACT — "Mari bicara": channels, postcard form, live hours, map
   ========================================================================== */
.ct-hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(48px, 6vw, 80px);
}

.ct-hero__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.ct-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(56px, 9vw, 136px);
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.ct-hero__title em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .ct-hero__title {
    font-size: clamp(40px, 6vw, 88px);
    line-height: 1.15;
}

body.is-jp .ct-hero__title em {
    font-style: normal;
}

.ct-hero__sub {
    max-width: 560px;
    font-size: clamp(16px, 1.3vw, 18px);
    color: var(--ink-2);
}

.ct-live {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    font: 500 12px var(--f-mono);
    letter-spacing: 0.06em;
}

.ct-live i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-3);
}

.ct-live.is-open i {
    background: #1fa463;
    animation: ct-pulse 1.8s infinite;
}

@keyframes ct-pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0.55); }
    100% { box-shadow: 0 0 0 10px rgba(31, 164, 99, 0); }
}

.ct-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ct-ch {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 200px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s, background 0.4s, color 0.4s;
}

.ct-ch:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -36px rgba(21, 23, 28, 0.45);
}

.ct-ch--wa {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.ct-ch__k {
    position: absolute;
    right: -6px;
    bottom: -24px;
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 150px;
    line-height: 1;
    color: currentColor;
    opacity: 0.06;
}

.ct-ch__t {
    font: 500 11px var(--f-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
}

.ct-ch--wa .ct-ch__t {
    color: #4fd38f;
}

.ct-ch__v {
    margin-top: auto;
    font-family: var(--f-display);
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    word-break: break-word;
}

.ct-ch__d {
    font-size: 14px;
    opacity: 0.7;
}

.ct-ch > i {
    position: absolute;
    top: 22px;
    right: 22px;
    font-style: normal;
    transition: transform 0.4s var(--ease);
}

.ct-ch:hover > i {
    transform: translate(4px, -4px) rotate(-45deg);
}

/* ---------- Postcard ---------- */
.ct-post {
    padding: clamp(48px, 6vw, 80px) 0 clamp(96px, 12vw, 160px);
}

.postcard {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    background: #fffdf8;
    border-radius: 6px;
    box-shadow: 0 50px 90px -50px rgba(60, 40, 20, 0.55), 0 0 0 1px rgba(21, 23, 28, 0.06);
    transform: rotate(-0.6deg);
    transition: transform 0.45s var(--ease), opacity 0.45s;
}

.postcard.is-sent {
    transform: translate(40px, -30px) rotate(4deg) scale(0.96);
    opacity: 0.4;
}

.postcard__msg,
.postcard__addr {
    padding: clamp(24px, 3.4vw, 48px);
}

/* Dashed divider down the middle, like a real postcard */
.postcard__addr {
    position: relative;
    border-left: 1.5px dashed rgba(21, 23, 28, 0.2);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.postcard__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(32px, 3.6vw, 50px);
    line-height: 1.05;
    margin-bottom: 24px;
}

.postcard__topics {
    border: 0;
    margin: 0 0 22px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.postcard__topics legend,
.postcard__lined > span,
.postcard__field > span,
.postcard__to small,
.ct-label {
    display: block;
    font: 500 11px var(--f-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.postcard__topics label {
    cursor: pointer;
}

.postcard__topics input {
    position: absolute;
    opacity: 0;
}

.postcard__topics span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.postcard__topics input:checked + span {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.postcard__topics input:focus-visible + span {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* Ruled writing lines behind the textarea */
.postcard__lined textarea {
    width: 100%;
    border: 0;
    resize: vertical;
    min-height: 200px;
    padding: 0;
    background: repeating-linear-gradient(transparent 0 35px, rgba(20, 105, 168, 0.22) 35px 36px);
    font: 19px/36px var(--f-display);
    color: var(--ink);
    outline: none;
}

.postcard__lined textarea::placeholder {
    color: var(--ink-3);
}

.postcard__stamp {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0;
    min-height: 120px;
}

.postcard__stamp .stamp {
    width: 104px;
    transform: rotate(3deg);
    text-align: center;
}

.postcard__stamp .stamp__n {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 40px;
}

/* Ink postmark overlapping the stamp */
.postmark--ink {
    position: relative;
    top: 26px;
    right: -18px;
    margin-left: -60px;
    order: 2;
    background: none;
    backdrop-filter: none;
    border-color: rgba(21, 23, 28, 0.55);
    outline-color: rgba(21, 23, 28, 0.35);
    color: rgba(21, 23, 28, 0.6);
}

.postcard__to {
    padding: 10px 0 14px;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-display);
    font-size: 20px;
    line-height: 1.3;
}

.postcard__field input {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(21, 23, 28, 0.25);
    background: transparent;
    padding: 6px 0 8px;
    font: 18px var(--f-body);
    color: var(--ink);
    outline: none;
    transition: border-color 0.3s;
}

.postcard__field input:focus,
.postcard__lined textarea:focus {
    border-color: var(--red);
}

.postcard__send {
    margin-top: 8px;
    align-self: flex-start;
}

.postcard__note {
    font-size: 13px;
    color: var(--ink-3);
}

/* ---------- Map + hours ---------- */
.ct-visit {
    padding: clamp(96px, 12vw, 160px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.ct-visit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.ct-map {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 40px 80px -40px rgba(21, 23, 28, 0.45);
    background: repeating-linear-gradient(45deg, #ece4d4 0 10px, #e6dccb 10px 20px);
}

/* Desaturated map so it sits in the washi palette */
.ct-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.85) sepia(0.15) contrast(1.05);
    transition: filter 0.5s;
}

.ct-map:hover iframe {
    filter: none;
}

.ct-visit__side .muted {
    margin-bottom: 12px;
}

.ct-label {
    margin-top: 36px;
}

.ct-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.ct-hours li {
    display: flex;
    justify-content: space-between;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.ct-hours b {
    font: 500 14px var(--f-mono);
}

.ct-hours li.is-today {
    background: rgba(215, 38, 46, 0.07);
    color: var(--red);
    font-weight: 700;
}

.ct-partner {
    margin-top: 32px;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    background: #fff8e4;
    font-size: 14px;
    color: #5b4a22;
}

.ct-partner__t {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--ink);
}

.ct-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-weight: 600;
}

.ct-social a:hover {
    color: var(--red);
}

@media (max-width: 960px) {
    .ct-channels,
    .ct-visit__grid {
        grid-template-columns: 1fr;
    }

    .ct-ch {
        min-height: 150px;
    }

    .postcard {
        grid-template-columns: 1fr;
        transform: none;
    }

    .postcard__addr {
        border-left: 0;
        border-top: 1.5px dashed rgba(21, 23, 28, 0.2);
    }
}

@media (max-width: 760px) {
    .postcard__stamp {
        min-height: 96px;
        transform: scale(0.8);
        transform-origin: top right;
    }

    .postcard__msg {
        padding-right: 24px;
    }
}

/* ==========================================================================
   PROGRAM PAGES — boarding pass, interactive checklist, route
   ========================================================================== */
.pg-hero {
    padding: clamp(130px, 16vw, 190px) 0 clamp(56px, 7vw, 96px);
    overflow: hidden;
}

.pg-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.pg-hero__tag {
    display: inline-block;
    margin-bottom: 18px;
    font: 500 12px var(--f-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pg-hero__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(46px, 6.6vw, 100px);
    line-height: 0.98;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

body.is-jp .pg-hero__title {
    font-size: clamp(34px, 4.6vw, 68px);
    line-height: 1.2;
}

.pg-hero__sub {
    max-width: 500px;
    font-size: clamp(16px, 1.3vw, 19px);
    color: var(--ink-2);
    margin-bottom: 30px;
}

/* Boarding pass: main part + perforated tear-off stub */
.bpass {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    background: #fffdf8;
    border-radius: 20px;
    box-shadow: 0 50px 90px -50px rgba(21, 23, 28, 0.55), 0 0 0 1px rgba(21, 23, 28, 0.06);
    transform: rotate(2deg);
    transition: transform 0.6s var(--ease);
    /* Half-circle notches where the stub tears off */
    -webkit-mask: radial-gradient(circle 14px at calc(100% - 130px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle 14px at calc(100% - 130px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 14px at calc(100% - 130px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
          radial-gradient(circle 14px at calc(100% - 130px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

.bpass:hover {
    transform: rotate(0deg);
}

.bpass__main {
    padding: 26px 28px;
    border-right: 2px dashed rgba(21, 23, 28, 0.18);
}

.bpass__head {
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 3px solid var(--red);
    font: 500 11px var(--f-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.bpass__head b {
    color: var(--red);
}

.bpass__route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.bpass__route small,
.bpass__grid dt {
    display: block;
    font: 500 10px var(--f-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.bpass__route strong {
    display: block;
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(44px, 4.6vw, 64px);
    line-height: 1;
}

.bpass__to strong {
    font-family: var(--f-jp);
    font-weight: 700;
    color: var(--red);
}

.bpass__route span {
    font-size: 13px;
    color: var(--ink-2);
}

.bpass__to {
    text-align: right;
}

.bpass__plane {
    font-size: 24px;
    color: var(--blue);
    animation: pg-fly 3s ease-in-out infinite;
}

@keyframes pg-fly {
    50% { transform: translateX(8px) translateY(-3px); }
}

.bpass__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.bpass__grid dd {
    margin: 4px 0 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}

.bpass__stub {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 14px;
    text-align: center;
}

.bpass__kanji {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    writing-mode: vertical-rl;
    color: var(--ink);
}

.bpass__barcode {
    width: 70px;
    height: 54px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px);
}

.bpass__stub small {
    font: 500 10px var(--f-mono);
    letter-spacing: 0.12em;
}

/* ---------- About ---------- */
.pg-about {
    padding: clamp(56px, 7vw, 96px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.pg-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.pg-photo {
    position: sticky;
    top: 100px;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(21, 23, 28, 0.45);
    background: repeating-linear-gradient(45deg, #ece4d4 0 10px, #e6dccb 10px 20px);
}

.pg-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
}

.pg-lead {
    font-family: var(--f-display);
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.25;
    margin-bottom: 24px;
}

body.is-jp .pg-lead {
    font-size: clamp(20px, 2vw, 28px);
    line-height: 1.6;
}

.pg-para {
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 18px;
}

/* ---------- Checklist ---------- */
.pg-req {
    padding: clamp(96px, 12vw, 150px) 0;
}

.pg-req__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.pg-req__meter {
    /* "2 / 11" on one line, progress bar spanning underneath */
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: baseline;
    justify-content: end;
    gap: 8px 6px;
    font: 500 14px var(--f-mono);
    color: var(--ink-3);
}

.pg-req__meter b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    color: var(--red);
}

.pg-req__meter i {
    grid-column: 1 / -1;
    display: block;
    width: 160px;
    height: 6px;
    border-radius: 6px;
    background: rgba(21, 23, 28, 0.08);
    overflow: hidden;
}

.pg-req__meter em {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.5s var(--ease);
}

.pg-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
}

.pg-checks label {
    display: grid;
    grid-template-columns: 30px 26px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.pg-checks input {
    position: absolute;
    opacity: 0;
}

.pg-checks__no {
    font: 500 12px var(--f-mono);
    color: var(--ink-3);
    padding-top: 3px;
}

.pg-checks__box {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 1.5px solid rgba(21, 23, 28, 0.35);
    background: #fff;
    transition: background 0.3s, border-color 0.3s;
}

.pg-checks__box::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.3s var(--ease);
}

.pg-checks__text {
    font-size: 16px;
    line-height: 1.5;
}

.pg-checks input:checked ~ .pg-checks__box {
    background: var(--red);
    border-color: var(--red);
}

.pg-checks input:checked ~ .pg-checks__box::after {
    transform: rotate(45deg) scale(1);
}

.pg-checks input:checked ~ .pg-checks__text {
    color: var(--ink-3);
    text-decoration: line-through;
    text-decoration-color: rgba(215, 38, 46, 0.5);
}

.pg-checks label:has(input:checked) {
    background: #fff;
    border-color: rgba(215, 38, 46, 0.3);
}

.pg-checks input:focus-visible ~ .pg-checks__box {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

/* ---------- Route ---------- */
.pg-route {
    padding: clamp(80px, 10vw, 130px) 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.route {
    position: relative;
    list-style: none;
    margin: clamp(28px, 4vw, 48px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

/* Dashed flight path connecting the stops */
.route::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 22px;
    border-top: 2px dashed rgba(20, 105, 168, 0.4);
}

.route li {
    position: relative;
}

.route__dot {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--blue);
    font: 600 15px var(--f-mono);
    color: var(--blue);
}

.route li:last-child .route__dot {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.route h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.route p {
    font-size: 15px;
    color: var(--ink-2);
}

/* ---------- Other routes ---------- */
.pg-others {
    padding: clamp(64px, 8vw, 100px) 0;
}

.pg-others__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.mini-ticket {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.mini-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 40px -28px rgba(21, 23, 28, 0.45);
}

.mini-ticket__kanji {
    font-family: var(--f-jp);
    font-weight: 700;
    font-size: 26px;
    color: var(--red);
}

.mini-ticket__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mini-ticket small {
    font: 500 10px var(--f-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.mini-ticket b {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 22px;
}

.mini-ticket > i {
    font-style: normal;
}

@media (max-width: 960px) {
    .pg-hero__grid,
    .pg-about__grid {
        grid-template-columns: 1fr;
    }

    .pg-photo {
        position: relative;
        top: 0;
    }

    .pg-checks,
    .pg-others__grid {
        grid-template-columns: 1fr;
    }

    .route {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .route::before {
        left: 21px;
        right: auto;
        top: 22px;
        bottom: 22px;
        border-top: 0;
        border-left: 2px dashed rgba(20, 105, 168, 0.4);
    }

    .route li {
        padding-left: 64px;
    }

    .route__dot {
        position: absolute;
        left: 0;
        top: 0;
    }
}

@media (max-width: 760px) {
    .bpass {
        grid-template-columns: minmax(0, 1fr) 84px;
        transform: none;
        -webkit-mask: radial-gradient(circle 12px at calc(100% - 84px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                      radial-gradient(circle 12px at calc(100% - 84px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
        mask: radial-gradient(circle 12px at calc(100% - 84px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
              radial-gradient(circle 12px at calc(100% - 84px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    }

    .bpass__main {
        padding: 20px 18px;
    }

    .bpass__stub {
        padding: 20px 8px;
    }

    .bpass__kanji {
        font-size: 26px;
    }

    .bpass__barcode {
        width: 48px;
        height: 40px;
    }

    .bpass__grid {
        grid-template-columns: 1fr;
    }

    .pg-req__meter {
        justify-content: start;
    }

    .pg-checks label {
        grid-template-columns: 26px 24px 1fr;
        padding: 14px;
    }
}

/* ==========================================================================
   REGISTER — 3-step embarkation card + live boarding pass
   ========================================================================== */
.rg {
    padding: clamp(130px, 16vw, 180px) 0 clamp(96px, 12vw, 150px);
}

.rg__head {
    max-width: 760px;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.rg__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(46px, 7vw, 104px);
    line-height: 0.96;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.rg__title em {
    font-style: italic;
    color: var(--red);
}

body.is-jp .rg__title {
    font-size: clamp(34px, 4.6vw, 68px);
    line-height: 1.2;
}

body.is-jp .rg__title em {
    font-style: normal;
}

.rg__sub {
    font-size: clamp(16px, 1.3vw, 18px);
    color: var(--ink-2);
}

.rg__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.rg-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Embarkation card ---------- */
.emb {
    background: #fffdf8;
    border-radius: 6px;
    box-shadow: 0 50px 90px -50px rgba(60, 40, 20, 0.5), 0 0 0 1px rgba(21, 23, 28, 0.06);
    overflow: hidden;
}

.emb__top {
    display: flex;
    justify-content: space-between;
    padding: 14px 28px;
    background: var(--blue);
    color: #fff;
    font: 500 11px var(--f-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.emb__steps {
    list-style: none;
    margin: 0;
    padding: 18px 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    border-bottom: 1px dashed rgba(21, 23, 28, 0.18);
}

.emb__steps li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-3);
}

.emb__steps b {
    flex: none;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    font: 600 12px var(--f-mono);
}

.emb__steps li.is-on {
    color: var(--ink);
}

.emb__steps li.is-on b {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.emb__steps li.is-done {
    color: var(--blue);
}

.emb__steps li.is-done b {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.emb__alert {
    margin: 18px 28px 0;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(215, 38, 46, 0.08);
    color: var(--red);
    font-weight: 600;
    font-size: 14px;
}

.emb__step {
    border: 0;
    margin: 0;
    padding: 26px 28px 8px;
    animation: emb-in 0.45s var(--ease);
}

@keyframes emb-in {
    from { opacity: 0; transform: translateX(14px); }
}

.emb__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.fld {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fld--wide {
    grid-column: 1 / -1;
}

.fld > span {
    font: 500 11px var(--f-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

/* Form-style boxed inputs, like the ruled boxes of an immigration card */
.fld input,
.fld textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    border: 1.5px solid rgba(21, 23, 28, 0.18);
    border-radius: 10px;
    background: #fff;
    font: 16px var(--f-body);
    color: var(--ink);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.fld textarea {
    resize: vertical;
    line-height: 1.6;
}

.fld input:focus,
.fld textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(20, 105, 168, 0.12);
}

.fld input[aria-invalid="true"],
.fld textarea[aria-invalid="true"] {
    border-color: var(--red);
    background: #fff7f7;
}

.fld small {
    font-size: 12px;
    color: var(--ink-3);
}

.fld__err {
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--red);
}

/* Segmented radio buttons */
.seg {
    display: flex;
    gap: 8px;
}

.seg--wrap {
    flex-wrap: wrap;
}

.seg label {
    flex: 1 1 auto;
    cursor: pointer;
}

.seg--wrap label {
    flex: 0 0 auto;
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg b {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 0 16px;
    border: 1.5px solid rgba(21, 23, 28, 0.18);
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.seg input:checked + b {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.seg input:focus-visible + b {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.emb__privacy {
    margin-top: 18px;
    font-size: 13px;
    color: var(--ink-3);
}

.emb__nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px 28px;
}

.emb__nav [data-prev] {
    margin-right: auto;
}

.emb__nav [hidden] {
    display: none;
}

.emb__nav .btn[disabled] {
    opacity: 0.6;
    transform: none;
}

/* ---------- Live boarding pass ---------- */
.rg-pass {
    position: sticky;
    top: 110px;
}

.rg-pass__ticket {
    grid-template-columns: minmax(0, 1fr) 96px;
    -webkit-mask: radial-gradient(circle 12px at calc(100% - 96px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                  radial-gradient(circle 12px at calc(100% - 96px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 12px at calc(100% - 96px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
          radial-gradient(circle 12px at calc(100% - 96px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

.rg-pass__ticket .bpass__route strong {
    font-size: 44px;
}

.rg-pass__name {
    grid-column: 1 / -1;
}

.rg-pass__name dd {
    font-family: var(--f-mono);
    font-size: 18px;
    letter-spacing: 0.06em;
    word-break: break-word;
}

.rg-pass .bpass__head b {
    color: var(--ink-3);
    transition: color 0.3s;
}

.rg-pass.is-ready .bpass__head b {
    color: #1fa463;
}

.rg-pass__hint {
    margin-top: 16px;
    font-size: 13px;
    color: var(--ink-3);
    text-align: center;
}

/* ---------- Success ---------- */
.rg-ok {
    max-width: 680px;
    padding: clamp(28px, 4vw, 48px);
    border-radius: var(--radius);
    background: #fffdf8;
    border: 1px dashed rgba(215, 38, 46, 0.4);
}

.rg-ok__crane {
    width: 96px;
    margin-bottom: 18px;
    animation: crane-lift 1.6s var(--ease) infinite alternate;
}

.rg-ok__crane path {
    fill: var(--red);
    stroke: var(--red);
    stroke-linejoin: round;
}

.rg-ok__crane path:nth-child(4),
.rg-ok__crane path:nth-child(5) {
    fill: #fff;
    stroke: var(--ink);
}

.rg-ok__title {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.05;
    margin-bottom: 12px;
}

.rg-ok__body {
    color: var(--ink-2);
    margin-bottom: 24px;
}

@media (max-width: 960px) {
    .rg__grid {
        grid-template-columns: 1fr;
    }

    /* Pass previews above the form on smaller screens */
    .rg-pass {
        position: static;
        order: -1;
    }
}

@media (max-width: 760px) {
    .emb__top,
    .emb__steps,
    .emb__step,
    .emb__nav {
        padding-left: 18px;
        padding-right: 18px;
    }

    .emb__steps li {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 11px;
    }

    .emb__grid {
        grid-template-columns: 1fr;
    }

    .rg-pass__hint {
        display: none;
    }
}

/* Mobile: compact pass so the form starts higher up */
@media (max-width: 760px) {
    .rg-pass__ticket .bpass__main {
        padding: 14px 16px;
    }

    .rg-pass__ticket .bpass__route {
        margin-bottom: 10px;
    }

    .rg-pass__ticket .bpass__route strong {
        font-size: 30px;
    }

    .rg-pass__ticket .bpass__route span,
    .rg-pass__ticket .bpass__grid > div:nth-child(3),
    .rg-pass__ticket .bpass__barcode {
        display: none;
    }

    .rg-pass__ticket .bpass__grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .rg-pass__ticket .bpass__head {
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
}
