/* ==========================================================================
   meditation.wisdomhealingcenter.com — Twin Hearts Meditation

   Palette is taken from the "THM - Zoom Poster" artwork: indigo night, violet,
   sunset magenta, gold, and a warm sand ground. Every pairing below was measured
   with a WCAG contrast script, not eyeballed. Ratios are recorded beside each
   token so a later edit cannot quietly break one.

   The one poster colour that did NOT survive measurement is the raw pink
   #E0247B: white on it is 4.46:1, just under AA. It is therefore used ONLY as
   decoration (gradients, the heart mark) and never as a ground for text.
   Buttons use --rose-ink #B81361 instead, which measures 6.36:1.
   ========================================================================== */

/* Self-hosted display serif. These are Google's own latin-subset variable files,
   so one file covers 600 and 700 per style. font-display:swap is safe here only
   because default.hbs PRELOADS both files -- same-origin and requested before
   first paint, so in practice there is nothing to swap. */
@font-face{
  font-family:"Cormorant Garamond";
  font-style:normal;
  font-weight:600 700;
  font-display:swap;
  src:url("../fonts/cormorant-roman.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Cormorant Garamond";
  font-style:italic;
  font-weight:600 700;
  font-display:swap;
  src:url("../fonts/cormorant-italic.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root{
  /* night / ink */
  --night:      #131046;   /* dark band ground.  white on it = 17.64:1        */
  --ink:        #1E1A4D;   /* headings.          on sand     = 15.05:1        */
  --ink-soft:   #4A466E;   /* body.              on sand     =  8.24:1        */
  --on-dark:    #DED9F5;   /* body on night      = 12.90:1                    */
  --on-dark-2:  #C4BDEA;   /* muted on night     =  9.93:1                    */

  /* accents */
  --violet:     #6B2FA0;   /* on sand = 7.76:1                                */
  --violet-dp:  #4A1D73;   /* white on it = 12.25:1                           */
  --rose:       #E0247B;   /* DECORATIVE ONLY — fails AA behind white text    */
  --rose-ink:   #B81361;   /* white on it = 6.36:1  — the Join button         */
  --gold:       #D9A22B;   /* on night = 7.69:1                               */
  --gold-ink:   #8A6410;   /* on sand  = 5.04:1                               */
  --red-ink:    #C62828;   /* header tagline.    on header ground = 5.28:1
                              #E53935 was the brighter red but measures 3.97:1 */
  /* Light counterparts for the same lockup on the dark join band, measured
     against #1B1560, the LIGHTEST stop of that gradient (the worst case). */
  --violet-lt:  #D3C4F0;   /* footer brand title = 9.77:1                     */
  --red-lt:     #FF9E95;   /* footer brand tagline = 8.00:1                   */
  --blue:       #2E7DD1;
  --teal-dp:    #0E7C8F;   /* white on it = 4.89:1                            */
  --green-dp:   #2E7D52;

  /* grounds */
  --sand:       #FDF7EE;
  --sand-2:     #F7EDDF;
  --white:      #FFFFFF;
  --line:       #EDE3D6;
  --line-dark:  rgba(222,217,245,.20);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --r:    18px;
  --shadow-sm: 0 2px 10px rgba(30,26,77,.06);
  --shadow-md: 0 14px 40px rgba(30,26,77,.10);
  --shadow-lg: 0 30px 80px rgba(19,16,70,.28);
}

*,*::before,*::after{ box-sizing:border-box; }

/* The hidden attribute has to beat author display rules. The video facade and
   control bar are display:flex and every svg below is display:block, all of which
   outrank the UA stylesheet's [hidden]{display:none} -- so setting .hidden in JS
   did nothing at all until this rule existed: the facade stayed on screen over a
   playing video, and the play and pause icons both showed at once. */
[hidden]{ display:none !important; }

/* `clip` not `hidden` — overflow-x:hidden on html/body kills position:sticky. */
html{
  -webkit-text-size-adjust:100%;
  overflow-x:clip;
  scroll-behavior:smooth;
}

body{
  margin:0;
  overflow-x:clip;
  background:var(--sand);
  color:var(--ink-soft);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
}

img{ max-width:100%; height:auto; }
svg{ display:block; }
a{ color:var(--rose-ink); }

.wrap{
  width:min(100% - 2.25rem, var(--wrap));
  margin-inline:auto;
}

.skip-link{
  position:absolute; left:-9999px; top:0;
  background:var(--white); color:var(--ink);
  padding:12px 18px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

:focus-visible{
  outline:3px solid var(--rose-ink);
  outline-offset:3px;
  border-radius:4px;
}

/* --------------------------------------------------------------- header --- */

.site-head{
  position:sticky; top:0; z-index:60;
  background:rgba(253,247,238,.88);
  -webkit-backdrop-filter:saturate(1.4) blur(12px);
  backdrop-filter:saturate(1.4) blur(12px);
  border-bottom:1px solid var(--line);
}

.site-head-inner{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:70px;
  flex-wrap:wrap;
}

.site-brand{ min-width:0; }
.site-logo-link{ display:inline-flex; align-items:center; gap:12px; }
.site-mark{
  flex:0 0 auto;
  width:62px; height:62px;
  border-radius:50%;
  display:block;
}
.site-brand-text{
  display:flex; flex-direction:column;
  min-width:0;
  line-height:1.16;
}
/* Title uses --serif, the same face as the "Join the next meditation" heading,
   and carries the violet the tagline used to have. 7.76:1 on the header. */
.site-title-text{
  font-family:var(--serif);
  font-size:clamp(17px, 2.05vw, 22px);
  font-weight:700;
  color:var(--violet);
  letter-spacing:.01em;
}
/* Secondary by construction, not by eye: the tagline's minimum, preferred and
   maximum are each below the title's, so it cannot outgrow the title at any
   viewport width. Sentence case, italic, red at 5.28:1. */
.site-tagline{
  margin-top:1px;
  font-family:var(--serif);
  font-size:clamp(11.5px, 1.3vw, 14px);
  font-style:italic;
  font-weight:600;
  letter-spacing:.005em;
  color:var(--red-ink);
}
.site-brand a{ text-decoration:none; }

.site-nav{ margin-left:auto; }
.site-nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; flex-wrap:wrap; gap:2px;
}
.site-nav a{
  display:block;
  padding:10px 13px;
  color:var(--ink);
  text-decoration:none;
  font-size:15.5px;
  border-radius:8px;
}
.site-nav a:hover,
.site-nav a:focus-visible{ color:var(--violet); background:var(--sand-2); }

/* compact Join button that lives in the header on every scroll position */
.head-join{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 20px;
  border-radius:999px;
  background:var(--rose-ink);
  color:var(--white);
  font-size:15px; font-weight:700;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 6px 18px rgba(184,19,97,.28);
}
.head-join:hover,
.head-join:focus-visible{ background:#9C0E52; color:var(--white); }
.head-join svg{ width:18px; height:18px; }

.nav-toggle{
  display:none;
  background:none; border:0; cursor:pointer;
  padding:10px; width:44px; height:44px;
  margin-left:auto;
}
.nav-toggle-bar{
  display:block; width:22px; height:2px; margin:4px 0;
  background:var(--ink);
}

/* ------------------------------------------------------------------ hero --- */

/* Vertical rhythm here is deliberately tight. The video has to be reachable in
   the first screen on a laptop, so the title block is sized to leave room for it
   rather than to fill the viewport on its own. */
.thm-hero{
  position:relative;
  isolation:isolate;
  padding:clamp(22px, 3.4vw, 42px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 85% at 50% 0%,   #FFF6E4 0%, rgba(255,246,228,0) 62%),
    linear-gradient(180deg, #FDF7EE 0%, #FBEFE2 46%, #F7E6D6 100%);
  overflow:hidden;
}

/* soft sunrise wash behind the content */
.thm-hero__sky{
  position:absolute; inset:auto 0 0 0; height:62%;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(242,107,58,.16) 0%, rgba(242,107,58,0) 70%),
    radial-gradient(45% 80% at 18% 90%,   rgba(107,47,160,.12) 0%, rgba(107,47,160,0) 70%),
    radial-gradient(45% 80% at 84% 88%,   rgba(46,125,209,.12) 0%, rgba(46,125,209,0) 70%);
  z-index:-1;
  pointer-events:none;
}
.thm-hero__glow{
  position:absolute; top:-16%; left:50%; width:min(760px, 120%); aspect-ratio:1;
  transform:translateX(-50%);
  background:radial-gradient(circle, rgba(255,209,102,.30) 0%, rgba(255,209,102,0) 62%);
  z-index:-1;
  pointer-events:none;
}

.thm-hero__inner{ text-align:center; }

.thm-eyebrow{
  margin:0 0 clamp(20px, 3vw, 32px);
  font-size:clamp(13px, 2.4vw, 15px);
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--gold-ink);
}

.thm-title{
  margin:0 0 6px;
  font-family:var(--serif);
  color:var(--ink);
  line-height:1;
  font-weight:700;
}
.thm-title__main{
  display:block;
  font-size:clamp(36px, 9vw, 74px);
  letter-spacing:.055em;
  text-transform:uppercase;
}
/* "on", with a hairline rule either side, exactly as the poster sets it */
.thm-title__on{
  display:flex; align-items:center; gap:16px;
  margin:4px auto 0;
  width:min(100%, 380px);
  font-size:clamp(20px, 4vw, 28px);
  font-weight:600;
  color:var(--violet);
}
.thm-title__on::before,
.thm-title__on::after{
  content:""; flex:1 1 auto; height:1px;
  background:linear-gradient(90deg, rgba(217,162,43,0), rgba(217,162,43,.85), rgba(217,162,43,0));
}
.thm-title__script{
  display:block;
  font-size:clamp(40px, 10.5vw, 86px);
  font-weight:700;
  line-height:1.06;
  letter-spacing:.005em;
  background:linear-gradient(96deg, #2E7DD1 4%, #6B2FA0 42%, #E0247B 88%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  /* If background-clip:text is unsupported the gradient is ignored and this
     colour shows through, so the words are never invisible. */
  -webkit-text-fill-color:transparent;
  padding-bottom:.06em;
}
@supports not ((-webkit-background-clip:text) or (background-clip:text)){
  .thm-title__script{ color:var(--violet); -webkit-text-fill-color:currentColor; }
}

.thm-mark{
  width:clamp(88px, 17vw, 118px);
  margin:6px auto 10px;
}
.thm-mark svg{ width:100%; height:auto; overflow:visible; }
.thm-mark__burst{ transform-origin:45px 26px; animation:thm-breathe 5.5s ease-in-out infinite; }

@keyframes thm-breathe{
  0%,100%{ transform:scale(.86); opacity:.75; }
  50%    { transform:scale(1.1);  opacity:1;   }
}

.thm-tagline{
  margin:0 auto clamp(20px, 2.8vw, 28px);
  max-width:34ch;
  font-family:var(--serif);
  font-size:clamp(20px, 3.8vw, 27px);
  line-height:1.35;
  font-weight:600;
  color:var(--ink);
}
/* Upright, per the "no italic titles" rule -- the line stays distinct through
   colour rather than slant. */
.thm-tagline em{
  display:block;
  font-style:normal;
  color:var(--violet);
}

/* ----------------------------------------------------------------- video --- */

.thm-video{
  width:min(100%, 940px);
  margin:0 auto clamp(26px, 4vw, 38px);
}

.thm-video__frame{
  position:relative;
  aspect-ratio:16 / 9;
  border-radius:clamp(12px, 2.4vw, 22px);
  overflow:hidden;
  background:#0B0930;
  box-shadow:var(--shadow-lg);
  /* the ring reads as a soft aura rather than a hard border */
  outline:1px solid rgba(255,255,255,.30);
  outline-offset:-1px;
}
.thm-video__frame:fullscreen{ border-radius:0; aspect-ratio:auto; height:100%; width:100%; }

.thm-video__stage{ position:absolute; inset:0; }
.thm-video__stage iframe{
  position:absolute; inset:0;
  width:100%; height:100%;
  border:0;
  display:block;
}

/* Full-bleed transparent cover. It is the whole reason no YouTube chrome ever
   appears: the iframe receives neither hover nor click. */
.thm-video__shield{
  position:absolute; inset:0;
  width:100%; height:100%;
  background:transparent;
  border:0; padding:0; margin:0;
  cursor:pointer;
  z-index:3;
}
.thm-video__shield:focus-visible{ outline-offset:-6px; }

/* ---- facade (what is on screen before anything is fetched from YouTube) --- */

.thm-video__facade{
  position:absolute; inset:0;
  z-index:5;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  gap:clamp(12px, 2.2vw, 20px);
  width:100%;
  border:0;
  padding:clamp(18px, 4vw, 34px);
  cursor:pointer;
  text-align:center;
  font:inherit;
  color:var(--white);
  background:
    radial-gradient(90% 120% at 50% 8%,  rgba(224,36,123,.34) 0%, rgba(224,36,123,0) 60%),
    radial-gradient(80% 110% at 12% 96%, rgba(46,125,209,.40) 0%, rgba(46,125,209,0) 62%),
    radial-gradient(85% 120% at 92% 92%, rgba(242,107,58,.34) 0%, rgba(242,107,58,0) 60%),
    linear-gradient(158deg, #241C7A 0%, #13103F 58%, #0B0930 100%);
}
.thm-video__art{
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
}
.thm-video__orb{
  position:absolute; left:50%; top:44%;
  width:min(52%, 300px); aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,233,168,.34) 0%, rgba(255,233,168,0) 66%);
  animation:thm-breathe 7s ease-in-out infinite;
}
.thm-video__ray{
  position:absolute; inset:-40% -10%;
  background:conic-gradient(from 200deg at 50% 55%,
    rgba(255,255,255,0) 0deg, rgba(255,255,255,.07) 26deg, rgba(255,255,255,0) 52deg,
    rgba(255,255,255,0) 300deg, rgba(255,255,255,.06) 330deg, rgba(255,255,255,0) 360deg);
  pointer-events:none;
}

.thm-video__play{
  position:relative;
  display:grid; place-items:center;
  width:clamp(62px, 11vw, 88px);
  aspect-ratio:1;
  border-radius:50%;
  background:rgba(255,255,255,.97);
  color:var(--rose-ink);
  box-shadow:0 12px 34px rgba(0,0,0,.34);
  transition:transform .28s ease, box-shadow .28s ease;
}
.thm-video__play::after{
  content:"";
  position:absolute; inset:-10px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.55);
  animation:thm-ripple 2.8s ease-out infinite;
}
.thm-video__play svg{ width:46%; height:46%; margin-left:8%; }

@keyframes thm-ripple{
  0%  { transform:scale(.94); opacity:.85; }
  70% { transform:scale(1.3);  opacity:0;   }
  100%{ transform:scale(1.3);  opacity:0;   }
}

.thm-video__facade:hover .thm-video__play,
.thm-video__facade:focus-visible .thm-video__play{
  transform:scale(1.07);
  box-shadow:0 16px 44px rgba(0,0,0,.45);
}

.thm-video__label{ position:relative; display:block; }
.thm-video__kicker{
  display:block;
  font-size:clamp(11px, 2.2vw, 13px);
  letter-spacing:.18em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--gold);
  margin-bottom:6px;
}
.thm-video__heading{
  display:block;
  font-family:var(--serif);
  font-size:clamp(20px, 4.2vw, 34px);
  line-height:1.2;
  font-weight:700;
  color:var(--white);
  text-wrap:balance;
}

.thm-unmute{
  position:absolute; right:14px; top:14px;
  z-index:7;
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px;
  border:0; border-radius:999px;
  background:rgba(11,9,48,.84);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  color:var(--white);
  font-family:inherit; font-size:14px; font-weight:700;
  cursor:pointer;
}
.thm-unmute svg{ width:18px; height:18px; }
.thm-unmute:hover{ background:rgba(11,9,48,.96); }

/* ---- our own control bar, sitting above the shield ----------------------- */

.thm-video__bar{
  position:absolute; left:0; right:0; bottom:0;
  z-index:6;
  display:flex; align-items:center; gap:10px;
  padding:10px clamp(10px, 2vw, 16px);
  background:linear-gradient(180deg, rgba(11,9,48,0) 0%, rgba(11,9,48,.78) 42%, rgba(11,9,48,.94) 100%);
  opacity:0;
  transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease;
}
.thm-video__frame.is-playing:hover .thm-video__bar,
.thm-video__frame.is-playing:focus-within .thm-video__bar{ opacity:1; transform:none; }
/* Touch devices get no hover, so the bar stays visible there. */
@media (hover:none){
  .thm-video__frame.is-playing .thm-video__bar{ opacity:1; transform:none; }
}

.thm-vbtn{
  flex:0 0 auto;
  display:grid; place-items:center;
  width:40px; height:40px;
  padding:0;
  border:0; border-radius:10px;
  background:transparent;
  color:var(--white);
  cursor:pointer;
}
.thm-vbtn:hover{ background:rgba(255,255,255,.16); }
.thm-vbtn svg{ width:22px; height:22px; }

.thm-time{
  flex:0 0 auto;
  font-size:13px;
  font-variant-numeric:tabular-nums;
  color:var(--white);
  white-space:nowrap;
}

.thm-seek{
  flex:1 1 auto;
  min-width:40px;
  height:24px;
  margin:0;
  background:transparent;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
}
.thm-seek::-webkit-slider-runnable-track{
  height:4px; border-radius:999px; background:rgba(255,255,255,.32);
}
.thm-seek::-moz-range-track{
  height:4px; border-radius:999px; background:rgba(255,255,255,.32);
}
.thm-seek::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none;
  width:14px; height:14px; margin-top:-5px;
  border:0; border-radius:50%;
  background:var(--white);
  box-shadow:0 0 0 4px rgba(224,36,123,.55);
}
.thm-seek::-moz-range-thumb{
  width:14px; height:14px;
  border:0; border-radius:50%;
  background:var(--white);
  box-shadow:0 0 0 4px rgba(224,36,123,.55);
}

