/* Grid & Dots — Home v4. Offer-first structure (grilling 8 Oct 2026). Brand: ../00 - Brand/brand-decisions.md */

:root {
  --white: #FFFFFF;
  --paper: #F4F4F4; /* neutral grey, never beige (Por, 8 Oct) */
  --ink: #0E0E0E;
  --ink-soft: #4A4A4A;
  --rule: #E4E4E4;
  --rule-strong: #D6D6D6;

  --crimson: #DB184C;
  --lime: #DAF856;
  --peri: #AAB6FA;
  --cyan: #7FF0F2;

  /* Family gradients: only on covers, tiles, map hubs and the featured calendar card */
  --g-dots: linear-gradient(180deg, #8E9BF0, #7FF0F2);
  --g-grid: linear-gradient(180deg, #B0002E, #F06CB0);
  --g-line: linear-gradient(180deg, #DAF856, #8FEFD0);

  --f-display: "League Spartan", "Anuphan", sans-serif;
  --f-body: "Poppins", "Anuphan", sans-serif;
  --f-thai: "LINE Seed Sans TH", "Anuphan", sans-serif;

  --page: 1180px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(72px, 10vw, 128px);
  --line: 1.5px;
  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(th), [lang="th"] { font-family: var(--f-thai); line-height: 1.8; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }

.wrap { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space); }
.section + .section { border-top: 1px solid var(--rule); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 60; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Type ---------- */
.display { font: 900 clamp(46px, 7.4vw, 104px)/.92 var(--f-display); letter-spacing: -.025em; text-transform: uppercase; }
.h2 { font: 900 clamp(34px, 4.6vw, 58px)/.96 var(--f-display); letter-spacing: -.02em; text-transform: uppercase; }
.h3 { font: 800 clamp(20px, 2vw, 24px)/1.15 var(--f-display); letter-spacing: -.005em; }
.eyebrow { display: block; margin-bottom: 16px; font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); }
/* Thai has no capitals and breaks apart with wide tracking */
.eyebrow:lang(th) { letter-spacing: .01em; font: 700 14px/1.3 var(--f-thai); text-transform: none; }
.lede { font-size: 18px; max-width: 52ch; }
.muted { color: var(--ink-soft); }
/* Keeps a Thai phrase on one line: the browser's word breaker splits some compounds (ต่อย|อด) */
.nw { white-space: nowrap; }
@media (max-width: 360px) { .nw { white-space: normal; } }
.placeholder { background: #FFF6C9; color: var(--ink); padding: 0 4px; border-radius: 3px; font-family: var(--f-body); font-size: .92em; }
.draft { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 4px; background: #EEF0FF; color: #3A46A8; font: 700 10px/1.2 var(--f-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .h2 { margin-top: 4px; }

/* ---------- Family icons ---------- */
.ic { display: block; }
.tile { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; }
.tile svg { width: 38px; height: 30px; }
.t-dots { background: var(--g-dots); color: var(--ink); }
.t-grid { background: var(--g-grid); color: var(--white); }
.t-line { background: var(--g-line); color: var(--ink); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule-strong); font: 600 12px/1.2 var(--f-body); white-space: nowrap; background: var(--white); }
.badge.public { border-color: var(--ink); }
.badge.inhouse { background: var(--ink); color: var(--white); border-color: var(--ink); }
.badge.soon, .badge.tbc { border-style: dashed; color: var(--ink-soft); }
.badge.talk { background: var(--paper); }
.badge.fam { border-color: transparent; font-weight: 700; }
.badge.fam.t-dots { background: linear-gradient(90deg, #8E9BF0, #7FF0F2); }
.badge.fam.t-grid { background: linear-gradient(90deg, #B0002E, #F06CB0); color: var(--white); }
.badge.fam.t-line { background: linear-gradient(90deg, #DAF856, #8FEFD0); }
.badge.dept { border-color: var(--crimson); color: var(--crimson); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 24px;
  border: 0; border-radius: 999px;
  background: transparent;
  font: 600 15px/1 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
/* r9b: no outlines on any button. Main = black (crimson on hover), secondary = solid periwinkle.
   Crimson as a fill is kept for Let's chat and the class-card Register button */
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--crimson); }
.ev .btn-ink { background: var(--crimson); }
.ev .btn-ink:hover { background: #B0002E; }
.btn-ghost { background: var(--peri); color: var(--ink); }
.btn-ghost:hover { background: #8E9BF0; }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 14px; }
.btn-chat { background: var(--crimson); color: var(--white); box-shadow: 0 10px 24px -12px rgba(219,24,76,.7); }
.btn-chat:hover { background: #B0002E; }
/* Light sweep: Let's chat and the Register button on class cards */
.btn-chat, .btn-sweep { position: relative; overflow: hidden; }
.btn-chat::after, .btn-sweep::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); transform: translateX(-120%); animation: sweep 6s var(--ease) 1.2s infinite; }
@keyframes sweep { 0%, 82% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn [lang="th"], .btn:lang(th) { line-height: 1; }
.link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header + menus ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--rule); }
.header-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font: 800 15px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 0; background: none; border-radius: 999px; cursor: pointer;
  font: 500 14px/1 var(--f-body); text-decoration: none;
}
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--paper); }
.nav-trigger svg { width: 10px; height: 10px; transition: transform .2s var(--ease); }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
  list-style: none; margin: 0; padding: 8px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px;
  box-shadow: 0 24px 48px -24px rgba(14,14,14,.28);
}
.menu[hidden] { display: none; }
.menu a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; }
.menu a:hover, .menu a:focus-visible { background: var(--paper); }
.fdot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.fdot.public { background: var(--lime); }
.fdot.corporate { background: var(--peri); }
.menu .fdot { grid-row: span 2; justify-self: center; margin: 0 4px; }
.menu b { font: 700 14px/1.25 var(--f-body); }
.menu small { font-size: 12px; color: var(--ink-soft); line-height: 1.3; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang button { border: 0; background: transparent; font: 700 12px/1 var(--f-display); letter-spacing: .08em; padding: 0 12px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.menu-toggle { display: none; }

/* Mobile menu sheet */
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 96px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .descriptor { font: 600 15px/1.4 var(--f-body); color: var(--ink); margin-bottom: 24px; }
.hero h1 { margin-bottom: 28px; }
.hero h1 { color: var(--crimson); }
.hero h1 .dot { color: var(--ink); }
/* r9b: Por's line sits under the headline, then a quieter line about where the method comes from */
.hero .lead + .lead-sub { margin: -18px 0 32px; max-width: 46ch; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.hero .lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.55; font-weight: 600; max-width: 34ch; margin-bottom: 32px; }
.hero-photo { position: relative; margin: 0; overflow: hidden; border-radius: 14px; }
/* Speaker shot is pre-cropped to 4:5 around Por (assets/photos/hero-por-speaking.jpg), no CSS zoom needed */
.hero-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font: 600 12px/1.2 var(--f-body); }

/* ---------- Format labels: one solid colour per format, same everywhere (r8) ---------- */
.label { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; border: 1.5px solid transparent; background: var(--paper); color: var(--ink); font: 600 12px/1.2 var(--f-body); white-space: nowrap; }
.label:lang(th) { font-family: var(--f-thai); }
.label.public { background: var(--lime); }
.label.corporate { background: var(--peri); }
.label.chat { background: var(--cyan); }
.label.soon { background: transparent; border-style: dashed; border-color: #8A8A8A; color: var(--ink-soft); }
.tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

/* ---------- Upcoming: compact class cards, two on Home ---------- */
.evs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.ev { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; padding: 22px; border: 2px solid var(--crimson); border-radius: 18px; background: var(--white); box-shadow: 0 18px 36px -26px rgba(219,24,76,.55); }
/* Date block: glittery crimson, white numbers (same family as the lime pill) */
.ev-date { position: relative; overflow: hidden; align-self: start; min-height: 116px; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 14px; color: var(--white); text-align: center;
  background: linear-gradient(110deg, #B0002E 0%, var(--crimson) 40%, #F2557F 50%, var(--crimson) 60%, #B0002E 100%); background-size: 260% 100%; animation: shimmer 4.8s linear infinite; }
.ev-date::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, #fff 0 1.3px, transparent 1.9px),
    radial-gradient(circle at 80% 30%, #fff 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 30% 82%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 74% 78%, #fff 0 1px, transparent 1.6px);
  display: none; }
.ev-date > * { position: relative; }
.ev-date b { font: 900 46px/.9 var(--f-display); font-variant-numeric: tabular-nums; }
.ev-date span { font: 800 13px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.ev-date small { font-size: 12px; color: #FFE3EA; }
.ev-date.tbc b { font-size: 22px; }
.ev-body { display: grid; gap: 6px; align-content: start; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 4px; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f-body); }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--crimson); box-shadow: 0 0 0 4px #FFD6E0; }
.live.off::before { background: transparent; border: 1.5px solid var(--ink-soft); box-shadow: none; }
.ev-title { font: 900 clamp(22px, 2.2vw, 28px)/1.05 var(--f-display); letter-spacing: -.01em; }
.ev-meta { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.ev-price { font-weight: 700; font-size: 15px; }
.ev-note, .course-facts .note { font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.ev-cd { justify-self: start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: var(--lime); font: 700 13px/1.3 var(--f-body); }
.ev-cd:lang(th), :lang(th) .ev-cd { font-family: var(--f-thai); }
.ev-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.ev.is-full { border-color: var(--rule-strong); box-shadow: none; }
.ev.is-full .ev-date { background: var(--ink-soft); animation: none; }
.ev.is-full .ev-date::after { display: none; }
.ev-empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--rule-strong); border-radius: 16px; color: var(--ink-soft); }
.evs-more { margin-top: 24px; }
.evs:has(> .ev:only-child) { grid-template-columns: minmax(0, 1fr); }  /* one class: the card fills the column */
.calendar { border-top: 1px solid var(--rule); }  /* divider above Upcoming */
/* Home: two featured cards + a list of everything coming up (r9) */
.cal-layout { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.ev-list { padding: 22px 24px; border-radius: 18px; background: var(--paper); }
.ev-list h3 { font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 8px; }
.ev-list ul { list-style: none; margin: 0; padding: 0; }
.ev-list li + li { border-top: 1px solid var(--rule-strong); }
.ev-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 0; text-decoration: none; }
.ev-list a:hover b { color: var(--crimson); }
.ev-list time, .ev-list .when { font: 800 13px/1.2 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: var(--crimson); }
.ev-list .when.soon { color: var(--ink-soft); }
.ev-list b { font: 700 15px/1.3 var(--f-body); }
.ev-list .label { grid-column: 2; justify-self: start; }
.ev-list .bt { font-weight: 500; color: var(--ink-soft); }
.ev-list .is-full time, .ev-list .is-full b, .ev-list .is-full .bt, .ev-list .is-full .label { color: #8A8A8A; }
.ev-list .is-full .label { background: transparent; }
.ev-list .is-full a:hover b { color: #8A8A8A; }
.ev-list .more { padding: 12px 0; }
.ev-list .more b { font-weight: 600; color: var(--ink-soft); }
@media (max-width: 1180px) { .cal-layout { grid-template-columns: 1fr; } }

/* ---------- Hub map (Home). Process Academy pattern: hub, three areas, "+" opens one ---------- */
.hubmap { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; padding: clamp(16px, 2.4vw, 28px); border: 1px solid var(--rule-strong); border-radius: 22px; background: var(--white); }
.hm-areas { display: contents; }
/* Each area has its own solid colour header: DM lime, AI periwinkle, start cyan (r9) */
.area { --area-c: var(--paper); position: relative; align-self: stretch; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--white); transition: opacity .3s var(--ease), box-shadow .3s var(--ease); }
.area[data-area="dm"] { --area-c: var(--lime); }
.area[data-area="ai"] { --area-c: var(--peri); }
.area[data-area="start"] { --area-c: var(--cyan); }
.hubmap[data-open]:not([data-open=""]) .area:not(.is-open) { opacity: .42; }
.area.is-open { box-shadow: 0 24px 44px -28px rgba(14,14,14,.45); }
.area-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; width: 100%; padding: 20px 20px 18px 22px; border: 0; border-radius: 17px; background: var(--area-c); text-align: left; cursor: pointer; }
.area.is-open .area-head { border-radius: 17px 17px 0 0; }
.area-name { font: 900 clamp(22px, 2.2vw, 28px)/1.05 var(--f-display); letter-spacing: -.01em; }
.area-name:lang(th), :lang(th) .area-name { font: 700 clamp(20px, 2vw, 24px)/1.3 var(--f-thai); }
.area-sub { grid-column: 1; font-size: 14px; line-height: 1.5; color: var(--ink); }
.area-plus { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); transition: transform .3s var(--ease), background-color .2s var(--ease); }
.area-plus::before, .area-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--white); transform: translate(-50%, -50%); }
.area-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.area-head:hover .area-plus { background: var(--crimson); }
.area-head[aria-expanded="true"] .area-plus { transform: rotate(45deg); }
.area-topics { list-style: none; margin: 0; padding: 14px; display: grid; gap: 8px; }
.area-topics[hidden] { display: none; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--paper); text-decoration: none; transition: background-color .2s var(--ease), color .2s var(--ease); }
.topic b { font: 700 15px/1.3 var(--f-body); }
.topic b:lang(th), :lang(th) .topic b { font-family: var(--f-thai); }
.topic .label { grid-row: 2; justify-self: start; }
.topic .go { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; }
a.topic:hover { background: var(--ink); color: var(--white); }
.topic.is-soon { background: transparent; border: 1px dashed var(--rule-strong); }
.topic.is-soon b { color: var(--ink-soft); font-weight: 600; }
.hm-reset { position: absolute; top: 16px; right: 20px; border: 0; background: none; cursor: pointer; font-size: 14px; }

/* ---------- Course rows (Public training, Corporate) ---------- */
.course { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 56px); padding-block: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule-strong); scroll-margin-top: 96px; }
.course-area { font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 12px; }
.course .course-area { display: inline-block; padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.course[data-area="ai"] .course-area { background: var(--peri); }
.course[data-area="dm"] .course-area { background: var(--lime); }
.course-title { font: 900 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.015em; margin-bottom: 14px; }
.course-head .one { font-size: 16px; line-height: 1.65; max-width: 46ch; }
.course-head .btn { margin-top: 22px; }
.course-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.course-cta .btn { margin-top: 0; }
/* Course Outline: solid periwinkle on every course, no outline (round 9 rule) */
.btn-area { color: var(--ink); background: var(--cyan); }
.btn-area:hover { background: #5FE0E3; }
.course-facts { margin: 22px 0 0; display: grid; gap: 0; }
.course-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.5; }
.course-facts dt { font: 800 11px/1.6 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.course-facts dd { margin: 0; font-weight: 600; }
.course-blk h4 { font: 800 13px/1.2 var(--f-display); letter-spacing: .1em; text-transform: uppercase; margin: 6px 0 16px; }
.course-blk h4:lang(th) { font: 700 15px/1.3 var(--f-thai); letter-spacing: 0; text-transform: none; }
.course-blk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 15px; line-height: 1.6; }
.course-blk li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.course-blk ul li::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--ink); }
.course[data-area="ai"] .course-blk li::before { background: var(--peri); }
.course[data-area="dm"] .course-blk li::before { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(14,14,14,.25); }
/* Tools used in class (Co-Thinking: Claude) */
.course-facts .tool img { height: 20px; width: auto; margin-top: 1px; }
.course-blk.wide { grid-column: 2 / 4; }
@media (min-width: 861px) { .course-blk:not(.wide) li { min-height: 3.6em; } }  /* bullets line up across the two columns */
.deliver { margin-top: 20px; padding: 20px 24px; border-radius: 16px; background: var(--lime); }
.deliver h4 { margin: 0 0 12px; }
/* Not open yet: the whole block reads grey (Por, 8 Oct) */
.course-head .label.soon { display: inline-block; margin: 0 0 14px; }
.course.is-soon .course-title, .course.is-soon .one, .course.is-soon .course-blk h4 { color: #767676; }
.course.is-soon .course-area { background: var(--paper); color: #767676; }
.course.is-soon .steps li { color: #767676; border-color: var(--rule); }
.course.is-soon .steps li::before { background: #767676; }
.course.is-soon .btn-ink { background: #767676; color: var(--white); }
.course.is-soon .btn-ink:hover { background: var(--ink); }
.formats { margin: 0 0 clamp(24px, 3vw, 40px); }
.chat-band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 40px; align-items: center; padding: clamp(32px, 5vw, 56px); border-radius: 24px; background: var(--cyan); color: var(--ink); }
.chat-band .label.chat { background: var(--white); }
.chat-copy { margin-top: 14px; font-size: 18px; max-width: 54ch; }
.chat-band .btn-ghost { background: var(--white); }
.chat-band .btn-ghost:hover { background: var(--ink); color: var(--white); }
.t-photo { position: relative; margin: 0; overflow: hidden; border-radius: 18px; aspect-ratio: 4 / 3; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
/* Rotating photos: stacked, one visible at a time, cross-fade (main.js). Without JS only the first shows */
.rotator img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.rotator img.on, .rotator:not(.is-on) img:first-child { opacity: 1; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Number bubble left, text right. Columns set here because .course-blk li would squeeze the 28px bubble into 18px */
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; align-content: start; padding: 18px; border: 1px solid var(--rule-strong); border-radius: 14px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font: 800 13px/1 var(--f-display); }

/* ---------- Proof (tabs) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--rule-strong); border-radius: 999px; margin-bottom: 32px; }
.tabs [role="tab"] { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer; font: 600 14px/1 var(--f-body); }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: var(--white); }
.ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.ph { display: grid; place-items: center; background: var(--paper); border: 1px dashed var(--rule-strong); color: var(--ink-soft); font-size: 13px; text-align: center; padding: 12px; }
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.work { display: grid; gap: 12px; align-content: start; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.work .h3 { font-size: 18px; }
.work p { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.work .label { justify-self: start; }

.roll { margin-top: clamp(28px, 3.5vw, 44px); padding-top: 24px; border-top: 1px solid var(--rule); }
.roll-label { font: 800 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 20px; }
.roll-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.roll ul { display: flex; flex-wrap: nowrap; width: max-content; list-style: none; margin: 0; padding: 0; animation: roll 45s linear infinite; }
.roll:hover ul { animation-play-state: paused; }
.roll li { flex: none; display: grid; place-items: center; height: 48px; margin-right: 48px; }
.roll img { height: 40px; width: auto; max-width: 130px; object-fit: contain; mix-blend-mode: multiply; }
@keyframes roll { to { transform: translateX(-50%); } }

/* ---------- Quote cards: white card, brand-colour outline (Por, 8 Oct r9c) ---------- */
.vibes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vibe { position: relative; display: grid; align-content: space-between; gap: 28px; min-height: 340px; margin: 0; padding: 26px 22px 24px; border-radius: 20px; background: var(--white); color: var(--ink); border: 3px solid var(--vc); box-shadow: 0 20px 36px -28px rgba(14,14,14,.35); }
.vibe blockquote { margin: 0; font: 700 17px/1.6 var(--f-thai); }
.vibe blockquote:lang(en) { font: 800 18px/1.3 var(--f-display); letter-spacing: -.005em; }
.vibe mark { padding: 0 .18em; border-radius: 4px; background: var(--vc); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.vibe figcaption { padding-right: 52px; font: 600 13px/1.4 var(--f-body); color: var(--ink-soft); }
.v-ink { --vc: var(--ink); }
.v-ink mark { color: var(--white); }
.v-lime { --vc: var(--lime); }
.v-peri { --vc: var(--peri); }
.v-cyan { --vc: var(--cyan); }

/* ---------- About teaser + contact ---------- */
.por figure { margin: 0; overflow: hidden; border-radius: 14px; }
.por figure img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; width: 100%; transform: scale(1.25); transform-origin: 50% 12%; }
.por h2 { margin-bottom: 20px; }
.por p + p { margin-top: 14px; }
.por .btn { margin-top: 28px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact h2 { margin-bottom: 18px; }
.channels { list-style: none; margin: 0; padding: 0; }
.channels li { border-top: 1px solid var(--rule-strong); }
.channels li:last-child { border-bottom: 1px solid var(--rule-strong); }
.channels a { display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center; padding: 22px 0; min-height: 64px; text-decoration: none; transition: transform .3s var(--ease); }
.channels a:hover { transform: translateX(10px); }
.channels .k { font: 800 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.channels .v { font-weight: 600; font-size: 18px; }

/* ---------- Footer directory ---------- */
.footer { background: var(--ink); color: #CFCFCF; padding-block: 64px 96px; font-size: 14px; } /* bottom room for the floating pill */
.footer a { color: var(--white); text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; padding-bottom: 40px; border-bottom: 1px solid #2A2A2A; }
.footer .brand span { color: var(--white); }
.footer .promise { font: 900 clamp(26px, 3vw, 36px)/1 var(--f-display); text-transform: uppercase; color: var(--white); letter-spacing: -.015em; margin: 24px 0 10px; }
.descriptor-f { font-weight: 600; color: #CFCFCF; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-nav h2 { font: 800 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a { display: inline-block; padding-block: 2px; line-height: 1.4; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; color: #9A9A9A; font-size: 13px; }

/* ---------- Floating pill (links to the calendar): glittery lime, black text (Por, 8 Oct r8) ---------- */
.pill {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); overflow: hidden;
  min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  color: var(--ink); font: 700 14px/1.2 var(--f-body);
  background: linear-gradient(110deg, var(--lime) 0%, var(--lime) 40%, #FBFFE3 50%, var(--lime) 60%, var(--lime) 100%);
  background-size: 260% 100%;
  box-shadow: 0 18px 36px -16px rgba(14,14,14,.5);
  animation: shimmer 3.6s linear infinite;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.pill::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(circle at 14% 28%, #fff 0 1.4px, transparent 2px),
    radial-gradient(circle at 37% 74%, #fff 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 58% 22%, #fff 0 1.6px, transparent 2.2px),
    radial-gradient(circle at 79% 70%, #fff 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 93% 34%, #fff 0 1px, transparent 1.6px);
  display: none; }
.pill:hover { transform: translateY(-2px); }
.pill.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.pill .spark { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 0 rgba(14,14,14,.45); flex: none; }
.pill .txt { position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill .txt:lang(th) { font-family: var(--f-thai); }
@keyframes shimmer { from { background-position: 130% 0; } to { background-position: -130% 0; } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(14,14,14,0); } 100% { box-shadow: 0 0 0 0 rgba(14,14,14,0); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule-strong); border-radius: 50%; background: none; cursor: pointer; }

/* ---------- Topic page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.t-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.t-hero .tagrow { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.t-hero h1 { margin-bottom: 20px; }
.t-hero .cover { aspect-ratio: 4 / 5; border-radius: 16px; font-size: 14px; }
.t-hero .cover .tl { top: 24px; left: 24px; }
.t-hero .cover .bl { bottom: 24px; left: 24px; }
.t-hero .cover .br { bottom: 24px; right: 24px; }
.t-hero .cover .ic { width: 56%; transform: translate(-50%, -60%); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin: 28px 0 32px; padding: 0; }
.facts div { padding: 14px 0; border-top: 1px solid var(--rule-strong); }
.facts dt { font: 800 11px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
.track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.track[hidden] { display: none; }
.blk { padding: 24px; border: 1px solid var(--rule-strong); border-radius: 16px; display: grid; gap: 14px; align-content: start; }
.blk .eyebrow { margin: 0; }
.blk ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; line-height: 1.55; }
.blk li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; }
.blk li::before { content: ""; width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ink); }
.blk.pain li::before { background: transparent; border: 1.5px solid var(--ink); }
.formats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fmt-card { padding: 24px; border-radius: 16px; background: var(--peri); display: grid; gap: 8px; }
.fmt-card b { font: 900 24px/1 var(--f-display); text-transform: uppercase; }
.fmt-card span { font-size: 14px; color: var(--ink); line-height: 1.5; }
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.related a { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--rule-strong); border-radius: 14px; text-decoration: none; transition: border-color .2s; }
.related a:hover { border-color: var(--ink); }
.related b { font: 700 15px/1.3 var(--f-body); display: block; }
.related small { font-size: 12px; color: var(--ink-soft); }
.cta-band { background: var(--ink); color: var(--white); border-radius: 20px; padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px; align-items: center; }
.cta-band .h2 { color: var(--white); }
.cta-band .btn-ghost { background: var(--white); color: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--white); color: var(--ink); }
.cta-band .btn-ink { background: var(--lime); color: var(--ink); }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; }
.legal h1 { margin-bottom: 12px; }
.legal h2 { font: 800 20px/1.3 var(--f-display); margin: 40px 0 12px; }
.legal h2:lang(th) { font-family: var(--f-thai); }
.legal p, .legal li { font-size: 16px; line-height: 1.8; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-meta { color: var(--ink-soft); font-size: 14px; }
.legal-note { margin-top: 16px; padding: 14px 16px; border-left: 3px solid var(--crimson); background: var(--paper); border-radius: 0 10px 10px 0; font-size: 14px; }
.legal a { color: var(--crimson); }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.hero h1 .row { display: block; overflow: hidden; }
.hero h1 .row > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero h1 .row:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1 .row > span { opacity: 1; transform: none; }
  .pill { background: var(--lime); }
  .pill::after { display: none; }
  .roll ul { flex-wrap: wrap; justify-content: center; width: auto; gap: 24px 40px; }
  .roll li { margin-right: 0; }
  .roll li[aria-hidden] { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav { display: none; }
  .header-tools { gap: 8px; }
  .menu-toggle { display: inline-flex; width: 44px; min-height: 40px; padding: 0; background: transparent; }
  .header-tools { margin-left: auto; }
  .mobile-menu[open] { display: block; }
  .mobile-menu { position: fixed; inset: 76px 0 auto 0; max-height: calc(100dvh - 76px); overflow-y: auto; margin: 0; width: 100%; max-width: none; padding: 8px var(--gutter) 24px; border: 0; border-bottom: 1px solid var(--rule); background: var(--white); z-index: 46; box-shadow: 0 24px 40px -24px rgba(14,14,14,.3); }
  .mobile-menu ul { list-style: none; margin: 8px 0 0; padding: 0; }
  .mobile-menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--rule); }
  .mobile-menu .btn { margin-top: 20px; width: 100%; }
  .hero-in, .contact-in, .consult, .t-hero-in, .cta-band, .chat-band, .section-head { grid-template-columns: 1fr; }
  .consult-cta { grid-column: 1; }
  /* Phones and tablets: the photo leads, as a short wide crop with the panel's faces in frame */
  .hero { padding-top: 16px; }
  .hero-photo { order: -1; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 4%; }
  .works, .related, .formats, .track, .vibes { grid-template-columns: 1fr 1fr; }
  .course { grid-template-columns: 1fr 1fr; }
  .course-head { grid-column: 1 / -1; }
  .course-blk.wide { grid-column: 1 / -1; }
  .t-photo { max-width: 560px; }
  .hubmap { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 16px; }
      .area[data-area="start"] { grid-column: 1 / -1; }
    .hm-reset { position: static; grid-column: 1 / -1; justify-self: start; }
  .por figure { max-width: 360px; }
  .t-hero .cover { max-width: 360px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .brand span { display: none; }
  .lang button { padding: 0 9px; }
  .header-tools .btn-chat { padding: 10px 14px; }
  .works, .related, .formats, .track, .steps, .facts, .vibes, .evs, .course, .hubmap { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 76px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .ev-date b { font-size: 34px; }
  .ev-date { min-height: 92px; }
  .vibe { min-height: 0; }
  .hubmap { padding: 16px; border: 0; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels .k { grid-column: 1 / -1; }
  .pill { left: 16px; right: 16px; justify-content: center; }
}

/* ---------- About (8 Oct): quiet, editorial. Sentence-case headings, one portrait, no stat bars ---------- */
/* English-only page for now: <main lang="en"> must undo the Thai font body inherits from <html lang="th"> */
main[lang="en"] { font-family: var(--f-body); line-height: 1.7; }
.about-h1 { font: 800 clamp(40px, 6vw, 80px)/1 var(--f-display); letter-spacing: -.025em; max-width: 14ch; color: var(--crimson); }
.about-h2 { font: 800 clamp(30px, 4vw, 52px)/1.02 var(--f-display); letter-spacing: -.02em; max-width: 18ch; }
.about-prose { max-width: 60ch; font-size: 18px; }
.about-prose p + p { margin-top: 1.1em; }
.about-letter .about-h1 { margin-bottom: clamp(32px, 4vw, 48px); max-width: none; font-size: clamp(40px, 6.4vw, 94px); }
.letter-grid { display: grid; grid-template-columns: minmax(0, 720px); justify-content: center; }  /* quote now sits above, so the letter is one centred column */

.about-quote { margin: 2em 0; padding-left: 24px; border-left: var(--line) solid var(--crimson); }
.about-quote p { font: 800 clamp(24px, 3vw, 34px)/1.2 var(--f-display); letter-spacing: -.015em; }
.about-quote footer { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
.about-quote cite { font-style: italic; }
.about-quote.centre { margin: 0 auto 2.4em; max-width: 880px; padding: 0; border: 0; text-align: center; }
.about-quote.centre footer { margin-top: 16px; }

.about-person-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-portrait { margin: 0; position: sticky; top: 104px; }
.about-portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); filter: grayscale(.15); }
.about-name { font: 800 clamp(40px, 5.4vw, 72px)/.98 var(--f-display); letter-spacing: -.025em; }
.about-name span { display: block; color: var(--ink-soft); font-weight: 700; }
.about-role { margin: 20px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); font-size: 19px; color: var(--ink-soft); max-width: 46ch; }
.about-bio strong { font-weight: 500; }
/* Timeline: logos sit on one thin grey line, black dot at each grid crossing (hub-map language) */
.timeline { --tl-col: 120px; position: relative; list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline::before { content: ""; position: absolute; left: calc(var(--tl-col) / 2); top: 0; bottom: 0; width: 1px; background: var(--rule-strong); }
.timeline li { position: relative; display: grid; grid-template-columns: var(--tl-col) 9em 1fr; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.timeline li::after, .timeline li:first-child::before { content: ""; position: absolute; left: calc(var(--tl-col) / 2); width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--ink); }
.timeline li::after { bottom: -4px; }
.timeline li:first-child::before { top: -4px; }
.tl-logo { position: relative; z-index: 1; display: grid; place-items: center; width: var(--tl-col); height: 68px; background: var(--white); }
.tl-logo img { display: block; width: auto; height: auto; max-width: 44px; max-height: 60px; }
.tl-logo.tl-wide img { max-width: calc(var(--tl-col) - 8px); max-height: none; border-radius: 6px; }
.tl-year { font: 700 14px/1.4 var(--f-display); letter-spacing: .02em; color: var(--ink-soft); }
.tl-what { font-size: 17px; line-height: 1.4; }
.tl-what b { display: block; font: 800 20px/1.2 var(--f-display); letter-spacing: -.01em; margin-bottom: 2px; }
@media (max-width: 560px) { .timeline { --tl-col: 96px; } .timeline li { grid-template-columns: var(--tl-col) 1fr; gap: 0 16px; } .tl-logo { grid-row: span 2; } .tl-year { align-self: end; } .tl-what { align-self: start; } }
.about-now { margin: 12px 0 1.1em; padding-left: 1.2em; }
.about-now li { margin-top: 4px; }

.about-studio-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 64px); }
.about-studio-head .eyebrow { margin-bottom: 0; }
.about-trio { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.about-trio li { padding: 32px 32px 8px 0; display: grid; gap: 14px; align-content: start; }
.about-trio li + li { padding-left: 32px; border-left: 1px solid var(--rule); }
.about-trio p { color: var(--ink-soft); max-width: 34ch; }
.about-studio-foot { margin-top: clamp(40px, 5vw, 64px); }

.about-close .about-h2 { margin-bottom: 20px; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

@media (max-width: 860px) {
  .about-letter .about-prose { margin: 0; }
  .about-person-in { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 420px; }
  .about-trio { grid-template-columns: 1fr; }
  .about-trio li, .about-trio li + li { padding: 24px 0; border-left: 0; }
  .about-trio li + li { border-top: 1px solid var(--rule); }
}

/* About close: the casual photo next to "Bring a question" (r8) */
.about-close-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-casual { margin: 0; }
.about-casual img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--rule); border-radius: var(--radius); }
@media (max-width: 860px) {
  .about-close-in { grid-template-columns: 1fr; }
  .about-casual { max-width: 420px; }
}


/* ---------- Floating LINE bubble (Por, 8 Oct): sits above the pill, hides with it ---------- */
.chat-bubble {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); z-index: 45;
  display: inline-flex; align-items: center; gap: 10px; width: 52px; height: 52px; justify-content: center; padding: 0;
  border-radius: 999px; background: var(--white); color: var(--crimson); text-decoration: none;
  font: 700 14px/1.2 var(--f-body); box-shadow: 0 18px 36px -16px rgba(14,14,14,.5);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.chat-bubble img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.chat-bubble:hover { transform: translateY(-2px); }
.chat-bubble.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }

/* ---------- Cookie consent banner: Accept and Decline are the same size and weight ---------- */
.consent { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 14px; width: min(520px, calc(100vw - 32px)); padding: 20px 22px; border: 1px solid var(--rule-strong); border-radius: 18px; background: var(--white); box-shadow: 0 24px 48px -24px rgba(14,14,14,.45); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 14px; line-height: 1.6; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; justify-content: center; }
.linklike { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Fix round (8 Oct, late) ---------- */
.area { display: flex; flex-direction: column; }
.area:not(.is-open) .area-head { flex: 1; align-content: start; }
#training.section { padding-block: clamp(56px, 7vw, 96px); }
#training .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.about-letter .letter-grid { grid-template-columns: minmax(240px, 380px) minmax(0, 720px); gap: clamp(32px, 5vw, 72px); align-items: center; justify-content: center; max-width: 1180px; margin-inline: auto; }
.about-letter .about-quote { margin: 0; }
@media (max-width: 900px) { .about-letter .letter-grid { grid-template-columns: 1fr; align-items: start; } }
/* Let's chat: livelier shine + soft glow pulse */
.btn-chat { animation: chatglow 3.2s ease-in-out infinite; }
.btn-chat::after { background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.75) 50%, transparent 75%); animation: sweep 3.5s var(--ease) .8s infinite; }
@keyframes chatglow { 0%, 100% { box-shadow: 0 10px 24px -12px rgba(219,24,76,.7); } 50% { box-shadow: 0 10px 32px -6px rgba(219,24,76,.95), 0 0 0 6px rgba(219,24,76,.12); } }

/* "and many more": plain text in the last grid cell, no box (Por, 8 Oct: no dot-grid backdrops) */
.work-more { display: flex; align-items: center; aspect-ratio: 4 / 3; align-self: start; }
.work-more p { font: 800 clamp(24px, 2.6vw, 34px)/1.1 var(--f-display); letter-spacing: -.015em; text-wrap: balance; }
@media (max-width: 720px) { .work-more { aspect-ratio: auto; min-height: 0; } .work-more p { font-size: 22px; } }
