/* ============================================================
   RLW — RYAN LEE WALKER PERSONAL BRAND WEBSITE
   Design System: Defense-Tech Authority · Light Theme
   Inspired by: Palantir, Anduril, SpaceX
   ============================================================ */

/* ——————————————————————————————
   1. CSS CUSTOM PROPERTIES
—————————————————————————————— */
:root {
  /* Brand Colors */
  --cyan:          #12C2FF;
  --cyan-dim:      #0DA8E0;
  --cyan-glow:     rgba(18, 194, 255, 0.15);
  --cyan-border:   rgba(18, 194, 255, 0.3);

  /* Neutrals */
  --black:         #0A0A0A;
  --gray-900:      #111111;
  --gray-800:      #1A1A1A;
  --gray-700:      #2D2D2D;
  --gray-600:      #444444;
  --gray-500:      #69707A;
  --gray-400:      #9AA0A8;
  --gray-300:      #C4C9D0;
  --gray-200:      #E2E6EA;
  --gray-100:      #F0F2F5;
  --gray-50:       #F8FAFB;
  --white:         #FFFFFF;

  /* Typography */
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', Consolas, monospace;

  /* Font Sizes (fluid) */
  --text-xs:       0.6875rem;  /* 11px */
  --text-sm:       0.8125rem;  /* 13px */
  --text-base:     1rem;       /* 16px */
  --text-lg:       1.125rem;   /* 18px */
  --text-xl:       1.25rem;    /* 20px */
  --text-2xl:      1.5rem;     /* 24px */
  --text-3xl:      1.875rem;   /* 30px */
  --text-4xl:      2.25rem;    /* 36px */
  --text-5xl:      3rem;       /* 48px */
  --text-6xl:      3.75rem;    /* 60px */
  --text-7xl:      4.5rem;     /* 72px */
  --text-8xl:      6rem;       /* 96px */

  /* Spacing */
  --space-1:       0.25rem;
  --space-2:       0.5rem;
  --space-3:       0.75rem;
  --space-4:       1rem;
  --space-5:       1.25rem;
  --space-6:       1.5rem;
  --space-8:       2rem;
  --space-10:      2.5rem;
  --space-12:      3rem;
  --space-16:      4rem;
  --space-20:      5rem;
  --space-24:      6rem;
  --space-32:      8rem;

  /* Layout */
  --navbar-h:      68px;
  --sidebar-w:     220px;
  --content-max:   920px;
  --page-max:      1440px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:      cubic-bezier(0, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration:      250ms;
  --duration-slow: 400ms;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.1);
  --shadow-cyan:   0 0 24px rgba(18,194,255,0.2);

  /* Borders */
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --radius-xl:     16px;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Selection */
::selection {
  background: var(--cyan-glow);
  color: var(--black);
}


/* ——————————————————————————————
   3. TYPOGRAPHY
—————————————————————————————— */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
}

p {
  color: var(--gray-600);
  line-height: 1.75;
}

.text-cyan {
  color: var(--cyan);
}

.text-mono {
  font-family: var(--font-mono);
}


/* ——————————————————————————————
   4. BUTTONS
—————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--black);
  color: var(--white);
  border: 1.5px solid var(--black);
}

.btn--primary:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--black);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}

.btn--outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid transparent;
}

.btn--ghost:hover {
  color: var(--black);
  border-color: var(--gray-200);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
}

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


/* ——————————————————————————————
   5. TAGS / BADGES
—————————————————————————————— */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.tag--cyan {
  background: var(--cyan-glow);
  color: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
}

.tag--outline {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-200);
}

.tag--small {
  font-size: 10px;
  padding: 0.2rem 0.5rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}


/* ——————————————————————————————
   6. TOP NAVIGATION BAR (mobile-only on desktop)
—————————————————————————————— */

