/* Tkween Academy - public site
   Radius rule: buttons = pill, cards/panels = 22px, inputs = 12px.
   One accent: brand crimson. Logo ring colors appear only as program/brand art. */

@font-face { font-family: 'Readex'; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(../fonts/readex-pro-arabic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Readex'; font-style: normal; font-display: swap; font-weight: 160 700;
  src: url(../fonts/readex-pro-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }

:root {
  --brand: #9b1730;
  --brand-ink: #7a1024;
  --brand-soft: #f6e8eb;
  --teal: #02ae9e; --yellow: #fdbb03; --blue: #0080d3; --purple: #b82a90; --grey: #8a8d92;
  --bg: #fbfafa;
  --surface: #ffffff;
  --surface-2: #f3f1f2;
  --ink: #1d1a1c;
  --ink-2: #57525a;
  --line: #e7e3e5;
  --shadow: 0 1px 2px rgb(60 20 30 / .05), 0 12px 40px -12px rgb(60 20 30 / .18);
  --r-card: 22px; --r-input: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --nav-h: 68px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --brand: #d0344f; --brand-ink: #f07088; --brand-soft: #3a1820;
  --bg: #141113; --surface: #1d191c; --surface-2: #252024;
  --ink: #f2eef0; --ink-2: #b7aeb4; --line: #342d32;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -12px rgb(0 0 0 / .6);
  color-scheme: dark;
}
/* Theme switch: smooth colour cross-fade only while switching */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, fill 400ms ease !important;
}
.theme-btn { width: 42px; height: 42px; border-radius: 999px; border: 0; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--ink); cursor: pointer; transition: transform 160ms var(--ease-out); }
.theme-btn:active { transform: scale(.94); }
.theme-btn .ico { width: 20px; height: 20px; transition: transform 500ms var(--ease-out), opacity 300ms ease; }
.theme-btn .ico--moon, [data-theme="dark"] .theme-btn .ico--sun { display: block; }
.theme-btn .ico--sun, [data-theme="dark"] .theme-btn .ico--moon { display: none; }
/* KORENA credit: show the variant that fits the active theme */
.credit { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; transition: opacity 200ms ease; }
.credit:hover { opacity: .8; }
.credit img { height: 30px; width: auto; }
.credit .on-dark, [data-theme="dark"] .credit .on-light { display: none; }
[data-theme="dark"] .credit .on-dark { display: block; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Readex', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 17px; line-height: 1.75; font-weight: 340;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -0.025em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--lg { width: 30px; height: 30px; }
.empty { display: flex; gap: 10px; align-items: center; color: var(--ink-2); padding: 24px 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--surface); --fg-btn: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg-btn); color: var(--fg-btn); font: inherit; font-weight: 500; font-size: 16px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { --bg-btn: var(--brand); --fg-btn: #fff; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn--ghost { --bg-btn: transparent; border-color: color-mix(in srgb, var(--ink) 22%, transparent); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--brand-ink); }
  [data-theme="dark"] .btn--primary:hover { background: #b52541; }
  .btn--ghost:hover { border-color: var(--ink); }
}
.badge { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: transform 300ms var(--ease-out); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__inner {
  height: var(--nav-h); width: min(1240px, 100% - 24px); margin: 10px auto 0; padding-inline: 14px 10px;
  display: flex; align-items: center; gap: 24px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 30px -18px rgb(60 20 30 / .35);
}
@media (prefers-reduced-transparency: reduce) { .nav__inner { background: var(--surface); backdrop-filter: none; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { width: 40px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-2); transition: color 200ms ease, background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); background: var(--surface-2); } }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .lang:hover { color: var(--ink); background: var(--surface-2); } }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.mobile-menu { width: min(1240px, 100% - 24px); margin: 8px auto 0; padding: 10px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); display: grid; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-size: 17px; }
.mobile-menu a:active { background: var(--surface-2); }
@media (max-width: 960px) {
  .nav__links, .lang { display: none; }
  .nav__actions { margin-inline-start: auto; }
  .nav__burger { display: inline-flex; }
}
@media (max-width: 420px) { .brand__name { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: center; overflow: hidden; padding-top: calc(var(--nav-h) + 30px); padding-bottom: 60px;
  background:
    radial-gradient(60% 50% at 18% 60%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%),
    radial-gradient(40% 40% at 85% 20%, color-mix(in srgb, var(--blue) 7%, transparent), transparent 70%);
}
.hero__canvas { position: absolute; inset-block: 0; inset-inline-end: 0; width: 58%; pointer-events: none; }
.hero__canvas canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms var(--ease-out); }
.hero__canvas.is-ready canvas { opacity: 1; }
.hero__fallback { position: absolute; width: min(70%, 420px); top: 50%; inset-inline-start: 50%; transform: translate(-50%, -50%); opacity: .95; transition: opacity 500ms ease; }
[dir="rtl"] .hero__fallback { transform: translate(50%, -50%); }
.hero__canvas.is-ready .hero__fallback { opacity: 0; }
/* RTL: copy on the right, 3D on the left */
[dir="rtl"] .hero__canvas { inset-inline-end: auto; inset-inline-start: auto; left: 0; }
[dir="ltr"] .hero__canvas { right: 0; }
.hero__grid { position: relative; z-index: 1; }
.hero__copy { max-width: 600px; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.15; font-weight: 650; }
.hero h1 .w { display: inline-block; }
.hero__sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin-top: 22px; max-width: 48ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
@media (max-width: 860px) {
  .hero { align-items: end; padding-top: calc(var(--nav-h) + 20px); }
  .hero__canvas { width: 100%; height: 52%; top: 64px; bottom: auto; left: 0; right: 0; }
  .hero__copy { padding-top: 40vh; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head h2, .about h2, .why__title, .how h2, .register h2, .contact h2 { font-size: clamp(30px, 3.6vw, 46px); }
.sec-head p { color: var(--ink-2); margin-top: 12px; font-size: 18px; }

/* About */
.about { padding: clamp(90px, 12vw, 160px) 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.about__year { position: sticky; top: calc(var(--nav-h) + 40px); }
.about__since { display: block; color: var(--ink-2); font-size: 18px; }
.about__num { display: block; font-size: clamp(90px, 13vw, 190px); line-height: 1; font-weight: 700; color: var(--brand); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.about h2 { margin-bottom: 28px; }
.scrub-text { font-size: clamp(20px, 2.1vw, 28px); line-height: 1.75; font-weight: 400; max-width: 34em; }
.scrub-text .w { opacity: .18; transition: opacity 120ms linear; }
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } .about__year { position: static; } }

/* Programs */
.programs { padding: clamp(70px, 9vw, 130px) 0; }
.pgrid { display: grid; gap: 24px; perspective: 1200px; }
.pgrid--1 { grid-template-columns: minmax(0, 720px); }
.pgrid--2 { grid-template-columns: 1.15fr 1fr; }
.pgrid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .pgrid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .pgrid--2, .pgrid--3 { grid-template-columns: 1fr; } }
.pcard { --c: var(--brand); --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out), box-shadow 300ms ease;
  border: 1px solid var(--line);
}
.pcard.is-tilting { transition: transform 80ms linear, box-shadow 300ms ease; }
.pcard__link { display: grid; height: 100%; grid-template-rows: auto 1fr; }
.pcard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--c) 92%, #000); }
.pcard:nth-child(2n) .pcard__media { aspect-ratio: 16 / 10.4; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.pcard__art { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at var(--mx) var(--my), color-mix(in srgb, var(--c) 40%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000) 100%); }
.pcard__art span { position: absolute; border-radius: 50%; border: 1.5px solid rgb(255 255 255 / .35); transform: translateZ(40px); }
.pcard__art span:nth-child(1) { width: 62%; aspect-ratio: 1; inset-inline-end: -12%; top: -30%; }
.pcard__art span:nth-child(2) { width: 38%; aspect-ratio: 1; inset-inline-end: 6%; top: 10%; background: rgb(255 255 255 / .12); }
.pcard__art span:nth-child(3) { width: 14%; aspect-ratio: 1; inset-inline-start: 10%; bottom: 14%; background: rgb(255 255 255 / .85); border: 0; }
.pcard__body { padding: 26px 26px 28px; display: grid; gap: 10px; align-content: start; }
.pcard h3 { font-size: 24px; }
.pcard p { color: var(--ink-2); }
.pcard__meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pcard__meta li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pcard__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--brand); }
.pcard__cta .ico { transition: transform 300ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { box-shadow: 0 30px 60px -24px color-mix(in srgb, var(--c) 45%, transparent); }
  .pcard:hover .pcard__media img { transform: scale(1.04); }
  .pcard:hover .pcard__cta .ico { transform: translateX(-4px); }
  [dir="ltr"] .pcard:hover .pcard__cta .ico { transform: translateX(4px); }
}

