/* =========================================================================
   Kalons International — stylesheet
   Palette comes straight from the logo: plum #580389 and black.
   ========================================================================= */

@view-transition { navigation: auto; }

:root {
  --plum: #580389;
  --plum-deep: #33014F;
  --orchid: #C08AE6;
  --lilac: #EEE4F6;
  --blush: #F2C9B8;
  --pearl: #FBF8FC;
  --black: #000000;
  --text: #170C22;
  --muted: #5F5369;
  --line: rgba(88, 3, 137, .14);
  --white: #FFFFFF;
  --ok: #157A4A;
  --bad: #B3261E;

  --f-display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* type scale (1.25 minor third-ish, fluid at the top) */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-lg: 1.25rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-2xl: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --t-3xl: clamp(2.4rem, 1.2rem + 4.2vw, 4.75rem);
  --t-hero: clamp(3rem, 1rem + 6.4vw, 6rem);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--plum); color: var(--white); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--pad), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--black); color: var(--white); padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { left: 12px; }
.ic { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--plum); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg);
  font: 600 var(--t-sm)/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
  position: relative; isolation: isolate; overflow: hidden;
}
.btn-sm { min-height: 42px; padding: 0 1.15rem; }
.btn-solid:hover { box-shadow: 0 10px 30px -10px rgba(88, 3, 137, .7); }
.btn-solid::after { /* shimmer sweep on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-solid:hover::after { transform: translateX(120%); }
.btn-ghost { --bg: transparent; --fg: var(--text); border-color: rgba(23, 12, 34, .22); }
.btn-ghost:hover { --bg: var(--text); --fg: var(--white); }
.btn-glow { --bg: rgba(255,255,255,.08); --fg: var(--white); border-color: rgba(255,255,255,.22); backdrop-filter: blur(8px); }
.btn-glow:hover { --bg: var(--white); --fg: var(--black); }
.btn-light { --bg: var(--white); --fg: var(--black); }
.btn-light:hover { --bg: var(--orchid); }
.btn-block { width: 100%; }
.link { color: var(--plum); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--pad) 0;
  view-transition-name: site-header;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem;
  padding: 8px 8px 8px 22px; min-height: 64px;
  border-radius: 999px;
  background: rgba(251, 248, 252, .72);
  border: 1px solid rgba(88, 3, 137, .1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 40px -24px rgba(51, 1, 79, .45);
  transition: background .4s var(--ease), transform .5s var(--ease);
}
.site-header.is-hidden .nav-pill { transform: translateY(-140%); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; gap: .25rem; margin-left: auto; }
.nav-links a {
  position: relative; padding: .55rem .85rem; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a:hover { background: var(--lilac); }
.nav-links a[aria-current="page"] { background: var(--black); color: var(--white); }
.nav-cta { margin-left: .25rem; }
.nav-toggle { display: none; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 45;
  background: var(--black); color: var(--white);
  padding: calc(env(safe-area-inset-top, 0px) + 110px) var(--pad) calc(env(safe-area-inset-bottom, 0px) + 32px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 48px) 48px);
  transition: clip-path .6s var(--ease);
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 48px) 48px); }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  font-family: var(--f-display); font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 500;
  text-decoration: none; padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav nav a[aria-current="page"] { color: var(--orchid); }
.mobile-nav-foot { display: grid; gap: .6rem; font-size: var(--t-sm); color: rgba(255,255,255,.7); }
.mobile-nav-foot a { display: flex; gap: .6rem; align-items: center; text-decoration: none; }

@media (max-width: 1080px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-content: center; gap: 6px; margin-left: auto;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--black);
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle[aria-expanded="true"] { background: var(--plum); }
  .menu-open .nav-pill { background: rgba(255,255,255,.95); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-dark { background: var(--black); color: var(--white); }
.section-lilac { background: var(--lilac); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--t-2xl); max-width: 18ch; }
.section-head p { max-width: 46ch; color: var(--muted); margin: 0; }
.section-dark .section-head p { color: rgba(255,255,255,.66); }
.prose-narrow { max-width: 62ch; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 5vh) 0 6vh;
  display: grid; align-items: center; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero h1 {
  font-size: var(--t-hero); font-weight: 600; letter-spacing: -.035em; line-height: 1.02;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero-lede { font-size: var(--t-lg); color: var(--muted); max-width: 40ch; margin: 1.6rem 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { margin-top: 2rem; font-size: var(--t-sm); color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.hero-note a { color: var(--plum); font-weight: 600; }

/* Page-load sequence: the only orchestrated moment on the site */
.js .hero h1 .line > span { transform: translateY(105%); }
.js .hero-lede, .js .hero-actions, .js .hero-note { opacity: 0; transform: translateY(14px); }
.js .compact-stage { opacity: 0; transform: scale(.88) rotate(-8deg); }
.is-loaded .hero h1 .line > span { transform: none; transition: transform 1s var(--ease); }
.is-loaded .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.is-loaded .hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.is-loaded .hero h1 .line:nth-child(4) > span { transition-delay: .24s; }
.hero h1 .line:nth-child(even) { padding-left: .9em; }
.is-loaded .hero-lede, .is-loaded .hero-actions, .is-loaded .hero-note { opacity: 1; transform: none; transition: opacity .8s var(--ease) .45s, transform .8s var(--ease) .45s; }
.is-loaded .hero-actions { transition-delay: .55s; }
.is-loaded .hero-note { transition-delay: .65s; }
.is-loaded .compact-stage { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) .1s, transform 1.4s var(--ease) .1s; }

