/* Thai Voice-Over Studio
   Palette: mor hom indigo + marigold. Marigold is reserved for listen/quote actions. */
:root {
  --indigo: #1E2A4A;
  --indigo-2: #2C3B63;
  --ink: #161B2B;
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --mist: #DCE2EE;
  --mist-2: #EAEEF5;
  --marigold: #E3A21A;
  --marigold-ink: #3A2600;
  --muted: #545D72;
  --line: #C9D1E0;
  --ok: #1F6B45;
  --err: #A3261B;

  --serif: "Trirong", "Noto Serif Thai", Georgia, serif;
  --sans: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 6px;
  --r-md: 14px;
  --space: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
}
.lang-th body, body.lang-th { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn--lg { padding: .9em 1.6em; font-size: 1rem; }
.btn--quote { background: var(--marigold); color: var(--marigold-ink); }
.btn--quote:hover { background: #F0B238; color: var(--marigold-ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.link-action { font-weight: 600; color: var(--indigo); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--marigold); }
.link-action--light { color: var(--paper); }
.link-action--light:hover { color: var(--marigold); }
.tag { font: 500 .7rem/1 var(--sans); background: var(--mist); color: var(--muted); padding: .3em .55em; border-radius: 4px; vertical-align: middle; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 34px; height: 20px; fill: var(--indigo); flex: none; }
.brand__name { font: 600 1.15rem/1.1 var(--serif); white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { white-space: nowrap; color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current] { border-bottom-color: var(--marigold); }
.lang-switch { font-size: .9rem; color: var(--muted); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch:hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px var(--gutter) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 1.05rem; }
  .lang-switch { align-self: flex-start; }
}

/* Hero: the reel is the memorable element */
.hero { background: var(--indigo); color: var(--paper); padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__title { color: var(--paper); font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.12; max-width: 13ch; text-wrap: balance; }
.lang-th .hero__title { max-width: 14ch; line-height: 1.3; }
.hero__lead { font-size: 1.15rem; color: #C8D0E2; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .btn--ghost { color: var(--paper); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--indigo); border-color: var(--paper); }
.hero__reel { background: var(--indigo-2); border-radius: var(--r-md); padding: clamp(20px, 3vw, 32px); }
.hero__voices { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hero__voices a { display: flex; align-items: baseline; gap: 8px; color: var(--paper); text-decoration: none; padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255,255,255,.05); font-size: .95rem; }
.hero__voices a:hover { background: rgba(255,255,255,.12); }
.hero__voices small { color: #A9B4CC; margin-left: auto; font-size: .82rem; }
.hero__voices .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--marigold); flex: none; transform: translateY(-1px); }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hero__voices { grid-template-columns: 1fr; } }

/* Player */
.player { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.player__btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--marigold); color: var(--marigold-ink); cursor: pointer; flex: none;
}
.player__btn svg { width: 22px; height: 22px; fill: currentColor; }
.player__btn .i-pause { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-empty .player__btn { background: var(--mist); color: var(--muted); cursor: default; }
.player__body { min-width: 0; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; }
.player__label { font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__meta { font-size: .82rem; color: var(--muted); grid-column: 2; grid-row: 1; align-self: center; font-variant-numeric: tabular-nums; }
.player__wave { grid-column: 1 / -1; height: 36px; margin-top: 6px; cursor: pointer; }
.player.is-empty .player__wave { cursor: default; }
.player__wave canvas { width: 100%; height: 100%; display: block; }

.player--reel { align-items: start; gap: 18px; }
.player--reel .player__btn { width: 64px; height: 64px; }
.player--reel .player__btn svg { width: 28px; height: 28px; }
.player--reel .player__body { padding-top: 6px; }
.player--reel .player__label { color: var(--paper); font: 500 1.05rem var(--sans); }
.player--reel .player__meta { color: #A9B4CC; }
.player--reel .player__wave { height: clamp(96px, 14vw, 150px); margin-top: 16px; }
.player--reel.is-empty .player__btn { background: rgba(255,255,255,.12); color: #A9B4CC; }

/* Sections */
.section { padding: var(--space) 0; }
.section--flush { padding-top: 0; }
.section--mist { background: var(--mist-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .section__title { color: var(--paper); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section__head .section__title { margin: 0; }
.section__title { margin-bottom: 40px; }
.section__lead { color: var(--muted); max-width: 56ch; margin: 12px 0 0; }

.page-intro { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-intro h1 { max-width: 20ch; }
.page-intro__lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.page-intro__meta { color: var(--muted); }
.back { display: inline-block; margin-bottom: 20px; color: var(--muted); }

/* Services on home: editorial rows, not cards */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.2fr); gap: 32px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
}
.service-row h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.service-row p { margin: 0; }
.service-row__items { color: var(--muted); font-size: .95rem; }
.service-row:hover h3 { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 800px) { .service-row { grid-template-columns: 1fr; gap: 6px; } }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service__summary { font-size: 1.15rem; color: var(--muted); max-width: 40ch; }
.service__sub { font: 600 .95rem var(--sans); color: var(--muted); margin-bottom: 8px; }
.service__items { margin: 0 0 24px; padding-left: 1.2em; }
.service .player { margin-bottom: 20px; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* Voices */
.voices-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.voice { background: var(--white); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 90px; }
.voice[hidden] { display: none; }
.voice__head { display: flex; gap: 16px; align-items: center; }
.voice__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.voice__photo--blank { display: grid; place-items: center; background: var(--indigo); color: var(--paper); font: 500 1.5rem var(--serif); }
.voice__name { margin: 0; font-size: 1.3rem; }
.voice__traits { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
.voice__demos { display: grid; gap: 16px; }
.voice__bio { margin: 0; color: var(--muted); }
.voice__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: .92rem; }
.voice__facts dt { color: var(--muted); }
.voice__facts dd { margin: 0; font-weight: 500; }
.voice .link-action { margin-top: auto; align-self: flex-start; }
.voices-grid--full .voice { border: 1px solid var(--mist); }
@media (max-width: 760px) { .voices-grid { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { font: 500 .92rem var(--sans); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); color: var(--paper); }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.why__item { border-top: 3px solid var(--indigo); padding-top: 20px; }
.why__item p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .why__grid { grid-template-columns: 1fr; } }

/* Steps: numbered because the process is a real sequence */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps__n { font: 500 2.4rem/1 var(--serif); color: var(--marigold); min-width: 1.2ch; }
.steps h2 { font-size: 1.3rem; margin: .2em 0 .4em; }
.steps p { margin: 0; color: var(--muted); }
.steps--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.steps--compact li { grid-template-columns: 1fr; gap: 10px; font-size: 1rem; }
.steps--compact span:last-child { color: var(--paper); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps--compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps--compact { grid-template-columns: 1fr 1fr; } }

/* Samples */
.sample-group { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sample { background: var(--white); border-radius: var(--r-md); padding: 20px 22px; }
.sample__desc { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
.sample .link-action { display: inline-block; margin-top: 10px; }
@media (max-width: 760px) { .samples { grid-template-columns: 1fr; } }
.empty { color: var(--muted); background: var(--mist-2); padding: 20px 24px; border-radius: var(--r-sm); }

/* Prose */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.post-cover { border-radius: var(--r-md); margin-bottom: 48px; }

/* Blog list */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-row time { color: var(--muted); font-size: .95rem; padding-top: 4px; }
.post-row h2 { font-size: 1.4rem; margin-bottom: 6px; }
.post-row h2 a { color: var(--ink); text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--marigold); }
.post-row p { margin: 0; color: var(--muted); }
@media (max-width: 600px) { .post-row { grid-template-columns: 1fr; gap: 4px; } }

/* Forms */
.quote { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.quote__aside { background: var(--mist-2); border-radius: var(--r-md); padding: 28px; position: sticky; top: 96px; }
.quote__aside h2 { font-size: 1.3rem; }
.factors { margin: 0; padding-left: 1.2em; color: var(--muted); }
.factors li { margin-bottom: 4px; }
.quote__direct { margin: 20px 0 0; font-size: .95rem; }
@media (max-width: 860px) { .quote { grid-template-columns: 1fr; } .quote__aside { position: static; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide, .form__submit { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.field .error { font-size: .88rem; color: var(--err); font-weight: 500; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; width: 100%;
}
.field input[type=file] { padding: 9px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--indigo); outline: 2px solid var(--mist); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.notice { border-radius: var(--r-md); padding: 20px 24px; margin-bottom: 28px; }
.notice h2 { font-size: 1.4rem; }
.notice p { margin: 0; }
.notice--ok { background: #E3F1E8; color: var(--ok); }
.notice--ok h2 { color: var(--ok); }
.notice--error { background: #F8E4E1; color: var(--err); font-weight: 500; }

.direct { margin: 0; display: grid; gap: 18px; }
.direct dt { color: var(--muted); font-size: .9rem; }
.direct dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* CTA band */
.cta-band { background: var(--marigold); color: var(--marigold-ink); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: var(--marigold-ink); margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 52ch; }
.cta-band .btn--quote { background: var(--ink); color: var(--paper); }
.cta-band .btn--quote:hover { background: var(--indigo); color: var(--paper); }

/* Footer */
.site-footer { background: var(--ink); color: #B9C1D4; padding: 64px 0 28px; font-size: .95rem; }
.site-footer a { color: #DCE2EE; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__name { font: 600 1.25rem var(--serif); color: var(--paper); margin-bottom: 8px; }
.site-footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.site-footer__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid #2A3147; font-size: .85rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }
