/* ============================================================
   NIKKENSEI · CEO Story — shared styles (ทุกเวอร์ชันใช้ไฟล์นี้)
   สี 4 ค่าของแบรนด์เท่านั้น: เขียว #006D40 · ครีม #FFFEEF · ชมพู #FF52A2 · ขาว #FFFFFF
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+Thai:wght@400;700&display=swap');

@font-face { font-family: 'KhaoNiaw'; src: url('assets/fonts/khaoniaw/KhaoNiaw-Thin.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'KhaoNiaw'; src: url('assets/fonts/khaoniaw/KhaoNiaw-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'KhaoNiaw'; src: url('assets/fonts/khaoniaw/KhaoNiaw-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --green: #006D40; --cream: #FFFEEF; --pink: #FF52A2; --white: #FFFFFF;
  --green-a08: rgba(0,109,64,.08); --green-a15: rgba(0,109,64,.15); --green-a30: rgba(0,109,64,.30); --green-a60: rgba(0,109,64,.6);
  --pink-a20: rgba(255,82,162,.2); --cream-a0: rgba(255,254,239,0); --cream-a80: rgba(255,254,239,.85);
  --font-th: 'KhaoNiaw', 'Noto Sans Thai', 'Zen Maru Gothic', sans-serif;
  --font-jp: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', sans-serif;
  --r-sm: 10px; --r-md: 13px; --r-lg: 18px; --r-xl: 22px; --r-2xl: 26px; --r-chip: 999px;
  --sh-pink-sm: 2px 2px 0 var(--pink); --sh-pink-md: 3px 5px 0 var(--pink); --sh-pink-lg: 6px 6px 0 var(--pink);
  --sh-green-sm: 2px 2px 0 var(--green); --sh-green-md: 3px 4px 0 var(--green);
  --gutter: clamp(16px, 4vw, 56px);
  --glyph: clamp(96px, 34vw, 520px);
  --spine-w: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--cream); color: var(--green); font-family: var(--font-th); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink); color: var(--white); }
[lang="ja"], .jp { font-family: var(--font-jp); font-weight: 700; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---- Type scale (ไทย: พาดหัว line-height ≥ 1.3, เนื้อความ ≥ 1.6) ---- */
.t-kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.t-h1 { font-size: clamp(34px, 5.2vw, 72px); line-height: 1.3; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.t-h2 { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.3; font-weight: 700; margin: 0; }
.t-ja { font-size: clamp(18px, 2vw, 26px); line-height: 1.5; }
.t-body { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.65; margin: 0; }
.t-cap { font-size: 13px; line-height: 1.5; }
.split-line { display: block; overflow: hidden; padding: .14em 0; margin: -.14em 0; }
.split .w, .split .c { display: inline-block; will-change: transform, opacity; }
.split .ws { white-space: pre; }

/* ---- Page frame ---- */
.story-brand { position: fixed; top: 18px; left: 18px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px 0 10px; border: 2px solid var(--green); border-radius: var(--r-chip); background: var(--white); box-shadow: var(--sh-pink-sm); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.story-brand .jp { font-size: 15px; }
.story-brand .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--pink); }

/* version switcher (มุมขวาบน) */
.switcher { position: fixed; top: 18px; right: 18px; z-index: 60; display: flex; gap: 8px; align-items: flex-start; }
.switcher__cur { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 2px solid var(--green); border-radius: var(--r-chip); background: var(--green); color: var(--white); font-weight: 700; font-size: 13px; box-shadow: var(--sh-pink-sm); }
.switcher__cur .jp { font-size: 15px; }
.switcher__cur svg { width: 14px; height: 14px; }
.switcher__menu { position: absolute; top: 46px; right: 0; min-width: 300px; padding: 8px; background: var(--white); border: 2px solid var(--green); border-radius: var(--r-lg); box-shadow: var(--sh-pink-md); display: none; flex-direction: column; gap: 4px; }
.switcher.is-open .switcher__menu { display: flex; }
.switcher__item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-md); color: var(--green); }
.switcher__item:hover, .switcher__item.is-cur { background: var(--cream); }
.switcher__item .code { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.switcher__item .name { font-weight: 700; font-size: 14px; }
.switcher__item .name .jp { font-size: 16px; margin-right: 6px; }
.switcher__item .desc { font-size: 12px; opacity: .8; line-height: 1.4; }
.switcher__foot { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--green-a15); margin-top: 4px; }
.switcher__btn { flex: 1; height: 34px; border-radius: var(--r-chip); border: 2px solid var(--green); font-weight: 700; font-size: 12px; background: var(--white); color: var(--green); }
.switcher__btn.is-primary { background: var(--pink); border-color: var(--pink); color: var(--white); }
.switcher__btn.is-done { background: var(--green); border-color: var(--green); color: var(--white); }

