/* Brand tokens — blue / white with orange accent */
:root {
  --color-aubergine: #0a1f44;
  --color-teal: #1a56db;
  --color-coral: #f06a1a;
  --color-sand: #f5f8fc;
  --color-ink: #0a1628;
  --color-accent-gradient: linear-gradient(135deg, #0a3d91 0%, #1a56db 55%, #3b7ef0 100%);

  --color-bg: #f5f8fc;
  --color-surface: #ffffff;
  --color-text: var(--color-ink);
  --color-muted: #4a5d78;
  --color-border: rgba(10, 31, 68, 0.12);
  --color-accent: var(--color-teal);
  --color-accent-hover: #1347b8;
  --color-link: #1a56db;
  --color-cta-text: #ffffff;
  --color-mark-bg: #0a3d91;
  --color-mark-fg: #ffffff;
  --color-hero-fg: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 12px 36px rgba(10, 61, 145, 0.1);
  --shadow-hover: 0 20px 48px rgba(10, 61, 145, 0.16);
  --max: 1120px;
  --header-h: 72px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --color-bg: #07111f;
  --color-surface: #0e1a2e;
  --color-text: #f5f8fc;
  --color-muted: #9aadc4;
  --color-border: rgba(245, 248, 252, 0.12);
  --color-accent: #5b8fff;
  --color-accent-hover: #7aa4ff;
  --color-link: #7aa4ff;
  --color-cta-text: #ffffff;
  --color-mark-bg: #f06a1a;
  --color-mark-fg: #ffffff;
  --color-hero-fg: #f5f8fc;
  --color-accent-gradient: linear-gradient(135deg, #0a3d91 0%, #1a56db 60%, #3b7ef0 100%);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 22px 50px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-text);
  background:
    radial-gradient(ellipse 80% 55% at 0% 0%, rgba(26, 86, 219, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(240, 106, 26, 0.05), transparent 50%),
    var(--color-bg);
  line-height: 1.65;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 70% 45% at 8% 0%, rgba(26, 86, 219, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 100%, rgba(240, 106, 26, 0.08), transparent 50%),
    var(--color-bg);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); text-underline-offset: 0.15em; }
a:hover { color: var(--color-coral); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 0.5rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--color-coral);
  color: var(--color-ink);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.muted { color: var(--color-muted); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 0.75rem;
}
html[data-theme="dark"] .eyebrow { color: var(--color-accent); }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 40rem; }
.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-aubergine);
  background: rgba(26, 86, 219, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
html[data-theme="dark"] .tag { color: #f5f8fc; background: rgba(91, 143, 255, 0.22); }
.meta-line { font-size: 0.9rem; color: var(--color-muted); }
.mt-lg { margin-top: 2rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
}
.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--color-mark-bg);
  color: var(--color-mark-fg);
  font-family: var(--font-display);
  font-size: 0.95rem;
}
.brand-name { font-family: var(--font-display); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.site-nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--color-text); }
.nav-cta {
  background: var(--color-accent-gradient);
  color: var(--color-cta-text) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.nav-cta:hover { filter: brightness(1.05); }
.icon-link {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-surface);
}
.icon-link svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.theme-toggle,
.nav-toggle {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 999px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
}
.theme-toggle .theme-icon { display: none; line-height: 0; }
html[data-theme="light"] .theme-toggle .theme-icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: block; }
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.btn:focus-visible,
.chip:focus-visible,
.icon-link:focus-visible,
a:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 3px;
}
.nav-toggle { display: none; }
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}
.nav-toggle span:not(.sr-only)::before { top: -5px; }
.nav-toggle span:not(.sr-only)::after { top: 5px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent-gradient);
  color: var(--color-cta-text);
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.28);
}
.btn-primary:hover { color: var(--color-cta-text); filter: brightness(1.04); }
.btn-secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-linkedin {
  background: #0a66c2;
  color: #fff !important;
}
.btn-linkedin:hover { color: #fff !important; filter: brightness(1.06); }
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--color-link);
  border-bottom: 1px solid var(--color-coral);
}

/* Hero with mesh */
.hero {
  position: relative;
  padding: 3rem 0 2.5rem;
  overflow: hidden;
  color: var(--color-hero-fg);
  background:
    radial-gradient(ellipse 70% 80% at 12% 18%, rgba(59, 126, 240, 0.55), transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 25%, rgba(240, 106, 26, 0.28), transparent 52%),
    linear-gradient(135deg, #0a1f44 0%, #0a3d91 48%, #123a72 100%);
}
.hero .lede,
.hero .eyebrow { color: rgba(245, 248, 252, 0.88); }
.hero h1 { color: #ffffff; }
.mesh-blob {
  position: absolute;
  width: min(52vw, 520px);
  height: min(52vw, 520px);
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background: radial-gradient(circle at 30% 30%, rgba(240, 106, 26, 0.35), rgba(59, 126, 240, 0.25) 45%, transparent 70%);
  filter: blur(8px);
  opacity: 0.75;
  right: -4%;
  top: 8%;
  pointer-events: none;
  animation: mesh-morph 14s ease-in-out infinite;
}
@keyframes mesh-morph {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; }
  50% { transform: translate(-4%, 6%) rotate(18deg) scale(1.08); border-radius: 55% 45% 42% 58% / 52% 48% 42% 58%; }
}

.hero-banner {
  margin-bottom: 2rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}
.hero-banner img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 5;
  object-fit: cover;
}
.hero-grid,
.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid,
  .about-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-media img,
.about-media img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
  object-fit: cover;
  aspect-ratio: 1;
  background: transparent;
}
.about-media img,
.about-portrait img {
  aspect-ratio: 1;
  max-width: 320px;
  border-radius: 50%;
  box-shadow: none;
}

/* Stats */
.proof-strip {
  position: relative;
  background: var(--color-surface);
  padding: 1.75rem 0;
  border-block: 1px solid var(--color-border);
}
.proof-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.proof-value {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0;
  background: var(--color-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.proof-label { margin: 0.35rem 0 0; color: var(--color-muted); font-size: 0.9rem; }

/* Sections + slanted dividers */
.section { padding: 4rem 0; position: relative; }
@media (min-width: 900px) {
  .section { padding: 6rem 0; }
}
.section-alt {
  background: #f5f8fc;
}
html[data-theme="light"] .section-alt {
  background: #f5f8fc;
}
html[data-theme="dark"] .section-alt {
  background: color-mix(in srgb, var(--color-surface) 94%, #1a56db 6%);
}
.section-slant::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -28px;
  height: 56px;
  background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.section-head { margin-bottom: 2rem; max-width: 42rem; }
.section-head.row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
}
.card-grid.auto {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card-grid.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card-grid.three,
.card-grid.mdg-areas {
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .card-grid.three,
  .card-grid.mdg-areas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid.three,
  .card-grid.mdg-areas {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-block,
.content-card,
.list-item,
.media-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.feature-block:not(.has-tile),
.content-card:not(.has-tile),
.list-item:not(.has-tile),
.media-card {
  padding: 1.35rem;
}
.has-tile .card-body {
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.has-tile .card-actions { margin-top: auto; }
.card-tile {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8eef8;
}
.card-tile img,
.card-tile-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.feature-block:hover .card-tile img,
.content-card:hover .card-tile img,
.list-item:hover .card-tile img {
  transform: scale(1.03);
}
.content-card h3 a,
.list-item h2 a,
.feature-block h3 {
  text-decoration: none;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 180ms ease, color 180ms ease;
}
.content-card:hover h3 a,
.list-item:hover h2 a,
.feature-block:hover h3 {
  color: var(--color-coral);
  background-size: 100% 2px;
}
.media-card {
  max-width: 280px;
  width: 100%;
}
.feature-block:hover,
.content-card:hover,
.list-item:hover,
.media-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 31, 68, 0.12);
}
.media-card:hover {
  border-color: color-mix(in srgb, var(--color-teal) 45%, var(--color-border));
}

/* Horizontal video pane: 2 cards on phone, 4 on desktop */
.media-rail-wrap {
  --rail-gap: 0.85rem;
  --rail-pad: 0.85rem;
  --rail-cards: 2;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--color-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.media-rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 14px;
  width: 2rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(270deg, var(--color-surface), transparent);
  opacity: 0.9;
}
.media-rail {
  --card-w: calc(
    (100% - (2 * var(--rail-pad)) - ((var(--rail-cards) - 1) * var(--rail-gap)))
    / var(--rail-cards)
  );
  display: flex;
  gap: var(--rail-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rail-pad);
  padding: var(--rail-pad) var(--rail-pad) 1.1rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-teal) transparent;
  cursor: grab;
}
.media-rail:active { cursor: grabbing; }
.media-rail::-webkit-scrollbar {
  height: 8px;
}
.media-rail::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--color-teal) 10%, transparent);
  border-radius: 999px;
}
.media-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--color-teal) 65%, transparent);
  border-radius: 999px;
}
.media-rail .media-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
  box-shadow: none;
  padding: 0.85rem;
}
@media (min-width: 900px) {
  .media-rail-wrap {
    --rail-cards: 4;
    --rail-gap: 1rem;
    --rail-pad: 1rem;
  }
  .media-rail-wrap::after { display: none; }
}

