/* =========================================================
   BHK Cloud — Mission Control Terminal Design System
   ========================================================= */

/* ---------------------------------------------------------
   1. Design Tokens
   --------------------------------------------------------- */
:root {
  /* Backgrounds — brighter navy (was near-black) */
  --color-bg:        #0a1628;
  --color-bg-2:      #0d1c35;
  --color-surface:   #142244;
  --color-surface-2: #1b2e56;

  /* Text — boosted luminance */
  --color-text:      #ffffff;
  --color-text-soft: #bdc8e5;
  --color-text-mute: #7d8aaa;

  /* Accent — White (was Signal Blue) */
  --color-primary:       #ffffff;
  --color-primary-mid:   #e0eaff;
  --color-primary-faint: #b0c4e8;

  /* Semantic status */
  --color-success: #4ade80;
  --color-warning: #ffd580;

  /* Borders */
  --color-border:        rgba(255, 255, 255, 0.10);
  --color-border-strong: rgba(255, 255, 255, 0.20);

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Shadows */
  --shadow-ambient: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-panel:   0 12px 32px rgba(5, 12, 35, 0.55);
  --shadow-lift:    0 30px 80px rgba(5, 12, 35, 0.65);
  --shadow-signal:       0 20px 60px rgba(255, 255, 255, 0.10);
  --shadow-signal-hover: 0 24px 70px rgba(255, 255, 255, 0.22);

  /* Radius */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 999px;

  /* Typography Scale (major third, 1.250 ratio) */
  --fs-xs:    0.78rem;
  --fs-sm:    0.875rem;
  --fs-base:  clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-h4:    clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --fs-h3:    clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  --fs-h2:    clamp(1.9rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1:    clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  --fs-hero:  clamp(3.2rem, 1.8rem + 6.4vw, 6.4rem);

  /* Line Heights */
  --lh-tight: 1.08;
  --lh-snug:  1.18;
  --lh-body:  1.65;
  --lh-prose: 1.75;

  /* Letter Spacing */
  --tracking-tight:   -0.025em;
  --tracking-snug:    -0.018em;
  --tracking-eyebrow:  0.14em;

  /* Spacing Scale (4/8px rhythm) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;
  --space-section: clamp(64px, 8vw, 128px);
  --gutter:        clamp(24px, 4vw, 48px);

  /* Motion */
  --dur-fast:   140ms;
  --dur-normal: 220ms;
  --dur-slow:   360ms;
  --dur-exit:   160ms;
  --ease-out-soft:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-soft:    cubic-bezier(0.4, 0, 1, 1);
  --ease-standard:   cubic-bezier(0.2, 0, 0, 1);
}

/* ---------------------------------------------------------
   2. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-family: var(--font-display);
  color: var(--color-text);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: var(--lh-snug);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0 0 var(--space-5) 0;
}

a {
  color: var(--color-primary-faint);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
a:hover {
  color: var(--color-text);
}
a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.80);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-faint);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

ul, ol {
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------
   3. Layout
   --------------------------------------------------------- */
.container {
  width: 100%;
  max-width: none; /* was 1320px */
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.container--wide { max-width: none; /* was 1600px */ }
.container--full { max-width: none; }

/* ---------------------------------------------------------
   4. Skip Link
   --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--color-surface-2);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  z-index: 9999;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform var(--dur-normal) var(--ease-out-soft),
              box-shadow var(--dur-normal) var(--ease-out-soft),
              background var(--dur-fast) var(--ease-out-soft),
              border-color var(--dur-fast) var(--ease-out-soft);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border: none;
  line-height: 1;
  touch-action: manipulation;
  letter-spacing: -0.01em;
}
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.80);
  outline-offset: 3px;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn--primary {
  background: #ffffff;
  color: #0a1628 !important;
  box-shadow: var(--shadow-signal);
}
.btn--primary:hover {
  background: #e8f0ff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-signal-hover);
  color: #0a1628 !important;
  transition: transform var(--dur-normal) var(--ease-out-spring),
              box-shadow var(--dur-normal) var(--ease-out-soft),
              background var(--dur-fast) var(--ease-out-soft);
}
.btn--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.80);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.btn--ghost,
.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text) !important;
  border: 1px solid var(--color-border-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text) !important;
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   6. Eyebrow & Badges
   --------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-mute);
  border: 1px solid var(--color-border);
}
.badge--new {
  background: rgba(74, 222, 128, 0.12);
  color: var(--color-success);
  border-color: rgba(74, 222, 128, 0.28);
}
.badge--draft {
  background: rgba(255, 213, 128, 0.08);
  color: var(--color-warning);
  border-color: rgba(255, 213, 128, 0.22);
}

/* ---------------------------------------------------------
   7. Navigation
   --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  transition: background var(--dur-normal) var(--ease-out-soft),
              border-color var(--dur-normal) var(--ease-out-soft),
              backdrop-filter var(--dur-normal) var(--ease-out-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 22, 40, 0.90);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  width: 100%;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text) !important;
  text-decoration: none !important;
  letter-spacing: -0.01em;
  transition: opacity var(--dur-fast) var(--ease-out-soft);
}
.nav__brand:hover {
  opacity: 0.80;
  color: var(--color-text) !important;
}
.nav__name {
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  font-family: var(--font-body);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out-soft),
              color var(--dur-fast) var(--ease-out-soft);
}
.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
}
.nav__links a[aria-current="page"] {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
}

/* Mobile menu (JS-driven) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav__toggle:hover { background: rgba(255,255,255,0.06); }
@media (max-width: 640px) {
  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__cta { display: none; }
}

#mobileMenu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px var(--gutter) 24px;
  z-index: 99;
}
#mobileMenu.is-open { display: block; }
#mobileMenu a {
  display: block;
  font-family: var(--font-body);
  color: var(--color-text-soft);
  font-size: 1rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: color 0.15s;
}
#mobileMenu a:last-child { border-bottom: none; }
#mobileMenu a:hover { color: var(--color-text); }

/* ---------------------------------------------------------
   8. Sections & Hero
   --------------------------------------------------------- */
.section {
  padding: var(--space-section) 0;
  scroll-margin-top: 68px;
}

main {
  scroll-margin-top: 68px;
}

.hero {
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  text-align: center;
  padding: 68px 0 var(--space-6);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(255,255,255,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 45% 35% at 85% 70%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: var(--fs-hero);
  max-width: none; /* was 18ch */
  margin: 0 auto var(--space-5);
}
.hero p {
  max-width: none; /* was 52ch */
  margin: 0 auto var(--space-7);
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: var(--lh-snug);
}
.hero__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   9. Post Grid
   --------------------------------------------------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* Staggered entrance for grid cards */
.post-grid .fade-up:nth-child(1) { transition-delay: 0ms; }
.post-grid .fade-up:nth-child(2) { transition-delay: 80ms; }
.post-grid .fade-up:nth-child(3) { transition-delay: 160ms; }

/* ---------------------------------------------------------
   10. Card — Glass Surface
   --------------------------------------------------------- */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-panel);
  transition: box-shadow var(--dur-normal) var(--ease-out-soft),
              transform var(--dur-normal) var(--ease-out-spring),
              border-color var(--dur-fast) var(--ease-out-soft);
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.30);
}

.card--muted {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--color-border);
  box-shadow: none;
  cursor: default;
}
.card--muted:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--color-border);
}

/* Active post card gets a white top accent line */
.post-card:not(.card--muted) {
  border-top: 2px solid rgba(255, 255, 255, 0.40);
}
.post-card:not(.card--muted):hover {
  border-top-color: rgba(255, 255, 255, 0.70);
}

/* ---------------------------------------------------------
   11. Post Card
   --------------------------------------------------------- */
.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.post-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.post-card h3 a {
  color: var(--color-text);
  font-family: var(--font-display);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.post-card h3 a:hover {
  color: var(--color-primary-mid);
}
.post-card h3.muted {
  color: var(--color-text-mute);
}

.post-card p {
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--color-text-soft);
  flex-grow: 1;
  margin-bottom: var(--space-5);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--color-text-mute);
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.post-meta .dot {
  color: var(--color-border-strong);
}

.read-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: auto;
  transition: gap var(--dur-fast) var(--ease-out-soft),
              opacity var(--dur-fast) var(--ease-out-soft);
  text-decoration: none;
  opacity: 0.70;
}
.read-link:hover {
  opacity: 1.0;
  color: var(--color-text);
  gap: var(--space-2);
}

.coming-soon {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text-mute);
  margin-top: auto;
  display: block;
  opacity: 0.60;
}

