/* "Friendly" layer over Style 1 (owner, 30 Nov 2026: "ดูพรีเมียมเกินไปและเข้าถึงยาก" — make it easier to
   approach, pictures bigger, hero full screen like augustvee.com, fewer stacked lists).
   Load after cc.css. It keeps Style 1's grid, type scale and motion, and changes the voice:
   bold headlines, pill buttons, rounded pictures, his own gold (#C9A961) for the main action and key words,
   a full-screen hero photo on every screen with a gentle parallax. */

/* the wordmark: August Vee in Cormorant Garamond Italic, the face augustvee.com declares
   (its own copy never loads, so visitors see Times). Self-hosted, Latin only. */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
.wm { font-family: 'Cormorant Garamond', 'Times New Roman', serif; font-style: italic; font-weight: 500; letter-spacing: -0.03em; line-height: 0.9; white-space: nowrap; }
.logo.wm { width: auto; font-size: 30px; color: var(--white); padding-right: 4px; }
.foot .logo.wm { font-size: 34px; }
@media (min-width: 640px) { .logo.wm { font-size: 32px; } }
/* the closing signature: the name across the whole width, like ToneDiao's footer wordmark */
.wm-big { display: block; padding: 32px var(--gutter) 0; font-size: clamp(76px, 21vw, 340px); text-align: center; color: var(--ivory); }

:root {
  --gold: #c9a961;        /* augustvee.com's own accent; text on dark, fills behind onyx text */
  --gold-2: #d9bf82;      /* hover */
  --gold-ink: #7a5c17;    /* the same gold, dark enough for text on white (5.6:1) */
  --r-img: 16px;
  --r-card: 20px;
}

/* bold, warm headlines */
.hero-h, .h2, .q-main { font-weight: 700; }
.hl { color: var(--gold); }
.sec:not(.dark) .hl, .quote .hl { color: var(--gold-ink); }

/* pill buttons; the main action is gold everywhere */
.btn { border-radius: 999px; }
.btn--light, .btn--gold { background: var(--gold); border-color: var(--gold); color: var(--onyx); }
.btn--light:hover, .btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--onyx); }
.nav .btn { min-height: 40px; }

/* rounded pictures */
.who-pic img, .proof img, .about-pics img, .socials img, .end-mark { border-radius: var(--r-img); }