.list-stack { display: grid; gap: 1rem; }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.chip {
  text-decoration: none;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.9rem;
  background: var(--color-surface);
}
.chip.is-active,
.chip:hover {
  border-color: transparent;
  color: var(--color-cta-text);
  background: var(--color-accent-gradient);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

/* Media / video */
.video-frame,
.media-card .video-frame {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border-radius: 10px;
  overflow: hidden;
  background: #0a1f44;
  display: grid;
  place-items: center;
}
.video-frame video,
.media-card video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #0a1f44;
  border-radius: 10px;
}
.media-card h3 { margin-top: 0.9rem; }
.media-page-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .media-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .media-page-grid { grid-template-columns: repeat(3, 1fr); }
}
.media-page-grid .media-card {
  max-width: none;
  width: 100%;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  margin: 1.25rem 0;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0;
  -webkit-overflow-scrolling: touch;
}
.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.carousel-portrait {
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
}
.carousel-portrait .carousel-track {
  overflow-x: auto;
  overflow-y: hidden;
}
.carousel-portrait .carousel-track img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #0a1f44;
  max-width: 100%;
  height: auto;
}
.carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--color-border);
}
.carousel-nav .btn {
  min-height: 44px;
  min-width: 44px;
}
.carousel-dots {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.carousel-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.is-active {
  background: var(--color-teal);
  width: 1.1rem;
}

.featured-video { margin-top: 2.5rem; }
.video-embed {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  max-width: 720px;
}
.video-poster {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: #000;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1a1622;
  opacity: 0.85;
}
.play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: var(--color-accent-gradient);
  color: var(--color-cta-text);
  font-weight: 700;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta-band {
  background:
    linear-gradient(135deg, #0a1f44 0%, #0a3d91 70%, #1347b8 100%),
    var(--color-aubergine);
  color: #ffffff;
  border: 0;
}
.cta-band h2,
.cta-band h3 { color: #ffffff; }
.cta-band-lede,
.cta-band .muted { color: rgba(255, 255, 255, 0.85); }
.cta-band a:not(.btn) { color: #ffb070; }
.cta-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .cta-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}

.form-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .form-layout { grid-template-columns: 0.9fr 1.1fr; }
}

.stack-form,
.inline-form { display: grid; gap: 1rem; }
.inline-form {
  grid-template-columns: 1fr auto;
  align-items: center;
}
@media (max-width: 640px) {
  .inline-form { grid-template-columns: 1fr; }
}
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}
input:focus,
textarea:focus {
  outline: 2px solid rgba(26, 86, 219, 0.55);
  outline-offset: 1px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-note { font-size: 0.85rem; margin: 0; }
.alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success {
  background: rgba(31, 138, 122, 0.14);
  border: 1px solid rgba(31, 138, 122, 0.4);
}
.alert-error {
  background: rgba(183, 28, 28, 0.1);
  border: 1px solid rgba(183, 28, 28, 0.3);
}

.prose,
.prose-narrow { max-width: 720px; }
.prose-narrow { max-width: 640px; }
.post-body h2 { margin-top: 2rem; }
.post-body ul,
.post-body ol { padding-left: 1.2rem; }
.skill-list,
.how-list,
.plain-list {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}
.skill-list li,
.how-list li { margin-bottom: 0.4rem; }
.plain-list { list-style: disc; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.post-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}
.post-nav a { text-decoration: none; font-weight: 600; max-width: 45%; }

.pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}
.pagination a,
.pagination button {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}

.page-hero { padding: 3rem 0 1.5rem; }

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-aubergine) 4%, var(--color-bg));
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}
.site-footer a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.error-page { min-height: 50vh; display: grid; align-items: center; }