/* How it works */
.how { padding: clamp(80px, 10vw, 140px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.how__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 6vw, 90px); }
.how__sticky { position: sticky; top: calc(var(--nav-h) + 60px); align-self: start; }
.how__progress { margin-top: 32px; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; max-width: 320px; }
.how__progress span { display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: right; }
[dir="ltr"] .how__progress span { transform-origin: left; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how__step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px; border-radius: var(--r-card); background: var(--bg); border: 1px solid var(--line);
  opacity: .45; transform: scale(.98); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), border-color 400ms ease; }
.how__step.is-active { opacity: 1; transform: none; border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.how__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.how__icon .ico { width: 28px; height: 28px; }
.how__step h3 { font-size: 21px; margin-bottom: 6px; }
.how__step p { color: var(--ink-2); }
@media (max-width: 820px) { .how__grid { grid-template-columns: 1fr; } .how__sticky { position: static; } .how__step { opacity: 1; transform: none; } }

/* Why - bento */
.why { padding: clamp(80px, 10vw, 140px) 0; }
.why__title { margin-bottom: 40px; }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.bento__cell { border-radius: var(--r-card); padding: 30px; display: grid; gap: 10px; align-content: end; min-height: 220px; position: relative; overflow: hidden; }
.bento__cell h3 { font-size: 22px; }
.bento__cell .ico--lg { margin-bottom: auto; }
.bento__cell--a { grid-row: span 2; background: var(--brand); color: #fff; min-height: 460px; }
.bento__cell--a::after { content: ""; position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%; border: 60px solid rgb(255 255 255 / .07); inset-inline-end: -160px; top: -140px; }
.bento .bento__cell--a p { color: rgb(255 255 255 / .88); }
.bento__cell--b { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 16%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.bento__cell--b .ico--lg { color: var(--teal); }
.bento__cell--c { background: var(--surface); border: 1px solid var(--line); }
.bento__cell--c .ico--lg { color: var(--blue); }
.bento__cell--d { background: color-mix(in srgb, var(--yellow) 16%, var(--surface)); border: 1px solid var(--line); }
.bento__cell--d .ico--lg { color: #b58300; }
.bento__cell p { color: var(--ink-2); }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr; } .bento__cell--a { grid-row: auto; min-height: 280px; } .bento__cell--b { grid-column: auto; } }

/* Register */
.register { padding: clamp(80px, 10vw, 140px) 0; }
.register__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.register__intro p { color: var(--ink-2); margin-top: 14px; font-size: 18px; max-width: 36ch; }
.register__emblem { width: 180px; margin-top: 50px; filter: drop-shadow(0 20px 30px rgb(60 20 30 / .18)); }
.register__card { background: var(--surface); border-radius: var(--r-card); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) { .register__grid { grid-template-columns: 1fr; } .register__emblem { display: none; } }
.rform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field--full, .rform__foot { grid-column: 1 / -1; }
.field label { font-size: 15px; font-weight: 500; }
.field label em { font-style: normal; font-weight: 340; color: var(--ink-2); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--r-input); padding: 13px 14px; min-height: 50px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input::placeholder { color: color-mix(in srgb, var(--ink-2) 80%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field.has-error input, .field.has-error select { border-color: #c62828; }
.field__err { color: #c62828; font-size: 13px; min-height: 0; }
[data-theme="dark"] .field__err { color: #ff8a80; }
[data-theme="dark"] .field.has-error input, [data-theme="dark"] .field.has-error select { border-color: #ff8a80; }
.rform__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.rform__status { font-size: 15px; }
.rform__status.is-ok { color: #1b7f4b; } .rform__status.is-err { color: #c62828; }
[data-theme="dark"] .rform__status.is-ok { color: #6fd39b; }
[data-theme="dark"] .rform__status.is-err { color: #ff8a80; }
.rform.is-done .field, .rform.is-done .btn { display: none; }
.rform.is-done .rform__status { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .rform { grid-template-columns: 1fr; } .rform .btn { width: 100%; } }

/* Contact */
.contact { padding: 0 0 clamp(80px, 10vw, 130px); }
.contact h2 { margin-bottom: 28px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 16px; }
.contact__item { flex: 1 1 260px; display: grid; gap: 4px; padding: 26px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); transition: transform 300ms var(--ease-out), border-color 200ms ease; }
.contact__item .ico--lg { color: var(--brand); margin-bottom: 10px; }
.contact__item span { color: var(--ink-2); font-size: 15px; }
.contact__item b { font-weight: 500; font-size: 18px; text-align: start; }
@media (hover: hover) and (pointer: fine) { .contact__item:hover { transform: translateY(-3px); border-color: var(--brand); } }

/* Footer */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 30px; align-items: start; }
.footer__brand img { width: 110px; }
.footer__brand p { color: var(--ink-2); margin-top: 12px; max-width: 30ch; }
.footer__nav { display: grid; gap: 8px; }
.footer__nav a { color: var(--ink-2); } .footer__nav a:hover { color: var(--brand); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: var(--surface-2); transition: background-color 200ms ease, color 200ms ease; }
.footer__social a:hover { background: var(--brand); color: #fff; }
.footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }
.wa-float { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: #1fa855; color: #fff; box-shadow: 0 12px 30px -10px rgb(31 168 85 / .6); transition: transform 200ms var(--ease-out); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float { transition: transform 300ms var(--ease-out), opacity 300ms var(--ease-out); }
.wa-float.is-off { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-float:active { transform: scale(.95); }

/* ---------- Course page ---------- */
.chero { --c: var(--brand); position: relative; overflow: hidden; padding: calc(var(--nav-h) + 70px) 0 70px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--bg)), var(--bg)); }
.chero__bg span { position: absolute; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--c) 30%, transparent); pointer-events: none; }
.chero__bg span:nth-child(1) { width: 560px; aspect-ratio: 1; inset-inline-end: -180px; top: -200px; }
.chero__bg span:nth-child(2) { width: 300px; aspect-ratio: 1; inset-inline-end: 80px; top: 40px; background: color-mix(in srgb, var(--c) 10%, transparent); border: 0; }
.chero__grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: end; }
.crumb { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; margin-bottom: 22px; }
.crumb:hover { color: var(--c); }
.chero h1 { font-size: clamp(34px, 4.6vw, 58px); }
.chero__tag { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 44ch; }
.chero .btn--primary { --bg-btn: var(--c); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--c) 70%, transparent); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.facts div { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.facts dt { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); flex: none; }
.facts dd { margin: 0; display: grid; font-size: 15px; line-height: 1.4; }
.facts dd b { font-size: 24px; line-height: 1.1; }
.facts dd span { color: var(--ink-2); font-size: 13px; }
@media (max-width: 860px) { .chero__grid { grid-template-columns: 1fr; } }
.cbody { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 5vw, 70px); padding: 60px 0 40px; }
.cbody__main h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 56px 0 22px; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.9; }
.objectives { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.objectives li { display: flex; gap: 10px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.objectives .ico { color: var(--brand); margin-top: 5px; }
@media (max-width: 640px) { .objectives { grid-template-columns: 1fr; } }
.days { display: grid; gap: 12px; }
.day { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.day summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 22px; }
.day summary::-webkit-details-marker { display: none; }
.day__n { font-size: 14px; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.day__t { font-weight: 500; font-size: 18px; }
.day__chev { width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); transition: transform 300ms var(--ease-out); }
.day[open] .day__chev { transform: rotate(45deg); }
.day__body { padding: 0 22px 22px; }
.day__body ul { margin: 0; padding-inline-start: 20px; color: var(--ink-2); display: grid; gap: 6px; }
.day__body li::marker { color: var(--c); }
.day__out { display: flex; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, transparent); font-size: 15px; flex-wrap: wrap; }
.day__out .ico { color: var(--c); }
.cbody__side { display: grid; gap: 14px; align-content: start; position: sticky; top: calc(var(--nav-h) + 30px); align-self: start; }
.side-card { padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.side-card h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 500; margin-bottom: 8px; }
.side-card--accent { background: var(--c); color: #fff; border: 0; }
.side-card--accent h3 { color: rgb(255 255 255 / .85); }
@media (max-width: 960px) { .cbody { grid-template-columns: 1fr; } .cbody__side { position: static; } }
.notfound { padding: calc(var(--nav-h) + 120px) 0 120px; display: grid; gap: 24px; justify-items: start; }

/* ---------- Motion (JS adds .js; content stays visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); }
  .js [data-hero-item], .js [data-hero-title] { opacity: 0; }
  .js [data-float] { animation: float 7s var(--ease-in-out) infinite alternate; }
}
@keyframes float { from { transform: translateY(-8px) rotate(-2deg); } to { transform: translateY(8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation: none !important; }
  .scrub-text .w { opacity: 1 !important; }
  .how__step { opacity: 1; transform: none; }
}

/* Theme switch circular reveal (View Transitions, theme toggle only) */
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.vt-theme::view-transition-new(root) { animation: theme-reveal 650ms cubic-bezier(0.77, 0, 0.175, 1); }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--tx) var(--ty)); } to { clip-path: circle(var(--tr) at var(--tx) var(--ty)); } }

