/* ============================================================
   YAMA homepage sections — dark, bold.
   Everything is scoped to .ym so the rest of the site is untouched.
   Colours live in the variables below; the accent is set from the
   Opening section's "Accent colour" setting.
   ============================================================ */

:root {
  --ym-ground: #121211;
  --ym-ground-2: #1B1A18;
  --ym-panel: #24231F;
  --ym-rule: #3A3833;
  --ym-text: #ECE6DA;
  --ym-soft: #C9C3B6;
  --ym-muted: #A8A296;
  --ym-accent: #E0857A;
  --ym-accent-dark: #9E4A40;   /* accent used on light backgrounds */
  --ym-btn: #557A4A;           /* main button colour (green) */
  --ym-btn-text: #F3EFE6;
  --ym-display: 'Gloock', Georgia, serif;
  --ym-body: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
  --ym-mono: 'Chivo Mono', 'Courier New', monospace;
  --ym-gutter: clamp(20px, 5vw, 72px);
}

/* ---------- Homepage chrome: dark header, hello bar and footer ---------- */
body:has(.ym) { background: var(--ym-ground); }
body:has(.ym) main { background: var(--ym-ground); }
body:has(.ym) .header,
body:has(.ym) .header__content,
body:has(.ym) .header__content--desktop,
body:has(.ym) .header__content--mobile { background-color: transparent !important; }
body:has(.ym) .header.header--fixed { background-color: rgba(18, 18, 17, .94) !important; }
body:has(.ym) .header a,
body:has(.ym) .header a.link-list__link,
body:has(.ym) .header .user__login a,
body:has(.ym) .header .dropdown__trigger,
body:has(.ym) .header.header--fixed a { color: var(--ym-text) !important; }
body:has(.ym) .header .dropdown__menu,
body:has(.ym) .header .dropdown__item a { background: var(--ym-ground-2) !important; }
body:has(.ym) .header .logo__image { filter: invert(1); }
body:has(.ym) .header a.link-list__link { white-space: nowrap; }
body:has(.ym) #block-cart .cart-button button,
body:has(.ym) .header.header--fixed #block-cart .cart-button button { color: var(--ym-text) !important; }body:has(.ym) .header .hamburger__slice { background-color: var(--ym-text) !important; }
@media (max-width: 767px) {
  body:has(.ym) .header__content--mobile { background-color: var(--ym-ground) !important; }
}
body:has(.ym) .hello-bar { background: var(--ym-ground-2) !important; }
body:has(.ym) .hello-bar,
body:has(.ym) .hello-bar a,
body:has(.ym) .hello-bar p { color: var(--ym-text) !important; font-family: var(--ym-mono); font-size: 13px; letter-spacing: .04em; }
body:has(.ym) .footer { background: var(--ym-ground) !important; border-top: 1px solid var(--ym-rule); }
body:has(.ym) .footer,
body:has(.ym) .footer a,
body:has(.ym) .footer p { color: var(--ym-muted) !important; }

/* ---------- Base ---------- */
.ym {
  background: var(--ym-ground);
  color: var(--ym-text);
  font-family: var(--ym-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ym *, .ym *::before, .ym *::after { box-sizing: border-box; }
.ym a { color: var(--ym-text); }
.ym a:hover { color: var(--ym-accent); }
.ym h1, .ym h2, .ym h3, .ym p, .ym blockquote { margin: 0; }
.ym h1, .ym h2, .ym h3 { font-family: var(--ym-display); font-weight: 400; color: var(--ym-text); letter-spacing: 0; text-transform: none; }
.ym img { display: block; max-width: 100%; }

.ym-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--ym-gutter); padding-right: var(--ym-gutter); }
.ym-wrap--bleed-right { max-width: 1440px; margin: 0 auto; padding-left: var(--ym-gutter); }
.ym-rule-top { border-top: 1px solid var(--ym-rule); }
.ym-band { background: var(--ym-ground-2); }

.ym-label {
  display: block;
  font-family: var(--ym-mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ym-accent);
}
.ym-label--muted { color: var(--ym-muted); }
.ym-note { font-family: var(--ym-mono); font-size: 12px; color: var(--ym-muted); letter-spacing: .02em; }
.ym-h2 { font-size: clamp(40px, 5vw, 60px); line-height: 1.04; }
.ym-lede { color: var(--ym-soft); font-size: 18px; line-height: 1.6; max-width: 560px; }

