/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(16px, 0.35vw + 15px, 18px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

/* Theme variables */
:root {
  --bg: #0d1117;
  /* deep cool slate */
  --panel: #151922;
  /* slightly lighter for cards/sections */
  --ink: #f5f9ff;
  /* soft blue-white text */
  --muted: #b8c6e0;
  /* gentle gray-blue text */
  --accent: #4a90e2;
  /* primary blue */
  --accent-soft: rgba(74, 144, 226, 0.16);
  /* soft glow */
  --border-subtle: #212636;
  /* subtle border */
}


/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.site-header .container {
  max-width: 1400px;
}


/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 16, 19, 0.98);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.site-header.scrolled {
  background: rgba(8, 10, 16, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.75);
  border-bottom-color: rgba(33, 38, 54, 0.9);
}

.site-header.scrolled .nav {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: radial-gradient(circle at 30% 0%, var(--accent-soft), transparent 55%);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  /* border-radius: 999px; */
  /* border: 1px solid transparent; */
  transition:
    color 0.18s ease-out,
    background 0.18s ease-out,
    border-color 0.18s ease-out;
}

/* underline line that draws left → right */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  /* border-radius: 999px; */
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition:
    transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.2s ease-out;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Active nav link shows underline + brighter text */
.nav-links a.active {
  color: var(--ink);
  border-color: var(--border-subtle);
}

.nav-links a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.nav-links a:focus-visible {
  outline: none;
  color: var(--ink);
  border-color: var(--accent-soft);
  background: rgba(74, 144, 226, 0.14);
}

.nav-links a:focus-visible::after {
  transform: scaleX(1);
  opacity: 1;
}

/* no underline on the blue CTA button */
.nav-links .nav-cta::after {
  content: none;
}

.nav-links a:hover {
  color: var(--ink);
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
}

.nav-cta {
  background: #4a90e2;
  color: #f5f9ff;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 0 1px var(--accent-soft), 0 10px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background 0.15s ease-out;
}

.nav-cta:hover {
  background: #5aa0f2;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--accent-soft),
    0 0 22px rgba(74, 144, 226, 0.65),
    0 18px 46px rgba(0, 0, 0, 0.8);
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(21, 24, 29, 0.8);
  margin-bottom: 1.2rem;
}