/* ---------------------------------------------------------
   12. Section Label
   --------------------------------------------------------- */
.section-label {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

/* ---------------------------------------------------------
   13. Footer
   --------------------------------------------------------- */
.footer {
  margin-top: var(--space-section);
  padding: var(--space-8) 0 var(--space-6);
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}

.footer__brand p {
  font-size: 0.88rem;
  color: var(--color-text-mute);
  margin-top: 12px;
  margin-bottom: 0;
}

.footer__cols {
  display: flex;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.footer__cols h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  margin-bottom: var(--space-4);
}
.footer__cols a {
  display: block;
  font-family: var(--font-body);
  color: var(--color-text-soft);
  font-size: 0.88rem;
  margin-bottom: var(--space-3);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.footer__cols a:hover {
  color: var(--color-text);
}

.footer__bar {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-mute);
}

/* ---------------------------------------------------------
   14. Prose (Article body)
   --------------------------------------------------------- */
.prose {
  max-width: none; /* was 68ch */
  margin: 0 auto;
}
.prose p {
  font-size: var(--fs-base);
  line-height: var(--lh-prose);
  color: var(--color-text-soft);
  margin-bottom: var(--space-5);
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: var(--tracking-snug);
  line-height: var(--lh-snug);
  margin-top: var(--space-8);
  margin-bottom: var(--space-5);
}
.prose h3 {
  font-size: var(--fs-h3);
  color: var(--color-text);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}
.prose ul,
.prose ol {
  padding-left: 1.5rem;
  margin-bottom: var(--space-5);
}
.prose li {
  font-size: var(--fs-base);
  line-height: var(--lh-prose);
  color: var(--color-text-soft);
  margin-bottom: var(--space-2);
}
.prose li::marker {
  color: rgba(255, 255, 255, 0.45);
}
.prose strong {
  font-weight: 600;
  color: var(--color-text);
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary-faint);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* ---------------------------------------------------------
   15. Callout
   --------------------------------------------------------- */
.callout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
}
.callout p {
  color: var(--color-text-soft);
  margin-bottom: 0;
  font-size: 0.97rem;
}
.callout strong {
  color: var(--color-text);
}

/* ---------------------------------------------------------
   16. Decision Grid
   --------------------------------------------------------- */
.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}
@media (max-width: 600px) {
  .decision-grid { grid-template-columns: 1fr; }
}

.decision-box {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
}
.decision-box h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 14px;
  line-height: 1.3;
}
.decision-box ul {
  padding-left: 1.25rem;
  margin: 0;
}
.decision-box li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin-bottom: 7px;
}
.decision-box li::marker {
  color: rgba(255, 255, 255, 0.40);
}

/* ---------------------------------------------------------
   17. Article Header
   --------------------------------------------------------- */
.article-header {
  max-width: none; /* was 720px */
  margin: 0 auto;
  padding-bottom: var(--space-8);
}
.article-header h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  margin-bottom: var(--space-4);
}
.article-breadcrumb a {
  color: var(--color-text-mute);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.article-breadcrumb a:hover {
  color: var(--color-primary-faint);
}
.article-breadcrumb span {
  color: var(--color-border-strong);
}

/* ---------------------------------------------------------
   18. Article CTA block
   --------------------------------------------------------- */
.article-cta {
  text-align: center;
  padding: var(--space-7) var(--space-6);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-xl);
  margin-top: var(--space-8);
}
.article-cta strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------
   19. Scroll animations
   --------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out-soft),
              transform var(--dur-slow) var(--ease-out-soft);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast:   1ms;
    --dur-normal: 1ms;
    --dur-slow:   1ms;
    --dur-exit:   1ms;
  }
  .fade-up {
    opacity: 1;
    transform: none;
  }
  .post-grid .fade-up:nth-child(n) { transition-delay: 0ms; }
}

/* ---------------------------------------------------------
   20. Hero Stats Row
   --------------------------------------------------------- */
.hero__stats {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2) var(--space-7);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  padding-bottom: var(--space-7);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-mute);
  letter-spacing: 0.03em;
  text-align: center;
}
.stat-sep {
  color: var(--color-border-strong);
  font-size: 1rem;
  align-self: center;
  padding-bottom: 20px;
}
@media (max-width: 480px) {
  .stat-sep { display: none; }
}