/* Desktop: hide the navbar entirely — sidebar handles navigation */
.navbar--mobile-only {
  display: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.navbar.scrolled {
  border-color: var(--gray-300);
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;  /* desktop: logo perfectly centred */
  height: 100%;
  padding: 0 var(--space-8);
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
}

/* ── Logo ── */
.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Desktop: show centred logo; hide mobile logo + hamburger */
.navbar__logo--desktop {
  display: flex;
}

.navbar__logo--mobile {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  transition: border-color var(--duration-fast) var(--ease);
  /* Mobile only — kept at absolute right */
  position: absolute;
  right: var(--space-6);
}

.hamburger:hover {
  border-color: var(--gray-200);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links (sidebar and mobile drawer only) */
.nav-link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease),
              background var(--duration-fast) var(--ease);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* ——————————————————————————————
   7. MOBILE DRAWER
—————————————————————————————— */
.mobile-drawer {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  z-index: 1100;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer__inner {
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--space-4);
}

.mobile-nav-link {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color var(--duration-fast) var(--ease),
              padding-left var(--duration-fast) var(--ease);
}

.mobile-nav-link:hover {
  color: var(--cyan);
  padding-left: var(--space-2);
}

.mobile-drawer__footer {
  margin-top: auto;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-500);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: color var(--duration-fast) var(--ease);
}

.mobile-social:hover {
  color: var(--black);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-overlay.visible {
  opacity: 1;
  pointer-events: all;
}


/* ——————————————————————————————
   8. PAGE LAYOUT (SIDEBAR + MAIN)
—————————————————————————————— */
/* Desktop: no top navbar, so no margin-top needed */
.page-wrapper {
  display: flex;
  margin-top: 0;
  min-height: 100vh;
  width: 100%;
}

/* Sticky Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
  border-right: 1px solid var(--gray-100);
}

.sidebar__inner {
  padding: var(--space-6) var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  height: 100%;
  justify-content: space-between;
}

.sidebar__top {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  justify-content: flex-start;
}

.sidebar__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sidebar__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 0 0 auto;
}

.sidebar__link {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease);
}

.sidebar__link:hover {
  color: var(--black);
  background: var(--gray-50);
  border-left-color: var(--gray-300);
}

.sidebar__link.active {
  color: var(--cyan);
  background: var(--cyan-glow);
  border-left-color: var(--cyan);
  font-weight: 600;
}

.sidebar__divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-3) 0;
}

.sidebar__cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--duration-fast) var(--ease);
  text-align: center;
  justify-content: center;
}

.sidebar__cta:hover {
  color: var(--black);
  border-color: var(--cyan);
  background: var(--cyan-glow);
}

/* Sidebar Logo */
.sidebar__logo {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--space-2) 0 var(--space-2);
  text-decoration: none;
}

.sidebar__logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
}

.sidebar__divider--top {
  margin-bottom: var(--space-4);
}

/* Main Content Area */
.main-content {
  flex: 1;
  min-width: 0;
}


/* ——————————————————————————————
   9. SECTION COMMON STYLES
—————————————————————————————— */
.section {
  padding: var(--space-24) var(--space-16);
  border-bottom: 1px solid var(--gray-100);
  width: 100%;
  max-width: 100%;
}

/* ——————————————————————————————
   10. DARK HERO SECTION
—————————————————————————————— */

.dark-hero {
  background: #050505;
  min-height: 100vh;
  /* Even, generous padding on all sides */
  padding: var(--space-16) var(--space-16) 0 var(--space-16);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(18,194,255,0.18);
}

/* ── Video background ── */
.dark-hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.dark-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 1;
}

/* Flat black semi-opaque overlay on top of video */
.dark-hero__video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

/* Grid line background (above video) */
.dark-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(18,194,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,194,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 1;
}

/* Subtle cyan left-edge vignette — sits above overlay, below content */
.dark-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 70% at 0% 45%, rgba(18,194,255,0.07) 0%, transparent 60%);
  z-index: 2;
  pointer-events: none;
}

/* Subtle corner brackets */
.dark-hero__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  z-index: 3;
  pointer-events: none;
}
.dark-hero__corner--tl {
  top: 20px; left: 20px;
  border-top: 1.5px solid rgba(18,194,255,0.35);
  border-left: 1.5px solid rgba(18,194,255,0.35);
}
.dark-hero__corner--br {
  bottom: 20px; right: 20px;
  border-bottom: 1.5px solid rgba(18,194,255,0.35);
  border-right: 1.5px solid rgba(18,194,255,0.35);
}