/* ------------------------------------------------------------------- CTA --- */

.thm-cta{ margin:0 0 16px; }
.thm-cta--tight{ margin:6px 0 14px; }

.thm-join{
  position:relative;
  display:inline-flex; align-items:center; justify-content:center;
  gap:12px;
  max-width:100%;
  padding:19px clamp(26px, 5vw, 46px);
  border-radius:999px;
  background:linear-gradient(100deg, #B81361 0%, #9C0E52 58%, #7E1E86 100%);
  color:var(--white);
  font-size:clamp(16.5px, 3.2vw, 20px);
  font-weight:700;
  letter-spacing:.012em;
  line-height:1.2;
  text-decoration:none;
  text-align:center;
  box-shadow:0 14px 34px rgba(184,19,97,.36);
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
/* halo, drawn outside the button so it cannot alter layout */
.thm-join::before{
  content:"";
  position:absolute; inset:-6px;
  border-radius:inherit;
  border:2px solid rgba(184,19,97,.34);
  animation:thm-ripple 3.2s ease-out infinite;
  pointer-events:none;
}
.thm-join:hover,
.thm-join:focus-visible{
  color:var(--white);
  transform:translateY(-2px);
  filter:saturate(1.08);
  box-shadow:0 20px 46px rgba(184,19,97,.46);
}
.thm-join__icon{
  display:grid; place-items:center;
  width:34px; height:34px;
  flex:0 0 auto;
  border-radius:10px;
  background:rgba(255,255,255,.18);
}
.thm-join__icon svg{ width:21px; height:21px; }
.thm-join--lg{ padding:22px clamp(28px, 6vw, 56px); font-size:clamp(17px, 3.4vw, 22px); }

.thm-when{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:8px 20px;
  margin:0;
  font-size:15.5px;
  font-weight:600;
  color:var(--ink);
}
.thm-when span{ display:inline-flex; align-items:center; }
.thm-when span + span::before{
  content:"";
  width:5px; height:5px; margin-right:20px;
  border-radius:50%;
  background:var(--gold);
}

/* ----------------------------------------------------------------- bands --- */

.thm-band{
  position:relative;
  padding:clamp(52px, 8vw, 92px) 0;
}
.thm-band--sand{ background:var(--sand); }
.thm-band--white{ background:var(--white); }
.thm-band--night{
  background:linear-gradient(165deg, #1B1560 0%, #131046 52%, #0C0A31 100%);
  color:var(--on-dark);
  isolation:isolate;
  overflow:hidden;
}
.thm-night__glow{
  position:absolute; inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(50% 60% at 12% 8%,  rgba(224,36,123,.24) 0%, rgba(224,36,123,0) 65%),
    radial-gradient(55% 70% at 88% 92%, rgba(46,125,209,.24) 0%, rgba(46,125,209,0) 65%);
}

.thm-narrow{ max-width:760px; }

.thm-h2{
  margin:0 0 18px;
  font-family:var(--serif);
  font-size:clamp(29px, 5.6vw, 46px);
  line-height:1.15;
  font-weight:700;
  color:var(--ink);
  text-align:center;
  text-wrap:balance;
}
.thm-h2--invert{ color:var(--white); }

.thm-lede{
  margin:0 auto 20px;
  max-width:60ch;
  font-size:clamp(17.5px, 2.4vw, 20px);
  line-height:1.65;
  color:var(--ink);
  text-align:center;
  text-wrap:pretty;
}
.thm-lede--invert{ color:var(--on-dark); }

.thm-body{
  margin:0 auto 18px;
  max-width:62ch;
  text-align:center;
  color:var(--ink-soft);
  text-wrap:pretty;
}

/* The explainer is the one band people actually read, so it is set larger than
   the rest of the page rather than at the shared band scale. Scoped to .thm-about
   so the Join band keeps its own tighter rhythm. */
.thm-about{ padding:clamp(60px, 9vw, 116px) 0; }
.thm-about .thm-narrow{ max-width:880px; }
/* Heading deliberately keeps the shared .thm-h2 size -- only the reading text
   below it is enlarged. */
.thm-about .thm-h2{ margin-bottom:26px; }
.thm-about .thm-lede{
  max-width:62ch;
  margin-bottom:26px;
  font-size:clamp(19px, 2.9vw, 24px);
  line-height:1.6;
}
.thm-about .thm-body{
  max-width:64ch;
  margin-bottom:22px;
  font-size:clamp(17.5px, 2.3vw, 20px);
  line-height:1.8;
}
.thm-about .thm-pill{
  margin-top:38px;
  padding:16px 30px;
  font-size:clamp(16px, 2.8vw, 19px);
}
.thm-about .thm-pill__icon svg{ width:30px; height:30px; }

.thm-pill{
  display:flex; align-items:center; justify-content:center;
  gap:12px;
  width:fit-content;
  max-width:100%;
  margin:30px auto 0;
  padding:14px 26px;
  border-radius:999px;
  background:linear-gradient(100deg, #4A1D73 0%, #6B2FA0 100%);
  color:var(--white);
  font-size:clamp(15.5px, 2.6vw, 17.5px);
  font-weight:600;
  text-align:left;
  box-shadow:0 12px 30px rgba(74,29,115,.24);
}
.thm-pill__icon{ flex:0 0 auto; }
.thm-pill__icon svg{ width:26px; height:26px; }

/* ---------------------------------------------------------------- cards --- */

.thm-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:clamp(16px, 2.4vw, 26px);
  margin:clamp(28px, 4vw, 44px) 0 0;
  padding:0;
  list-style:none;
}

.thm-card{
  padding:clamp(26px, 3.4vw, 34px) clamp(20px, 2.6vw, 26px);
  border-radius:var(--r);
  background:var(--sand);
  border:1px solid var(--line);
  text-align:center;
  transition:transform .3s ease, box-shadow .3s ease;
}
.thm-card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }

.thm-card__icon{
  display:grid; place-items:center;
  width:60px; height:60px;
  margin:0 auto 18px;
  border-radius:18px;
  color:var(--white);
}
.thm-card__icon svg{ width:32px; height:32px; }
.thm-card__icon--violet{ background:linear-gradient(140deg, #6B2FA0, #4A1D73); }
.thm-card__icon--rose  { background:linear-gradient(140deg, #E0247B, #B81361); }
.thm-card__icon--blue  { background:linear-gradient(140deg, #2E7DD1, #1B5DA8); }
.thm-card__icon--green { background:linear-gradient(140deg, #38A06A, #2E7D52); }

.thm-card__title{
  margin:0 0 8px;
  font-family:var(--serif);
  font-size:clamp(20px, 2.6vw, 24px);
  line-height:1.25;
  font-weight:700;
  color:var(--ink);
}
.thm-card__text{
  margin:0;
  font-size:16px;
  line-height:1.65;
  color:var(--ink-soft);
}

/* --------------------------------------------------------- join details --- */

.thm-join-inner{ text-align:center; }

/* All four on one row. Explicit counts, never auto-fit -- auto-fit resolved to
   three columns here and stranded the fourth card alone on a second row. */
.thm-details{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:14px;
  margin:clamp(26px, 4vw, 38px) 0 clamp(24px, 3.4vw, 34px);
}
.thm-detail{
  padding:20px 18px;
  border-radius:16px;
  background:rgba(255,255,255,.07);
  border:1px solid var(--line-dark);
  text-align:left;
}
.thm-detail dt{
  display:flex; align-items:center; gap:9px;
  margin:0 0 6px;
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--gold);
}
.thm-detail__icon{ flex:0 0 auto; color:var(--gold); }
.thm-detail__icon svg{ width:19px; height:19px; }
.thm-detail dd{
  margin:0;
  font-size:clamp(16px, 1.5vw, 18.5px);
  font-weight:700;
  line-height:1.35;
  color:var(--white);
}
.thm-detail__note{ font-size:14px; font-weight:600; color:var(--on-dark-2); }
.thm-mono{ font-family:var(--mono); letter-spacing:.02em; }

.thm-qr{
  display:flex; flex-direction:column; align-items:center;
  gap:10px;
  margin:clamp(22px, 3.4vw, 32px) 0 18px;
}
.thm-qr__card{
  display:block;
  padding:12px;
  border-radius:16px;
  background:var(--white);
  line-height:0;
  box-shadow:0 12px 30px rgba(0,0,0,.28);
}
.thm-qr__card img{
  display:block;
  width:clamp(140px, 26vw, 176px);
  height:auto;
}
.thm-qr__cap{
  margin:0;
  font-size:14.5px;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--gold);
}

.thm-help{
  margin:6px 0 0;
  font-size:15.5px;
  color:var(--on-dark-2);
}
.thm-help a{ color:var(--white); font-weight:700; text-decoration-thickness:1px; text-underline-offset:3px; }
.thm-wa-icon{
  display:inline-flex;
  vertical-align:-3px;
  color:#25D366;
}
.thm-wa-icon svg{ width:18px; height:18px; }

/* ------------------------------------------------- footer brand + address --- */

.thm-footbrand{
  display:flex; flex-direction:column; align-items:center;
  gap:16px;
  margin-top:clamp(30px, 4.5vw, 46px);
  padding-top:clamp(26px, 3.6vw, 36px);
  border-top:1px solid var(--line-dark);
}

.thm-footbrand__lockup{
  display:inline-flex; align-items:center; gap:12px;
  text-decoration:none;
}
.thm-footbrand__lockup img{
  flex:0 0 auto;
  width:56px; height:56px;
  border-radius:50%;
  display:block;
}
.thm-footbrand__text{
  display:flex; flex-direction:column;
  line-height:1.16;
  text-align:left;
}
/* Same size relationship as the header: the tagline's min, preferred and max are
   each below the title's, so it can never outgrow it. */
.thm-footbrand__title{
  font-family:var(--serif);
  font-size:clamp(17px, 2.05vw, 22px);
  font-weight:700;
  letter-spacing:.01em;
  color:var(--white);   /* 15.88:1 on the join band */
}
.thm-footbrand__tag{
  margin-top:1px;
  font-family:var(--serif);
  font-size:clamp(11.5px, 1.3vw, 14px);
  font-style:italic;
  font-weight:600;
  color:var(--red-lt);
}

/* <address> is italic by default in every browser; the tagline above it is the
   only italic in this block and should stay that way. */
.thm-addressblock{ font-style:normal; max-width:100%; }

.thm-address{
  display:inline-flex; align-items:flex-start; gap:10px;
  max-width:100%;
  color:var(--on-dark);
  font-size:15.5px;
  font-weight:600;
  line-height:1.55;
  text-decoration:none;
  text-align:left;
}
.thm-address:hover,
.thm-address:focus-visible{ color:var(--white); }
.thm-address:hover .thm-address__cta,
.thm-address:focus-visible .thm-address__cta{ color:var(--white); border-bottom-color:var(--white); }

.thm-address__pin{ flex:0 0 auto; margin-top:2px; color:var(--gold); }
.thm-address__pin svg{ width:19px; height:19px; }
.thm-address__text{
  display:block;
  border-bottom:1px solid rgba(222,217,245,.28);
  padding-bottom:3px;
}
.thm-address:hover .thm-address__text,
.thm-address:focus-visible .thm-address__text{ border-bottom-color:var(--white); }

/* ------------------------------------------------- posts / pages (future) -- */

.single{ background:var(--white); padding:clamp(44px, 6vw, 70px) 0; }
.single-inner{ max-width:740px; }
.single-title{
  margin:0 0 10px;
  font-family:var(--serif);
  font-size:clamp(28px, 5vw, 40px);
  line-height:1.2; font-weight:700; color:var(--ink);
}
.single-meta{ margin:0 0 26px; font-size:15px; color:var(--ink-soft); }
.single-feature{ margin:0 0 28px; border-radius:var(--r); }

.post-content{ color:var(--ink-soft); }
.post-content > * + *{ margin-top:1.1em; }
.post-content h2{ font-family:var(--serif); font-size:30px; color:var(--ink); line-height:1.25; }
.post-content h3{ font-family:var(--serif); font-size:24px; color:var(--ink); line-height:1.3; }
.post-content strong{ color:inherit; }
.post-content a{ color:var(--rose-ink); }
.post-content img{ border-radius:var(--r); }
.post-content blockquote{
  margin:0; padding:8px 0 8px 20px;
  border-left:4px solid var(--violet);
  color:var(--ink);
}
.kg-width-wide{ width:min(100vw - 2.25rem, 1040px); margin-inline:auto; }
.kg-width-full{ width:min(100vw - 2.25rem, 1120px); margin-inline:auto; }

.post-list{ padding:clamp(44px, 6vw, 70px) 0; }
.post-list-empty{ text-align:center; color:var(--ink-soft); }
.pagination{ display:flex; justify-content:center; gap:16px; padding:30px 0 0; }
.card{
  background:var(--sand); border:1px solid var(--line);
  border-radius:var(--r); padding:28px 24px;
}
.card-link{ display:block; text-decoration:none; }
.card-title{ margin:0 0 8px; font-family:var(--serif); font-size:22px; color:var(--ink); font-weight:700; }
.card-text{ margin:0; font-size:16px; color:var(--ink-soft); }
.card-more{ display:inline-block; margin-top:10px; color:var(--rose-ink); font-weight:700; font-size:15px; }
.grid-3{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(240px,1fr));
  gap:24px; margin:0; padding:0; list-style:none;
}

/* --------------------------------------------------------------- footer --- */

.site-foot{
  background:#0C0A31;
  border-top:1px solid rgba(222,217,245,.14);
  padding:38px 0 32px;
  color:var(--on-dark-2);
}
.site-foot-inner{ text-align:center; }
.site-foot-contact{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
  gap:10px 26px;
  margin:0 0 14px;
  font-size:15.5px;
}
.site-foot-contact a{ color:var(--on-dark); text-decoration:none; font-weight:600; }
.site-foot-contact a:hover{ color:var(--white); text-decoration:underline; }
.site-foot-copy{
  margin:0;
  font-size:14px;
  line-height:1.8;
  color:var(--on-dark-2);
}
.site-foot-copy a{ color:var(--on-dark-2); }
.to-top{ display:inline-block; margin-left:8px; text-decoration:none; }

/* ------------------------------------------------------------- reveal fx --- */

.reveal{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  will-change:opacity, transform;
}
.reveal.is-in{ opacity:1; transform:none; will-change:auto; }

/* ------------------------------------------------------------ responsive --- */

@media (max-width:900px){
  .site-nav a{ font-size:15px; padding:10px 10px; }
}

@media (max-width:780px){
  /* The Join button wraps onto its own row here. justify-content:center centres
     that last row, while margin-right:auto on the brand keeps row one as
     brand-left / hamburger-right rather than clumping both in the middle. */
  .site-head-inner{ justify-content:center; }
  .site-brand{ margin-right:auto; }

  .nav-toggle{ display:block; order:2; }
  .head-join{ order:3; padding:11px 20px; font-size:14.5px; }
  .site-nav{
    order:4;
    flex-basis:100%;
    margin-left:0;
    display:none;
  }
  .site-nav.is-open{ display:block; }
  .site-nav ul{ flex-direction:column; gap:0; padding-bottom:10px; }
  .site-nav a{ padding:13px 4px; border-bottom:1px solid var(--line); border-radius:0; }
  .site-head-inner{ padding-block:9px; min-height:62px; }
  .site-mark{ width:54px; height:54px; }
  .site-logo-link{ gap:10px; }

  .thm-title__on{ gap:12px; }
  .thm-when{ gap:6px 14px; font-size:14.5px; }
  .thm-when span + span::before{ margin-right:14px; }
  .thm-pill{ padding:13px 20px; text-align:center; }
  .thm-detail{ text-align:center; }
  .thm-detail dt{ justify-content:center; }
}

/* Four across only while four actually fit. Below that, 2x2, then a single file. */
@media (max-width:900px){
  .thm-details{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:520px){
  .thm-details{ grid-template-columns:1fr; }
}

/* Keep the "No experience needed" pill to a single line on phones. */
@media (max-width:560px){
  .thm-pill__more{ display:none; }
  .thm-pill{ white-space:nowrap; }
}

@media (max-width:460px){
  body{ font-size:16.5px; }
  /* the brand takes its own row here so the name and tagline never get squeezed
     against the Join button */
  .site-mark{ width:48px; height:48px; }
  .site-title-text{ font-size:17px; }
  .site-tagline{ font-size:11px; }
  .thm-footbrand__lockup img{ width:46px; height:46px; }
  .thm-footbrand__lockup{ gap:10px; }
  .thm-footbrand__title{ font-size:16.5px; }
  .thm-footbrand__tag{ font-size:11px; }
  .thm-address{ font-size:14.5px; }
  /* the button must never be the thing that causes a sideways scroll */
  .thm-join{ width:100%; padding-inline:18px; gap:10px; }
  .thm-join__icon{ width:30px; height:30px; }
  .thm-video__bar{ gap:6px; padding:8px; }
  .thm-vbtn{ width:36px; height:36px; }
  .thm-time{ font-size:12px; }
  .thm-when{ flex-direction:column; gap:4px; }
  .thm-when span + span::before{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation:none !important;
    transition:none !important;
  }
  .reveal{ opacity:1; transform:none; }
}
