/* ===========================================================
   MoroccanLog — Shared stylesheet
   Fonts are enqueued in inc/assets.php.
   =========================================================== */

:root {
  --red: #E31E24;
  --red-dark: #B8151A;
  --black: #0A0A0A;
  --footer-dark: #1B1E21;
  --white: #FFFFFF;
  --ink: #16181B;
  --text-muted: #6B7078;
  --text-on-dark: #F3F2EE;
  --text-on-dark-muted: #ABB0B6;
  --border-light: rgba(0,0,0,0.08);
  --border-dark: rgba(255,255,255,0.1);

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 1240px;
  --gutter: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}

p { margin: 0; line-height: 1.6; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.ticker-track {
  display: inline-flex;
  padding: 9px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
}
.ticker.is-scrolling .ticker-track {
  animation: ticker-scroll var(--ticker-duration, 30s) linear infinite;
}
/* Spacing via padding (not gap) so the two halves of the loop are identical. */
.ticker-track span,
.ticker-track a { white-space: nowrap; color: var(--white); padding: 0 60px; }
.ticker-track a:hover { text-decoration: underline; }
/* Pause on hover only where hover exists (a tap would otherwise freeze it). */
@media (hover: hover) {
  .ticker:hover .ticker-track { animation-play-state: paused; }
}
@media (max-width: 600px) {
  .ticker-track { padding: 7px 0; font-size: 12px; }
  .ticker-track span,
  .ticker-track a { padding: 0 32px; }
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker.is-scrolling .ticker-track { animation-duration: calc(var(--ticker-duration, 30s) * 3); }
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 18px var(--gutter);
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--black);
}
.logo img { height: 26px; width: auto; }
.footer-brand .logo img { height: 34px; }
.nav-panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.navbar .nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
}
.navbar .nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
}
.nav-right .btn { border-radius: 2px; }
.navbar .nav-links a { color: var(--ink); }
.navbar .nav-links a:hover,
.navbar .nav-links a.active { color: var(--red); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; right: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle.is-open .nav-toggle-bar { background: transparent; }
.nav-toggle.is-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .navbar { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }
  .no-js .nav-panel,
  .nav-panel.is-open { display: flex; }
  .navbar .nav-links { justify-content: flex-start; width: 100%; }
  .navbar .nav-links ul { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-outline-dark { background: var(--white); color: var(--black); border: 2px solid var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-light:hover { border-color: var(--white); }
.btn-start { align-self: flex-start; }
.btn-light {
  background: var(--white);
  color: var(--black);
  border-radius: 2px;
  padding: 8px 8px 8px 14px;
  gap: 14px;
  font-weight: 500;
}
.btn-light:hover { background: #E9E9E9; }
.btn-arrow-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--black);
  color: var(--white);
  border-radius: 2px;
}
.btn-pill {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #E2E3E5;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.btn-pill:hover { border-color: var(--ink); }

/* ---------- Home hero (map) ---------- */
.hero--home {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter);
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-home-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 58%;
}
.hero-home-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-home-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10,10,10,0) 22%);
}
.hero-home-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 0;
}
.hero-home-copy { max-width: 470px; }
.hero--home h1 { font-size: 56px; line-height: 1.12; color: var(--white); margin-bottom: 26px; }
.hero--home p.lead { font-size: 15px; color: rgba(255,255,255,0.88); max-width: 430px; margin-bottom: 40px; }
@media (max-width: 880px) {
  .hero--home { min-height: 0; }
  .hero-home-media { width: 100%; opacity: 0.35; }
  .hero-home-media::after { background: linear-gradient(0deg, rgba(10,10,10,0.6), rgba(10,10,10,0.2)); }
  .hero-home-inner { padding: 70px 0; }
  .hero--home h1 { font-size: 38px; }
}

