/**
 * enhancements.css
 * Noir Editorial Design Layer — layers on top of main.css, pages.css, commerce.css
 * Poppins · Monochromatic · Ultra-premium
 */

/* ==========================================================================
   A. Motion & Accessibility Foundation
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   B. Design Token Upgrades
   ========================================================================== */

:root {
  --color-background: #FAFAF9;
  --color-background-alt: #F3F2F0;
  --color-surface: #FFFFFF;
  --shadow-card: 0 1px 3px rgba(0,0,0,.04), 0 6px 16px rgba(0,0,0,.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  --shadow-float: 0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.10);
  --motion-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --motion-entrance: cubic-bezier(0, 0, 0.2, 1);
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --tracking-display: -0.04em;
  --tracking-headline: -0.03em;
  --space-2xs: clamp(0.25rem, 0.2rem + 0.25vw, 0.375rem);
  --border-hair: 1px solid rgba(0,0,0,.08);
  --border-card: 1px solid rgba(0,0,0,.06);
}

[data-theme="dark"] {
  --color-background: #0C0C0C;
  --color-background-alt: #141414;
  --color-surface: #1A1A1A;
  --shadow-card: 0 1px 3px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.4);
  --shadow-hover: 0 12px 40px rgba(0,0,0,.6);
  --border-hair: 1px solid rgba(255,255,255,.08);
  --border-card: 1px solid rgba(255,255,255,.06);
}

/* ==========================================================================
   C. Scroll Anchors
   ========================================================================== */

section[id],
[id] {
  scroll-margin-top: 88px;
}

/* ==========================================================================
   D. Body & Selection
   ========================================================================== */

::selection {
  background: #212529;
  color: #fff;
}

::-moz-selection {
  background: #212529;
  color: #fff;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #CED4DA transparent;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #CED4DA;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ADB5BD;
}

/* ==========================================================================
   E. Skip Link Enhancement
   ========================================================================== */

.skip-link {
  position: fixed;
  top: -100%;
  left: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transform: translateY(-4px);
  opacity: 0;
  transition: top 0s 0.3s, transform 0.25s ease, opacity 0.25s ease;
  outline: none;
}

.skip-link:focus {
  top: 0;
  transform: translateY(0);
  opacity: 1;
  transition: top 0s, transform 0.25s ease, opacity 0.25s ease;
}

/* ==========================================================================
   F. Header Enhancements
   ========================================================================== */

.header--scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.1), 0 1px 4px rgba(0,0,0,.06);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .header--scrolled {
  background: rgba(12,12,12,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.5), 0 1px 4px rgba(0,0,0,.3);
}