/* hero: the photo fills the whole first screen on every device, words at the bottom over a shade */
.hero { justify-content: flex-end; padding-top: calc(var(--nav-h) + 32px); overflow: clip; }
.hero-bg { inset: 0; height: auto; }
.hero-bg::after { background: rgba(11, 11, 11, 0.2); box-shadow: inset 0 -58svh 34svh -18svh rgba(11, 11, 11, 0.94), inset 0 120px 90px -80px rgba(11, 11, 11, 0.6); }
@media (min-width: 768px) {
  .hero-bg::after { background: rgba(11, 11, 11, 0.2); box-shadow: inset 760px 0 360px -300px rgba(11, 11, 11, 0.7), inset 0 -320px 220px -120px var(--onyx), inset 0 120px 90px -80px rgba(11, 11, 11, 0.6); }
}
.hero .figs { margin-top: 40px; padding-top: 24px; padding-bottom: 32px; }
/* hero figures: one compact row of four on every screen, so the words stay below the face on phones */
.figs--hero { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 28px; padding: 18px 0 26px; }
.hero .figs--hero { margin-top: 28px; padding: 18px 0 26px; }
.figs--hero b { white-space: nowrap; font-size: clamp(19px, calc(10px + 2.8vw), 40px); }
.figs--hero span { margin-top: 4px; font-size: var(--t-caption); line-height: 1.4; }
/* phones: both hero buttons on one row, the product lockup hidden */
.hero .acts .btn { min-height: 48px; padding: 0 18px; font-size: var(--t-small); }
.hero .hero-mark { display: none; }
.hero .hero-buy { margin-top: 24px; gap: 12px; }
@media (min-width: 768px) {
  .figs--hero, .hero .figs--hero { gap: 24px; max-width: 760px; }
  .hero .acts .btn { min-height: 56px; padding: 0 32px; font-size: var(--t-body); }
  .hero .hero-mark { display: block; }
  .hero .hero-buy { margin-top: 40px; gap: 16px; }
}
/* the hero photo drifts slower than the page, like augustvee.com (scroll-driven, progressive) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-bg img { height: 116%; animation: settle 1.8s var(--ease) both, drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100svh; }
  }
}
@keyframes drift { from { translate: 0 0; } to { translate: 0 12%; } }

/* course page: the pains become soft cards, two across from 640 px */
.pains { border-top: 0; display: grid; gap: 10px; }
.pains li { display: block; position: relative; padding: 16px 20px 16px 48px; border: 0; border-radius: var(--r-card); background: var(--ivory); }
.pains li::before { position: absolute; left: 20px; top: 19px; }
@media (min-width: 640px) { .pains { grid-template-columns: 1fr 1fr; } .pains li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Thai display face for the big moments (owner, 30 Nov 2026: the hero's Thai should be more beautiful
   and have more impact). Kanit SemiBold Italic: loopless, its slant answers the italic wordmark. */
@font-face { font-family: 'Kanit'; src: url('fonts/kanit-thai-600-italic.woff2') format('woff2'); font-weight: 600; font-style: italic; font-display: swap; unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; src: url('fonts/kanit-thai-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
@font-face { font-family: 'Kanit'; src: url('fonts/kanit-thai-200-italic.woff2') format('woff2'); font-weight: 200; font-style: italic; font-display: swap; unicode-range: U+0E00-0E7F, U+200C-200D, U+25CC; }
:root { --display-th: 'Kanit', 'LINE Seed Sans TH', system-ui, sans-serif; }

/* ---------- motion as a journey (owner, 30 Nov 2026, second pass) ----------
   "ซ้ำจำเจเกินไป … อยากให้มีหลากหลายแต่ดูเข้ากัน … เหมือนการเดินทางไปกับเขา … เฟดเฉยๆ แบบสมูท".
   Two layers that never fight:
   1. Arrival: every block simply fades in, slow and smooth, once (cc.js marks [data-in]). No sliding up.
      Headings also come into focus (blur to sharp); nothing moves.
   2. Travel: each chapter has its own movement tied to the scroll itself (CSS scroll timelines), so the
      page moves with the reader: the hero drifts away, the numbers grow nearer, the portrait opens like
      a window, the service card comes forward, the profile screens gather, the stage pulls back, the
      signature closes in. Where scroll timelines are missing, only the fades run.
   Reduced motion, no JS and print show everything finished. */
html[data-r-on] [data-r] { transition: opacity 1.4s cubic-bezier(0.33, 0, 0.2, 1) var(--d, 0ms), filter 1.4s cubic-bezier(0.33, 0, 0.2, 1) var(--d, 0ms); }
html[data-r-on] [data-r]:not([data-in]) { opacity: 0; }
html[data-r-on] [data-r='mask']:not([data-in]) { filter: blur(10px); }
.about-frame { border-radius: var(--r-img); overflow: clip; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* hero: the words drift back and fade as the journey starts (no lift) */
    .hero--brand .hero-in { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
    /* impact: the numbers come nearer as you approach */
    .big-figs b { animation: grow-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    /* about: the portrait opens like a window, the photo inside settles; the childhood photo floats past */
    .about-frame, .who-pic { animation: aperture linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .about-frame img, .who-pic img { animation: settle-in linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .about-small { animation: float-up linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* services: the card comes forward to meet you */
    .svc .panel { animation: come-forward linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    /* socials: the three screens gather from the sides */
    .socials li:first-child { animation: from-left linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .socials li:last-child { animation: from-right linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    /* course page: the pains settle side by side */
    .pains li:nth-child(odd) { animation: from-left-soft linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .pains li:nth-child(even) { animation: from-right-soft linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    /* speaking and the course closing: the photo pulls back as you pass */
    .band-bg img, .end-bg img { animation: pull-back linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* the signature closes its letters at the end of the road */
    .wm-big { animation: sign linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes hero-out { to { opacity: 0; scale: 0.92; filter: blur(6px); } }
@keyframes grow-in { from { scale: 0.72; } to { scale: 1; } }
@keyframes aperture { from { clip-path: inset(16% 12% 16% 12% round 40px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes settle-in { from { scale: 1.25; } to { scale: 1; } }
@keyframes float-up { from { translate: 0 70px; rotate: -8deg; } to { translate: 0 -50px; rotate: -2deg; } }
@keyframes come-forward { from { scale: 0.9; border-radius: 56px; } to { scale: 1; border-radius: 28px; } }
@keyframes from-left { from { translate: -48px 0; rotate: -5deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes from-right { from { translate: 48px 0; rotate: 5deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes from-left-soft { from { translate: -28px 0; } to { translate: 0 0; } }
@keyframes from-right-soft { from { translate: 28px 0; } to { translate: 0 0; } }
@keyframes pull-back { from { scale: 1.28; } to { scale: 1; } }
@keyframes sign { from { letter-spacing: 0.1em; opacity: 0.15; } to { letter-spacing: -0.03em; opacity: 1; } }
.foot { overflow: clip; }

/* course page hero and the opened accordion: the same plain fade, no sliding up */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .hero:not(.hero--brand) .hero-h .ln, .hero:not(.hero--brand) .hero-sub, .hero:not(.hero--brand) .hero-buy, .hero:not(.hero--brand) .hero-mark { animation: fade 1.4s cubic-bezier(0.33, 0, 0.2, 1) both; }
  .hero:not(.hero--brand) .hero-h .ln:nth-child(2) { animation-delay: 0.1s; }
  .hero:not(.hero--brand) .hero-sub { animation-delay: 0.2s; }
  .hero:not(.hero--brand) .hero-buy { animation-delay: 0.3s; }
  .acc details[open] p { animation: fade 0.8s cubic-bezier(0.33, 0, 0.2, 1); }
}

/* the travel effects move things sideways and scale photos: each chapter clips only horizontally,
   so nothing widens the page (vertical overflow stays visible for Thai marks) */
main > section { overflow-x: clip; }