/* Single-column hero content */
.dark-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  padding-bottom: var(--space-10);
}

/* Eyebrow */
.dark-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.dark-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
}

.dark-hero__tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  animation: pulseDot 2.8s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

/* Name + roles */
.dark-hero__name-block {
  margin-bottom: var(--space-5);
}

.dark-hero__name-pre {
  font-family: var(--font-mono);
  font-size: clamp(10px, 0.9vw, var(--text-xs));
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--space-2);
}

.dark-hero__roles {
  font-size: clamp(var(--text-sm), 1.1vw, var(--text-base));
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* Rotating headline — the hero's main attraction */
.dark-hero__headline {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: #FFFFFF;
  margin-bottom: var(--space-6);
}

.dark-hero__headline-fixed {
  display: block;
  color: #FFFFFF;
  padding-bottom: 0.08em;
}

/* Rotator — fixed height prevents layout jump */
.dark-hero__rotator {
  display: block;
  position: relative;
  height: 2.1em;
  overflow: hidden;
}

/* All lines hidden by default; JS reveals active one */
.rotator__line {
  display: block;
  color: var(--cyan);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.55s;
  pointer-events: none;
  line-height: 1.0;
  will-change: opacity, transform;
}

.rotator__line--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Manifesto */
.dark-hero__manifesto {
  font-size: clamp(var(--text-sm), 1.25vw, var(--text-base));
  color: rgba(255,255,255,0.45);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: var(--space-8);
}

.dark-hero__slogan-inline {
  font-style: normal;
  color: var(--cyan);
  font-weight: 600;
  opacity: 0.9;
}

/* CTAs */
.dark-hero__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Dark hero buttons */
.dark-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.dark-btn--primary {
  background: var(--cyan);
  color: #000000;
  border: 1.5px solid var(--cyan);
  font-weight: 700;
}
.dark-btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(18,194,255,0.3);
}

.dark-btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1.5px solid rgba(255,255,255,0.14);
}
.dark-btn--ghost:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* RIGHT: Portrait */
.dark-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  /* Hidden on mobile — shown only on desktop */
}

.dark-hero__portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 1px rgba(18,194,255,0.07),
    0 24px 64px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.dark-hero__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: grayscale(8%) contrast(1.05) brightness(0.96);
  transition: filter 0.4s ease;
}
.dark-hero__portrait-frame:hover .dark-hero__portrait-img {
  filter: none;
}

/* Cyan corner pins on portrait */
.ph-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  z-index: 3;
  pointer-events: none;
}
.ph-corner--tl { top: 10px; left: 10px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); opacity: 0.75; }
.ph-corner--br { bottom: 10px; right: 10px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); opacity: 0.75; }

/* Floating label */
.dark-hero__portrait-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2px;
}
.dark-hero__portrait-label-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.65;
}

/* ── BOTTOM: full-width stats bar ── */
.dark-hero__stats-bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: nowrap;
  overflow: hidden;
  padding: var(--space-6) 0 var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.dstat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.dstat__value {
  font-size: clamp(var(--text-xl), 2vw, var(--text-3xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1;
  white-space: nowrap;
}

.dstat__accent { color: var(--cyan); }

.dstat__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 1.3;
  white-space: nowrap;
}

.dstat__sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  align-self: center;
}

/* Scroll indicator */
.dark-hero__scroll {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 3;
}
.dark-hero__scroll-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.16);
}
.dark-hero__scroll-line {
  width: 32px; height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ——————————————————————————————
   10b. ABOUT / BUILDER SECTION
—————————————————————————————— */

.about-section {
  /* Inherits .section padding — no override needed */
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-16);
  align-items: start;
}

/* Bio column */
.about__bio {
  display: flex;
  flex-direction: column;
}

.about__bio p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: var(--space-5);
}

.about__bio strong {
  color: var(--black);
  font-weight: 600;
}

.about__conviction {
  font-style: italic;
  border-left: 3px solid var(--cyan);
  padding-left: var(--space-5);
  color: var(--gray-700) !important;
  margin-bottom: var(--space-6) !important;
}

.about__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Sticky info sidebar */
.about__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: sticky;
  top: calc(var(--navbar-h) + var(--space-6));
  align-self: start;
}