/* ---------------------------------------------------------
   21. Terminal Card
   --------------------------------------------------------- */
@keyframes terminal-line-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

.terminal-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.terminal-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.03);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot--red    { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.terminal-dot--yellow { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,0.5); }
.terminal-dot--green  { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,0.5); }
.terminal-card__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-mute);
  margin-left: 6px;
}
.terminal-card__body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.terminal-line {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--color-text-soft);
  opacity: 0;
  animation: terminal-line-in 0.35s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.35s);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .terminal-line { opacity: 1; animation: none; }
}
.terminal-prompt { color: rgba(255, 255, 255, 0.45); }
.terminal-success { color: var(--color-success); }
.terminal-warning { color: var(--color-warning); }
.terminal-key   { color: var(--color-text-soft); display: inline-block; min-width: 100px; }
.terminal-value { color: #ffffff; font-weight: 600; font-variant-numeric: tabular-nums; }
.terminal-blank { height: 6px; display: block; }

/* ---------------------------------------------------------
   22. Hero Split Layout (homepage)
   --------------------------------------------------------- */
.hero--split {
  justify-content: space-between;
  gap: 0;
  height: auto;
  min-height: 100dvh;
}
@media (min-width: 900px) {
  .hero--split {
    height: 100dvh;
  }
  .hero--split > .container:first-child {
    flex: 1;
  }
}
.hero--split::before {
  background:
    radial-gradient(ellipse 65% 80% at 5% 50%, rgba(255,255,255,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 90% 25%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.hero--split > .container:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(var(--space-6), 5vw, var(--space-9));
  align-items: center;
  text-align: left;
  padding-top: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(20px, 3vw, 36px);
}
.hero--split .hero__text { max-width: none; /* was 580px */ }
.hero--split h1 {
  margin-left: 0;
  margin-right: 0;
  max-width: none; /* was 18ch */
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.hero--split p  { margin-left: 0; margin-right: 0; max-width: none; }
.hero--split .hero__actions { justify-content: flex-start; gap: var(--space-3); }
.hero--split .eyebrow { margin-bottom: var(--space-4); }
.hero__text h1               { margin-bottom: var(--space-5); }
.hero__text p                { margin-bottom: var(--space-6); }
.hero__text .hero__actions   { margin-top: 0; }
.hero__visual { width: 100%; }

@media (max-width: 900px) {
  .hero--split > .container:first-child {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(32px, 5vw, 56px);
  }
  .hero--split h1,
  .hero--split p  { max-width: none; /* was 680px */ margin-left: auto; margin-right: auto; }
  .hero--split h1 { max-width: none; /* was 680px */ }
  .hero--split .hero__actions { justify-content: center; }
  .hero__visual { max-width: none; /* was 480px */ margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero--split .hero__visual { display: none; }
}

/* ---------------------------------------------------------
   23. Featured Article Card
   --------------------------------------------------------- */
.featured-card {
  display: block;
  padding: var(--space-7) var(--space-6);
  margin-bottom: var(--space-6);
  text-decoration: none !important;
  border-top: 2px solid rgba(255, 255, 255, 0.40);
}
.featured-card:hover {
  border-top-color: rgba(255, 255, 255, 0.70);
}
.featured-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.featured-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-mute);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.featured-card h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.featured-card h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity var(--dur-fast) var(--ease-out-soft);
}
.featured-card h2 a:hover,
.featured-card:hover h2 a {
  opacity: 0.80;
}
.featured-card p {
  font-size: 1rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: none; /* was 680px */
  margin-bottom: 1.25rem;
}

/* ---------------------------------------------------------
   24. CTA Section
   --------------------------------------------------------- */
.cta-section {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-card {
  text-align: center;
  max-width: none; /* was 680px */
  margin: 0 auto;
}
.cta-card .eyebrow { margin-bottom: 1.25rem; }
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin-bottom: var(--space-6);
}
.cta-card__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   25. Footer — no top margin variant
   --------------------------------------------------------- */
.footer--flush { margin-top: 0; }

/* ---------------------------------------------------------
   26. Cookie banner (injected by main.js)
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: var(--space-5);
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1000;
  width: min(92vw, 540px);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  transition: transform var(--dur-slow) var(--ease-out-soft);
}
.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}
.cookie-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px;
}
.cookie-banner__icon {
  flex-shrink: 0;
  color: var(--color-warning);
  margin-top: 2px;
}
.cookie-banner__text {
  flex: 1;
  min-width: 0;
}
.cookie-banner__title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.cookie-banner__text p {
  font-size: 0.82rem;
  color: var(--color-text-mute);
  margin: 0;
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--color-primary-faint);
}
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease-out-soft),
              transform var(--dur-normal) var(--ease-out-spring);
  white-space: nowrap;
}
.cookie-btn--accept {
  background: #ffffff;
  color: #0a1628;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}
.cookie-btn--accept:hover {
  background: #e8f0ff;
  transform: translateY(-1px);
}
.cookie-btn--dismiss {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
}
.cookie-btn--dismiss:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-text);
}

/* ---------------------------------------------------------
   27. Scroll Indicator
   --------------------------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-mute);
  z-index: 1;
  animation: scroll-bounce 2.4s ease-in-out infinite;
  cursor: default;
}
.scroll-indicator svg {
  width: 22px;
  height: 22px;
}
@keyframes scroll-bounce {
  0%, 100% { opacity: 0.45; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.85; transform: translateX(-50%) translateY(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; opacity: 0.5; }
}

/* ---------------------------------------------------------
   28. Article Hero
   --------------------------------------------------------- */
.article-hero {
  justify-content: center;
}
.article-hero .article-header {
  padding-bottom: 0;
  text-align: center;
}
.article-hero .article-header h1 {
  font-size: var(--fs-h1);
  max-width: none; /* was 22ch */
  margin-left: auto;
  margin-right: auto;
}
.article-hero .article-breadcrumb {
  justify-content: center;
}
.article-hero .post-meta {
  justify-content: center;
}

/* ---------------------------------------------------------
   29. Reading progress bar
   --------------------------------------------------------- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #ffffff;
  z-index: 200;
  transition: width 0.1s linear;
  opacity: 0.70;
}

/* ---------------------------------------------------------
   30. Screen-reader only utility
   --------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------
   31. Subscribe form
   --------------------------------------------------------- */
.subscribe-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--color-border-strong);
  border-top: 2px solid rgba(255, 255, 255, 0.40);
  border-radius: var(--radius-xl);
  padding: var(--space-7) var(--space-8);
  box-shadow: var(--shadow-panel);
}
@media (max-width: 768px) {
  .subscribe-card {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-6);
  }
}