/* ---------- Home "about" (globe) ---------- */
.about { overflow: hidden; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.about-visual { position: relative; min-height: 340px; }
.about-globe {
  position: absolute;
  top: 50%;
  left: -150px;
  width: 400px;
  height: 400px;
  transform: translateY(-50%);
}
.about-pill {
  position: absolute;
  top: 26%;
  left: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid #E6E7E9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.about-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.about-badge {
  position: absolute;
  bottom: 18%;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 220px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
}
.about-badge svg { flex: none; }
.about-badge span { padding-left: 12px; border-left: 1px solid #D5D7DA; }
.section .about-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: none;
  margin-bottom: 44px;
}
.about-title-muted { color: #A9ADB3; }
.about-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .about-globe { width: 300px; height: 300px; left: -110px; }
  .section .about-title { font-size: 26px; }
}

/* ---------- Hero (dark) ---------- */
.hero {
  background: var(--black);
  color: var(--text-on-dark);
  padding: 90px var(--gutter);
}
.hero-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-grid--single { grid-template-columns: 1fr; }
.hero h1 {
  font-size: 48px;
  line-height: 1.08;
  margin-bottom: 20px;
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-on-dark-muted);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-grid--single p.lead { max-width: 640px; margin-bottom: 0; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-on-dark-muted);
}
.hero-meta a { text-decoration: underline; text-underline-offset: 3px; }
.hero .badge-grey { background: rgba(255,255,255,0.1); color: #D8DBDF; }
.hero-visual {
  border-radius: 14px;
  overflow: hidden;
  background: #111418;
  aspect-ratio: 4/3;
  position: relative;
}
.hero-visual--form { aspect-ratio: auto; padding: 36px; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}

/* ---------- Map graphic ---------- */
.map-graphic {
  width: 100%;
  height: 100%;
  background: #0E1013;
}
.map-graphic svg { width: 100%; height: 100%; }
.map-pin { fill: var(--red); }
.map-graphic--red { background: radial-gradient(circle at 65% 35%, rgba(227,30,36,0.35), #0E1013 70%); }
.map-graphic--blue { background: radial-gradient(circle at 65% 35%, rgba(79,146,200,0.4), #0E1013 70%); }
.map-graphic--white { background: radial-gradient(circle at 65% 35%, rgba(216,219,223,0.3), #0E1013 70%); }

/* ---------- Sections (light) ---------- */
.section {
  padding: 90px var(--gutter);
}
.section-dark {
  background: var(--black);
  color: var(--text-on-dark);
}
.section-alt {
  background: #F7F6F4;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.eyebrow-light {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.eyebrow-tight { margin-bottom: 10px; }
.section h2 {
  font-size: 32px;
  margin-bottom: 14px;
  max-width: 640px;
}
.section .lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 44px;
}
.section-dark .lead { color: var(--text-on-dark-muted); }
.section-actions { margin-top: 32px; }

/* ---------- Grids / cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 26px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 26px;
}
.grid-spaced { margin-top: 10px; }
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.section-dark .card {
  background: #121417;
  border-color: var(--border-dark);
}
.card-title { font-size: 17px; }
.card-title--lg { font-size: 18px; }
.card-bottom { margin-top: auto; }
.card-note { max-width: 640px; border-color: rgba(227,30,36,0.3); }
.card-note-title { font-size: 16px; color: var(--red); }
.card-feature { padding: 44px; border-color: rgba(227,30,36,0.25); display: block; }
.section .card-feature-title { margin-bottom: 12px; }
.section .card-feature-lead { margin-bottom: 28px; }

.team-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  color: var(--white);
  transition: transform 0.2s;
}
.team-card:hover { transform: translateY(-4px); }
.team-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.78));
}
.team-card.red { background: #5A0E10 radial-gradient(circle at 70% 30%, rgba(227,30,36,0.55), transparent 60%); }
.team-card.blue { background: #0E2A42 radial-gradient(circle at 70% 30%, rgba(79,146,200,0.5), transparent 60%); }
.team-card.white,
.team-card.grey { background: #2A2D31 radial-gradient(circle at 70% 30%, rgba(216,219,223,0.35), transparent 60%); }
.team-card-body { position: relative; z-index: 1; }
.team-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
}
.team-card h3 { font-size: 22px; margin-bottom: 6px; }
.team-card p { font-size: 14px; color: rgba(255,255,255,0.8); }

.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-red { background: rgba(227,30,36,0.12); color: var(--red); }
.badge-blue { background: rgba(79,146,200,0.14); color: #3E7CB1; }
.badge-grey { background: rgba(0,0,0,0.06); color: #4A4E54; }
.section-dark .badge-grey { background: rgba(255,255,255,0.1); color: #D8DBDF; }
.badge-above { margin-bottom: 8px; }

/* ---------- Lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--red);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--black);
  color: var(--white);
  padding: 90px var(--gutter);
  text-align: center;
}
.cta-band h2 { font-size: 30px; margin-bottom: 16px; }
.cta-band p { color: var(--text-on-dark-muted); margin-bottom: 30px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--footer-dark);
  color: var(--text-on-dark-muted);
  padding: 56px var(--gutter) 28px;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 13px; max-width: 260px; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: var(--red); color: var(--white); }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover,
.footer-col a.active { color: var(--white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Generic content pages (legal, posts) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose-left { margin: 0; }
.prose-title { font-size: 36px; margin-bottom: 10px; }
.prose-notice { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }
.prose h2 { font-size: 24px; margin-top: 44px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 32px; margin-bottom: 12px; }
.prose p { margin-bottom: 16px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.6; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 10px; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--red); color: var(--text-muted); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: 14px; }
.prose pre { background: #F7F6F4; padding: 16px; border-radius: 8px; overflow-x: auto; }
.prose .placeholder { color: var(--red); }
.post-cover { margin: 0 0 32px; }
.post-cover img { border-radius: 12px; width: 100%; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.form-narrow { max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.form-dark .field label { color: var(--white); }
.field input, .field select, .field textarea {
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--white);
  color: var(--ink);
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 520px;
}
.form-notice--success { background: rgba(46,160,90,0.12); color: #1E7A44; }
.form-notice--error { background: rgba(227,30,36,0.12); color: var(--red); }
.hero .form-notice--success { color: #7BD9A0; }
.hero .form-notice--error { color: #FF8A8D; }
.contact-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  color: var(--text-on-dark-muted);
}
.contact-meta a:hover { color: var(--white); }

/* ---------- 404 ---------- */
.error-page {
  background: var(--black);
  color: var(--white);
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px var(--gutter);
  gap: 18px;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: 110px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.error-title { font-size: 26px; }
.error-text { color: var(--text-on-dark-muted); max-width: 420px; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* ---------- Article list ---------- */
.article-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-light);
}
.article-row:first-child { padding-top: 0; }
.article-row h3 { font-size: 18px; margin-bottom: 6px; }
.article-row h3 a:hover { color: var(--red); }
.article-row p { color: var(--text-muted); }
.article-row .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
@media (max-width: 600px) {
  .article-row { flex-direction: column; gap: 10px; }
}

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.pagination .nav-links,
.pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.pagination .page-numbers.current { background: var(--black); color: var(--white); border-color: var(--black); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ---------- Vulnerability advisory ---------- */
.vuln-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.vuln-side { display: flex; flex-direction: column; gap: 20px; }
.vuln-facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.vuln-facts dt { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); padding-top: 2px; }
.vuln-facts dd { margin: 0; font-weight: 600; }
.vuln-vector {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  word-break: break-all;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.hero-grid--single .hero-meta { margin-top: 24px; }
@media (max-width: 880px) {
  .vuln-grid { grid-template-columns: 1fr; }
}

/* ---------- Splash (front page, once per session) ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--black);
  animation: splash-colors 2s ease-in-out forwards;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
/* Black → red → white over the 2 s; the logo and counter fade out as the
   screen turns white, then the splash fades away to reveal the page. */
@keyframes splash-colors {
  0%, 10% { background-color: var(--black); }
  50% { background-color: var(--red); }
  100% { background-color: var(--white); }
}
.splash-center,
.splash-progress,
.splash-bar { animation: splash-content 2s ease-in-out forwards; }
@keyframes splash-content {
  0%, 70% { opacity: 1; }
  100% { opacity: 0; }
}
.splash.is-done { opacity: 0; visibility: hidden; }
.no-js .splash { display: none; }
body.splash-active { overflow: hidden; }
.splash-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}
.splash-logo { width: 96px; height: auto; }
@media (max-width: 600px) {
  .splash-logo { width: 76px; }
}
.splash-center .tagline { font-family: var(--font-body); font-weight: 600; font-size: 14px; margin-top: 10px; }
.splash-progress {
  position: absolute;
  bottom: 22px; right: 28px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
}
.splash-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
}
.splash-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--white);
}

/* ---------- Small screens ---------- */
@media (max-width: 880px) {
  :root { --gutter: 20px; }
  .hero, .section, .cta-band { padding-top: 60px; padding-bottom: 60px; }
  .section h2 { font-size: 26px; }
  .card-feature { padding: 28px; }
  .hero-visual--form { padding: 24px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .error-page .code { font-size: 80px; }
  .prose-title { font-size: 28px; }
}

/* ---------- Motion (home page + buttons) ---------- */
/* Buttons: lift, shadow, light sweep, arrow nudge. */
.btn {
  position: relative;
  overflow: hidden;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.14); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }
.btn-red:hover { box-shadow: 0 10px 24px rgba(227,30,36,0.35); }
.btn::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -75%;
  width: 50%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}
.btn:hover::after { left: 130%; transition: left 0.6s ease; }
.btn-light .btn-arrow-box,
.btn-pill span[aria-hidden] { transition: transform 0.25s ease; display: inline-flex; }
.btn-light:hover .btn-arrow-box { transform: translateX(4px); background: var(--red); }
.btn-pill:hover span[aria-hidden] { transform: translateX(4px); }

/* Cards: lift on hover. */
.home .card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.home .card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); border-color: rgba(227,30,36,0.3); }
.team-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0,0,0,0.25); }
.article-row { transition: transform 0.25s ease; }
.article-row:hover { transform: translateX(6px); }

/* Hero: slow zoom on the map, word-by-word title, then the rest fades up. */
.js .hero--home .hero-home-media img { animation: hero-zoom 18s ease-out both; }
.js .hero--home .hw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  filter: blur(6px);
}
.js .hero--home .hero-fade { opacity: 0; transform: translateY(18px); }
.hero--home.is-go .hw {
  animation: hero-word 0.7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 70ms);
}
.hero--home.is-go .hero-fade {
  animation: fade-up 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0ms);
}
.hero--home .eyebrow { position: relative; }
@keyframes hero-word { to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Scroll reveal (classes added by main.js on the home page only). */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.reveal.reveal-left { transform: translateX(-40px); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Red underline that draws under section titles when they appear. */
.home .section h2.reveal { position: relative; }
.home .section h2.reveal::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  margin-top: 14px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s ease 0.3s;
}
.home .section h2.reveal.is-visible::after,
.home .section h2.revealed::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .js .hero--home .hw,
  .js .hero--home .hero-fade,
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
  .js .hero--home .hero-home-media img { animation: none; }
  .btn:hover, .card:hover, .team-card:hover, .article-row:hover { transform: none; }
  .btn::after { display: none; }
}