.ym-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 40px; margin-bottom: 36px; padding-right: var(--ym-gutter);
}

/* ---------- Buttons ---------- */
.ym-btn {
  display: inline-block; padding: 18px 28px;
  font-family: var(--ym-body); font-weight: 600; font-size: 15px; line-height: 1.2;
  text-decoration: none; border: 1px solid var(--ym-text); transition: background .2s, color .2s;
}
.ym .ym-btn--solid { background: var(--ym-btn); border-color: var(--ym-btn); color: var(--ym-btn-text); }
.ym .ym-btn--solid:hover { background: var(--ym-accent); border-color: var(--ym-accent); color: #121211; }
.ym .ym-btn--light { background: var(--ym-text); border-color: var(--ym-text); color: var(--ym-ground); }
.ym .ym-btn--light:hover { background: var(--ym-accent); border-color: var(--ym-accent); color: #121211; }
.ym .ym-btn--line { background: transparent; color: var(--ym-text); }
.ym .ym-btn--line:hover { background: var(--ym-text); color: var(--ym-ground); }
.ym .ym-btn--dark { background: var(--ym-ground); color: var(--ym-text); border-color: var(--ym-ground); }
.ym .ym-btn--dark:hover { background: var(--ym-accent); border-color: var(--ym-accent); color: var(--ym-ground); }
.ym-textlink { font-weight: 500; font-size: 15px; text-underline-offset: 5px; }
.ym-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }

/* ---------- Side-scrolling rails ---------- */
.ym-rail {
  display: flex; gap: 28px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--ym-gutter);
  padding: 0 var(--ym-gutter) 20px 0;
  scrollbar-width: thin; scrollbar-color: var(--ym-rule) transparent;
}
.ym-rail::-webkit-scrollbar { height: 6px; }
.ym-rail::-webkit-scrollbar-thumb { background: var(--ym-rule); }
.ym-rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* ---------- Media boxes with hover / scroll previews ---------- */
.ym-media { position: relative; overflow: hidden; background: var(--ym-panel); }
.ym-media__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.ym-media__still {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s ease; z-index: 1;
}
.is-playing .ym-media__still { opacity: 0; }
.ym-media__badge {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-family: var(--ym-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ym-text); background: rgba(18, 18, 17, .72); padding: 5px 8px;
  opacity: 0; transition: opacity .3s;
}
.is-playing .ym-media__badge { opacity: 1; }
.ym-media__empty {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
  font-family: var(--ym-mono); font-size: 12px; color: var(--ym-muted);
}

/* ---------- Opening ---------- */
.ym-hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.ym-hero__media { position: absolute; inset: 0; background: var(--ym-panel); }
.ym-hero__media img, .ym-hero__media .ym-media__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ym-hero__shade { position: absolute; inset: 0; background: rgba(18, 18, 17, var(--ym-shade, .45)); }
.ym-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 180px; padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 28px; }
.ym-hero h1 { font-size: clamp(52px, 8.4vw, 128px); line-height: .96; max-width: 1000px; }

/* ---------- Quote rail ---------- */
.ym-quotes { padding: 104px 0 88px; }
.ym-quote { width: min(78vw, 380px); border-top: 1px solid var(--ym-rule); padding-top: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 18px; }
.ym-quote__text { font-family: var(--ym-display); font-size: 32px; line-height: 1.2; color: var(--ym-text); }
.ym .ym-quote:hover .ym-quote__text { color: var(--ym-accent); }