.subscribe-card__content .eyebrow { margin-bottom: var(--space-4); }
.subscribe-card__content h2       { margin-bottom: var(--space-3); }
.subscribe-card__content p        { color: var(--color-text-soft); margin-bottom: 0; }

.subscribe-form__row {
  display: flex;
  gap: var(--space-2);
}
@media (max-width: 480px) {
  .subscribe-form__row { flex-direction: column; }
}

.subscribe-input {
  flex: 1;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-5);
  color: var(--color-text);
  min-height: 44px;
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out-soft),
              background var(--dur-fast) var(--ease-out-soft),
              box-shadow var(--dur-fast) var(--ease-out-soft);
}
.subscribe-input::placeholder { color: var(--color-text-mute); }
.subscribe-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.10);
}
.subscribe-input.is-error { border-color: rgba(239, 68, 68, 0.65); }

.subscribe-form__note {
  font-size: var(--fs-xs);
  color: var(--color-text-mute);
  margin-top: var(--space-3);
  margin-bottom: 0;
}
.subscribe-form__feedback {
  font-size: var(--fs-sm);
  margin-top: var(--space-3);
  min-height: 1.2em;
  margin-bottom: 0;
}
.subscribe-form__feedback.is-success { color: var(--color-success); }
.subscribe-form__feedback.is-error   { color: #ef4444; }

/* =========================================================
   Animations — cycling hero text + scroll showcase
   ========================================================= */

/* ── Cycling hero text ──────────────────────────────────── */
.hero-cycle-wrap {
  display: block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
  margin-top: 0.1em;
}

.hero-cycle-word {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  color: var(--color-success);
  opacity: 0;
  transform: translateY(100%);
  will-change: transform, opacity;
}

/* JS adds/removes these classes to drive the animation */
.hero-cycle-word.is-entering {
  opacity: 1;
  transform: translateY(0%);
  transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-cycle-word.is-exiting {
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 280ms cubic-bezier(0.4, 0, 1, 1),
              transform 280ms cubic-bezier(0.4, 0, 1, 1);
}

/* ── Scroll Showcase (ContainerScroll equivalent) ────────── */
.scroll-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56rem;
  padding: var(--space-section) 0;
  overflow: hidden;
}

.scroll-showcase__inner {
  width: 100%;
  max-width: none; /* was 64rem */
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.scroll-showcase__header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.scroll-showcase__header h2 {
  font-size: var(--fs-h1);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  color: var(--color-text);
  margin-top: var(--space-3);
  margin-bottom: 0;
}

.scroll-showcase__card {
  will-change: transform;
  transform: perspective(1000px) rotateX(20deg) scale(1.05);
  transform-origin: center top;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(108, 108, 108, 0.45);
  background: #1a2540;
  padding: var(--space-3);
  box-shadow:
    0 0 #0000004d,
    0 9px 20px #0000004a,
    0 37px 37px #00000042,
    0 84px 50px #00000026,
    0 149px 60px #0000000a;
}

.scroll-showcase__card-inner {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

/* Suppress entry animation on the showcase copy so lines appear instantly */
.terminal-card--instant .terminal-line {
  opacity: 1;
  animation: none;
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-cycle-word {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cycle-word.is-entering,
  .hero-cycle-word:first-child {
    display: inline;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-cycle-word.is-exiting {
    display: none;
  }
  .scroll-showcase__card {
    transform: none !important;
  }
  .scroll-showcase__header {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Telegram floating contact bubble ───────────────────── */
@keyframes tg-pulse {
  0%   { transform: scale(0.92); opacity: 0.8; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

.tg-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}

.tg-bubble__label {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 7px 13px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 200ms var(--ease-out-soft),
              transform 200ms var(--ease-out-soft);
  pointer-events: none;
  box-shadow: var(--shadow-panel);
}

.tg-bubble__icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #229ED9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(34, 158, 217, 0.5),
              0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-normal) var(--ease-out-spring),
              box-shadow var(--dur-normal) var(--ease-out-soft);
}

.tg-bubble__icon::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(34, 158, 217, 0.55);
  animation: tg-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

.tg-bubble:hover .tg-bubble__label,
.tg-bubble:focus-visible .tg-bubble__label {
  opacity: 1;
  transform: translateX(0);
}

.tg-bubble:hover .tg-bubble__icon,
.tg-bubble:focus-visible .tg-bubble__icon {
  transform: scale(1.1);
  box-shadow: 0 6px 26px rgba(34, 158, 217, 0.70),
              0 2px 8px rgba(0, 0, 0, 0.4);
}

.tg-bubble:focus-visible {
  outline: 2px solid #229ED9;
  outline-offset: 4px;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .tg-bubble {
    bottom: 20px;
    right: 20px;
  }
  .tg-bubble__icon {
    width: 50px;
    height: 50px;
  }
  .tg-bubble__label {
    display: none; /* avoid overflow on small screens */
  }
}

@media (prefers-reduced-motion: reduce) {
  .tg-bubble__icon::before { animation: none; }
  .tg-bubble,
  .tg-bubble__icon {
    transition: none;
  }
}

/* ---------------------------------------------------------
   32. Spline 3D card (scroll-showcase inner — split layout)
   --------------------------------------------------------- */

/* Override the base card-inner defaults for the Spline variant */
.scroll-showcase__card-inner.spline-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

/* ── Aceternity Spotlight (ported from spotlight.tsx) */
.spline-spotlight {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  top: -40px;
  left: 0;
  height: 169%;
  width: 138%;
  opacity: 0;
  animation: spline-spotlight-in 2s ease 0.75s 1 forwards;
}

@keyframes spline-spotlight-in {
  0%   { opacity: 0; transform: translate(-72%, -62%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -40%) scale(1); }
}

/* ── Left copy panel */
.spline-card__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(var(--space-6), 5%, var(--space-10));
  position: relative;
  z-index: 2;
}

.spline-card__copy .eyebrow {
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-4);
}

.spline-card__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-4);
  background: linear-gradient(to bottom, #f5f5f5 20%, rgba(180, 180, 180, 0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spline-card__copy p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  max-width: none; /* was 34ch */
  margin-bottom: var(--space-6);
}

/* ── Right Spline canvas */
.spline-card__scene {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: default;
}
.spline-card__scene spline-viewer {
  cursor: default !important;
}

/* ── Mobile: stack vertically */
@media (max-width: 720px) {
  .scroll-showcase__card-inner.spline-card {
    flex-direction: column;
    height: auto;
  }
  .spline-card__copy {
    padding: var(--space-6) var(--space-5);
  }
  .spline-card__copy p {
    max-width: none;
  }
  .spline-card__scene {
    height: 260px;
  }
}

/* ── Reduced motion: skip spotlight animation, show at final state */
@media (prefers-reduced-motion: reduce) {
  .spline-spotlight {
    animation: none;
    opacity: 0.5;
    transform: translate(-50%, -40%) scale(1);
  }
  .tg-bubble__label { transition: none; }
}



/* =========================================================
   Glass Button (Liquid Glass) — Dark blend
   ========================================================= */

.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  isolation: isolate;
  border: none;
  background: transparent;
  color: var(--color-text);
  letter-spacing: -0.01em;
  -webkit-tap-highlight-color: transparent;
}

.glass-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 1px 2px 0 -1px rgba(255, 255, 255, 0.25),
    inset -1px -2px 0 -1px rgba(255, 255, 255, 0.15),
    inset -2px -6px 1px -4px rgba(255, 255, 255, 0.10),
    inset -0.3px -1px 3px 0 rgba(0, 0, 0, 0.20),
    inset -1px 2px 0 -1px rgba(0, 0, 0, 0.25),
    inset 0 2px 3px -1px rgba(0, 0, 0, 0.25),
    inset 2px -5px 1px -3px rgba(0, 0, 0, 0.15),
    0 1px 4px 0 rgba(0, 0, 0, 0.15),
    0 6px 14px 0 rgba(0, 0, 0, 0.10);
  transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1), box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
  z-index: -1;
}

