@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;700&display=swap");

:root {
  --brand: #ca005d;
  --ink: #ffffff;
  --text: #ffffff;
  --muted: #ffd2e4;
  --purple: #3a001c;
  --purple-deep: #210011;
  --purple-soft: #8e0042;
  --blue: #ca005d;
  --blue-dark: #a9004d;
  --theme-glow: #ff5fa3;
  --line: rgba(255,255,255,0.22);
  --surface: #ffffff;
  --surface-text: #1c1230;
  --focus: #7fb3ff;
  font-family: "Google Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

@font-face {
  font-family: "Frank Ruhl Libre";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: local("Frank Ruhl Libre");
}

* { box-sizing: border-box; }
html { background: var(--purple); color: var(--text); }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 0%, rgba(202,0,93,0.55) 0 22%, rgba(202,0,93,0.08) 42%, transparent 62%),
    linear-gradient(120deg, rgba(202,0,93,0.14) 58%, rgba(202,0,93,0.42) 100%),
    var(--purple);
  color: var(--text);
  line-height: 1.55;
  font-size: 19px;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; }
a:hover { color: #ffffff; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }

.container { width: min(1560px, calc(100% - 96px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 24px; top: -80px; z-index: 30; background: var(--surface); color: var(--surface-text); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { top: 18px; }

h1, h2, h3 { line-height: 1.04; letter-spacing: 0; margin: 0 0 22px; }
h1 {
  font-family: "Google Sans", "Open Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: clamp(3.1rem, 6.1vw, 6.9rem);
  max-width: 1120px;
}
h2 {
  font-family: "Google Sans", "Open Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: #fff;
  font-size: clamp(1.9rem, 3.1vw, 3.25rem);
}
p { margin-top: 0; }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.75rem); max-width: 840px; color: #fff; font-weight: 700; }
.lead.compact { font-size: clamp(1.15rem, 1.45vw, 1.4rem); max-width: 760px; }
.eyebrow { color: #fff; font-weight: 800; text-transform: none; font-size: 0.9rem; margin-bottom: 20px; }

.site-header {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 20;
  pointer-events: none;
}
.nav {
  width: min(1700px, calc(100% - 24px));
  margin-inline: auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 48px;
  border-radius: 999px;
  background: #fff;
  color: #201035;
  box-shadow: 0 16px 34px rgba(0,0,0,0.16);
  pointer-events: auto;
  transform-origin: top center;
  will-change: width, min-height, padding, transform;
  transition:
    width 680ms cubic-bezier(.16,1,.3,1),
    min-height 680ms cubic-bezier(.16,1,.3,1),
    padding 680ms cubic-bezier(.16,1,.3,1),
    transform 680ms cubic-bezier(.16,1,.3,1),
    box-shadow 680ms cubic-bezier(.16,1,.3,1);
}
.site-header.is-large .nav {
  width: min(1700px, calc(100% - 24px));
  min-height: 80px;
  padding: 0 48px;
}
.site-header.is-compact .nav {
  width: min(376px, calc(100% - 32px));
  min-height: 78px;
  padding: 0 38px;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.2);
}
.site-header.is-transitioning.to-compact .nav {
  animation: header-pop-compact 680ms cubic-bezier(.16,1,.3,1) both;
}
.site-header.is-transitioning.to-large .nav {
  animation: header-pop-large 680ms cubic-bezier(.16,1,.3,1) both;
}
@keyframes header-pop-compact {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(1px) scale(1.018); }
  100% { transform: translateY(-2px) scale(1); }
}
@keyframes header-pop-large {
  0% { transform: translateY(-2px) scale(1); }
  22% { transform: translateY(-1px) scale(0.985); }
  55% { transform: translateY(0) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: "Google Sans", "Open Sans", "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #240047;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span:first-child span, .brand-compact span { color: var(--brand); }
.brand small {
  padding-left: 18px;
  border-left: 2px solid #240047;
  font-family: "Google Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
}
.brand-compact { display: none; font-size: 2rem; }
.site-header.is-compact .brand-full, .site-header.is-compact .brand small, .site-header.is-compact .nav-links { display: none; }
.site-header.is-compact .brand-compact { display: inline; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 1.05rem; }
.nav-links a, .site-footer nav a, .cms-topbar nav a { font-weight: 700; text-decoration: none; }
.nav-links a[aria-current="page"] { color: #201035; box-shadow: inset 0 -3px 0 var(--blue); }
.nav-links > a {
  position: relative;
  transition: color 220ms ease;
}
.nav-links > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.16,1,.3,1);
}
.nav-links > a:hover,
.nav-links > a:focus-visible {
  color: var(--brand);
}
.nav-links > a:hover::after,
.nav-links > a:focus-visible::after {
  transform: scaleX(1);
}
.nav-languages a {
  position: relative;
  transition: color 220ms ease;
}
.nav-languages a:hover,
.nav-languages a:focus-visible {
  color: var(--brand);
}
.nav-languages a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(.16,1,.3,1);
}
.nav-languages a:hover::after,
.nav-languages a:focus-visible::after {
  transform: scaleX(1);
}
.mobile-menu-kicker { display: none; }
.nav-languages { display: flex; gap: 14px; align-items: center; }
.nav-lang::after { content: ""; }
.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nav-toggle-icon {
  position: relative;
  display: block;
  width: 38px;
  height: 28px;
}
.nav-toggle-icon span { position: absolute; left: 0; display: block; width: 38px; height: 4px; background: #050505; border-radius: 4px; transition: transform 300ms cubic-bezier(.16,1,.3,1), opacity 180ms ease, background 200ms ease; }
.nav-toggle-icon span:nth-child(1) { top: 2px; }
.nav-toggle-icon span:nth-child(2) { top: 12px; }
.nav-toggle-icon span:nth-child(3) { top: 22px; }
.site-header.is-compact .nav-toggle { display: inline-flex; }

.hero, .page-hero, .article-hero {
  position: relative;
  min-height: 680px;
  padding: 178px 0 78px;
  overflow: hidden;
}
.hero-grid, .page-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy.centered { text-align: center; margin-inline: auto; }
.hero-copy.centered .lead { margin-inline: auto; }
.hero-copy.centered .actions { justify-content: center; }
.page-hero-grid { grid-template-columns: 1fr 0.95fr; gap: 72px; }
.hero-side-copy { padding-top: 72px; font-size: clamp(1.15rem, 1.55vw, 1.45rem); color: #fff; font-weight: 650; }
.training-hero .hero-side-copy { padding-top: 18px; }
.shape { position: absolute; z-index: 1; display: block; pointer-events: none; }
.shape-panel-left {
  width: 300px;
  height: 430px;
  left: -80px;
  top: -42px;
  background: rgba(202,0,93,0.45);
  transform: rotate(-14deg);
}
.shape-panel-right {
  width: 300px;
  height: 165px;
  right: -72px;
  top: 390px;
  background: rgba(202,0,93,0.62);
  transform: rotate(4deg);
}
.shape-orbit {
  width: 920px;
  height: 520px;
  right: -120px;
  top: -120px;
  background: rgba(202,0,93,0.25);
  border-radius: 0 0 0 260px;
  transform: rotate(-4deg);
}
.shape-orbit.large { width: 1160px; height: 580px; top: -70px; right: -110px; }
.shape-dot {
  width: 240px;
  height: 240px;
  right: 12%;
  top: 110px;
  background: rgba(255,255,255,0.18);
  transform: rotate(12deg);
}

.actions { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; margin-top: 34px; }
.actions.stacked { align-items: flex-start; }
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 8px 46px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1.1rem;
  isolation: isolate;
  transition: color 260ms ease, border-color 260ms ease, transform 180ms ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(.16,1,.3,1);
}
.btn:hover::before,
.btn:focus-visible::before,
.btn:active::before {
  transform: scaleX(1);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--blue); color: white; box-shadow: 0 16px 28px rgba(202,0,93,0.18); }
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary:active { color: var(--brand); background: var(--blue); border-color: #fff; }
.btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.text-link { color: #fff; font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.text-link::after { content: " →"; color: var(--blue); }

.section { position: relative; padding: 72px 0; }
.muted { background: rgba(15,0,32,0.28); border-top: 1px solid rgba(255,255,255,0.08); }
.split-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 100px; }
.feature-list { padding-left: 1.3em; font-size: 1.25rem; font-weight: 750; }
.feature-list li { margin: 16px 0; }
.number-list ol { list-style: none; margin: 0; padding: 0; }
.number-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.18rem, 1.55vw, 1.55rem);
  font-weight: 800;
}
.number-list span { color: var(--blue); font-weight: 500; font-size: 1.45em; line-height: 1; }
.three-col, .article-grid, .training-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.training-list article, .article-card, .contact-panel, .auth-card {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 28px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; }
.page-title { padding: 180px 0 72px; }

.breadcrumbs { display: flex; gap: 14px; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: 84px; color: var(--muted); font-weight: 900; }
.breadcrumbs a { color: #fff; text-decoration: none; }
.breadcrumbs > * + *::before { content: "›"; margin-right: 14px; color: #fff; font-size: 1.5em; line-height: 0; }
.content-narrow { max-width: 980px; }

.search-pill {
  align-self: center;
  margin-top: 72px;
  background: #fff;
  color: #2a1745;
  border: 2px solid #fff;
  padding: 8px 10px 8px 22px;
}
.search-pill label { color: #7d6f94; margin: 0; font-weight: 700; }
.search-pill div { display: grid; grid-template-columns: 1fr 48px; gap: 12px; align-items: center; }
.search-pill input {
  border: 0;
  background: transparent;
  color: #210037;
  padding: 0;
  min-height: 40px;
  font-size: 1.15rem;
}
.search-pill input:focus,
.search-pill input:focus-visible {
  outline: 0;
  border: 0;
  box-shadow: none;
}
.search-pill:focus-within {
  outline: 0;
  border-color: #fff;
  box-shadow: none;
}
.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}
.search-submit:hover,
.search-submit:focus-visible { background: var(--blue-dark); outline-color: #fff; }
.empty-state { font-size: 1.35rem; color: #fff; max-width: 900px; }

.article-card { display: flex; flex-direction: column; gap: 18px; min-height: 100%; transition: transform 520ms cubic-bezier(.16,1,.3,1), opacity 520ms ease; }
.article-card img, .featured { width: 100%; object-fit: cover; background: rgba(255,255,255,0.08); }
.article-card img { aspect-ratio: 16 / 9; }
.article-card h2 { font-size: 2rem; }
.article-card h2 a { text-decoration: none; }
.article-card-compact {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
}
.article-card-compact img { aspect-ratio: 4 / 3; height: 100%; }
.article-card-compact h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
.article-detail { padding-bottom: 86px; }
.article-hero { min-height: 840px; }
.article-hero h1 { font-size: clamp(3.2rem, 5.6vw, 5.9rem); max-width: 1280px; }
.author-row { display: flex; gap: 16px; align-items: center; margin: 34px 0; color: var(--muted); font-weight: 800; }
.author-row strong { color: #fff; }
.author-row img { border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); }
.featured { max-height: 560px; margin-top: -120px; position: relative; z-index: 3; }
.prose {
  width: min(860px, 100%);
  margin: 70px auto 0;
  padding: 42px;
  background: #fff;
  color: #211333;
  font-size: 1.18rem;
}
.prose h2, .prose h3 { color: #211333; }
.prose a { color: #173ee8; }
.share { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }

label, legend { font-weight: 900; display: block; margin-top: 14px; }
input, textarea, select { width: 100%; min-height: 50px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 11px 13px; font: inherit; background: rgba(255,255,255,0.08); color: #fff; }
textarea { resize: vertical; }
.contact-panel { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 42px; }
.contact-location h2 { color: var(--blue); font-weight: 900; font-size: 2rem; }

.site-footer { border-top: 1px solid var(--line); padding: 52px 0 0; margin: 0; background: var(--purple-deep); color: white; }
.site-footer .brand, .site-footer a { color: white; }
.site-footer .brand { display: inline-flex; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; }
.footer-grid nav { display: grid; gap: 8px; }

.cms-body { background: #f6f7f8; color: #111; }
.cms-body h1, .cms-body h2, .cms-body h3 { color: #111; }
.cms-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 24px; background: white; border-bottom: 1px solid #d8d8d8; color: #111; }
.cms-topbar .brand { color: #240047; }
.cms-topbar nav { display: flex; gap: 18px; }
.cms-main { width: min(1180px, calc(100% - 32px)); margin: 32px auto; }
.auth-card { max-width: 460px; margin: 48px auto; background: #fff; color: #111; border: 1px solid #d8d8d8; border-radius: 8px; }
.cms-section { background: white; border: 1px solid #d8d8d8; border-radius: 8px; padding: 24px; color: #111; }
.cms-body input, .cms-body textarea, .cms-body select { color: #111; background: #fff; border: 1px solid #777; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; border-bottom: 1px solid #d8d8d8; padding: 12px; vertical-align: top; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
fieldset { border: 1px solid #d8d8d8; border-radius: 8px; padding: 14px; margin: 20px 0; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 8px; }
.check input { width: auto; min-height: 0; }
.form-error { color: #8b0000; font-weight: 800; }
.field-hint { color: #555; font-size: 0.9rem; margin: 4px 0 0; }

.reveal-item {
  opacity: 0.28;
  transform: translateY(22px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(.16,1,.3,1);
}
.reveal-item.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .container { width: min(100% - 32px, 760px); }
  body { font-size: 17px; }
  h1 { font-size: clamp(2.75rem, 11vw, 4.4rem); }
  .site-header { inset: 10px 0 auto; }
  .nav, .site-header.is-compact .nav, .site-header.is-large .nav { width: min(680px, calc(100% - 32px)); min-height: 66px; padding: 0 28px; }
  .brand-full, .brand small, .nav-links { display: none; }
  .brand-compact { display: inline-block; }
  .nav-toggle { display: inline-flex; width: 52px; min-width: 52px; height: 52px; }
  .nav-links,
  .site-header.is-compact .nav-links {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100vh;
    padding: 96px 32px 32px;
    border-radius: 0;
    background:
      radial-gradient(circle at 82% 0%, rgba(255,95,163,0.22), transparent 42%),
      var(--purple-deep);
    color: #fff;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-18px) scale(0.985);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 360ms cubic-bezier(.16,1,.3,1), transform 520ms cubic-bezier(.16,1,.3,1);
  }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { inset: 0; }
  body.menu-open .site-header .nav {
    width: 100%;
    min-height: 76px;
    padding: 18px 28px 0;
    justify-content: flex-end;
    background: transparent;
    box-shadow: none;
  }
  body.menu-open .site-header .brand { display: none; }
  body.menu-open .nav-toggle-icon span { background: #fff; }
  .nav-links.is-open,
  .site-header.is-compact .nav-links.is-open {
    gap: 18px;
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    color: #fff;
    font-weight: 500;
    font-size: clamp(2.55rem, 10vw, 4.7rem);
    line-height: 1.08;
    box-shadow: none !important;
  }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"], .nav-links .nav-lang.is-active {
    color: var(--theme-glow);
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
  }
  .nav-languages { margin-top: 26px; display: grid; gap: 12px; }
  .nav-links .nav-lang { font-size: 2rem; text-decoration: none; font-weight: 500; }
  .nav-links .nav-lang.is-active { text-decoration: underline; font-weight: 700; }
  .mobile-menu-kicker { display: block; margin: 16px 0 0; color: #fff; font-size: 1.25rem; font-weight: 500; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon { gap: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span { width: 36px; height: 3px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) { top: 13px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) { top: 13px; transform: rotate(-45deg); }
  .hero, .page-hero, .article-hero { min-height: auto; padding: 96px 0 42px; }
  .page-hero-grid, .split-grid, .three-col, .article-grid, .training-list, .contact-panel, .form-grid { grid-template-columns: 1fr; }
  .hero-side-copy, .search-pill { padding-top: 0; margin-top: 24px; }
  .search-pill div { grid-template-columns: 1fr 48px; }
  .breadcrumbs { margin-bottom: 44px; font-size: 1rem; }
  .actions { flex-direction: column; align-items: flex-start; }
  .hero-copy.centered .actions { align-items: center; }
  .shape-panel-left { width: 170px; height: 250px; left: -85px; top: 100px; }
  .shape-panel-right { width: 180px; height: 110px; right: -90px; top: 430px; }
  .shape-orbit, .shape-orbit.large { width: 520px; height: 280px; right: -260px; top: 0; }
  .featured { margin-top: 0; }
  .prose { padding: 24px; margin-top: 32px; }
  .footer-grid { flex-direction: column; }
  .article-card-compact { grid-column: auto; grid-template-columns: 108px minmax(0, 1fr); padding: 16px; }
  .article-card-compact p:not(.eyebrow), .article-card-compact .text-link { display: none; }
  .article-card-compact h2 { font-size: 1.12rem; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .site-header.is-transitioning .nav { animation: none !important; }
}
