/* ==========================================================================
   Carmen K Yogi: design system + components
   Deep lagoon palette from the CarmenK_Yogi watercolour logo (teal, aqua, green, magenta); Netflix-style rows for the library.
   ========================================================================== */

:root {
  --bg: #07141a;
  --bg-2: #0a1b22;
  --surface: #0f252d;
  --surface-2: #163139;
  --line: rgba(220, 246, 248, .10);
  --line-strong: rgba(220, 246, 248, .2);
  --text: #eefafa;
  --muted: #9dbcc1;
  --faint: #6d8f95;
  --accent: #3cc8d4;        /* lagoon aqua */
  --magenta: #d23c8f;
  --sky: #3a8fe0;
  --leaf: #5fd38a;
  --watercolour: linear-gradient(100deg, #c2368a 0%, #6a5fd6 26%, #2fa8e0 50%, #2ec9c2 74%, #5fd38a 100%);
  --accent-strong: #7fe0e6;
  --accent-ink: #032229;
  --sage: #6fd49a;
  --lilac: #a9a2f0;
  --gold: #9fdc7a;
  --danger: #ff8a7a;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.inline-form { display: inline; margin: 0; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-ghost { background: rgba(225, 248, 250, .06); border-color: var(--line-strong); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(225, 248, 250, .12); color: var(--text); }
.btn-done { background: rgba(111, 212, 154, .16); color: var(--sage); border-color: rgba(111, 212, 154, .35); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 6px 0; color: var(--muted); cursor: pointer; font-size: .88rem; }
.link-btn:hover { color: var(--text); }

/* ---- Header ---- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: linear-gradient(to bottom, rgba(7, 20, 26, .85), rgba(7, 20, 26, 0));
  transition: background .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(7, 20, 26, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark { color: var(--accent); }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px -6px rgba(47, 168, 224, .55); transition: transform .6s var(--ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.04); }
.site-footer .brand-logo { width: 52px; height: 52px; }
.brand-word { white-space: nowrap; font-family: 'Varela Round', var(--font-body); font-size: 1.32rem; font-weight: 400; letter-spacing: .005em;
  background: linear-gradient(90deg, #3ec3e6 0%, #3fd0cf 55%, #6fdc9e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-us { letter-spacing: .04em; }
.brand-word em { font-style: italic; color: var(--accent-strong); font-weight: 400; }
.main-nav { display: flex; gap: 24px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.main-nav a:hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #c2368a); color: var(--accent-ink);
  font-weight: 800; text-decoration: none;
}
.flash { position: relative; z-index: 40; margin-top: var(--header-h); padding: 12px 0; background: var(--surface); border-bottom: 1px solid var(--line); font-size: .92rem; }
.flash + .flash { margin-top: 0; }

/* ---- Hero ---- */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 56px; isolation: isolate; z-index: 3; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 26, .92) 0%, rgba(7, 20, 26, .55) 48%, rgba(7, 20, 26, .2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 20, 26, 0) 40%);
}
.hero-aurora { position: absolute; inset: 0; background: radial-gradient(120% 90% at 80% 20%, #0e3a44 0%, #0a1f27 55%, var(--bg) 100%); overflow: hidden; }
.hero-aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 22s ease-in-out infinite alternate; }
.hero-aurora span:nth-child(1) { width: 46vw; height: 46vw; right: -6vw; top: -10vw; background: radial-gradient(circle, #3cc8d4 0%, rgba(60, 200, 212, 0) 70%); }
.hero-aurora span:nth-child(2) { width: 38vw; height: 38vw; right: 22vw; top: 18vh; background: radial-gradient(circle, #c2368a 0%, rgba(200, 54, 140, 0) 70%); animation-duration: 28s; }
.hero-aurora span:nth-child(3) { width: 30vw; height: 30vw; right: 4vw; bottom: -8vw; background: radial-gradient(circle, #5fd38a 0%, rgba(60, 180, 120, 0) 70%); animation-duration: 34s; opacity: .45; }
.hero-sun {
  position: absolute; right: 12%; top: 22%; width: min(34vw, 440px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #b9f2ef 0%, #3cc8d4 38%, #d4408c 70%, rgba(212, 64, 140, 0) 72%);
  opacity: .55; filter: saturate(1.1);
  mask: repeating-linear-gradient(0deg, #000 0 14px, transparent 14px 20px);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 14px, transparent 14px 20px);
}
@keyframes drift { to { transform: translate(-4vw, 3vh) scale(1.08); } }

.hero-content { position: relative; max-width: 1320px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 400; max-width: 15ch; letter-spacing: -.02em; }
.hero-title em { font-style: italic; color: var(--accent-strong); font-weight: 300; }
.hero-sub { max-width: 52ch; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: #d2e9eb; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

/* ---- Search ---- */
.search { position: relative; max-width: 640px; }
.search-field {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px;
  background: rgba(14, 34, 42, .82); border: 1px solid var(--line-strong); border-radius: 999px;
  backdrop-filter: blur(16px); color: var(--muted);
  transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(60, 200, 212, .15); }
.search-field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text);
  font: 500 1rem var(--font-body); padding: 8px 0;
}
.search-field input::placeholder { color: var(--faint); }
.search-field input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: var(--shadow); padding: 8px; max-height: 420px; overflow: auto;
}
.search-hit { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.search-hit:hover, .search-hit.is-active { background: var(--surface-2); color: var(--text); }
.search-hit-thumb { flex: 0 0 64px; height: 40px; border-radius: 8px; overflow: hidden; }
.search-hit-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-hit-text { display: flex; flex-direction: column; min-width: 0; }
.search-hit-text strong { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-hit-text small { color: var(--muted); font-size: .8rem; }
.search-all { display: block; text-align: center; padding: 10px; font-weight: 600; font-size: .88rem; text-decoration: none; border-top: 1px solid var(--line); margin-top: 6px; }
.search-empty { padding: 14px; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  background: rgba(225, 248, 250, .07); border: 1px solid var(--line); color: #d8eeef;
  padding: 7px 14px; border-radius: 999px; font-size: .85rem; cursor: pointer; transition: background .2s, border-color .2s;
}
.chip:hover { background: rgba(60, 200, 212, .14); border-color: rgba(60, 200, 212, .45); }

/* ---- Pills ---- */
.pills-bar { position: relative; z-index: 2; border-bottom: 1px solid var(--line); }
.pills { display: flex; gap: 10px; overflow-x: auto; padding-top: 18px; padding-bottom: 18px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background .2s, border-color .2s, color .2s;
}
.pill:hover { background: rgba(225, 248, 250, .07); color: var(--text); }
.pill.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-all { margin-left: auto; color: var(--accent-strong); border-color: rgba(60, 200, 212, .4); }

/* ---- Sections ---- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tight { padding-top: 24px; padding-bottom: 64px; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 18%, var(--bg-2) 82%, var(--bg) 100%); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head-center { flex-direction: column; align-items: center; text-align: center; }
.section-title { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 400; }
.section-title .count { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 8px; vertical-align: middle; }
.section-sub { color: var(--muted); max-width: 56ch; margin: 14px 0 0; font-size: 1.05rem; }

/* ---- Video cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px 20px; }
.card { position: relative; min-width: 0; }
.card-link { display: block; color: var(--text); text-decoration: none; }
.card-link:hover { color: var(--text); }
.card-thumb {
  --h: 20;
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 120% at 85% 10%, hsla(calc(var(--h) + 30), 70%, 70%, .55) 0%, transparent 55%),
    linear-gradient(140deg, hsl(var(--h), 42%, 26%) 0%, hsl(calc(var(--h) - 25), 38%, 13%) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-thumb, .card-link:focus-visible .card-thumb { transform: scale(1.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), var(--shadow); }
.poster-art { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); color: hsla(calc(var(--h) + 30), 80%, 88%, .85); }
.poster-art .pillar-icon { width: 34%; height: auto; min-width: 54px; margin-left: auto; }
.card .poster-art { width: 100%; }
.poster-word {
  position: absolute; left: 14px; bottom: 12px; right: 40%;
  font-family: var(--font-display); font-style: italic; font-size: 1.15rem; line-height: 1.1;
  color: hsla(calc(var(--h) + 30), 70%, 92%, .9);
}
.badge {
  position: absolute; display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; padding: 5px 9px; border-radius: 999px;
  background: rgba(7, 20, 26, .72); backdrop-filter: blur(6px); color: var(--text);
}
.badge-duration { top: 10px; left: 10px; }
.badge-new { top: 10px; left: auto; right: 52px; background: var(--accent); color: var(--accent-ink); }
.badge-done { bottom: 10px; right: 10px; color: var(--sage); }
.card-play {
  position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(236, 250, 250, .92); color: var(--bg);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.card:hover .card-play, .card-link:focus-visible .card-play { opacity: 1; transform: scale(1); }
.card-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .2); }
.card-progress span { display: block; height: 100%; background: var(--accent); }
.card-body { padding: 12px 2px 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 6px; }
.tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.tag-pose { color: var(--sage); }
.tag-mind { color: var(--lilac); }
.tag-theory { color: var(--gold); }
.level { font-size: .74rem; font-weight: 600; color: var(--muted); padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; }
.level-beginner { color: var(--sage); border-color: rgba(111, 212, 154, .4); }
.level-advanced { color: #ef6fa3; border-color: rgba(239, 111, 163, .4); }
.meta-dur { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .85rem; }
.card-title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.3; letter-spacing: 0; }
.card-reason { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: .8rem; color: var(--accent-strong); }
.card-reason svg { flex: 0 0 auto; }
.bookmark {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(7, 20, 26, .62); backdrop-filter: blur(6px); color: var(--text);
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.bookmark:hover { transform: scale(1.08); background: rgba(7, 20, 26, .85); }
.bookmark.is-active { color: var(--accent); }
.bookmark.is-active svg, .bookmark-btn.is-active svg { fill: currentColor; }
.bookmark-btn.is-active { color: var(--accent-strong); border-color: rgba(60, 200, 212, .5); }

/* ---- Pillars ---- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar-card {
  --h: 20;
  position: relative; display: flex; flex-direction: column; gap: 12px; min-height: 300px; padding: 28px 24px;
  border-radius: var(--radius-lg); text-decoration: none; color: var(--text); overflow: hidden;
  background: linear-gradient(165deg, hsla(var(--h), 45%, 30%, .55) 0%, hsla(var(--h), 30%, 12%, .6) 100%), var(--surface);
  border: 1px solid hsla(var(--h), 60%, 70%, .14);
  transition: transform .35s var(--ease), border-color .3s;
}
.pillar-card:hover { transform: translateY(-6px); border-color: hsla(var(--h), 70%, 70%, .4); color: var(--text); }
.pillar-card-icon { color: hsl(calc(var(--h) + 20), 70%, 78%); margin-bottom: auto; }
.pillar-card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; }
.pillar-card p { color: #cfe6e8; margin: 0; }
.pillar-photo { position: absolute; inset: 0; z-index: -1; }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.85); transition: opacity .4s var(--ease), transform .6s var(--ease); }
.pillar-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, hsla(var(--h), 35%, 10%, .35) 0%, hsla(var(--h), 30%, 8%, .92) 78%); }
.pillar-card:has(.pillar-photo) { isolation: isolate; }
.pillar-card:hover .pillar-photo img { opacity: .5; transform: scale(1.04); }
.pillar-count { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: hsl(calc(var(--h) + 20), 70%, 80%); margin-top: 6px; }

/* ---- Meet Carmen ---- */
.meet { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.meet-media { position: relative; }
.meet-media .meet-main, .meet-media video, .meet-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); }
.meet-media:has(.meet-accent) { padding: 0 9% 12% 0; }
.meet-accent { position: absolute; object-fit: cover; border: 6px solid var(--bg); box-shadow: var(--shadow); }
.meet-accent-a { width: 34%; aspect-ratio: 1; border-radius: 50%; left: -8%; bottom: 2%; }
.meet-accent-b { width: 32%; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); right: 0; bottom: 0; }

.meet-social { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.meet-social p { margin: 0 0 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ---- Social links ---- */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; transition: color .2s, border-color .2s, background .2s; }
.social-links a:hover, .social-links a:focus-visible { color: var(--text); border-color: var(--accent); background: var(--surface-2); }
.social-links svg { flex: none; }
.footer-social { margin-top: 14px; }
.footer-social a { padding: 8px; }
.footer-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Photo strip ---- */
.gallery { padding: 0 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.gallery-track { display: flex; gap: 14px; width: max-content; animation: gallery-scroll 70s linear infinite; }
.gallery:hover .gallery-track { animation-play-state: paused; }
.gallery-item { margin: 0; height: clamp(200px, 24vw, 300px); flex: 0 0 auto; border-radius: var(--radius); overflow: hidden; }
.gallery-item img { height: 100%; width: auto; display: block; object-fit: cover; }
@keyframes gallery-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .gallery { overflow-x: auto; }
  .gallery-track { animation: none; padding: 0 16px; }
  .gallery-item[aria-hidden] { display: none; }
}
.meet-placeholder {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(80% 60% at 50% 30%, #3cc8d4 0%, #7d2a78 45%, #0f2a33 100%);
}
.meet-initial { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 14vw, 11rem); color: rgba(225, 248, 250, .85); font-weight: 300; }
.meet-ring { position: absolute; inset: 9%; border-radius: 200px 200px 18px 18px; border: 1px solid rgba(225, 248, 250, .35); }
.meet-copy .lead { font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 300; margin: 22px 0 18px; }
.meet-copy p { color: #cfe6e8; }
.meet-points { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 10px; }
.meet-points li { display: flex; gap: 10px; align-items: flex-start; }
.meet-points svg, .access-list svg { flex: 0 0 auto; color: var(--sage); margin-top: 4px; }

/* ---- Access CTA ---- */
.access {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 28px; overflow: hidden; position: relative;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(60, 200, 212, .35) 0%, transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(200, 54, 140, .3) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
}
.access-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.access-list li { display: flex; gap: 10px; }
.access-action { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.access-note { margin: 0; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.footer-inner > p { grid-column: 1 / -1; margin: 0; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.footer-nav a:hover { color: var(--text); }
.site-footer .brand { margin-bottom: 10px; }

/* ---- Auth ---- */
.page-auth .site-footer { margin-top: 0; }
.auth { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 64px; }
.auth-art blockquote { position: relative; margin: 0; max-width: 26ch; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-style: italic; font-weight: 300; line-height: 1.3; }
.auth-art cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.auth-panel { display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 32px) clamp(24px, 6vw, 88px) 48px; max-width: 620px; width: 100%; }
.auth-title { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 400; margin-bottom: 10px; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 600; font-size: .9rem; }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 500 1rem var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(60, 200, 212, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error, .form-error { color: var(--danger); }
.form-error { background: rgba(255, 138, 122, .08); border: 1px solid rgba(255, 138, 122, .3); padding: 12px 14px; border-radius: 12px; margin: 18px 0 0; }
.auth-switch { margin-top: 22px; }

/* ---- Onboarding chat ---- */
.page-onboarding .site-footer, .page-onboarding .main-nav { display: none; }
.onboarding { min-height: 100vh; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; background: radial-gradient(90% 60% at 50% 0%, #0f2a33 0%, var(--bg) 70%); }
.onboarding-shell { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - var(--header-h) - 64px); }
.onboarding-top { position: sticky; top: var(--header-h); z-index: 5; padding: 12px 0 16px; background: linear-gradient(var(--bg) 70%, transparent); }
.kamani-id { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.kamani-id strong { display: block; }
.kamani-avatar, .bubble-kamani::before {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: url('../media/brand/logo-mark.svg') center / cover no-repeat; color: transparent;
  font-family: var(--font-display); font-style: italic; font-size: 1.3rem; box-shadow: 0 6px 18px -6px rgba(47, 168, 224, .55);
}
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--watercolour); transition: width .6s var(--ease); }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 12px 0 24px; }
.bubble {
  max-width: min(78%, 520px); padding: 13px 18px; border-radius: 20px; font-size: 1.02rem; line-height: 1.5;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.bubble.is-in { opacity: 1; transform: none; }
.bubble-kamani { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 6px; }
.bubble-me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-bottom-right-radius: 6px; }
.bubble-typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.bubble-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: .15s; }
.bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat-answers { margin-top: auto; padding: 8px 0 12px; position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 22%); padding-top: 28px; }
.answer-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.answer-chip {
  padding: 12px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .95rem;
  background: transparent; border: 1px solid rgba(60, 200, 212, .5); color: var(--text);
  transition: background .2s, color .2s, transform .15s; animation: rise .4s var(--ease) both;
}
.answer-chip:hover { background: rgba(60, 200, 212, .14); }
.answer-chip.is-picked { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.answer-chip:nth-child(2) { animation-delay: .04s; } .answer-chip:nth-child(3) { animation-delay: .08s; }
.answer-chip:nth-child(4) { animation-delay: .12s; } .answer-chip:nth-child(5) { animation-delay: .16s; }
.answer-chip:nth-child(6) { animation-delay: .2s; }  .answer-chip:nth-child(7) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.answer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; min-height: 44px; }
.answer-foot .btn { margin-left: auto; }
.building { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); padding: 18px; }
.building-orb { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b9f2ef, #3cc8d4 45%, #7d2a78); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.5); opacity: .6; } }
/* No-JS fallback form */
.survey-form { display: grid; gap: 22px; margin-top: 12px; }
.survey-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.survey-q.has-error { border-color: var(--danger); }
.survey-q legend { font-weight: 700; padding: 0 6px; }
.survey-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.survey-option { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; }

/* ---- Library ---- */
.library { padding-bottom: 20px; }
.spotlight { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; padding: calc(var(--header-h) + 48px) 0 48px; overflow: hidden; isolation: isolate; }
.spotlight-bg {
  --h: 20; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 80% 20%, hsla(calc(var(--h) + 12), 70%, 60%, .5) 0%, transparent 60%),
    linear-gradient(140deg, hsl(var(--h), 40%, 22%) 0%, hsl(calc(var(--h) - 25), 35%, 9%) 70%);
}
.spotlight-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 20, 26, .9) 0%, rgba(7, 20, 26, .35) 60%, transparent), linear-gradient(0deg, var(--bg) 0%, transparent 45%); }
.spotlight-bg img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-art { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); color: hsla(calc(var(--h) + 30), 80%, 85%, .55); }
.spotlight-art .pillar-icon { width: min(36vw, 380px); height: auto; stroke-width: 1.2; }
.spotlight-content { position: relative; }
.spotlight-kicker { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-strong); margin-bottom: 10px; }
.spotlight-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; margin-bottom: 16px; }
.spotlight-desc { max-width: 52ch; color: #d2e9eb; font-size: 1.08rem; margin: 14px 0 6px; }
.spotlight-reason { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.spotlight .hero-ctas { margin-bottom: 0; }
.library-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 8px; padding-bottom: 8px; position: relative; z-index: 5; }
.library-tools.is-browsing { padding-top: calc(var(--header-h) + 24px); }
.search-compact { flex: 1 1 320px; max-width: 420px; }
.search-compact .search-field { padding: 4px 18px; }
.library-tools .pills { flex: 1 1 520px; padding: 0; }
.rows { padding-top: 18px; }
.row { margin: 0 0 clamp(32px, 4vw, 48px); }
.row-head { padding: 0 var(--gutter); max-width: 1320px; margin: 0 auto 14px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.row-title { font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 400; }
.row-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.row-viewport { position: relative; --row-pad: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); }
.row-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 290px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--row-pad);
  padding: 6px var(--row-pad) 10px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track > .card { scroll-snap-align: start; }
.row-arrow {
  position: absolute; top: 6px; z-index: 3; width: 46px; aspect-ratio: auto; height: calc(clamp(220px, 22vw, 290px) * .625);
  display: grid; place-items: center; border: 0; cursor: pointer; color: var(--text);
  background: rgba(7, 20, 26, .7); backdrop-filter: blur(8px); border-radius: var(--radius);
  opacity: 0; transition: opacity .25s, background .2s;
}
.row:hover .row-arrow, .row-arrow:focus-visible { opacity: 1; }
.row-arrow:hover { background: rgba(7, 20, 26, .92); }
.row-arrow-prev { left: 8px; }
.row-arrow-next { right: 8px; }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }
.retake-note { margin-top: 8px; }

/* ---- Watch ---- */
.watch { padding-top: calc(var(--header-h) + 18px); }
.link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 16px; }
.player { width: min(100%, calc(70vh * 16 / 9)); margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.player video { width: 100%; height: 100%; }
.player-placeholder {
  --h: 20; position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center;
  background: radial-gradient(70% 90% at 70% 20%, hsla(calc(var(--h) + 30), 70%, 62%, .5) 0%, transparent 60%), linear-gradient(140deg, hsl(var(--h), 40%, 22%) 0%, hsl(calc(var(--h) - 25), 35%, 9%) 70%);
  color: hsla(calc(var(--h) + 30), 80%, 88%, .9);
}
.player-placeholder .poster-art { position: static; transform: none; }
.player-placeholder .pillar-icon { width: clamp(72px, 12vw, 120px); height: auto; }
.player-soon { margin: 0; color: var(--text); font-weight: 600; }
.watch-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 28px 0 40px; flex-wrap: wrap; }
.watch-info > div:first-child { flex: 1 1 520px; }
.watch-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 6px 0 12px; }
.watch-desc { color: #cfe6e8; max-width: 62ch; font-size: 1.05rem; }
.watch-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); font-weight: 700; padding: 12px 20px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Pillar-tinted thumbs for search hits */
.search-hit-thumb { --h: 20; background: linear-gradient(140deg, hsl(var(--h), 45%, 34%), hsl(calc(var(--h) - 25), 38%, 14%)); }


