/* ===== Tokens ===== */
:root {
  --paper: #ffffff;
  --paper-deep: #f2f5fa;
  --paper-soft: #f7f9fc;
  --ink: #1e3a6e;
  --ink-soft: #5b7cb8;
  --ink-faint: #a9bddd;
  --line: #e2e7f0;
  --abyss: #0e1f4a;
  --abyss-2: #14264f;
  --blue: #1f3a70;
  --wave: #3d6bb5;
  --ember: #e8552e;
  --gold: #e9b85c;

  --font-display: "Anton", "Impact", sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --shadow: 0 12px 32px -12px rgba(14, 31, 74, .28);
  --shadow-lg: 0 20px 44px -14px rgba(14, 31, 74, .4);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1120px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; text-align: center; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

/* ===== Type helpers ===== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.005em;
  line-height: .95;
}
.h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.h3 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; }

.kicker {
  font-family: var(--font-serif);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.kicker-light { color: var(--ink-faint); }

.eyebrow-italic {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }
.dot.gold { background: var(--gold); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1rem;
  padding: 12px 24px; border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 9px 18px 9px 10px; font-size: .92rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-solid { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--abyss); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; color: var(--ink);
  font-family: var(--font-display); font-size: .78rem; letter-spacing: .03em;
  display: inline-grid; place-items: center;
}
.btn-sm .avatar { width: 26px; height: 26px; font-size: .7rem; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14,31,74,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .02em;
}
.brand-name {
  font-family: var(--font-serif); font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; font-size: .9rem;
}
.brand-light .brand-mark { background: #fff; color: var(--ink); }
.brand-light { color: #fff; }

.nav { display: flex; gap: 32px; }
.nav a { font-size: 1rem; position: relative; padding: 4px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ember); transition: width .25s var(--ease);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.menu-toggle { display: none; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 120px 0 130px; text-align: center; }
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: clamp(3.4rem, 9vw, 6.4rem); color: var(--ink); }
.hero-title .soft { color: var(--ink-soft); }
.hero-sub { max-width: 540px; margin: 28px auto 0; font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-actions .btn-solid { padding-left: 12px; }

.orb { position: absolute; border-radius: 50%; animation: float 9s ease-in-out infinite; }
.orb-1 { width: 220px; height: 220px; background: #dfe6f2; top: 60px; right: 6%; }
.orb-2 { width: 64px; height: 64px; background: #f6dfb1; top: 46%; right: 4%; animation-delay: -3s; }
.orb-3 { width: 110px; height: 110px; background: #a9bde3; bottom: 18%; right: 20%; animation-delay: -6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ===== Band ===== */
.band {
  background-color: var(--abyss);
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 14px 14px;
  color: #fff; padding: 52px 0; text-align: center;
}
.band-label {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint);
}
.band-label .line { width: 60px; height: 1px; background: rgba(169,189,221,.4); }
.band-logos { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 28px 0; }
.logo-card {
  background: #fff; border-radius: 10px; min-width: 230px; height: 66px;
  display: grid; place-items: center; padding: 0 28px;
  transition: transform .25s var(--ease);
}
.logo-card:hover { transform: translateY(-3px); }
.wordmark { color: var(--ink); font-size: 1.35rem; }
.wm-bdf { font-family: var(--font-serif); font-weight: 700; letter-spacing: .01em; }
.wm-pana { font-family: var(--font-serif); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 1.05rem; }
.band-caption { font-size: .98rem; color: var(--ink-faint); }
.band-caption strong { color: #fff; font-weight: 600; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-tint { background: var(--paper-soft); }
.section-dark { background: var(--abyss); color: #fff; }
.section-blue { background: var(--blue); color: #fff; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 48px; flex-wrap: wrap;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-grid .h2 { font-size: clamp(2.2rem, 4.4vw, 3.3rem); }
.lead { color: var(--ink-soft); font-size: 1.15rem; line-height: 1.65; margin: 22px 0 32px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: clamp(3.6rem, 7vw, 5.2rem); line-height: 1; }
.stat-label { display: block; margin-top: 10px; color: var(--ink-soft); font-size: .98rem; }

/* Services grid */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--ink-faint); border-left: 1px dashed var(--ink-faint);
}
.service {
  position: relative; padding: 30px 26px 44px;
  border-right: 1px dashed var(--ink-faint); border-bottom: 1px dashed var(--ink-faint);
  background: transparent; transition: background .3s var(--ease);
}
.service:hover { background: #fff; }
.service .num { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-faint); letter-spacing: .1em; }
.service h3 { font-size: 1.18rem; font-weight: 600; margin: 12px 0 10px; }
.service p { color: var(--ink-soft); font-size: .96rem; line-height: 1.55; }
.service .corner {
  position: absolute; right: 22px; bottom: 16px; font-size: .9rem; color: var(--ink-faint);
  transition: transform .25s var(--ease), color .25s;
}
.service:hover .corner { color: var(--ember); transform: translate(3px, -3px); }

/* Case cards */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); align-items: start; }
.case {
  border: 1px solid rgba(91,124,184,.45); padding: 32px 28px;
  background: rgba(20,38,79,.4);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.case + .case { margin-left: -1px; }
.case:nth-child(2) { margin-top: 0; }
.case:hover { background: var(--abyss-2); transform: translateY(-4px); }
.case-tag { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.case h3 { font-size: 1.7rem; line-height: 1.2; margin: 12px 0 28px; font-weight: 400; }
.case h3 em { font-style: italic; }
.metrics { display: grid; grid-template-columns: 1fr; gap: 22px; }
.m-big { display: block; font-size: 1.75rem; line-height: 1.1; font-weight: 400; }
.m-small { display: block; font-size: .8rem; color: var(--ink-faint); margin-top: 4px; }
.case-role { margin-top: 30px; font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 8px; }
.case-role::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

/* Marquee */
.marquee-wrap { background: var(--paper-deep); padding: 34px 0; overflow: hidden; display: grid; gap: 14px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee.reverse .track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.pill {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 20px; font-size: .92rem; white-space: nowrap; color: var(--ink);
}

/* Certifications */
.certs { display: flex; flex-wrap: wrap; justify-content: center; }
.cert { flex: 0 0 33.333%; background: var(--abyss); border: 1px solid rgba(91,124,184,.35); margin: 0 -1px -1px 0; transition: transform .3s var(--ease); }
.cert:hover { transform: translateY(-4px); }
.cert-art {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
  font-family: var(--font-display); font-size: 2.8rem; letter-spacing: .02em; color: #fff;
}
.cert-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px); background-size: 12px 12px;
}
.cert-art span { position: relative; z-index: 1; }
.art-1 { background: linear-gradient(135deg, #2e4f8c, #0e1f4a); }
.art-2 { background: linear-gradient(135deg, #3d6bb5, #14264f); }
.art-3 { background: linear-gradient(135deg, #e8552e, #8a2f17); }
.art-4 { background: linear-gradient(135deg, #4a66a0, #1b315c); }
.art-5 { background: linear-gradient(135deg, #e9b85c, #a5741d); }
.cert-body { padding: 18px 20px 22px; }
.cert-tag { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); }
.cert-body h3 { font-size: 1.02rem; font-weight: 600; line-height: 1.35; margin-top: 6px; }

/* List (languages) */
.list-item { border-top: 1px solid var(--line); padding: 26px 0; }
.list-item:last-child { border-bottom: 1px solid var(--line); }
.list-tag { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.list-item h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 8px 0 6px; font-weight: 400; }
.list-item p:last-child { color: var(--ink-soft); }

/* Follow */
.follow { text-align: center; }
.follow-sub { color: var(--ink-soft); font-size: 1.15rem; max-width: 520px; margin: 14px auto 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 34px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: .86rem; background: #fff; }

/* CTA */
.cta { background: var(--blue); color: #fff; padding: 110px 0; text-align: center; }
.cta-title { font-size: clamp(3rem, 8vw, 5.6rem); margin-bottom: 34px; }

/* Footer */
.footer { background: var(--abyss); color: #fff; padding: 90px 0 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 40px; flex-wrap: wrap;
  padding-bottom: 70px; border-bottom: 1px solid rgba(169,189,221,.18);
}
.footer-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; max-width: 480px; font-weight: 400; }
.footer-cta p { margin-top: 14px; color: var(--ink-faint); font-size: .92rem; }
.footer-cta a:not(.btn) { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0; }
.footer-about p { color: var(--ink-faint); margin-top: 16px; font-size: .95rem; max-width: 300px; }
.footer-about .loc { color: #fff; }
.footer h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; font-weight: 500; }
.footer li { margin-bottom: 10px; }
.footer li a { font-size: .95rem; opacity: .9; transition: opacity .2s, color .2s; }
.footer li a:hover { opacity: 1; color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(169,189,221,.18); padding-top: 26px; font-size: .86rem; color: var(--ink-faint);
}
.to-top:hover { color: #fff; }


/* ===== Courses dropdown (nav): opens on hover or keyboard focus on desktop ===== */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn {
  font: inherit; font-size: 1rem; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 4px 0; display: inline-flex; align-items: center; gap: 6px; position: relative;
}
.nav-drop-btn::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--ember); transition: width .25s var(--ease);
}
.nav-drop-btn .chev { transition: transform .25s var(--ease); }
.nav-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; min-width: 340px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge */
@media (hover: hover) and (min-width: 1041px) {
  .nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-drop:hover .nav-drop-btn::after { width: 100%; }
  .nav-drop:hover .chev { transform: rotate(180deg); }
}
.nav .nav-menu-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 10px;
  transition: background .2s;
}
.nav .nav-menu-item::after { display: none; }
.nav .nav-menu-item:hover, .nav .nav-menu-item:focus-visible { background: var(--paper-soft); }
.nm-flag { display: grid; width: 30px; border-radius: 3px; overflow: hidden; flex: none; }
.nm-flag i { display: block; height: 6px; }
.nm-flag i:nth-child(1) { background: #111; }
.nm-flag i:nth-child(2) { background: #dd2a1f; }
.nm-flag i:nth-child(3) { background: #f5c518; }
.nm-text { display: flex; flex-direction: column; line-height: 1.3; }
.nm-text strong { font-weight: 600; font-size: .98rem; }
.nm-text small { color: var(--ink-soft); font-size: .8rem; margin-top: 2px; }
.nav .nav-menu-all {
  display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 12px 14px;
  border-top: 1px solid var(--line); border-radius: 0 0 10px 10px;
  font-weight: 600; color: var(--ink); transition: background .2s;
}
.nav .nav-menu-all::after { display: none; }
.nav .nav-menu-all:hover, .nav .nav-menu-all:focus-visible { background: var(--paper-soft); }
.nav-menu-all:hover .arrow, .nav-menu-all:focus-visible .arrow { transform: translateX(4px); }

/* ===== Blog cards ===== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--ink-faint); }
.post-card:hover .arrow { transform: translateX(4px); }
.post-cover { aspect-ratio: 16 / 9; background: var(--paper-deep); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover.placeholder {
  display: grid; place-items: center; background: linear-gradient(135deg, #2e4f8c, var(--abyss)); position: relative;
}
.post-cover.placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 12px 12px;
}
.post-cover.placeholder span { position: relative; z-index: 1; font-family: var(--font-display); color: #fff; font-size: 2.2rem; text-transform: uppercase; padding: 0 20px; text-align: center; line-height: 1; }
.post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.post-card h3 { font-size: 1.28rem; line-height: 1.25; font-weight: 600; margin: 10px 0 10px; }
.post-card p.excerpt { color: var(--ink-soft); font-size: .97rem; line-height: 1.55; flex: 1; }
.post-card .more { margin-top: 18px; font-weight: 600; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: .76rem; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--ink-soft); background: var(--paper-soft); }

/* ===== Blog index page ===== */
.page-hero { padding: 90px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-hero .hero-title { font-size: clamp(3rem, 8vw, 5.4rem); }
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.blog-search {
  flex: 1 1 260px; max-width: 360px; font: inherit; font-size: .98rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px; background: #fff;
}
.blog-search:focus { outline: 2px solid var(--ink-soft); outline-offset: 1px; }
.tag-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-filter button {
  font: inherit; font-size: .86rem; cursor: pointer; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; background: #fff;
}
.tag-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty-state { text-align: center; padding: 70px 20px; border: 1px dashed var(--ink-faint); border-radius: 18px; color: var(--ink-soft); }
.empty-state h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; color: var(--ink); margin-bottom: 10px; }

/* ===== Single post ===== */
.post-header { padding: 80px 0 34px; text-align: center; }
.post-header .post-meta { margin-bottom: 18px; }
.post-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.12; letter-spacing: -.01em; max-width: 860px; margin: 0 auto; }
.post-lede { max-width: 640px; margin: 20px auto 0; color: var(--ink-soft); font-size: 1.2rem; line-height: 1.55; font-style: italic; }
.post-header .tags { justify-content: center; margin-top: 22px; }
.post-hero-img { max-width: 1000px; margin: 0 auto 10px; padding: 0 24px; }
.post-hero-img img { width: 100%; border-radius: 16px; max-height: 520px; object-fit: cover; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-soft); font-size: .95rem; margin-bottom: 26px; }
.back-link:hover { color: var(--ink); }

.prose { max-width: 700px; margin: 0 auto; padding: 40px 24px 90px; font-size: 1.12rem; line-height: 1.78; color: #1b2c4f; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: 1.85rem; line-height: 1.25; font-weight: 600; margin-top: 2em; color: var(--ink); }
.prose h3 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin-top: 1.7em; color: var(--ink); }
.prose h4 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5em; }
.prose a { color: var(--wave); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ember); }
.prose strong { font-weight: 700; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-soft); }
.prose blockquote {
  margin-left: 0; margin-right: 0; border-left: 3px solid var(--gold); padding: 4px 0 4px 22px;
  font-style: italic; font-size: 1.2rem; color: var(--ink);
}
.prose code { font-family: var(--font-mono); font-size: .86em; background: var(--paper-deep); border-radius: 5px; padding: 2px 6px; }
.prose pre { background: var(--abyss); color: #e6ecf7; border-radius: 12px; padding: 20px 22px; overflow-x: auto; font-size: .92rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.prose img { border-radius: 12px; margin-left: auto; margin-right: auto; }
.prose hr { border: 0; text-align: center; margin: 2.4em 0; }
.prose hr::before { content: "· · ·"; color: var(--ink-faint); letter-spacing: .6em; font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { font-weight: 700; background: var(--paper-soft); }

.post-footer { max-width: 700px; margin: 0 auto; padding: 0 24px 100px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 26px; }
.share span { color: var(--ink-soft); font-size: .95rem; margin-right: 6px; }
.share a, .share button { font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; }
.share a:hover, .share button:hover { border-color: var(--ink); }
.author-box { display: flex; gap: 16px; align-items: center; margin-top: 34px; padding: 22px; border-radius: 16px; background: var(--paper-soft); }
.author-box .brand-mark { width: 52px; height: 52px; font-size: 1.3rem; border-radius: 14px; flex: none; }
.author-box p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.author-box strong { color: var(--ink); display: block; font-size: 1.02rem; }

@media (max-width: 1040px) {
  .header-cta { display: none; }
  .menu-toggle {
    display: grid; gap: 6px; background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .nav.open { max-height: 600px; }
  .nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop-btn { padding: 16px 24px; border-top: 1px solid var(--line); width: 100%; justify-content: space-between; }
  .nav-drop-btn::after { display: none; }
  .nav-menu {
    position: static; transform: none; opacity: 1; visibility: visible; min-width: 0;
    border: 0; border-radius: 0; box-shadow: none; padding: 0 12px 10px; display: none;
  }
  .nav-menu::before { display: none; }
  .nav-drop-btn .chev { display: none; }
  .nav .nav-menu-item { border-top: 0; padding: 10px 12px; }
  .nav .nav-menu-all { padding: 10px 12px; }
}
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 1.05rem; padding: 30px 16px 70px; }
  .post-footer { padding: 0 16px 80px; }
  .post-hero-img { padding: 0 16px; }
}


/* ===== Courses page ===== */
.course-list { display: grid; gap: 28px; }
.course {
  display: grid; grid-template-columns: 340px 1fr;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff;
  box-shadow: 0 2px 0 rgba(14,31,74,.03);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.course:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ink-faint); }
.course:hover .arrow { transform: translateX(4px); }
.course-art {
  position: relative; background: var(--abyss); color: #fff; padding: 34px 30px;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; overflow: hidden;
}
.course-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 14px 14px;
}
.flag { position: absolute; top: 30px; left: 30px; display: grid; width: 54px; border-radius: 4px; overflow: hidden; z-index: 1; }
.flag i { display: block; height: 11px; }
.flag i:nth-child(1) { background: #111; }
.flag i:nth-child(2) { background: #dd2a1f; }
.flag i:nth-child(3) { background: #f5c518; }
.course-art-title { position: relative; z-index: 1; font-family: var(--font-display); text-transform: uppercase; font-size: 2.9rem; line-height: .95; }
.course-art-sub { position: relative; z-index: 1; margin-top: 10px; font-style: italic; color: var(--ink-faint); }
.course-body { padding: 34px 38px 36px; }
.course-tag { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.course-body h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 10px 0 12px; font-weight: 500; }
.course-desc { color: var(--ink-soft); font-size: 1.04rem; margin: 0; }
.course-feats { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.course-feats li { position: relative; padding-left: 20px; font-size: .96rem; line-height: 1.45; }
.course-feats li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.course-feats strong { font-weight: 600; }
@media (max-width: 1040px) {
  .course { grid-template-columns: 1fr; }
  .course-art { min-height: 200px; }
  .course-feats { grid-template-columns: 1fr; }
  .course-body { padding: 26px 22px 28px; }
  .course-art-title { font-size: 2.3rem; }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .cert { flex-basis: 50%; }
  .cases { grid-template-columns: 1fr; gap: 16px; }
  .case + .case { margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 90px; }
  .orb-1 { width: 140px; height: 140px; right: -40px; top: 20px; }
  .orb-2 { display: none; }
  .orb-3 { width: 70px; height: 70px; right: 6%; bottom: 8%; }
  .services { grid-template-columns: 1fr; }
  .cert { flex-basis: 100%; }
  .stats { gap: 36px 16px; }
  .logo-card { min-width: 0; width: 100%; }
  .band-label .line { width: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