/* loader (นับ % แบบ Sage East) */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--cream); display: grid; place-items: center; color: var(--green); }
.loader__box { text-align: center; }
.loader__brand { font-family: var(--font-jp); font-size: clamp(28px, 4vw, 44px); letter-spacing: .3em; margin-right: -.3em; }
.loader__pct { font-size: clamp(56px, 10vw, 120px); line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.loader__bar { width: min(60vw, 360px); height: 4px; margin: 18px auto 0; background: var(--green-a15); border-radius: 999px; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--pink); }
.loader.is-done { pointer-events: none; }

/* timeline spine (เส้นเวลาวิ่งตลอดหน้า) */
.spine { position: fixed; left: 0; top: 0; bottom: 0; width: var(--spine-w); z-index: 40; display: flex; flex-direction: column; justify-content: center; pointer-events: none; }
.spine__line { position: absolute; left: 34px; top: 12vh; bottom: 12vh; width: 2px; background: var(--green-a15); border-radius: 2px; }
.spine__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: var(--pink); border-radius: 2px; }
.spine__ticks { position: absolute; left: 0; top: 12vh; bottom: 12vh; width: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.spine__tick { position: relative; height: 0; display: flex; align-items: center; gap: 10px; padding-left: 29px; color: var(--green); }
.spine__dot { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--green); background: var(--cream); flex-shrink: 0; transition: background .25s ease, transform .25s ease, border-color .25s ease; }
.spine__label { position: absolute; left: 48px; white-space: nowrap; font-size: 11px; font-weight: 700; line-height: 1.2; opacity: 0; transform: translateX(-6px); transition: opacity .25s ease, transform .25s ease; }
.spine__label small { display: block; font-weight: 400; opacity: .75; }
.spine__tick.is-active .spine__dot { background: var(--pink); border-color: var(--pink); transform: scale(1.25); }
.spine__tick.is-active .spine__label, .spine:hover .spine__label { opacity: 1; transform: none; }
.spine__tick.is-past .spine__dot { background: var(--green); }
@media (max-width: 767px) {
  .spine { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 46px; flex-direction: row; background: var(--cream-a80); border-top: 1px solid var(--green-a15); backdrop-filter: blur(6px); }
  .spine__line { left: 24px; right: 24px; top: 14px; bottom: auto; width: auto; height: 2px; }
  .spine__fill { height: 100%; width: 0%; }
  .spine__ticks { left: 24px; right: 24px; top: 8px; bottom: auto; width: auto; flex-direction: row; }
  .spine__tick { width: 0; padding-left: 0; }
  .spine__dot { width: 12px; height: 12px; margin-left: -6px; }
  .spine__label { left: 50%; top: 16px; transform: translateX(-50%); font-size: 10px; text-align: center; }
  .spine__tick.is-active .spine__label { transform: translateX(-50%); }
  .spine__label small { display: inline; margin-left: 4px; }
}