/* ---------- Practice of the week ---------- */
.ym-week { padding: 96px 0; }
.ym-week__grid { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.ym-week__video { flex: 999 1 560px; min-width: 0; }
.ym-week__video .video, .ym-week__video .ym-media { aspect-ratio: 16 / 9; width: 100%; }
.ym-week__copy { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.ym-week__copy h2 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.02; }

/* ---------- Many ways in ---------- */
.ym-ways { padding: 96px 0; }
.ym-way { width: min(72vw, 300px); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.ym-way .ym-media { height: 360px; }
.ym-way__line { font-family: var(--ym-display); font-size: 25px; line-height: 1.2; color: var(--ym-text); }
.ym .ym-way:hover .ym-way__line { color: var(--ym-text); }

/* ---------- Workshops ---------- */
.ym-workshops { padding: 96px 0 104px; }
.ym-shop { width: min(82vw, 460px); text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.ym-shop .ym-media { height: 270px; outline: 1px solid transparent; transition: outline-color .3s; }
.ym-shop.is-playing .ym-media { outline-color: var(--ym-accent); }
.ym-shop__title { font-family: var(--ym-display); font-size: 29px; line-height: 1.15; color: var(--ym-text); }
.ym-shop__price { font-size: 14px; color: var(--ym-muted); }
.ym-shop__date { font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-accent); }

/* ---------- Credits ---------- */
.ym-credits { padding: 112px 0; text-align: center; }
.ym-credits__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ym-credits__line { font-family: var(--ym-display); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.ym-credits__quote { margin-top: 40px; max-width: 780px; font-family: var(--ym-display); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.4; color: var(--ym-text); }
.ym-credits__who { font-family: var(--ym-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ym-muted); }

/* ---------- Workshop card: play button + text link ---------- */
.ym-shop__media { position: relative; }
.ym-shop .ym-media__badge { top: 12px; bottom: auto; }
.ym-plays--pos-top-left .ym-shop .ym-media__badge { top: auto; bottom: 12px; }
.ym-shop__media > a { display: block; }

/* Play button — style, look, position, size and visibility are set in the
   Workshops section settings and arrive here as classes. */
.ym-play {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ym-mono); letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  border: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, opacity .25s;
}
.ym-play__icon { flex: 0 0 auto; }
.ym-play:focus-visible { outline: 2px solid var(--ym-text); outline-offset: 3px; }

/* Look */
.ym-play--glass {
  color: var(--ym-text); background: rgba(18, 18, 17, .38); border-color: rgba(236, 230, 218, .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
}
.ym-play--outline {
  color: var(--ym-text); background: transparent; border: 1.5px solid var(--ym-text);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .45));
}
.ym-play--solid { color: var(--ym-ground); background: var(--ym-text); }
.ym-play:hover, .ym-play:focus-visible { color: var(--ym-ground); background: var(--ym-accent); border-color: var(--ym-accent); filter: none; }

/* Size: text versions */
.ym-play--small  { font-size: 11px; padding: 0 12px; min-height: 44px; }
.ym-play--medium { font-size: 12px; padding: 0 16px; min-height: 46px; }
.ym-play--large  { font-size: 14px; padding: 0 22px; min-height: 56px; }
.ym-play--small .ym-play__icon  { width: 12px; height: 12px; }
.ym-play--medium .ym-play__icon { width: 14px; height: 14px; }
.ym-play--large .ym-play__icon  { width: 18px; height: 18px; }

/* Shape: round, icon only */
.ym-play--icon { border-radius: 50%; padding: 0; }
.ym-play--icon.ym-play--small  { width: 44px; height: 44px; }
.ym-play--icon.ym-play--medium { width: 56px; height: 56px; }
.ym-play--icon.ym-play--large  { width: 76px; height: 76px; }
.ym-play--icon.ym-play--small .ym-play__icon  { width: 16px; height: 16px; }
.ym-play--icon.ym-play--medium .ym-play__icon { width: 20px; height: 20px; }
.ym-play--icon.ym-play--large .ym-play__icon  { width: 28px; height: 28px; }
.ym-play--icon .ym-play__icon { margin-left: 3px; } /* optical centring of the triangle */

/* Position */
.ym-play--pos-top-right    { top: 12px; right: 12px; }
.ym-play--pos-top-left     { top: 12px; left: 12px; }
.ym-play--pos-bottom-right { bottom: 12px; right: 12px; }
.ym-play--pos-bottom-left  { bottom: 12px; left: 12px; }
.ym-play--pos-center       { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Practice of the week: inline player with the same button */
.ym-week__player { aspect-ratio: 16 / 9; width: 100%; }
.ym-week__player .ym-play { z-index: 4; }
.ym-week__player.is-started .ym-play,
.ym-week__player.is-started .ym-media__still { opacity: 0; pointer-events: none; }

/* Visibility */
.ym-play--show-hover { opacity: 0; }
.ym-shop:hover .ym-play--show-hover,
.ym-shop:focus-within .ym-play--show-hover { opacity: 1; }
@media (hover: none) { .ym-play--show-hover { opacity: 1; } }
.ym-shop__text { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.ym-shop__cta { font-size: 15px; font-weight: 500; color: var(--ym-text); text-decoration: underline; text-underline-offset: 5px; }
.ym .ym-shop__text:hover .ym-shop__title, .ym .ym-shop__text:hover .ym-shop__cta { color: var(--ym-accent); }

/* ---------- Video lightbox (opened by a play button) ---------- */
.ym-modal {
  position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 64px); background: rgba(10, 10, 9, .92);
}
.ym-modal.is-open { display: flex; }
.ym-modal__box { width: min(1200px, 100%); display: flex; flex-direction: column; gap: 14px; }
.ym-modal__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #ECE6DA; }
.ym-modal__title { font-family: var(--ym-display); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.ym-modal__close {
  min-width: 44px; min-height: 44px; padding: 8px 14px; background: transparent; color: #ECE6DA;
  border: 1px solid #ECE6DA; font-family: var(--ym-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.ym-modal__close:hover { background: #ECE6DA; color: #121211; }
.ym-modal__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.ym-modal__frame .wistia_embed { position: absolute; inset: 0; width: 100%; height: 100%; }
body.ym-modal-open { overflow: hidden; }

/* ---------- Writing + sign-up ---------- */
.ym-writing { padding: 96px 0; }
.ym-essay { width: min(78vw, 400px); text-decoration: none; display: flex; flex-direction: column; gap: 16px; }
.ym-essay .ym-media { height: 240px; }
.ym-essay__title { font-family: var(--ym-display); font-size: 27px; line-height: 1.2; color: var(--ym-text); }
.ym .ym-essay:hover .ym-essay__title { color: var(--ym-accent); }
.ym-signup {
  margin: 44px var(--ym-gutter) 0 0; padding-top: 36px; border-top: 1px solid var(--ym-rule);
  display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between;
}
.ym-signup__copy { flex: 1 1 360px; display: flex; flex-direction: column; gap: 8px; }
.ym-signup__copy h3 { font-size: 30px; line-height: 1.2; }
.ym-signup__form { flex: 1 1 440px; }
.ym-signup__form form > div { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ym-signup__form .form-group { flex: 1 1 220px; margin: 0; }
.ym-signup__form label { font-family: var(--ym-mono); font-size: 12px; color: var(--ym-muted); }
.ym-signup__form .form-control {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ym-text); border-radius: 0;
  color: var(--ym-text); font-family: var(--ym-body); font-size: 17px; padding: 12px 0; box-shadow: none;
}
.ym-signup__form .form-control::placeholder { color: var(--ym-muted); }
.ym-signup__form .form-control:focus { outline: none; border-bottom-color: var(--ym-accent); }
.ym-signup__form button { cursor: pointer; }

/* ---------- Practice Library ---------- */
.ym-library { padding: 0 0 112px; }
.ym-library__panel {
  background: var(--ym-text); color: var(--ym-ground); padding: clamp(32px, 5vw, 72px);
  display: flex; flex-wrap: wrap; gap: 40px 48px; justify-content: space-between; align-items: flex-end;
}
.ym-library__panel h2 { color: var(--ym-ground); font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.ym-library__copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 18px; }
.ym-library__copy p { font-size: 18px; max-width: 540px; }
.ym-library__copy .ym-label { color: var(--ym-ground); }
.ym-library__buy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ym-library__price { font-family: var(--ym-display); font-size: 56px; line-height: 1; }
.ym-library__price small { font-family: var(--ym-body); font-size: 18px; }

/* ---------- Private work ---------- */
.ym-private { padding: 140px 0 150px; text-align: center; border-top: 1px solid var(--ym-rule); }
.ym-private__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.ym-private h2 { font-size: clamp(56px, 8.4vw, 120px); line-height: .95; }
.ym-private p { max-width: 540px; color: var(--ym-soft); font-size: 19px; }

/* ---------- Editor helpers ---------- */
.ym-editor-hint { font-family: var(--ym-mono); font-size: 12px; color: var(--ym-muted); padding: 16px; border: 1px dashed var(--ym-rule); }

@media (max-width: 767px) {
  .ym-quotes, .ym-week, .ym-ways, .ym-workshops, .ym-writing { padding-top: 72px; padding-bottom: 72px; }
  .ym-credits { padding: 80px 0; }
  .ym-private { padding: 96px 0 104px; }
  .ym-way .ym-media { height: 300px; }
  .ym-shop .ym-media { height: 220px; }
  .ym-hero__inner { padding-top: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  .ym-media__still, .ym-media__badge, .ym-btn { transition: none; }
}

/* ============================================================
   PAGE SYSTEM — reusable sections for every page
   ============================================================ */

/* ---------- Background choice (every section has a "Background" setting) ---------- */
.ym.ym--bg-dark { --ym-ground: #121211; background: #121211; }
.ym.ym--bg-deep { background: var(--ym-ground-2); }
.ym.ym--bg-forest {
  --ym-ground: #1E2A1C; --ym-ground-2: #1E2A1C; --ym-panel: #2A3927; --ym-rule: #3C4D38;
  --ym-btn: #ECE6DA; --ym-btn-text: #1E2A1C;
  background: #1E2A1C;
}
.ym.ym--bg-light {
  --ym-ground: #ECE6DA; --ym-ground-2: #E3DCCE; --ym-panel: #D8D0C0; --ym-rule: #C2B9A8;
  --ym-text: #151413; --ym-soft: #3A3833; --ym-muted: #5C584F;
  --ym-accent: var(--ym-accent-dark);
  background: #ECE6DA; color: #151413;
}
.ym--bg-light .ym-media__empty { color: var(--ym-muted); }

/* ---------- Rich text (anything typed in a rich text box) ---------- */
.ym-rich { color: var(--ym-soft); font-size: 18px; line-height: 1.7; }
.ym .ym-rich > * + * { margin-top: 1.1em; }
.ym .ym-rich > * + blockquote, .ym .ym-rich > blockquote + * { margin-top: 1.4em; }
.ym-rich p, .ym-rich ul, .ym-rich ol { margin: 0; }
.ym-rich h2, .ym-rich h3, .ym-rich h4 { font-family: var(--ym-display); font-weight: 400; color: var(--ym-text); line-height: 1.15; margin-top: 1.6em; }
.ym-rich h2 { font-size: clamp(30px, 3.4vw, 42px); }
.ym-rich h3 { font-size: clamp(24px, 2.6vw, 32px); }
.ym-rich strong { color: var(--ym-text); font-weight: 600; }
.ym-rich a { color: var(--ym-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ym-accent); }
.ym-rich blockquote { border-left: 2px solid var(--ym-accent); padding-left: 24px; font-family: var(--ym-display); font-size: 1.35em; line-height: 1.35; color: var(--ym-text); }
.ym-rich ul, .ym-rich ol { padding-left: 1.2em; }
.ym-rich li + li { margin-top: .4em; }
.ym-rich img { max-width: 100%; height: auto; }
.ym-rich--large { font-size: clamp(20px, 2vw, 24px); line-height: 1.55; }

/* ---------- Page opening ---------- */
.ym-ph { position: relative; display: flex; align-items: flex-end; overflow: hidden; }
.ym-ph--short  { min-height: 420px; }
.ym-ph--medium { min-height: 620px; }
.ym-ph--tall   { min-height: min(86vh, 860px); }
.ym-ph--full   { min-height: 100vh; }
.ym-ph__inner { position: relative; z-index: 2; width: 100%; padding-top: 170px; padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-direction: column; gap: 24px; }
.ym-ph--center .ym-ph__inner { align-items: center; text-align: center; }
.ym-ph--center .ym-lede { margin: 0 auto; }
.ym-ph h1 { font-size: clamp(56px, 9vw, 136px); line-height: .94; max-width: 1100px; }
.ym-ph__sub { font-family: var(--ym-display); font-size: clamp(24px, 2.8vw, 36px); line-height: 1.2; color: var(--ym-text); max-width: 820px; }

/* ---------- Text ---------- */
.ym-txt { padding: clamp(72px, 9vw, 120px) 0; }
.ym-txt__inner { display: flex; flex-direction: column; gap: 22px; }
.ym-txt--narrow .ym-txt__inner { max-width: 760px; }
.ym-txt--wide .ym-txt__inner { max-width: 1080px; }
.ym-txt--center .ym-txt__inner { margin: 0 auto; align-items: center; text-align: center; }
.ym-txt--center .ym-rich blockquote { border-left: 0; padding-left: 0; }

/* ---------- Cards / reasons / steps / offers / products ---------- */
.ym-cards { padding: clamp(72px, 9vw, 120px) 0; }
.ym-cards__head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; margin-bottom: 56px; }
.ym-cards__grid { display: grid; gap: 48px 40px; grid-template-columns: repeat(var(--ym-cols, 3), minmax(0, 1fr)); }
.ym-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ym-text); }
.ym-card__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--ym-panel); }
.ym-card__num { font-family: var(--ym-display); font-size: clamp(56px, 6vw, 84px); line-height: .9; color: var(--ym-accent); }
.ym-card h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.12; }
.ym-card__text { color: var(--ym-soft); font-size: 17px; line-height: 1.65; }
.ym-card__detail { font-family: var(--ym-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-accent); }
.ym-card__price { font-family: var(--ym-display); font-size: 40px; line-height: 1; color: var(--ym-text); }
.ym-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ym-cards--ruled .ym-card { border-top: 1px solid var(--ym-rule); padding-top: 28px; }
.ym-cards--numbered .ym-card { border-top: 1px solid var(--ym-rule); padding-top: 24px; }
.ym-cards--panel .ym-card { background: var(--ym-panel); padding: clamp(28px, 3vw, 44px); }
.ym-cards--panel .ym-card--featured { background: var(--ym-text); color: var(--ym-ground); }
.ym-cards--panel .ym-card--featured h3,
.ym-cards--panel .ym-card--featured .ym-card__price { color: var(--ym-ground); }
.ym-cards--panel .ym-card--featured .ym-card__text { color: var(--ym-ground); opacity: .82; }
.ym-cards--panel .ym-card--featured .ym-card__detail { color: var(--ym-accent-dark); }
.ym-cards--panel .ym-card--featured .ym-textlink { color: var(--ym-ground); }
.ym-cards--list .ym-cards__grid { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 1080px; }
.ym-cards--list .ym-card { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr); gap: 12px 48px; padding: 40px 0; border-top: 1px solid var(--ym-rule); }
.ym-cards--list .ym-card__num { font-size: 64px; }
.ym-cards--list .ym-card__body { display: flex; flex-direction: column; gap: 14px; }
.ym-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; }

