@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+Bengali:wght@100..900&display=swap');

/* ============================================================
   Md. Imran Khan Lincoln — global stylesheet
   Design tokens, base, header/footer, pages, components, responsive
   ============================================================ */

:root {
  /* --- NEW DESIGN TOKENS --- */
  --color-bg: #FDFBF7;
  --color-surface: #FFFFFF;
  --color-ink: #111827;
  --color-ink-muted: #4B5563;
  --color-accent: #B08D57;
  --color-accent-soft: #f4eee6;
  --color-border: #E5E7EB;

  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1.075rem + 0.25vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
  --text-5xl: clamp(3rem, 2.6rem + 2vw, 3.75rem);
  --text-6xl: clamp(3.75rem, 3.25rem + 2.5vw, 4.5rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);

  /* Fonts */
  --font-heading: 'Fraunces', 'Hind Siliguri', serif;
  --font-body: 'Inter', 'Hind Siliguri', sans-serif;

  /* --- EXISTING TOKENS --- */
  --color-accent-dark: #8b6e41;
  --color-navy: #1C2331;
  --color-navy-2: #2A3441;
  --color-text: #4A4A4A;
  --color-heading: #1C2331;
  --color-muted: #757575;
  --color-bg-alt: #F4F1EA;
  --color-danger: var(--color-accent);
  --color-success: #16a34a;
  --radius: 12px;
  --container: 1200px;
  --header-h: 72px;
  --navbar-height: 96px;
  --step-size: clamp(4px, 1vw, 8px);
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 80px;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  padding-top: var(--navbar-height);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }

p, ul:not([class]), ol:not([class]), blockquote { 
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem; 
}

b, strong {
  font-family: var(--font-body); /* Keep Inter for bold text as Instrument Serif has no bold */
  font-weight: 600;
  color: var(--color-heading);
}

a { color: var(--color-accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--color-primary-dark); }

/* Tap/active states for touch devices */
.post-card:active,
.achieve-card:active,
.skill-card:active,
.update-card:active,
.connect-link:active,
.expertise-card:active,
.post-nav-link:active,
.chip:active {
  transform: scale(0.98);
}
.connect-link:active .connect-icon {
  background: var(--color-accent);
  color: #fff;
}
.share-btn:active { transform: scale(0.92); }

.post-content a, .card-more {
  position: relative;
  text-decoration: none;
}
.post-content a::after, .card-more::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-accent);
  transition: width 200ms ease;
}
@media (hover: hover) {
  .post-content a:hover::after, .card-more:hover::after {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-content a::after, .card-more::after { transition: none !important; }
}

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

.container {
  width: 100%;
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

.is-hidden { display: none !important; }
.mt-4 { margin-top: var(--space-4) !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  text-align: center;
}
.btn svg { flex: none; }

@media (hover: hover) {
  .btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
  }
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-bg);
}
.btn-primary:hover { background: var(--color-navy-2); color: var(--color-bg); }

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.btn-ghost:hover { background: var(--color-navy); color: var(--color-bg); }

.btn-light {
  background: #fff;
  color: var(--color-accent-dark);
}
.btn-light:hover { background: var(--color-bg-alt); color: var(--color-accent-dark); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Eyebrow ---------- */

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* ---------- Header: Floating Pill Navbar ---------- */

.pill-header {
  position: sticky;
  top: 12px;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

.pill-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 920px;
  padding: 8px 10px 8px 16px;
  background: rgba(253, 251, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
  pointer-events: auto;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.pill-bar:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
}

/* Brand */
.pill-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px 0;
}

.pill-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
  white-space: nowrap;
}

/* Nav links */
.pill-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  flex: 1;
  justify-content: center;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 28px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.93rem;
  color: var(--color-heading);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill-link:hover { background: var(--color-bg-alt); color: var(--color-accent); }
.pill-link.is-active { color: var(--color-accent); font-weight: 700; background: var(--color-accent-soft); }

/* CTA button */
.pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 48px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pill-cta:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(6,14,41,0.25);
}

/* Mobile toggle */
.pill-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-heading);
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}
.pill-toggle:hover { background: var(--color-bg-alt); }
.pill-toggle .icon-close { display: none; }
.pill-toggle[aria-expanded="true"] .icon-open { display: none; }
.pill-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile menu dropdown */
.pill-mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(6,14,41,0.12);
  padding: 14px;
  pointer-events: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}
.pill-mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.pill-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pill-mobile-inner .pill-link {
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 1rem;
}

.pill-cta-block {
  width: 100%;
  margin-top: 8px;
  padding: 14px 22px;
}

/* ---------- Old header remnants (kept for reference, overridden above) ---------- */
.site-header, .header-inner, .brand, .nav-list, .nav-link, .site-nav, .nav-toggle {
  display: none;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand p { margin-top: 16px; font-size: 0.95rem; }
.footer-logo {
  height: 72px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.75); }
.footer-col a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: flex-start; gap: 8px; }
.footer-contact svg { flex: none; margin-top: 3px; color: var(--color-accent); }
.footer-contact a { display: inline-flex; gap: 8px; align-items: flex-start; word-break: break-all; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s ease;
}
.footer-social a:hover { background: var(--color-accent); color: #fff; transform: translateY(-2px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-size: 0.9rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }

/* ---------- Hero (home) ---------- */

@keyframes pageFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes panGrid {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(140, 28, 19, 0.06), transparent 60%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.bg-grid-pattern {
  position: relative;
  z-index: 0;
}
.bg-grid-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(28, 35, 49, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 35, 49, 0.15) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: 0 0;
  animation: panGrid 10s linear infinite;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .bg-grid-pattern::before {
    animation: none;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  /* animation handled by GSAP when available, CSS fallback below */
}

.hero h1 { margin-bottom: var(--space-4); }

/* Hero accent name */
.hero-name-accent {
  color: var(--color-accent);
}

/* Hero subtitle line */
.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---------- Flip Fade Text Animation ---------- */
.flip-fade-container {
  display: inline-grid;
  align-items: center;
  justify-items: start;
  color: var(--color-accent);
  perspective: 1000px;
}

.flip-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: rotateX(-90deg) translateY(20px);
  transform-origin: center;
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
}

.flip-word.active {
  opacity: 1;
  transform: rotateX(0deg) translateY(0);
  pointer-events: auto;
}

.flip-word.exit {
  opacity: 0;
  transform: rotateX(90deg) translateY(-20px);
}

@media (prefers-reduced-motion: reduce) {
  .flip-word {
    transition: none !important;
    transform: none !important;
    opacity: 0;
  }
  .flip-word.active {
    opacity: 1;
  }
}

/* Hero stats — inline pills */
.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--color-border);
}
.stat strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-accent);
  line-height: 1;
}
.stat span {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}

/* Hero CTA actions */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; align-items: center; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 9999px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  line-height: 1;
}
.hero-btn-primary {
  background: var(--color-navy);
  color: #ffffff;
  padding-right: 20px; /* accommodate icon */
  gap: 12px;
}
.hero-btn-primary:hover {
  background: #000000;
  color: #ffffff;
}

.hero-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #ffffff;
  transition: transform 0.25s ease;
}
.hero-btn-primary:hover .hero-btn-icon {
  transform: scale(1.05);
}
.hero-btn-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-btn-secondary {
  background: #ffffff;
  color: var(--color-navy);
  border: 1.5px solid var(--color-border);
}
.hero-btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-navy);
}

/* Hero social icons */
.hero-social {
  display: flex;
  gap: 10px;
}
.hero-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  transition: all 0.25s ease;
}
.hero-social a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(140, 28, 19, 0.3);
}

/* ---------- Hero Visual — Portrait Column ---------- */

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Blob-shaped portrait */
.hero-portrait {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(28, 35, 49, 0.15),
    0 8px 24px rgba(140, 28, 19, 0.08);
  z-index: 1;
  flex-shrink: 0;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating expertise badge pills */
.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 2;
  white-space: nowrap;
  animation: badgeFloat 3.5s ease-in-out infinite;
}
.hero-badge svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

