/* Play Anything Music Therapy: shared styles for every page */

:root {
  --purple: #5d62f9;
  --purple-dark: #4449d6;
  --purple-wash: #ecebff;
  --mint: #3cc4a8;
  --mint-light: #a8f0de;     /* on purple or dark backgrounds */
  --mint-dark: #0e7563;      /* passes contrast as text on white */
  --ink: #23212e;
  --text: #4a4858;
  --muted: #6f6c7d;
  --line: #e6e4ef;
  --tint: #f5f4fd;           /* the one background colour for alternating sections */
  --white: #fff;
  --radius: 20px;
  --space: clamp(64px, 9vw, 112px);
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, sans-serif;
  /* Xylophone bars in Boomwhacker colours for the notes they play: C D E G A C D E */
  --bar-1: #e8312f; --bar-2: #f7881f; --bar-3: #f9d71c; --bar-4: #14a89a;
  --bar-5: #7b4bb7; --bar-6: #e8312f; --bar-7: #f7881f; --bar-8: #f9d71c;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.7 var(--body); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--purple); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.12; }
h1, h2 { font-family: var(--head); font-weight: 500; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; }
.skip:focus { left: 8px; }

section { padding: var(--space) 0; }
.tint { background: var(--tint); }
.eyebrow { font: 700 .78rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dark); margin-bottom: 12px; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 48px); }
.section-head p:last-child { font-size: 1.08rem; margin: 0; }
.note { font-size: .94rem; color: var(--muted); }
.center-link { text-align: center; margin: 40px 0 0; }

/* Hand-drawn squiggle under a word */
.squiggle { position: relative; white-space: nowrap; }
.squiggle::after {
  content: ""; position: absolute; left: -1%; right: -1%; bottom: -.14em; height: .26em; background: var(--squiggle, var(--mint)); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 6Q5 1 10 5t10 0 10 0 10 0' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / auto 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 6Q5 1 10 5t10 0 10 0 10 0' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") 0 50% / auto 100% repeat-x;
}

/* Gentle wave edge: a band's own background, cut to a wave, overhanging the next section */
.hero::after, .page-hero::after, .play::before, .play::after, .contact::before, .contact::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C180 6 420 0 720 18s560 20 720 0v22z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V24C180 6 420 0 720 18s560 20 720 0v22z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.play::before, .contact::before { top: -39px; }
.hero::after, .page-hero::after, .play::after, .contact::after { bottom: -39px; transform: scale(-1, -1); }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--purple);
  background: var(--purple); color: var(--white); font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--purple-dark); border-color: var(--purple-dark); }