.about__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: visible;
  border: 1px solid rgba(18,194,255,0.2);
  box-shadow: 0 12px 48px rgba(18,194,255,0.08), 0 4px 16px rgba(0,0,0,0.15);
  margin-bottom: var(--space-4);
}

.about__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
  border-radius: 0;
  filter: grayscale(10%);
  transition: filter var(--duration) var(--ease), transform 0.6s var(--ease);
}

.about__portrait:hover .about__portrait-img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Cyan corner brackets — outside the photo, top-left + bottom-right only */
.about__portrait::before,
.about__portrait::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.about__portrait::before {
  top: -8px;
  left: -8px;
  border-top: 2px solid rgba(18,194,255,0.9);
  border-left: 2px solid rgba(18,194,255,0.9);
}

.about__portrait::after {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid rgba(18,194,255,0.9);
  border-right: 2px solid rgba(18,194,255,0.9);
}

/* Subtle cyan glow overlay on the image */
.about__portrait-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(18,194,255,0.06) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.about__sidebar-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__sidebar-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.about__sidebar-value {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-700);
  line-height: 1.4;
}

.about__sidebar-value--cyan {
  color: var(--cyan-dim);
  font-weight: 600;
}

.about__sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-top: var(--space-1);
}

.about__sidebar-divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-2) 0;
}

.about__sidebar-section-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* Venture links */
.about__venture {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  transition: all var(--duration-fast) var(--ease);
  text-decoration: none;
}

.about__venture:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-glow);
  transform: translateX(3px);
}

.about__venture-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.about__venture-logo--sq {
  border-radius: var(--radius-sm);
}

.about__venture-text {
  flex: 1;
  min-width: 0;
}

.about__venture-name {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1px;
}

.about__venture-url {
  font-size: 10px;
  color: var(--gray-400);
}

.about__venture-icon {
  font-size: 9px;
  color: var(--gray-300);
  flex-shrink: 0;
  transition: color var(--duration-fast) var(--ease);
}

.about__venture:hover .about__venture-icon {
  color: var(--cyan);
}



/* ——————————————————————————————
   (Old hero CSS preserved below for reference — now unused)
—————————————————————————————— */

.section__header {
  margin-bottom: var(--space-12);
}

.section__index {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-2);
}

.section__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  line-height: 1.1;
  margin-bottom: var(--space-3);
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

.section__rule {
  width: 40px;
  height: 2px;
  background: var(--cyan);
  margin-top: var(--space-4);
}


/* ——————————————————————————————
   10. OLD HERO (REMOVED — replaced by .dark-hero)
   Keeping stat/scroll classes that may be referenced elsewhere
—————————————————————————————— */

/* ——————————————————————————————
   11. ABOUT SECTION (duplicate grid removed — defined in block 10b above)
—————————————————————————————— */

/* About bio/brand styles (kept — used in new about section) */

.about__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.about__brand-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: all var(--duration-fast) var(--ease);
}

.about__brand-link:hover {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}

.about__brand-link i {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.about__brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.about__brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__brand-logo--square {
  border-radius: var(--radius-sm);
}

.about__brand-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.about__brand-desc {
  font-size: var(--text-xs);
  color: var(--gray-500);
}


/* ——————————————————————————————
   12. TRACK RECORD / TIMELINE
—————————————————————————————— */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 var(--space-6);
}

.timeline__item--last .timeline__line {
  display: none;
}

.timeline__marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.timeline__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
  flex-shrink: 0;
  transition: background var(--duration) var(--ease);
  z-index: 1;
}

.timeline__dot--accent {
  background: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-border);
}

.timeline__line {
  width: 1px;
  flex: 1;
  background: var(--gray-100);
  margin: var(--space-2) 0;
  min-height: 40px;
}