/* Badge positions — around the portrait */
.hero-badge-1 { top: 8%; right: -20px; animation-delay: 0s; }
.hero-badge-2 { top: 38%; left: -36px; animation-delay: 0.8s; }
.hero-badge-3 { bottom: 14%; right: -28px; animation-delay: 1.6s; }
.hero-badge-4 { bottom: -4%; left: 10%; animation-delay: 2.4s; }

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Rotating circular text badge */
.hero-rotating-badge {
  position: absolute;
  top: -16px;
  left: 4%;
  width: 100px;
  height: 100px;
  z-index: 3;
}
.hero-rotating-badge svg {
  width: 100%;
  height: 100%;
  animation: spinBadge 20s linear infinite;
}
.hero-rotating-badge text {
  fill: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}
.hero-rotating-badge circle {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  opacity: 0.5;
}

@keyframes spinBadge {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge { animation: none; }
  .hero-rotating-badge svg { animation: none; }
}

/* ---------- Sections ---------- */

.section { padding: var(--space-12) 0; }

@media (min-width: 768px) {
  .section {
    padding: var(--space-16) 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: var(--space-20) 0;
  }
}

/* Remove default border-top divider on sections as requested */
.section + .section { border-top: none; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-sub {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 560px;
}

.section-latest {
  background: var(--color-bg);
}

/* ---------- Blog Carousel (Homepage) ---------- */

.blog-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 460px;
  perspective: 1200px;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  max-width: 520px;
  transform: translateX(-50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(.4, .9, .3, 1),
              opacity 0.7s cubic-bezier(.4, .9, .3, 1),
              z-index 0s linear 0.35s;
}

.carousel-item .post-card {
  box-shadow: var(--shadow-sm);
}

/* Active (center) card */
.carousel-item--active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transition: transform 0.7s cubic-bezier(.4, .9, .3, 1),
              opacity 0.7s cubic-bezier(.4, .9, .3, 1),
              z-index 0s linear 0s;
}

.carousel-item--active .post-card {
  box-shadow: var(--shadow-lg);
}

/* Previous (left peek) card */
.carousel-item--prev {
  transform: translateX(calc(-50% - 320px)) scale(0.82) rotateY(6deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.7s cubic-bezier(.4, .9, .3, 1),
              opacity 0.7s cubic-bezier(.4, .9, .3, 1),
              z-index 0s linear 0s;
}

/* Next (right peek) card */
.carousel-item--next {
  transform: translateX(calc(-50% + 320px)) scale(0.82) rotateY(-6deg);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  transition: transform 0.7s cubic-bezier(.4, .9, .3, 1),
              opacity 0.7s cubic-bezier(.4, .9, .3, 1),
              z-index 0s linear 0s;
}

/* All other (hidden) cards */
.carousel-item--far {
  transform: translateX(-50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── Carousel Arrows ── */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(calc(-50% - 30px));
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--color-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-arrow:hover {
  background: var(--color-accent);
  transform: translateY(calc(-50% - 30px)) scale(1.1);
}

.carousel-arrow:active {
  transform: translateY(calc(-50% - 30px)) scale(0.95);
}

.carousel-arrow svg {
  width: 20px;
  height: 20px;
}

.carousel-arrow--prev {
  left: -24px;
}

.carousel-arrow--next {
  right: -24px;
}

/* ── Carousel Dots ── */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  border-color: var(--color-accent);
  transform: scale(1.2);
}

.carousel-dot.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.2);
}

/* ── Reduced Motion ── */

@media (prefers-reduced-motion: reduce) {
  .carousel-item,
  .carousel-item--active,
  .carousel-item--prev,
  .carousel-item--next {
    transition: none !important;
  }
}

.carousel--reduced-motion .carousel-item,
.carousel--reduced-motion .carousel-item--active,
.carousel--reduced-motion .carousel-item--prev,
.carousel--reduced-motion .carousel-item--next {
  transition: none !important;
}

/* ── Mobile: Single card, no 3D peek ── */

@media (max-width: 767px) {
  .blog-carousel {
    max-width: 100%;
    padding: 10px 0 50px;
  }

  .carousel-stage {
    height: auto;
    min-height: 380px;
    perspective: none;
  }

  .carousel-item {
    position: relative;
    left: auto;
    display: none;
    transform: none;
    opacity: 0;
    max-width: 100%;
    width: 100%;
  }

  .carousel-item--active {
    display: block;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* Hide prev/next peek on mobile */
  .carousel-item--prev,
  .carousel-item--next {
    display: none;
    opacity: 0;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .carousel-arrow--prev {
    left: 4px;
  }

  .carousel-arrow--next {
    right: 4px;
  }
}

/* ── Tablet adjustments ── */

@media (min-width: 768px) and (max-width: 1023px) {
  .carousel-item--prev {
    transform: translateX(calc(-50% - 240px)) scale(0.8) rotateY(6deg);
  }

  .carousel-item--next {
    transform: translateX(calc(-50% + 240px)) scale(0.8) rotateY(-6deg);
  }

  .carousel-arrow--prev {
    left: 0;
  }

  .carousel-arrow--next {
    right: 0;
  }
}

/* ---------- Reviews Carousel Cards ---------- */

.section-reviews {
  background: var(--color-bg-alt);
}

.reviews-marquee-container {
  --gap: var(--space-6);
  --duration: 40s;
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: var(--space-4) 0;
  /* Fade mask at edges */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--gap);
  animation: marquee var(--duration) linear infinite;
}

.reviews-marquee-container:hover .marquee-track,
.marquee-track:hover {
  animation-play-state: paused !important;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - (var(--gap) / 2)));
  }
}

.review-card {
  width: 400px;
  flex-shrink: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-8) var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Optional subtle dot pattern */
.review-card::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 80px;
  background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: 0.4;
  pointer-events: none;
  border-top-left-radius: 100%;
}

.review-quote-icon {
  color: var(--color-accent);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 48px;
  line-height: 1;
  pointer-events: none;
}

.review-quote-icon svg {
  width: 48px;
  height: 48px;
}

.review-card blockquote {
  margin: 0 0 var(--space-6) 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  position: relative;
  z-index: 1;
  flex-grow: 1;
}

.review-card blockquote p {
  margin: 0;
}

.review-card figcaption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.review-card figcaption img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-soft);
  flex-shrink: 0;
}

.review-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.review-role {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .review-card {
    width: 300px;
    padding: var(--space-6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  .reviews-marquee-container {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
}

.section-cta {
  display: flex;
  justify-content: center;
}

/* ---------- Page hero ---------- */

.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(140, 28, 19, 0.05), transparent 60%),
    linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-12) 0;
}

@media (min-width: 768px) {
  .page-hero {
    padding: var(--space-16) 0;
  }
}

@media (min-width: 1024px) {
  .page-hero {
    padding: var(--space-20) 0;
  }
}
  text-align: center;
  animation: pageFadeIn 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.page-hero h1 { max-width: 800px; margin: 0 auto var(--space-4); }
.page-lead { max-width: 640px; margin: 0 auto; color: var(--color-muted); font-size: 1.1rem; }