.btn-outline { background: transparent; color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--purple); }
.btn-light:hover { background: var(--purple-wash); border-color: var(--purple-wash); }
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--purple); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.more { font-weight: 600; text-decoration: none; color: var(--purple); }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; height: 84px; gap: 36px; }
.logo { flex: none; }
.logo img { width: 160px; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a, .has-sub > a { display: block; padding: 10px 14px; color: var(--ink); text-decoration: none; font-size: 1.02rem; font-weight: 500; border-radius: 8px; }
.nav > a:hover, .has-sub > a:hover { background: var(--tint); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .5; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; margin-top: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(35,33,46,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.sub a:hover { background: var(--tint); color: var(--purple); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--purple); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span:not(.sr) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: .2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero { position: relative; background: var(--tint); padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 9vw, 112px); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 32em; }
.trust { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; }

/* ---------- 2. Services ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; margin-bottom: 18px; transition: transform .3s; }
.card:hover img { transform: translateY(-4px); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: .95rem; color: var(--muted); flex: 1; margin-bottom: 12px; }
.card .more { font-size: .95rem; }

/* ---------- Shared image + text split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* ---------- 4. Have a go ---------- */
.play { position: relative; background: var(--purple); color: rgba(255,255,255,.9); }
.play h2 { color: var(--white); }
.play .eyebrow { color: var(--mint-light); }
.play .squiggle { --squiggle: var(--mint-light); }
.play-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.play-inner p { font-size: 1.08rem; max-width: 26em; }
.play .play-hint { font-size: .9rem; opacity: .75; }
@media (hover: none) { .play-hint { display: none; } }
kbd { font: 600 .8rem/1 var(--body); padding: 3px 7px; border-radius: 5px; background: rgba(255,255,255,.16); border-bottom: 2px solid rgba(0,0,0,.18); }
.bars { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 1.2vw, 12px); height: 260px; touch-action: none; user-select: none; -webkit-user-select: none; }
.bar {
  --h: 100%; position: relative; flex: 1; max-width: 62px; height: var(--h); border: 0; border-radius: 12px; cursor: pointer;
  background: var(--c); box-shadow: inset 0 -6px 0 rgba(0,0,0,.1), 0 8px 18px rgba(20,20,60,.22);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  -webkit-tap-highlight-color: transparent; transition: filter .2s;
}
/* Pegs that hold a xylophone bar in place */
.bar::before, .bar::after { content: ""; position: absolute; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: rgba(0,0,0,.2); }
.bar::before { top: 14%; }
.bar::after { bottom: 22%; }
.bar span { font: 700 .72rem/1 var(--body); color: rgba(255,255,255,.85); }
.bar:nth-child(3) span, .bar:nth-child(8) span { color: rgba(0,0,0,.45); }
.bar:hover { filter: brightness(1.05); }
.bar.hit { animation: hit .45s cubic-bezier(.2,.8,.3,1); }
@keyframes hit { 0% { filter: brightness(1.2); } 25% { transform: translateY(5px) scaleY(.97); } 100% { transform: none; filter: none; } }
.bar:nth-child(1) { --h: 100%; --c: var(--bar-1); }
.bar:nth-child(2) { --h: 94%;  --c: var(--bar-2); }
.bar:nth-child(3) { --h: 88%;  --c: var(--bar-3); }
.bar:nth-child(4) { --h: 82%;  --c: var(--bar-4); }
.bar:nth-child(5) { --h: 76%;  --c: var(--bar-5); }
.bar:nth-child(6) { --h: 70%;  --c: var(--bar-6); }
.bar:nth-child(7) { --h: 64%;  --c: var(--bar-7); }
.bar:nth-child(8) { --h: 58%;  --c: var(--bar-8); }

/* ---------- 5. Programs ---------- */
.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.program { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.program > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.program-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 34px); }
.program h3 { font: 500 clamp(1.7rem, 2.6vw, 2.1rem)/1.1 var(--head); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tags span { font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: #dff7f1; color: var(--mint-dark); }
.facts { margin: 4px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .95rem; }
.facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 4px 0; }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; }
.program .btn { align-self: flex-start; margin-top: auto; }

/* ---------- 6. Song ---------- */
.video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 18px 40px rgba(35,33,46,.14); }
.video iframe, .video-play { display: block; width: 100%; height: 100%; border: 0; }
.video-play { position: relative; padding: 0; cursor: pointer; background: none; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-play:hover img { transform: scale(1.03); }
.play-icon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 8px 26px rgba(0,0,0,.3); transition: transform .2s; }
.play-icon::after { content: ""; position: absolute; left: 30px; top: 23px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--purple); }
.video-play:hover .play-icon { transform: scale(1.08); }

/* ---------- 7. Team ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.person { display: flex; flex-direction: column; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.5; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; margin-bottom: 14px; transition: transform .3s; }
.person:hover img { transform: translateY(-4px); }
.person strong { color: var(--ink); font-size: 1.05rem; }
.person .role { color: var(--mint-dark); font-weight: 600; font-size: .85rem; margin: 2px 0 6px; }

/* ---------- 8. FAQ ---------- */
.faq-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.accordion { display: grid; gap: 10px; }
details { background: var(--white); border-radius: 14px; padding: 0 22px; }
summary { list-style: none; cursor: pointer; padding: 18px 32px 18px 0; position: relative; font-weight: 700; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; border: solid var(--purple); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
details p { color: var(--text); }
details[open] { padding-bottom: 8px; }

/* ---------- 9. Contact ---------- */
.contact { position: relative; background: var(--purple); color: rgba(255,255,255,.9); }
.contact h2 { color: var(--white); }
.contact .eyebrow { color: var(--mint-light); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-text p { font-size: 1.08rem; max-width: 30em; margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.contact-list svg { flex: none; width: 20px; height: 20px; fill: var(--mint-light); }
.contact-list a { color: var(--white); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 14px; background: var(--white); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); box-shadow: 0 20px 50px rgba(20,20,60,.22); }
.contact-form h3 { margin: 0 0 4px; font-size: 1.2rem; }
.contact-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid #d6d4e0; border-radius: 10px; padding: 11px 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: #dff7f1; color: var(--mint-dark); }
.form-status.err { background: #ffeef0; color: #a3263c; }
.form-status a { color: inherit; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------- 10. Recognition ---------- */
.recognition { padding-top: calc(var(--space) + 20px); }
.small-heading { font-size: clamp(1.6rem, 2.6vw, 2rem); text-align: center; margin-bottom: 32px; }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo-tile { display: flex; flex-direction: column; padding: 18px 16px 20px; border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
a.logo-tile:hover { border-color: transparent; box-shadow: 0 12px 30px rgba(35,33,46,.09); }
/* Every logo gets the same box, so badges and wide wordmarks read at a similar size */
.logo-img { display: flex; align-items: center; justify-content: center; height: 84px; margin-bottom: 16px; }
.logo-img img { max-width: 100%; max-height: 84px; width: auto; object-fit: contain; }
.logo-kind { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-dark); margin-bottom: 4px; }
.logo-name { font-size: .88rem; line-height: 1.35; color: var(--ink); font-weight: 600; }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; background: var(--tint); padding: clamp(44px, 6vw, 80px) 0 clamp(64px, 8vw, 96px); }
.page-hero .hero-inner { align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.page-hero.solo .wrap { max-width: 820px; }
.page-hero .hero-photo img { aspect-ratio: 4 / 3; border-radius: 24px; }
.section-head.center { margin-inline: auto; text-align: center; }

.prose { max-width: 720px; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose.center { margin-inline: auto; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature { background: var(--tint); border-radius: 18px; padding: 26px 24px; }
.tint .feature { background: var(--white); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: .95rem; margin: 0; }
.feature p + p { margin-top: .8em; }
.feature img.icon { width: 64px; height: 64px; margin-bottom: 14px; }
.feature .more { display: inline-block; margin-top: 12px; font-size: .95rem; }
a.feature { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s; }
a.feature:hover { box-shadow: 0 14px 34px rgba(35,33,46,.1); transform: translateY(-3px); }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; color: var(--ink); font-size: .95rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--purple); color: var(--white); font-weight: 700; margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { font-size: .95rem; margin: 0; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; background: var(--purple); color: rgba(255,255,255,.9); border-radius: 24px; padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px); }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 34em; }
.cta-band .actions { margin: 0; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.8); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--purple); }

.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.photo-row figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }

.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.doc-list a::before { content: "PDF"; flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--white); background: var(--purple); border-radius: 6px; padding: 4px 6px; }
.doc-list a:hover { border-color: var(--purple); }

.embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.embed iframe { display: block; width: 100%; height: 1500px; border: 0; }
.embed.short iframe { height: 760px; }

.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.app { display: flex; flex-direction: column; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.5; }
.app img { width: 88px; height: 88px; border-radius: 22%; margin-bottom: 14px; box-shadow: 0 8px 20px rgba(35,33,46,.12); }
.app strong { color: var(--ink); font-size: 1.02rem; margin-bottom: 2px; }
a.app:hover strong { color: var(--purple); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.link-list a { display: block; padding: 12px 16px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
.link-list a:hover { border-color: var(--purple); color: var(--purple); }
.link-list span { display: block; font-weight: 400; font-size: .86rem; color: var(--muted); }

.ebook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ebook-grid.four { grid-template-columns: repeat(4, 1fr); }
.ebook { display: flex; flex-direction: column; }
.ebook img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 14px; box-shadow: 0 10px 24px rgba(35,33,46,.08); }
.ebook h3 { margin-bottom: 4px; }
.ebook p { font-size: .93rem; color: var(--muted); flex: 1; }
.ebook .btn { align-self: flex-start; }
.is-pending { opacity: .55; cursor: default; pointer-events: none; }

.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; margin-bottom: 14px; }
.post-card time, .post-meta { font-size: .85rem; color: var(--muted); }
.post-card h3 { margin: 4px 0 6px; }
.post-card:hover h3 { color: var(--purple); }
.post-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }

.form-card { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); }
.form-card h3 { margin: 0; }
.form-card label { display: grid; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.form-card input, .form-card textarea, .form-card select { font: inherit; font-weight: 400; color: var(--ink); background: var(--white); border: 1px solid #d6d4e0; border-radius: 10px; padding: 11px 14px; }
.form-card input:focus, .form-card textarea:focus, .form-card select:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: transparent; }
.form-card fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form-card legend { font-size: .92rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-card .choice { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.form-card .choice input { width: 18px; height: 18px; padding: 0; }
.form-card .btn { justify-self: start; }
.form-card .btn:disabled { opacity: .6; cursor: wait; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.side-card { background: var(--tint); border-radius: var(--radius); padding: 26px; }
.side-card h3 { margin-bottom: 10px; }
.side-card p:last-child { margin: 0; }
.layout-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }

.bios { display: grid; gap: clamp(40px, 6vw, 72px); }
.bio { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.bio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.bio h2 { margin-bottom: 4px; }
.bio .role { color: var(--mint-dark); font-weight: 600; margin-bottom: 16px; }
.section-post { padding: clamp(40px, 6vw, 72px) 0 var(--space); }
.section-post h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.post-meta a { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); max-width: 22em; }
.footer-contact a { padding: 0; }
.site-footer h4 { font: 500 1.1rem/1 var(--head); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.site-footer a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--purple); }
.social { display: flex; gap: 10px; }
.site-footer .social a { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--tint); transition: background .2s; }
.site-footer .social a:hover { background: var(--purple); }
.social svg { width: 17px; height: 17px; fill: var(--ink); }
.social a:hover svg { fill: var(--white); }
.footer-base { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; color: var(--muted); font-size: .85rem; }
.footer-base p { margin: 0; }

/* ---------- Display settings (text size + high contrast) ---------- */
html[data-text-size="lg"] { font-size: 112.5%; }
html[data-text-size="xl"] { font-size: 125%; }
html.high-contrast { --ink: #000; --text: #111; --muted: #2a2a2a; --purple: #3237c4; --purple-dark: #23268f; --mint-dark: #075446; --tint: #fff; --line: #000; }
html.high-contrast main a:not(.btn):not(.card):not(.person):not(.logo-tile) { text-decoration: underline; }
html.high-contrast details, html.high-contrast .program { border: 2px solid #000; }
html.high-contrast .btn-outline { border-width: 2px; }

.a11y { position: fixed; right: 16px; bottom: 16px; z-index: 60; }
.a11y-toggle { width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s, background .2s; }
.a11y-toggle:hover { background: var(--purple); transform: scale(1.06); }
.a11y-toggle svg { width: 24px; height: 24px; fill: var(--white); }
.a11y-panel { position: absolute; right: 0; bottom: 62px; width: 250px; background: var(--white); color: var(--ink); border-radius: 16px; padding: 18px; box-shadow: 0 16px 40px rgba(35,33,46,.22); border: 1px solid var(--line); }
.a11y-title { font-weight: 700; margin-bottom: 12px; }
.a11y-label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.a11y-sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
.a11y-sizes button { height: 44px; border: 1.5px solid #d6d4e0; border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; font-weight: 700; font-family: var(--body); }
.a11y-sizes button:nth-child(1) { font-size: 14px; }
.a11y-sizes button:nth-child(2) { font-size: 18px; }
.a11y-sizes button:nth-child(3) { font-size: 22px; }
.a11y-sizes button[aria-checked="true"] { border-color: var(--purple); background: var(--purple-wash); color: var(--purple-dark); }
.a11y-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .95rem; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.a11y-switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; margin: 0; flex: none; border-radius: 999px; background: #c9c7d3; position: relative; cursor: pointer; transition: background .2s; }
.a11y-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.a11y-switch input:checked { background: var(--purple); }
.a11y-switch input:checked::after { transform: translateX(18px); }
.a11y-reset { margin-top: 6px; background: none; border: 0; padding: 4px 0; color: var(--purple); font: 600 .9rem var(--body); cursor: pointer; text-decoration: underline; }

/* ---------- Scroll fade-in (classes added by script, so content stays visible without JS) ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease var(--delay, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--delay, 0ms); }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - 84px); overflow-y: auto; padding: 8px 16px 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav > a, .has-sub > a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav > a:hover, .has-sub > a:hover { background: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; margin: 0; padding: 0 0 6px 16px; min-width: 0; }
  .nav-actions { margin: 16px 0 0; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-phone { padding: 4px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-inner, .split, .play-inner, .faq-inner, .contact-inner, .program-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .feature-grid.four, .steps, .app-grid, .ebook-grid, .ebook-grid.four, .post-list, .link-list { grid-template-columns: repeat(2, 1fr); }
  .layout-2 { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 200px 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 600px) {
  .header-inner { height: 72px; }
  .nav { top: 72px; max-height: calc(100vh - 72px); }
  .logo img { width: 140px; }
  .hero-photo img { border-radius: 20px; }
  .actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; gap: 20px; }
  .card { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  .card img { grid-row: span 3; aspect-ratio: 1; margin: 0; }
  .card p { margin-bottom: 6px; }
  .bars { height: 200px; }
  .bar { border-radius: 9px; }
  .facts div { grid-template-columns: 1fr; gap: 0; padding: 6px 0; }
  .people { gap: 18px; }
  .person { font-size: .86rem; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-img { height: 64px; }
  .logo-img img { max-height: 64px; }
  .feature-grid, .feature-grid.two, .feature-grid.four, .steps, .post-list, .link-list, .form-row { grid-template-columns: 1fr; }
  .app-grid, .ebook-grid, .ebook-grid.four { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .photo-row { grid-template-columns: 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio img { max-width: 260px; }
  .embed iframe { height: 1800px; }
}

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