/* ---------- Image + text ---------- */
.ym-split { padding: clamp(72px, 9vw, 120px) 0; }
.ym-split__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ym-split--right .ym-split__media { order: 2; }
.ym-split__media .ym-media { aspect-ratio: var(--ym-ratio, 4 / 5); }
.ym-split__copy { display: flex; flex-direction: column; gap: 22px; }
.ym-split__copy h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }

/* ---------- Workshop rows (landing page) ---------- */
.ym-rows { padding: clamp(72px, 9vw, 112px) 0; }
.ym-rows__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.ym-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: 56px 0; border-top: 1px solid var(--ym-rule); }
.ym-rows--alternate .ym-row:nth-child(even) .ym-row__media { order: 2; }
.ym-row__media { position: relative; }
.ym-row__media .ym-media, .ym-shop.ym-row .ym-media { aspect-ratio: 16 / 9; height: auto; width: 100%; }
.ym-row__copy { display: flex; flex-direction: column; gap: 16px; }
.ym-row__copy h3 { font-size: clamp(34px, 4vw, 54px); line-height: 1.02; }
.ym-row.is-playing .ym-media { outline: 1px solid var(--ym-accent); }
.ym-row__past { opacity: .5; }

/* ---------- Form ---------- */
.ym-formsec { padding: clamp(72px, 9vw, 120px) 0; }
.ym-formsec__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.ym-formsec--center .ym-formsec__grid { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }
.ym-formsec__copy { display: flex; flex-direction: column; gap: 20px; }
.ym-formsec__copy h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.ym-formsec__panel { background: var(--ym-panel); padding: clamp(28px, 4vw, 56px); }
.ym-form form > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; align-items: end; }
.ym-form--one form > div { grid-template-columns: minmax(0, 1fr); }
.ym-form .form-group { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ym-form .form-group:has(textarea) { grid-column: 1 / -1; }
.ym-form label { font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-muted); line-height: 1.4; font-weight: 400; }
.ym-form .form-control, .ym-form input[type="text"], .ym-form input[type="email"], .ym-form input[type="tel"], .ym-form select, .ym-form textarea {
  width: 100%; background: var(--ym-ground); color: var(--ym-text); border: 1px solid var(--ym-rule); border-radius: 0;
  font-family: var(--ym-body); font-size: 17px; padding: 15px 16px; min-height: 54px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.ym-form select {
  padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A8A296' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.ym-form textarea { min-height: 140px; resize: vertical; }
.ym-form .form-control::placeholder { color: var(--ym-muted); }
.ym-form .form-control:focus, .ym-form select:focus, .ym-form textarea:focus { outline: none; border-color: var(--ym-accent); }
.ym-form button[type="submit"] { grid-column: 1 / -1; justify-self: start; cursor: pointer; }
.ym-form__note { margin-top: 18px; }

/* ---------- Testimonials ---------- */
.ym-tst { padding: clamp(72px, 9vw, 120px) 0; }
.ym-tst__grid { display: grid; grid-template-columns: repeat(var(--ym-cols, 2), minmax(0, 1fr)); gap: 56px; }
.ym-tst .ym-rail { gap: 56px; }
.ym-tst__item { display: flex; flex-direction: column; gap: 20px; margin: 0; }
.ym-tst .ym-rail .ym-tst__item { width: min(84vw, 520px); }
.ym-tst__quote { font-family: var(--ym-display); font-size: clamp(22px, 2.3vw, 30px); line-height: 1.38; color: var(--ym-text); }
.ym-tst__who { font-family: var(--ym-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ym-muted); }
.ym-tst__who b { color: var(--ym-accent); font-weight: 400; }

/* ---------- Closing call to action ---------- */
.ym-cta { padding: clamp(96px, 12vw, 150px) 0; }
.ym-cta__inner { display: flex; flex-direction: column; gap: 26px; }
.ym-cta--center .ym-cta__inner { align-items: center; text-align: center; }
.ym-cta h2 { font-size: clamp(52px, 8vw, 116px); line-height: .95; max-width: 1100px; }
.ym-cta p { max-width: 560px; color: var(--ym-soft); font-size: 19px; }

/* ---------- Gallery strip ---------- */
.ym-gal { padding: clamp(56px, 7vw, 96px) 0; }
.ym-gal .ym-rail { gap: 16px; }
.ym-gal__item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ym-gal__item img { height: var(--ym-gal-h, 420px); width: auto; max-width: none; object-fit: cover; }
.ym-gal__item figcaption { font-family: var(--ym-mono); font-size: 12px; color: var(--ym-muted); }

/* ---------- Blog grid ---------- */
.ym-blog { padding: clamp(56px, 7vw, 96px) 0 clamp(80px, 9vw, 120px); }
.ym-blog__filter { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 40px; }
.ym-blog__grid { display: grid; grid-template-columns: repeat(var(--ym-cols, 3), minmax(0, 1fr)); gap: 64px 40px; }
.ym-post-card { display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ym-text); }
.ym-post-card .ym-media { aspect-ratio: 3 / 2; }
.ym-post-card__title { font-family: var(--ym-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; color: var(--ym-text); }
.ym-post-card__excerpt { color: var(--ym-soft); font-size: 16px; line-height: 1.6; }
.ym-post-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-accent); }
.ym .ym-post-card:hover .ym-post-card__title { color: var(--ym-accent); }
.ym-blog--feature .ym-post-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; align-items: center; }
.ym-blog--feature .ym-post-card:first-child .ym-post-card__title { font-size: clamp(34px, 4vw, 56px); line-height: 1.04; }
.ym-blog--feature .ym-post-card:first-child .ym-post-card__body { display: flex; flex-direction: column; gap: 18px; }
.ym-post-card__body { display: flex; flex-direction: column; gap: 12px; }
.ym-tag { font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border: 1px solid var(--ym-rule); color: var(--ym-text); text-decoration: none; }
.ym a.ym-tag:hover { border-color: var(--ym-accent); color: var(--ym-accent); }
.ym-pag { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 72px; font-family: var(--ym-mono); font-size: 13px; }
.ym-pag a, .ym-pag span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--ym-rule); color: var(--ym-text); text-decoration: none; }
.ym-pag .is-current { background: var(--ym-text); color: var(--ym-ground); border-color: var(--ym-text); }
.ym-pag .is-disabled { opacity: .35; }