/* ---------- Post cards ---------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.post-card:hover {
  transform: translateY(-3px) perspective(1200px) rotateX(var(--rot-x, 0deg)) rotateY(var(--rot-y, 0deg));
  box-shadow: var(--shadow-md);
}

.post-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(28, 35, 49, 0.04),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post-card:hover::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .post-card:hover { transform: translateY(-3px); }
  .post-card::before { display: none; }
}

.card-thumb-link { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--color-bg-alt); }
.card-thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.post-card:hover .card-thumb-link img { transform: scale(1.05); }

.card-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-bg-alt));
}

.card-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.card-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-bg-alt);
  padding: 6px 14px;
  border-radius: 999px;
}
.card-category:hover { background: var(--color-border); color: var(--color-heading); }

.card-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.card-title { font-size: 1.12rem; line-height: 1.35; }
.card-title a { color: var(--color-heading); }
.card-title a:hover { color: var(--color-accent); }

.card-excerpt {
  font-size: 0.95rem;
  color: var(--color-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  line-clamp: 2;
}

.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.card-read { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--color-muted); }

.card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
}
.card-more svg { transition: transform 0.2s ease; }
.card-more:hover svg { transform: translateX(3px); }

/* ---------- Chips (categories) ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}
.chip:hover { background: var(--color-border); color: var(--color-heading); }
.chip.is-active { background: var(--color-accent-soft); color: var(--color-accent); }

/* ---------- Blog toolbar / search ---------- */

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0 18px;
  min-width: 260px;
  color: var(--color-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.blog-search:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-soft); }
.blog-search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 0;
  width: 100%;
  color: var(--color-heading);
}

/* ---------- Empty state ---------- */

.empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { color: var(--color-muted); margin-bottom: 20px; }

/* ---------- About teaser (home) ---------- */

.section-about-teaser { background: var(--color-bg-alt); }

.about-teaser {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-dark));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  flex: none;
}
.avatar-lg { width: 140px; height: 140px; font-size: 2.6rem; }
.avatar-xl { width: 168px; height: 168px; font-size: 3rem; }

.about-teaser-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

/* Blob portrait — matches hero & about page */
.about-teaser-portrait {
  position: relative;
  width: 300px;
  height: 370px;
  border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(28, 35, 49, 0.15),
    0 8px 24px rgba(140, 28, 19, 0.08);
  z-index: 1;
  flex-shrink: 0;
}
.about-teaser-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating badges on teaser photo */
.about-teaser-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 2;
  animation: badgeFloat 3.5s ease-in-out infinite;
}
.about-teaser-badge svg { flex-shrink: 0; color: var(--color-accent); }
.about-teaser-badge-stat {
  top: 4%;
  left: -12px;
  animation-delay: 0s;
}
.about-teaser-badge-stat .teaser-badge-number {
  font-size: 1.3rem;
  color: var(--color-accent);
  line-height: 1;
}
.about-teaser-badge-stat .teaser-badge-label {
  font-size: 0.7rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.about-teaser-badge-role {
  bottom: 6%;
  right: -14px;
  animation-delay: 1.2s;
  font-size: 0.75rem;
  padding: 8px 14px;
  max-width: 220px;
}

.about-teaser-copy .eyebrow { margin-bottom: 10px; }
.about-teaser-copy h2 { margin-bottom: 14px; }
.about-teaser-copy p { margin-bottom: 20px; }

/* ---------- CTA ---------- */

.section-cta { background: var(--color-navy); border: none; }

.cta-box {
  text-align: center;
  padding: 56px 24px;
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 50% -30%, rgba(140, 28, 19, 0.25), transparent 70%);
}
.cta-box h2 { color: #fff; margin-bottom: 12px; }
.cta-box p { color: rgba(255, 255, 255, 0.8); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { margin: 24px 0; font-size: 0.85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--color-muted); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs li[aria-current="page"] { color: var(--color-heading); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 340px; }

/* ---------- Post page ---------- */

.post-container { max-width: 1080px; }
.post-header { text-align: left; margin-bottom: 40px; max-width: 720px; }
.post-category-badge {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.post-category-badge:hover { background: var(--color-accent); color: #fff; }

.post-header h1 { 
  margin: 0 0 24px; 
  font-size: clamp(2.5rem, 5vw, 3.5rem); 
  line-height: 1.15; 
  font-family: var(--font-heading); 
  font-weight: 800;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  margin-top: 32px;
}
.post-author-avatar img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.post-meta-details { display: flex; flex-direction: column; gap: 4px; }
.post-author-name { font-weight: 700; color: var(--color-heading); font-size: 1rem; }
.post-meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-dot { opacity: 0.5; font-size: 0.8em; }
.post-meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta-row svg { color: var(--color-accent); }

.post-cover {
  margin: 0 0 56px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 16/9;
  background: var(--color-bg-alt);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
}

.post-content { min-width: 0; max-width: 720px; font-size: 1.15rem; line-height: 1.75; color: var(--color-text); }
.post-content h2, .post-content h3, .post-content h4 { margin: 2em 0 0.8em; color: var(--color-heading); font-family: var(--font-heading); }
.post-content p { margin-bottom: 1.5em; }
.post-content a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-accent); }
.post-content img { border-radius: 12px; margin: 2.5em 0; box-shadow: var(--shadow-sm); width: 100%; height: auto; display: block; }
.post-content blockquote {
  border-left: 4px solid var(--color-accent);
  margin: 2.5em 0;
  padding: 1.25em 1.5em;
  font-size: 1.25rem;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-text);
  opacity: 0.9;
}
.post-content ul, .post-content ol { margin: 0 0 1.25em 1.4em; }
.post-content li { margin-bottom: 0.4em; }
.post-content table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.post-content th, .post-content td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; }
.post-content .separator { text-align: center; }
.post-content pre { background: var(--color-navy); color: #e5e9f5; padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; margin: 1.2em 0; }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--color-border); }

.post-sidebar { 
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}
.sidebar-card h3 { margin-bottom: 16px; font-size: 1.2rem; }

.share-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-heading);
  cursor: pointer;
  transition: all 0.2s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.share-fb:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.share-tw:hover { background: #000; border-color: #000; color: #fff; }
.share-li:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.share-wa:hover { background: #25d366; border-color: #25d366; color: #fff; }
.share-copy:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.sidebar-author { text-align: center; }
.sidebar-author .avatar,
.author-avatar-img {
  margin: 0 auto 12px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.sidebar-author h3 { margin-bottom: 4px; }
.sidebar-author p { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 14px; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.post-nav-link {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.post-nav-link:hover { border-color: var(--color-accent); background: var(--color-accent-soft); }
.post-nav-link.is-disabled { opacity: 0.5; pointer-events: none; }
.post-nav-next { text-align: right; }

.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.post-nav-title { font-family: var(--font-heading); font-weight: 700; color: var(--color-heading); font-size: 0.95rem; line-height: 1.4; }

.section-related { background: var(--color-bg-alt); }

/* ---------- About page ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.6fr;
  gap: 48px;
  align-items: start;
}

/* ---------- About Intro — Split Layout ---------- */

.about-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 40px;
}

/* About portrait — reuses hero blob shape */
.about-portrait-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.about-portrait {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: 60% 40% 50% 50% / 50% 55% 45% 50%;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(28, 35, 49, 0.15),
    0 8px 24px rgba(140, 28, 19, 0.08);
  z-index: 1;
  flex-shrink: 0;
}
.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Floating badges on about photo */
.about-float-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.04);
  z-index: 2;
  animation: badgeFloat 3.5s ease-in-out infinite;
}
.about-float-badge svg {
  flex-shrink: 0;
  color: var(--color-accent);
}
.about-float-badge-stat {
  top: 4%;
  left: -10px;
  animation-delay: 0s;
}
.about-float-badge-stat .about-badge-number {
  font-size: 1.4rem;
  color: var(--color-accent);
  line-height: 1;
}
.about-float-badge-stat .about-badge-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.about-float-badge-role {
  bottom: 6%;
  right: -16px;
  animation-delay: 1.2s;
  font-size: 0.78rem;
  padding: 10px 16px;
  max-width: 240px;
}

/* About text column */
.about-text-col .eyebrow {
  margin-bottom: 12px;
}

.about-intro-heading {
  margin-bottom: 20px;
}

.about-intro-bio {
  font-size: 1.07rem;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* About inline stats row */
.about-stats-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.about-stats-row .stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--color-bg-alt);
  border-radius: 999px;
  border: 1px solid var(--color-border);
}
.about-stats-row .stat strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-accent);
  line-height: 1;
}
.about-stats-row .stat span {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: 500;
}

