/*
 * BMS Service — Nordic Tech Design System
 * Glassmorphism · Dark Mode · Scandinavian Minimalism
 *
 * Color Palette:
 *   Primary:  Midnight Blue (#0f1b2d)
 *   Accent:   Electric Cyan (#00e5ff)
 *   Neutral:  Slate Grey (#8892a4) / White (#f8f9fb)
 */

/* ───────────────────────────────────────────────────────
   DESIGN TOKENS (CSS Custom Properties)
   ─────────────────────────────────────────────────────── */
:root {
  /* Colors — Light Mode */
  --bg:             #f8f9fb;
  --bg-alt:         #eef0f4;
  --surface:        rgba(255, 255, 255, 0.65);
  --surface-border: rgba(255, 255, 255, 0.35);
  --text:           #0f1b2d;
  --text-muted:     #5a6478;
  --accent:         #00c9db;
  --accent-glow:    rgba(0, 201, 219, 0.25);
  --hero-bg:        #0f1b2d;
  --hero-text:      #f8f9fb;
  --card-shadow:    0 8px 32px rgba(15, 27, 45, 0.08);
  --glass-blur:     20px;

  /* Typography */
  --ff: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  2.75rem;
  --fs-4xl:  3.5rem;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --container: 1200px;
  --gap: 1.5rem;
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --bg:             #0a1120;
  --bg-alt:         #111827;
  --surface:        rgba(17, 24, 39, 0.7);
  --surface-border: rgba(255, 255, 255, 0.08);
  --text:           #e2e8f0;
  --text-muted:     #8892a4;
  --accent:         #00e5ff;
  --accent-glow:    rgba(0, 229, 255, 0.2);
  --hero-bg:        #060d1b;
  --hero-text:      #f1f5f9;
  --card-shadow:    0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ───────────────────────────────────────────────────────
   RESET & BASE
   ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ───────────────────────────────────────────────────────
   UTILITIES
   ─────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

/* Glassmorphism */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* ───────────────────────────────────────────────────────
   BUTTONS
   ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font: var(--fw-semibold) var(--fs-base)/1 var(--ff);
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #0f1b2d;
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn--primary:hover {
  box-shadow: 0 0 40px var(--accent-glow), 0 4px 16px var(--accent-glow);
  transform: translateY(-2px);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hero-text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}
.btn--glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ───────────────────────────────────────────────────────
   NAVIGATION
   ─────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: var(--container);
  z-index: 1000;
  padding: 0.5rem 0.75rem;
  background: rgba(15, 27, 45, 0.6);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.nav__logo-icon { width: 32px; height: 32px; }
.nav__wordmark {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: -0.02em;
}
.nav__wordmark-light {
  font-weight: var(--fw-normal);
  opacity: 0.7;
}

.nav__links {
  display: flex;
  gap: 0.25rem;
}
.nav__link {
  padding: 0.5rem 1rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav__link--cta {
  background: var(--accent);
  color: #0f1b2d;
  font-weight: var(--fw-semibold);
}
.nav__link--cta:hover {
  background: #00e5ff;
  color: #0f1b2d;
  box-shadow: 0 0 20px var(--accent-glow);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Dark toggle */
.dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  color: rgba(255, 255, 255, 0.75);
}
.dark-toggle:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.dark-toggle svg { width: 18px; height: 18px; }
.dark-toggle__moon { display: none; }
[data-theme="dark"] .dark-toggle__sun { display: none; }
[data-theme="dark"] .dark-toggle__moon { display: block; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ───────────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  opacity: 0.35;
}
.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 27, 45, 0.3) 0%,
    rgba(15, 27, 45, 0.7) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: 6rem;
  max-width: 720px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(var(--fs-3xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  color: var(--hero-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero__title--accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.6); }
}

/* ───────────────────────────────────────────────────────
   SECTIONS (shared)
   ─────────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.section__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section__title {
  font-size: clamp(var(--fs-2xl), 3.5vw, var(--fs-3xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ───────────────────────────────────────────────────────
   DESIGO EDGE
   ─────────────────────────────────────────────────────── */
.desigo { background: var(--bg-alt); }

.desigo__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}

.desigo__card {
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.desigo__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.desigo__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
}
.desigo__icon svg { width: 100%; height: 100%; }

.desigo__card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}
.desigo__card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ───────────────────────────────────────────────────────
   SERVICES
   ─────────────────────────────────────────────────────── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.services__card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.services__card:hover::before { opacity: 1; }
.services__card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-2px);
}

.services__number {
  display: block;
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.services__card h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.75rem;
}

.services__card p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.services__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.services__tags li {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: 0.25rem 0.75rem;
  background: var(--accent-glow);
  color: var(--accent);
  border-radius: 100px;
}

[data-theme="dark"] .services__card {
  background: var(--bg-alt);
}

/* ───────────────────────────────────────────────────────
   TEAM
   ─────────────────────────────────────────────────────── */
.team { background: var(--bg); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: calc(var(--gap) * 1.5);
}

.team__card {
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.team__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.team__avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.team__avatar svg { width: 100%; height: 100%; }

.team__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.25rem;
}

