/* CEO Story เมื่อถูกรวมเข้าในหน้าแรก (product/web/dist/index.html) — โหลดหลัง CSS ของหน้าแรกทั้งหมด
   1) โทเคนของเรื่อง (--green --cream --pink --ink --line ฯลฯ) ชื่อซ้ำกับของหน้าแรก (navy edition) → ประกาศซ้ำแบบจำกัดขอบเขตที่ตัวเรื่องและชิ้นส่วนที่ตรึงจอ
   2) หน้าแรกบังคับฟอนต์ Itim ด้วย !important → ยกเว้นให้เรื่องใช้ KhaoNiaw / Zen Maru / Noto Serif Thai ตามแบบ
   3) ชิ้นส่วนที่ตรึงจอของเรื่อง (canvas, แกนไทม์ไลน์, ไม้บรรทัด, คำใบ้) ซ่อนเมื่อเรื่องไม่อยู่บนจอ (html.is-story-active จาก v7-johakyu.js) */
#our-story, canvas.gl, #gl-proxies, .spine, .ruler, .fore, .hint, .loader {
  --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;
  --roll: 68px; --ruler-h: 78px; --top-pad: 76px;
  --ink: #161A18; --ink2: #5C6460; --ink3: #8A908C; --line: #E6E6E1; --soft: 0 26px 64px rgba(22,26,24,.10), 0 2px 10px rgba(22,26,24,.05); --soft-sm: 0 12px 32px rgba(22,26,24,.08), 0 1px 4px rgba(22,26,24,.04);
}
@media (max-width: 767px) { #our-story, canvas.gl, #gl-proxies, .spine, .ruler, .fore, .hint, .loader { --spine-w: 0px; --glyph: clamp(88px, 30vw, 160px); } }
html[data-mode="h"] #our-story, html[data-mode="h"] .spine, html[data-mode="h"] .ruler, html[data-mode="h"] .fore, html[data-mode="h"] .hint { --spine-w: 0px; }
/* ตัวเรื่องเอง */
#our-story { position: relative; z-index: 4; background: var(--cream); color: var(--green); font-size: 17px; line-height: 1.6; }
#our-story, #our-story *, .spine, .spine *, .ruler, .ruler *, .fore, .hint, #gl-proxies, #gl-proxies * { font-family: var(--font-th) !important; letter-spacing: normal; }
#our-story [lang="ja"], #our-story [lang="ja"] *, #our-story .jp, #our-story .stamp, #our-story .hanko, #our-story .kanji, #our-story .beat__glyph span:not([lang="en"]), .ruler .act, #gl-proxies [lang="ja"] { font-family: var(--font-jp) !important; }
#our-story .founder-cap .hero__name { font-family: 'Noto Serif Thai', 'KhaoNiaw', 'Noto Serif', serif !important; }
#our-story .v7-end .cta, #our-story .v7-cta, #our-story .ch-big, #our-story .v7-hero, #our-story .v7-row { letter-spacing: inherit; }
/* ชิ้นส่วนที่ตรึงจอ: โผล่เฉพาะช่วงเรื่อง */
html.is-host:not(.is-story-active) .spine, html.is-host:not(.is-story-active) .ruler, html.is-host:not(.is-story-active) .fore, html.is-host:not(.is-story-active) .hint, html.is-host:not(.is-story-active) canvas.gl, html.is-host:not(.is-story-active) #gl-proxies { visibility: hidden !important; opacity: 0 !important; }
html.is-host .story-brand, html.is-host .switcher, html.is-host .loader { display: none !important; }
/* ส่วนหัวของหน้าแรกลอยอยู่บนเรื่อง (z 30) — ให้ชิ้นส่วนลอยของเรื่องอยู่ใต้ส่วนหัว */
html.is-host .spine, html.is-host .ruler, html.is-host .hint { z-index: 25; }