/* Contact row — pill-styled buttons */
.about-contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.about-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}
.about-contact-pill:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(140, 28, 19, 0.3);
}
.about-contact-pill svg {
  flex-shrink: 0;
}

/* Keep existing about-bio / about-profile styles for rest of page */
.about-profile { text-align: center; position: sticky; top: calc(var(--header-h) + 24px); }
.about-profile .avatar,
.about-profile-img {
  margin: 0 auto 18px;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--color-accent-soft);
  box-shadow: var(--shadow-md);
  display: block;
}
.about-profile h2 { margin-bottom: 6px; }
.about-role { color: var(--color-muted); margin-bottom: 22px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}
.about-stats .stat {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.about-stats .stat strong { font-size: 1.4rem; }
.about-social { justify-content: center; margin-top: 0; }

.about-bio { min-width: 0; }
.about-bio p { font-size: 1.07rem; }

.about-bio-img {
  float: right;
  width: 200px;
  height: 200px;
  max-width: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0 0 16px 24px;
  box-shadow: var(--shadow-md);
}
/* Override stepped-image width:100% when inside bio context */
.about-bio-img.stepped-image {
  width: 100%;
  height: auto;
}

/* Biography section — split layout */
.about-bio-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.about-bio-wrapper .about-bio-text {
  min-width: 0; /* Prevents text overflow */
}
.about-bio-wrapper .about-bio-visual {
  display: flex;
  justify-content: flex-end;
}
.about-bio-wrapper .stepped-corner-wrapper {
  width: 100%;
  max-width: 340px;
}
.about-bio-wrapper .stepped-corner-wrapper .stepped-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.about-quote {
  position: relative;
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 28px;
}
.about-quote svg { color: var(--color-accent); margin-bottom: 10px; }
.about-quote p { font-size: 1.15rem; font-style: italic; margin: 0; color: #e8ecf8; }

/* ---------- Affiliations cards ---------- */

.affiliations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.affiliation-card {
  background: var(--color-bg);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.affiliation-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.affiliation-card h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}
.affiliation-card .affiliation-role {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: var(--color-muted);
}
.affiliation-card .affiliation-details {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
}
.affiliation-card .affiliation-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.affiliation-card .affiliation-details li span,
.affiliation-card .affiliation-details li a {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.affiliation-card .affiliation-details li svg {
  flex-shrink: 0;
  color: var(--color-accent);
}
.affiliation-card .affiliation-details a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}
.affiliation-card .affiliation-details a:hover {
  color: var(--color-accent);
}
.affiliation-card .affiliation-address {
  align-items: flex-start !important;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}
.affiliation-card .affiliation-address svg {
  margin-top: 3px;
}

/* Section spacing consistency for about page */
.section-affiliations {
  padding-top: 0;
}

.section-expertise { background: var(--color-bg-alt); }

.about-section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-section-layout-reverse .about-section-img { order: -1; }

.about-section-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* ---------- Expertise Sticky Stack ---------- */
.expertise-stack-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  padding-bottom: 40px;
}

.expertise-stack-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg, 24px);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: sticky;
  top: calc(100px + (var(--index) * 20px));
  z-index: var(--index);
  gap: 32px;
  border: 1px solid var(--color-border);
}

/* Distinct soft background tint per card based on nth-child */
.expertise-stack-card:nth-child(1) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(28, 35, 49, 0.02), rgba(28, 35, 49, 0.02)); }
.expertise-stack-card:nth-child(2) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(176, 141, 87, 0.05), rgba(176, 141, 87, 0.05)); }
.expertise-stack-card:nth-child(3) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(28, 35, 49, 0.04), rgba(28, 35, 49, 0.04)); }
.expertise-stack-card:nth-child(4) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(176, 141, 87, 0.08), rgba(176, 141, 87, 0.08)); }
.expertise-stack-card:nth-child(5) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(28, 35, 49, 0.06), rgba(28, 35, 49, 0.06)); }
.expertise-stack-card:nth-child(6) { background-color: var(--color-bg-alt); background-image: linear-gradient(rgba(176, 141, 87, 0.11), rgba(176, 141, 87, 0.11)); }

@media (min-width: 768px) {
  .expertise-stack-card {
    flex-direction: row;
    align-items: center;
    padding: 64px;
    gap: 64px;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
  }
  
  /* Alternate layout */
  .expertise-stack-card:nth-child(even) {
    flex-direction: row-reverse;
  }
}

.expertise-stack-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.expertise-stack-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-ink);
  opacity: 0.1;
  line-height: 1;
  margin-bottom: 16px;
}

.expertise-stack-text h3 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-heading);
}

.expertise-stack-desc {
  font-size: 1.1rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.expertise-stack-detail {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.9;
  line-height: 1.6;
  margin: 0;
}

.expertise-stack-visual {
  flex: 1;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-bg);
}

.expertise-stack-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Animations */
.js-ready .expertise-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js-ready .expertise-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Fallback: Remove Sticky Stacking */
@media (max-width: 767px) {
  .expertise-stack-card {
    position: relative;
    top: auto !important;
    z-index: auto !important;
    height: auto;
  }
  .expertise-stack-visual {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- Timeline ---------- */

.timeline { list-style: none; position: relative; max-width: 720px; margin: 0 auto; padding-left: 32px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline-period {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
.timeline-body h3 { margin-bottom: 2px; }
.timeline-org { color: var(--color-muted); font-weight: 600; margin-bottom: 8px; }

/* ---------- Mission ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.mission-card {
  background: var(--color-navy);
  color: #e8ecf8;
  border-radius: var(--radius);
  padding: 32px;
}
.mission-card h3 { color: #fff; margin-bottom: 12px; }
.mission-card p { margin: 0; }

/* ---------- Contact ---------- */

.section-contact { background: var(--color-bg-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-heading);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-heading);
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--color-danger); }

.field-error {
  display: none;
  color: var(--color-danger);
  font-size: 0.85rem;
  margin-top: 6px;
  font-family: var(--font-body);
}
.form-field.has-error .field-error { display: block; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-status { margin-top: 16px; font-weight: 600; }
.form-status.is-success { color: var(--color-success); }
.form-status.is-error { color: var(--color-danger); }

.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.7; }

@keyframes spin { to { transform: rotate(360deg); } }

.contact-info { display: grid; gap: 20px; }

.contact-image-card { padding: 16px; display: flex; justify-content: center; }

.contact-profile-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px;
}
.contact-card h3 { margin-bottom: 16px; }

.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.contact-list a { color: var(--color-text); font-weight: 600; word-break: break-all; }
.contact-list a:hover { color: var(--color-accent); }

.map-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 14px;
}
.map-wrap iframe { width: 100%; height: 200px; border: 0; display: block; }
.map-link { width: 100%; }

/* ---------- 404 ---------- */

.section-404 { min-height: 60vh; display: flex; align-items: center; }

.notfound { text-align: center; max-width: 620px; }
.notfound-code {
  font-family: var(--font-heading);
  font-size: clamp(5rem, 14vw, 9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
}
.notfound h1 { margin-bottom: 12px; }
.notfound p { color: var(--color-muted); margin-bottom: 28px; }
.notfound-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.notfound-search { margin: 0 auto; max-width: 420px; }

/* ---------- BEC Card Layout (Homepage) ---------- */

.section-bec {
  background: var(--color-bg-alt); /* Light background so the white card pops */
  padding-top: 80px;
  padding-bottom: 80px;
}

.bec-card-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(6, 14, 41, 0.04), 0 2px 8px rgba(6, 14, 41, 0.02);
  padding: 40px;
  align-items: center;
  border: 1px solid var(--color-border);
}

