/* ══════════════════════════════════════════════════════════════════
   nanganlanh.com — styles.css
   Dark editorial, sun-gold. Same design language and engine rules as
   imkhai.me / ktnov.com: mono kickers, display type, script accents,
   compositor-only motion, low-power + reduced-motion tiers, inline
   Bootstrap Icons only (no emoji, no icon fonts).
   ══════════════════════════════════════════════════════════════════ */

:root {
    --bg: #161009;
    --bg-2: #1d150b;
    --panel: rgba(244, 234, 219, 0.045);
    --text: #F4EDE1;
    --muted: #b0a58f;
    --faint: #8a8170;
    --sun: #E8A94F;
    --sun-soft: rgba(232, 169, 79, 0.16);
    --line: rgba(244, 237, 225, 0.14);
    --line-2: rgba(244, 237, 225, 0.08);
    --font-body: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --font-script: 'Great Vibes', cursive;
    --radius: 12px;
    --gutter: clamp(20px, 5vw, 64px);
    --maxw: 1240px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --pad: clamp(80px, 13vh, 150px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (max-width: 820px) { html { overflow-x: clip; } }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    /* clip, not hidden: hidden makes body a scroll container and kills
       position:sticky (the journey pin) in Chrome */
    overflow-x: clip;
}
body.lock { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 1px solid var(--sun); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }

.mono {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.script { font-family: var(--font-script); font-weight: 400; text-transform: none; }
.accent { color: var(--sun); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ── ambient layers ─────────────────────────────────────────────── */
.grain {
    position: fixed; inset: 0; z-index: 70; pointer-events: none;
    opacity: 0.05; display: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.js:not(.reduced):not(.lowpower) .grain { display: block; }
#bokeh {
    position: fixed; inset: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none; display: none;
}
html.js:not(.reduced):not(.lowpower) #bokeh { display: block; }

.rail { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 90; pointer-events: none; }
.rail b {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--sun), #f4d9a8);
    transform: scaleX(0); transform-origin: left;
}

/* custom cursor (fine pointers) */
.cur-d, .cur-r {
    position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none;
    border-radius: 50%; opacity: 0; display: none;
}
.cur-d { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--sun); }
.cur-r {
    width: 34px; height: 34px; margin: -17px 0 0 -17px;
    border: 1px solid rgba(232, 169, 79, 0.5);
    transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}
.cur-r.grow { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
html.js.fine:not(.reduced):not(.lowpower) .cur-d, html.js.fine:not(.reduced):not(.lowpower) .cur-r { display: block; }

/* ── loader: the sun rises ──────────────────────────────────────── */
.loader {
    position: fixed; inset: 0; z-index: 200;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; }
html:not(.js) .loader { display: none; }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.loader-sun { width: 44px; height: 44px; fill: var(--sun); }
html.js:not(.reduced) .loader-sun { animation: sunrise 1.6s var(--ease) both, sunspin 6s linear infinite; }
@keyframes sunrise { from { transform: translateY(26px) scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sunspin { to { rotate: 360deg; } }
.loader-lbl { color: var(--faint); letter-spacing: 0.34em; }

/* ── nav ────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.nav.solid {
    background: rgba(22, 16, 9, 0.82);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom-color: var(--line-2);
}
html.lowpower .nav.solid { background: rgba(22, 16, 9, 0.96); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-in {
    max-width: var(--maxw); margin: 0 auto;
    padding: 16px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none;
    font-family: var(--font-mono); font-size: 0.82rem;
    letter-spacing: 0.22em; text-transform: lowercase; font-weight: 500;
}
.brand svg { width: 17px; height: 17px; fill: var(--sun); }
html.js:not(.reduced) .brand svg { animation: sunspin 14s linear infinite; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
    text-decoration: none; color: var(--muted);
    transition: color 0.3s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--sun); }
.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 101; }
.nav-burger span {
    width: 22px; height: 1.5px; background: var(--text);
    transition: transform 0.35s var(--ease), opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 760px) {
    .nav-burger { display: flex; }
    .nav-links {
        position: fixed; inset: 0; z-index: 100;
        background: rgba(22, 16, 9, 0.97);
        flex-direction: column; align-items: center; justify-content: center; gap: 34px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0s linear 0.45s;
    }
    .nav-links.open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.35s ease, transform 0.45s var(--ease); }
    .nav-links a { font-size: 1rem; }
}

/* ── hero ───────────────────────────────────────────────────────── */
.hero {
    position: relative; z-index: 2;
    min-height: 100svh;
    display: flex; align-items: center;
    overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
    will-change: transform;
}
html.js:not(.reduced) .hero-bg img { animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-veil {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(22, 16, 9, 0.92) 8%, rgba(22, 16, 9, 0.55) 46%, rgba(22, 16, 9, 0.28) 100%),
        linear-gradient(0deg, var(--bg) 0%, transparent 22%);
}
.hero-in {
    position: relative; z-index: 2;
    max-width: var(--maxw); margin: 0 auto; width: 100%;
    padding: 120px var(--gutter) 90px;
    will-change: transform, opacity;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 14px;
    color: var(--sun); margin-bottom: 26px;
}
.hero-eyebrow .ln { width: 44px; height: 1px; background: var(--sun); opacity: 0.6; }
.hero-title {
    font-weight: 800;
    font-size: clamp(52px, 9vw, 128px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    max-width: 12ch;
}
.hero-title .ht-l { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .script {
    text-transform: none; font-weight: 400;
    font-size: clamp(56px, 9.4vw, 138px);
    line-height: 1.05;
    letter-spacing: 0;
}
.ht-w { display: inline-block; }
html.js:not(.reduced) .ht-w {
    transform: translateY(110%);
    animation: heroRise 1.1s var(--ease) forwards;
    animation-delay: calc(0.55s + var(--i) * 0.12s);
}
@keyframes heroRise { to { transform: none; } }
.hero-sub {
    max-width: 44ch; color: var(--muted);
    margin-top: 26px; font-size: clamp(16px, 1.3vw, 19px);
}
html.js:not(.reduced) .hero-sub, html.js:not(.reduced) .hero-eyebrow, html.js:not(.reduced) .hero .cta {
    opacity: 0; animation: fadeUp 1s var(--ease) forwards;
}
html.js:not(.reduced) .hero-eyebrow { animation-delay: 0.45s; }
html.js:not(.reduced) .hero-sub { animation-delay: 1.05s; }
html.js:not(.reduced) .hero .cta { animation-delay: 1.2s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* CTA: pill with nested icon disc (house pattern) */
.cta {
    display: inline-flex; align-items: center; gap: 14px;
    margin-top: 38px;
    padding: 8px 8px 8px 26px;
    border: 1px solid var(--line);
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600; font-size: 0.95rem;
    transition: border-color 0.35s ease, background 0.35s ease;
    will-change: transform;
}
.cta:hover, .cta:focus-visible { border-color: var(--sun); background: var(--sun-soft); }
.cta:active { transform: scale(0.98); }
.cta-ico {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--sun); color: #1d150b;
    transition: transform 0.4s var(--ease);
}
.cta-ico svg { width: 15px; height: 15px; fill: currentColor; }
.cta:hover .cta-ico { transform: translateY(2px); }

/* ── sections shared ────────────────────────────────────────────── */
.blk { position: relative; z-index: 2; padding: var(--pad) 0; }
.sec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.sec-head .idx { color: var(--sun); white-space: nowrap; }
.sec-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.disp {
    font-weight: 800; text-transform: uppercase;
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.02; letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.disp .script {
    text-transform: none; font-weight: 400; font-style: normal;
    font-size: 1.18em; line-height: 0.9;
}
.sec-sub { color: var(--muted); max-width: 52ch; margin-bottom: 54px; }

/* reveals: opacity/transform only, staggered by --i */
html.js:not(.reduced) .rv {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.8s ease, transform 0.9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}
html.js:not(.reduced) .rv.in { opacity: 1; transform: none; }

/* ── statement scrub ────────────────────────────────────────────── */
.statement { padding: clamp(90px, 16vh, 170px) 0; }
.stmt {
    font-weight: 600;
    font-size: clamp(26px, 4.4vw, 54px);
    line-height: 1.35;
    max-width: 22ch;
}
.stmt .fw { color: var(--faint); transition: color 0.45s ease; }
.stmt .fw.on { color: var(--text); }
.stmt .fw.g { transition: color 0.45s ease; }
.stmt .fw.g.on { color: var(--sun); text-shadow: 0 0 26px rgba(232, 169, 79, 0.35); }
html.reduced .stmt .fw, html.lowpower .stmt .fw { color: var(--text); }
html.reduced .stmt .fw.g, html.lowpower .stmt .fw.g { color: var(--sun); }

/* ── dishes: editorial grid (feature + 4) ───────────────────────── */
.dish-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(14px, 1.8vw, 24px);
}
.dish {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-2);
    background: var(--bg-2);
    grid-column: span 4;
    aspect-ratio: 4 / 3.4;
}
.dish-feature { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.dish:nth-child(2), .dish:nth-child(3) { grid-column: span 4; }
.dish:nth-child(4), .dish:nth-child(5) { grid-column: span 6; aspect-ratio: 16 / 9.5; }
.dish-im { position: absolute; inset: 0; }
.dish-im img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(1.02);
    transition: transform 1.1s var(--ease);
    will-change: transform;
}
@media (hover: hover) {
    .dish:hover .dish-im img { transform: scale(1.05); }
    .dish:hover { border-color: rgba(232, 169, 79, 0.4); }
    .dish:hover .dish-tag { color: var(--sun); }
}
.dish-veil {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(22, 16, 9, 0.06) 38%, rgba(22, 16, 9, 0.88) 100%);
}
.dish-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 2vw, 26px); z-index: 2; }
.dish-tag { color: rgba(244, 237, 225, 0.55); display: block; margin-bottom: 8px; transition: color 0.35s ease; }
.dish-cap h3 {
    font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
    font-size: clamp(17px, 1.7vw, 24px);
    line-height: 1.1;
}
.dish-feature .dish-cap h3 { font-size: clamp(24px, 2.6vw, 38px); }
.dish-cap p { color: var(--muted); font-size: 0.86rem; margin-top: 8px; max-width: 46ch; }

/* ── story ──────────────────────────────────────────────────────── */
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(30px, 5vw, 80px);
    align-items: center;
}
.story-im {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.story-im img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.story-txt p { color: var(--muted); margin-bottom: 18px; max-width: 54ch; }
.feat-list { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 0; }
.feat-list li {
    display: flex; align-items: center; gap: 14px;
    padding: 15px 2px;
    border-top: 1px solid var(--line-2);
    font-weight: 600; font-size: 0.95rem;
}
.feat-list li:last-child { border-bottom: 1px solid var(--line-2); }
.feat-list svg { width: 16px; height: 16px; fill: var(--sun); flex: none; }

/* ── videos ─────────────────────────────────────────────────────── */
.vid-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(18px, 2.4vw, 30px);
    margin-top: 50px;
}
.vid { margin: 0; }
.yt-facade {
    position: relative; display: block; width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden; border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background: var(--bg-2);
}
.yt-facade img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
@media (hover: hover) {
    .yt-facade:hover img { transform: scale(1.04); }
}
.yt-facade::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(22, 16, 9, 0.55));
}
.play-badge {
    position: absolute; z-index: 2; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: grid; place-items: center;
    width: clamp(52px, 5vw, 64px); height: clamp(52px, 5vw, 64px);
    border-radius: 50%;
    background: rgba(22, 16, 9, 0.6);
    border: 1px solid rgba(232, 169, 79, 0.65);
    color: var(--sun);
    transition: background 0.3s ease, transform 0.3s ease;
}
html.lowpower .play-badge { background: rgba(22, 16, 9, 0.85); }
.play-badge svg { width: 38%; height: 38%; fill: currentColor; margin-left: 3px; }
html.js:not(.reduced) .play-badge::after {
    content: ""; position: absolute; inset: -1.5px; border-radius: 50%;
    border: 1px solid var(--sun); opacity: 0;
    animation: ripple 2.8s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(1); opacity: 0.5; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.yt-facade:hover .play-badge { background: var(--sun-soft); transform: translate(-50%, -50%) scale(1.07); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.yt-facade.playing .play-badge, .yt-facade.playing::after { display: none; }
.vid figcaption {
    display: flex; align-items: baseline; gap: 12px;
    margin-top: 14px; font-weight: 600; font-size: 0.95rem;
}

/* ── contact ────────────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: clamp(30px, 4vw, 70px);
    margin-top: 50px;
    align-items: start;
}
.c-form { display: flex; flex-direction: column; gap: 20px; }
.f-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f-row { display: flex; flex-direction: column; gap: 8px; }
.f-row label { color: var(--faint); }
.f-row input, .f-row textarea {
    background: var(--panel);
    border: 1px solid var(--line-2);
    border-radius: 10px;
    color: var(--text);
    font: inherit;
    padding: 13px 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.f-row input:focus, .f-row textarea:focus {
    outline: none;
    border-color: rgba(232, 169, 79, 0.6);
    background: rgba(244, 234, 219, 0.07);
}
.f-row textarea { resize: vertical; min-height: 120px; }
.c-submit { margin-top: 4px; align-self: flex-start; }
.f-status { min-height: 1.2em; color: var(--sun); letter-spacing: 0.1em; }
.f-status.err { color: #e88b6a; }

.c-info {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: radial-gradient(ellipse 120% 90% at 50% 0%, rgba(232, 169, 79, 0.07), transparent 70%);
    padding: clamp(22px, 2.6vw, 34px);
}
.c-info h3 { font-size: 2.1rem; margin-bottom: 20px; font-weight: 400; }
.c-info ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.c-info li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 0.94rem; }
.c-info li a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
.c-info li a:hover { color: var(--sun); }
.c-info svg { width: 15px; height: 15px; fill: var(--sun); flex: none; margin-top: 5px; }
.c-social {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 26px; padding: 10px 18px;
    border: 1px solid var(--line-2); border-radius: 100px;
    text-decoration: none; color: var(--muted);
    transition: color 0.3s ease, border-color 0.3s ease;
}
.c-social:hover { color: var(--sun); border-color: rgba(232, 169, 79, 0.5); }
.c-social svg { width: 14px; height: 14px; fill: currentColor; }

/* ── footer ─────────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--line-2);
    padding: clamp(70px, 11vh, 130px) 0 50px;
    text-align: center;
    position: relative; z-index: 2;
}
.foot-big {
    font-weight: 800; text-transform: uppercase;
    font-size: clamp(34px, 6.5vw, 90px);
    line-height: 0.98; letter-spacing: -0.02em;
}
.sig { font-size: clamp(2.4rem, 4.5vw, 3.4rem); margin: 22px 0 4px; }
.foot-love {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    color: var(--faint); margin-top: 10px;
}
.foot-love svg { width: 11px; height: 11px; fill: var(--sun); }
html.js:not(.reduced) .foot-love svg { animation: beat 2.8s ease-in-out infinite; transform-origin: 50% 55%; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.22); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } 48% { transform: scale(1); } }
.foot-cr { color: var(--faint); margin-top: 44px; font-size: 0.68rem; }

/* ── responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .dish-grid { grid-template-columns: 1fr 1fr; }
    .dish, .dish-feature, .dish:nth-child(n) { grid-column: span 2; aspect-ratio: 16 / 10; grid-row: auto; }
    .dish:nth-child(2), .dish:nth-child(3) { grid-column: span 1; aspect-ratio: 4 / 4.4; }
    .story-grid { grid-template-columns: 1fr; }
    .story-im { max-width: 520px; }
    .vid-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .f-2col { grid-template-columns: 1fr; }
    .dish:nth-child(2), .dish:nth-child(3) { grid-column: span 2; aspect-ratio: 16 / 10; }
}

/* ── reduced motion: everything visible, nothing scrubbed ───────── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.15s !important;
    }
    .rv, .ht-w, .hero-sub, .hero-eyebrow, .hero .cta { opacity: 1 !important; transform: none !important; }
    .hero-bg img { animation: none !important; }
}

/* ── journey: pinned scroll-story — a dish, cooked by scrolling ─────
   Same grammar as the imkhai.me "how an app ships" scene: sticky stage,
   scroll = time, hairline gold instruments, phase chips, residue of
   past phases so the stage fills left → right.
   All frame writes are transform / opacity / stroke-dashoffset. */
.pin-journey { position: relative; height: 340vh; }
.pin-journey .pin-stage {
    position: sticky; top: 0; height: 100vh;
    display: flex; align-items: center; overflow: hidden;
}
.pin-journey .wrap { width: 100%; }
.j-stage { position: relative; max-width: 840px; margin: 30px auto 0; }
.j-svg { width: 100%; height: auto; display: block; }

.jg { fill: none; stroke: var(--sun); stroke-width: 1.3; opacity: 0; }
.ji {
    fill: none; stroke: var(--sun); stroke-width: 1.6; opacity: 0;
    /* scale must pivot on each piece, not the svg origin, or the
       melt-into-pot translation misses the pot */
    transform-box: fill-box; transform-origin: center;
}
.jleaf { stroke-width: 1.4; }
.j-knife {
    stroke: rgba(242, 233, 219, 0.75); stroke-width: 1.2; stroke-linecap: round;
    stroke-dasharray: 240; stroke-dashoffset: 240; opacity: 0;
}
.j-pot { opacity: 0; }
.j-pot-body, .j-pot-lid, .j-pot-h1, .j-pot-h2 {
    fill: none; stroke: rgba(242, 233, 219, 0.85);
    stroke-width: 1.6; stroke-linecap: round;
}
.j-heat { opacity: 0; transform-box: fill-box; transform-origin: center; }
.j-heat path { fill: none; stroke: var(--sun); stroke-width: 1.2; stroke-linecap: round; }
.j-steam { fill: none; stroke: var(--sun); stroke-width: 1.3; stroke-linecap: round; opacity: 0; }
.j-plate {
    fill: none; stroke: rgba(242, 233, 219, 0.8); stroke-width: 1.6;
    stroke-dasharray: 100; stroke-dashoffset: 100;
}
.j-plate-in { stroke: rgba(232, 169, 79, 0.55); stroke-width: 1.2; }
.jf {
    fill: var(--sun); opacity: 0;
    transform-box: fill-box; transform-origin: center; transform: scale(0);
}
.j-serve {
    position: absolute; left: 50%; bottom: -14px;
    font-size: clamp(2.1rem, 4.6vw, 3.2rem); white-space: nowrap;
    opacity: 0; transform: translate(-50%, 18px);
}
.j-chips {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 8px 26px; margin-top: 34px;
    font-size: 0.72rem; letter-spacing: 0.22em; text-transform: lowercase;
}
.j-chips span { color: var(--muted); opacity: 0.4; transition: color 0.35s, opacity 0.35s; }
.j-chips span.on { color: var(--sun); opacity: 1; }

/* static composition: no JS, reduced motion, low power, or narrow
   viewports (html gets overflow-x:clip ≤820px, which would kill the pin) */
html:not(.js) .pin-journey,
html.jstatic .pin-journey { height: auto; }
html:not(.js) .pin-journey .pin-stage,
html.jstatic .pin-journey .pin-stage {
    position: static; height: auto; padding: 96px 0; overflow: visible;
}
html:not(.js) .j-ghosts, html.jstatic .j-ghosts,
html:not(.js) .j-knife, html.jstatic .j-knife { display: none; }
html:not(.js) .ji, html.jstatic .ji,
html:not(.js) .j-pot, html.jstatic .j-pot { opacity: 1; }
html:not(.js) .j-heat, html.jstatic .j-heat { opacity: 0.6; }
html:not(.js) .j-steam, html.jstatic .j-steam { opacity: 0.65; }
html:not(.js) .j-plate, html.jstatic .j-plate { stroke-dashoffset: 0; }
html:not(.js) .jf, html.jstatic .jf { opacity: 0.95; transform: scale(1); }
html:not(.js) .j-serve, html.jstatic .j-serve {
    position: static; opacity: 1; transform: none;
    margin-top: 14px; text-align: center;
}
html:not(.js) .j-chips span, html.jstatic .j-chips span { color: var(--sun); opacity: 1; }
