/* ==========================================================================
   Rehab Sharif — Corporate Training Portfolio
   Deep navy + gold, inspired by bold corporate profile decks.
   ========================================================================== */

:root {
  --navy-950: #061226;
  --navy-900: #0a1b37;
  --navy-850: #0d2244;
  --navy-800: #122b55;
  --navy-700: #1a3c73;
  --tint: #2b5ca6;             /* base colour photos are multiplied onto */
  --line: rgba(168, 196, 240, 0.14);
  --line-strong: rgba(168, 196, 240, 0.26);
  --text: #eef3fb;
  --muted: #a9b9d5;
  --dim: #7488aa;
  --gold: #f0c04f;
  --gold-2: #f8dc8e;
  --gold-soft: rgba(240, 192, 79, 0.12);
  --pink: #d595c4;             /* Soft Skills (design 3 mauve, lifted for navy) */
  --pink-2: #ecc3e0;
  --green: #96bfa2;            /* Well-Being (design 3 sage, lifted for navy) */
  --green-2: #c6e0cc;
  --radius: 16px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.005em; word-spacing: 0.04em; /* Jakarta sets tight; open it slightly for reading */
  color: var(--text);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.modal-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.muted { color: var(--muted); }

/* ---------- Photo tint (navy duotone) ---------- */
.tint { position: relative; overflow: hidden; isolation: isolate; background: var(--tint); }
.tint > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.08) brightness(1.02);
  transition: transform 1.2s var(--ease);
}
.tint::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 38, 0) 30%, rgba(6, 18, 38, 0.88) 100%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-950); box-shadow: 0 12px 30px -12px rgba(240, 192, 79, 0.6); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Section heads ---------- */
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; word-spacing: normal;
  text-wrap: balance;
}
.section-title span { color: var(--gold); }
/* ---------- Track colours: pink = Soft Skills, green = Well-Being ---------- */
.t-soft, .section-title .t-soft { color: var(--pink); }
.t-wellbeing, .section-title .t-wellbeing { color: var(--green); }

.section-lead { margin-top: 18px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); max-width: 620px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 18, 38, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px; padding-inline: var(--gutter);
  max-width: 1440px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 26px; height: 42px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.brand-text b { font-weight: 700; }
.brand-text span { margin-top: 4px; font-size: 8.5px; font-weight: 600; line-height: 1.35; letter-spacing: 0.13em; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 14.5px; font-weight: 500; }
.nav-links a:not(.nav-cta) { position: relative; color: rgba(238, 243, 251, 0.82); transition: color 0.2s; }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid rgba(240, 192, 79, 0.6); color: var(--gold); font-weight: 600;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy-950); }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(6, 18, 38, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a:not(.nav-cta) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 18px; text-align: center; padding: 14px; }
  .nav.menu-open { background: rgba(6, 18, 38, 0.97); }
}

/* ==========================================================================
   HERO — split photo / navy panel, title straddling the seam
   ========================================================================== */
.hero {
  --split: 52fr 48fr;
  position: relative;
  display: grid;
  grid-template-columns: var(--split);
  grid-template-rows: 1fr auto 1fr;
  min-height: max(100svh, 640px);
  overflow: hidden;
}
.hero-photo { grid-column: 1; grid-row: 1 / -1; z-index: 0; }
.hero-photo img { object-position: 66% 40%; }
.hero-photo::after {
  background:
    linear-gradient(180deg, rgba(6, 18, 38, 0.55) 0%, rgba(6, 18, 38, 0) 22%),
    linear-gradient(0deg, rgba(6, 18, 38, 0.9) 0%, rgba(6, 18, 38, 0) 45%);
}
.hero-side {
  grid-column: 2; grid-row: 1 / -1; z-index: 1;
  background:
    radial-gradient(120% 70% at 85% 10%, rgba(64, 112, 190, 0.35), transparent 60%),
    linear-gradient(165deg, var(--navy-700) 0%, var(--navy-850) 55%, var(--navy-950) 100%);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  grid-column: 2; grid-row: 1; z-index: 2;
  align-self: end; justify-self: end;
  padding: 120px var(--gutter) clamp(28px, 4vh, 48px);
  display: flex; flex-direction: column; align-items: flex-end;
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em;
  color: var(--gold);
  text-align: right;
}
.hero-kicker small {
  max-width: 34em; margin-bottom: 14px;
  font-family: var(--sans); font-size: clamp(10.5px, 0.85vw, 12.5px); font-weight: 600; line-height: 1.5; letter-spacing: 0.18em;
  text-transform: uppercase; text-wrap: balance; color: rgba(238, 243, 251, 0.85);
}