.glass-btn--primary::before {
  background: rgba(255, 255, 255, 0.07);
}

.glass-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  opacity: 0.08;
  z-index: -1;
  pointer-events: none;
  filter: url(#liquid-glass-filter);
}

.glass-btn__text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(10, 22, 40, 0.30);
}

.glass-btn__icon {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}

/* Sizes */
.glass-btn--default {
  padding: 14px 24px;
  font-size: 1rem;
}
.glass-btn--sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}
.glass-btn--lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* Hover */
@media (hover: hover) {
  .glass-btn:hover {
    transform: scale(1.03);
  }
  .glass-btn:hover::before {
    background: rgba(255, 255, 255, 0.10);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.12),
      inset 1px 2px 0 -1px rgba(255, 255, 255, 0.45),
      inset -1px -2px 0 -1px rgba(255, 255, 255, 0.30),
      0 2px 8px 0 rgba(0, 0, 0, 0.20),
      0 8px 22px 0 rgba(0, 0, 0, 0.12);
  }
}

.glass-btn:active {
  transform: scale(0.96);
}

/* Disabled */
.glass-btn:disabled,
.glass-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* SVG filter — injected once via JS */
.glass-svg-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Remove old btn styles */
.btn--primary,
.btn--ghost {
  all: unset;
}

/* =========================================================
   Telegram Contact Widget
   ========================================================= */

.tg-contact-widget {
  max-width: 540px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-panel);
}

.tg-contact-widget__avatar {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #2AABEE, #229ED9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.tg-contact-widget__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: #000;
  margin: 0 0 var(--space-1);
  letter-spacing: var(--tracking-snug);
}

.tg-contact-widget__phone {
  font-size: var(--fs-base);
  color: var(--color-text-mute);
  margin: 0 0 var(--space-5);
  font-family: var(--font-body);
}

.tg-contact-widget__cta {
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 14px 0;
  background: #2AABEE;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 200ms ease;
}

.tg-contact-widget__cta:hover {
  background: #1d8ed4;
}

.tg-contact-widget__note {
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  color: var(--color-text-mute);
  line-height: var(--lh-body);
}
/* =========================================================
   Social Ticker — live feed of latest posts
   ========================================================= */

.ticker-bar {
  position: sticky;
  top: 72px; /* below nav */
  z-index: 50;
  background: rgba(13, 28, 53, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  height: 44px;
  display: flex;
  align-items: center;
}

.ticker-bar::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 60px; height: 100%;
  background: linear-gradient(to right, rgba(10,22,40,0.95) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ticker-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 0;
  width: 100px; height: 100%;
  background: linear-gradient(to left, rgba(10,22,40,0.95) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ticker-bar__label {
  position: absolute;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  opacity: 0.8;
  pointer-events: none;
  white-space: nowrap;
}

.ticker-bar__label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: ticker-pulse 2s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker-scroll 180s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 44px;
  border-right: 1px solid rgba(255,255,255,0.06);
  color: var(--color-text-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
  flex-shrink: 0;
}

.ticker-item:hover {
  color: var(--color-text);
}

.ticker-item__platform {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.ticker-item__platform--facebook {
  background: rgba(24,119,242,0.15);
  color: #1877f2;
}

.ticker-item__platform--linkedin {
  background: rgba(10,102,194,0.15);
  color: #0a66c2;
}

.ticker-item__platform--x {
  background: rgba(255,255,255,0.1);
  color: var(--color-text-soft);
}

.ticker-item__text {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 380px;
  white-space: nowrap;
  opacity: 0.8;
}

.ticker-item__date {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-text-mute);
  flex-shrink: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .ticker-bar { top: 60px; height: 38px; }
  .ticker-item { height: 38px; padding: 0 16px; font-size: 0.72rem; }
  .ticker-item__text { max-width: 200px; }
  .ticker-bar__label { left: 10px; font-size: 0.6rem; }
}


/* ── Article layout enhancements (Jun 2026) ────────────────── */

/* Pull quote — highlight a key sentence from the article */
.pull-quote {
  margin: var(--space-6) 0;
  padding: var(--space-5) var(--space-5);
  border-left: 3px solid var(--color-primary);
  background: linear-gradient(90deg, rgba(58,184,255,0.04), rgba(255,255,255,0.01));
  border-radius: 0 8px 8px 0;
  position: relative;
}
.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.4;
  line-height: 1;
}
.pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--color-text);
}