/* ---- Beat (1 จอ 1 ไอเดีย) ---- */
.story { position: relative; z-index: 1; }
.beat { position: relative; min-height: 100vh; min-height: 100svh; padding: clamp(72px, 10vh, 120px) var(--gutter) clamp(72px, 10vh, 120px) calc(var(--gutter) + var(--spine-w)); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); align-items: center; }
.beat__glyph { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; display: flex; align-items: center; }
.beat__glyph span { font-family: var(--font-jp); font-weight: 900; font-size: var(--glyph); line-height: 1; color: var(--green); opacity: .13; letter-spacing: -.02em; white-space: nowrap; padding-left: var(--spine-w); -webkit-text-stroke: 1px var(--green-a30); }
.beat__glyph span[lang="en"] { font-family: var(--font-th); font-weight: 700; }
.beat__copy { position: relative; z-index: 2; grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.beat__media { position: relative; z-index: 1; grid-column: 7 / span 6; display: grid; gap: 18px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.beat__media > .story-img:only-child { grid-column: 1 / -1; }
.beat__media .story-img img { max-height: 68vh; }
.beat__media .story-img[data-role="side"] { --tilt: 2.4deg; }
.beat--B6 .beat__media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.beat__copy, .beat__media { grid-row: 1; } /* คอลัมน์สลับซ้าย–ขวาได้โดยไม่ตกไปแถวใหม่ */
.beat--flip .beat__copy { grid-column: 8 / span 5; }
.beat--flip .beat__media { grid-column: 1 / span 6; }
.beat__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.beat__kicker .act { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border: 2px solid var(--green); border-radius: var(--r-sm); background: var(--white); box-shadow: var(--sh-pink-sm); font-size: 15px; }
.beat__kicker .sep { opacity: .4; }
.beat__kicker time { font-variant-numeric: tabular-nums; }
.beat__kicker time.is-draft { border-bottom: 2px dotted var(--pink); }
.beat__ja { margin: 0; color: inherit; opacity: .9; }
.beat__more { font-size: 15px; line-height: 1.6; }
.beat__more summary { cursor: pointer; font-weight: 700; color: var(--pink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.beat__more summary::-webkit-details-marker { display: none; }
.beat__more summary::after { content: '+'; font-weight: 700; }
.beat__more[open] summary::after { content: '−'; }
.beat__more p { margin: 8px 0 0; }
.strike { position: relative; display: inline-block; }
.strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 55%; height: .12em; background: var(--pink); transform: scaleX(0); transform-origin: left center; border-radius: 2px; }
.strike.is-on::after { transform: scaleX(1); }

/* ---- Photo treatment (ชุดเดียวทั้งหน้า: ขอบกระดาษขาว + กรอบเขียว 2px + เงาทึบชมพู + เอียงเล็กน้อย) ---- */
.story-img { position: relative; margin: 0; background: var(--white); padding: 10px 10px 14px; border: 2px solid var(--green); border-radius: var(--r-md); box-shadow: var(--sh-pink-md); transform: rotate(var(--tilt, 0deg)); --fx: 50%; --fy: 50%; }
.story-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--fx) var(--fy); border-radius: 6px; aspect-ratio: var(--ar, auto); }
.story-img figcaption { margin: 10px 2px 0; font-size: 12px; line-height: 1.4; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.story-img figcaption::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--pink); flex-shrink: 0; }
.story-img.is-clean { padding: 0; border: 0; box-shadow: none; border-radius: var(--r-2xl); overflow: hidden; background: transparent; transform: none; }
.story-img.is-clean img { border-radius: var(--r-2xl); }
.story-img.is-clean figcaption { display: none; }
.story-img[data-role="lead"] { --ar: 3 / 4; }
.story-img[data-role="side"] { --ar: 4 / 3; }
.story-img[data-role="gallery"] { --ar: 3 / 4; }
.story-img[data-role="gallery-wide"] { --ar: 16 / 9; }
.story-img[data-role="gallery-big"] { --ar: 3 / 4; }
.story-img[data-key="p09"] { --ar: 9 / 16; }
.story-img[data-key="p01w"] { --ar: 900 / 410; }