.hero-title {
  grid-column: 1 / -1; grid-row: 2; z-index: 3;
  display: grid; grid-template-columns: var(--split);
  font-family: var(--display);
  font-size: clamp(56px, 9.6vw, 164px);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.045em; word-spacing: normal;
}
.hero-title .ht-a, .hero-title .ht-b {
  -webkit-box-reflect: below -0.12em linear-gradient(transparent 52%, rgba(255, 255, 255, 0.22));
}
.hero-title .ht-a {
  justify-self: end; padding-right: 0.14em;
  color: #fff;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.hero-title .ht-b {
  justify-self: start; padding-left: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe0fa 40%, #7fa7e0 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-left {
  grid-column: 1; grid-row: 3; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(36px, 6vh, 64px) var(--gutter) clamp(20px, 4vh, 40px);
}
.hero-tracks {
  font-size: clamp(13px, 1.1vw, 16px); font-weight: 600; line-height: 1.4; letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-big { display: flex; align-items: flex-end; gap: 16px; }
.hero-big span {
  font-family: var(--display);
  font-size: clamp(88px, 13vw, 210px); font-weight: 800; line-height: 0.8; letter-spacing: -0.06em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.06) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-big small {
  padding-bottom: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(238, 243, 251, 0.75);
}

.hero-right {
  grid-column: 2; grid-row: 3; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(40px, 7vh, 72px) var(--gutter) clamp(20px, 4vh, 40px) clamp(24px, 3.4vw, 56px);
}
.hero-values { display: flex; flex-wrap: wrap; align-items: center; row-gap: 6px; font-family: var(--display); font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
/* Thin gold rule between the values */
.hero-values span + span::before { content: ""; display: inline-block; width: 1.5px; height: 0.85em; margin: 0 0.75em; vertical-align: -0.08em; border-radius: 1px; background: var(--gold); opacity: 0.7; }
@media (max-width: 420px) {
  .hero-values { font-size: clamp(14px, 4.3vw, 17px); }
  .hero-values span + span::before { margin: 0 0.55em; }
}
.hero-sub { margin-top: 14px; max-width: 440px; color: var(--muted); font-size: 15px; }
.hero-sub b { font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-web {
  align-self: flex-end;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
}
.hero-web .icon { width: 20px; height: 20px; color: var(--muted); }
.hero-web:hover { color: var(--gold); }

/* Entrance */
.hero-title .ht-a, .hero-title .ht-b, .hero-kicker, .hero-left > *, .hero-right > * {
  animation: rise 1s var(--ease) both;
}
.hero-title .ht-a { animation-name: slide-r; animation-delay: 0.1s; }
.hero-title .ht-b { animation-name: slide-l; animation-delay: 0.1s; }
.hero-kicker { animation-delay: 0.35s; }
.hero-left > *:nth-child(1), .hero-right > *:nth-child(1) { animation-delay: 0.5s; }
.hero-left > *:nth-child(2), .hero-right > *:nth-child(2) { animation-delay: 0.65s; }
.hero-photo img { animation: zoom-out 2.4s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slide-r { from { opacity: 0; transform: translateX(-40px); } }
@keyframes slide-l { from { opacity: 0; transform: translateX(40px); } }
@keyframes zoom-out { from { transform: scale(1.12); } }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(52svh, auto) auto auto auto;
    min-height: auto;
  }
  .hero-photo { grid-column: 1; grid-row: 1 / 3; }
  .hero-photo img { object-position: 74% 40%; }
  .hero-side { grid-column: 1; grid-row: 3 / -1; box-shadow: none; }
  .hero-kicker {
    grid-column: 1; grid-row: 1; align-self: end; justify-self: start;
    align-items: flex-start; text-align: left;
    padding: 110px var(--gutter) 16px;
    font-size: 22px;
  }
  .hero-title {
    grid-column: 1; grid-row: 2; grid-template-columns: 1fr;
    padding: 0 var(--gutter) 28px;
    font-size: clamp(60px, 19vw, 108px);
  }
  .hero-title .ht-a, .hero-title .ht-b { justify-self: start; padding: 0; -webkit-box-reflect: unset; }
  .hero-left { grid-column: 1; grid-row: 3; padding: 32px var(--gutter) 0; }
  .hero-big { display: none; }
  .hero-right { grid-column: 1; grid-row: 4; padding: 18px var(--gutter) 32px; }
  .hero-web { align-self: flex-start; }
}

/* ==========================================================================
   PROGRAMS (two sides of performance)
   ========================================================================== */
.programs { padding-top: clamp(64px, 8vw, 104px); }
.programs-head { max-width: 940px; }
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.side {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3.6vw, 48px);
  border-radius: 20px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.side-soft { background: linear-gradient(160deg, rgba(213, 149, 196, 0.2), rgba(213, 149, 196, 0.04) 65%), var(--navy-850); border-color: rgba(213, 149, 196, 0.32); }
.side-well { background: linear-gradient(160deg, rgba(150, 191, 162, 0.2), rgba(150, 191, 162, 0.04) 65%), var(--navy-850); border-color: rgba(150, 191, 162, 0.32); }
/* Tilted arch in the top corner */
.side::after {
  content: ""; position: absolute; z-index: -1; right: -50px; top: -84px; width: 170px; height: 200px;
  border: 1.5px solid; border-radius: 999px 999px 30px 30px; transform: rotate(12deg);
}
.side-soft::after { border-color: rgba(213, 149, 196, 0.45); background: linear-gradient(200deg, rgba(213, 149, 196, 0.12), transparent 70%); }
.side-well::after { border-color: rgba(150, 191, 162, 0.45); background: linear-gradient(200deg, rgba(150, 191, 162, 0.12), transparent 70%); }
.side-top { display: flex; align-items: baseline; gap: 12px; }
.side-count {
  font-family: var(--display);
  font-size: clamp(64px, 7vw, 96px); font-weight: 800; line-height: 0.9; letter-spacing: -0.05em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.side-soft .side-count { background-image: linear-gradient(180deg, var(--pink-2), var(--pink) 70%); }
.side-well .side-count { background-image: linear-gradient(180deg, var(--green-2), var(--green) 70%); }
.side-label { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.side h3 .nowrap { white-space: nowrap; }
.side h3 { margin-top: 22px; font-family: var(--display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; }
.side > p { margin-top: 12px; color: var(--muted); max-width: 44ch; }
.side-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 32px; }
.side-list li {
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.side-list li.more { background: transparent; border: 1px dashed currentColor; color: var(--muted); }
.side .btn { margin-top: auto; align-self: flex-start; }
.btn-pink { background: var(--pink); color: var(--navy-950); box-shadow: 0 12px 30px -12px rgba(213, 149, 196, 0.55); }
.btn-pink:hover { background: var(--pink-2); }
.btn-green { background: var(--green); color: var(--navy-950); box-shadow: 0 12px 30px -12px rgba(150, 191, 162, 0.55); }
.btn-green:hover { background: var(--green-2); }
@media (max-width: 820px) { .sides { grid-template-columns: 1fr; } }

/* ==========================================================================
   COURSES
   ========================================================================== */
.courses {
  padding-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(45% 28% at 92% 34%, rgba(43, 92, 166, 0.2), transparent 70%),
    var(--navy-900);
}
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.seg {
  display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--muted);
  transition: background 0.25s, color 0.25s;
}
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--navy-950); }
.seg button[data-value="soft"][aria-pressed="true"] { background: var(--pink); }
.seg button[data-value="wellbeing"][aria-pressed="true"] { background: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {
  .filters { flex-direction: column; align-items: stretch; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 10px 8px; font-size: 13.5px; }
  .hide-sm { display: none; }
}
.chips button {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.chips button:hover { border-color: var(--line-strong); color: #fff; }
.chips button[aria-pressed="true"] { border-color: rgba(240, 192, 79, 0.7); color: var(--gold); background: var(--gold-soft); }
.result-count { font-size: 13px; color: var(--dim); margin-bottom: 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 26px); }

/* Course card — design 3's layout on navy; photos are design 3's pink / green tinted copies */
.card {
  --tone: var(--pink); --tone-rgb: 213, 149, 196;
  display: flex; flex-direction: column;
  padding: 12px 12px 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), background 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease);
  animation: card-in 0.6s var(--ease) both;
}
.card[data-track="wellbeing"] { --tone: var(--green); --tone-rgb: 150, 191, 162; }
.card:hover, .card:focus-visible {
  transform: translateY(-6px);
  background: rgba(var(--tone-rgb), 0.09);
  border-color: rgba(var(--tone-rgb), 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.card:focus-visible { outline-offset: 3px; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }

.card-img { aspect-ratio: 5 / 4; border-radius: 50% 50% 18px 18px / 36% 36% 18px 18px; overflow: hidden; background: rgba(var(--tone-rgb), 0.15); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(6, 18, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.bars i { width: 3px; border-radius: 1px; background: rgba(255, 255, 255, 0.28); }
.bars i:nth-child(1) { height: 4px; }
.bars i:nth-child(2) { height: 7px; }
.bars i:nth-child(3) { height: 10px; }
.bars[data-n="1"] i:nth-child(-n + 1),
.bars[data-n="2"] i:nth-child(-n + 2),
.bars[data-n="3"] i:nth-child(-n + 3) { background: var(--gold); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 10px 0; }
.card-track { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tone); }
.card-track::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.card h3 { margin-top: 10px; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; }
.card-tag { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 18px;
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.lvl { display: inline-flex; align-items: flex-end; gap: 7px; }
.card .bars { height: 13px; }
.card .bars i { width: 5px; border-radius: 3px 3px 1px 1px; background: rgba(255, 255, 255, 0.16); }
.card .bars i:nth-child(1) { height: 7px; }
.card .bars i:nth-child(2) { height: 10px; }
.card .bars i:nth-child(3) { height: 13px; }
.card .bars[data-n="1"] i:nth-child(-n + 1),
.card .bars[data-n="2"] i:nth-child(-n + 2),
.card .bars[data-n="3"] i:nth-child(-n + 3) { background: var(--tone); }
.card-go {
  flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); color: var(--tone);
  transition: background 0.3s, color 0.3s, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.card:hover .card-go, .card:focus-visible .card-go { background: var(--tone); color: var(--navy-950); transform: rotate(-45deg); }

/* ==========================================================================
   LEVELS
   ========================================================================== */
.levels { background: linear-gradient(180deg, var(--navy-900), var(--navy-850)); }
/* Rising arches (design 3 layout), junior → senior */
.arches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: end; }
.lvl-arch {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  /* Top padding scales with width so the text always clears the curved top */
  padding: 26% clamp(22px, 2.6vw, 36px) clamp(26px, 3vw, 38px);
  border-radius: 999px 999px 28px 28px;
  border: 1px solid var(--line);
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.lvl-arch:hover { transform: translateY(-8px); }
.lvl-arch:nth-child(1) { min-height: 500px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)); }
.lvl-arch:nth-child(2) { min-height: 580px; background: linear-gradient(180deg, rgba(43, 92, 166, 0.3), rgba(43, 92, 166, 0.1)); border-color: var(--line-strong); }
.lvl-arch:nth-child(3) {
  min-height: 660px;
  background: radial-gradient(90% 50% at 50% 0%, rgba(240, 192, 79, 0.14), transparent 70%), linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border-color: rgba(240, 192, 79, 0.45);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.lvl-num { font-family: var(--display); font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--gold); }
.lvl-arch h3 { margin-top: 14px; font-family: var(--display); font-size: clamp(22px, 2vw, 26px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.lvl-arch > p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.lvl-split { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lvl-split span { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, 0.06); border: 1px solid; }
.lvl-split .t-soft { border-color: rgba(213, 149, 196, 0.35); }
.lvl-split .t-wellbeing { border-color: rgba(150, 191, 162, 0.35); }
.lvl-arch > .lvl-aud { margin-top: 18px; font-size: 14px; line-height: 1.7; }
.link-under {
  align-self: flex-start; margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s;
}
.link-under:hover { background-size: 40% 1.5px; color: var(--gold); }
@media (max-width: 860px) {
  .arches { grid-template-columns: 1fr; }
  .lvl-arch:nth-child(n) { min-height: 0; padding-top: 120px; }
}

/* ==========================================================================
   APPROACH
   ========================================================================== */
.approach { background: var(--navy-850); }
/* Design 3 layout: delivery tags beside an impact cycle */
.approach-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.approach-copy .section-lead { max-width: 46ch; }
.mini-title { margin-top: 36px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { padding: 9px 15px; border-radius: 999px; border: 1px solid; background: rgba(255, 255, 255, 0.04); font-size: 14px; font-weight: 500; }
.tags li:nth-child(odd) { border-color: rgba(213, 149, 196, 0.45); }
.tags li:nth-child(even) { border-color: rgba(150, 191, 162, 0.45); }

.cycle { --size: min(520px, 42vw); --r: calc(var(--size) * 0.4); position: relative; width: var(--size); height: var(--size); margin: 0 auto 70px; }
.cycle-ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  transform: translate(-50%, -50%); border-radius: 50%;
  border: 1.5px dashed rgba(213, 149, 196, 0.5);
}
.cycle-ring::before {
  content: ""; position: absolute; inset: 24%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(213, 149, 196, 0.22) 0%, rgba(150, 191, 162, 0.16) 100%);
}
.cycle-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cycle-center b { font-family: var(--display); font-size: clamp(56px, 6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.cycle-center span { margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
/* Five steps placed evenly round the ring (72° apart, starting at the top) */
.cycle-steps li {
  --a: calc(var(--i) * 72deg - 90deg);
  position: absolute; left: 50%; top: 50%; width: 150px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))) translate(-50%, -22px);
}
.cycle-steps span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--pink); color: var(--navy-950); font-size: 13px; font-weight: 700;
  box-shadow: 0 0 0 6px var(--navy-850);
}
.cycle-steps li:nth-child(even) span { background: var(--green); }
.cycle-steps b { margin-top: 10px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.cycle-steps small { margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
/* The ring runs behind the side labels; a navy backing (invisible on the section) stops it cutting through the text */
.cycle-steps li:nth-child(n + 2) :is(b, small) { padding-inline: 4px; border-radius: 4px; background: var(--navy-850); }
@media (max-width: 1100px) {
  .approach-grid { grid-template-columns: 1fr; }
  .cycle { --size: min(520px, calc(100vw - 2 * var(--gutter) - 160px)); }
}
@media (max-width: 640px) {
  .cycle { width: 100%; height: auto; margin: 0; }
  .cycle-ring, .cycle-center { display: none; }
  .cycle-steps { display: grid; gap: 0; }
  .cycle-steps li {
    position: static; width: auto; transform: none;
    display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; text-align: left; align-items: center;
    padding: 14px 0; border-bottom: 1px solid var(--line);
  }
  .cycle-steps span { grid-row: 1 / 3; }
  .cycle-steps b { margin-top: 0; }
}

/* ==========================================================================
   BROCHURES — two downloadable PDFs, each shown as a cover over an inside page
   ========================================================================== */
.bro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.bro {
  display: flex; flex-direction: column;
  padding: 12px 12px 0; border-radius: 28px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.45s var(--ease);
}
.bro:hover { border-color: var(--line-strong); }
.bro-stage {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 20px; isolation: isolate;
}
.bro-portfolio { background: radial-gradient(70% 80% at 60% 40%, rgba(240, 192, 79, 0.14), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.bro-profile { background: radial-gradient(70% 80% at 40% 40%, rgba(213, 149, 196, 0.2), transparent 70%), linear-gradient(160deg, var(--navy-800), var(--navy-950)); }
.bro-stage img {
  position: absolute; border-radius: 6px; height: auto;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.6s var(--ease);
}
/* Portfolio: portrait cover in front of an open course spread */
.bro-portfolio .bro-back { width: 64%; left: 6%; top: 18%; transform: rotate(-5deg); }
.bro-portfolio .bro-front { width: 34%; right: 12%; top: 9%; transform: rotate(3deg); z-index: 1; }
.bro:hover .bro-portfolio .bro-back { transform: rotate(-7deg) translate(-10px, 4px); }
.bro:hover .bro-portfolio .bro-front { transform: rotate(1deg) translateY(-8px); }
/* Profile: landscape cover in front of the "trusted partner" page */
.bro-profile .bro-back { width: 62%; right: 6%; top: 10%; transform: rotate(5deg); }
.bro-profile .bro-front { width: 66%; left: 7%; bottom: 12%; transform: rotate(-3deg); z-index: 1; }
.bro:hover .bro-profile .bro-back { transform: rotate(7deg) translate(10px, -6px); }
.bro:hover .bro-profile .bro-front { transform: rotate(-1deg) translateY(-8px); }

.bro-body { display: flex; flex-direction: column; flex: 1; padding: 22px clamp(10px, 1.6vw, 18px) 24px; }
.bro-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.bro-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }
.bro h3 { margin-top: 12px; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
.bro-body > p:not(.bro-meta) { margin-top: 10px; color: var(--muted); max-width: 48ch; }
.bro-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.bro-actions .icon { width: 18px; height: 18px; }
@media (max-width: 860px) { .bro-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .bro-actions .btn { flex: 1 1 100%; } }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
/* Let's talk (design 4 layout): contact tiles beside a request builder */
.contact {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(88px, 12vw, 150px);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
}
/* Background: large soft blue fields that drift and blend slowly, like a calm aurora.
   Kept to deep blues so muted text stays readable wherever they overlap. */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: var(--s); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  animation: aurora var(--t) ease-in-out infinite alternate; animation-delay: var(--d, 0s);
  will-change: transform;
}
.aurora i:nth-child(1) { --s: 920px; --c: rgba(43, 92, 166, 0.46); left: -22%; top: -45%; --t: 26s; --x: 22%; --y: 24%; }
.aurora i:nth-child(2) { --s: 780px; --c: rgba(26, 60, 115, 0.8); right: -18%; top: -12%; --t: 32s; --d: -9s; --x: -24%; --y: 18%; }
.aurora i:nth-child(3) { --s: 860px; --c: rgba(52, 100, 175, 0.38); left: 18%; bottom: -60%; --t: 38s; --d: -17s; --x: 18%; --y: -22%; }
.aurora i:nth-child(4) { --s: 620px; --c: rgba(30, 80, 150, 0.4); right: 6%; bottom: -35%; --t: 30s; --d: -22s; --x: -20%; --y: -16%; }
@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(var(--x), calc(var(--y) * 0.4)) scale(1.18); }
  100% { transform: translate(calc(var(--x) * 0.3), var(--y)) scale(0.92); }
}

.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.squiggle { text-decoration: underline wavy currentColor; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-skip-ink: none; }
.contact-copy .section-lead { max-width: 46ch; }
.contact-tiles { display: grid; gap: 12px; margin-top: 30px; max-width: 440px; }
.contact-tiles a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: 22px;
  background: linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)), var(--navy-900);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, background 0.25s;
}
.contact-tiles a:hover { transform: translateX(8px); border-color: var(--gold); background: linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)), var(--navy-900); }
.contact-tiles a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.contact-tiles small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ti { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px; }
.ti .icon { width: 22px; height: 22px; }
.ti-gold { background: rgba(240, 192, 79, 0.14); color: var(--gold); }
.ti-pink { background: rgba(213, 149, 196, 0.14); color: var(--pink); }
.ti-green { background: rgba(150, 191, 162, 0.14); color: var(--green); }