/* ---- Membership ---- */
.badge-soon { top: 10px; right: 52px; background: rgba(7, 20, 26, .72); color: #d8eeef; border: 1px solid rgba(255, 255, 255, .14); }
.card-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--ease); pointer-events: none; }
.card-preview.is-playing { opacity: 1; }
.badge-free { top: 10px; right: 52px; background: var(--sage); color: #14210f; }
.badge-lock { bottom: 10px; left: 10px; color: var(--muted); }
.upgrade-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin: 18px 0 6px; padding: 12px 14px 12px 18px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(60, 200, 212, .16), rgba(200, 54, 140, .12)); border: 1px solid rgba(60, 200, 212, .3);
}
.upgrade-bar span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.page-library .spotlight + .container .upgrade-bar { margin-top: 0; }
.membership { padding-top: calc(var(--header-h) + 48px); padding-bottom: 40px; }
.membership-status { padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); margin-bottom: 40px; }
.lead-status { font-size: 1.1rem; margin: 12px 0 24px; color: var(--muted); }
.membership-pitch .section-sub { margin-bottom: 32px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 320px)); gap: 18px; margin-bottom: 16px; }
.plan { position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 12px; }
.plan-featured { border-color: rgba(60, 200, 212, .55); background: linear-gradient(170deg, rgba(60, 200, 212, .14), transparent 60%), var(--surface); }
.plan h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.plan-price { font-size: 2.2rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.plan-price span, .access-price span { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.plan-flag { position: absolute; top: -11px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.plan:not(.plan-featured) .plan-flag { background: var(--surface-2); color: var(--muted); }
.plans-note { margin-top: 6px; }
.access-price { font-size: 2.6rem; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.access-action .small { margin: -8px 0 6px; }
.paywall { gap: 12px; }
.paywall-lock { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 20, 26, .45); color: var(--text); }
.paywall-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--text); }
.paywall-sub { color: #d2e9eb; margin: 0 0 8px; }
.paywall-free { color: var(--text); font-weight: 600; font-size: .92rem; }

/* ---- Admin ---- */
.admin { padding-top: calc(var(--header-h) + 24px); padding-bottom: 40px; }
.admin-nav { display: flex; gap: 6px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-nav a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.admin-nav a.is-active { color: var(--text); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { color: var(--muted); font-size: .85rem; }
.notice { padding: 14px 16px; border-radius: 12px; background: rgba(159, 220, 122, .1); border: 1px solid rgba(159, 220, 122, .35); color: var(--gold); margin-bottom: 28px; }
.notice-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
code { font-size: .88em; background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--bg-2); }
.table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-class { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.table-class strong { display: block; }
.table-class small, .block { display: block; }
.nowrap { white-space: nowrap; }
.table-thumb { --h: 20; flex: 0 0 72px; height: 45px; border-radius: 8px; overflow: hidden; background: linear-gradient(140deg, hsl(var(--h), 45%, 34%), hsl(calc(var(--h) - 25), 38%, 14%)); }
.table-thumb img { width: 100%; height: 100%; object-fit: cover; }
.status { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status-ok { background: rgba(111, 212, 154, .16); color: var(--sage); }
.status-missing { background: rgba(159, 220, 122, .14); color: var(--gold); }
.status-free { background: rgba(169, 162, 240, .16); color: var(--lilac); }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.admin-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 18px; }
.admin-main { display: grid; gap: 18px; }
.panel { margin: 0; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 16px; }
.panel legend { font-weight: 700; padding: 0 6px; }
.field select, .field textarea, .field input[type=number], .field input[type=url] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: 500 .95rem var(--font-body);
}
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field summary { cursor: pointer; }
.field details input, details.field input { margin-top: 10px; }
.dropzone { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 28px 20px; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: 6px; transition: border-color .2s, background .2s; }
.dropzone.is-over { border-color: var(--accent); background: rgba(60, 200, 212, .06); }
.dropzone p { margin: 0; }
.dropzone strong { color: var(--text); }
.link-like { color: var(--accent-strong); text-decoration: underline; cursor: pointer; }
.upload-progress { width: 100%; max-width: 420px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 8px; }
.upload-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.admin-preview { width: 100%; border-radius: 12px; background: #000; max-height: 360px; }
.thumb-preview { --h: 20; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center; text-align: center; padding: 10px; background: linear-gradient(140deg, hsl(var(--h), 42%, 26%), hsl(calc(var(--h) - 25), 38%, 13%)); }
.thumb-preview img { width: calc(100% + 20px); height: calc(100% + 20px); max-width: none; object-fit: cover; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
label.btn { cursor: pointer; }
.danger-zone { margin-top: 28px; }
.danger { color: var(--danger); }
@media (max-width: 960px) {
  .admin-cols { grid-template-columns: 1fr; }
  .admin-side { position: static; }
}
@media (max-width: 640px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
}

/* ---- Setup wizard ---- */
.setup { min-height: 100vh; display: grid; place-items: center; padding: 40px var(--gutter); background: radial-gradient(90% 60% at 50% 0%, #0f2a33 0%, var(--bg) 70%); }
.setup-card { width: 100%; max-width: 560px; padding: clamp(24px, 5vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.setup-steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 24px; counter-reset: s; }
.setup-steps li { counter-increment: s; flex: 1; font-size: .8rem; font-weight: 700; color: var(--faint); padding-top: 10px; border-top: 3px solid var(--line); }
.setup-steps li::before { content: counter(s) '. '; }
.setup-steps .is-on { color: var(--text); border-color: var(--accent); }
.setup-steps .is-done { color: var(--sage); border-color: var(--sage); }
.checks { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; font-size: .9rem; }
.checks .ok { color: var(--sage); }
.checks .bad { color: var(--danger); }
.settings .field input[readonly] { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .access { grid-template-columns: 1fr; }
  .access-action { align-items: flex-start; text-align: left; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .meet { grid-template-columns: 1fr; }
  .meet-media { max-width: 420px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-panel { margin: 0 auto; }
  .hide-sm { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-word { font-size: 1.12rem; }
  .header-actions .btn-ghost.btn-sm { padding: 8px 12px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 72px); }
  .hero-sun { right: -20%; top: 8%; width: 80vw; opacity: .35; }
  .hero-ctas .btn-lg { flex: 1 1 auto; }
  .search-field .btn { display: none; }
  .pill-all { margin-left: 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .card-title { font-size: .92rem; }
  .poster-word { font-size: .95rem; }
  .pillars { grid-template-columns: 1fr; }
  .pillar-card { min-height: 220px; }
  .access-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .row-track { grid-auto-columns: 68vw; gap: 12px; }
  .row-arrow { display: none; }
  .card-play { display: none; }
  .bubble { max-width: 88%; }
  .answer-options { justify-content: flex-start; }
  .spotlight-art { opacity: .5; right: -10%; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}
@media (hover: none) {
  .row-arrow { display: none; }
}


/* ---- Studio, private and online ---- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%); color: var(--text); text-decoration: none; transition: transform .4s var(--ease), border-color .4s var(--ease); overflow: hidden; }
.way-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--watercolour); opacity: .7; }
.way-card:hover { transform: translateY(-5px); border-color: rgba(60, 200, 212, .4); }
.way-card h3, .service-group h3, .package h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 4px 0 0; }
.way-card p { color: var(--muted); margin: 0 0 auto; }
.way-card .pillar-count { color: var(--accent); margin-top: 12px; }
.service-icon { color: var(--accent); }
.way-private .service-icon, .service-private .service-icon { color: #ef6fa3; }
.way-online .service-icon, .service-online .service-icon { color: var(--leaf); }
.packages-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 56px 0 18px; }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.package { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.package p { color: var(--muted); margin: 0; }
.package ul { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 8px; }
.package li { display: flex; gap: 10px; }
.package li svg { flex: none; color: var(--sage); margin-top: 4px; }
.package .btn { margin-top: auto; align-self: flex-start; }
.package-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(60, 200, 212, .12); color: var(--accent); }
.package.is-featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--watercolour) border-box; border: 1.5px solid transparent; box-shadow: 0 24px 60px -30px rgba(47, 168, 224, .6); }
.package.is-featured .package-tag { background: var(--watercolour); color: #fff; }

.studio-hero { padding: calc(var(--header-h) + 56px) 0 24px; background: radial-gradient(70% 60% at 85% 10%, rgba(200, 54, 140, .16), transparent 60%), radial-gradient(60% 60% at 10% 0%, rgba(60, 200, 212, .14), transparent 60%); }
.studio-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.studio-title { font-size: clamp(2.2rem, 4.8vw, 3.8rem); max-width: 18ch; line-height: 1.12; margin-bottom: 22px; }
.studio-title em { font-style: italic; font-weight: 300; background: linear-gradient(100deg, #f07ab0, #a79cff 30%, #6cc8ff 55%, #5fe0d6 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.studio-hero-copy p:not(.eyebrow) { color: var(--muted); max-width: 58ch; }
.studio-hero-copy .lead { color: var(--text); font-size: 1.15rem; }
.studio-hero-copy .hero-ctas { margin: 28px 0 0; }
.studio-hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow); }
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.service-group { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 20px); }
.service-group > p { margin: 8px 0 18px; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service-list li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.service-list span { color: var(--muted); font-size: .95rem; }
.service-list .link-arrow { font-size: .88rem; margin-top: 2px; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: stretch; }
.contact-list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex: none; color: var(--accent); margin-top: 3px; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-list a { color: var(--text); font-size: 1.08rem; text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.footer-contact { grid-column: 1 / -1; font-style: normal; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer-contact a:hover { color: var(--text); }
@media (max-width: 960px) {
  .ways, .packages, .service-groups { grid-template-columns: 1fr; }
  .studio-hero-inner, .contact { grid-template-columns: 1fr; }
  .studio-hero-media { max-width: 420px; }
}

/* ==========================================================================
   Motion layer: hero entrance, ambient light, scroll reveals, hover details
   ========================================================================== */
.hero-media > video, .hero-media > img, .hero-glow { translate: 0 var(--py, 0); }
.hero-media video { animation: hero-zoom 32s ease-in-out infinite alternate; transform-origin: 60% 40%; will-change: transform; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-glow { position: absolute; inset: 0; mix-blend-mode: screen; pointer-events: none; }
.hero-glow span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32; animation: drift 24s ease-in-out infinite alternate; }
.hero-glow span:nth-child(1) { width: 44vw; height: 44vw; right: -8vw; top: -12vw; background: radial-gradient(circle, #3cc8d4 0%, rgba(60, 200, 212, 0) 70%); }
.hero-glow span:nth-child(2) { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw; background: radial-gradient(circle, #c2368a 0%, rgba(200, 54, 140, 0) 70%); animation-duration: 30s; opacity: .22; }

/* Headline: each line rises out of a mask */
.hero-title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .line > * { display: inline-block; }
.js .hero-title .line > * { transform: translateY(105%); animation: line-up 1.1s var(--ease) var(--d, 0s) forwards; }
@keyframes line-up { to { transform: none; } }
.hero-title em {
  background: linear-gradient(100deg, #f07ab0 0%, #a79cff 22%, #6cc8ff 42%, #5fe0d6 62%, #8fe6a4 80%, #f07ab0 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: line-up 1.1s var(--ease) var(--d, 0s) forwards, shimmer 9s ease-in-out 2s infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
.js .hero-in { opacity: 0; transform: translateY(18px); animation: fade-up .9s var(--ease) var(--d, 0s) forwards; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* A dot that breathes at about six breaths a minute */
.breath-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--magenta)); margin-right: 10px; vertical-align: middle; position: relative; top: -1px; box-shadow: 0 0 0 0 rgba(60, 200, 212, .6); animation: breath 10s ease-in-out infinite; }
@keyframes breath { 0%, 100% { transform: scale(.8); box-shadow: 0 0 0 0 rgba(60, 200, 212, .5); } 45% { transform: scale(1.25); box-shadow: 0 0 0 10px rgba(60, 200, 212, 0); } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid rgba(225, 248, 250, .45); border-radius: 14px; opacity: 0; animation: fade-up 1s var(--ease) 1.6s forwards; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--text); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.scroll-cue:hover { border-color: var(--accent); }

/* Scroll reveals (only when JS is on, so nothing is hidden without it) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-scale { transform: scale(.96) translateY(20px); }

/* Meet Carmen: the small photos float gently */
.meet-accent-a { animation: float-a 9s ease-in-out infinite; }
.meet-accent-b { animation: float-b 11s ease-in-out infinite; }
@keyframes float-a { 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes float-b { 50% { transform: translateY(8px) rotate(1.5deg); } }

/* Pillar cards: a soft light follows the pointer */
.pillar-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), hsla(calc(var(--h) + 20), 80%, 75%, .16), transparent 60%); }
.pillar-card:hover::before { opacity: 1; }
.pillar-card > :not(.pillar-photo) { position: relative; z-index: 2; }

/* Primary buttons: a light sweep on hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }

@media (max-width: 760px) {
  .scroll-cue { display: none; }
  .hero-glow span { filter: blur(50px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-in, .js .reveal { opacity: 1; transform: none; }
  .js .hero-title .line > * { transform: none; }
  .hero-media video { transform: none; }
}


/* Brand watercolour touches */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--watercolour); opacity: 0; transition: opacity .4s var(--ease); }
.site-header.is-scrolled::after { opacity: .7; }
.badge-soon { background: rgba(210, 60, 143, .85); color: #fff; }
.setup-logo { display: block; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; }

@media (max-width: 440px) {
  .brand { gap: 8px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-word { font-size: 1.02rem; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 12px; }
}
@media (max-width: 380px) {
  .brand-logo { width: 30px; height: 30px; }
  .brand-word { font-size: .92rem; }
  .header-actions .btn-sm { padding: 7px 10px; font-size: .82rem; }
}
@media (max-width: 345px) {
  .site-header .brand-word { display: none; }
}

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