.timeline__card {
  margin-bottom: var(--space-10);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.timeline__card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.timeline__card--accent {
  border-color: var(--cyan-border);
}

.timeline__card--accent:hover {
  box-shadow: var(--shadow-cyan);
}

.timeline__card-header {
  padding: var(--space-6) var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
}

.timeline__period {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.timeline__org {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: var(--space-1);
}

.timeline__role {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.timeline__badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  background: var(--gray-100);
  color: var(--gray-600);
  white-space: nowrap;
  flex-shrink: 0;
}

.timeline__badge--cyan {
  background: var(--cyan-glow);
  color: var(--cyan-dim);
  border: 1px solid var(--cyan-border);
}

.timeline__card-body {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.timeline__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

.metric {
  text-align: center;
}

.metric__value {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
  display: block;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.metric__unit {
  font-size: var(--text-lg);
  color: var(--cyan);
}

.metric__label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  text-transform: uppercase;
  display: block;
}

.timeline__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.timeline__list li {
  font-size: var(--text-sm);
  color: var(--gray-600);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.6;
}

.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--cyan);
}

.timeline__note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-style: italic;
  margin-top: var(--space-3);
}

.timeline__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease);
}

.timeline__link:hover {
  color: var(--cyan);
}


/* ——————————————————————————————
   13. RESEARCH SECTION
—————————————————————————————— */
.research__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.research__card {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--duration) var(--ease);
}

.research__card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.research__card--featured {
  grid-column: 1 / -1;
  background: var(--gray-50);
  border-color: var(--gray-200);
  flex-direction: row;
  gap: var(--space-8);
  align-items: center;
}

.research__card--featured .research__title {
  font-size: var(--text-2xl);
}

.research__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.research__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.3;
}

.research__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}

.research__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  width: fit-content;
}

.research__footer {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.research__footer-text {
  font-size: var(--text-base);
  color: var(--gray-600);
}


/* ——————————————————————————————
   14. PHILOSOPHY SECTION
—————————————————————————————— */
/* Philosophy Section */
.philosophy-section {
  background: #0a0a0a;
  color: #fff;
}

.philosophy-section .section__index {
  color: var(--cyan);
}

.philosophy-section .section__title {
  color: #ffffff;
}

.philosophy-section .section__subtitle {
  color: rgba(255,255,255,0.55);
}

.philosophy-section .section__rule {
  background: var(--cyan);
}

.philosophy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.philosophy__card {
  position: relative;
  background: var(--black);
  border: 1px solid rgba(18,194,255,0.15);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  overflow: hidden;
  min-height: 320px;
}

.philosophy__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(18,194,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy__card:hover {
  border-color: rgba(18,194,255,0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(18,194,255,0.08);
}

.philosophy__number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--cyan);
  opacity: 0.7;
}

.philosophy__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(18,194,255,0.08);
  border: 1px solid rgba(18,194,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: var(--text-lg);
}

.philosophy__title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
}

.philosophy__body {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin: 0;
  flex: 1;
}


/* ——————————————————————————————
   15. BOOKS SECTION
—————————————————————————————— */
.books__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.book__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.book__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}

.book__cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gray-50);
}

.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease);
}

.book__card:hover .book__cover img {
  transform: scale(1.02);
}

.book__status-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.8);
  color: var(--white);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* Book cover placeholder (for books with no cover image yet) */
.book__cover--placeholder {
  background: linear-gradient(145deg, #0e0e0e 0%, #1a1a1a 60%, #0d1a20 100%);
  border: 1px solid rgba(18,194,255,0.12);
}

.book__cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book__cover-placeholder-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18,194,255,0.5);
  border: 1px solid rgba(18,194,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
}

.book__info {
  padding: var(--space-5) var(--space-5) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.book__category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.book__title {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.3;
}

.book__subtitle {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.5;
}

.book__desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.7;
  flex: 1;
}


/* ——————————————————————————————
   16. TESTIMONIALS
—————————————————————————————— */
.testimonials__grid {
  display: grid;
  gap: var(--space-6);
}

.testimonial__card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  transition: box-shadow var(--duration) var(--ease);
}

.testimonial__card:hover {
  box-shadow: var(--shadow-lg);
}

.testimonial__card--featured {
  border-left: 3px solid var(--cyan);
}

.testimonial__header {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.testimonial__client-logo {
  height: 48px;
  max-width: 140px;
}

.testimonial__client-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.testimonial__attribution {
  border-left: 1px solid var(--gray-200);
  padding-left: var(--space-5);
}

.testimonial__name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--black);
}

