/* ============================================================================
   web-05 · สตูดิโอลมหายใจ

   Concept: the studio does not sell a body, it sells a slower tempo. Every other
   yoga site in the category is beige and sage with a backlit stretch photograph;
   this one is the colour of 6.30pm — the hour of the class people actually come
   to after work. Time is the unit of measurement everywhere: the breath bar runs
   on the 4-in / 6-out count the teachers actually use, and a class block is as
   tall as the class is long.

   Everything transitions at 400ms rather than the usual 200ms. Nothing on the
   page is allowed to hurry.

   Signature: the breath bar (.breath). Once, in the hero, and nowhere else.
   ============================================================================ */

:root {
  --dusk: #232B4A;
  --dusk-2: #1A2039;
  --chalk: #F4F2ED;
  --apricot: #E8A87C;
  --slate: #5B6B94;
  --night: #14161F;

  --container: 1080px;
  --pad: clamp(20px, 5vw, 48px);
  --gap: clamp(96px, 13vw, 176px);
  /* one minute of class time, in pixels — the constant the timetable is built from */
  --min: 1.1px;
}

body {
  background: var(--dusk);
  color: var(--chalk);
  font-family: 'Sarabun', system-ui, sans-serif;
  line-height: 1.85;
}

.mono, .num { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: 'Fahkwang', system-ui, sans-serif; font-weight: 400; line-height: 1.4; }
/* weight never goes above 500 on this site: heaviness is loudness, and loudness is the
   opposite of what the studio sells */
h3 { font-weight: 500; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); }

.wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gap); }
.section--alt { background: var(--dusk-2); }
.lede { color: rgba(244,242,237,.76); max-width: 54ch; }
.center { text-align: center; margin-inline: auto; }
a { color: var(--apricot); }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; }

/* -- buttons ---------------------------------------------------------------- */
.btn { display: inline-block; padding: 15px 32px; border-radius: 2px; text-decoration: none; font-weight: 600; transition: background .4s, color .4s, border-color .4s; }
.btn--primary { background: var(--apricot); color: var(--dusk); }
.btn--primary:hover { background: #f0b78e; }
.btn--ghost { border: 1px solid var(--slate); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--apricot); color: var(--apricot); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.center .btn-row { justify-content: center; }

/* -- header ------------------------------------------------------------------ */
.header { position: sticky; top: 0; z-index: 30; transition: background .4s; }
.header.is-stuck { background: var(--dusk); }
.header__inner { max-width: var(--container); margin-inline: auto; padding: 16px var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { font-family: 'Fahkwang', sans-serif; font-size: 1.1875rem; text-decoration: none; color: var(--chalk); }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav__link { text-decoration: none; color: var(--chalk); font-size: .9375rem; transition: color .4s; }
/* no underline anywhere — an underline is a louder signal than this site wants */
.nav__link.is-active { color: var(--apricot); }
.nav__link:hover { color: var(--apricot); }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 22px; height: 2px; background: var(--chalk); }
@media (max-width: 860px) {
  .burger { display: flex; }
  .nav { position: fixed; inset: 0; z-index: 40; flex-direction: column; justify-content: center; align-items: center; gap: 30px; margin: 0; background: var(--dusk); transform: translateY(-100%); transition: transform .4s; }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.375rem; }
  body.nav-open { overflow: hidden; }
}

/* -- SIGNATURE: the breath bar ------------------------------------------------ */
/* 4 seconds in, 6 seconds out — the count the teachers give in class. The label changes
   with the phase, so the bar is readable, not just decorative. */