.bec-card-visual {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
}

.bec-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bec-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bec-card-content .eyebrow {
  margin-bottom: 8px;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.bec-card-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-heading);
  margin-bottom: 16px;
  line-height: 1.2;
}

.bec-card-content p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.bec-card-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
}

.bec-card-social {
  display: flex;
  gap: 10px;
}

.bec-card-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  transition: all 0.25s ease;
}

.bec-card-social a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(140, 28, 19, 0.2);
}

@media (max-width: 1024px) {
  .bec-card-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .bec-card-visual {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .bec-card-layout {
    padding: 24px;
    gap: 24px;
  }
  .bec-card-visual {
    height: 200px;
  }
  .bec-card-content h2 {
    font-size: 1.5rem;
  }
  .bec-card-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .bec-card-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .bec-card-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .bec-card-social {
    justify-content: center;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-16); padding-bottom: var(--space-16); }
  .hero-visual { max-width: 420px; margin: 0 auto; width: 100%; min-height: 340px; }
  .hero-portrait { width: 300px; height: 360px; }
  .hero-badge { font-size: 0.75rem; padding: 8px 14px; }
  .hero-badge-2 { left: -16px; }
  .hero-badge-3 { right: -10px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-profile { position: static; }
  .about-intro { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait-col { max-width: 380px; margin: 0 auto; width: 100%; min-height: 360px; }
  .about-portrait { width: 280px; height: 350px; }
  .about-float-badge-stat { left: 0; }
  .about-float-badge-role { right: 0; }
  .about-text-col { text-align: left; }
  .about-section-layout { grid-template-columns: 1fr; }
  .about-section-layout-reverse .about-section-img { order: 0; }
  .about-bio-wrapper { grid-template-columns: 1fr; gap: 32px; }
  .about-bio-wrapper .about-bio-visual { justify-content: center; }
  .about-bio-wrapper .stepped-corner-wrapper { max-width: 280px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Nav overlay (pill) */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 41, 0.45);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.25s ease;
  }
  .nav-overlay.is-open { display: block; opacity: 1; }

  .hero-inner { padding-top: var(--space-16); padding-bottom: var(--space-16); gap: 32px; }
  .hero-visual { min-height: 280px; }
  .hero-portrait { width: 260px; height: 320px; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-stats { gap: 12px; }
  .stat { padding: 8px 14px; }
  .stat strong { font-size: 1.1rem; }
  .stat span { font-size: 0.7rem; }
  .hero-rotating-badge { display: none; }
  .hero-badge { font-size: 0.72rem; padding: 7px 12px; }

  .section { padding: 40px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 48px 0 36px; }
  .page-hero h1 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .page-lead { font-size: 0.95rem; }

  .about-teaser { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .about-teaser .btn { margin: 0 auto; }
  .about-teaser-visual { min-height: 320px; }
  .about-teaser-portrait { width: 240px; height: 300px; }
  .about-teaser-badge { font-size: 0.72rem; padding: 8px 12px; }
  .about-teaser-badge-stat { left: 0; }
  .about-teaser-badge-role { right: 0; }
  .about-teaser-badge-stat .teaser-badge-number { font-size: 1.1rem; }
  
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card-large { grid-column: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-social { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }
  .form-field input,
  .form-field textarea { font-size: 16px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-title { font-size: 0.9rem; }
  .post-sidebar { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search { min-width: 0; }
  .blog-search input { font-size: 16px; }

  /* Blog detail */
  .post-header h1 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  .post-content { font-size: 1.05rem; }
  .post-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .post-tags { gap: 8px; }

  /* Breadcrumbs */
  .breadcrumbs li[aria-current="page"] { max-width: 200px; }

  /* Contact */
  .contact-profile-img { max-width: 200px; }
  .contact-card { padding: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .btn { padding: 12px 20px; min-height: 44px; font-size: 0.93rem; }

  /* Header */

  /* Hero */
  .hero-inner { padding-top: var(--space-12); padding-bottom: var(--space-12); gap: 24px; }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 1.8rem); }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .hero-btn { width: 100%; justify-content: center; }
  .hero-visual { min-height: 260px; }
  .hero-portrait { width: 220px; height: 270px; }
  .hero-stats { gap: 10px; }
  .stat { padding: 7px 12px; }
  .stat strong { font-size: 1rem; }
  .stat span { font-size: 0.68rem; }
  .hero-badge { display: none; }
  .hero-social a { width: 36px; height: 36px; }
  .hero-social a svg { width: 15px; height: 15px; }

  /* Sections */
  .section { padding: 32px 0; }
  .page-hero { padding: 40px 0 28px; }
  .eyebrow { font-size: 0.72rem; }

  /* Post cards */
  .post-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .card-body { padding: 16px; }
  .card-title { font-size: 1.05rem; }
  .card-excerpt { font-size: 0.9rem; }
  .post-card .card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Blog detail */
  .post-content h2 { font-size: 1.3rem; }
  .post-content h3 { font-size: 1.1rem; }
  .post-meta { gap: 14px; font-size: 0.85rem; }

  /* About page */
  .about-profile-img,
  .about-profile .avatar { width: 120px; height: 120px; }
  .about-stats .stat strong { font-size: 1.2rem; }
  .about-stats .stat span { font-size: 0.72rem; }
  .about-quote { padding: 20px; }
  .about-quote p { font-size: 1rem; }
  .about-bio p { font-size: 0.95rem; }
  .about-section-img { max-height: 240px; }
  .about-intro { gap: 28px; }
  .about-portrait-col { min-height: 300px; }
  .about-portrait { width: 240px; height: 300px; }
  .about-float-badge { font-size: 0.72rem; padding: 8px 14px; }
  .about-float-badge-stat .about-badge-number { font-size: 1.1rem; }
  .about-stats-row { gap: 10px; }
  .about-stats-row .stat { padding: 8px 14px; }
  .about-stats-row .stat strong { font-size: 1rem; }
  .about-stats-row .stat span { font-size: 0.68rem; }
  .about-contact-pill { font-size: 0.82rem; padding: 8px 16px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-card { padding: 20px; }

  /* Timeline */
  .timeline { padding-left: 24px; }
  .timeline-dot { left: -25px; width: 12px; height: 12px; }
  .timeline-period { font-size: 0.72rem; }
  .timeline-body h3 { font-size: 1rem; }

  /* Mission */
  .mission-card { padding: 24px; }
  .mission-card h3 { font-size: 1rem; }

  /* Contact */
  .contact-form-wrap { padding: 20px; }
  .contact-grid { gap: 24px; }
  .contact-profile-img { max-width: 160px; }
  .contact-list li { gap: 10px; }

  /* Footer */
  .footer-grid { padding-top: 36px; gap: 24px; }
  .footer-brand p { font-size: 0.9rem; }
  .footer-col h3 { font-size: 0.95rem; }

  /* Chips */
  .chip { font-size: 0.78rem; padding: 6px 12px; }
  .chips { gap: 8px; }

  /* Subscribe */
  .subscribe-box { padding: 32px 20px; }
  .subscribe-copy p { font-size: 0.9rem; }
  .subscribe-field input[type="email"] { font-size: 16px; padding: 14px 16px; }
  .subscribe-field .btn { font-size: 0.93rem; }
  .subscribe-status { font-size: 0.85rem; }

  /* Empty state */
  .empty-state { padding: 40px 16px; }
  .empty-state h3 { font-size: 1.05rem; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: 0.78rem; margin: 16px 0; }
  .breadcrumbs li[aria-current="page"] { max-width: 140px; }

  /* Not found */
  .notfound-actions { flex-direction: column; }
  .notfound-actions .btn { width: 100%; }
}

/* ---------- Scroll Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(12px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  }
}

/* ---------- Stagger animation delays ---------- */

.reveal[style*="--stagger"] {
  transition-delay: calc(var(--stagger, 0) * 100ms);
}

/* ---------- Achievements / Milestones — floating cards over background image ---------- */

.section-achievements {
  padding-top: 70px;
  padding-bottom: 0;
  background: #FCFAF6;
}
.section-achievements .section-head {
  margin-bottom: 32px;
}

/* Background block — solid existing palette color (AF-290 / --color-primary) */
.achieve-bg {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  isolation: isolate;
  background: #8F1D17;
}
.achieve-bg-image,
.achieve-bg-overlay {
  display: none;
}
.achieve-bg-container {
  position: relative;
  z-index: 2;
}

.achieve-grid {
  display: grid;
  grid-template-columns: repeat(4, 273px);
  justify-content: center;
  gap: var(--space-8);
}

.achieve-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 273px;
  height: 202px;
  background: #FCFAF6;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease;
}

@media (hover: hover) {
  .achieve-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
  }
}

.achieve-card.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out, box-shadow 0.3s ease;
  transition-delay: calc(var(--stagger) * 150ms);
}
.achieve-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.achieve-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #F8EAEA;
  color: #9B1C17;
  margin: 0 auto 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.achieve-card:hover .achieve-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(155, 28, 23, 0.18);
}

.achieve-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-heading);
  display: block;
  margin-bottom: 0;
  line-height: 1;
  transition: color 0.3s ease;
}
.achieve-card:hover .achieve-value {
  color: #9B1C17;
}
.text-emphasis {
  color: #9B1C17 !important;
}
.achieve-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.4;
  margin-top: 8px;
}
.cxo-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}
.cxo-top .achieve-icon {
  margin-bottom: 0;
}
.cxo-top .achieve-value {
  margin-bottom: 0;
}

