/* RE Consultants public site.
   Design read: redesign of an Arabic training & consulting site for Syrian professionals; trust-first, mobile-first.
   Identity comes from the logo: a true red as the primary, the logo maroon as its deep partner, silver, charcoal, near-black, white.
   Dials: variance 7, motion 5, density 4. One accent family (red to maroon). Light/dark via prefers-color-scheme.
   Radius rule: buttons and chips are pills, cards 16px, inputs 12px. */

@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(/assets/fonts/cairo-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 400; font-display: swap; src: url(/assets/fonts/cairo-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(/assets/fonts/cairo-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 700; font-display: swap; src: url(/assets/fonts/cairo-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url(/assets/fonts/cairo-arabic-800-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Cairo"; font-weight: 800; font-display: swap; src: url(/assets/fonts/cairo-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2122; }

:root {
  /* Sampled from the logo's vector file. */
  --red: #C21F1F;
  --red-bright: #DA2A26;
  --maroon: #8D2121;
  --maroon-deep: #6E0000;
  --silver: #C7C7C7;
  --charcoal: #585A5B;
  --black: #161617;
  --black-deep: #0E0E0F;

  --bg: #FFFFFF;
  --bg-soft: #F4F4F5;
  --surface: #FFFFFF;
  --line: #E4E4E6;
  --ink: var(--black);
  --ink-muted: var(--charcoal);
  --accent: #C21F1F;
  --accent-hover: #A31919;
  --accent-text: #B51C1C;
  --accent-soft: #FCEDEC;
  --accent-grad: linear-gradient(135deg, var(--red-bright), var(--red) 45%, var(--maroon));
  --on-accent: #FFFFFF;
  --accent-on-dark: #F28B82;
  --navy: var(--black);
  --navy-deep: var(--black-deep);
  --on-navy: #F2F2F3;
  --on-navy-muted: var(--silver);
  --wa: #1F7A46;
  --shadow: 0 12px 32px #1616171f;
  --radius: 16px;
  --radius-input: 12px;
  --container: 1180px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F10;
    --bg-soft: #18181A;
    --surface: #1C1C1E;
    --line: #2C2C2F;
    --ink: #F2F2F3;
    --ink-muted: #A9A9AC;
    --accent: #C92727;
    --accent-hover: #DC3A35;
    --accent-text: #F28B82;
    --accent-soft: #2E1416;
    --navy: #050506;
    --navy-deep: #050506;
    --wa: #2A9D5C;
    --shadow: 0 12px 32px #00000066;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "Cairo", "Segoe UI", Tahoma, sans-serif; font-size: 1.0625rem; line-height: 1.75; color: var(--ink); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--accent); color: var(--on-accent); padding: .5rem 1rem; border-radius: 999px; z-index: 100; }
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; justify-content: center; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.h2 { font-size: clamp(1.5rem, 3.4vw, 2.125rem); margin-bottom: clamp(20px, 3vw, 32px); }
.lead { font-size: 1.125rem; color: var(--ink-muted); max-width: 60ch; }
.on-dark { color: var(--on-navy); }
.on-dark-muted { color: var(--on-navy-muted); }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--accent-text); font-weight: 800; font-size: .95rem; }

/* Buttons: one pill shape everywhere. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border: 2px solid transparent; border-radius: 999px; font: inherit; font-weight: 800; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.btn-light { background: var(--on-navy); color: var(--black); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 18px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header: one line on desktop, menu button on phones. */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo img { width: 150px; height: auto; }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 20px; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-muted); }
.site-nav ul a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a[aria-current="page"]:not(.btn) { color: var(--accent-text); background: var(--accent-soft); }
.nav-toggle { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--bg-soft); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 14px; }
}

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); padding-block: 48px 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { width: 160px; margin-bottom: 12px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a, .footer-contact a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: 8px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact a, .fc-row { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: var(--accent-on-dark); }
.footer-contact .social { gap: 14px; margin-top: 4px; }
.copyright { margin-top: 32px; font-size: .9rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (min-width: 761px) { .site-footer { padding-bottom: 48px; } }

/* ---------- Course landing page ----------
   Desktop: content column plus a booking card that stays in view. The hero is a full-bleed dark band
   (shadow + clip trick), and the booking card floats over it. Phones: one column, card last, sticky bar. */
.c-page { overflow-x: clip; }
.c-grid { display: grid; gap: 0 48px; align-items: start; }
@media (min-width: 1000px) { .c-grid { grid-template-columns: minmax(0, 1fr) 380px; } }
.c-main { min-width: 0; }
/* Phones and tablets: lift the booking card to sit right under the hero (ad visitors land on the form). */
@media (max-width: 999px) {
  .c-main { display: contents; }
  .c-hero { order: 0; }
  .c-aside { order: 1; padding-block: 20px 8px; }
  .c-block { order: 2; }
}

.c-hero { position: relative; isolation: isolate; padding-block: clamp(32px, 6vw, 72px) clamp(36px, 6vw, 72px); color: var(--on-navy); }
/* One layer, wider than the column, paints the whole band; .c-page clips it at the screen edges. */
.c-hero::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vmax; pointer-events: none;
  background: radial-gradient(60% 90% at 85% 0%, color-mix(in srgb, var(--red) 34%, transparent), transparent 70%),
              radial-gradient(40% 60% at 10% 100%, color-mix(in srgb, var(--maroon) 30%, transparent), transparent 70%), var(--black); }
@media (prefers-color-scheme: dark) { .c-hero::before { background-color: #0A0A0B; } }
.partner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.iso-logo { width: 112px; height: auto; background: #fff; border-radius: 10px; padding: 5px 8px; }
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 16px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-weight: 700; font-size: .95rem; }
.c-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.2; color: #fff; }
.title-en { display: inline-block; margin-top: 10px; padding-bottom: 4px; border-bottom: 3px solid var(--red-bright); font-weight: 800; font-size: 1.2rem; color: var(--accent-on-dark); }
.c-hero .lead { margin-top: 16px; color: var(--silver); font-size: 1.2rem; max-width: 46ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff1f; color: #fff; font-weight: 700; font-size: .95rem; }
.chips .icon { color: var(--accent-on-dark); }
.who-chip { display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #ffffff0d; border: 1px solid #ffffff1a; }
.who-faces { display: flex; }
.who-face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; border: 3px solid var(--red); background: #F4F4F5; display: grid; place-items: center; }
.who-face + .who-face { margin-inline-start: -14px; }
.who-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.who-initial { font-weight: 800; color: var(--black); }
.who-text { display: grid; line-height: 1.35; }
.who-text small { color: var(--silver); font-size: .85rem; }
.who-text strong { font-size: 1.05rem; }
.btn-ghost-dark { border-color: #ffffff40; color: #fff; background: transparent; }
.btn-ghost-dark:hover { border-color: #fff; }

.c-block { padding-block: clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line); }
.c-block:last-child { border-bottom: 0; }

.benefit-list { display: grid; gap: 12px; }
@media (min-width: 700px) { .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.benefit-list li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--bg-soft); font-weight: 700; font-size: 1.05rem; }
.tick { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-grad); color: #fff; }

/* Topics: a numbered timeline. */
.topic-list { position: relative; display: grid; gap: 4px; }
.topic-list::before { content: ""; position: absolute; top: 22px; bottom: 22px; inset-inline-start: 21px; width: 2px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 15%, transparent)); }
.topic-list li { position: relative; display: flex; align-items: center; gap: 18px; padding: 12px 0; }
.num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.topic-list li:hover .num { background: var(--accent); color: #fff; }
.topic-body { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); }
.topic-body h3 { font-size: 1.1rem; }
.detail { color: var(--ink-muted); font-size: .98rem; }
.who { color: var(--accent-text); font-weight: 700; font-size: .92rem; }
.topic-hours { flex: none; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: .88rem; }

.trainer-cards { display: grid; gap: 16px; }
@media (min-width: 700px) { .trainer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trainer-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.trainer-top { display: flex; gap: 16px; align-items: center; }
.avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #F4F4F5; border: 3px solid var(--accent); display: grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.avatar span { font-size: 2rem; font-weight: 800; color: var(--black); }
.trainer-card h3 { font-size: 1.15rem; }
.trainer-card h3 a { text-decoration: none; }
.trainer-card h3 a:hover { color: var(--accent-text); }
.headline { color: var(--ink-muted); font-size: .95rem; }
.years strong { color: var(--accent-text); font-size: 1.1rem; }
.creds { margin-top: 14px; padding-inline-start: 1.2em; list-style: disc; display: grid; gap: 4px; color: var(--ink); font-size: .96rem; }
.creds li::marker { color: var(--accent); }

.detail-grid { margin: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.detail-grid div { padding: 18px 20px; border-radius: var(--radius); background: var(--bg-soft); }
.detail-grid dt { display: flex; align-items: center; gap: 8px; color: var(--accent-text); font-weight: 800; }
.detail-grid dd { margin: 4px 0 0; font-weight: 700; }

.c-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.c-faq summary { cursor: pointer; font-weight: 800; }
.c-faq details p { margin-top: 10px; color: var(--ink-muted); }

/* Booking card */
.c-aside { padding-block: 24px 48px; }
@media (min-width: 1000px) { .c-aside { position: sticky; top: 84px; z-index: 2; padding-block: 32px; } }
.book-card { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px #16161729; overflow: hidden; scroll-margin-top: 90px; }
@media (prefers-color-scheme: dark) { .book-card { box-shadow: 0 24px 60px #000000a0; } }
.book-head { padding: 22px 24px 18px; background: var(--accent-grad); color: #fff; }
.book-head h2 { font-size: 1.5rem; }
.book-head p { color: #FBE3E1; font-weight: 700; }
.book-facts { display: grid; gap: 8px; padding: 16px 24px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.book-facts li { display: flex; align-items: center; gap: 8px; }
.book-facts .icon { color: var(--accent-text); }
.book-card .form-card { margin: 0; padding: 18px 24px 8px; border-radius: 0; gap: 14px; }
.book-card .field label { font-size: .95rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 380px) { .field-row { grid-template-columns: 1fr; } }
.btn-lg { min-height: 56px; font-size: 1.1rem; box-shadow: 0 10px 24px color-mix(in srgb, var(--red) 35%, transparent); }
.book-note { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-muted); font-size: .86rem; line-height: 1.6; }
.book-note .icon { margin-top: 3px; }
.book-wa { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px 24px 20px; color: var(--wa); font-weight: 800; text-decoration: none; }
.book-wa:hover { text-decoration: underline; }
.closed-box .ctas { display: grid; padding: 0 24px 24px; }

/* Registration */
.form-card { margin-top: 24px; padding: clamp(20px, 4vw, 32px); border-radius: var(--radius); background: var(--surface); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { color: var(--accent-text); }
.opt { color: var(--ink-muted); font-weight: 400; font-size: .9rem; }
input, textarea, select { width: 100%; min-height: 50px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--radius-input); font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); }
textarea { min-height: 130px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-muted); opacity: .8; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[aria-invalid="true"] { border-color: var(--accent); }
input[dir="ltr"] { text-align: right; }
.error { color: var(--accent-text); font-weight: 700; font-size: .92rem; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.form-error[hidden] { display: none; }

/* Sticky action bar on phones */
.sticky-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); box-shadow: 0 -6px 20px var(--black)1f; }
@media (min-width: 761px) { .sticky-bar { display: none; } }

/* Message pages */
.message-page { min-height: 60vh; display: grid; align-items: center; }
.message-page .ctas { justify-content: center; }
.message-page .lead { margin-inline: auto; margin-top: 12px; }
.tick-big { width: 76px; height: 76px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.code-404 { font-size: 4rem; font-weight: 800; color: var(--accent-text); line-height: 1; margin-bottom: 8px; }

/* Reveal on scroll: only hides content once JS has confirmed it can reveal it. */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
  .js-reveal .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- Shared page parts ---------- */
.page-hero { padding-block: clamp(40px, 7vw, 80px) clamp(24px, 4vw, 40px); background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .lead { margin-top: 12px; }
.soft { background: var(--bg-soft); }
.h3 { font-size: 1.3rem; margin-bottom: 16px; }
.prose { max-width: 65ch; color: var(--ink); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 800; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.dot-list { display: grid; gap: 6px; padding-inline-start: 1.2em; list-style: disc; }
.dot-list li::marker { color: var(--accent); }
.tag-closed, .tag-soon { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 800; }
.tag-closed { background: var(--bg-soft); color: var(--ink-muted); border: 1px solid var(--line); }
.tag-soon { background: var(--accent-soft); color: var(--accent-text); }
.service-icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }

/* ---------- Home ---------- */
/* Course mosaic: one featured tile plus the rest; one cell per course. */
.mosaic { display: grid; gap: 16px; }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); }
  .mosaic .tile-big { grid-row: span 2; }
  .mosaic-1 { grid-template-columns: 1.3fr 1fr; }
  .mosaic-3 .tile:last-child { grid-column: 2 / -1; }
}

/* Tracks: swipeable chips on phones, wrapped on desktop. */
.home-tracks { background: var(--bg-soft); }
.track-chips { display: flex; gap: 12px; margin-top: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
@media (min-width: 900px) { .track-chips { flex-wrap: wrap; overflow: visible; } }
.track-chips li { flex: none; scroll-snap-align: start; }
.track-chips a { display: grid; padding: 14px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.track-chips a:hover { border-color: var(--accent); }
.track-chips span { font-size: .85rem; color: var(--ink-muted); font-weight: 700; }

/* Services: sticky intro beside a list. */
.services-split { display: grid; gap: 32px; }
@media (min-width: 900px) { .services-split { grid-template-columns: .8fr 1.2fr; gap: 64px; } .services-intro { position: sticky; top: 100px; align-self: start; } }
.services-intro .btn { margin-top: 20px; }
.service-list { display: grid; gap: 22px; }
.service-list li { display: flex; gap: 16px; align-items: flex-start; }
.service-list h3 { font-size: 1.15rem; }
.service-list p { color: var(--ink-muted); }

/* Trainers row */
.portrait-row, .trainer-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .portrait-row, .trainer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.portrait-row a, .trainer-grid a { display: grid; justify-items: center; gap: 4px; text-align: center; text-decoration: none; }
.portrait { width: min(100%, 170px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #F4F4F5; border: 4px solid var(--accent); display: grid; place-items: center; margin-bottom: 8px; transition: transform .2s; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.portrait .initial, .trainer-photo .initial { font-size: 3rem; font-weight: 800; color: var(--black); }
a:hover .portrait { transform: scale(1.03); }
.portrait-row strong, .trainer-grid strong { font-size: 1.1rem; }
.portrait-row span:last-child, .trainer-grid span:last-child { color: var(--ink-muted); font-size: .92rem; }

.slogan-band { background: var(--navy); padding-block: clamp(40px, 7vw, 72px); }
.slogan-band p { color: var(--on-navy); font-size: clamp(1.4rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.5; max-width: 30ch; }

.contact-strip { display: grid; gap: 16px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--accent-soft); }
@media (min-width: 900px) { .contact-strip { grid-template-columns: 1fr auto; } .contact-strip .ctas { margin-top: 0; } }
.contact-strip .h2 { margin-bottom: 8px; }

/* ---------- About / services / courses / trainer / contact ---------- */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; } }
.mission-list { margin: 0; display: grid; gap: 16px; }
.mission-list div { padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
.mission-list dt { font-weight: 800; color: var(--accent-text); }
.mission-list dd { margin: 6px 0 0; }
.track-columns { display: grid; gap: 28px; }
@media (min-width: 760px) { .track-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.track-columns h3 { font-size: 1.15rem; margin-bottom: 10px; }

.service-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-grid li:first-child { grid-column: 1 / -1; } }
.service-grid li { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.service-grid li:first-child { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.service-grid li:first-child .service-icon { background: #ffffff1a; color: #fff; }
.service-grid li:first-child .en, .service-grid li:first-child p:last-child { color: var(--on-navy-muted); }
.service-grid h2 { font-size: 1.3rem; margin-top: 14px; }
.service-grid .en { font-size: .9rem; color: var(--ink-muted); text-align: right; }
.service-grid p:last-child { margin-top: 8px; color: var(--ink-muted); }

.track-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; }
.track-filter a { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.track-filter a:hover { border-color: var(--accent); }
.track-filter span { color: var(--accent-text); }
.track-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.course-rows { display: grid; gap: 12px; }
.course-rows a { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.course-rows a:hover { border-color: var(--accent); }
.cr-main { flex: 1; min-width: 0; }
.cr-main h3 { font-size: 1.15rem; }
.cr-main p { color: var(--ink-muted); font-size: .95rem; }
.cr-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; color: var(--ink-muted); font-size: .9rem; }
.cr-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cr-go { color: var(--accent-text); }
@media (max-width: 600px) { .course-rows a { flex-direction: column; align-items: flex-start; } .cr-meta { justify-content: flex-start; } }

.trainer-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .trainer-layout { grid-template-columns: 320px 1fr; gap: 56px; } }
.trainer-photo { aspect-ratio: 1; max-width: 320px; border-radius: 50%; overflow: hidden; border: 6px solid var(--accent); background: #F4F4F5; display: grid; place-items: center; }
.trainer-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.trainer-info h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.trainer-info .lead { margin-block: 14px; }
.stat { margin-bottom: 16px; font-weight: 700; }
.stat strong { color: var(--accent-text); font-size: 1.6rem; }
.trainer-info .prose { margin-top: 18px; }

.contact-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--accent-text); }
.map { width: 100%; aspect-ratio: 4 / 3; margin-top: 24px; border: 0; border-radius: var(--radius); background: var(--bg-soft); }
.form-card.bordered { margin-top: 0; border: 1px solid var(--line); }
.form-card .h3 { margin-bottom: 0; }
.notice-ok { padding: 14px 16px; border-radius: var(--radius); background: #e5f4ea; color: #1f6a3c; font-weight: 700; }
@media (prefers-color-scheme: dark) { .notice-ok { background: #12352a; color: #8fe0b0; } }

/* Shown after a no-JavaScript contact form post (redirect to /contact/?sent=1#sent). */
.sent-note { display: none; margin-bottom: 16px; }
.sent-note:target { display: block; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Services: one panel that overlaps the bottom of the hero (Apex-style), not five floating cards. */
.services-band { background: var(--bg-soft); padding-bottom: clamp(32px, 5vw, 56px); }
.services-overlap { position: relative; z-index: 3; margin-top: -20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.svc { display: grid; gap: 10px; align-content: start; padding: 22px 18px; text-decoration: none; border-inline-start: 1px solid var(--line); transition: background-color .2s; }
.svc:first-of-type { border-inline-start: 0; }
.svc:hover { background: var(--accent-soft); }
.svc strong { font-size: 1rem; line-height: 1.45; }
.svc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 960px) {
  .services-overlap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { border-inline-start: 0; border-top: 1px solid var(--line); }
  .svc:nth-of-type(-n+2) { border-top: 0; }
  .svc:last-of-type { grid-column: 1 / -1; }
}
.partner-row-inline { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; color: var(--ink-muted); font-weight: 700; }
.partner-row-inline img { width: 140px; height: auto; }
@media (prefers-color-scheme: dark) { .partner-row-inline img { background: #fff; border-radius: 10px; padding: 6px 10px; } }


/* Programme stepper (Mini MBA modules) on the near-black band. */
.program-steps { background: var(--black); border-top: 4px solid var(--accent); }
.program-steps .lead { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; counter-reset: s; margin-bottom: 28px; }
.step { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--radius); background: #ffffff0d; border: 1px solid #ffffff1a; color: var(--on-navy); }
.step-num { font-weight: 800; color: var(--accent-on-dark); font-variant-numeric: tabular-nums; }
.step strong { font-size: 1rem; line-height: 1.45; }
.step-who { font-size: .85rem; color: var(--silver); }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(7, minmax(0, 1fr)); } .step::after { content: ""; position: absolute; top: 28px; inset-inline-end: -12px; width: 12px; height: 2px; background: var(--accent); } .step:last-child::after { display: none; } }

/* Closing call to action in the brand red. */
.cta-band { background: var(--accent-grad); color: #FFFFFF; padding-block: clamp(36px, 6vw, 64px); }
.cta-band-row { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .cta-band-row { grid-template-columns: 1fr auto; } .cta-band .ctas { margin-top: 0; } }
.cta-band .h2 { margin-bottom: 8px; }
.cta-band p { color: #F1DADA; }
.btn-light { background: #FFFFFF; color: var(--black); }
.btn-light:hover { background: #F1F1F2; }

/* ---------- Home polish (red primary) ---------- */
/* Section titles get a short red rule. */
.home-courses .h2, .home-services .h2, .home-trainers .h2 { position: relative; padding-bottom: 14px; }
.home-courses .h2::after, .home-services .h2::after, .home-trainers .h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--accent-grad); }


/* Course cards: a photo on top (the cover, else a stock photo), icon and track, titles, then hours and a round arrow. */
.tile { --pad: 22px; position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: var(--pad); overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 var(--line); transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s; }
.tile-media { position: relative; display: block; margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.tile:hover .tile-media img { transform: scale(1.05); }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.tile-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.tile-track { font-size: .82rem; font-weight: 700; color: var(--ink-muted); line-height: 1.4; }
.tile-top .tag-closed { margin-inline-start: auto; }
.tile-body { display: grid; gap: 4px; }
.tile h3 { font-size: 1.22rem; line-height: 1.45; }
.tile-en { font-size: .85rem; font-weight: 700; color: var(--ink-muted); text-align: right; }
.tile-tagline { margin-top: 4px; color: var(--ink-muted); font-size: .95rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; font-weight: 700; color: var(--ink-muted); }
.tile-meta span { display: inline-flex; align-items: center; gap: 5px; }
.tile-go { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-text); transition: background .25s, color .25s, border-color .25s, transform .25s; }
.tile:hover .tile-go { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: translateX(-3px); }

/* The featured card: near-black with a red glow, bigger title and the module list. */
.tile-big { --pad: clamp(24px, 3vw, 34px); background: radial-gradient(90% 70% at 100% 0%, color-mix(in srgb, var(--red) 34%, transparent), transparent 65%), linear-gradient(160deg, #2A2A2D, var(--black));
  border-color: transparent; color: #FFFFFF; }
.tile-big .tile-media { aspect-ratio: 16 / 8; background: var(--black); }
.tile-big .tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #1d1d1f); }
.tile-big::before { content: ""; position: absolute; z-index: 2; inset-inline: 0; top: 0; height: 4px; background: var(--accent-grad); }
.tile-big:hover { border-color: transparent; }
.tile-big .tile-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-grad); color: #FFFFFF; }
.tile-big .tile-track, .tile-big .tile-en, .tile-big .tile-meta { color: #C7C7C7; }
.tile-big h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3; }
.tile-big .tile-tagline { color: #DCDCDE; font-size: 1.02rem; -webkit-line-clamp: 3; }
.tile-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.tile-modules span { padding: 6px 12px; border-radius: 999px; background: #ffffff12; border: 1px solid #ffffff1f; font-size: .85rem; font-weight: 700; color: #ECECED; }
.tile-big .tile-foot { border-top-color: #ffffff1f; }
.tile-big .tile-go { border-color: #ffffff33; color: #FFFFFF; }

/* Trainer cards: no photos. Credentials do the talking. */
.trainer-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trainer-cards > li { display: flex; }
.trainer-card { position: relative; display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s; }
.trainer-card::before { content: ""; position: absolute; inset-inline-start: 22px; top: 0; width: 44px; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent-grad); }
.trainer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.tc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.tc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); }
.tc-years { font-size: .82rem; font-weight: 700; color: var(--ink-muted); }
.tc-years strong { font-size: 1.35rem; font-weight: 800; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.tc-name { font-size: 1.12rem; }
.tc-head { color: var(--ink-muted); font-size: .92rem; line-height: 1.6; }
.tc-creds { display: grid; gap: 6px; margin-top: 4px; }
.tc-creds li { position: relative; padding-inline-start: 16px; font-size: .86rem; line-height: 1.55; color: var(--ink); }
.tc-creds li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tc-go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: .92rem; color: var(--accent-text); }
.trainer-card:hover .tc-go svg { transform: translateX(-3px); }
.tc-go svg { transition: transform .25s; }
@media (prefers-reduced-motion: reduce) { .tile, .tile-go, .tile-media img, .trainer-card, .tc-go svg { transition: none; } }

/* Partners: a row of logo tiles; logos sit in grey until hovered. */
.home-partners { background: var(--bg-soft); }
.home-partners .h2 { position: relative; padding-bottom: 14px; }
.home-partners .h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--accent-grad); }
.partners-note { color: var(--ink-muted); font-weight: 700; }
.partner-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner { flex: 0 1 210px; min-width: 150px; }
.partner > a, .partner > span { display: grid; place-items: center; height: 104px; padding: 16px 22px; border-radius: var(--radius); background: #FFFFFF;
  border: 1px solid var(--line); text-decoration: none; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s, border-color .25s; }
.partner img { max-width: 100%; max-height: 64px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.partner > :hover img, .partner > :focus-visible img { filter: none; opacity: 1; }
.partner > a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.partner-name { font-weight: 800; color: #2A2A2D; text-align: center; }
@media (hover: none) { .partner img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .partner > a, .partner img { transition: none; } }

/* Stock photos behind the dark programme band and the red call to action, and beside the services intro. */
.program-steps, .cta-band { position: relative; isolation: isolate; overflow: hidden; }
.band-photo { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.program-steps .band-photo { opacity: .16; }
.cta-band .band-photo { opacity: .22; mix-blend-mode: luminosity; }
.services-photo { position: relative; margin-top: 28px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.services-photo img { width: 100%; height: 100%; object-fit: cover; }
.services-photo::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--accent-grad); }

/* ---------- Home hero: "invest in your skills" poster ----------
   Centered three-line headline, the trainers standing together on a podium in front of two tall
   billboard panels, a dark glass card with the promises and the main call to action. */
.hero-v2 { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(28px, 5vw, 56px) 20px;
  background: radial-gradient(70% 55% at 50% 0%, color-mix(in srgb, var(--red) 7%, transparent), transparent 70%), linear-gradient(180deg, var(--bg), var(--bg-soft)); }
.hero-head { position: relative; max-width: 820px; margin-inline: auto; text-align: center; }
.hero-v2 h1 { display: grid; justify-items: center; line-height: 1.05; letter-spacing: 0; }
.h-l1, .h-l3 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; color: var(--ink); }
.h-big { font-size: clamp(4rem, 13vw, 7.6rem); font-weight: 800; line-height: 1.15; padding-bottom: .05em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-swoosh { display: block; width: min(300px, 60%); height: 18px; margin: 6px auto 0; fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.hero-note { position: absolute; top: 34%; inset-inline-end: -40px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 170px;
  color: var(--accent-text); font-weight: 800; font-size: 1.05rem; line-height: 1.45; transform: rotate(-5deg); text-align: right; }
.hero-note .icon { align-self: flex-end; }
.hero-v2 .hero-sub { margin: 8px auto 0; max-width: 46ch; font-size: 1.15rem; color: var(--ink-muted); }
@media (max-width: 1100px) { .hero-note { display: none; } }

.hero-stage { position: relative; height: clamp(420px, 40vw, 520px); margin-top: 4px; }
.hero-tower { position: absolute; bottom: 70px; display: grid; align-content: start; gap: 2px; padding: 26px 24px; border-radius: 28px 28px 0 0;
  font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.9rem); line-height: 1.25; }
.tower-a { inset-inline-start: 0; width: 26%; height: 78%; background: var(--accent-grad); color: #fff; }
.tower-a::after { content: ""; position: absolute; inset: 14px; border-radius: 18px 18px 0 0; border: 1px solid #ffffff40; border-bottom: 0; }
.tower-b { inset-inline-end: 0; width: 24%; height: 70%; background: linear-gradient(180deg, #E9E9EB, #D9D9DC); color: var(--accent-text); }
@media (prefers-color-scheme: dark) { .tower-b { background: linear-gradient(180deg, #2A2A2D, #1E1E21); } }

.hero-people { position: absolute; top: 0; bottom: 60px; left: 24%; right: 22%; }
.hero-person { position: absolute; bottom: 0; }
.hero-person img { height: 100%; width: auto; max-width: none; filter: drop-shadow(0 18px 28px #16161740); }
.hero-person { transform: translateX(-50%); }
.hero-person.p1 { z-index: 4; left: 50%; height: 100%; }
.hero-person.p2 { z-index: 3; left: 82%; height: 82%; }
.hero-person.p3 { z-index: 3; left: 18%; height: 80%; }
.hero-podium { position: absolute; z-index: 5; inset-inline: 6%; bottom: 0; height: 64px; border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #2C2C2F, var(--black)); box-shadow: inset 0 4px 0 var(--red); }

.hero-v2 .stat-card { position: absolute; z-index: 6; display: grid; padding: 10px 16px; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-v2 .stat-card strong { font-size: 1.6rem; line-height: 1.15; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-v2 .stat-card span { font-size: .86rem; font-weight: 700; color: var(--ink-muted); }
.hero-v2 .stat-a { top: 54%; right: 3%; }
.hero-v2 .stat-b { top: 70%; right: 11%; }
.hero-v2 .stat-c { top: 38%; right: 9%; }

.glass-card { position: absolute; z-index: 7; left: 2%; top: 6%; width: min(320px, 30%); padding: 18px; border-radius: 22px;
  color: #fff; background: #161617b8; -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid #ffffff2e; box-shadow: 0 24px 50px #16161740; }
.glass-top { display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--silver); }
.glass-lines { margin-top: 10px; font-size: 1.25rem; font-weight: 800; line-height: 1.5; }
.glass-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; text-align: center; font-size: .78rem; font-weight: 700; color: #E6E6E8; }
.glass-feats li { display: grid; justify-items: center; gap: 6px; }
.glass-feats span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #ffffff14; border: 1px solid #ffffff26; color: var(--accent-on-dark); }
.glass-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.glass-ctas .btn { flex: 1; min-height: 44px; padding-inline: 14px; }
.btn-glass { border-color: #ffffff40; color: #fff; background: transparent; }
.btn-glass:hover { border-color: #fff; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .glass-card { background: #161617f2; } }
@media (prefers-reduced-transparency: reduce) { .glass-card { background: #161617f2; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Default hero (no chosen photo): the open courses stand fanned on the podium as cards. */
.hero-stack { position: absolute; top: 2%; bottom: 64px; left: 35%; right: 28%; }
.stack-card { position: absolute; bottom: 0; left: 50%; display: flex; flex-direction: column; gap: 8px; width: 72%; height: 84%;
  padding: 22px 20px; border-radius: 22px 22px 0 0; text-decoration: none; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0; box-shadow: 0 -10px 40px #16161724; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
.stack-card.s1 { z-index: 4; transform: translateX(-50%); height: 96%; background: var(--black); color: #fff; border-color: var(--black); }
.stack-card.s2 { z-index: 3; transform: translateX(-20%) rotate(6deg); transform-origin: bottom left; }
.stack-card.s3 { z-index: 2; transform: translateX(-80%) rotate(-6deg); transform-origin: bottom right; }
.stack-card.s1:hover { transform: translateX(-50%) translateY(-8px); }
.stack-card.s2:hover { transform: translateX(-20%) rotate(6deg) translateY(-8px); }
.stack-card.s3:hover { transform: translateX(-80%) rotate(-6deg) translateY(-8px); }
.stack-card { overflow: hidden; }
.stack-media { position: relative; flex: none; display: block; height: 38%; margin: -22px -20px 4px; overflow: hidden; background: var(--bg-soft); }
.stack-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.stack-media::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--accent-grad); }
.stack-card:hover .stack-media img { transform: scale(1.05); }
.stack-card.s1 .stack-media::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, transparent 55%, #0000004d); }
.stack-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent-grad); color: #fff; font-size: .8rem; font-weight: 700; }
.stack-card strong { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.35; }
.stack-en { font-weight: 800; color: var(--accent-text); }
.stack-tag { font-size: .92rem; line-height: 1.6; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack-card.s1 .stack-tag { color: #D6D6D9; }
.stack-card.s1 .stack-en { color: var(--accent-on-dark); }
.stack-meta { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ink-muted); }
.stack-card.s1 .stack-meta { color: var(--silver); }
.stack-meta span { display: inline-flex; align-items: center; gap: 4px; }
.stack-go { color: var(--accent-text); }
.stack-card.s1 .stack-go { color: var(--accent-on-dark); }
@media (prefers-color-scheme: dark) { .stack-card.s1 { background: #2A1517; border-color: #3a1d20; } }
@media (prefers-reduced-motion: reduce) { .stack-card { transition: none; } }
/* A single chosen photo stands centred and larger. */
.hero-people:has(> .p1:only-child) .hero-person.p1 { height: 104%; }

/* Tablets and phones: headline, then the group, then the glass card as a normal block. */
@media (max-width: 899px) {
  .hero-stage { height: auto; display: flex; flex-direction: column; }
  .hero-tower { display: none; }
  .hero-people { position: relative; inset: auto; height: 330px; z-index: 1; }
  .hero-stack { position: relative; inset: auto; height: 300px; margin-bottom: 36px; z-index: 1; }
  .stack-card { width: 58%; height: 86%; padding: 16px 14px; gap: 6px; }
  .stack-media { height: 34%; margin: -16px -14px 2px; }
  .stack-en { display: none; }
  .stack-card.s1 { height: 100%; }
  .stack-card strong { font-size: 1.1rem; }
  .stack-tag { display: none; }
  .hero-stack ~ .stat-card { display: none; }
  .hero-person.p2 { left: 82%; }
  .hero-person.p3 { left: 18%; }
  .hero-podium { position: relative; inset: auto; height: 44px; margin-top: -40px; border-radius: 22px 22px 0 0; }
  .hero-v2 .stat-card { padding: 6px 10px; }
  .hero-v2 .stat-card strong { font-size: 1.15rem; }
  .hero-v2 .stat-card span { font-size: .72rem; }
  .hero-v2 .stat-a { top: 2%; right: 0; }
  .hero-v2 .stat-b { top: 150px; left: 0; right: auto; }
  .hero-v2 .stat-c { top: 250px; bottom: auto; left: auto; right: 0; }
  .glass-card { position: relative; inset: auto; width: auto; margin: 0; border-radius: 0 0 22px 22px; border-top: 0; background: var(--black); }
}
}