/* The compact: a pressed-pigment pan with live colour moving inside it */
.compact-stage { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin-inline: auto; perspective: 1200px; }
.compact {
  position: absolute; inset: 7%;
  border-radius: 50%;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .8s var(--ease);
}
.compact-rim {
  position: absolute; inset: -4.5%; border-radius: 50%;
  background: conic-gradient(from 210deg, #1a1a1a, #4a4a4a 12%, #0c0c0c 30%, #3d3d3d 48%, #000 66%, #5a5a5a 82%, #1a1a1a);
  box-shadow: 0 40px 80px -30px rgba(51, 1, 79, .65), 0 0 0 1px rgba(0,0,0,.4);
}
.compact-pan {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: var(--plum-deep);
  box-shadow: inset 0 6px 18px rgba(0,0,0,.55), inset 0 -2px 6px rgba(255,255,255,.12);
}
.compact-pan canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.compact-pan::before { /* pressed texture */
  content: ""; position: absolute; inset: 0; z-index: 2; mix-blend-mode: soft-light; opacity: .55;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.18) 0 1px, transparent 1px 7px);
}
.compact-pan::after { /* glossy light */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: 50%;
  background: radial-gradient(60% 45% at var(--gx, 30%) var(--gy, 22%), rgba(255,255,255,.55), transparent 60%);
  mix-blend-mode: overlay; transition: background .4s;
}
.compact-mark {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 7vw, 4.6rem);
  letter-spacing: -.04em; color: rgba(255,255,255,.16); mix-blend-mode: overlay; pointer-events: none;
}
.mini-pans { position: absolute; inset: 0; pointer-events: none; }
.mini-pan {
  pointer-events: auto; position: absolute; display: flex; align-items: center; gap: .55rem;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(88,3,137,.12); box-shadow: 0 12px 30px -16px rgba(51,1,79,.5);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: var(--text);
  transition: transform .4s var(--ease), background .3s;
}
.mini-pan:hover { transform: translateY(-3px) scale(1.04); background: var(--white); }
.mini-pan i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--c), var(--b) 45%, var(--a)); box-shadow: inset 0 -2px 4px rgba(0,0,0,.3); }
.mini-pan:nth-child(1) { top: 4%; left: -2%; }
.mini-pan:nth-child(2) { top: 18%; right: -4%; }
.mini-pan:nth-child(3) { bottom: 14%; left: -6%; }
.mini-pan:nth-child(4) { bottom: 2%; right: 6%; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); }
  .hero-grid { grid-template-columns: 1fr; }
  .compact-stage { width: min(88%, 420px); order: -1; }
  .mini-pan { font-size: var(--t-xs); }
  .mini-pan:nth-child(1) { left: -4%; }
  .mini-pan:nth-child(3) { left: -8%; }
}