.testimonial__title {
  font-size: var(--text-sm);
  color: var(--gray-500);
}

.testimonial__org {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.testimonial__quote {
  font-style: italic;
  border: none;
}

.testimonial__quote p {
  font-size: var(--text-base);
  color: var(--gray-700);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.testimonial__quote p:last-child {
  margin-bottom: 0;
}

.testimonial__quote--secondary p {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.testimonial__divider {
  height: 1px;
  background: var(--gray-100);
  margin: var(--space-6) 0;
}

.testimonial__tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

/* Testimonial slider */
.tslider {
  position: relative;
  overflow: hidden;
}

.tslide {
  display: none;
}

.tslide--active {
  display: block;
  animation: tFadeIn 0.35s ease;
}

@keyframes tFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tslider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--space-8);
}

.tslider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
  font-size: var(--text-xs);
}

.tslider__btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

.tslider__dots {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.tslider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease),
              transform var(--duration-fast) var(--ease);
  padding: 0;
}

.tslider__dot--active {
  background: var(--cyan);
  transform: scale(1.2);
}

/* Footer logo */
.footer__logo-link {
  display: inline-block;
  text-decoration: none;
}

.footer__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__tagline--slogan {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--cyan) !important;
  letter-spacing: 0.04em;
}


/* ——————————————————————————————
   17. NEWSLETTER SECTION
—————————————————————————————— */
.newsletter-section {
  background: #161616;
  color: #fff;
}

/* Override section header colors for dark newsletter background */
.newsletter-section .section__title {
  color: #ffffff;
}
.newsletter-section .section__subtitle {
  color: rgba(255,255,255,0.6);
}
.newsletter-section .newsletter__disclaimer {
  color: rgba(255,255,255,0.4) !important;
}

.newsletter__logo-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.newsletter__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

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

.newsletter__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 100%;
}

.newsletter__body-text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin: 0;
}

.newsletter__struct-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: var(--space-2) 0 0 0;
}

.newsletter__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  width: 100%;
}

.newsletter__lead {
  font-size: var(--text-xl) !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.4 !important;
}

.newsletter__description p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.newsletter__thesis {
  font-style: italic;
  color: rgba(255,255,255,0.55) !important;
  border-left: 3px solid var(--cyan);
  padding-left: var(--space-4);
  margin: var(--space-5) 0 !important;
}

.newsletter__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.newsletter__cta-block .btn {
  width: auto;
  align-self: flex-start;
}

.newsletter__disclaimer {
  font-size: var(--text-xs) !important;
  color: var(--gray-400) !important;
  margin: 0 !important;
}

/* Coming Soon button — newsletter */
.newsletter__cta-block .btn--primary {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.newsletter__section-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  margin-bottom: var(--space-3);
  transition: border-color var(--duration-fast) var(--ease);
}

.newsletter__section-card:hover {
  border-color: var(--cyan-border);
}

.newsletter__section-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(18,194,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: var(--text-base);
  flex-shrink: 0;
}

.newsletter__section-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-1);
}

.newsletter__section-desc {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}


/* ——————————————————————————————
   18. ECOSYSTEM SECTION
—————————————————————————————— */
.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.ecosystem__card {
  padding: var(--space-8) var(--space-6);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--duration) var(--ease);
}

.ecosystem__card:hover {
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
  transform: translateY(-2px);
}

.ecosystem__card--active {
  border-color: var(--cyan-border);
  background: var(--cyan-glow);
}

.ecosystem__card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.ecosystem__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.ecosystem__logo--rlw {
  border-radius: var(--radius-sm);
}

.ecosystem__logo--square {
  border-radius: var(--radius-sm);
}

.ecosystem__current-badge {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  background: rgba(18,194,255,0.1);
  border: 1px solid var(--cyan-border);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.ecosystem__role-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.ecosystem__name {
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--black);
}

.ecosystem__tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  text-transform: uppercase;
}

.ecosystem__desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}

.ecosystem__url {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--space-2);
}

.ecosystem__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-top: var(--space-2);
  transition: color var(--duration-fast) var(--ease);
}

.ecosystem__link:hover {
  color: var(--cyan);
}

/* Connector graphic */
.ecosystem__connector {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.connector__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gray-200));
}