.breath { width: 240px; margin: 48px auto 0; }
.breath__track { height: 3px; background: var(--slate); opacity: .3; }
.breath__fill {
  height: 3px; background: var(--apricot); width: 100%;
  transform: scaleX(0); transform-origin: left;
  animation: breathe 10s cubic-bezier(.37,0,.63,1) infinite;
  margin-top: -3px;
}
@keyframes breathe {
  0%   { transform: scaleX(0); }
  40%  { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
/* The phase label is swapped by web-05.js on the same 4s/6s schedule; keeping it in JS
   avoids a second keyframe timeline that could drift out of step with the bar. Without JS
   it simply reads the count, which is still the useful thing to know. */
.breath__label { margin-top: 10px; font-size: .8125rem; color: var(--slate); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .breath__fill { animation: none; transform: scaleX(.6); }
}
@media (max-width: 640px) { .breath { width: 200px; } }

/* -- hero ---------------------------------------------------------------------- */
.hero { padding-block: clamp(128px,17vw,224px) 0; text-align: center; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero .lede { margin: 24px auto 0; max-width: 52ch; }
.hero__hours { margin-top: 28px; color: var(--slate); font-size: .875rem; }
.hero__img { margin-top: clamp(48px,7vw,88px); position: relative; }
.hero__img img { width: 100%; height: clamp(320px,42vw,560px); object-fit: cover; }
/* the photograph fades up out of the page ground rather than starting at a hard edge */
.hero__img::before { content: ''; position: absolute; inset: 0 0 40% 0; background: linear-gradient(var(--dusk), transparent); pointer-events: none; }

/* -- class blocks: height is the duration --------------------------------------- */
.classes { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; margin-top: 48px; }
@media (max-width: 900px) { .classes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .classes { grid-template-columns: 1fr; } }
.class { padding-inline: clamp(12px,2vw,24px); border-right: 1px solid rgba(91,107,148,.3); }
.class:last-child { border-right: 0; }
@media (max-width: 900px) { .class { border-right: 0; margin-bottom: 32px; } }
.class__bar { height: calc(var(--mins) * var(--min)); background: var(--apricot); opacity: var(--o, 1); margin-bottom: 18px; }
.class h3 { font-size: 1.375rem; }
.class__time { font-family: 'IBM Plex Mono', monospace; color: var(--apricot); font-size: .9375rem; }
.class__level { color: var(--slate); font-size: .8125rem; }
.class p { color: rgba(244,242,237,.76); font-size: .9375rem; max-width: 30ch; margin-top: 8px; }

/* -- numbers -------------------------------------------------------------------- */
.figs { display: flex; flex-wrap: wrap; margin-top: 36px; }
.fig { padding-right: 32px; margin-right: 32px; border-right: 1px solid rgba(91,107,148,.35); }
.fig:last-child { border-right: 0; }
.fig__n { display: block; font-family: 'IBM Plex Mono', monospace; font-size: clamp(2rem,4vw,2.75rem); color: var(--apricot); line-height: 1.2; }
.fig__label { color: var(--slate); font-size: .875rem; }

/* -- teachers / rules lists -------------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 55fr 45fr; gap: clamp(32px,5vw,72px); align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col > .is-img { order: -1; } }
/* even split for pairs of equal things. A class, not an inline style — an inline
   grid-template-columns wins over the media query above and never collapses. */
.two-col--even { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .two-col--even { grid-template-columns: 1fr; } }
.two-col img { width: 100%; object-fit: cover; }

.roster { width: 100%; max-width: 880px; margin-top: 40px; }
.roster th, .roster td { padding: 18px 20px 18px 0; border-top: 1px solid rgba(91,107,148,.3); vertical-align: top; font-weight: 400; }
.roster tr:last-child td, .roster tr:last-child th { border-bottom: 1px solid rgba(91,107,148,.3); }
.roster .is-name { font-family: 'Fahkwang', sans-serif; font-weight: 500; font-size: 1.125rem; white-space: nowrap; }
.roster .is-what { color: var(--apricot); }
.roster .is-cv { color: rgba(244,242,237,.72); font-size: .9375rem; }
@media (max-width: 800px) {
  .roster, .roster tbody, .roster tr, .roster th, .roster td { display: block; width: auto; }
  .roster tr { padding: 16px 0; border-top: 1px solid rgba(91,107,148,.3); }
  .roster th, .roster td { padding: 0; border: 0; }
}

.dots { max-width: 760px; margin-top: 40px; }
.dot-item { padding: 22px 0; border-top: 1px solid rgba(91,107,148,.25); }
.dot-item:last-child { border-bottom: 1px solid rgba(91,107,148,.25); }
.dot-item h3 { font-size: 1.125rem; display: flex; align-items: baseline; gap: 12px; }
.dot-item h3::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); }
.dot-item p { color: rgba(244,242,237,.74); margin-left: 20px; }

.nots { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; margin-top: 40px; }
@media (max-width: 800px) { .nots { grid-template-columns: 1fr; } }
.not h3 { font-size: 1.0625rem; display: flex; align-items: baseline; gap: 12px; }
/* a single short rule, not a cross — a cross would be more aggressive than this site's voice */
.not h3::before { content: ''; flex: none; width: 20px; height: 1px; background: var(--slate); }
.not p { color: rgba(244,242,237,.72); font-size: .9375rem; margin-left: 32px; max-width: 34ch; }

/* -- SIGNATURE STRUCTURE: the timetable ---------------------------------------------- */
/* A real <table> — the data is tabular and must stay readable to assistive tech. The
   proportional part is the block height: a 75-minute class is visibly taller than a
   50-minute one, in every cell, on the same scale. */
.tt-wrap { margin-top: 40px; }
.tt { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 4px; }
.tt caption { text-align: left; color: var(--slate); font-size: .875rem; padding-bottom: 12px; }
.tt th { font-weight: 400; color: var(--slate); font-size: .875rem; padding-bottom: 8px; text-align: center; }
.tt th[scope="row"] { font-family: 'IBM Plex Mono', monospace; text-align: right; padding-right: 12px; white-space: nowrap; vertical-align: top; width: 64px; }
.tt td { vertical-align: top; }
.slot {
  display: flex; flex-direction: column; justify-content: center;
  height: calc(var(--mins) * var(--min));
  padding: 6px 10px; border-radius: 2px;
  font-size: .8125rem; line-height: 1.4;
}
.slot__name { font-family: 'Fahkwang', sans-serif; }
.slot__mins { font-family: 'IBM Plex Mono', monospace; opacity: .75; }
/* one hue, four steps — this site has a single accent, so classes are told apart by
   weight of ink, not by four unrelated colours */
.slot--breath { background: var(--apricot); color: var(--dusk); }
.slot--found  { background: rgba(232,168,124,.62); color: var(--dusk); }
.slot--reform { background: var(--slate); color: var(--chalk); }
.slot--restore{ background: rgba(232,168,124,.34); color: var(--chalk); }
.slot--none { height: 8px; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: .8125rem; color: var(--slate); }
.tt-legend span::before { content: ''; display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-right: 7px; vertical-align: middle; }
.tt-legend .l1::before { background: var(--apricot); }
.tt-legend .l2::before { background: rgba(232,168,124,.62); }
.tt-legend .l3::before { background: var(--slate); }
.tt-legend .l4::before { background: rgba(232,168,124,.34); }

/* -- class detail blocks ---------------------------------------------------------------- */
.detail { max-width: 820px; padding: 32px 0 32px 20px; border-left: 8px solid var(--apricot); border-top: 1px solid rgba(91,107,148,.25); }
.detail:first-of-type { border-top: 0; }
.detail--found { border-left-color: rgba(232,168,124,.62); }
.detail--reform { border-left-color: var(--slate); }
.detail--restore { border-left-color: rgba(232,168,124,.34); }
.detail h3 { font-size: 1.5rem; }
.detail__meta { font-family: 'IBM Plex Mono', monospace; color: var(--slate); font-size: .875rem; }
.detail p { color: rgba(244,242,237,.78); max-width: 60ch; margin-top: 12px; }
.detail__gain { background: var(--dusk); padding: 16px 20px; margin-top: 16px; font-size: .9375rem; }
.section--alt .detail__gain { background: var(--dusk); }
.detail__note { color: var(--apricot); font-size: .9375rem; margin-top: 12px; }

/* -- packages: the one light section ------------------------------------------------------ */
/* Five prices have to be compared exactly, and flipping the ground says plainly
   "this part is about money". */
.prices { background: var(--chalk); color: var(--dusk); padding-block: var(--gap); }
.prices h2 { color: var(--dusk); }
.prices .lede { color: rgba(35,43,74,.7); }
.ptable { width: 100%; max-width: 900px; margin-top: 36px; }
.ptable th, .ptable td { padding: 18px 20px 18px 0; border-top: 1px solid rgba(35,43,74,.16); vertical-align: top; font-weight: 400; text-align: left; }
.ptable tr:last-child td, .ptable tr:last-child th { border-bottom: 1px solid rgba(35,43,74,.16); }
.ptable .is-name { font-family: 'Fahkwang', sans-serif; font-weight: 500; font-size: 1.0625rem; white-space: nowrap; }
.ptable .is-price { font-family: 'IBM Plex Mono', monospace; font-size: 1.375rem; white-space: nowrap; }
.ptable .is-what { font-family: 'IBM Plex Mono', monospace; font-size: .875rem; color: rgba(35,43,74,.62); }
.ptable .is-cond { color: rgba(35,43,74,.7); font-size: .9375rem; }
/* the first row is the way in for a newcomer — highlighted because of that, not because
   it earns the most */
.ptable .is-entry { background: rgba(232,168,124,.25); }
@media (max-width: 860px) {
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto; }
  .ptable tr { padding: 16px 0; border-top: 1px solid rgba(35,43,74,.16); }
  .ptable th, .ptable td { padding: 0; border: 0; }
}