/* ---------- Blog post ---------- */
.ym-post { padding: 170px 0 clamp(80px, 9vw, 120px); }
.ym-post__head { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; text-align: center; align-items: center; }
.ym-post__head h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; }
.ym-post__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-muted); }
.ym-post__meta a { color: var(--ym-accent); text-decoration: none; }
.ym-post__media { max-width: 1200px; margin: 56px auto 0; }
.ym-post__media img { width: 100%; height: auto; }
.ym-post__body { max-width: 720px; margin: 64px auto 0; }
.ym-post__body.ym-rich { font-size: 19px; line-height: 1.8; }
.ym-post__back { display: inline-block; font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ym-muted); text-decoration: none; }
.ym-post__after { max-width: 720px; margin: 80px auto 0; padding-top: 48px; border-top: 1px solid var(--ym-rule); display: flex; flex-direction: column; gap: 18px; }
.ym-post__after h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }

/* ---------- Header links (optional link at the top of a rail section) ---------- */
.ym-headlink { font-family: var(--ym-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

@media (max-width: 900px) {
  .ym-cards__grid, .ym-blog__grid, .ym-tst__grid { grid-template-columns: repeat(min(var(--ym-cols, 3), 2), minmax(0, 1fr)); }
  .ym-split__grid, .ym-row, .ym-formsec__grid, .ym-blog--feature .ym-post-card:first-child { grid-template-columns: minmax(0, 1fr); }
  .ym-split--right .ym-split__media, .ym-rows--alternate .ym-row:nth-child(even) .ym-row__media { order: 0; }
}
@media (max-width: 640px) {
  .ym-cards__grid, .ym-blog__grid, .ym-tst__grid { grid-template-columns: minmax(0, 1fr); }
  .ym-cards--list .ym-card { grid-template-columns: minmax(0, 1fr); }
  .ym-form form > div { grid-template-columns: minmax(0, 1fr); }
  .ym-gal__item img { height: min(var(--ym-gal-h, 420px), 320px); }
  .ym-ph__inner { padding-top: 140px; }
  .ym-post { padding-top: 130px; }
}


/* ===== YAMA update (Nov 7): rail alignment, dropdowns, testimonial rail ===== */
.ym-rail { scroll-padding-left: 0; }
.ym-form .form-control, .ym-form input[type="text"], .ym-form input[type="email"], .ym-form input[type="tel"], .ym-form textarea { background-image: none; }
/* Dropdowns: a rose chevron on the right, muted text until something is picked */
.ym-form select, .ym-form select.form-control {
  padding-right: 48px; cursor: pointer; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background-color: var(--ym-ground);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23E0857A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 14px 9px;
}
.ym-form select.ym-empty { color: var(--ym-muted); }
.ym-form select option { color: #151413; background: #ECE6DA; }
.ym-form select:hover { border-color: var(--ym-muted); }
/* The last question in a form (the open "anything else?" one) gets the full width */
.ym-form form > div > .form-group:last-of-type { grid-column: 1 / -1; }

/* ---------- Testimonials: sizes, card styles, rail widths, arrows ---------- */
.ym-tst--small .ym-tst__quote { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.45; }
.ym-tst--large .ym-tst__quote { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.3; }
.ym-tst--ruled .ym-tst__item { border-top: 1px solid var(--ym-rule); padding-top: 28px; }
.ym-tst--panel .ym-tst__item { background: var(--ym-panel); padding: clamp(28px, 3vw, 44px); justify-content: space-between; }
.ym-tst--w-narrow .ym-rail .ym-tst__item { width: min(80vw, 380px); }
.ym-tst--w-medium .ym-rail .ym-tst__item { width: min(84vw, 520px); }
.ym-tst--w-wide .ym-rail .ym-tst__item { width: min(88vw, 720px); }
.ym-tst .ym-rail { align-items: stretch; }
.ym-railnav { display: flex; gap: 10px; align-items: center; }
.ym-railnav__btn {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ym-text); border: 1px solid var(--ym-rule); border-radius: 50%;
  font-family: var(--ym-body); font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s, opacity .2s;
}
.ym-railnav__btn:hover, .ym-railnav__btn:focus-visible { border-color: var(--ym-accent); color: var(--ym-accent); }
.ym-railnav__btn:focus-visible { outline: 2px solid var(--ym-text); outline-offset: 2px; }
.ym-railnav__btn[disabled] { opacity: .3; cursor: default; }

/* YAMA: jump links land below the header */
.ym[id]{scroll-margin-top:120px}
