/* ---------- Rework v2 — Teach · Build · Share ---------- */

/* Nav: active state */
.nav ul a[aria-current="true"] { color: var(--heart); }
.nav .logo-link { display: inline-flex; }

/* ---------- Journey: Capital → Capability → Joy ---------- */
.journey { padding-block: clamp(40px, 6vw, 72px) 0; }
.journey-card { background: var(--head); color: var(--on-dark); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; }
.journey-card::before { content: ""; position: absolute; inset: auto -120px -160px auto; width: 380px; height: 380px; border-radius: 50%; background: var(--heart-grad); opacity: .18; filter: blur(10px); }
.journey-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; position: relative; }
.journey-head h2 { font-size: clamp(24px, 3vw, 34px); }
.journey-head p { color: color-mix(in srgb, var(--on-dark) 75%, transparent); font-size: 15px; max-width: 30em; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 31px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.18)); }
.steps::after { content: ""; position: absolute; left: 12%; top: 31px; height: 3px; width: 76%; border-radius: 3px; background: var(--heart-grad); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.journey.in .steps { --p: 1; }
.step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step .dot { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; font-size: 28px; background: #24395A; border: 2px solid rgba(255,255,255,.16); transition: transform .4s, background .4s, border-color .4s; }
.step .en { font: 600 12px/1.3 "Anuphan"; letter-spacing: .1em; text-transform: uppercase; color: var(--wing); }
.step b { display: block; font: 700 clamp(19px, 2vw, 24px)/1.35 "Anuphan"; margin-top: 4px; }
.step span { display: block; font-size: 14px; line-height: 1.6; margin-top: 6px; color: color-mix(in srgb, var(--on-dark) 72%, transparent); }
.step.joy .dot { background: var(--heart-grad); border-color: transparent; box-shadow: 0 0 0 8px rgba(242,69,47,.18); }
.step.joy b { background: linear-gradient(100deg, #FFB199, #FFD9A0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step.joy .key { display: inline-block; margin-top: 10px; font: 600 11px/1 "Anuphan"; letter-spacing: .08em; padding: 6px 10px; border-radius: 99px; background: var(--wing); color: var(--head); }
.journey.in .step .dot { animation: pop .6s both; }
.journey.in .step:nth-child(2) .dot { animation-delay: .5s; }
.journey.in .step:nth-child(3) .dot { animation-delay: 1s; }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before, .steps::after { left: 31px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; text-align: left; padding: 0; }
  .step .dot { margin: 0; grid-column: 1; grid-row: 1 / span 4; }
  .step > :not(.dot) { grid-column: 2; }
  .step.joy .key { justify-self: start; }
}

/* ---------- Tabs ---------- */
.do { padding-top: clamp(56px, 8vw, 96px); }
.do-head { text-align: center; max-width: 720px; margin: 0 auto 28px; }
.do-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 10px; }
.do-head p { color: var(--ink-soft); margin-top: 12px; }
.tabbar-wrap { position: sticky; top: 68px; z-index: 15; padding: 10px 0; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); }
.tabbar { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 14px 30px -22px rgba(27,46,74,.4); }
.tab { position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer; border-radius: 18px; padding: 14px 12px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ink-soft); font: inherit; text-align: left; transition: color .25s; }
.tab .ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--paper-2); transition: background .3s, transform .3s; }
.tab b { display: block; font: 700 20px/1.2 "Anuphan"; color: var(--ink); }
.tab small { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; }
.tab[aria-selected="true"] { color: color-mix(in srgb, #fff 80%, transparent); }
.tab[aria-selected="true"] b { color: #fff; }
.tab[aria-selected="true"] .ic { background: rgba(255,255,255,.2); transform: rotate(-6deg) scale(1.06); }
.tab:focus-visible { outline: 3px solid var(--wing); outline-offset: 2px; }
.tab-ink { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 24px) / 3); border-radius: 18px; background: var(--head); transition: transform .45s cubic-bezier(.2,.8,.2,1), background .45s; }
.tabbar[data-active="1"] .tab-ink { transform: translateX(calc(100% + 6px)); background: linear-gradient(100deg, #FC3435, #FC6043 45%, #FC8C4C); }
.tabbar[data-active="2"] .tab-ink { transform: translateX(calc(200% + 12px)); background: #C98A1A; }
@media (max-width: 720px) {
  .tab { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; }
  .tab .ic { width: 36px; height: 36px; font-size: 18px; border-radius: 12px; }
  .tab b { font-size: 17px; }
  .tab small { display: none; }
}

.panel { padding-top: 36px; }
.panel[hidden] { display: none; }
.panel.enter > * { animation: rise .55s cubic-bezier(.2,.8,.2,1) both; }
.panel.enter > *:nth-child(2) { animation-delay: .06s; }
.panel.enter > *:nth-child(3) { animation-delay: .12s; }
.panel.enter > *:nth-child(n+4) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.panel-intro { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: end; margin-bottom: 28px; }
.panel-intro h3 { font-size: clamp(26px, 3.2vw, 38px); }
.panel-intro p { color: var(--ink-soft); margin-top: 10px; max-width: 40em; }
@media (max-width: 760px) { .panel-intro { grid-template-columns: 1fr; } }
.sub { margin-top: clamp(48px, 7vw, 80px); }
.sub > .eyebrow + h3 { font-size: clamp(24px, 3vw, 34px); margin-top: 8px; }

/* gym compact */
.gym { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.gym img { border-radius: 22px; width: 100%; height: auto; }
.gym h3 { font-size: clamp(26px, 3.2vw, 38px); }
.gym p.lede { color: var(--ink-soft); margin-top: 12px; }
.cc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; font: 600 14px/1 "Anuphan"; }
.cc span { padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.cc span.on { background: var(--heart-grad); color: #fff; border-color: transparent; }
.cc i { font-style: normal; align-self: center; color: var(--ink-soft); }
@media (max-width: 860px) { .gym { grid-template-columns: 1fr; } }

/* ---------- Work cards (shared with /work) ---------- */
.wk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .wk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .wk-grid { grid-template-columns: 1fr; } }
.wk { --c: var(--heart); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s; transform-style: preserve-3d; }
a.wk:hover { transform: translateY(-6px); box-shadow: 0 26px 44px -26px rgba(27,46,74,.45); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
a.wk:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; }
.wk-shot { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.wk-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
a.wk:hover .wk-shot img { transform: scale(1.05); }
.wk-go { position: absolute; right: 12px; bottom: 12px; padding: 8px 13px; border-radius: 99px; background: rgba(27,46,74,.88); color: #fff; font: 600 13px/1 "Anuphan"; backdrop-filter: blur(4px); transition: background .25s; }
a.wk:hover .wk-go { background: var(--c); }
.wk-tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.92); color: var(--head); font: 600 12px/1 "Anuphan"; }
.wk-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wk-type { font: 600 12px/1.3 "Anuphan"; letter-spacing: .06em; color: var(--c); text-transform: uppercase; }
.wk h3, .wk h4, .wk h2 { font: 700 21px/1.3 "Anuphan"; margin: 0; }
.wk p.d { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.wk .meta { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.wk .meta span { font-size: 12px; line-height: 1; padding: 6px 9px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.wk.c-game { --c: #D9467F; } .wk.c-org { --c: var(--head-2); } .wk.c-public { --c: #1F8A70; } .wk.c-event { --c: #B07812; }
/* designed cover for works that can't be opened from outside */
.wk-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: #fff; background: radial-gradient(120% 90% at 20% 10%, #2D5A7B, #1B2E4A 70%); }
.wk-cover b { display: block; font: 700 22px/1.3 "Anuphan"; }
.wk-cover em { display: block; font-size: 40px; font-style: normal; margin-bottom: 8px; }
.wk-cover small { display: block; opacity: .75; font-size: 13px; margin-top: 4px; }
.wk.is-static .wk-go { background: rgba(255,255,255,.18); }

.build-more { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 24px; border-radius: 20px; background: var(--surface); border: 1px dashed color-mix(in srgb, var(--heart) 45%, var(--line)); }
.build-more p { font: 600 17px/1.5 "Anuphan"; }
.build-more p small { display: block; font: 400 14px "IBM Plex Sans Thai"; color: var(--ink-soft); }

/* ---------- Share ---------- */
.gifts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .gifts { grid-template-columns: 1fr; } }
.gift { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.gift:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(27,46,74,.45); }
.gift:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; }
.gift .th { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--paper-2); display: grid; place-items: center; font-size: 44px; }
.gift .th img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gift .when { font: 600 12px/1.3 "Anuphan"; letter-spacing: .06em; color: #B07812; text-transform: uppercase; }
.gift h3, .gift h4 { font: 700 20px/1.3 "Anuphan"; margin: 4px 0 4px; }
.gift p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.gift .go { display: inline-block; margin-top: 8px; font: 600 14px "Anuphan"; color: var(--heart); }
@media (max-width: 420px) { .gift { grid-template-columns: 84px 1fr; gap: 14px; } }

/* ---------- Closing line ---------- */
.closing { padding-block: clamp(56px, 8vw, 96px); text-align: center; }
.closing img { width: 132px; height: 132px; object-fit: cover; object-position: 50% 18%; border-radius: 50%; margin: 0 auto 16px; box-shadow: 0 0 0 6px var(--surface), 0 16px 30px -14px rgba(242,69,47,.5); }
.gift .th.tile { background: var(--heart-grad); color: #fff; font: 700 30px/1 "Anuphan"; letter-spacing: .02em; }
.gift .th.tile small { display: block; font: 600 11px/1 "Anuphan"; letter-spacing: .12em; margin-top: 6px; opacity: .9; }
.closing p.big { font: 700 clamp(26px, 4vw, 44px)/1.35 "Anuphan"; }
.closing p.big span { background: var(--heart-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing p.sub2 { color: var(--ink-soft); margin-top: 10px; }

/* ---------- Reveal on scroll ---------- */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }

/* ---------- /work page ---------- */
.lab-hero { background: var(--head); color: var(--on-dark); padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.lab-hero::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: var(--heart-grad); opacity: .2; }
.lab-hero .eyebrow { color: var(--wing); }
.lab-hero h1 { font-size: clamp(34px, 5vw, 58px); margin-top: 12px; max-width: 14em; position: relative; z-index: 1; }
.lab-hero h1 span { background: linear-gradient(100deg, #FF9B83, #FFD08A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lab-hero p { margin-top: 16px; max-width: 38em; opacity: .85; position: relative; z-index: 1; }
.lab-hero .back { display: inline-block; margin-bottom: 18px; font: 600 14px "Anuphan"; color: var(--on-dark); opacity: .75; text-decoration: none; }
.lab-hero .back:hover { opacity: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.filters button { appearance: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15px/1 "Anuphan"; padding: 11px 16px; border-radius: 99px; transition: background .2s, color .2s, border-color .2s; }
.filters button span { opacity: .55; margin-left: 4px; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--head); color: #fff; border-color: var(--head); }
.filters button:focus-visible { outline: 3px solid var(--wing); outline-offset: 2px; }
.wk.out { display: none; }
.wk-grid.shuffle .wk { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .steps { --p: 1; }
}

/* ---------- Hero stage: live classroom + floating glass cards ---------- */
.stage { position: relative; padding: 18px 10px 34px; perspective: 1200px; }
.stage-glow { position: absolute; inset: 6% 2% 10%; border-radius: 40px; background: conic-gradient(from 210deg, #FC3435, #FC8C4C, #E8A838, #2D5A7B, #FC3435); filter: blur(38px); opacity: .38; animation: glow 14s linear infinite; }
@keyframes glow { to { transform: rotate(360deg); } }
.stage-frame { position: relative; margin: 0; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; background: var(--head); box-shadow: 0 40px 80px -40px rgba(27,46,74,.65), 0 0 0 1px rgba(255,255,255,.5) inset; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.2s ease, transform 7s linear; }
.slides img.on { opacity: 1; transform: scale(1); }
.stage-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,46,74,0) 55%, rgba(27,46,74,.55)); pointer-events: none; }
.stage-cap { position: absolute; left: 18px; right: 46%; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #fff; font-size: 15px; line-height: 1.5; }
.stage-cap b { font-family: "Anuphan"; padding: 5px 11px; border-radius: 99px; background: var(--heart-grad); font-size: 13px; }
.stage-cap .cap-text { transition: opacity .4s; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.stage-cap .live { width: 9px; height: 9px; border-radius: 50%; background: #FF5A4A; box-shadow: 0 0 0 0 rgba(255,90,74,.7); animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(255,90,74,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,74,0); } }
.stage-dots { position: absolute; top: 16px; right: 18px; z-index: 2; display: flex; gap: 6px; }
.stage-dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.4); overflow: hidden; position: relative; }
.stage-dots i.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 5.2s linear both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.float { position: absolute; z-index: 3; border-radius: 18px; background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.7); box-shadow: 0 18px 40px -18px rgba(27,46,74,.45); transform: translate3d(var(--fx, 0), var(--fy, 0), 0); transition: transform .5s cubic-bezier(.2,.8,.2,1); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -6px; } }
.f-journey { top: 0; left: -4%; padding: 10px 14px; display: flex; align-items: center; gap: 7px; font: 600 13px/1 "Anuphan"; color: var(--ink-soft); white-space: nowrap; }
.f-journey em { font-style: normal; color: var(--heart); }
.f-journey b { color: #fff; background: var(--heart-grad); padding: 6px 10px; border-radius: 99px; }
.f-score { top: 30%; right: -5%; padding: 14px 16px; display: grid; gap: 4px; animation-delay: -2s; }
.f-score b { font: 700 34px/1 "Anuphan"; color: var(--head); }
.f-score b small { font-size: 15px; color: var(--heart); }
.f-score span { font-size: 12px; line-height: 1.45; color: var(--ink-soft); }
.f-work { bottom: 0; right: -4%; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); animation-delay: -4s; }
.f-work img { width: 74px; height: 52px; object-fit: cover; object-position: top; border-radius: 11px; }
.f-work small { display: block; font: 600 11px/1.2 "Anuphan"; letter-spacing: .08em; text-transform: uppercase; color: #D9467F; }
.f-work b { display: block; font: 700 15px/1.3 "Anuphan"; }
.f-work em { display: block; font: 600 12px/1.3 "Anuphan"; font-style: normal; color: var(--heart); }
.f-work:hover { box-shadow: 0 22px 44px -16px rgba(242,69,47,.5); }
.f-work:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; }
@media (max-width: 900px) {
  .stage { order: -1; padding: 10px 0 28px; }
  .stage-frame { aspect-ratio: 4 / 3; }
  .f-journey { left: 8px; top: -4px; font-size: 12px; }
  .f-score { right: 8px; top: auto; bottom: 64px; padding: 10px 12px; }
  .f-score b { font-size: 26px; }
  .f-work { right: 8px; bottom: -6px; }
  .stage-cap { right: 18px; bottom: 56px; }
}
@media (max-width: 420px) { .f-score { display: none; } .f-journey { font-size: 11px; gap: 5px; padding: 8px 10px; } }

/* blurred glow + overhanging cards must never cause sideways scroll */
html, body { overflow-x: clip; }

/* =====================================================================
   v3 — multi-page · accessible colours · header/hamburger · footer
   ===================================================================== */
:root {
  /* text-safe brand tones (≥4.5:1 on paper and white) */
  --heart-ink: #C4301B;
  --wing-ink: #8A5A00;
  --pink-ink: #B3285F;
  --green-ink: #1F7A63;
  /* button / band gradient that keeps white text ≥4.6:1 */
  --heart-solid: linear-gradient(100deg, #D42A1C 0%, #D9381F 60%, #CF3A22 100%);
  --heart-text: linear-gradient(100deg, #D42A1C, #E0452B);
}
.eyebrow { color: var(--heart-ink); }
.why .eyebrow, .lab-hero .eyebrow, .journey .en { color: var(--wing); }
.hero .tagline i { color: var(--heart-ink); }
.hero h1 .heart, .formula em, .closing p.big span { background: var(--heart-text); -webkit-background-clip: text; background-clip: text; }
.btn-primary { background: var(--heart-solid); }
.contact { background: var(--heart-solid); }
.trap .no, .skill b small { color: var(--heart-ink); }
.tier.heart .promise, .tier a.more[style] { color: var(--heart-ink) !important; }
.tier.wing .promise, .tier.wing li::before, .layer.top .pct, .layer.bottom .pct { color: var(--wing-ink); }
.ref { opacity: 1; }
.wk.c-game { --c: var(--pink-ink); } .wk.c-public { --c: var(--green-ink); } .wk.c-event { --c: var(--wing-ink); }
.wk-type { color: var(--c); }
.gift .when { color: var(--wing-ink); }
.gift .go, .f-work em { color: var(--heart-ink); }
.f-work small { color: var(--pink-ink); }
.f-score b small { color: var(--heart-ink); }
.stat .n small { color: var(--wing-ink); }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--head); color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 15px "Anuphan"; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; outline: 3px solid var(--wing); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--wing); outline-offset: 3px; border-radius: 6px; }

/* header + hamburger */
.nav .wrap { gap: 12px; }
.nav .menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; font: 500 15px "Anuphan"; }
.nav .menu a { text-decoration: none; color: var(--ink-soft); padding: 8px 2px; display: inline-block; }
.nav .menu a:hover { color: var(--ink); }
.nav .menu a[aria-current="page"] { color: var(--heart-ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--wing); }
.nav .menu .menu-cta { display: none; }
.burger-btn { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; position: relative; flex: none; }
.burger-btn span, .burger-btn span::before, .burger-btn span::after { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); content: ""; transition: transform .25s, opacity .2s; }
.burger-btn span { top: 22px; } .burger-btn span::before { left: 0; right: 0; top: -7px; } .burger-btn span::after { left: 0; right: 0; top: 7px; }
.burger-btn[aria-expanded="true"] span { background: transparent; }
.burger-btn[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger-btn[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav .menu { display: none; }
  .nav .nav-cta { margin-left: auto; }
  .burger-btn { display: inline-block; }
  .nav.open .menu { display: flex; position: fixed; inset: 68px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 32px; background: var(--paper); overflow-y: auto; animation: rise .3s both; }
  .nav.open .menu a { display: block; padding: 16px 8px; font: 600 20px "Anuphan"; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; }
  .nav.open .menu a[aria-current="page"] { color: var(--heart-ink); }
  .nav.open .menu .menu-cta { display: block; margin-top: 20px; }
  .nav.open .menu .menu-cta a { border: 0; text-align: center; color: #fff; background: var(--heart-solid); border-radius: 99px; }
}
@media (max-width: 420px) { .nav .nav-cta { display: none; } }
body.menu-open { overflow: hidden; }

/* page hero (sub pages) */
.page-hero { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.crumbs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-soft); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--ink-soft); }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 10px; max-width: 16em; }
.page-hero h1 span { background: var(--heart-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero .lede { font-size: 19px; color: var(--ink-soft); margin-top: 16px; max-width: 40em; }
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.sec { padding-block: clamp(48px, 7vw, 88px); }
.sec.tight { padding-top: 0; }
.sec.alt { background: var(--paper-2); }
.sec h2.t { font-size: clamp(28px, 3.6vw, 42px); margin-top: 8px; }
.sec p.lead2 { color: var(--ink-soft); margin-top: 12px; max-width: 44em; font-size: 18px; }
.lab-hero .crumbs, .lab-hero .crumbs a { color: color-mix(in srgb, var(--on-dark) 80%, transparent); }

/* three doors (home) */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.door { --c: var(--head); position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.door:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -28px rgba(27,46,74,.5); }
.door .pic { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.door .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.door:hover .pic img { transform: scale(1.05); }
.door .num { position: absolute; left: 14px; top: 14px; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: rgba(255,255,255,.92); }
.door .body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.door .verb { font: 600 13px/1.3 "Anuphan"; letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.door h3 { font-size: 26px; }
.door p { color: var(--ink-soft); font-size: 15px; }
.door .go { margin-top: auto; padding-top: 12px; font: 600 15px "Anuphan"; color: var(--c); }
.door.d-teach { --c: var(--head-2); } .door.d-build { --c: var(--heart-ink); } .door.d-share { --c: var(--wing-ink); }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } .door { flex-direction: row; } .door .pic { width: 38%; aspect-ratio: auto; flex: none; } }
@media (max-width: 520px) { .door { flex-direction: column; } .door .pic { width: auto; aspect-ratio: 16/9; } }

.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }

/* founder mini (home) */
.mini-founder { display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 24px; }
.mini-founder img { width: 180px; height: 180px; object-fit: cover; object-position: 50% 15%; border-radius: 22px; }
.mini-founder h2 { font-size: clamp(24px, 3vw, 32px); }
.mini-founder p { color: var(--ink-soft); margin-top: 8px; }
.mini-founder .more { display: inline-block; margin-top: 12px; font: 600 15px "Anuphan"; color: var(--heart-ink); }
@media (max-width: 620px) { .mini-founder { grid-template-columns: 1fr; } .mini-founder img { width: 100%; height: 240px; } }

/* CTA band */
.cta-band { background: var(--heart-solid); color: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { opacity: .95; margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--head); }

/* hub soon */
.soon { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); background: var(--surface); border: 2px dashed color-mix(in srgb, var(--heart-ink) 45%, var(--line)); }
.soon .tag { display: inline-block; font: 600 12px/1 "Anuphan"; letter-spacing: .08em; padding: 7px 12px; border-radius: 99px; background: var(--wing-soft); color: var(--wing-ink); }
.soon h3 { font-size: clamp(26px, 3vw, 34px); margin-top: 12px; }
.soon p { color: var(--ink-soft); margin-top: 8px; max-width: 40em; }
@media (max-width: 760px) { .soon { grid-template-columns: 1fr; } }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit div { border-radius: 22px; padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); }
.fit div.yes { background: var(--head); color: var(--on-dark); border: 0; }
.fit b { font: 700 19px "Anuphan"; display: block; }
.fit span { font-size: 15px; opacity: .85; display: block; margin-top: 6px; }
@media (max-width: 700px) { .fit { grid-template-columns: 1fr; } }

/* contact page */
.contact-page { background: var(--heart-solid); color: #fff; }
.ways { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ways a { color: #fff; font: 600 17px "Anuphan"; }

/* hero pause control (WCAG 2.2.2) */
.stage-pause { position: absolute; z-index: 4; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 12px; border: 0; cursor: pointer; background: rgba(27,46,74,.72); color: #fff; font-size: 14px; display: grid; place-items: center; }
.stage-pause:hover { background: rgba(27,46,74,.9); }
.stage.paused .slides img, .stage.paused .float, .stage.paused .stage-dots i.on::after, .stage.paused .live { animation-play-state: paused !important; }
.stage.paused .slides img.on { transition: opacity 1.2s ease; transform: none; }
.stage-glow { animation: none; }

/* footer v3 */
footer.site-foot { background: var(--head); color: color-mix(in srgb, var(--on-dark) 85%, transparent); padding-block: 48px 28px; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-foot h2 { font: 700 15px "Anuphan"; color: #fff; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot a { color: color-mix(in srgb, var(--on-dark) 92%, transparent); }
.site-foot .bye { font: 700 20px/1.4 "Anuphan"; color: #fff; }
.site-foot .bye span { color: #FFB199; }
.site-foot .legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.contact .crumbs, .contact .crumbs a { color: #fff; }
.contact .btn-ghost { color: #fff; }

/* perf: soft glow without a live blur filter (blur on a large layer delayed first paint) */
.stage-glow { filter: none; opacity: .55; background: radial-gradient(60% 55% at 30% 30%, rgba(252,52,53,.45), transparent 70%), radial-gradient(55% 50% at 75% 70%, rgba(232,168,56,.45), transparent 70%), radial-gradient(50% 50% at 70% 20%, rgba(45,90,123,.35), transparent 70%); }

/* backdrop-filter on the header traps position:fixed children — drop it while the menu is open */
.nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
.nav.open .menu { z-index: 30; }
/* pause control top-right, progress dots beside it (keeps clear of the floating cards) */
.stage-pause { left: auto; right: 14px; }
.stage-dots { right: 64px; top: 30px; }

/* ---------- One solution fits one ---------- */
.fit-one { background: var(--surface); border-block: 1px solid var(--line); position: relative; overflow: hidden; }
.fit-one::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: repeating-linear-gradient(90deg, var(--wing) 0 2px, transparent 2px 12px), repeating-linear-gradient(90deg, var(--wing) 0 2px, transparent 2px 60px); background-size: auto 7px, auto 14px; background-repeat: repeat-x; opacity: .55; }
.fo-head { max-width: 820px; }
.fo-title { font-size: clamp(36px, 6vw, 68px); line-height: 1.15; margin-top: 10px; letter-spacing: -.01em; }
.fo-swap s { color: var(--ink-soft); text-decoration-thickness: .08em; text-decoration-color: var(--heart-ink); }
.fo-swap b { background: var(--heart-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fo-lede { font-size: 19px; color: var(--ink-soft); margin-top: 16px; }
.fo-lede strong { color: var(--ink); }
.fit-one.in .fo-swap s { animation: strike .7s .2s both; }
.fit-one.in .fo-swap b { display: inline-block; animation: popin .5s 1s both; }
@keyframes strike { from { text-decoration-color: transparent; } to { text-decoration-color: var(--heart-ink); } }
@keyframes popin { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.fo-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.fo-steps li { position: relative; padding: 20px 22px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 4px; }
.fo-steps li::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--wing-ink); font-weight: 700; }
.fo-steps li:last-child::after { content: none; }
.fo-steps .ic { font-size: 26px; }
.fo-steps b { font: 700 20px "Anuphan"; }
.fo-steps span:last-child { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 760px) { .fo-steps { grid-template-columns: 1fr; } .fo-steps li::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -18px; transform: none; } }
.fo-cases { margin-top: 36px; border-radius: var(--radius); background: var(--head); color: var(--on-dark); padding: clamp(20px, 3.4vw, 34px); }
.fo-cases-lbl { font: 600 14px "Anuphan"; color: var(--wing); }
.fo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fo-tabs button { appearance: none; cursor: pointer; border: 1px solid rgba(255,255,255,.25); background: transparent; color: var(--on-dark); font: 600 15px/1.2 "Anuphan"; padding: 11px 16px; border-radius: 99px; transition: background .2s, color .2s; }
.fo-tabs button[aria-selected="true"] { background: #fff; color: var(--head); border-color: #fff; }
.fo-panel { margin-top: 22px; }
.fo-panel[hidden] { display: none; }
.fo-panel.enter .fo-flow > div { animation: rise .45s both; }
.fo-panel.enter .fo-flow > div:nth-child(2) { animation-delay: .08s; }
.fo-panel.enter .fo-flow > div:nth-child(3) { animation-delay: .16s; }
.fo-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fo-flow > div { border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px 20px; }
.fo-flow .k { font: 700 13px "Anuphan"; letter-spacing: .06em; color: var(--wing); margin-bottom: 6px; }
.fo-flow p:not(.k) { font-size: 16px; line-height: 1.65; }
.fo-flow .out { background: rgba(255,255,255,.08); border-color: rgba(232,168,56,.55); }
.fo-flow a { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .fo-flow { grid-template-columns: 1fr; } }

/* ---------- Tailor metaphor: one-size shirt → fitted per team ---------- */
.fo-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 960px) { .fo-top { grid-template-columns: 1fr; } }
.tailor { position: relative; margin: 0; padding: 18px 18px 12px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); }
.tailor svg { width: 100%; height: auto; display: block; overflow: hidden; border-radius: 12px; }
.tailor .torso { fill: #F1D2BC; }
.tailor .head { fill: #F1D2BC; stroke: #E2B999; stroke-width: 2; }
.tailor .lbl { font: 600 15px "Anuphan", sans-serif; fill: var(--ink-soft); text-anchor: middle; }
.tailor .shirt { transform-box: fill-box; transform-origin: center; transition: transform 1.1s cubic-bezier(.34,1.4,.5,1), fill .8s; fill: #AEB7C2; transform: translateY(0) scale(1, 1); }
.tailor .shirt path { stroke: rgba(27,46,74,.18); stroke-width: 2; }
.tailor .tick { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s, transform .5s cubic-bezier(.34,1.6,.5,1); transform: scale(.3); }
.tailor .tick circle { fill: var(--green-ink); }
.tailor .tick path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tailor .tape { transform: translate(-640px, 262px); }
.tailor .tape rect { fill: var(--wing); }
.tailor .tape .ticks { stroke: var(--head); stroke-width: 1.4; }
/* fitted state: each shirt cut to its own body */
.tailor.is-fit .p1 .shirt { transform: translateY(2px) scale(.8, 1.38); fill: var(--heart-ink); }
.tailor.is-fit .p2 .shirt { transform: translateY(0) scale(1.33, 1.1); fill: var(--head-2); }
.tailor.is-fit .p3 .shirt { transform: translateY(28px) scale(.9, .84); fill: var(--wing-ink); }
.tailor.is-fit .tick { opacity: 1; transform: scale(1); }
.tailor.is-fit .p2 .tick { transition-delay: .15s; } .tailor.is-fit .p3 .tick { transition-delay: .3s; }
.tailor.is-measure .tape { animation: tape 1.1s cubic-bezier(.6,0,.3,1) both; }
@keyframes tape { from { transform: translate(-640px, 262px); } to { transform: translate(640px, 262px); } }
.tailor-cap { position: relative; height: 26px; margin-top: 4px; text-align: center; font: 700 16px "Anuphan"; }
.tailor-cap span { position: absolute; inset: 0; transition: opacity .5s, transform .5s; }
.tailor-cap .c1 { color: var(--ink-soft); }
.tailor-cap .c2 { color: var(--heart-ink); opacity: 0; transform: translateY(8px); }
.tailor.is-fit .c1 { opacity: 0; transform: translateY(-8px); }
.tailor.is-fit .c2 { opacity: 1; transform: none; }
.tailor-replay { position: absolute; top: 12px; right: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 6px 12px; font: 600 13px "Anuphan"; cursor: pointer; opacity: 0; transition: opacity .3s; }
.tailor.is-fit .tailor-replay, .tailor-replay:focus-visible { opacity: 1; }

/* ---------- Tape-measure steps ---------- */
.fo-steps { position: relative; padding-top: 40px; }
.fo-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 18px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--head) 0 1.5px, transparent 1.5px 10px) 0 0 / auto 7px no-repeat, repeating-linear-gradient(90deg, var(--head) 0 1.5px, transparent 1.5px 50px) 0 0 / auto 12px no-repeat, var(--wing); opacity: .9; }
.fo-steps::after { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 30px; border-radius: 2px; background: var(--heart-ink); box-shadow: 0 0 0 4px rgba(196,48,27,.18); }
.fit-one.in .fo-steps::after { animation: slide 2.6s .3s cubic-bezier(.5,0,.3,1) both; }
@keyframes slide { from { left: 0; } to { left: calc(100% - 4px); } }
.fo-steps li { transition: border-color .4s, box-shadow .4s; }
.fit-one.in .fo-steps li { animation: lit .5s both; }
.fit-one.in .fo-steps li:nth-child(1) { animation-delay: .6s; } .fit-one.in .fo-steps li:nth-child(2) { animation-delay: 1.5s; } .fit-one.in .fo-steps li:nth-child(3) { animation-delay: 2.5s; }
@keyframes lit { from { border-color: var(--line); box-shadow: none; } to { border-color: var(--wing); box-shadow: 0 14px 30px -20px rgba(176,120,18,.7); } }
@media (max-width: 760px) { .fo-steps::before, .fo-steps::after { display: none; } .fo-steps { padding-top: 0; } }

/* ---------- Case panels: visual + story ---------- */
.fo-panel { display: grid; grid-template-columns: minmax(240px, .9fr) 1.3fr; gap: 20px; align-items: stretch; }
.fo-panel .fo-flow { grid-template-columns: 1fr; gap: 10px; }
@media (max-width: 860px) { .fo-panel { grid-template-columns: 1fr; } }
.fo-vis { position: relative; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); min-height: 260px; display: grid; place-items: center; overflow: hidden; padding: 18px; }
.fo-vis .sim { position: absolute; top: 10px; left: 12px; font: 600 11px "Anuphan"; letter-spacing: .06em; color: rgba(255,255,255,.7); }
/* ticket + scan */
.vis-ticket { grid-template-columns: auto auto; gap: 18px; }
.phone { width: 150px; height: 230px; border-radius: 26px; background: #0E1A2C; padding: 8px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.12); }
.screen { position: relative; height: 100%; border-radius: 20px; background: linear-gradient(160deg, #4B2A66, #C04A2C 70%, #E8A838); padding: 14px 10px; text-align: center; color: #fff; overflow: hidden; }
.t-ev { font: 700 15px/1.1 "Anuphan"; letter-spacing: .04em; } .t-sub { font-size: 9px; opacity: .85; margin-top: 2px; }
.qr { position: relative; width: 84px; height: 84px; margin: 12px auto 8px; border-radius: 8px; background: #fff; background-image: conic-gradient(#1B2E4A 25%, transparent 0 50%, #1B2E4A 0 75%, transparent 0); background-size: 12px 12px; box-shadow: inset 0 0 0 6px #fff; overflow: hidden; }
.qr .scan { position: absolute; left: 0; right: 0; height: 3px; background: #3CE08A; box-shadow: 0 0 10px 2px #3CE08A; top: 0; }
.fo-panel:not([hidden]) .qr .scan { animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 4px; } 50% { top: 78px; } }
.t-seat { font: 600 10px "Anuphan"; opacity: .95; }
.ok { position: absolute; left: 8px; right: 8px; bottom: 10px; padding: 6px 0; border-radius: 10px; background: #1F7A63; font: 700 12px "Anuphan"; transform: translateY(46px); }
.fo-panel:not([hidden]) .ok { animation: okpop 2.4s ease-in-out infinite; }
@keyframes okpop { 0%, 45% { transform: translateY(46px); } 55%, 90% { transform: none; } 100% { transform: translateY(46px); } }
.count { text-align: left; }
.count b { display: block; font: 700 34px/1 "Anuphan"; color: #fff; }
.count small { color: rgba(255,255,255,.75); font-size: 13px; }
/* hub */
.vis-hub svg { width: 100%; height: auto; }
.vis-hub .ln { fill: none; stroke: rgba(255,255,255,.25); stroke-width: 2; }
.vis-hub .ln2 { stroke: var(--wing); stroke-width: 3; }
.vis-hub .dot { fill: var(--wing); }
.vis-hub .node circle { fill: #2D5A7B; stroke: rgba(255,255,255,.4); }
.vis-hub .node text, .vis-hub .hubnode text { fill: #fff; font: 700 13px "Anuphan", sans-serif; text-anchor: middle; }
.vis-hub .hubnode circle { fill: var(--heart-ink); }
.vis-hub .bd { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.25); }
.vis-hub .col { fill: rgba(255,255,255,.8); font: 600 10px "Anuphan", sans-serif; text-anchor: middle; }
.vis-hub .card { fill: rgba(255,255,255,.85); }
.vis-hub .card.mv { fill: var(--wing); }
.fo-panel:not([hidden]) .vis-hub .card.mv { animation: move 4.8s ease-in-out infinite; }
@keyframes move { 0%, 20% { transform: translate(0, 0); } 40%, 55% { transform: translate(49px, -24px); } 75%, 100% { transform: translate(98px, -0px); } }
/* your team */
.vis-you { gap: 12px; text-align: center; color: #fff; }
.you-fig { position: relative; width: 110px; height: 110px; border-radius: 50%; border: 3px dashed rgba(255,255,255,.45); display: grid; place-items: center; }
.you-fig .q { font: 700 52px "Anuphan"; color: var(--wing); }
.you-fig .ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--wing); opacity: 0; }
.fo-panel:not([hidden]) .you-fig .ring { animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(.8); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }
.vis-you small { opacity: .7; }
.stage.paused ~ * { }

/* ---------- Magic Move between pages (cross-document View Transitions) ---------- */
@view-transition { navigation: auto; }
.nav { view-transition-name: site-nav; }
::view-transition-group(*) { animation-duration: .7s; animation-timing-function: cubic-bezier(.77,0,.18,1); }
::view-transition-old(root) { animation: .35s ease both vt-out; }
::view-transition-new(root) { animation: .5s .1s ease both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: scale(.98); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* page hero with picture */
.ph-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.ph-pic { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5/4; box-shadow: 0 34px 60px -34px rgba(27,46,74,.55); }
.ph-pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .ph-grid { grid-template-columns: 1fr; gap: 24px; } .ph-pic { aspect-ratio: 16/10; order: -1; } }

/* headline entrance: blur → sharp */
.page-hero h1, .hero h1 { animation: blurin .9s cubic-bezier(.2,.8,.2,1) both; }
.page-hero .lede, .hero .lead { animation: blurin .9s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes blurin { from { opacity: 0; filter: blur(8px); transform: translateY(14px); } to { opacity: 1; filter: none; transform: none; } }

/* journey line draws with the scroll where supported */
@supports (animation-timeline: view()) {
  .journey .steps::after { transition: none; transform: scaleX(0); animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 55%; }
  @keyframes draw { to { transform: scaleX(1); } }
  @media (max-width: 720px) { .journey .steps::after { transform: scaleY(0); animation-name: drawy; } @keyframes drawy { to { transform: scaleY(1); } } }
}

/* ---------- Keyword metaphors ---------- */
/* hamburger 10-80-10: layer thickness follows the real proportion, assembled bottom-up */
.burger { gap: 6px; }
.burger .layer.top, .burger .layer.bottom { min-height: 72px; }
.burger .layer.mid { min-height: 260px; align-content: center; background: linear-gradient(135deg, #1B2E4A, #2D5A7B); position: relative; overflow: hidden; }
.burger .layer.mid::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(232,168,56,.14) 0 1px, transparent 1px 22px), repeating-linear-gradient(0deg, rgba(232,168,56,.14) 0 1px, transparent 1px 22px); pointer-events: none; }
.burger.in .layer { animation: drop .6s cubic-bezier(.34,1.5,.5,1) both; }
.burger.in .layer.bottom { animation-delay: 0s; } .burger.in .layer.mid { animation-delay: .35s; } .burger.in .layer.top { animation-delay: .7s; }
@keyframes drop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }
/* gym: capital → usage → capability lights up in order */
.cc.in span { animation: chip .5s both; }
.cc.in span:nth-of-type(1) { animation-delay: .1s; } .cc.in span:nth-of-type(2) { animation-delay: .6s; } .cc.in span:nth-of-type(3) { animation-delay: 1.1s; }
@keyframes chip { from { opacity: 0; transform: translateX(-10px) scale(.9); } to { opacity: 1; transform: none; } }
.cc.in .on { animation-name: chipon; }
@keyframes chipon { 0% { opacity: 0; transform: scale(.8); } 70% { transform: scale(1.12); } 100% { opacity: 1; transform: none; } }

/* ---------- Tailor v2: painted illustration + tape drawing across it ---------- */
.tailor-pic { padding: 0; overflow: hidden; background: var(--paper-2); }
.tailor-pic img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; transform: scale(1.06); filter: saturate(.55) brightness(1.02); transition: transform 2.4s cubic-bezier(.2,.8,.2,1), filter 1.4s; }
.tailor-pic.is-fit img { transform: none; filter: none; }
.tailor-pic .tape-draw { position: absolute; left: 0; right: 0; bottom: 52px; width: 100%; height: 22%; pointer-events: none; overflow: visible; }
.tailor-pic .tape-band { fill: none; stroke: var(--wing); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 6px 8px rgba(27,46,74,.35)); }
.tailor-pic.is-measure .tape-band { animation: tapedraw 1.3s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes tapedraw { to { stroke-dashoffset: 0; } }
.tailor-pic.is-fit .tape-band { stroke-dashoffset: 0; }
.tailor-pic .tailor-cap { position: absolute; left: 0; right: 0; bottom: 0; height: auto; margin: 0; padding: 14px 16px; background: linear-gradient(180deg, rgba(255,248,242,0), rgba(255,248,242,.96) 45%); }
.tailor-pic .tailor-cap span { position: static; display: block; }
.tailor-pic .tailor-cap .c2 { position: absolute; left: 0; right: 0; bottom: 14px; }
.tailor-pic .tailor-cap .c1 { text-decoration: line-through transparent; transition: opacity .5s .5s, text-decoration-color .4s; }
.tailor-pic.is-measure .tailor-cap .c1 { text-decoration-color: var(--heart-ink); }
.tailor.tailor-pic.is-fit .c1 { opacity: 0; transform: none; }

.contact-grid { grid-template-columns: 1.2fr .8fr; }
.contact-pic { align-self: start; margin-top: 12px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } .contact-pic { order: -1; } }
/* caption sits under the painting, tape runs across the lower part of the painting */
.tailor-pic .tailor-cap { position: relative; background: var(--surface); padding: 14px 16px; min-height: 52px; }
.tailor-pic .tailor-cap .c2 { top: 14px; bottom: auto; }
.tailor-pic .tape-draw { bottom: 70px; height: 16%; }
.tailor-pic .tape-band { stroke-width: 12; }

/* ---------- Core stays · pattern is re-cut ---------- */
.core-cut { margin-top: 36px; display: grid; grid-template-columns: 1fr 56px 1fr; gap: 0; align-items: stretch; }
.cc-col { border-radius: 22px; padding: 22px 24px; }
.cc-col.core { background: var(--head); color: var(--on-dark); }
.cc-col.cut { background: var(--surface); border: 2px dashed color-mix(in srgb, var(--heart-ink) 55%, var(--line)); }
.cc-k { font: 700 15px "Anuphan"; letter-spacing: .02em; }
.cc-col.core .cc-k { color: var(--wing); } .cc-col.cut .cc-k { color: var(--heart-ink); }
.cc-col ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.6; }
.cc-col li { padding-left: 22px; position: relative; }
.cc-col.core li::before { content: "●"; position: absolute; left: 0; color: var(--wing); font-size: 11px; top: 4px; }
.cc-col.cut li::before { content: "✓"; position: absolute; left: 0; color: var(--heart-ink); font-weight: 700; }
.cc-col.cut li { color: var(--ink-soft); }
.cc-cut { position: relative; display: grid; place-items: center; }
.cc-cut::before { content: ""; position: absolute; top: 10%; bottom: 10%; left: 50%; border-left: 2px dashed var(--wing-ink); }
.cc-cut span { position: relative; z-index: 1; background: var(--surface); color: var(--heart-ink); font-size: 22px; line-height: 1; padding: 6px 0; transform: rotate(90deg); }
.core-cut.in .cc-cut span { animation: snip 2.4s 1s ease-in-out both; }
@keyframes snip { 0% { transform: translateY(-120px) rotate(90deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(0) rotate(90deg); opacity: 1; } }
.core-cut.in .cc-col.cut li { animation: rise .5s both; }
.core-cut.in .cc-col.cut li:nth-child(1) { animation-delay: 1.4s; } .core-cut.in .cc-col.cut li:nth-child(2) { animation-delay: 1.8s; } .core-cut.in .cc-col.cut li:nth-child(3) { animation-delay: 2.2s; } .core-cut.in .cc-col.cut li:nth-child(4) { animation-delay: 2.6s; }
.cc-punch { grid-column: 1 / -1; text-align: center; margin-top: 26px; font: 700 clamp(24px, 3.4vw, 38px)/1.3 "Anuphan"; color: var(--ink); }
.cc-punch span { background: var(--heart-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 760px) { .core-cut { grid-template-columns: 1fr; gap: 0; } .cc-cut { height: 46px; } .cc-cut::before { top: 0; bottom: 0; } .cc-cut span { transform: none; } .core-cut.in .cc-cut span { animation: none; } }

/* ---------- 5 beats: try first, understand later ---------- */
.beats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.beats::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; border-top: 2px dashed color-mix(in srgb, var(--wing-ink) 60%, transparent); }
.beats::after { content: ""; position: absolute; top: 15px; left: 10%; width: 16px; height: 16px; border-radius: 50%; background: var(--heart-ink); box-shadow: 0 0 0 6px rgba(196,48,27,.18); opacity: 0; }
.beats.in::after { animation: beatrun 3.6s .3s cubic-bezier(.5,0,.3,1) both; }
@keyframes beatrun { 0% { left: 10%; opacity: 1; } 95% { opacity: 1; } 100% { left: calc(90% - 16px); opacity: 0; } }
.beats li { position: relative; display: grid; gap: 6px; justify-items: center; text-align: center; }
.b-dot { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font: 700 18px "Anuphan"; color: var(--ink-soft); position: relative; z-index: 1; transition: background .4s, color .4s, border-color .4s; }
.beats li b { font: 700 19px "Anuphan"; margin-top: 4px; }
.beats li span:last-child { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.beats.in .b-dot { animation: beaton .45s both; }
.beats.in li:nth-child(1) .b-dot { animation-delay: .3s; } .beats.in li:nth-child(2) .b-dot { animation-delay: 1.1s; } .beats.in li:nth-child(3) .b-dot { animation-delay: 1.9s; } .beats.in li:nth-child(4) .b-dot { animation-delay: 2.7s; } .beats.in li:nth-child(5) .b-dot { animation-delay: 3.4s; }
@keyframes beaton { from { transform: scale(.7); } 60% { transform: scale(1.15); } to { transform: none; background: var(--head); color: #fff; border-color: var(--head); } }
@media (max-width: 860px) { .beats { grid-template-columns: 1fr; gap: 12px; } .beats::before { left: 22px; right: auto; top: 10px; bottom: 10px; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--wing-ink) 60%, transparent); } .beats::after { display: none; } .beats li { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; gap: 2px 14px; } .b-dot { grid-row: span 2; } .beats li b { margin-top: 0; } }

/* ---------- Ladder: what the team gains ---------- */
.ladder-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.measure { margin: 26px 0 0; padding: 20px 22px; border-left: 4px solid var(--wing); background: var(--surface); border-radius: 0 18px 18px 0; font: 600 20px/1.5 "Anuphan"; color: var(--ink); }
.measure small { display: block; margin-top: 6px; font: 400 14px "IBM Plex Sans Thai"; color: var(--ink-soft); }
.ladder { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 10px; min-height: 320px; }
.ladder li { border-radius: 16px 16px 6px 6px; padding: 14px 12px; display: grid; align-content: start; gap: 4px; background: var(--surface); border: 1px solid var(--line); }
.ladder li:nth-child(1) { height: 40%; } .ladder li:nth-child(2) { height: 58%; } .ladder li:nth-child(3) { height: 78%; } .ladder li:nth-child(4) { height: 100%; }
.ladder li.top { background: var(--heart-solid); color: #fff; border: 0; }
.ladder b { font: 700 16px/1.3 "Anuphan"; }
.ladder span { font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.ladder li.top span { color: rgba(255,255,255,.92); }
.ladder.in li { animation: growup .6s cubic-bezier(.34,1.3,.5,1) both; transform-origin: bottom; }
.ladder.in li:nth-child(2) { animation-delay: .25s; } .ladder.in li:nth-child(3) { animation-delay: .5s; } .ladder.in li:nth-child(4) { animation-delay: .75s; }
@keyframes growup { from { transform: scaleY(.2); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .ladder-wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ladder { grid-template-columns: 1fr 1fr; min-height: 0; align-items: stretch; } .ladder li { height: auto !important; } }
/* ladder: give the steps the full width so labels don't break mid-word */
.ladder-wrap { grid-template-columns: 1fr; gap: 28px; }
.ladder-wrap > div:first-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 40px; align-items: end; }
.ladder-wrap > div:first-child .measure { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
.ladder { min-height: 260px; gap: 14px; }
.ladder li { padding: 16px 18px; }
.ladder b { font-size: 18px; }
.ladder span { font-size: 14px; }
@media (max-width: 900px) { .ladder-wrap > div:first-child { grid-template-columns: 1fr; } .ladder-wrap > div:first-child .measure { grid-column: auto; grid-row: auto; margin-top: 18px; } }