.achieve-value:not([data-target]) {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  transition-delay: calc(var(--stagger) * 150ms + 150ms);
  display: inline-block;
}
.achieve-card.is-visible .achieve-value:not([data-target]) {
  opacity: 1;
  transform: scale(1);
}

/* Responsive: tablet 2x2, mobile single column */
@media (max-width: 1180px) {
  .achieve-grid {
    grid-template-columns: repeat(2, 273px);
  }
}
@media (max-width: 600px) {
  .achieve-bg {
    padding: 36px 0;
  }
  .achieve-grid {
    grid-template-columns: repeat(1, 273px);
  }
}


@media (prefers-reduced-motion: reduce) {
  .achieve-card.reveal,
  .achieve-value:not([data-target]) {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ---------- Skills / Expertise ---------- */

.section-skills {
  padding-top: 80px;
  padding-bottom: 84px;
  background: var(--color-bg-alt);
  position: relative;
}

.skill-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
  align-items: start;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-accent);
  opacity: 0;
  transform: scaleY(0);
  transition: opacity 0.3s ease, transform 0.35s ease;
  border-radius: 0 2px 2px 0;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(6,14,41,0.08);
  border-color: var(--color-accent);
}
.skill-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 14px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.skill-card:hover .skill-icon {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.05);
}
.skill-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--color-heading);
  transition: color 0.3s ease;
}
.skill-card:hover h3 {
  color: var(--color-accent);
}
.skill-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.skill-illustration {
  flex: none;
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}
.skill-illustration svg {
  width: 100%;
  height: auto;
  max-width: 180px;
}

/* ---------- Latest Insights inline topics ---------- */

.section-topics-inline {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

/* ---------- Roadmap / Timeline ---------- */

.section-updates {
  padding-top: 80px;
  padding-bottom: 84px;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.roadmap-layout {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.updates-timeline {
  display: grid;
  gap: 0;
  position: relative;
}

.timeline-milestone {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  padding-bottom: 28px;
  position: relative;
}
.timeline-milestone:last-child {
  padding-bottom: 0;
}
.timeline-milestone:last-child .tl-marker::after {
  display: none;
}

.tl-marker {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2px;
}
.tl-marker::after {
  content: '';
  position: absolute;
  top: 46px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 28px);
  background: var(--color-border);
  border-radius: 1px;
}

.tl-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  position: relative;
  z-index: 1;
  flex: none;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.timeline-milestone:hover .tl-dot {
  background: var(--color-accent);
  color: #fff;
  transform: scale(1.08);
}

.tl-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 22px 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(6,14,41,0.07);
  border-color: var(--color-accent);
}

.tl-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.tl-card h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--color-heading);
}
.tl-card p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.roadmap-illustration {
  display: flex;
  align-items: flex-start;
  padding-top: 8px;
}
.roadmap-illustration svg {
  width: 100%;
  height: auto;
  max-width: 160px;
}

/* ---------- Connect With Me ---------- */

.section-connect {
  padding-top: 80px;
  padding-bottom: 84px;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.connect-layout {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 32px;
  align-items: start;
  max-width: 800px;
  margin: 0 auto;
}

.connect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.connect-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 12px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.connect-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 0 14px 14px;
}
.connect-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(6,14,41,0.1);
}

