/* Lead+D Lab, draft d1-template.
   Adapted from the OpenDesign "apple" design system (github.com/nexu-io/open-design,
   design-systems/apple: DESIGN.md, tokens.css, system/artifacts/landing.html), Apache-2.0.
   Token names kept from that schema; values re-bound to the Lab: blue accent -> Lab green,
   black chapters -> deep green chapters, SF Pro -> Inter Tight / Inter with Anuphan for Thai. */
:root {
  /* colour: white + green only, one near-black ink */
  --bg: #ffffff;
  --surface: #f4f7f6;          /* near-white neutral, faint cool green, never beige */
  --surface-2: #eaf3f1;
  --fg: #101917;               /* the single ink */
  --fg-2: rgba(16, 25, 23, .74);
  --muted: rgba(16, 25, 23, .58);
  --border: rgba(16, 25, 23, .12);
  --border-soft: rgba(16, 25, 23, .07);
  --accent: #007a6e;           /* action green, 5.2:1 on white */
  --accent-hover: #00877a;     /* measured Lab brand teal */
  --accent-active: #006257;
  --accent-on: #ffffff;
  --green-300: #60ada6;
  --green-200: #98d0ce;
  --green-50: #eef7f5;
  --deep: #06302c;             /* deep green chapter, replaces Apple black */
  --deep-2: #0b3f3a;
  --taijai: #e8742a;           /* taijai's own accent, confined to its card (R-25) */

  --font-display: "Inter Tight", "Anuphan", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Anuphan", "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 36px; --radius-pill: 980px;
  --ease-standard: cubic-bezier(0.28, 0, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --elev-raised: 0 18px 48px rgba(6, 48, 44, .10);
  --focus-ring: 0 0 0 4px rgba(0, 122, 110, .28);
  --gutter: 16px;
  --section-y: 72px;
  --wrap: 1180px;
}
@media (min-width: 760px) { :root { --gutter: 32px; --section-y: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
html[lang="th"] body { line-height: 1.75; font-size: 17px; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }
.nw { white-space: nowrap; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: 18px; }
.display { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; letter-spacing: -0.035em; }
html[lang="th"] .display { line-height: 1.22; letter-spacing: -0.01em; font-weight: 600; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
html[lang="th"] .h2 { line-height: 1.3; letter-spacing: -0.005em; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -0.02em; }
html[lang="th"] .h3 { line-height: 1.35; letter-spacing: 0; }
.lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--fg-2); max-width: 34em; margin-top: 24px; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-body { color: var(--fg-2); font-size: 18px; margin-top: 18px; max-width: 40em; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: var(--radius-pill); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: background .2s var(--ease-standard), transform .15s var(--ease-standard), border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-ink { background: var(--fg); color: #fff; }
.btn-ink:hover { background: #22302d; }
.btn-light { background: #fff; color: var(--accent-active); }
.btn-light:hover { background: var(--green-50); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 0; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; min-height: 44px; }
.link-btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease-standard); }
.link-btn:hover svg { transform: translateX(3px); }
.link-plain { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(16,25,23,.06); }
.icon-btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.glass { background: rgba(255,255,255,.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border: 1px solid rgba(255,255,255,.7); }
.glass-strong { background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3); }

/* ---------- language toggle ---------- */
.lang { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: rgba(16,25,23,.06); }
.lang button { border: 0; background: transparent; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 0 10px; min-height: 30px; min-width: 38px; border-radius: var(--radius-pill); color: var(--muted); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- top bar (R-59 to R-61) ---------- */
.topbar { position: fixed; inset: 0 0 auto; z-index: 40; transition: transform .35s var(--ease-out), background .3s, box-shadow .3s; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border-bottom: 1px solid transparent; }
.topbar.is-scrolled { background: rgba(255,255,255,.82); border-bottom-color: var(--border-soft); }
.topbar.is-hidden { transform: translateY(-110%); }
.topbar-in { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 22px; height: auto; }
.toplinks { display: none; gap: 28px; margin: 0 auto; font-size: 14px; }
.toplinks a { text-decoration: none; color: var(--fg-2); transition: color .2s; }
.toplinks a:hover { color: var(--fg); }
.topright { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topright .btn, .topright .lang { display: none; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1000px) {
  .toplinks { display: flex; }
  .topright { margin-left: 0; }
  .topright .btn, .topright .lang { display: inline-flex; }
  .menu-btn { display: none; }
}
@media (min-width: 760px) and (max-width: 999px) { .topright .btn { display: inline-flex; } }

.menu { position: fixed; inset: 0; z-index: 60; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.menu-in { height: 100%; display: flex; flex-direction: column; padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.menu-head { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.menu-links { display: flex; flex-direction: column; margin-top: 32px; }
.menu-links a { font-family: var(--font-display); font-size: 30px; font-weight: 600; padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--border-soft); }
.menu-foot { margin-top: auto; display: grid; gap: 16px; justify-items: start; }

/* ---------- mobile vertical card (R-54 to R-58) ---------- */
.card-screen { display: none; }
@media (max-width: 759px) {
  .card-screen { display: block; position: relative; height: 100svh; min-height: 640px; padding: 14px; overflow: hidden; }
  .card-art { position: absolute; inset: 0; background: url(../assets/img/art-card.webp) center/cover no-repeat; }
  .vcard { position: relative; height: 100%; border-radius: 34px; padding: 22px 22px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column;
    background: rgba(255,255,255,.80); -webkit-backdrop-filter: blur(26px) saturate(1.5); backdrop-filter: blur(26px) saturate(1.5);
    border: 1px solid rgba(255,255,255,.8); box-shadow: 0 30px 80px rgba(6,48,44,.22); transform-origin: 50% 0; will-change: transform, opacity; }
  .vcard-head { display: flex; align-items: center; justify-content: space-between; }
  .vcard-head .brand { font-size: 17px; }
  .vcard-visual { position: relative; flex: 1 1 auto; min-height: 120px; margin: 18px 0 0; border-radius: 24px; overflow: hidden; background: url(../assets/img/art-portrait.webp) center 40%/cover; display: flex; align-items: flex-end; justify-content: center; }
  .vcard-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.35)); }
  .vcard-body { padding-top: 20px; }
  .vcard-mascot { position: relative; z-index: 1; width: auto; height: min(78%, 150px); margin-bottom: 10px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(6,48,44,.25)); }
  .vcard-line { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.32; letter-spacing: -0.01em; }
  html[lang="en"] .vcard-line { line-height: 1.12; letter-spacing: -0.025em; font-size: 31px; }
  .chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 20px; }
  .chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; line-height: 1.35; padding: 7px 12px; border-radius: 16px; background: rgba(255,255,255,.75); border: 1px solid var(--border-soft); color: var(--fg-2); }
  .chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-hover); flex: none; }
  .vcard-actions { margin-top: 20px; display: grid; gap: 10px; }
  .scroll-hint { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--muted); text-decoration: none; min-height: 32px; }
  .scroll-hint svg { width: 16px; height: 16px; animation: nudge 2.4s ease-in-out infinite; }
}
@media (max-width: 759px) and (max-height: 700px) { .vcard-line { font-size: 24px; } .chips { margin-top: 12px; } .chips li { padding: 5px 10px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ---------- hero ---------- */
.hero { padding: 132px 0 0; }
@media (max-width: 759px) { .hero { padding-top: 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.ribbon { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill); padding: 6px 8px 6px 6px; margin-bottom: 32px; font-size: 13.5px; text-align: left; transition: border-color .2s; }
.ribbon:hover { border-color: var(--accent); }
.ribbon-k { font-size: 11px; font-weight: 600; letter-spacing: .06em; background: var(--green-50); color: var(--accent-active); padding: 4px 10px; border-radius: var(--radius-pill); }
.ribbon-n { font-weight: 600; }
.ribbon-d { color: var(--muted); }
.ribbon-more { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 600; }
.ribbon-more svg { width: 14px; height: 14px; }
.audience { margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero-art { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; max-height: 720px; isolation: isolate; }
@media (max-width: 999px) { .hero-art { aspect-ratio: 5 / 5.4; } }
.art-layer { position: absolute; inset: -4%; background-size: cover; background-position: center; z-index: -1; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.1) translate(-2%, 1.5%); } }
.hero-portrait { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 92%; width: auto; max-width: none; filter: drop-shadow(0 24px 40px rgba(6,48,44,.25)); }
.namecard { position: absolute; left: 16px; right: 16px; bottom: 16px; border-radius: 20px; padding: 14px 18px; display: grid; gap: 2px; font-size: 14px; }
.namecard strong { font-size: 15.5px; }
.namecard span { color: var(--fg-2); font-size: 13px; }
@media (min-width: 760px) { .namecard { right: auto; max-width: 340px; left: 20px; bottom: 20px; } }

.fams { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--border); margin-top: 72px; }
@media (min-width: 760px) { .fams { grid-template-columns: 1.3fr 1fr 1fr 1fr; margin-top: 96px; } }
.fam { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; text-decoration: none; border-bottom: 1px solid var(--border-soft); }
@media (min-width: 760px) { .fam { padding: 28px 28px 8px 0; border-bottom: 0; } .fam + .fam { padding-left: 28px; border-left: 1px solid var(--border-soft); } }
.fam-label { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.fam-primary .fam-label { color: var(--accent); font-size: 22px; }
.fam-line { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; }
.fam-go { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 6px; }
.fam-go svg { width: 15px; height: 15px; transition: transform .2s; }
.fam:hover .fam-go svg { transform: translateX(3px); }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }

/* courses */
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 28px; padding: 2px var(--gutter); }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill); padding: 0 16px; min-height: 40px; font-size: 14px; color: var(--fg-2); transition: all .2s; }
.filter[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: #fff; }
.course-grid { display: grid; gap: 16px; }
@media (max-width: 759px) {
  .course-grid { grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding: 0 var(--gutter); scrollbar-width: none; }
  .course-grid::-webkit-scrollbar { display: none; }
  .course { scroll-snap-align: start; }
  .course[hidden] { display: none; }
}
@media (min-width: 760px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(3, 1fr); } }
.course { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-lg); padding: 26px 26px 18px; transition: transform .35s var(--ease-out), box-shadow .35s; }
.course:hover { transform: translateY(-3px); box-shadow: var(--elev-raised); }
.course.is-flag { background: linear-gradient(160deg, #e6f4f1 0%, #f6fbfa 55%, #ffffff 100%); border: 1px solid rgba(0,135,122,.16); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.course-theme { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.flag { font-size: 11.5px; font-weight: 600; color: var(--accent-active); background: rgba(0,135,122,.1); border-radius: var(--radius-pill); padding: 3px 10px; }
.course h3 { font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.25; margin-top: 18px; letter-spacing: -0.01em; }
.course-who { font-size: 14.5px; color: var(--fg-2); margin-top: 10px; }
.course-out { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.course-actions { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.course-actions .link-btn { font-size: 14px; }
.formats { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
@media (min-width: 760px) { .formats { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; } .formats-note { grid-column: 2; } }
.formats-label { font-weight: 600; font-size: 15px; }
.formats ul { display: flex; flex-wrap: wrap; gap: 8px; }
.formats li { font-size: 14px; padding: 7px 14px; border-radius: var(--radius-pill); background: var(--green-50); color: var(--accent-active); }
.formats-note { font-size: 14px; color: var(--muted); }
.slot-line { margin-top: 24px; font-size: 15px; color: var(--fg-2); }

/* how we work */
.how { background: var(--surface); }
.steps { display: grid; gap: 32px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps li { border-top: 1px solid var(--border); padding-top: 22px; }
.step-n { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent); }
.steps h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 12px; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--fg-2); margin-top: 8px; }
.wide-photo { position: relative; margin-top: 64px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 16 / 9; }
@media (max-width: 759px) { .wide-photo { aspect-ratio: 4 / 5; border-radius: 28px; } }
.wide-photo img { width: 100%; height: 100%; object-fit: cover; }
.wide-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; border-radius: 18px; padding: 14px 18px; font-size: 14.5px; }
@media (min-width: 760px) { .wide-photo figcaption { left: 24px; right: auto; bottom: 24px; max-width: 520px; } }

/* specialisations: the deep green chapter */
.specs { background: var(--deep); color: #fff; overflow: hidden; }
.specs-art { position: absolute; inset: 0; background: url(../assets/img/art-band.webp) center/cover; opacity: .22; mix-blend-mode: screen; }
.specs .eyebrow { color: var(--green-200); }
.specs .sec-body { color: rgba(255,255,255,.72); }
.spec-list { position: relative; border-top: 1px solid rgba(255,255,255,.16); }
.spec-list li { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
@media (min-width: 760px) { .spec-list li { grid-template-columns: 64px 1fr 1fr; align-items: baseline; gap: 32px; padding: 34px 0; } }
.spec-n { font-family: var(--font-display); color: var(--green-200); font-size: 15px; font-weight: 600; }
.spec-list h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.015em; }
.spec-list p { grid-column: 2; color: rgba(255,255,255,.72); font-size: 15.5px; }
@media (min-width: 760px) { .spec-list p { grid-column: 3; } }

/* consulting: quieter */
.consult-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .consult-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.opts-head { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.opts { border-top: 1px solid var(--border); }
.opts a { display: grid; grid-template-columns: 1fr 28px; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--border); text-decoration: none; transition: padding .25s var(--ease-out); }
.opts a:hover { padding-left: 8px; }
.opt-t { font-weight: 600; font-size: 18px; }
.opt-l { grid-column: 1; font-size: 14.5px; color: var(--muted); }
.opt-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--accent); }
.opt-go svg { width: 20px; height: 20px; }

/* products */
.products { background: var(--surface); }
.prod-grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .prod-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.prod { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); padding: 28px; }
.prod-live { border: 1px solid var(--border-soft); box-shadow: var(--elev-raised); position: relative; overflow: hidden; }
.prod-live::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--taijai); }
.prod-soon { background: transparent; border: 1.5px dashed rgba(16,25,23,.18); color: var(--fg-2); }
.prod-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-pill); background: rgba(16,25,23,.06); color: var(--muted); }
.status-live { background: #fff4ec; color: #a24a12; }
.status-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--taijai); box-shadow: 0 0 0 3px rgba(232,116,42,.18); }
.prod-for { font-size: 13px; color: var(--muted); }
.prod h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 20px; letter-spacing: -0.01em; line-height: 1.25; }
.prod-soon h3 { font-size: 22px; color: var(--fg); }
.prod-line { margin-top: 10px; font-size: 15.5px; color: var(--fg-2); }
.prod-soon .link-btn { margin-top: auto; padding-top: 16px; }
.prod .actions { margin-top: 24px; align-items: center; }
.prod-social { font-size: 13px; color: var(--muted); }
.disclaimer { margin-top: 20px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.more-line { margin-top: 24px; font-size: 15px; color: var(--muted); }

/* people */
.ajarn { display: grid; gap: 32px; }
@media (min-width: 1000px) { .ajarn { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; } }
.ajarn-art { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 4.4; isolation: isolate; }
.ajarn-art img { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); height: 94%; width: auto; max-width: none; filter: drop-shadow(0 20px 36px rgba(6,48,44,.22)); }
.ajarn-copy h3 { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.role { color: var(--accent); font-weight: 600; margin-top: 8px; }
.cred { margin-top: 20px; display: grid; gap: 10px; }
.cred li { position: relative; padding-left: 20px; font-size: 15.5px; color: var(--fg-2); }
.cred li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 1.5px; background: var(--accent-hover); }
.full { margin-top: 24px; border-top: 1px solid var(--border); }
.full summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 52px; font-weight: 600; color: var(--accent); cursor: pointer; }
.full summary::-webkit-details-marker { display: none; }
.full summary svg { width: 18px; height: 18px; transition: transform .25s; }
.full[open] summary svg { transform: rotate(180deg); }
.full p { font-size: 15px; color: var(--fg-2); margin-top: 14px; }
.team { position: relative; margin-top: 56px; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 21 / 9; }
@media (max-width: 759px) { .team { aspect-ratio: 4 / 5; border-radius: 28px; } }
.team img { width: 100%; height: 100%; object-fit: cover; }
.team figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; border-radius: 18px; padding: 14px 18px; display: grid; gap: 2px; font-size: 14.5px; }
.team figcaption span { color: var(--fg-2); font-size: 14px; }
@media (min-width: 760px) { .team figcaption { left: 24px; bottom: 24px; right: auto; max-width: 460px; } }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* research */
.research { padding-top: 0; }
.research-grid { display: grid; gap: 24px; border-top: 1px solid var(--border); padding-top: var(--section-y); }
@media (min-width: 1000px) { .research-grid { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.pubs { border-top: 1px solid var(--border); }
.pubs a { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); text-decoration: none; align-items: baseline; }
.pub-y { font-family: var(--font-display); font-weight: 600; color: var(--accent); }
.pub-t { font-size: 15.5px; line-height: 1.55; }
.pub-go { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pub-go svg { width: 14px; height: 14px; }
.pubs a:hover .pub-t { color: var(--accent); }
@media (max-width: 759px) { .pubs a { grid-template-columns: 1fr auto; } .pub-y { grid-column: 1; } .pub-t { grid-column: 1 / -1; } .pub-go { grid-row: 1; grid-column: 2; } }

/* organisations */
.logos { padding-top: 0; }
.draft-note { margin-top: 10px; font-size: 13px; color: var(--muted); border-left: 2px solid var(--green-200); padding-left: 10px; }
.logo-groups { display: grid; gap: 28px; }
@media (min-width: 760px) { .logo-groups { grid-template-columns: repeat(3, 1fr); gap: 40px 56px; } }
.lg p { font-size: 12.5px; font-weight: 600; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); margin-bottom: 18px; }
.lg ul { display: flex; flex-wrap: wrap; gap: 22px 28px; align-items: center; }
.lg img { height: 30px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .25s, filter .25s; }
.lg img:hover { filter: none; opacity: 1; }

/* booking */
.booking { overflow: hidden; }
.booking-art { position: absolute; inset: 0; background: url(../assets/img/art-soft.webp) center/cover; opacity: .55; }
.booking::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.4) 30%, rgba(255,255,255,.2) 70%, #fff 100%); pointer-events: none; }
.booking-grid { position: relative; z-index: 1; display: grid; gap: 40px; }
@media (min-width: 1000px) { .booking-grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
.bsteps { margin-top: 32px; display: grid; gap: 14px; }
.bsteps li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.bsteps span { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--accent); }
.mailline { margin-top: 32px; font-size: 15px; color: var(--fg-2); }
.mailline a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.mailline svg { width: 18px; height: 18px; }
.form-card { border-radius: 28px; padding: 28px 22px; box-shadow: 0 30px 80px rgba(6,48,44,.12); border: 1px solid rgba(255,255,255,.9); }
@media (min-width: 760px) { .form-card { padding: 36px; } }
.form-card h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 18px; }
.prefill { font-size: 14px; background: var(--green-50); color: var(--accent-active); padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
form label em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }
input:not([type="checkbox"]), select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--fg); font: inherit; font-size: 16px; padding: 10px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
[aria-invalid="true"] { border-color: #b42318 !important; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; align-items: end; }
.row2 .hc { align-self: end; }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 13.5px !important; color: var(--fg-2); line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-err { color: #b42318; font-size: 14px; margin-bottom: 12px; }
.thanks { text-align: left; }
.thanks img { width: 64px; margin-bottom: 12px; }
.thanks p { color: var(--fg-2); margin-top: 8px; }
.small { font-size: 13.5px; }

/* closing band (R-S02) */
.closing { padding: 0 0 var(--section-y); }
.closing-panel { position: relative; border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; color: #fff; min-height: 480px; display: flex; align-items: flex-end; }
.closing-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(4,40,36,.92) 0%, rgba(4,40,36,.72) 45%, rgba(4,40,36,.15) 100%); }
.closing-in { padding: 40px 24px; max-width: 760px; }
@media (min-width: 760px) { .closing-in { padding: 72px; } }
.closing-in p { color: rgba(255,255,255,.82); margin-top: 16px; font-size: 18px; }
.closing-in .closing-mail { font-size: 15px; margin-top: 24px; }
.closing-mail a { color: #fff; font-weight: 600; }

/* footer (R-41, R-G17) */
.footer { border-top: 1px solid var(--border-soft); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14.5px; }
@media (max-width: 759px) { .footer { padding-bottom: 110px; } }
.foot-top { display: grid; gap: 14px; max-width: 520px; }
.foot-top p { color: var(--fg-2); }
.foot-cols { display: grid; gap: 32px; margin-top: 48px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot-cols > div:last-child { grid-column: 1 / -1; }
@media (min-width: 760px) { .foot-cols > div:last-child { grid-column: auto; } }
.foot-cols h3 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.foot-cols li { margin-bottom: 8px; }
.foot-cols a { text-decoration: none; color: var(--fg-2); }
.foot-cols a:hover { color: var(--accent); }
.foot-mail { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--fg) !important; }
.social { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg); transition: background .2s, color .2s; }
.social a:hover { background: var(--accent); color: #fff; }
.social svg { width: 20px; height: 20px; }
.social .line-add { width: auto; padding: 0 16px; border-radius: var(--radius-pill); display: inline-flex; gap: 8px; background: #06c755; color: #fff; font-weight: 600; }
.handle { margin-top: 10px; color: var(--muted); font-size: 13px; }
.values { margin-top: 32px; color: var(--muted); font-size: 13.5px; }
.foot-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.foot-bottom p { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.foot-bottom a { color: inherit; }

/* sticky bar on a phone (R-10) */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform .4s var(--ease-out); pointer-events: none; }
.sticky.is-on { transform: none; pointer-events: auto; }
.sticky-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: var(--radius-pill); background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--border-soft); box-shadow: 0 12px 36px rgba(6,48,44,.16); }
.sticky-sub { font-size: 13px; color: var(--fg-2); }
@media (min-width: 760px) { .sticky { display: none; } }

/* event (R-34) */
.ev-toast { position: fixed; z-index: 45; right: 20px; top: 80px; width: 300px; padding: 20px; border-radius: 22px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid var(--border-soft); box-shadow: 0 24px 60px rgba(6,48,44,.18); opacity: 0; transform: translateY(-8px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.ev-toast.is-on { opacity: 1; transform: none; }
@media (max-width: 759px) { .ev-toast { top: auto; bottom: calc(84px + env(safe-area-inset-bottom)); left: 12px; right: 12px; width: auto; transform: translateY(8px); } }
.ev-x { position: absolute; top: 10px; right: 10px; }
.ev-k { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.ev-n { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-top: 4px; }
.ev-d { font-size: 14px; color: var(--fg-2); margin-top: 6px; line-height: 1.55; }
.ev-actions { display: grid; gap: 10px; margin-top: 16px; }
.ev-toast .ev-actions { display: flex; }

dialog { border: 0; padding: 0; color: var(--fg); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(6,30,27,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-dialog { width: min(560px, calc(100vw - 24px)); border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.ev-art { height: 150px; background: url(../assets/img/art-portrait.webp) center 30%/cover; }
.ev-body { position: relative; padding: 28px 26px 26px; }
.ev-body .ev-x { top: -134px; background: rgba(255,255,255,.8); }
.ev-mascot { position: absolute; right: 22px; top: -52px; width: 64px; }
.ev-dialog h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.2; margin-top: 6px; }
.ev-sub { font-weight: 600; margin-top: 4px; }
.ev-one { color: var(--fg-2); margin-top: 10px; font-size: 15.5px; }
.ev-facts { margin-top: 20px; border-top: 1px solid var(--border-soft); }
.ev-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.ev-facts dt { color: var(--muted); }
.ev-back { margin-top: 12px; font-size: 14px; color: var(--accent); }
.ev-dialog[open], .sheet[open] { animation: rise .45s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* course sheet (R-G05, R-G16) */
.sheet { width: min(760px, 100vw); margin: auto; border-radius: 30px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.sheet-body { max-height: min(88vh, 900px); overflow-y: auto; padding: 24px 24px 0; }
@media (min-width: 760px) { .sheet-body { padding: 32px 40px 0; } }
@media (max-width: 759px) { .sheet { margin: auto 0 0; width: 100vw; border-radius: 28px 28px 0 0; } .sheet-body { max-height: 90svh; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.crumbs { font-size: 12.5px; color: var(--muted); }
.sheet h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); line-height: 1.25; font-weight: 600; margin-top: 8px; letter-spacing: -0.01em; }
.sheet .course-who { font-size: 16px; }
.cs-block { margin-top: 26px; }
.cs-block h3 { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.cs-sit p { font-family: var(--font-display); font-size: 21px; line-height: 1.5; }
.cs-block li { position: relative; padding-left: 18px; margin-bottom: 8px; font-size: 15.5px; color: var(--fg-2); }
.cs-block li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 1.5px; background: var(--accent-hover); }
.cs-cols { display: grid; gap: 0 32px; }
@media (min-width: 760px) { .cs-cols { grid-template-columns: 1fr 1fr; } }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { border: 1px solid var(--border); background: #fff; border-radius: var(--radius-pill); padding: 0 14px; min-height: 40px; font-size: 14px; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.sheet-cta { position: sticky; bottom: 0; padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); margin-top: 28px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 30%); }

.cookie { position: fixed; inset: auto 12px 12px auto; width: min(380px, calc(100vw - 24px)); background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.18); font-size: 14px; margin: 0; }
.cookie .ev-actions { display: flex; justify-content: flex-end; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.steps li:nth-child(2), .spec-list li:nth-child(2) { transition-delay: .06s; }
.steps li:nth-child(3), .spec-list li:nth-child(3) { transition-delay: .12s; }
.steps li:nth-child(4), .spec-list li:nth-child(4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
