/* ==========================================================================
   Bindumalini Theme — Design System
   ========================================================================== */

:root {
  --bg: #0b1b30;
  --panel: #2a3d56;
  --bg-elevated: #0e2048;
  --bg-card: #37506a;
  --bg-card-hover: #405a76;
  --bg-sidebar: #223850;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: #b3bdd0;
  --text-soft: #dde3ef;
  --accent: #6f57d8;
  --accent-2: #4a34ad;
  --accent-soft: #a89bf0;
  --accent-glow: rgba(111, 87, 216, 0.45);
  --gradient: linear-gradient(135deg, #7e64e6 0%, #4a34ad 100%);
  --gradient-hover: linear-gradient(135deg, #8b73ee 0%, #553dbe 100%);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --container: 1400px;
  --header-h: 84px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-heading: var(--font);
  --heading-color: #ffffff;
  --heading-weight: 700;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title,
.hero-copy h1,
.glass-card h1,
.page-hero h1,
.project-card__title,
.insight-card__title,
.lab-item__content h3,
.explore-item__text h3,
.connect h2 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: var(--heading-weight);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 55% at 74% 6%, rgba(99, 78, 205, 0.30), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% 78%, rgba(111, 87, 216, 0.15), transparent 55%),
    linear-gradient(180deg, #10233d 0%, var(--bg) 45%, #08162a 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

button,
input,
textarea {
  font: inherit;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--gradient-hover);
  box-shadow: 0 12px 28px rgba(111, 87, 216, 0.45);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent-soft);
  border-color: rgba(167, 139, 250, 0.55);
}

.btn-ghost:hover {
  background: rgba(111, 87, 216, 0.1);
  border-color: var(--accent-soft);
  color: #fff;
}

.btn-sm {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.link-arrow:hover {
  color: #fff;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(11, 17, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-top: 0.35rem;
}

.site-branding {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-title {
  margin: 0;
  font-family: var(--brand-font, var(--font));
  font-size: var(--brand-size, 1.15rem);
  font-weight: var(--brand-weight, 700);
  color: var(--brand-color, #ffffff);
  letter-spacing: var(--menu-spacing, normal);
  line-height: 1.2;
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--accent-soft);
}

.site-description {
  margin: 0.15rem 0 0;
  font-family: var(--brand-font, var(--font));
  font-size: var(--tagline-size, 0.78rem);
  color: var(--tagline-color, var(--text-muted));
  font-weight: 500;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  position: relative;
  font-family: var(--menu-font, var(--font));
  font-size: var(--menu-size, 0.92rem);
  font-weight: var(--menu-weight, 500);
  font-style: var(--menu-style, normal);
  letter-spacing: var(--menu-spacing, normal);
  text-transform: var(--menu-transform, none);
  color: var(--menu-color, var(--text-soft));
  padding: 0.35rem 0;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a {
  color: var(--menu-color-active, #fff);
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 5rem 0;
}

/* Dashboard-style panels (homepage) */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.15rem;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.panel--hero {
  background:
    radial-gradient(ellipse 70% 85% at 80% 45%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(135deg, #14243c 0%, #0e1c30 100%);
  padding: 2.6rem 2.6rem 2.6rem 2.9rem;
}

.is-front .section {
  padding: 0.7rem 0;
}

.is-front .hero {
  padding: 1.6rem 0 0.7rem;
}

.is-front .connect {
  padding-bottom: 1.8rem;
}

/* Cards sit inside panels with lighter fill, so soften their shadow */
.is-front .project-card {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

/* Let the Explore list fill the panel width on the homepage */
.is-front .explore-list {
  max-width: none;
}

@media (max-width: 600px) {
  .panel {
    padding: 1.4rem 1.25rem;
    border-radius: 14px;
  }

  .panel--hero {
    padding: 1.75rem 1.4rem;
  }
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-family: var(--brand-font, var(--menu-font, var(--font)));
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  line-height: 1.15;
  font-weight: var(--brand-weight, 700);
  font-style: var(--menu-style, normal);
  color: var(--heading-color);
  letter-spacing: var(--menu-spacing, normal);
  text-transform: var(--menu-transform, none);
}

.hero-copy .lead {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}

.hero-orb {
  width: min(100%, 420px);
  aspect-ratio: 1;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-orb svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.35));
}

/* Spinning globe (toggleable from Customizer) */
.hero-orb.is-spinning svg {
  transform-origin: 50% 40%;
  animation: orb-spin 26s linear infinite;
}

@keyframes orb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-orb.is-spinning svg,
  .hero-rings,
  .newsletter-visual svg,
  .map-dot {
    animation: none !important;
  }
}

.hero-rings {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 40px;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.35),
    0 0 30px rgba(59, 130, 246, 0.25);
  animation: pulse-ring 3.5s ease-in-out infinite;
}

.hero-rings::before,
.hero-rings::after {
  content: "";
  position: absolute;
  inset: -14px -18px;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.hero-rings::after {
  inset: -28px -36px;
  border-color: rgba(99, 102, 241, 0.15);
}

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

@keyframes pulse-ring {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.04); }
}

/* Project cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(111, 87, 216, 0.35);
  background: var(--bg-card-hover);
}

.project-card__media {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.25), transparent 55%),
    var(--bg-elevated);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__media .illus {
  width: 70%;
  max-width: 180px;
}

.project-card__body {
  padding: 1.35rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-card__title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.project-card__excerpt {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.ext-link {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.ext-link:hover {
  color: #fff;
  border-color: var(--accent-soft);
}

/* Insights cards */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.insight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.insight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(111, 87, 216, 0.3);
}

.insight-card__media {
  aspect-ratio: 16 / 11;
  background: var(--bg-elevated);
  overflow: hidden;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.04);
}

.insight-card__body {
  padding: 1.1rem 1.15rem 1.35rem;
}

.insight-card__cat {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--accent-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.insight-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Explore more */
.explore-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 820px;
}

.explore-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.explore-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(111, 87, 216, 0.3);
  transform: translateX(4px);
}