/* ---------- Pigment pans (course art) ---------- */
.pan {
  aspect-ratio: 1; border-radius: 50%; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, var(--c) 0%, transparent 45%),
    radial-gradient(circle at 75% 80%, var(--a) 0%, transparent 60%),
    conic-gradient(from 140deg, var(--a), var(--b), var(--c), var(--b), var(--a));
  box-shadow: inset 0 4px 14px rgba(0,0,0,.4), inset 0 -2px 4px rgba(255,255,255,.2), 0 0 0 6px #0d0d0d, 0 0 0 7px rgba(255,255,255,.08);
}
.pan::before {
  content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: .6;
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.22) 0 1px, transparent 1px 6px);
}
.pan::after { /* shimmer that answers hover */
  content: ""; position: absolute; inset: -20%;
  background: conic-gradient(from var(--sheen, 0deg), transparent 0 70%, rgba(255,255,255,.55) 78%, transparent 86%);
  mix-blend-mode: overlay; opacity: 0; transition: opacity .4s;
}
@property --sheen { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.course-card:hover .pan::after, .course-card:focus-within .pan::after { opacity: 1; animation: sheen 1.6s var(--ease); }
@keyframes sheen { to { --sheen: 360deg; } }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.course-card {
  position: relative; display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .3s, transform .5s var(--ease);
}
.course-card:hover { border-color: var(--plum); transform: translateY(-4px); }
.course-card .pan { width: 92px; }
.course-card h3 { font-size: 1.2rem; }
.course-card p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.course-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px; font-size: var(--t-xs); font-weight: 500;
  background: var(--lilac); color: var(--plum-deep);
}
.chip .ic { width: 14px; height: 14px; }
.course-card .cat { position: absolute; top: 1.5rem; right: 1.5rem; font-size: var(--t-xs); color: var(--muted); }
.course-card-link, .post-card h3 a { text-decoration: none; }
.course-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  border: 1px solid var(--line); background: var(--white); color: var(--text);
  padding: .55rem 1.1rem; border-radius: 999px; font: 500 var(--t-sm) var(--f-body); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--plum); }
.filter[aria-pressed="true"] { background: var(--black); color: var(--white); border-color: var(--black); }
.course-card.is-hidden { display: none; }