/* B0 hero (เข้าใจในภาพเดียว: รูป + ชื่อ + บทบาท → ชิป 4 → การ์ดงานวิจัย) */
.beat--B0 { align-items: center; }
.beat--B0 .beat__copy { grid-column: 1 / span 6; max-width: 640px; gap: 18px; }
.beat--B0 .beat__media { grid-column: 8 / span 5; }
.hero__name { font-size: clamp(40px, 5.6vw, 84px); line-height: 1.25; font-weight: 700; margin: 0; }
.hero__name-th { display: inline-block; }
.hero__name small { display: block; font-size: .32em; letter-spacing: .14em; font-weight: 700; opacity: .8; margin-top: .2em; }
.hero__role { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; margin: 0; font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.stat { background: var(--white); border: 2px solid var(--green); border-radius: var(--r-lg); padding: 12px 12px 10px; box-shadow: var(--sh-green-sm); min-width: 0; }
.stat b { display: block; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
.stat span { display: block; font-size: 11px; line-height: 1.35; margin-top: 4px; font-weight: 700; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border: 2px solid var(--green); border-radius: var(--r-chip); background: var(--cream); font-size: 13px; font-weight: 700; line-height: 1.3; }
.research-card { position: relative; background: var(--white); border: 2px solid var(--green); border-radius: var(--r-xl); padding: 14px 16px; box-shadow: var(--sh-pink-md); }
.research-card summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; }
.research-card summary::-webkit-details-marker { display: none; }
.research-card .hanko { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--pink); color: var(--pink); border-radius: 8px; font-size: 20px; transform: rotate(-6deg); }
.research-card .r-title { font-size: 13.5px; line-height: 1.55; }
.research-card .r-plus { font-weight: 700; color: var(--pink); font-size: 20px; }
.research-card[open] .r-plus { transform: rotate(45deg); }
.research-card .r-body { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--green-a15); font-size: 13.5px; line-height: 1.6; display: grid; gap: 4px; }
.hero__overlay { display: none; }

/* B4 gallery */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; grid-auto-rows: minmax(120px, auto); grid-auto-flow: dense; }
.gallery .story-img[data-role="gallery-wide"] { grid-column: span 2; }
.gallery .story-img[data-role="gallery-big"] { grid-column: span 2; grid-row: span 2; }
.gallery .story-img { display: flex; flex-direction: column; min-height: 0; }
.gallery .story-img img { flex: 1 1 auto; min-height: 0; height: auto; } /* คง aspect-ratio ตาม --ar ของ role ไว้ เพื่อจองพื้นที่ก่อนรูป lazy โหลด (aspect-ratio:auto จะทับค่าจาก width/height attribute แล้วการ์ดยุบเหลือแค่คำบรรยาย) */
.gallery .story-img figcaption { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.gallery .story-img figcaption::before { display: inline-block; vertical-align: middle; margin-right: 6px; }
.gallery .story-img figcaption .draft-flag { margin-left: 6px; }
.beat--B4 { display: block; }
.beat--B4 .beat__copy { max-width: 720px; margin-bottom: 28px; }
.beat--B4 .beat__media { display: grid; gap: 22px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 1099px) { .beat--B4 .beat__media { grid-template-columns: 1fr; } .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.beat--B4 .lead-wide { max-width: 980px; }
.stamp { position: absolute; z-index: 3; right: 16px; bottom: 44px; width: clamp(96px, 12vw, 160px); aspect-ratio: 1; display: grid; place-items: center; border: 4px solid var(--pink); border-radius: 12px; color: var(--pink); font-family: var(--font-jp); font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 1; transform: rotate(-12deg); background: var(--cream-a80); pointer-events: none; opacity: 0; }
.stamp::after { content: ''; position: absolute; inset: 5px; border: 1.5px solid var(--pink); border-radius: 8px; }

/* B5 research (縦書き บนเดสก์ท็อป) */
.research-title { margin: 0; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.8; }
.research-sub { margin: 0; font-size: 14px; line-height: 1.6; opacity: .9; }
@media (min-width: 1100px) { .tate { writing-mode: vertical-rl; text-orientation: mixed; max-height: 70vh; } }

/* B6 flip (N3 → N1) */
.flip-num { display: inline-flex; gap: .05em; font-weight: 700; }

/* B7 principles */
.principles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.principle { background: var(--white); border: 2px solid var(--green); border-radius: var(--r-xl); padding: 22px 20px 20px; box-shadow: var(--sh-pink-md); display: flex; flex-direction: column; gap: 10px; }
.principle .kanji { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--cream); border: 2px solid var(--green); font-size: 26px; }
.principle h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.principle p { margin: 0; font-size: 15px; line-height: 1.6; }
.principle .draft { font-size: 11px; font-weight: 700; color: var(--pink); letter-spacing: .1em; }
.beat--B7 .beat__copy { grid-column: 1 / span 8; max-width: 760px; margin-bottom: 26px; }
.beat--B7 { grid-template-rows: auto auto; align-content: center; }
.beat--B7 .principles { grid-row: 2; }

/* B8 recap + CTA */
.recap { grid-column: 1 / -1; display: flex; align-items: center; gap: 0; margin: 10px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.recap li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.recap li b { font-size: clamp(18px, 2vw, 26px); padding: 4px 10px; border: 2px solid var(--green); border-radius: var(--r-sm); background: var(--white); box-shadow: var(--sh-pink-sm); white-space: nowrap; }
.recap li .arrow { width: clamp(18px, 3vw, 40px); height: 2px; background: var(--green); margin: 0 8px; position: relative; }
.recap li .arrow::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid var(--green); border-right: 2px solid var(--green); transform: rotate(45deg); }
.cta { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; height: 56px; padding: 0 26px; border-radius: var(--r-chip); background: var(--pink); color: var(--white); font-weight: 700; font-size: 17px; border: 2px solid var(--pink); box-shadow: var(--sh-green-md); transition: box-shadow .2s ease; } /* ไม่ transition transform: GSAP from() จะอ่านค่าปลายผิด */
.cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 6px 0 var(--green); }
.cta svg { width: 18px; height: 18px; }
.draft-flag { font-size: 11px; font-weight: 700; color: var(--pink); letter-spacing: .1em; }