.header__nav-link {
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s var(--motion-standard);
  border-radius: 1px;
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

.header__nav-link.is-active::after {
  transform: scaleX(1);
}

/* Mobile nav open state */
@media (max-width: 1024px) {
  .header__nav.is-open {
    max-height: 600px;
    opacity: 1;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .header__nav {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--motion-entrance), opacity 0.3s ease;
  }

  .header__nav.is-open .header__nav-list li:nth-child(1)  { animation-delay: 0.04s; }
  .header__nav.is-open .header__nav-list li:nth-child(2)  { animation-delay: 0.08s; }
  .header__nav.is-open .header__nav-list li:nth-child(3)  { animation-delay: 0.12s; }
  .header__nav.is-open .header__nav-list li:nth-child(4)  { animation-delay: 0.16s; }
  .header__nav.is-open .header__nav-list li:nth-child(5)  { animation-delay: 0.20s; }
  .header__nav.is-open .header__nav-list li:nth-child(6)  { animation-delay: 0.24s; }
  .header__nav.is-open .header__nav-list li:nth-child(7)  { animation-delay: 0.28s; }
  .header__nav.is-open .header__nav-list li:nth-child(8)  { animation-delay: 0.32s; }
  .header__nav.is-open .header__nav-list li:nth-child(9)  { animation-delay: 0.36s; }
  .header__nav.is-open .header__nav-list li:nth-child(10) { animation-delay: 0.40s; }
  .header__nav.is-open .header__nav-list li:nth-child(11) { animation-delay: 0.44s; }

  .header__nav.is-open .header__nav-list li {
    animation: nav-item-in 0.3s var(--motion-entrance) both;
  }

  @keyframes nav-item-in {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}

/* CTA link — premium bordered look */
.header__nav-link--cta {
  background: transparent;
  border: 1.5px solid currentColor;
  padding: 6px 16px;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header__nav-link--cta::after {
  display: none;
}

.header__nav-link--cta:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

[data-theme="dark"] .header__nav-link--cta:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* ==========================================================================
   G. Hero Enhancements
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
}

/* Subtle dot grid background */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::after {
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
}

.hero__container {
  position: relative;
  z-index: 1;
}

.hero__title {
  letter-spacing: var(--tracking-display);
  line-height: 1.05;
}

.hero__subtitle {
  max-width: 560px;
  color: var(--grey-600, #6C757D);
}

.hero__cta .btn--primary {
  padding: 14px 32px;
  font-weight: 600;
}

.hero__cta .btn--secondary {
  padding: 13px 28px;
  font-weight: 500;
  border: 1.5px solid var(--grey-300, #DEE2E6);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hero__cta .btn--secondary:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

/* SVG Noise/Grain overlay — subtle texture for visual richness */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ==========================================================================
   H. Section Header Decoration
   ========================================================================== */

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--grey-400, #CED4DA);
  margin-right: 10px;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 1px;
}

.section__title {
  letter-spacing: var(--tracking-headline);
}

.section__header {
  padding-bottom: var(--space-lg, 2rem);
  border-bottom: 1px solid var(--color-border-light, rgba(0,0,0,.06));
}

/* ==========================================================================
   I. Button Enhancements
   ========================================================================== */

.btn {
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

/* Sheen sweep effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,.15) 50%,
    transparent 80%
  );
  transform: skewX(-15deg) translateX(-150%);
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

.btn:hover::before {
  transform: skewX(-15deg) translateX(350%);
  transition: transform 0.6s ease;
}

.btn--primary {
  box-shadow: 0 2px 8px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.10);
}

.btn--primary:hover {
  background: #111;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

[data-theme="dark"] .btn--primary:hover {
  background: #e0e0e0;
}

.btn--secondary {
  border: 1.5px solid var(--grey-300, #DEE2E6);
}

.btn--secondary:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

[data-theme="dark"] .btn--secondary:hover {
  border-color: #fff;
  background: #fff;
  color: #111;
}

.btn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

[data-theme="dark"] .btn:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   J. Form Enhancements
   ========================================================================== */

input[type="email"],
input[type="text"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  font-size: var(--font-size-sm, 0.875rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text, #212529);
  background: var(--color-surface, #fff);
  border: 1.5px solid var(--color-border, #DEE2E6);
  border-radius: var(--radius-md, 8px);
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

input[type="email"]:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
textarea:hover,
select:hover {
  border-color: var(--grey-400, #ADB5BD);
}

input[type="email"]:focus,
input[type="email"]:focus-visible,
input[type="text"]:focus,
input[type="text"]:focus-visible,
input[type="password"]:focus,
input[type="password"]:focus-visible,
input[type="search"]:focus,
input[type="search"]:focus-visible,
textarea:focus,
textarea:focus-visible,
select:focus,
select:focus-visible {
  outline: none;
  border-color: var(--color-primary, #212529);
  box-shadow: 0 0 0 3px rgba(33,37,41,.08);
}

input[type="email"]::placeholder,
input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
textarea::placeholder {
  color: var(--grey-400, #ADB5BD);
}

input[type="email"]:invalid:not(:placeholder-shown),
input[type="text"]:invalid:not(:placeholder-shown),
input[type="password"]:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

input[type="email"]:valid:not(:placeholder-shown),
input[type="text"]:valid:not(:placeholder-shown) {
  border-color: var(--grey-400, #ADB5BD);
}

/* Newsletter form field wrapper */
.newsletter-form__field {
  position: relative;
  flex: 1 1 auto;
}

.newsletter-form__field:focus-within::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid rgba(33,37,41,.12);
  border-radius: calc(var(--radius-md, 8px) + 3px);
  pointer-events: none;
  animation: field-focus-ring 0.2s ease forwards;
}

@keyframes field-focus-ring {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* Newsletter row */
.newsletter-form__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

/* Newsletter status messages */
.newsletter-form__status {
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.4;
  min-height: 20px;
}

.newsletter-form__status--success {
  color: #198754;
}

.newsletter-form__status--error {
  color: #dc3545;
}

/* Newsletter button loading state */
.newsletter-btn {
  position: relative;
}

.newsletter-btn--loading .newsletter-btn__text {
  opacity: 0;
}

.newsletter-btn--loading .newsletter-btn__loading {
  display: inline-flex;
}

.newsletter-btn__loading {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Footer newsletter form */
.footer__newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-sm, 0.75rem);
}

.footer__newsletter-input {
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(255,255,255,.15);
  color: #F0F0F0;
}

.footer__newsletter-input:hover {
  border-color: rgba(255,255,255,.3);
}

.footer__newsletter-input:focus,
.footer__newsletter-input:focus-visible {
  border-color: rgba(255,255,255,.6);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.footer__newsletter-input::placeholder {
  color: rgba(255,255,255,.35);
}

[data-theme="dark"] .footer__newsletter-input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}

/* ==========================================================================
   K. Card Enhancements
   ========================================================================== */

.venture-card,
.platform-card {
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease, border-color 0.2s ease;
}

.venture-card:hover,
.platform-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,0,0,.12);
}

[data-theme="dark"] .venture-card:hover,
[data-theme="dark"] .platform-card:hover {
  border-color: rgba(255,255,255,.12);
}

.recognition-badge {
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease;
}

.recognition-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Journal cards */
.journal-card {
  background: var(--color-surface);
  border: var(--border-card);
  contain: layout style;
}

.journal-card::after {
  background: var(--grey-400, #ADB5BD);
}

/* ==========================================================================
   L. Radial Ring Improvements
   ========================================================================== */

.radial-ring__fill {
  stroke-width: 3;
  stroke-linecap: round;
}

.radial-card {
  box-shadow: var(--shadow-card);
  border: var(--border-card);
  padding: 1.5rem;
  border-radius: var(--radius-lg, 12px);
  transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease;
}

.radial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.radial-card__label {
  font-weight: 600;
  letter-spacing: -0.02em;
}

.radial-ring__value {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  letter-spacing: -0.04em;
}

/* ==========================================================================
   M. Store Section Enhancements
   ========================================================================== */

.store-card {
  border: var(--border-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease, border-color 0.2s ease;
}

.store-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: rgba(0,0,0,.1);
}

[data-theme="dark"] .store-card:hover {
  border-color: rgba(255,255,255,.12);
}

.store-card__badge {
  background: #111;
  color: #fff;
  border-radius: var(--radius-sm, 4px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
}

.store-card__price {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.store-banner {
  background: linear-gradient(135deg, var(--color-background-alt) 0%, var(--color-surface) 100%);
  box-shadow: var(--shadow-card);
  border: var(--border-card);
}

/* ==========================================================================
   N. Section-specific Improvements
   ========================================================================== */

/* Impact Dashboard */
.impact-dashboard {
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-alt) 100%);
}

/* Partners Marquee — fade-out edges */
.partners__marquee {
  position: relative;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

/* How I Work / Approach — domain tags */
.domain-tag {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.domain-tag:hover {
  background: rgba(255,255,255,.15);
}

/* Journal section */
.journal .journal-card {
  background: var(--color-surface);
  border: var(--border-card);
}

/* Recognition section */
.recognition-badge__icon {
  background: var(--color-background-alt);
  border-radius: var(--radius-md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.recognition-badge:hover .recognition-badge__icon {
  background: var(--color-border-light, rgba(0,0,0,.06));
}

/* Newsletter section */
.newsletter-section {
  background: #111 !important;
  color: #fff;
}

.newsletter-section .mesh-bg,
.newsletter-section.mesh-bg {
  background: #111 !important;
}

.newsletter-section .mesh-bg::before,
.newsletter-section.mesh-bg::before {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.02) 0%, transparent 60%);
}

.newsletter-section .section__label {
  color: rgba(255,255,255,.5);
}

.newsletter-section .section__label::before {
  background: rgba(255,255,255,.3);
}

.newsletter-section .newsletter-title,
.newsletter-section h2 {
  color: #fff;
}

.newsletter-section .newsletter-description,
.newsletter-section p {
  color: rgba(255,255,255,.65);
}

.newsletter-section input[type="email"],
.newsletter-section .newsletter-input {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.newsletter-section input[type="email"]:hover,
.newsletter-section .newsletter-input:hover {
  border-color: rgba(255,255,255,.4);
}

.newsletter-section input[type="email"]:focus,
.newsletter-section .newsletter-input:focus {
  border-color: rgba(255,255,255,.7);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}

.newsletter-section input[type="email"]::placeholder,
.newsletter-section .newsletter-input::placeholder {
  color: rgba(255,255,255,.35);
}

/* CTA / Collaborate section */
.coming-next {
  border-top: 1px solid rgba(0,0,0,.06);
}

[data-theme="dark"] .coming-next {
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ==========================================================================
   O. Footer Enhancements
   ========================================================================== */

.footer {
  background: #0D0D0D;
  color: #F0F0F0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.footer__nav-title {
  color: rgba(255,255,255,.4);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer__nav-list a {
  color: rgba(255,255,255,.65);
  font-size: 14px;
  transition: color 0.15s ease;
  padding: 4px 0;
  display: block;
}

.footer__nav-list a:hover {
  color: #fff;
}

.footer__tagline {
  color: rgba(255,255,255,.4);
  font-size: 14px;
}

.footer__name {
  display: block;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  margin-top: 12px;
}

.footer__copyright {
  color: rgba(255,255,255,.3);
  font-size: 13px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: var(--space-md, 1.5rem);
  margin-top: var(--space-xl, 3rem);
}

.footer__social a {
  color: rgba(255,255,255,.5);
  transition: color 0.15s ease;
}

.footer__social a:hover {
  color: #fff;
}

/* ==========================================================================
   P. Floating Newsletter Enhancement
   ========================================================================== */

.newsletter-float {
  --float-bg: #fff;
  background: var(--float-bg);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-xl, 16px);
  max-width: 340px;
}

[data-theme="dark"] .newsletter-float {
  --float-bg: #1A1A1A;
  border-color: rgba(255,255,255,.1);
}

.newsletter-float__icon {
  width: 48px;
  height: 48px;
  background: #111;
  color: #fff;
  border-radius: var(--radius-md, 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm, 0.75rem);
}

.newsletter-float__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.newsletter-float__title {
  font-size: var(--font-size-lg, 1.125rem);
  font-weight: 700;
  letter-spacing: var(--tracking-headline);
}

/* ==========================================================================
   Q. Gradient Text
   ========================================================================== */

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--color-text, #212529) 0%,
    var(--grey-700, #495057) 50%,
    var(--color-text, #212529) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

[data-theme="dark"] .gradient-text {
  background: linear-gradient(
    135deg,
    #FFFFFF 0%,
    var(--grey-400, #CED4DA) 50%,
    #FFFFFF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ==========================================================================
   R. Mesh Background Enhancement
   ========================================================================== */

.mesh-bg {
  position: relative;
  background-color: var(--color-background);
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(90,101,112,.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 15%, rgba(110,122,133,.04) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 85%, rgba(74,82,96,.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.mesh-bg > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   S. Hover Lift & Glow (enhanced)
   ========================================================================== */

.hover-lift {
  transition: transform 0.35s var(--motion-spring), box-shadow 0.35s ease !important;
}

.hover-lift:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-hover) !important;
}

.glow-border {
  border: 1px solid var(--color-border-light, rgba(0,0,0,.06));
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}

.glow-border:hover {
  border-color: var(--grey-400, #ADB5BD);
  box-shadow: 0 0 0 1px var(--grey-300, #DEE2E6), var(--shadow-hover);
}

[data-theme="dark"] .glow-border:hover {
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), var(--shadow-hover);
}

/* ==========================================================================
   T. Print Styles
   ========================================================================== */

@media print {
  .header,
  .newsletter-float,
  .newsletter-trigger,
  .footer__social {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  a {
    text-decoration: underline;
  }

  .section {
    padding-block: 1rem;
    break-inside: avoid;
  }
}

/* ==========================================================================
   U. Loading States
   ========================================================================== */

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn--loading::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: auto;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ==========================================================================
   V. Focus Visible System
   ========================================================================== */

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary, #212529);
  outline-offset: 3px;
  border-radius: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary, #212529);
  outline-offset: 3px;
}

[data-theme="dark"] :focus-visible,
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible {
  outline-color: #fff;
}

/* ==========================================================================
   W. Section Transition Lines
   ========================================================================== */

.section + .section {
  border-top: 1px solid var(--color-border-light, rgba(0,0,0,.06));
}

[data-theme="dark"] .section + .section {
  border-top: 1px solid rgba(255,255,255,.05);
}

/* Exceptions */
.section.mesh-bg + .section,
.section.coming-next + .section {
  border-top: none;
}

/* ==========================================================================
   Additional polish: sr-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-width: 0;
}