/* LinkedIn */
.connect-linkedin:hover { border-color: #0A66C2; color: #0A66C2; }
.connect-linkedin::after { background: #0A66C2; }
.connect-linkedin:hover::after { transform: scaleX(1); }

/* X / Twitter */
.connect-twitter:hover { border-color: #000; color: #000; }
.connect-twitter::after { background: #000; }
.connect-twitter:hover::after { transform: scaleX(1); }

/* Facebook */
.connect-facebook:hover { border-color: #1877F2; color: #1877F2; }
.connect-facebook::after { background: #1877F2; }
.connect-facebook:hover::after { transform: scaleX(1); }

/* Blogger */
.connect-blogger:hover { border-color: #FF5722; color: #FF5722; }
.connect-blogger::after { background: #FF5722; }
.connect-blogger:hover::after { transform: scaleX(1); }

.connect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.connect-link:hover .connect-icon { transform: scale(1.06); }
.connect-linkedin:hover .connect-icon { background: #0A66C2; color: #fff; }
.connect-twitter:hover .connect-icon { background: #000; color: #fff; }
.connect-facebook:hover .connect-icon { background: #1877F2; color: #fff; }
.connect-blogger:hover .connect-icon { background: #FF5722; color: #fff; }

.connect-label {
  font-weight: 600;
  font-size: 0.88rem;
}

.connect-illustration {
  display: flex;
  align-items: flex-start;
  padding-top: 16px;
}
.connect-illustration svg {
  width: 100%;
  height: auto;
  max-width: 120px;
}

/* ---------- Subscribe / Newsletter ---------- */

.section-subscribe {
  padding-top: 72px;
  padding-bottom: 80px;
  background: var(--color-navy);
}

.subscribe-box {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 32px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}
.subscribe-copy .eyebrow { color: var(--color-accent); }
.subscribe-copy h2 { color: #fff; margin-bottom: 10px; }
.subscribe-copy p { color: rgba(255,255,255,0.7); margin-bottom: 24px; font-size: 1.05rem; }
#subscribe-msg { margin-top: var(--space-3); font-size: 0.9rem; }

.subscribe-field {
  display: flex;
  gap: 0;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.subscribe-field svg {
  flex: none;
  margin: auto 0 auto 16px;
  color: var(--color-muted);
}
.subscribe-field input[type="email"] {
  flex: 1;
  border: none;
  padding: 14px 12px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  background: transparent;
}
.subscribe-field .btn {
  flex: none;
  border-radius: 0;
  padding: 14px 22px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subscribe-status {
  margin-top: 14px;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 22px;
}
.subscribe-status.is-success { color: #4caf50; }
.subscribe-status.is-error { color: #ff8a80; }

/* ---------- Achievements / Skills / Timeline / Connect responsive ---------- */

@media (max-width: 1024px) {
  .achieve-grid { grid-template-columns: repeat(2, 273px); }
  .skill-layout { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-illustration { display: none; }
  .roadmap-layout { grid-template-columns: 1fr; }
  .roadmap-illustration { display: none; }
  .connect-layout { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-illustration { display: none; }
}

@media (max-width: 768px) {
  .achieve-grid { grid-template-columns: repeat(1, 273px); gap: var(--space-8); }
  .achieve-card { height: auto; min-height: 180px; }

  .skill-grid { grid-template-columns: 1fr; }
  .skill-layout { gap: 0; }

  .timeline-milestone { grid-template-columns: 44px 1fr; gap: 14px; }
  .tl-dot { width: 34px; height: 34px; border-radius: 10px; }
  .tl-card { padding: 18px 20px; }
  .tl-card h3 { font-size: 1rem; }

  .connect-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .connect-layout { gap: 0; }

  .subscribe-field { flex-direction: column; }
  .subscribe-field svg { display: none; }
  .subscribe-field input[type="email"] { border-bottom: 1px solid var(--color-border); border-radius: 0; padding: 14px 16px; }
  .subscribe-field .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .achieve-grid { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr; }
  .connect-link { flex-direction: row; gap: 12px; padding: 16px 20px; justify-content: center; }
  .timeline-milestone { grid-template-columns: 36px 1fr; gap: 12px; padding-bottom: 22px; }
  .tl-dot { width: 30px; height: 30px; border-radius: 8px; }
  .tl-dot svg { width: 16px; height: 16px; }
  .tl-marker::after { top: 38px; height: calc(100% + 22px); }
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-primary-dark));
  z-index: 200;
  transition: width 0.1s linear;
}

/* ---------- Pixelated Stepped Corner Style ---------- */

.stepped-corner-wrapper {
  position: relative;
  display: block;
  z-index: 1;
}

.stepped-corner-wrapper::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  background-color: var(--color-accent);
  clip-path: polygon(
    0 var(--step-size), var(--step-size) var(--step-size), var(--step-size) 0,
    calc(100% - var(--step-size)) 0, calc(100% - var(--step-size)) var(--step-size), 100% var(--step-size),
    100% calc(100% - var(--step-size)), calc(100% - var(--step-size)) calc(100% - var(--step-size)), calc(100% - var(--step-size)) 100%,
    var(--step-size) 100%, var(--step-size) calc(100% - var(--step-size)), 0 calc(100% - var(--step-size))
  );
  z-index: -1;
}

.stepped-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(
    0 var(--step-size), var(--step-size) var(--step-size), var(--step-size) 0,
    calc(100% - var(--step-size)) 0, calc(100% - var(--step-size)) var(--step-size), 100% var(--step-size),
    100% calc(100% - var(--step-size)), calc(100% - var(--step-size)) calc(100% - var(--step-size)), calc(100% - var(--step-size)) 100%,
    var(--step-size) 100%, var(--step-size) calc(100% - var(--step-size)), 0 calc(100% - var(--step-size))
  );
  border-radius: 0 !important;
}

/* ---------- Floating Pill Navbar ---------- */

.pill-nav-container {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 1100px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pill-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.pill-brand:hover .navbar-logo { transform: scale(1.04); }

@media (max-width: 768px) {
  .navbar-logo {
    height: 50px;
  }
}

.pill-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 10px;
}

.pill-logo-badge svg,
.pill-logo-badge img {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
}

.pill-site-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.pill-nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill-nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-heading);
  text-decoration: none;
  transition: color 0.2s;
}

.pill-nav-link:hover, .pill-nav-link.is-active {
  color: var(--color-accent);
}

.pill-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: #111;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-pill:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  color: #fff;
}

.pill-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--color-heading);
  cursor: pointer;
}

.pill-toggle .icon-close { display: none; }
.pill-toggle[aria-expanded="true"] .icon-open { display: none; }
.pill-toggle[aria-expanded="true"] .icon-close { display: block; }

.pill-mobile-nav {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.pill-mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pill-mobile-link {
  display: block;
  padding: 14px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-heading);
  border-radius: 12px;
  text-decoration: none;
  background: rgba(0,0,0,0.03);
}

.pill-mobile-nav .btn-pill {
  margin-top: 8px;
  width: 100%;
}

@media (max-width: 980px) {
  .pill-nav-menu { display: none; }
  .pill-right .btn-pill { display: none; }
  .pill-toggle { display: block; }
  .pill-nav-container { padding: 4px 16px; width: 94%; top: 12px; }
  .pill-site-name { font-size: 1rem; }
}


/* ═══════════════════════════════════════════════
   Bio Intro Section — Marquee + Bio + Stats
   ═══════════════════════════════════════════════ */

/* --- Component 1: Scrolling Marquee Bar --- */

.marquee-bar {
  width: 100%;
  background: var(--color-navy);
  overflow: hidden;
  padding: 16px 0;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: rgba(253, 251, 247, 0.6);
  padding-right: 0;
}

.marquee-dot {
  display: inline-block;
  color: var(--color-accent);
  margin: 0 20px;
  font-size: 0.7rem;
  vertical-align: middle;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* --- Component 2: Bio Intro (2-column) --- */

.section-bio-intro {
  background: var(--color-bg);
  padding: 80px 0;
  position: relative;
}

.bio-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.bio-intro-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bio-intro-label .marquee-dot {
  margin: 0 10px;
  font-size: 0.6rem;
}

.bio-intro-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}

.bio-intro-paragraph {
  font-family: var(--font-paragraph);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

.bio-intro-paragraph-secondary {
  font-family: var(--font-paragraph);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.bio-intro-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
}

.bio-intro-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bio-intro-meta-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.bio-intro-meta-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-heading);
}

/* --- Component 3: Stats Strip --- */

.section-stats-strip {
  padding: 0;
  border-top: none !important;
}

.section-stats-strip + .section {
  border-top: none;
}

.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stats-strip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.stats-strip-card:hover {
  transform: translateY(-2px);
}

.stats-strip-card--light {
  background: var(--color-bg-alt);
}

.stats-strip-card--dark {
  background: var(--color-navy);
}

.stats-strip-card--dark .stats-strip-number {
  color: #fff;
}

.stats-strip-card--dark .stats-strip-label {
  color: rgba(253, 251, 247, 0.65);
}

.stats-strip-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.stats-strip-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* --- Component 6: Decorative Accent --- */

.bio-decorative-accent {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.bio-accent-shape {
  position: absolute;
  right: 5%;
  top: -60px;
  width: 120px;
  height: 120px;
  opacity: 0.5;
}

/* --- Bio Intro Responsive --- */

@media (max-width: 900px) {
  .bio-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section-bio-intro { padding: 48px 0; }
  .bio-intro-heading { font-size: clamp(1.4rem, 5vw, 1.8rem); }
  .bio-intro-meta { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stats-strip-grid { grid-template-columns: 1fr; }
  .stats-strip-card { padding: 32px 24px; }
  .bio-accent-shape { width: 80px; height: 80px; top: -40px; right: 3%; }
}

@media (max-width: 480px) {
  .section-bio-intro { padding: 32px 0; }
  .bio-intro-paragraph { font-size: 1rem; }
  .bio-intro-paragraph-secondary { font-size: 0.95rem; }
  .bio-intro-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .bio-intro-meta-item:last-child { grid-column: 1 / -1; }
  .marquee-content { font-size: 0.72rem; }
  .marquee-dot { margin: 0 14px; }
  .marquee-bar { padding: 12px 0; }
  .stats-strip-card { padding: 28px 20px; }
  .bio-accent-shape { width: 60px; height: 60px; top: -30px; }
}

/* ---------- Reduced motion ---------- */

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

/* ---------- GSAP-ready states ---------- */
/* Applied only when animations.js successfully loads GSAP */

.gsap-ready .hero-inner {
  animation: none; /* GSAP controls hero entrance */
}

.gsap-ready .hero-visual {
  will-change: transform;
}

/* Prevent CSS transition from competing with GSAP on reveals */
.gsap-ready .reveal {
  transition: none;
}

/* Fallback: if GSAP doesn't load, hero still fades in via CSS */
.hero-inner {
  animation: pageFadeIn 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ============================================================
   Page Loader — full-screen overlay shown until the page is ready
   ============================================================ */

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  overflow: hidden;
  background: var(--color-bg);
}

/* Center lockup (globe + wordmark) */
.page-loader__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-loader__center.is-visible {
  opacity: 1;
  transform: none;
}

.page-loader__center.is-hidden {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Globe — a sphere outline with rotating latitude lines */
.page-loader__globe {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
}

.page-loader__globe::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--color-heading);
  border-radius: 50%;
  opacity: 0.22;
}

.globe-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-heading);
  animation: globeLine 1.5s ease-in-out infinite;
}

.globe-line:nth-child(1) { top: 10%; animation-delay: 0s; }
.globe-line:nth-child(2) { top: 27%; animation-delay: 0.12s; }
.globe-line:nth-child(3) { top: 44%; animation-delay: 0.24s; }
.globe-line:nth-child(4) { top: 61%; animation-delay: 0.36s; }
.globe-line:nth-child(5) { top: 78%; animation-delay: 0.48s; }
.globe-line:nth-child(6) { top: 95%; animation-delay: 0.6s; }

@keyframes globeLine {
  0%, 100% { transform: scaleX(0.4); opacity: 0.3; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* Wordmark — typed out letter by letter */
.page-loader__wordmark {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-heading);
  text-align: left;
}

.wchar {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wchar.is-visible {
  opacity: 1;
  transform: none;
}

/* Strips — generated in JS for the stage-3 blind reveal */
.page-loader__strips {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.page-loader.is-revealing {
  background: transparent;
}

.strip {
  position: absolute;
  top: 0;
  bottom: 0;
  transform-origin: top center;
  transform: scaleY(1);
  background: var(--color-bg);
  will-change: transform;
}

/* Final fade under reduced motion */
.page-loader.is-done {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (max-width: 480px) {
  .page-loader__wordmark {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__globe::before,
  .globe-line {
    animation: none;
  }
  .wchar {
    transition: none;
    transform: none;
  }
}

/* ------------------------------------------------------------------ */
/* Services page                                                       */
/* ------------------------------------------------------------------ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(140, 28, 19, 0.35);
  box-shadow: var(--shadow-md);
}
.service-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  margin-bottom: 4px;
}
.service-card h3 {
  font-size: 1.25rem;
  margin: 0;
}
.service-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent);
  margin-top: 8px;
}

.service-detail {
  background: var(--color-bg);
}
.service-detail--alt {
  background: var(--color-bg-alt);
}
.service-detail-grid {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  align-items: start;
}
.service-detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.service-detail-body .eyebrow {
  margin-bottom: 8px;
}
.service-detail-body h2 {
  margin-bottom: 12px;
}
.service-detail-lead {
  font-size: 1.15rem;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 12px;
}
.service-detail-text {
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-who {
  background: var(--color-bg);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.service-who strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-heading);
}
.service-who p {
  margin: 0;
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ */
/* Projects page                                                       */
/* ------------------------------------------------------------------ */

.project-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-8);
  width: 100%;
}
.project-fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.project-fact-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.2;
}
.project-fact-label {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.project-meta {
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.project-meta p {
  margin: 0;
  color: var(--color-text);
}

.project-investment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.project-investment-card {
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.project-investment-card h3 {
  margin-bottom: 16px;
}
.project-investment-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.project-investment-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--color-text);
}
.project-investment-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.project-investment-card li.project-note {
  color: var(--color-muted);
  font-style: italic;
}
.project-note-hint {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.project-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.project-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.project-gallery-empty p {
  margin: 0;
  color: var(--color-muted);
}

/* ------------------------------------------------------------------ */
/* Testimonials page                                                   */
/* ------------------------------------------------------------------ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-8);
}
.testimonial-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.testimonial-quote {
  color: var(--color-accent);
  opacity: 0.9;
}
.testimonial-card blockquote {
  margin: 0;
  flex: 1;
}
.testimonial-card blockquote p {
  margin: 0;
  font-family: var(--font-paragraph);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-heading);
}
.testimonial-card blockquote em {
  color: var(--color-muted);
  font-style: italic;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card figcaption img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-accent-soft);
}
.testimonial-name {
  display: block;
  font-weight: 700;
  color: var(--color-heading);
}
.testimonial-role {
  display: block;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.testimonial-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Legal pages (Privacy & Terms)                                       */
/* ------------------------------------------------------------------ */

.legal-container {
  max-width: 760px;
}
.legal-updated {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 32px;
}
.legal-section {
  margin-bottom: 36px;
}
.legal-section h2 {
  margin-bottom: 14px;
  font-size: 1.4rem;
}
.legal-section p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------------ */
/* Responsive adjustments for new sections                             */
/* ------------------------------------------------------------------ */

@media (max-width: 720px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-detail-icon {
    width: 56px;
    height: 56px;
  }
  .project-investment-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Modern Footer Redesign                                            */
/* ------------------------------------------------------------------ */

.modern-footer-wrapper {
  margin-top: 80px;
  background: var(--color-bg);
  position: relative;
}

.footer-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
}

.footer-strip-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
  font-size: 1.1rem;
}
.footer-strip-left .strip-icon {
  color: var(--color-accent);
}

.footer-strip-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}
.pill-social:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.modern-footer-card {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 24px 24px 0 0;
  margin: 0 auto;
  max-width: var(--container);
  overflow: hidden;
}

.footer-newsletter-block {
  padding: 64px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.newsletter-content {
  flex: 1;
  max-width: 600px;
}

.newsletter-heading {
  color: #fff;
  margin-bottom: 12px;
}

.newsletter-subheading {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 24px;
}

.modern-subscribe-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.modern-email-input {
  flex: 1;
  min-width: 240px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}
.modern-email-input:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.modern-btn-primary {
  background: var(--color-navy-2);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
}
.modern-btn-primary:hover {
  background: var(--color-bg);
  color: var(--color-navy);
}

.newsletter-illustration {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
  opacity: 0.8;
}

.footer-contact-banner {
  background: var(--color-navy);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.contact-banner-heading {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-banner-subtext {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0;
}

.modern-btn-light {
  background: #fff;
  color: var(--color-navy);
  border-radius: 999px;
  font-weight: 700;
  padding: 14px 32px;
}

.modern-footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 64px 48px;
}

.modern-footer-col-title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.modern-footer-logo {
  height: 64px;
  object-fit: contain;
  margin-bottom: 20px;
}

.modern-footer-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modern-social-circles {
  display: flex;
  gap: 12px;
}

.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}
.social-circle:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.modern-footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modern-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.modern-footer-links a:hover {
  color: #fff;
}

.modern-footer-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modern-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
  flex-shrink: 0;
}

.modern-footer-contact-list a, .modern-footer-contact-list span {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-top: 4px;
}
.modern-footer-contact-list a:hover {
  color: #fff;
}

.modern-footer-bottom {
  padding: 24px 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.modern-footer-bottom p {
  margin: 0;
}

@media (max-width: 992px) {
  .modern-footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  .brand-col {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-newsletter-block {
    flex-direction: column;
    text-align: center;
    padding: 48px 24px;
  }
  .modern-subscribe-form {
    flex-direction: column;
  }
  .modern-email-input {
    width: 100%;
  }
  .modern-btn-primary {
    width: 100%;
  }

  .footer-contact-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
  }
  .modern-footer-columns {
    grid-template-columns: 1fr;
    padding: 48px 24px;
  }
  .brand-col {
    grid-column: span 1;
  }
  .modern-footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .footer-top-strip {
    justify-content: center;
    flex-direction: column;
  }
}