.hero-kicker span.badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span.emphasis {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-secondary {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-secondary span {
  color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-card {
  background: radial-gradient(circle at top, rgba(212, 168, 78, 0.1), transparent 55%), var(--panel);
  border-radius: 1.5rem;
  border: 1px solid var(--border-subtle);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
}

.hero-card-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}

.hero-stat-main {
  font-size: 1.8rem;
  font-weight: 600;
}

.hero-stat-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.hero-pill,
.profile-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 198, 224, 0.35);
  color: var(--muted);
  background: rgba(10, 14, 24, 0.9);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.section-description {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26rem;
}

/* Cards */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: var(--panel);
  border-radius: 1.1rem;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.card-link:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.card-kicker {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.card-body {
  font-size: 0.9rem;
  color: var(--muted);
}

.card-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.card-image {
  margin: -0.2rem -0.3rem 0.6rem;
  border-radius: 0.9rem;
  overflow: hidden;
}

.card-image img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

/* Latest Post */

.latest-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.latest-all-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s ease-out, color 0.15s ease-out, transform 0.15s ease-out;
}

.latest-all-link:hover {
  background: rgba(74, 144, 226, 0.15);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Carousel Layout */

.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 2rem;
  margin-top: 1rem;
}

.carousel-track {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}

.carousel-track .card {
  flex: 0 0 320px;
  /* width of each card */
  max-width: 320px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Premium Carousel Arrow Buttons */
.carousel-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: 0.15s ease;
  font-size: 18px;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.carousel-btn.left {
  left: 8px;
  /* half the width for subtle overlap */
}

.carousel-btn.right {
  right: 8px;
}

/* ------------------------------ */
/* ARCHIVE PAGE STYLES           */
/* ------------------------------ */

.archive-link-card {
  font-size: 1rem;
  /* baseline */
}

.archive-page {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.archive-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0.5rem auto 0;
}

/* List container */
/* Archive grid layout */
.archive-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}


/* Each article block */
.archive-item {
  background: #201c33;
  /* your current purple card bg */
  padding: 1.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px;
  /* ← make all cards equal height */
  overflow: hidden;
  /* prevents text from spilling */
}

.archive-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

/* Title */
/* Title */
.archive-item-title {
  font-size: 1.2rem;
  /* shrink as needed: try 0.85 if you want tighter */
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: #fff;
}

/* Optional: subtle hover color shift for the whole card */
.archive-link-card:hover .archive-item-title {
  color: #ffffff;
}


/* Meta line (date + tags) */
.archive-meta {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Summary paragraph */
.archive-summary {
  color: #b9b5d1;
  font-size: 0.85rem;
  line-height: 1.35;
  max-height: 3.7em;
  /* controls how many lines show */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  /* 3-line fade */
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Tags row */
.archive-tags {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.archive-tag {
  background: #eef3ff;
  color: #2b4eff;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

.archive-link-card {
  display: block;
  height: 100%;
  padding: 1.5rem;
  border-radius: 12px;
  background: #201c33;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Hover effect */
.archive-link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

/* Ensure card content doesn't look like a link */
.archive-link-card h2,
.archive-link-card p,
.archive-link-card div {
  color: #fff;
  /* or your existing color */
}


/* Load More */
.btn-load-more {
  display: inline-block;
  margin: 2rem auto 0;
  padding: 0.7rem 1.5rem;
  background: #004bff;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.btn-load-more:hover {
  background: #0038c7;
}

.archive-actions {
  text-align: center;
}

/* Empty or error states */
.archive-empty,
.archive-error {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.1rem;
  color: var(--muted);
}

/* ------------------------------ */
/* SEARCH PAGE                    */
/* ------------------------------ */

.search-page {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

.search-controls {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.search-controls label {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.search-controls input[type="search"],
.search-controls input[type="text"] {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #080a12;
  color: var(--text);
  min-width: 260px;
  max-width: 100%;
}

.search-controls input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* reuse your existing .archive-list / .archive-item / .archive-link-card
   so results appear as the same 3-across cards */


/* Email capture block */
.cta-panel {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.22), rgba(12, 16, 26, 0.96));
  border-radius: 1.5rem;
  border: 1px solid var(--accent-soft);
  padding: 1.75rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.cta-text {
  font-size: 0.95rem;
  color: #f4f4f4;
  max-width: 24rem;
}

.cta-text span {
  font-weight: 600;
}

.cta-note {
  font-size: 0.8rem;
  color: #c8c8c8;
  margin-top: 0.4rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
}

.cta-actions .nav-cta {
  justify-content: center;
}

.cta-secondary {
  font-size: 0.85rem;
  color: #b8c6e0;
  /* readable muted blue-gray */
  text-align: center;
}

.cta-secondary a {
  color: #8bb8ff;
  /* friendly blue link */
  text-decoration: underline;
}

.cta-secondary a:hover {
  color: #a5ccff;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0 2rem;
  margin-top: auto;
  background: #0c0e11;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

/* About page */
.about-hero {
  padding: 3rem 0 2rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: flex-start;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.about-title {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.about-body {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-body p+p {
  margin-top: 0.9rem;
}

.profile-card {
  background: var(--panel);
  border-radius: 1.4rem;
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-name {
  font-weight: 600;
}

.profile-role {
  font-size: 0.9rem;
  color: var(--muted);
}

.profile-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 850px) {

  .hero-layout,
  .cta-panel,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 3rem 0 2.25rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-cta {
    font-size: 0.85rem;
    padding-inline: 0.8rem;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .nav-cta {
    justify-content: center;
    width: 100%;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-panel {
    padding: 1.4rem 1.1rem;
  }

  /* Tablet */
  @media (max-width: 1100px) {
    .archive-list {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* Mobile */
  @media (max-width: 700px) {
    .archive-list {
      grid-template-columns: 1fr;
    }
  }

  /* =========================
   Mobile Nav (Hamburger)
   ========================= */

  .nav-toggle {
    display: none;
    /* hidden on desktop */
    width: 44px;
    height: 44px;
    border: 1px solid rgba(120, 140, 170, 0.35);
    background: rgba(10, 12, 16, 0.7);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
  }

  .nav-toggle:focus {
    outline: 2px solid rgba(74, 144, 226, 0.6);
    outline-offset: 2px;
  }

  .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: rgba(245, 249, 255, 0.9);
    border-radius: 999px;
  }

  /* Breakpoint: adjust if you want */
  @media (max-width: 1100px) {
    .nav {
      position: relative;
      gap: 0.75rem;
    }

    .nav-toggle {
      display: inline-flex;
      /* show hamburger */
      margin-left: auto;
    }

    /* Turn the links into a dropdown panel */
    .nav-links {
      display: none;
      /* closed by default */
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0.25rem;

      padding: 0.75rem;
      border-radius: 16px;
      border: 1px solid rgba(33, 38, 54, 0.9);
      background: rgba(8, 10, 16, 0.98);
      backdrop-filter: blur(18px);
      box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
      z-index: 20;
    }

    .nav-links.is-open {
      display: flex;
      /* opened state */
    }

    .nav-links a {
      width: 100%;
      padding: 0.7rem 0.9rem;
      border-radius: 12px;
    }

    /* Make the CTA look good in the stack */
    .nav-links .nav-cta {
      justify-content: center;
      margin-top: 0.25rem;
      padding: 0.75rem 0.95rem;
    }
  }

  /* =========================
   Tiny screens: compact header
   ========================= */
  @media (max-width: 480px) {
    .container {
      padding: 0 1rem;
    }

    .logo-title {
      font-size: 0.95rem;
      letter-spacing: 0.04em;
    }

    /* Hide the subtitle on phones */
    .logo-subtitle {
      display: none;
    }

    /* Slightly tighten the logo area */
    .logo {
      gap: 0.5rem;
    }

    /* Keep the toggle from feeling cramped */
    .nav-toggle {
      width: 42px;
      height: 42px;
    }
  }

  /* =========================
   Mobile nav panel: prevent overflow
   ========================= */
  @media (max-width: 1100px) {
    .nav-links {
      max-height: calc(100vh - 120px);
      /* keeps it inside the screen */
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
    }
  }

  /* =========================
   Mobile nav animation polish
   ========================= */
  @media (max-width: 1100px) {
    .nav-links {
      transform-origin: top;
      transform: translateY(-6px) scale(0.98);
      opacity: 0;
      transition:
        transform 180ms ease,
        opacity 160ms ease;
      will-change: transform, opacity;
    }

    .nav-links.is-open {
      transform: translateY(0) scale(1);
      opacity: 1;
    }
  }

  /* =========================
   Tablet nav panel sizing (iPad-friendly)
   ========================= */
  @media (max-width: 1100px) and (min-width: 600px) {
    .nav-links {
      left: auto;
      right: 0;
      width: min(520px, calc(100vw - 2rem));
    }
  }

  /* =========================
   Tablet comfort mode (bigger taps, bigger text)
   ========================= */
  @media (max-width: 1100px) and (min-width: 600px) {
    .nav-links a {
      font-size: 1.05rem;
      padding: 0.9rem 1rem;
    }

    .nav-links .nav-cta {
      font-size: 1.05rem;
      padding: 1rem 1.05rem;
    }
  }


}