/* -- contact ---------------------------------------------------------------------------- */
.channels { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 44px; }
@media (max-width: 640px) { .channels { grid-template-columns: 1fr; } }
.channel { display: block; text-decoration: none; padding-top: 16px; border-top: 1px solid rgba(91,107,148,.4); transition: border-color .4s; }
.channel:hover, .channel:focus-visible { border-top-color: var(--apricot); }
.channel__label { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--slate); }
.channel__value { display: block; font-family: 'Fahkwang', sans-serif; font-weight: 500; font-size: 1.25rem; color: var(--chalk); margin: 4px 0 6px; }
.channel__note { color: rgba(244,242,237,.7); font-size: .9375rem; }

.locator { width: 100%; border-radius: 2px; display: block; }
.dl__row { padding: 14px 0; border-top: 1px solid rgba(91,107,148,.25); }
.dl__row:last-child { border-bottom: 1px solid rgba(91,107,148,.25); }
.dl__label { font-family: 'IBM Plex Mono', monospace; font-size: .75rem; color: var(--apricot); }

.hours { max-width: 520px; margin: 32px auto 0; }
.hours tr { border-top: 1px solid rgba(91,107,148,.25); }
.hours tr:last-child { border-bottom: 1px solid rgba(91,107,148,.25); }
.hours th, .hours td { padding: 12px 0; font-weight: 400; }
.hours td { text-align: right; font-family: 'IBM Plex Mono', monospace; }
.hours tr.is-today th::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); margin-right: 8px; vertical-align: middle; }

