/* Camera & Charisma, rebuilt on ToneDiao's TD landing-page system (tonediao.com, Nov 2026):
   - colours: Onyx, Ivory, Silver, Steel, Graphite; square corners; one ease
   - type: Schibsted Grotesk for Latin and figures, LINE Seed Sans TH (loopless) for Thai;
     the ten-step scale measured from real sites (DESIGN.md "Type scale"), 390 -> 1440 px
   - spacing: 8 px grid, sections 72-128 px apart, nav 72 px (64 on phones), buttons 48 px
   - motion: blocks rise 28 px once via IntersectionObserver; no-JS and reduced motion show it finished */

@font-face { font-family: 'LINE Seed Sans TH'; src: url('fonts/LINESeedSansTH-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'LINE Seed Sans TH'; src: url('fonts/LINESeedSansTH-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+0E3F; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+0E3F; }
@font-face { font-family: 'Schibsted Grotesk'; src: url('fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+0E3F; }

:root {
  --onyx: #0b0b0b;
  --ivory: #f7f6f3;
  --silver: #d5d5d8;
  --steel: #8e9096;
  --graphite: #5c5e63;
  --white: #fff;
  --muted-dark: #a7a8ac;
  --line: rgba(11, 11, 11, 0.12);
  --line-strong: rgba(11, 11, 11, 0.28);
  --line-dark: rgba(247, 246, 243, 0.16);
  --sans: 'Schibsted Grotesk', 'LINE Seed Sans TH', system-ui, sans-serif;
  --thai: 'LINE Seed Sans TH', 'Schibsted Grotesk', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4vw, 56px);
  --sec-y: clamp(72px, 9vw, 128px);
  /* the TD type scale (phone 390 -> desktop 1440) */
  --t-display: clamp(40px, calc(31.1px + 2.29vw), 64px);
  --t-figure: clamp(36px, calc(31.5px + 1.14vw), 48px);
  --t-h2: clamp(28px, calc(23.5px + 1.14vw), 40px);
  --t-quote: clamp(24px, calc(21px + 0.76vw), 32px);
  --t-h3: clamp(20px, calc(18.5px + 0.38vw), 24px);
  --t-lead: clamp(17px, calc(15.9px + 0.29vw), 20px);
  --t-body: clamp(16px, calc(15.6px + 0.1vw), 17px);
  --t-small: clamp(14px, calc(13.6px + 0.1vw), 15px);
  --t-caption: clamp(12px, calc(11.6px + 0.1vw), 13px);
}
/* mobile first: phone values are the base; min-width queries add 640 / 768 / 960 px layouts */
:root { --nav-h: 64px; }
@media (min-width: 640px) { :root { --nav-h: 72px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--white); color: var(--onyx); font: 400 var(--t-body)/1.7 var(--thai); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
s { text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
/* a Thai phrase that stays whole: a line may break only between .nw spans */
.nw { display: inline-block; white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 60; background: var(--white); color: var(--onyx); padding: 12px 16px; }
.skip:focus { top: 12px; }
.dark { background: var(--onyx); color: var(--ivory); }
.center { text-align: center; }

/* buttons: square corners, like the letters */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--onyx); color: var(--ivory); border: 1px solid var(--onyx); font: 600 var(--t-small)/1 var(--thai); white-space: nowrap; transition: background 0.24s var(--ease), color 0.24s var(--ease); }
.btn:hover { background: transparent; color: var(--onyx); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: var(--t-body); }
.btn--light { background: var(--white); color: var(--onyx); border-color: var(--white); }
.btn--light:hover { background: transparent; color: var(--white); }
.btn--ghost { background: transparent; color: var(--onyx); border-color: var(--onyx); }
.btn--ghost:hover { background: var(--onyx); color: var(--ivory); }

/* nav */
.nav { position: absolute; inset: 0 0 auto; z-index: 30; color: var(--white); }
.nav-in { display: flex; align-items: center; gap: 32px; height: var(--nav-h); }
.logo { display: block; width: 96px; }
.nav-home { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font: 400 var(--t-small)/1 var(--thai); color: var(--silver); }
.nav-home:hover { color: var(--white); }
.nav-cta { display: none; }
.nav .btn { min-height: 40px; padding: 0 20px; }
@media (min-width: 640px) { .logo { width: 112px; } .nav .nav-cta { display: inline-flex; } }

/* 1 · hero. Phones: the stage photo is a band at the top with his face in view, the words start
   where it fades into onyx and the button stays on the first screen. From 768 px: the photo fills
   the first screen and the words sit bottom left (TD hero). Flat scrim and inset shades, no gradients. */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding: 44svh 0 0; }
.hero-bg { position: absolute; inset: 0 0 auto; height: 58svh; z-index: -1; overflow: clip; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 77% 24%; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(11, 11, 11, 0.12); box-shadow: inset 0 -200px 120px -60px var(--onyx), inset 0 110px 80px -70px rgba(11, 11, 11, 0.7); }
.hero-mark { width: 120px; margin-bottom: 20px; }
.hero-h { font: 400 36px/1.3 var(--thai); color: var(--white); }
.hero-h .ln { display: block; }
.hero-sub { margin-top: 20px; font: 400 var(--t-lead)/1.65 var(--thai); color: var(--silver); max-width: 34em; }
.hero-buy { margin-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 380px) { .hero-h { font-size: var(--t-display); } }
@media (min-width: 768px) {
  .hero { justify-content: flex-end; padding-top: calc(var(--nav-h) + 48px); }
  .hero-bg { inset: 0; height: auto; }
  .hero-bg img { object-position: 62% 30%; }
  .hero-bg::after { background: rgba(11, 11, 11, 0.3); box-shadow: inset 820px 0 380px -300px rgba(11, 11, 11, 0.8), inset 0 -300px 220px -120px var(--onyx), inset 0 120px 90px -80px rgba(11, 11, 11, 0.6); }
  .hero-mark { width: clamp(132px, 10vw, 168px); margin-bottom: 28px; }
}
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.price b { font: 500 var(--t-figure)/1 var(--sans); letter-spacing: -0.03em; }
.price s { font: 400 var(--t-lead)/1 var(--sans); color: var(--steel); }
.price span { font: 400 var(--t-small)/1.4 var(--thai); color: var(--muted-dark); }
.note { font: 400 var(--t-small)/1.6 var(--thai); color: var(--muted-dark); }
.note--dark { color: var(--graphite); }
@media (prefers-reduced-motion: no-preference) {
  .hero-h .ln, .hero-sub, .hero-buy { animation: rise 1.1s var(--ease) both; }
  .hero-h .ln:nth-child(2) { animation-delay: 0.08s; }
  .hero-sub { animation-delay: 0.16s; }
  .hero-buy { animation-delay: 0.24s; }
  .hero-bg img { animation: settle 1.8s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* figures (TD stats): two by two on phones, four across from 768 px; three beside the bio */
.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; margin-top: 64px; padding: 32px 0 var(--sec-y); border-top: 1px solid var(--line-dark); }
.figs b { display: block; font: 400 var(--t-figure)/1.15 var(--sans); letter-spacing: -0.02em; color: var(--white); }
.figs span { display: block; margin-top: 8px; font: 400 var(--t-small)/1.5 var(--thai); color: var(--muted-dark); }
.figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 12px; margin: 40px 0 0; padding: 32px 0 0; }
@media (min-width: 768px) { .figs { grid-template-columns: repeat(4, minmax(0, 1fr)); } .figs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }

/* section heads: centred title + one context line */
.sec { padding: var(--sec-y) 0; }
.sec--ivory { background: var(--ivory); }
.h2 { font: 400 var(--t-h2)/1.35 var(--thai); text-align: center; }
.h2--left { text-align: left; }
.sub { margin: 16px auto 0; max-width: 40em; font: 400 var(--t-lead)/1.65 var(--thai); color: var(--graphite); text-align: center; }
.sub--left { margin-left: 0; text-align: left; }
.dark .sub { color: var(--muted-dark); }
.sub a { text-decoration: underline; text-underline-offset: 4px; color: var(--ivory); }

/* 2 · pains: rows on hairlines with a steel cross */
.pains { max-width: 760px; margin: 48px auto 0; border-top: 1px solid var(--onyx); }
.pains li { display: flex; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line-strong); font: 400 var(--t-lead)/1.5 var(--thai); }
.pains li::before { content: '×'; flex: none; width: 16px; font: 400 var(--t-lead)/1 var(--sans); color: var(--steel); }

/* 3 · statement (TD quote) */
.quote { padding: var(--sec-y) 0; background: var(--ivory); }
.quote figure { display: flex; flex-direction: column; align-items: center; text-align: center; }
.qm { display: block; height: 0.5em; font: 400 clamp(64px, calc(54px + 2.6vw), 96px)/1 var(--sans); color: var(--steel); }
.quote blockquote { max-width: 820px; }
.q-main { font: 400 var(--t-quote)/1.6 var(--thai); }
.q-sub { margin-top: 12px; font: 400 var(--t-lead)/1.65 var(--thai); color: var(--graphite); }
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 32px; font: 500 var(--t-caption)/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite); }
.quote figcaption i { width: 32px; height: 1px; background: var(--onyx); }

/* 4 · the days (TD accordion): the day sits above its title on phones, beside it from 640 px */
.acc { max-width: 1040px; margin: 48px auto 0; border-top: 1px solid var(--onyx); }
.acc details { border-bottom: 1px solid var(--line-strong); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 72px; padding: 16px 0; cursor: pointer; font: 400 var(--t-lead)/1.5 var(--thai); transition: padding 0.4s var(--ease); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { padding-left: 12px; }
.acc summary > span { display: flex; flex-direction: column; gap: 6px; }
.acc summary small { display: inline-block; min-width: 96px; margin-right: 16px; font: 500 var(--t-small)/1 var(--sans); color: var(--graphite); }
.acc summary i { flex: none; position: relative; width: 20px; height: 20px; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.acc summary i::after { transform: rotate(90deg); }
.acc details[open] summary i::after { transform: rotate(0); }
.acc details p { max-width: 760px; padding: 0 0 32px; font: 400 var(--t-body)/1.8 var(--thai); color: var(--graphite); }
@media (min-width: 640px) {
  .acc summary > span { display: block; }
  .acc details p { padding-left: 112px; }
}
@media (prefers-reduced-motion: no-preference) { .acc details[open] p { animation: rise 0.5s var(--ease); } }

/* 5 · who teaches: portrait, words, figures and two real profile screens stacked on phones;
   portrait beside the words from 960 px */
.who { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px 72px; align-items: center; }
.who-pic { max-width: 420px; }
.who-pic img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 416px; margin-top: 40px; }
.proof img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border: 1px solid var(--line-dark); }
.proof figcaption { margin-top: 10px; font: 400 var(--t-caption)/1.4 var(--sans); color: var(--muted-dark); }
@media (min-width: 960px) { .who { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .who-pic { max-width: none; } }

/* 6 · value stack: one surface, rows on hairlines */
.stack { max-width: 760px; margin: 48px auto 0; }
.stack dl { border-top: 1px solid var(--onyx); }
.stack dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.stack dt { font: 400 var(--t-lead)/1.5 var(--thai); }
.stack dd { flex: none; font: 400 var(--t-lead)/1.5 var(--sans); white-space: nowrap; }
.stack dd em { font: 600 var(--t-small)/1 var(--thai); font-style: normal; margin-right: 10px; }
.stack dl > div:not(:first-child) dd { color: var(--graphite); }
.total { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; padding: 28px 0 0; }
.total-was { font: 400 var(--t-body)/1.5 var(--thai); color: var(--graphite); }
.total-was s { font-family: var(--sans); margin-left: 6px; }
.total-now { font: 400 var(--t-lead)/1.2 var(--thai); }
.total-now b { margin-left: 12px; font: 500 var(--t-figure)/1 var(--sans); letter-spacing: -0.03em; }
.act { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 48px; text-align: center; }

/* 7 · upgrade */
.sec--ivory .center { margin-top: 32px; }

/* 8 · closing over the crowd, under a flat scrim */
.end { position: relative; isolation: isolate; padding: calc(var(--sec-y) + 24px) 0; text-align: center; }
.end-bg { position: absolute; inset: 0; z-index: -1; overflow: clip; }
.end-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.end-bg::after { content: ''; position: absolute; inset: 0; background: rgba(11, 11, 11, 0.74); }
.end-in { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.end-mark { width: 168px; opacity: 0.9; }
.end .sub { margin-top: -8px; }
.end .price { justify-content: center; }

/* footer: stacked on phones, links to the right from 640 px */
.foot { border-top: 1px solid var(--line-dark); padding: 40px 0 48px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot ul a { display: inline-flex; align-items: center; min-height: 44px; font: 400 var(--t-small)/1 var(--sans); color: var(--muted-dark); }
.foot ul a:hover { color: var(--white); }
.foot p { width: 100%; font: 400 var(--t-caption)/1.6 var(--sans); color: var(--graphite); }
@media (min-width: 640px) { .foot ul { margin-left: auto; } }

/* phones: one sticky bar carries the action between the hero and the closing;
   from 640 px the nav's button does that job */
.bar { position: fixed; inset: auto 0 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--onyx); color: var(--ivory); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform 0.5s var(--ease); }
.bar[data-on] { transform: none; }
.bar p { display: flex; flex-direction: column; }
.bar b { font: 500 var(--t-h3)/1.1 var(--sans); }
.bar span { font: 400 var(--t-caption)/1.4 var(--thai); color: var(--muted-dark); }
.bar .btn { padding: 0 18px; }
@media (min-width: 640px) { .bar { display: none; } }

/* one reveal for the page: rise 28 px as a block reaches the screen. Only set when JS runs
   with motion allowed (cc.js sets html[data-r-on]); blocks already on screen are marked in at once */
html[data-r-on] [data-r] { transition: opacity 0.9s var(--ease) var(--d, 0ms), transform 1.1s var(--ease) var(--d, 0ms); }
html[data-r-on] [data-r]:not([data-in]) { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .bar, .nav { display: none; } [data-r] { opacity: 1 !important; transform: none !important; } }