.connector__line--right {
  background: linear-gradient(to left, transparent, var(--gray-200));
}

.connector__center {
  flex-shrink: 0;
}

.connector__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-300);
  white-space: nowrap;
}


/* ——————————————————————————————
   19. CONTACT SECTION
—————————————————————————————— */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-16);
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
  font-size: var(--text-base);
}

.contact__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-1);
}

.contact__value {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--black);
  transition: color var(--duration-fast) var(--ease);
}

.contact__value:hover {
  color: var(--cyan);
}

.contact__booking {
  padding: var(--space-8);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__booking-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.contact__booking-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: 1.5;
}

.contact__brands {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__brands-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: var(--space-2);
}

.contact__brand-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  transition: all var(--duration-fast) var(--ease);
}

.contact__brand-card:hover {
  border-color: var(--cyan-border);
  background: var(--cyan-glow);
  transform: translateX(4px);
}

.contact__brand-card i.fa-arrow-up-right-from-square {
  margin-left: auto;
  font-size: var(--text-xs);
  color: var(--gray-300);
}

.contact__brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.contact__brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__brand-logo--square {
  border-radius: var(--radius-sm);
}

.contact__brand-logo--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0A66C2;
  border-radius: var(--radius-sm);
  font-size: var(--text-xl);
  color: var(--white);
}

.contact__brand-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 2px;
}

.contact__brand-url {
  font-size: var(--text-xs);
  color: var(--gray-400);
  line-height: 1.4;
}


/* ——————————————————————————————
   20. FOOTER
—————————————————————————————— */
.site-footer {
  background: var(--black);
  color: var(--white);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-12);
  padding: var(--space-16) var(--space-12);
  max-width: var(--page-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--gray-800);
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 240px;
}

.footer__left .rlw-monogram {
  filter: invert(1);
}

.footer__left .rlw-wordmark {
  color: var(--white);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: var(--space-12);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__col-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-2);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease);
}

.footer__link:hover {
  color: var(--cyan);
}

.footer__link--active {
  color: var(--gray-400);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-12);
  max-width: var(--page-max);
  margin: 0 auto;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer__sites {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--gray-600);
}

.footer__sites span {
  color: var(--gray-700);
}

.footer__sites a {
  color: var(--gray-500);
  transition: color var(--duration-fast) var(--ease);
}

.footer__sites a:hover {
  color: var(--cyan);
}


/* ——————————————————————————————
   21. BACK TO TOP
—————————————————————————————— */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 40px;
  height: 40px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--duration) var(--ease);
  z-index: 900;
  cursor: pointer;
  border: 1px solid var(--gray-700);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--cyan);
  border-color: var(--cyan);
}


/* ——————————————————————————————
   22. SCROLLBAR
—————————————————————————————— */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-50);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-300);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}


/* ——————————————————————————————
   23. ANIMATIONS
—————————————————————————————— */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(18,194,255,0.2); }
  50% { box-shadow: 0 0 24px 4px rgba(18,194,255,0.15); }
}

.animate-in {
  animation: fadeInUp var(--duration-slow) var(--ease-out) forwards;
}

.timeline__dot--accent {
  animation: pulseGlow 3s ease-in-out infinite;
}


/* ——————————————————————————————
   24. RESPONSIVE — TABLET (1100px)
—————————————————————————————— */
@media (max-width: 1100px) {
  :root {
    --sidebar-w: 180px;
  }

  .section {
    padding: var(--space-20) var(--space-10);
  }

  .dark-hero {
    padding: var(--space-12) var(--space-8) 0 var(--space-8);
  }

  .dark-hero__headline {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }

  .dark-hero__rotator {
    height: 2.15em;
  }

  .dark-hero__stats-bar {
    gap: var(--space-5);
  }

  /* Builder — full width bio on tablet, sidebar hidden */
  .about__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about__sidebar {
    display: none;
  }

  .books__grid {
    gap: var(--space-5);
  }

  .timeline__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Philosophy: single column on tablet */
  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .philosophy__card {
    min-height: auto;
    padding: var(--space-8) var(--space-6);
  }

  /* Newsletter: already single column, nothing to override */
}