/* ---------- Cinematic course hero (when the program has an image) ---------- */
.chero--cine { min-height: min(92dvh, 860px); display: grid; align-items: end; padding-bottom: 56px; background: #0d0b0c; color: #fff; isolation: isolate; }
.chero--cine .cine { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cine__media { position: absolute; inset: -6% 0; will-change: transform; }
.cine__media img { width: 100%; height: 100%; object-fit: cover; }
.cine__shade { position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 9%, transparent 26%),
    linear-gradient(to left, rgb(8 6 7 / .78) 0%, rgb(8 6 7 / .35) 45%, transparent 75%),
    linear-gradient(180deg, rgb(8 6 7 / .55) 0%, transparent 28%); }
[dir="ltr"] .cine__shade { background:
    linear-gradient(0deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 9%, transparent 26%),
    linear-gradient(to right, rgb(8 6 7 / .78) 0%, rgb(8 6 7 / .35) 45%, transparent 75%),
    linear-gradient(180deg, rgb(8 6 7 / .55) 0%, transparent 28%); }
.cine__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgb(0 0 0 / .45) 100%); }
.cine__bar { position: absolute; inset-inline: 0; height: 7vh; background: #000; transform-origin: center; }
.cine__bar--top { top: 0; transform: scaleY(0); transform-origin: top; }
.cine__bar--bottom { bottom: 0; transform: scaleY(0); transform-origin: bottom; }
.chero--cine .chero__grid { align-items: end; }
.chero--cine h1 { font-size: clamp(36px, 5.6vw, 72px); text-shadow: 0 2px 30px rgb(0 0 0 / .35); }
.chero--cine .chero__tag, .chero--cine .crumb { color: rgb(255 255 255 / .82); }
.chero--cine .crumb:hover { color: #fff; }
.chero--cine .facts div { background: rgb(18 14 16 / .48); border-color: rgb(255 255 255 / .14); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); color: #fff; }
.chero--cine .facts dt { background: color-mix(in srgb, var(--c) 35%, transparent); color: #fff; }
.chero--cine .facts dd span { color: rgb(255 255 255 / .7); }
.chero--cine .badge { background: rgb(255 255 255 / .14); color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .cine__media img { animation: kenburns 2.4s cubic-bezier(0.23, 1, 0.32, 1) both; }
  .cine__bar--top, .cine__bar--bottom { animation: letterbox 1.6s cubic-bezier(0.77, 0, 0.175, 1) both; }
}
@keyframes kenburns { from { transform: scale(1.14); filter: brightness(.55) saturate(.8); } to { transform: scale(1); filter: none; } }
@keyframes letterbox { 0% { transform: scaleY(1); } 55% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@media (max-width: 860px) {
  .chero--cine { min-height: 100dvh; padding-top: calc(var(--nav-h) + 40px); }
  .cine__shade { background: linear-gradient(0deg, var(--bg) 0%, rgb(8 6 7 / .7) 45%, rgb(8 6 7 / .3) 100%) !important; }
}