/* Tag pills — extract hashtags from posts */
.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-5) 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.tag-pill {
  display: inline-block;
  padding: 0.3em 0.8em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-primary-faint);
  background: rgba(58,184,255,0.08);
  border: 1px solid rgba(58,184,255,0.15);
  border-radius: 100px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.15s, border-color 0.15s;
}
.tag-pill:hover {
  background: rgba(58,184,255,0.15);
  border-color: rgba(58,184,255,0.3);
}

/* Share buttons */
.share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.share-bar__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: var(--space-2);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0.9em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-soft);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
}
.share-btn:hover {
  color: var(--color-text);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
}
.share-btn svg { width: 14px; height: 14px; }

/* Related articles — show 3 other recent posts */
.related-articles {
  margin: var(--space-7) 0;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.related-articles__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary-faint);
  margin-bottom: var(--space-4);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 760px) {
  .related-grid { grid-template-columns: 1fr; }
}
.related-card {
  padding: var(--space-4);
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transition: all 0.15s;
  min-height: 110px;
}
.related-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(58,184,255,0.2);
  transform: translateY(-1px);
}
.related-card__date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-card__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Author byline — replace weak "Originally posted on X" */
.byline-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  padding: var(--space-4);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
}
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #6ee7b7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: #0a1628;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.byline-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.byline-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.92rem;
}
.byline-role {
  font-size: 0.78rem;
  color: var(--color-text-soft);
}

/* Replace weak "Originally posted on X" with stronger CTA */
.article-cta--strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.article-cta--strong strong {
  flex: 1;
  min-width: 200px;
}

/* Wider article max-width to make use of screen */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p {
  font-size: 1.05rem;
  line-height: 1.7;
}
.prose h1 + p, .prose h2 + p, .prose h3 + p {
  margin-top: var(--space-3);
}

/* Article hero — better default padding */
.article-hero {
  padding-top: 2rem;
  padding-bottom: 1.5rem;
}
.article-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}