/* ---- Responsive ---- */
@media (max-width: 1099px) {
  .beat__copy, .beat--flip .beat__copy { grid-column: 1 / span 6; }
  .beat__media, .beat--flip .beat__media { grid-column: 7 / span 6; }
  .beat--B0 .beat__copy { grid-column: 1 / span 7; }
  .beat--B0 .beat__media { grid-column: 8 / span 5; }
}
@media (max-width: 767px) {
  :root { --spine-w: 0px; --glyph: clamp(88px, 30vw, 160px); }
  body { font-size: 16px; }
  .beat { grid-template-columns: 1fr; padding: 84px var(--gutter) 90px; align-content: start; row-gap: 22px; min-height: 0; }
  .beat__copy { grid-row: auto; } .beat__media { grid-row: auto; } .beat--B7 .principles { grid-row: auto; }
  .beat__glyph { align-items: flex-start; }
  .beat__glyph span { padding: 64px 0 0 var(--gutter); opacity: .1; }
  .beat__copy, .beat--flip .beat__copy, .beat--B0 .beat__copy, .beat--B7 .beat__copy { grid-column: 1 / -1; max-width: none; }
  .beat__media, .beat--flip .beat__media, .beat--B0 .beat__media, .beat--B6 .beat__media { grid-column: 1 / -1; grid-template-columns: 1fr; }
  .beat__media .story-img img { max-height: 62svh; }
  .beat--B0 { padding-top: 70px; }
  .beat--B0 .beat__media { order: -1; }
  .beat--B0 .story-img.is-clean { max-height: 72svh; }
  .beat--B0 .story-img.is-clean img { max-height: 72svh; }
  .hero__overlay { display: block; position: absolute; left: 16px; right: 16px; top: 16px; z-index: 3; color: var(--white); text-shadow: 0 1px 2px rgba(0,109,64,.35); }
  .hero__overlay .hero__name { font-size: clamp(30px, 9vw, 44px); color: var(--white); }
  .hero__overlay .hero__role { color: var(--white); font-size: 14px; }
  .beat--B0 .beat__copy .hero__name, .beat--B0 .beat__copy .hero__role { display: none; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .principles { grid-template-columns: 1fr; }
  .story-brand { top: 12px; left: 12px; height: 34px; font-size: 12px; }
  .switcher { top: 12px; right: 12px; }
  .switcher__cur { height: 34px; font-size: 12px; }
  .switcher__menu { min-width: min(86vw, 320px); }
  .story-img { padding: 8px 8px 10px; }
  .recap li b { font-size: 16px; }
}

/* ---- Reduced motion: ตัด pin/scrub/อนุภาค เหลือ fade สั้น ๆ เนื้อหาครบ ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  .stamp { opacity: 1 !important; }
  .loader { display: none !important; }
}
html[data-reduced="true"] .split .w, html[data-reduced="true"] .split .c { opacity: 1 !important; transform: none !important; }
/* ฝังในหน้าแรก (?embed=1): ไม่มีป้ายแบรนด์/ตัวเลือกเวอร์ชัน (หน้าแม่มีส่วนหัวของตัวเอง) */
html.is-embed .story-brand, html.is-embed .switcher { display: none !important; }