.explore-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(111, 87, 216, 0.12);
  color: var(--accent-soft);
  flex-shrink: 0;
}

.explore-item__icon svg {
  width: 24px;
  height: 24px;
}

.explore-item__text {
  flex: 1;
  min-width: 0;
}

.explore-item__text h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.explore-item__text p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.explore-item__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Connect */
.connect {
  padding-bottom: 4rem;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.connect h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.connect .lead {
  margin: 0 0 2rem;
  color: var(--text-soft);
  max-width: 28rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.contact-list a,
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(111, 87, 216, 0.12);
  color: var(--accent-soft);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-meta strong {
  display: block;
  font-size: 0.95rem;
}

.contact-meta span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-row {
  display: flex;
  gap: 0.85rem;
}

.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

.social-row a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.social-row svg {
  width: 20px;
  height: 20px;
}

.map-visual {
  position: relative;
  min-height: 320px;
  display: grid;
  place-items: center;
}

.map-visual svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  opacity: 0.9;
}

.map-dot {
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.9));
  animation: glow 2.8s ease-in-out infinite;
}

.map-dot:nth-child(2) { animation-delay: 0.4s; }
.map-dot:nth-child(3) { animation-delay: 0.8s; }
.map-dot:nth-child(4) { animation-delay: 1.2s; }

@keyframes glow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  background: #0a101c;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu a {
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-menu a:hover {
  color: #fff;
}

/* ==========================================================================
   Insights newsletter hero
   ========================================================================== */

.insights-hero {
  padding: 4rem 0 3rem;
}

.insights-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.glass-card {
  background: rgba(55, 80, 106, 0.85);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem 2.1rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.glass-card h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.glass-card .eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent-soft);
  font-weight: 600;
  font-size: 1.05rem;
}

.glass-card p {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.subscribe-form {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 180px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.8rem 1rem;
  outline: none;
}

.subscribe-form input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 87, 216, 0.2);
}

.subscribe-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-visual {
  display: grid;
  place-items: center;
  min-height: 340px;
}

.newsletter-visual svg {
  width: min(100%, 420px);
  filter: drop-shadow(0 0 40px rgba(111, 87, 216, 0.35));
  animation: float 7s ease-in-out infinite;
}

/* ==========================================================================
   Architecture Lab
   ========================================================================== */

.lab-panel {
  padding: 1.75rem 1.9rem 1.5rem;
}

.lab-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.75rem;
  align-items: start;
}

.lab-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 1.25rem;
}

.lab-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lab-topics a,
.lab-topics button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-soft);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.lab-topics a:hover,
.lab-topics button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lab-topics .is-active,
.lab-topics .current-cat {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 8px 20px var(--accent-glow);
}

.lab-main {
  padding: 0;
  min-width: 0;
}

.lab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.lab-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  color: inherit;
}

.lab-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(111, 87, 216, 0.35);
  transform: translateX(3px);
}

.lab-list > li[hidden] {
  display: none;
}

.lab-item__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 40%, rgba(99, 102, 241, 0.18), transparent 65%),
    var(--panel);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.lab-item__icon svg {
  width: 28px;
  height: 28px;
}

.lab-item__content {
  flex: 1;
  min-width: 0;
}

.lab-item__content h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.lab-item__content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.lab-item__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}


/* ==========================================================================
   Content pages / single
   ========================================================================== */

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.page-hero p {
  margin: 0;
  color: var(--text-muted);
  max-width: 40rem;
  font-size: 1.05rem;
}

.content-wrap {
  padding: 0 0 5rem;
}

.entry-content {
  max-width: 860px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

/* Single articles: near full-width with ~2cm gutter on each side. */
.single .content-wrap .container {
  max-width: none;
  width: calc(100% - 4cm);
}

.single .content-wrap .entry-content {
  max-width: none;
}

.entry-content h2,
.entry-content h3 {
  color: #fff;
  letter-spacing: -0.02em;
}

.entry-content a {
  color: var(--accent-soft);
}

.entry-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.single-project .project-hero-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  background: var(--bg-elevated);
  aspect-ratio: 21 / 9;
}

.single-project .project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty / fallback */
.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .connect-grid,
  .insights-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .newsletter-visual,
  .map-visual {
    order: -1;
    min-height: 280px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .lab-layout {
    grid-template-columns: 1fr;
  }

  .lab-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .lab-topics {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .lab-topics a,
  .lab-topics button {
    width: auto;
  }

  .lab-main {
    padding: 0;
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 17, 32, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    display: none;
  }

  .nav-wrap.is-open {
    display: flex;
  }

  .primary-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .header-inner {
    position: relative;
    align-items: center;
    padding-top: 0;
  }

  .header-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 2rem, var(--container));
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .subscribe-form .btn {
    width: 100%;
    justify-content: center;
  }
}