.builder {
  display: grid; gap: 18px;
  padding: clamp(22px, 3vw, 34px); border-radius: 28px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.builder h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.025em; }
.builder h3 .icon { fill: var(--gold); stroke: none; }
.builder fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.builder legend { padding: 0; margin-bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-size: 14.5px; font-weight: 600;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s, color 0.2s, border-color 0.2s;
}
.opts button:hover { transform: translateY(-2px); border-color: var(--gold); }
.opts button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy-950); animation: press 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.opts button[data-track="soft"][aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.opts button[data-track="wellbeing"][aria-pressed="true"] { background: var(--green); border-color: var(--green); }
.opts button[aria-pressed="true"]::before { content: "✓"; font-size: 12px; }
@keyframes press { 40% { transform: scale(1.1); } }
.field { display: grid; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input {
  padding: 13px 16px; border-radius: 16px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05);
  font: inherit; font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--dim); }
.field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.summary {
  padding: 14px 16px; border-radius: 18px;
  background: var(--gold-soft); border: 1px solid rgba(240, 192, 79, 0.22);
  font-size: 16px; font-weight: 500; line-height: 1.55;
}
.summary:empty { display: none; }
.summary.bump { animation: bump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes bump { 40% { transform: scale(1.025); } }
.btn-block { width: 100%; }
.builder-note { margin-top: -8px; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }

.footer { background: var(--navy-950); border-top: 1px solid var(--line); padding-block: 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-logo { width: 120px; height: auto; opacity: 0.95; }
.footer-inner p { font-size: 14px; font-weight: 600; }
.footer-inner p span { font-weight: 400; color: var(--muted); }
.footer-inner .footer-copy span { color: inherit; }
.footer-copy { margin-left: auto; font-size: 13px !important; font-weight: 400 !important; color: var(--dim); }
@media (max-width: 640px) { .footer-copy { margin-left: 0; } }

/* ==========================================================================
   COURSE DIALOG
   ========================================================================== */
.dialog {
  width: min(100% - 32px, 1000px);
  max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0;
  background: transparent; color: var(--text);
  overflow: visible;
}
.dialog::backdrop { background: rgba(3, 9, 20, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dialog[open] .dlg { animation: dlg-in 0.45s var(--ease) both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

.dlg {
  display: flex; flex-direction: column;
  max-height: calc(100svh - 48px);
  border-radius: 20px; overflow: hidden;
  background: var(--navy-850);
  border: 1px solid var(--line-strong);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9);
}
.dlg-hero { flex-shrink: 0; display: flex; align-items: flex-end; min-height: clamp(190px, 30vh, 270px); }
.dlg-hero::after { background: linear-gradient(180deg, rgba(13, 34, 68, 0.1) 0%, rgba(13, 34, 68, 0.96) 100%); }
.dlg-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(6, 18, 38, 0.6); border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.dlg-close:hover { background: var(--gold); color: var(--navy-950); transform: rotate(90deg); }
.dlg-head { position: relative; z-index: 2; width: 100%; padding: 76px clamp(20px, 3.4vw, 40px) 22px; }
.dlg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dlg-chips .badge.t-soft { color: var(--pink); border-color: rgba(213, 149, 196, 0.5); }
.dlg-chips .badge.t-wellbeing { color: var(--green); border-color: rgba(150, 191, 162, 0.5); }
.dlg-head h2 { margin-top: 14px; font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; word-spacing: normal; text-wrap: balance; }
.dlg-head p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.dlg-head p b { color: var(--gold); font-weight: 600; }

.dlg-tabs {
  flex-shrink: 0;
  display: flex; gap: 4px;
  padding: 0 clamp(12px, 2.6vw, 32px);
  border-bottom: 1px solid var(--line);
}
.dlg-tabs button {
  position: relative; padding: 16px 14px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: color 0.2s;
}
.dlg-tabs button::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.3s var(--ease);
}
.dlg-tabs button:hover { color: #fff; }
.dlg-tabs button[aria-selected="true"] { color: #fff; }
.dlg-tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.dlg-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 3.4vw, 40px); }
.dlg-body [role="tabpanel"] { animation: rise 0.4s var(--ease) both; }
.dlg-body h4 {
  margin: 34px 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
}
.dlg-body [role="tabpanel"] > h4:first-child { margin-top: 0; }
.lead { font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.7; color: #dbe5f5; }

.aud-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.aud-grid li {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
}
.aud-grid .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; color: var(--gold); background: var(--gold-soft); }
.aud-grid b { display: block; font-size: 15px; font-weight: 600; }
.aud-grid span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.out-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.out-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.out-list .icon { width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%; background: var(--gold); color: var(--navy-950); stroke-width: 3; }
.out-list b { display: block; font-size: 15px; font-weight: 600; }
.out-list span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.obj-list li { display: grid; grid-template-columns: 48px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); }
.obj-list li:first-child { padding-top: 0; }
.obj-list i { font-family: var(--display); font-style: normal; font-size: 24px; font-weight: 800; color: var(--gold); line-height: 1; letter-spacing: -0.03em; }
.obj-list b { display: block; font-size: 16px; font-weight: 600; }
.obj-list span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.mod-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mod-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; line-height: 1.35;
}
.mod-list i {
  flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  font-style: normal; font-size: 13px; font-weight: 700;
  background: var(--navy-700); color: #fff; border: 1px solid var(--line-strong);
}

.imp-list { position: relative; }
.imp-list li { position: relative; display: grid; grid-template-columns: 48px 1fr; padding-bottom: 22px; }
.imp-list li:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 1px; background: var(--line-strong);
}
.imp-list i {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%;
  font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(240, 192, 79, 0.5); background: var(--gold-soft);
}
.imp-list b { display: block; font-size: 16px; font-weight: 600; padding-top: 5px; }
.imp-list span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.dlg-foot {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: rgba(6, 18, 38, 0.5);
}
.dlg-nav { display: flex; gap: 6px; }
.dlg-step {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
}
.dlg-step:hover { border-color: var(--line-strong); color: #fff; }
.dlg-foot .btn { min-height: 44px; padding: 10px 20px; }

@media (max-width: 680px) {
  .dialog { width: 100%; height: 100%; max-height: 100%; margin: 0; }
  /* On phones the whole sheet scrolls; tabs and actions stay pinned */
  .dlg { height: 100%; max-height: 100svh; border-radius: 0; border: 0; overflow-y: auto; overscroll-behavior: contain; }
  .dlg-hero { min-height: 220px; }
  .dlg-head { padding-top: 72px; }
  .dlg-tabs { position: sticky; top: 0; z-index: 4; background: var(--navy-850); }
  .dlg-body { flex: none; overflow: visible; }
  .dlg-foot { position: sticky; bottom: 0; z-index: 4; background: rgba(9, 25, 50, 0.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .aud-grid, .out-list, .mod-list { grid-template-columns: 1fr; }
  .dlg-step span { display: none; }
  .dlg-step { padding: 10px 12px; }
  .dlg-foot .btn { flex: 1; padding-inline: 14px; font-size: 13px; }
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   CLIENTS — a moving row of logos on white tiles (they're made for light backgrounds)
   ========================================================================== */
.clients { padding-top: clamp(24px, 4vw, 48px); }
.clients-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; max-width: none; }
.clients-side { flex: 1 1 100%; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.clients-head .section-lead { margin-top: 0; max-width: 440px; }
.marquee-toggle {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.25s, color 0.25s;
}
.marquee-toggle:hover { border-color: var(--gold); color: var(--gold); }
.marquee-toggle .i-play, .marquee-toggle[aria-pressed="true"] .i-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .i-play { display: block; }
.marquee-toggle[hidden] { display: none; }

/* Static row: shown without JavaScript or with reduced motion */
.logo-track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px;
  width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto;
}
.logo-track li {
  --tile: 132px; --pad: 20px;
  flex: 0 0 auto; display: grid; place-items: center;
  height: var(--tile); padding: var(--pad);
  border-radius: 18px; background: #fff;
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.85);
  transition: transform 0.4s var(--ease);
}
.logo-track li:hover { transform: translateY(-4px); }
.logo-track img { max-height: calc(var(--tile) - 2 * var(--pad)); height: auto; object-fit: contain; }

/* Moving row: the list plus a hidden copy, shifted by exactly one copy's width */
.logo-marquee.is-moving {
  overflow: hidden; padding-block: 8px 34px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.is-moving .logo-track { display: flex; gap: 0; width: max-content; margin: 0; animation: logos 48s linear infinite; }
.is-moving .logo-track li { width: 210px; margin-right: 18px; }
.logo-marquee.is-moving:hover .logo-track,
.logo-marquee.is-moving:focus-within .logo-track,
.logo-marquee.paused .logo-track { animation-play-state: paused; }
@keyframes logos { to { transform: translateX(-50%); } }

@media (max-width: 600px) {
  .logo-track { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .logo-track li { --tile: 104px; --pad: 14px; border-radius: 14px; }
  .is-moving .logo-track { animation-duration: 36s; }
  .is-moving .logo-track li { width: 156px; margin-right: 12px; }
}