.team__role {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.team__bio {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.team__card .services__tags {
  justify-content: center;
}

/* ───────────────────────────────────────────────────────
   CALLOUT (Sustainability)
   ─────────────────────────────────────────────────────── */
.callout { padding-top: 0; }

.callout__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem;
}

.callout__icon { flex-shrink: 0; width: 80px; }
.callout__icon svg { width: 100%; height: auto; }

.callout__text h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.callout__text p {
  color: var(--text-muted);
  line-height: 1.7;
}
.callout__text strong { color: var(--text); }

/* ───────────────────────────────────────────────────────
   NORDIC VISION
   ─────────────────────────────────────────────────────── */
.nordic { background: var(--bg-alt); }

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

.nordic__map {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.nordic__country {
  fill: rgba(0, 201, 219, 0.08);
  stroke: var(--accent);
  stroke-width: 1.5;
  transition: fill var(--transition);
}
.nordic__country:hover {
  fill: rgba(0, 201, 219, 0.2);
}
.nordic__country--faded {
  opacity: 0.3;
}

.nordic__pin {
  fill: var(--accent);
}
.nordic__pin--active {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent));
}

.nordic__pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0%   { r: 8;  opacity: 0.8; }
  100% { r: 24; opacity: 0; }
}

.nordic__label {
  fill: var(--text-muted);
  font-size: 13px;
  font-family: var(--ff);
}

.nordic__stats {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.nordic__stat {
  padding: 1.5rem 2rem;
  text-align: center;
}
.nordic__stat-number {
  display: block;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1.2;
}
.nordic__stat-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ───────────────────────────────────────────────────────
   BENTO BOX (Protocols)
   ─────────────────────────────────────────────────────── */
.protocols { background: var(--bg); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.bento__item {
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.bento__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__item h3 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
  color: var(--text);
}
.bento__item p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

.bento__badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
}

/* ───────────────────────────────────────────────────────
   CONTACT
   ─────────────────────────────────────────────────────── */
.contact { background: var(--bg-alt); }

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__form-wrapper {
  padding: 2.5rem;
}

.contact__field {
  margin-bottom: 1.25rem;
}
.contact__field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: 0.4rem;
  color: var(--text);
}
.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: var(--fs-base) var(--ff);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* ───────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────── */
.footer {
  padding: 3rem 0;
  border-top: 1px solid var(--surface-border);
}

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

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: var(--fw-semibold);
}
.footer__logo { width: 28px; height: 28px; }

.footer__nav {
  display: flex;
  gap: 1.5rem;
}
.footer__nav a {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--accent); }

.footer__copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 1rem;
}

/* ───────────────────────────────────────────────────────
   SCROLL REVEAL ANIMATIONS
   ─────────────────────────────────────────────────────── */
.section__eyebrow,
.section__title,
.section__lead,
.desigo__card,
.services__card,
.team__card,
.bento__item,
.nordic__stat,
.callout__inner,
.contact__text,
.contact__form-wrapper {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.desigo__card:nth-child(2),
.services__card:nth-child(2),
.team__card:nth-child(2),
.bento__item:nth-child(2) { transition-delay: 0.1s; }
.desigo__card:nth-child(3),
.services__card:nth-child(3),
.bento__item:nth-child(3) { transition-delay: 0.2s; }
.desigo__card:nth-child(4),
.bento__item:nth-child(4) { transition-delay: 0.3s; }
.bento__item:nth-child(5) { transition-delay: 0.15s; }
.bento__item:nth-child(6) { transition-delay: 0.25s; }
.bento__item:nth-child(7) { transition-delay: 0.35s; }

/* ───────────────────────────────────────────────────────
   RESPONSIVE — Tablet
   ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
}

/* ───────────────────────────────────────────────────────
   RESPONSIVE — Mobile
   ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --gap: 1rem; }

  .nav__links { 
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 27, 45, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    margin-top: 0.5rem;
  }
  .nav__links--open { display: flex; }
  .nav__burger { display: flex; }

  .hero__content { padding-top: 6rem; }

  .nordic__map-wrapper {
    grid-template-columns: 1fr;
  }
  .nordic__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nordic__stat { flex: 1; min-width: 120px; }

  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .callout__inner { flex-direction: column; text-align: center; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--fs-2xl); }
  .hero__ctas { flex-direction: column; }
  .btn { padding: 0.75rem 1.5rem; font-size: var(--fs-sm); }
}

/* ═══════════════════════════════════════════════════════════════════
   SUBPAGE STYLES — Page Headers, Articles, Blog Grid
   ═══════════════════════════════════════════════════════════════════ */

/* ── Page Header (subpages) ── */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--bg);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 201, 219, 0.04), transparent 60%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}

.page-header__lead {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__separator {
  opacity: 0.4;
}

/* ── Article Meta ── */
.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-top: 1rem;
}

/* ── Article Content (long-form typography) ── */
.article-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.article-content h2 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-top: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.article-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.article-content strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(0, 201, 219, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content blockquote p {
  margin-bottom: 0;
  font-style: italic;
}

/* ── Articles Grid (blog index) ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.article-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.article-card__title a:hover {
  color: var(--accent);
}

.article-card__excerpt {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.article-card__link {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}

.article-card__link:hover {
  text-decoration: underline;
}

/* ── Responsive: subpages ── */
@media (max-width: 768px) {
  .page-header {
    padding: 8rem 0 3rem;
  }

  .article-content {
    padding: 1.5rem 0 3rem;
  }

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