/* ---------- Process (true sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding-left: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; border-top: 1px solid rgba(255,255,255,.16); }
.step { padding: 1.75rem 1.5rem 0 0; position: relative; counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; margin-top: -48px; margin-bottom: 1.25rem;
  background: var(--black); border: 1px solid rgba(255,255,255,.3); font-family: var(--f-display); font-size: var(--t-sm);
}
.step:first-child::before { background: var(--plum); border-color: var(--plum); }
.step h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step p { color: rgba(255,255,255,.66); font-size: var(--t-sm); margin: 0; }
.steps-wrap { padding-top: 22px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid rgba(255,255,255,.16); margin-left: 20px; }
  .step { padding: 0 0 2rem 2.25rem; }
  .step::before { position: absolute; left: -21px; top: 0; margin: 0; }
  .steps-wrap { padding-top: 0; }
}

/* ---------- Franchise ---------- */
.franchise { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.franchise h2 { font-size: var(--t-2xl); margin-bottom: 1.25rem; }
.franchise p { color: rgba(255,255,255,.72); }
.tick-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.tick-list li { display: flex; gap: .75rem; align-items: start; }
.tick-list .ic { color: var(--orchid); margin-top: .2rem; }
.city-orbit {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,3,137,.55), transparent 62%);
  display: grid; place-items: center;
}
.city-orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.city-orbit .ring:nth-child(1) { inset: 8%; }
.city-orbit .ring:nth-child(2) { inset: 16%; }
.city-orbit .ring:nth-child(3) { inset: 32%; }
.city-orbit .core { text-align: center; position: relative; z-index: 2; }
.city-orbit .core strong { display: block; font-family: var(--f-display); font-size: var(--t-2xl); }
.city-orbit .core span { color: rgba(255,255,255,.66); font-size: var(--t-sm); }
.city-dot { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); font-size: var(--t-xs); white-space: nowrap; display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.85); }
.city-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 12px var(--orchid); }
@media (max-width: 900px) { .franchise { grid-template-columns: 1fr; } .city-orbit { max-width: 420px; width: 100%; margin-inline: auto; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote { margin: 0; padding: 2rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1.5rem; font-size: var(--t-lg); line-height: 1.45; }
.quote footer { margin-top: auto; display: flex; gap: .8rem; align-items: center; font-size: var(--t-sm); }
.quote footer .pan { width: 40px; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.quote footer span { display: block; color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; }
.post-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-cover {
  aspect-ratio: 16/10; border-radius: var(--r-md); overflow: hidden; position: relative; margin-bottom: 1.1rem;
  background:
    radial-gradient(120% 90% at 15% 20%, var(--c), transparent 55%),
    radial-gradient(90% 90% at 85% 90%, var(--b), transparent 60%),
    var(--a);
}
.post-cover::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: soft-light; opacity: .5;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.25) 0 1px, transparent 1px 9px);
  transition: transform .8s var(--ease);
}
.post-card:hover .post-cover::after { transform: translateX(18px); }
.post-cover span { position: absolute; left: 1rem; bottom: 1rem; background: rgba(0,0,0,.55); color: var(--white); padding: .3rem .75rem; border-radius: 999px; font-size: var(--t-xs); backdrop-filter: blur(6px); }
.post-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card p { color: var(--muted); font-size: var(--t-sm); margin-bottom: .6rem; }
.post-meta { font-size: var(--t-xs); color: var(--muted); display: flex; gap: 1rem; }

/* ---------- Bento CTA tiles ---------- */
.tiles { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.75rem, 4vw, 3rem); min-height: 300px; display: flex; flex-direction: column; justify-content: end; text-decoration: none; }
.tile h3 { font-size: var(--t-xl); margin-bottom: .75rem; max-width: 18ch; }
.tile p { max-width: 38ch; margin-bottom: 1.5rem; }
.tile-plum { background: var(--plum); color: var(--white); }
.tile-plum p { color: rgba(255,255,255,.8); }
.tile-plum::before { content: ""; position: absolute; width: 380px; aspect-ratio: 1; border-radius: 50%; right: -170px; top: -190px; background: radial-gradient(circle at 35% 30%, var(--blush), var(--orchid) 40%, transparent 70%); opacity: .55; }
.tile-ink { background: var(--black); color: var(--white); }
.tile-ink p { color: rgba(255,255,255,.7); }
.tile .ic-big { position: absolute; top: 2rem; right: 2rem; width: 56px; height: 56px; color: var(--orchid); }
@media (max-width: 800px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Inner page head ---------- */
.page-head { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(2.5rem, 6vw, 4.5rem); }
.page-head-smear {
  position: absolute; z-index: -1; right: -10vw; top: -20vw; width: min(70vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, var(--c), var(--b) 35%, var(--a) 60%, transparent 71%);
  filter: blur(40px); opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-6vw, 4vw) scale(1.08); } }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--t-sm); color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--plum); text-decoration: underline; }