/* ——————————————————————————————
   25. RESPONSIVE — MOBILE (900px)
—————————————————————————————— */
@media (max-width: 900px) {
  /* Hide sidebar on mobile — no navigation bar at all */
  .sidebar {
    display: none;
  }

  /* No navbar offset needed */
  .page-wrapper {
    margin-top: 0;
    min-height: 100vh;
  }

  .dark-hero {
    min-height: 100vh;
  }

  /* Sections */
  .section {
    padding: var(--space-16) var(--space-6);
  }

  /* Hero: single-column text only on mobile */
  .dark-hero {
    padding: var(--space-10) var(--space-6) 0 var(--space-6);
    min-height: auto;
    justify-content: flex-start;
  }

  .dark-hero__top {
    grid-template-columns: 1fr;  /* single column */
    gap: 0;
    padding-bottom: var(--space-8);
  }

  /* Hide the portrait entirely on mobile — text is the hero */
  .dark-hero__visual {
    display: none;
  }

  .dark-hero__headline {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .dark-hero__rotator {
    height: 2.1em;
  }

  .dark-hero__manifesto {
    max-width: 100%;
  }

  .dark-hero__scroll {
    display: none;
  }

  .dark-hero__stats-bar {
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-5) 0 var(--space-6);
  }

  .dark-hero__corner {
    display: none;
  }

  /* Hide 4K accounts stat on mobile to keep stats on one line */
  .dstat--hide-mobile,
  .dstat__sep--hide-mobile {
    display: none;
  }

  /* About — sidebar (photo + details) moves ABOVE bio on mobile, fully centered */
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    display: flex;
    flex-direction: column;
  }

  .about__bio--order-2 {
    order: 2;
  }

  .about__sidebar {
    position: static;
    order: 1;
    align-items: center;
    text-align: center;
  }

  .about__sidebar-block {
    align-items: center;
  }

  .about__sidebar-tags {
    justify-content: center;
  }

  .about__sidebar-section-label {
    text-align: center;
  }

  .about__portrait {
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  .about__venture {
    text-align: left; /* keep venture cards left-aligned internally */
  }

  /* Track Record — collapse marker to bare minimum so cards sit close to left edge */
  .timeline__item {
    grid-template-columns: 16px 1fr;
    gap: 0 var(--space-2);
  }

  .timeline__card {
    margin-left: 0;
  }

  /* Newsletter — already single column, just ensure no overflow */
  .newsletter-section {
    overflow: hidden;
  }

  .newsletter__body {
    max-width: 100%;
  }

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

  .newsletter__cta-block .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    box-sizing: border-box;
  }

  .newsletter__section-card > div:last-child {
    min-width: 0;
    flex: 1;
  }

  /* Hide Philosophy section entirely on mobile */
  .philosophy-section {
    display: none;
  }

  /* Other sections */
  .research__grid {
    grid-template-columns: 1fr;
  }

  .research__card--featured {
    flex-direction: column;
  }

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

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

  .footer__inner {
    flex-direction: column;
    gap: var(--space-10);
    padding: var(--space-12) var(--space-8);
  }

  .footer__links {
    flex-wrap: wrap;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
    padding: var(--space-5) var(--space-8);
  }
}

/* ——————————————————————————————
   26. RESPONSIVE — SMALL MOBILE (640px)
—————————————————————————————— */
@media (max-width: 640px) {
  .section {
    padding: var(--space-12) var(--space-5);
  }

  .dark-hero {
    padding: var(--space-8) var(--space-5) 0 var(--space-5);
  }

  .dark-hero__headline {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .dark-hero__stats-bar {
    gap: var(--space-3);
    flex-wrap: nowrap;
  }

  .dstat__value {
    font-size: var(--text-2xl);
  }

  /* Newsletter button full-width on small screens */
  .newsletter__section-card {
    overflow: hidden;
  }

  .dark-hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .books__grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .timeline__card-header {
    flex-direction: column;
    gap: var(--space-3);
  }

  .timeline__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .navbar__inner {
    padding: 0 var(--space-5);
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-6);
  }
}

/* ——————————————————————————————
   25. UTILITIES
—————————————————————————————— */
.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;
}

.no-scroll {
  overflow: hidden;
}