.quote { background: var(--dusk-2); border-left: 2px solid var(--apricot); padding: 28px; margin-top: 32px; max-width: 720px; border-radius: 2px; }

/* -- CTA band: the one bright landing ------------------------------------------------------- */
.band { background: var(--apricot); color: var(--dusk); padding-block: clamp(64px,8vw,104px); text-align: center; }
.band h2 { color: var(--dusk); }
.band p { color: rgba(35,43,74,.78); max-width: 56ch; margin-inline: auto; }
.band__price { font-family: 'IBM Plex Mono', monospace; font-size: clamp(2.5rem,6vw,4rem); line-height: 1.1; margin: 8px 0; }
.band .btn--primary { background: var(--dusk); color: var(--chalk); }
.band .btn--ghost { border-color: var(--dusk); color: var(--dusk); }
.band .btn--ghost:hover { border-color: var(--dusk); color: var(--dusk); background: rgba(35,43,74,.1); }

/* -- footer ---------------------------------------------------------------------------------- */
.footer { background: var(--night); padding-block: 56px 28px; }
.footer__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; font-size: .9375rem; color: rgba(244,242,237,.66); }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand { font-family: 'Fahkwang', sans-serif; color: var(--chalk); margin-bottom: 8px; }
.footer__label { font-size: .8125rem; color: var(--apricot); margin-bottom: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(91,107,148,.2); font-size: .8125rem; color: var(--slate); }

/* No fixed mobile action bar on this site, unlike the others in the set: a bar pinned to the
   screen is a nudge, and nudging is exactly what the studio is selling the absence of. */