.page-title { font-size: var(--t-3xl); letter-spacing: -.035em; max-width: 16ch; view-transition-name: page-title; }
.page-lede { font-size: var(--t-lg); color: var(--muted); max-width: 52ch; margin-top: 1.4rem; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split h2 { font-size: var(--t-2xl); }
.big-statement { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.value { background: var(--pearl); padding: 2rem; }
.value .pan { width: 48px; margin-bottom: 1.25rem; }
.value h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.value p { color: var(--muted); font-size: var(--t-sm); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid rgba(255,255,255,.2); }
.timeline li { position: relative; padding: 0 0 2.25rem 2rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 14px var(--orchid); }
.timeline b { font-family: var(--f-display); font-size: var(--t-lg); display: block; margin-bottom: .25rem; }
.timeline p { color: rgba(255,255,255,.7); margin: 0; }
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.5rem; }
.member .pan { width: 100%; margin-bottom: 1rem; box-shadow: inset 0 4px 14px rgba(0,0,0,.4), 0 0 0 4px #0d0d0d; }
.member h3 { font-size: 1.05rem; }
.member p { color: var(--muted); font-size: var(--t-sm); margin: .25rem 0 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Course detail ---------- */
.course-hero { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.course-hero .pan { width: min(100%, 320px); margin-left: auto; view-transition-name: course-pan; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); margin-top: 2.5rem; overflow: hidden; }
.fact { padding: 1.1rem 1.25rem; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact span { display: flex; align-items: center; gap: .4rem; font-size: var(--t-xs); color: var(--muted); margin-bottom: .25rem; }
.fact strong { font-family: var(--f-display); font-weight: 500; font-size: 1rem; }
@media (max-width: 800px) {
  .course-hero { grid-template-columns: 1fr; }
  .course-hero .pan { width: 160px; margin: 0; order: -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.course-body { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.course-body h2 { font-size: var(--t-xl); margin: 3rem 0 1.25rem; }
.course-body h2:first-child { margin-top: 0; }
.modules { list-style: none; padding: 0; margin: 0; counter-reset: mod; border-top: 1px solid var(--line); }
.modules li { counter-increment: mod; border-bottom: 1px solid var(--line); }
.modules button {
  width: 100%; display: grid; grid-template-columns: 3rem 1fr 24px; align-items: center; gap: .75rem; text-align: left;
  padding: 1.15rem 0; background: none; border: 0; cursor: pointer; font: 600 var(--t-base) var(--f-body); color: var(--text);
}
.modules button::before { content: counter(mod, decimal-leading-zero); font-family: var(--f-display); font-size: var(--t-sm); color: var(--plum); }
.modules button .ic { transition: transform .35s var(--ease); }
.modules button[aria-expanded="true"] .ic { transform: rotate(45deg); }
.modules .panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.modules .panel > div { overflow: hidden; }
.modules .panel p { color: var(--muted); padding: 0 0 1.2rem 3.75rem; margin: 0; }
.modules li.is-open .panel { grid-template-rows: 1fr; }
.outcomes { display: flex; flex-wrap: wrap; gap: .5rem; }
.outcomes .chip { font-size: var(--t-sm); padding: .5rem .9rem; }
.enrol-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: 1.75rem; border-radius: var(--r-lg); background: var(--black); color: var(--white);
}
.enrol-card .price { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 600; letter-spacing: -.03em; }
.enrol-card .price small { display: block; font-family: var(--f-body); font-size: var(--t-xs); color: rgba(255,255,255,.6); letter-spacing: 0; font-weight: 400; margin-top: .25rem; }
.enrol-card dl { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1rem; margin: 1.5rem 0; font-size: var(--t-sm); }
.enrol-card dt { color: rgba(255,255,255,.6); }
.enrol-card dd { margin: 0; text-align: right; }
.enrol-card .btn + .btn { margin-top: .6rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .35s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; }
@media (max-width: 960px) { .course-body { grid-template-columns: 1fr; } .enrol-card { position: static; } }

/* ---------- Course finder ---------- */
.finder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.finder-progress { position: sticky; top: calc(var(--header-h) + 24px); list-style: none; margin: 0; padding: 0; counter-reset: q; }
.finder-progress li { counter-increment: q; display: flex; gap: .9rem; align-items: center; padding: .7rem 0; color: var(--muted); font-size: var(--t-sm); }
.finder-progress li::before { content: counter(q); width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-family: var(--f-display); font-size: var(--t-xs); background: var(--white); transition: background .3s, color .3s; }
.finder-progress li.is-current { color: var(--text); font-weight: 600; }
.finder-progress li.is-current::before { background: var(--plum); color: var(--white); border-color: var(--plum); }
.finder-progress li.is-done::before { content: "✓"; background: var(--black); color: var(--white); border-color: var(--black); }
.q-card { display: none; }
.q-card.is-active { display: block; animation: qin .5s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateX(24px); } }
.q-card h2 { font-size: var(--t-2xl); margin-bottom: .75rem; max-width: 20ch; }
.q-card > p { color: var(--muted); margin-bottom: 2rem; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: .75rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option label {
  display: flex; gap: 1rem; align-items: center; min-height: 84px; padding: 1rem 1.25rem; cursor: pointer;
  border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line);
  transition: border-color .25s, background .25s, transform .3s var(--ease);
}
.option label:hover { border-color: var(--plum); }
.option label b { display: block; }
.option label small { color: var(--muted); font-size: var(--t-xs); }
.option .pan { width: 40px; flex: none; box-shadow: inset 0 2px 6px rgba(0,0,0,.35); }
.option input:checked + label { border-color: var(--plum); background: var(--lilac); box-shadow: 0 0 0 1px var(--plum); }
.option input:focus-visible + label { outline: 2px solid var(--plum); outline-offset: 3px; }
.q-nav { display: flex; gap: .75rem; margin-top: 2rem; }
.q-error { color: var(--bad); font-size: var(--t-sm); margin-top: 1rem; min-height: 1.5em; }
.result-intro { margin-bottom: 2rem; }
.result-intro h2 { font-size: var(--t-2xl); margin-bottom: .75rem; }
.match-badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--plum); color: var(--white); font-size: var(--t-xs); font-weight: 600; padding: .3rem .7rem; border-radius: 999px; }
@media (max-width: 900px) {
  .finder { grid-template-columns: 1fr; }
  .finder-progress { position: static; display: flex; gap: .5rem; overflow-x: auto; }
  .finder-progress li { font-size: 0; padding: 0; }
  .finder-progress li::before { font-size: var(--t-xs); }
}

/* ---------- Certificate verification ---------- */
.verify { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.verify-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.verify-form h2 { font-size: var(--t-xl); margin-bottom: .5rem; }
.verify-form > p { color: var(--muted); margin-bottom: 1.5rem; }
.cert-input { display: flex; gap: .5rem; }
.cert-input input { flex: 1; font-family: var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 520px) { .cert-input { flex-direction: column; } }
.cert-help { font-size: var(--t-xs); color: var(--muted); margin-top: .75rem; }
.cert {
  position: relative; overflow: hidden; border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--black); color: var(--white); min-height: 380px;
}
.cert::before { /* holographic seal */
  content: ""; position: absolute; width: 320px; aspect-ratio: 1; border-radius: 50%; right: -90px; top: -90px;
  background: conic-gradient(from 0deg, #580389, #C08AE6, #F2C9B8, #7fd6ff, #C08AE6, #580389);
  filter: blur(30px); opacity: .6; animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cert > * { position: relative; }
.cert-empty { display: grid; place-content: center; text-align: center; min-height: 320px; color: rgba(255,255,255,.66); }
.cert-empty .ic { margin: 0 auto 1rem; color: var(--orchid); }
.cert-status { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; margin-bottom: 2rem; }
.cert-status.valid { background: rgba(48, 209, 120, .16); color: #7DF0AE; }
.cert-status.invalid { background: rgba(255, 90, 80, .16); color: #FF9C94; }
.cert-name { font-family: var(--f-display); font-size: var(--t-2xl); line-height: 1.05; margin-bottom: .5rem; }
.cert-course { color: rgba(255,255,255,.75); font-size: var(--t-lg); margin-bottom: 2rem; }
.cert dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.cert dt { font-size: var(--t-xs); color: rgba(255,255,255,.55); }
.cert dd { margin: .2rem 0 0; font-weight: 600; }
.cert.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(transparent, rgba(192,138,230,.35), transparent); animation: scan 1.1s var(--ease) 1; }
@keyframes scan { to { top: 100%; } }
@media (max-width: 900px) { .verify { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: var(--t-sm); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 52px; padding: .8rem 1.1rem; border-radius: var(--r-sm);
  border: 1px solid rgba(23,12,34,.18); background: var(--pearl); color: var(--text);
  font: 400 var(--t-base) var(--f-body); transition: border-color .25s, box-shadow .25s, background .25s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--plum); background: var(--white); box-shadow: 0 0 0 4px rgba(88,3,137,.12); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.25rem; border-radius: var(--r-sm); margin-bottom: 1.5rem; font-size: var(--t-sm); display: flex; gap: .6rem; align-items: start; }
.alert-ok { background: #E3F5EA; color: var(--ok); }
.alert-bad { background: #FCE8E6; color: var(--bad); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-cards { display: grid; gap: 1rem; }
.contact-card { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s; }
a.contact-card:hover { border-color: var(--plum); }
.contact-card .ic { color: var(--plum); margin-top: .2rem; }
.contact-card b { display: block; }
.contact-card span { color: var(--muted); font-size: var(--t-sm); }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); }
.map-frame { border: 0; width: 100%; aspect-ratio: 16/9; border-radius: var(--r-md); filter: grayscale(.4) contrast(1.05); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Article / legal prose ---------- */
.article { max-width: 68ch; margin-inline: auto; font-size: 1.125rem; line-height: 1.75; }
.article h2 { font-size: var(--t-xl); margin: 2.5rem 0 1rem; }
.article h3 { font-size: 1.15rem; margin: 2rem 0 .75rem; }
.article ul { padding-left: 1.25rem; }
.article li { margin-bottom: .5rem; }
.article blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--plum); font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.4; }
.article-cover { max-width: 980px; margin: 0 auto 3rem; aspect-ratio: 21/9; }
.legal-meta { font-size: var(--t-sm); color: var(--muted); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: var(--t-sm); }
.toc a { display: block; padding: .35rem 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--plum); }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; }
.legal-layout .article { margin: 0; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Marquee of centres ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.25rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 500; color: var(--plum); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--blush), var(--orchid) 50%, var(--plum)); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--black); color: rgba(255,255,255,.75); padding-top: clamp(4rem, 8vw, 6rem); }
.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 36ch; font-size: var(--t-sm); margin-bottom: 1.5rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h3 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: 600; color: var(--white); margin-bottom: 1rem; letter-spacing: 0; }
.footer-cols a, .footer-cols p { display: block; font-size: var(--t-sm); text-decoration: none; margin: 0 0 .6rem; }
.footer-cols a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--t-xs); position: relative; z-index: 1; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-word {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 22vw, 20rem); line-height: .8; letter-spacing: -.06em;
  text-align: center; margin-bottom: -.12em; user-select: none;
  background: linear-gradient(180deg, rgba(88,3,137,.9), rgba(88,3,137,0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); color: var(--white); box-shadow: 0 14px 30px -10px rgba(88,3,137,.8);
  transition: transform .4s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--plum); opacity: .5; animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 70%, 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Reveal (used sparingly, on section heads only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 80svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.notfound .pan { width: 180px; margin: 0 auto 2rem; }
.notfound h1 { font-size: var(--t-2xl); margin-bottom: 1rem; }

/* ---------- View transitions ---------- */
::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .hero h1 .line > span, .js .hero-lede, .js .hero-actions, .js .hero-note, .js .compact-stage, .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