.reveal { animation: rise 700ms ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }
  .site-nav.is-open { display: flex; }
  .header-inner { position: relative; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .feature-block:hover,
  .content-card:hover,
  .list-item:hover,
  .media-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* LinkedIn quick posts */
.linked-post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.linked-post-card h3 a {
  text-decoration: none;
  color: inherit;
}
.linked-post-card h3 a:hover { color: var(--color-teal); }
.linked-post-media {
  display: block;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f5f8fc;
  aspect-ratio: 4 / 5;
}
.linked-post-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f5f8fc;
}
.linked-post-card.has-tile .card-body {
  padding: 1.15rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.linked-post-card .card-actions { margin-top: auto; }
.linked-post-video-thumb {
  position: relative;
  min-height: 140px;
}
.linked-post-video-thumb .play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.post-detail { max-width: 720px; }
.post-video-frame {
  width: 100%;
  max-height: 80vh;
  aspect-ratio: 9 / 16;
  margin: 1.25rem auto;
  background: #1a1622;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.post-video-frame video {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #1a1622;
}
.post-image {
  margin: 1.25rem 0;
}
.post-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  cursor: zoom-in;
}
.post-caption {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-tag {
  color: var(--color-teal);
  font-weight: 600;
}
.pdf-carousel {
  margin: 1.25rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.75rem;
  touch-action: pan-y;
}
.pdf-carousel canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #f0f4fa;
  border-radius: 8px;
}
.pdf-carousel-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.92);
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.lightbox-overlay img {
  max-width: min(96vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-coral);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font: inherit;
}

/* —— Visual upgrade additions —— */
html, body { overflow-x: clip; max-width: 100%; }

.brand-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.brand-avatar img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-rebuild .hero-grid {
  align-items: center;
}
.hero-proof {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}
.hero-rebuild .hero-media {
  display: flex;
  justify-content: center;
}
.hero-rebuild .hero-portrait,
.hero-rebuild .hero-portrait img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  background: transparent;
  border-radius: 20px;
  box-shadow: var(--shadow-hover);
}
@media (max-width: 959px) {
  .hero-rebuild .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-rebuild .hero-media { order: -1; }
  .hero-rebuild .hero-portrait,
  .hero-rebuild .hero-portrait img {
    max-width: 320px;
  }
}
@media (min-width: 960px) {
  .hero-rebuild .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.proof-chips-block {
  text-align: center;
}
.proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.55rem;
}
.proof-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-aubergine);
  background: rgba(26, 86, 219, 0.12);
  border: 1px solid rgba(26, 86, 219, 0.18);
}
html[data-theme="dark"] .proof-chip {
  color: #f5f8fc;
  background: rgba(91, 143, 255, 0.18);
  border-color: rgba(91, 143, 255, 0.28);
}

.author-box {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  margin: 2.5rem 0;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .author-box {
    grid-template-columns: 120px 1fr;
  }
}
.author-box-pic,
.author-box-pic img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
}
.author-box h2 { margin-top: 0; }
.more-insights { margin-top: 3rem; }
.insight-hero-tile {
  margin: 1.25rem 0 1.75rem;
  border-radius: var(--radius);
  overflow: hidden;
}
.insight-hero-tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.contact-mini-cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.contact-mini .card-body { padding: 0.85rem 1rem 1rem; }
.contact-mini h3 { font-size: 1.05rem; margin: 0; }

.recent-clip .video-frame {
  max-width: 360px;
  margin-top: 1rem;
}

.prose,
.prose-narrow,
.lede,
.post-body {
  max-width: 68ch;
}
.prose .card-grid.auto,
.prose .more-insights .card-grid {
  max-width: none;
}

.btn {
  min-height: 44px;
}
.icon-link {
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
}
