/* ============================= */
/* CSS VARIABLES                 */
/* ============================= */

:root {
  --bg:          #080808;
  --bg-surface:  rgba(12,12,12,0.58);
  --border:      rgba(255,255,255,0.055);
  --text:        #e2e2e2;
  --text-muted:  #747474;
  --text-dim:    #484848;
  --font-mono:   'Space Mono', monospace;
  --font-body:   'DM Sans', sans-serif;
  --radius:      16px;
  --ease:        cubic-bezier(0.4,0,0.2,1);
  --transition:  0.38s var(--ease);
  --data-h:      28px;
  --nav-h:       80px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* catch pseudo-element bleed at root */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw; /* belt-and-suspenders overflow guard */
}

/* Reliable mobile overflow wrapper — catches anything html/body miss on iOS Safari */
.page-wrapper {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body.loading { overflow: hidden; }


/* ============================= */
/* PAGE LOADER                   */
/* ============================= */

.loader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}

.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(360px, 90vw);
}

.loader-logo img { height: 72px; display: block; }

.loader-logo-text {
  display: none;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 22px;
}

.loader-logo-text .logo-sq  { color: #fff; }
.loader-logo-text .logo-sys { color: var(--text-muted); }

.loader-bar-wrap {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.6);
  border-radius: 1px;
  transition: width 0.45s var(--ease);
  box-shadow: 0 0 10px rgba(255,255,255,0.35);
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  min-height: 1em;
}


/* ============================= */
/* NOISE + GRID                  */
/* ============================= */

.noise-overlay {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.030;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridMove 110s linear infinite;
  z-index: -3;
}

@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(72px); } }


/* ============================= */
/* DATA BAR                      */
/* ============================= */

.data-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--data-h); z-index: 200;
  background: rgba(6,6,6,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.data-bar-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: center; padding: 0 24px;
  overflow: hidden; /* prevent items overflowing on narrow screens */
  gap: 0;
}

.data-item  { display: flex; align-items: center; gap: 7px; padding: 0 18px; }
.data-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.8px; color: var(--text-dim); text-transform: uppercase; }
.data-val   { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: #888; min-width: 52px; transition: color 0.3s; }
.data-sep   { color: rgba(255,255,255,0.07); font-size: 11px; font-family: var(--font-mono); user-select: none; }


/* ============================= */
/* NAVBAR                        */
/* ============================= */

.navbar {
  position: fixed;
  top: var(--data-h); left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 56px;
  background: rgba(8,8,8,0.45);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding var(--transition), background var(--transition),
              border-color var(--transition), box-shadow var(--transition);
  overflow: hidden; /* prevent nav links from widening viewport */
}

.navbar.scrolled {
  padding: 12px 56px;
  background: rgba(8,8,8,0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 32px rgba(0,0,0,0.7);
}

.logo img { height: 46px; display: block; }

.logo-text-fallback {
  display: none; align-items: baseline; gap: 5px;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
}

.logo-sq  { color: #fff; }
.logo-sys { color: var(--text-muted); }
.logo-text-fallback.large { font-size: 22px; }

nav a {
  color: var(--text-muted); text-decoration: none;
  margin-left: 28px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 1.2px; text-transform: uppercase;
  position: relative; transition: color var(--transition);
}

nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 1px; background: #fff;
  transition: width var(--transition);
}

nav a:hover, nav a.active { color: #fff; }
nav a.active::after, nav a:hover::after { width: 100%; }


/* ============================= */
/* HERO                          */
/* ============================= */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--data-h) + var(--nav-h) + 30px) 20px 100px;
  overflow: hidden;
}

#radar, #particles, #hero-signal {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}

#radar     { z-index: 0; }
#particles { z-index: 1; }

#hero-signal {
  z-index: 2;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, black 62%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, black 62%, black 88%, transparent 100%);
}

.hero-gradient-left, .hero-gradient-right {
  position: absolute; top: 0; bottom: 0; width: 160px; z-index: 3; pointer-events: none;
}
.hero-gradient-left  { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.hero-gradient-right { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }

.hero::before {
  content: ""; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: min(700px, 100vw); height: 420px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.04), transparent 65%);
  filter: blur(70px); animation: haloPulse 16s ease-in-out infinite; z-index: 0; pointer-events: none;
}

@keyframes haloPulse {
  0%,100% { opacity: 0.5; transform: translateX(-50%) scale(1);    }
  50%      { opacity: 0.72; transform: translateX(-50%) scale(1.06); }
}

.hero-inner { position: relative; z-index: 4; max-width: 720px; }

.hero-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2.8px;
  color: var(--text-dim); margin-bottom: 28px; text-transform: uppercase;
  animation: fadeUp 0.9s var(--ease) both 0.2s;
}

.eyebrow-line { display: inline-block; width: 28px; height: 1px; background: var(--text-dim); opacity: 0.6; }

#heroTitle {
  font-size: clamp(30px, 4.8vw, 50px);
  font-weight: 300; letter-spacing: 0.2px; line-height: 1.18;
  margin: 0 0 20px; color: #f2f2f2; min-height: 1.18em;
  border-right: 2px solid rgba(255,255,255,0.5);
  animation: cursorBlink 0.75s step-end infinite;
}

#heroTitle.done { animation: none; border-right: none; }

@keyframes cursorBlink {
  0%,100% { border-right-color: rgba(255,255,255,0.5); }
  50%      { border-right-color: transparent; }
}

.hero-sub {
  color: var(--text-muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 38px;
  animation: fadeUp 1s var(--ease) both 1.8s;
}

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  animation: fadeUp 1s var(--ease) both 2.0s;
  max-width: 100%; /* prevent pills from expanding past viewport */
}

.hero-pill {
  padding: 7px 18px; border-radius: 30px;
  background: rgba(255,255,255,0.036); border: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  color: var(--text-muted); backdrop-filter: blur(8px); transition: var(--transition);
}

.hero-pill:hover {
  border-color: rgba(255,255,255,0.16); color: #c5c5c5;
  background: rgba(255,255,255,0.06);
}

.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 4; animation: fadeUp 1s var(--ease) both 2.4s;
}

.scroll-line {
  display: block; width: 1px; height: 38px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.28));
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.hero-scroll-hint p {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 2.5px;
  color: var(--text-dim); margin: 0; text-transform: uppercase;
}

@keyframes scrollPulse { 0%,100% { opacity: 0.2; } 50% { opacity: 0.65; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }


/* ============================= */
/* STAT BAND                     */
/* ============================= */

.stat-band {
  background: rgba(10,10,10,0.75);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px); padding: 30px 40px;
  overflow: hidden; /* prevent stat values from bleeding out */
}

.stat-band-inner {
  max-width: 1020px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.stat       { flex: 1; text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: #d8d8d8; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.8px; color: var(--text-dim); text-transform: uppercase; }
.stat-div   { width: 1px; height: 36px; background: var(--border); flex-shrink: 0; }


/* ============================= */
/* SECTIONS                      */
/* ============================= */

.section {
  max-width: 1020px; margin: 72px auto; padding: 58px 56px;
  position: relative;
  overflow: hidden; /* fallback for Safari < 16 */
  overflow: clip;   /* preferred: clips without creating scroll container */
  overflow-clip-margin: 0px;
  background: var(--bg-surface); border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.012), 0 28px 70px rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
}

.section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(550px, 100%); height: 220px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.032), transparent 70%);
  filter: blur(65px); pointer-events: none; z-index: 0;
}



.section::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: repeating-linear-gradient(
    to bottom, transparent, transparent 2px,
    rgba(255,255,255,0.006) 2px, rgba(255,255,255,0.006) 3px
  );
  pointer-events: none; z-index: 0;
  /* clip scanlines to section shape */
  overflow: hidden;
}

.signal-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; border-radius: var(--radius);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0,0,0,0.5) 68%, black 78%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 50%, rgba(0,0,0,0.5) 68%, black 78%, black 88%, transparent 100%);
  will-change: transform;
}

/* Timeline section: push canvas below all content and
   fade it out in the top-third only so it never touches the milestone list */
#timeline .signal-canvas {
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 15%, rgba(0,0,0,0.5) 30%, black 40%, transparent 52%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 15%, rgba(0,0,0,0.5) 30%, black 40%, transparent 52%);
}

/* Tighten bottom padding so the empty section floor doesn't read as a fade */
#timeline.section {
  padding-bottom: 32px;
}

.section-label {
  position: absolute; top: 26px; right: 34px;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; z-index: 3;
}

.section-content { position: relative; z-index: 2; }

.section h2 { font-family: var(--font-mono); font-weight: 400; font-size: 21px; letter-spacing: 0.7px; margin: 0 0 20px; color: #ddd; }
.section p  { color: var(--text-muted); max-width: 620px; margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.section-intro { margin-bottom: 28px !important; }
.ip-note { font-size: 12.5px !important; color: var(--text-dim) !important; margin-top: 22px; font-style: italic; }


/* ============================= */
/* ABOUT 2-COL                   */
/* ============================= */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.about-left p { max-width: 100%; }

.section ul { list-style: none; padding: 0; margin: 0; }
.section ul li {
  padding: 11px 0; color: #b2b2b2; font-size: 14.5px; letter-spacing: 0.25px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 14px;
  transition: color var(--transition);
}
.section ul li:last-child { border-bottom: none; }
.section ul li::before { content: "—"; color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; flex-shrink: 0; }
.section ul li:hover { color: #d8d8d8; }


/* ============================= */
/* 2×2 CARDS                     */
/* ============================= */

/* Focus scroll container — matches timeline/recognition design */
.focus-scroll-wrap {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  max-height: 520px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
  padding-right: 6px;
  background: rgba(12,12,12,0.96);
  border-radius: 6px;
}

.focus-scroll-wrap::-webkit-scrollbar       { width: 3px; }
.focus-scroll-wrap::-webkit-scrollbar-track  { background: transparent; }
.focus-scroll-wrap::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.10); border-radius: 2px; }
.focus-scroll-wrap::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }

/* 2-col grid inside the scroll area */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 4px 2px 16px;
}

/* Scroll indicator — reuses tsi styles */
.focus-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  transition: opacity 0.5s;
}

.focus-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* focus-card: inherits .card styles, minor height tweak */
.focus-card {
  min-height: unset;
}

/* Legacy .grid — kept for about/contact fallback just in case */
.grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; margin-top: 12px; }

.card {
  background: linear-gradient(145deg, rgba(22,22,22,0.9), rgba(14,14,14,0.95));
  padding: 30px 26px 24px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), opacity 0.5s var(--ease);
  transform-style: preserve-3d;
  opacity: 0; transform: translateY(16px);
}

.card.item-visible { opacity: 1; transform: translateY(0); }

.card::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px;
  background: radial-gradient(circle at 55% -10%, rgba(255,255,255,0.032), transparent 65%);
  opacity: 0; transition: opacity var(--transition); pointer-events: none;
}

.card:hover { border-color: rgba(255,255,255,0.12); box-shadow: 0 20px 45px rgba(0,0,0,0.7); }
.card:hover::before { opacity: 1; }

/* corner brackets */
.card-bracket {
  position: absolute; width: 10px; height: 10px;
  pointer-events: none; opacity: 0; transition: opacity 0.3s var(--ease);
}
.card:hover .card-bracket { opacity: 1; }
.card-bracket.tl { top:10px;    left:10px;   border-top:1px solid rgba(255,255,255,0.3); border-left:1px solid rgba(255,255,255,0.3); }
.card-bracket.tr { top:10px;    right:10px;  border-top:1px solid rgba(255,255,255,0.3); border-right:1px solid rgba(255,255,255,0.3); }
.card-bracket.bl { bottom:10px; left:10px;   border-bottom:1px solid rgba(255,255,255,0.3); border-left:1px solid rgba(255,255,255,0.3); }
.card-bracket.br { bottom:10px; right:10px;  border-bottom:1px solid rgba(255,255,255,0.3); border-right:1px solid rgba(255,255,255,0.3); }

.card-top     { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.card-icon    { font-size: 21px; color: rgba(255,255,255,0.28); line-height: 1; }
.card-tag     { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1.5px; }
.card h3      { margin: 0 0 8px; font-weight: 500; font-size: 14.5px; color: #d5d5d5; font-family: var(--font-mono); letter-spacing: 0.3px; }
.card > p     { color: var(--text-muted); font-size: 13.5px; line-height: 1.65; margin: 0 0 10px; }
.card-tagline { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 16px; }

.card-bar { height: 1px; width: 0; background: linear-gradient(to right, rgba(255,255,255,0.22), transparent); transition: width 0.55s var(--ease); border-radius: 1px; }
.card:hover .card-bar { width: 100%; }


/* JS-only hook classes — no visual rules needed        */
/* .parallax-section — sections with scroll parallax   */
/* .tilt-card        — cards with 3D mouse tilt effect */

/* ============================= */
/* TIMELINE                      */
/* ============================= */

/* Scroll container — fixed height with fade hint */
.timeline-scroll-wrap {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
  padding-right: 6px;
  /* solid background blocks the telemetry canvas from showing through */
  background: rgba(12,12,12,0.96);
  border-radius: 6px;
}

.timeline-scroll-wrap::-webkit-scrollbar {
  width: 3px;
}
.timeline-scroll-wrap::-webkit-scrollbar-track {
  background: transparent;
}
.timeline-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
}
.timeline-scroll-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.20);
}

/* Bottom fade — masks last item to hint there is more */
.timeline-fade-bottom {
  display: none; /* replaced by .timeline-scroll-indicator below */
}

/* Scroll indicator pill — sits below the scroll container */
.timeline-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  transition: opacity 0.5s;
}

.timeline-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.tsi-line {
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.12);
}

.tsi-label {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tsi-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  animation: tsiPulse 1.8s ease-in-out infinite;
}

.tsi-arrow span {
  display: block;
  width: 5px; height: 5px;
  border-right: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transform: rotate(45deg);
}

.tsi-arrow span:nth-child(2) { opacity: 0.5; margin-top: -3px; }

@keyframes tsiPulse {
  0%, 100% { transform: translateY(0);   opacity: 0.6; }
  50%       { transform: translateY(3px); opacity: 1;   }
}

.timeline {
  position: relative;
  padding-left: 32px;
  padding-bottom: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 16px; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 10%, rgba(255,255,255,0.12) 85%, transparent);
}

.tl-item {
  position: relative;
  display: grid; grid-template-columns: 82px 1fr; gap: 20px;
  padding-bottom: 36px;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.tl-item.item-visible { opacity: 1; transform: translateY(0); }
.tl-item:last-child   { padding-bottom: 0; }



.tl-dot {
  position: absolute; left: -29px; top: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.tl-dot.active {
  background: rgba(255,255,255,0.7);
  box-shadow: 0 0 10px rgba(255,255,255,0.3);
}



.tl-year  { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: 1.2px; padding-top: 3px; text-transform: uppercase; }
.tl-title { font-family: var(--font-mono); font-size: 14px; color: #ccc; letter-spacing: 0.3px; margin-bottom: 8px; }
.tl-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.7; }


/* ============================= */
/* TEAM — HORIZONTAL SCROLL      */
/* ============================= */

.team-scroll-wrap {
  position: relative;
  margin-top: 16px;
  /* bleed to section edges — clamped for mobile safety */
  margin-left: -56px;
  margin-right: -56px;
  /* clip vertically only — do NOT clip horizontally (kills the scroll track) */
  overflow-y: clip;
}

.team-scroll {
  display: flex;
  gap: 16px;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 8px 56px 20px;
  cursor: grab;
  scrollbar-width: none;
  scroll-behavior: auto;
  touch-action: pan-x; /* allow horizontal drag without triggering page scroll */
}

.team-scroll::-webkit-scrollbar { display: none; }
.team-scroll.dragging { cursor: grabbing; user-select: none; }

.team-fade-left,
.team-fade-right {
  position: absolute; top: 0; bottom: 20px;
  width: 80px; pointer-events: none; z-index: 2;
}
.team-fade-left  { left: 0;  background: linear-gradient(to right, rgba(10,10,10,0.95) 20%, transparent); }
.team-fade-right { right: 0; background: linear-gradient(to left,  rgba(10,10,10,0.95) 20%, transparent); }

.team-scroll-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px;
  transition: opacity 0.6s;
  pointer-events: none;
}

.tsh-line  { display: inline-block; width: 24px; height: 1px; background: var(--text-dim); opacity: 0.4; }
.tsh-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }

.team-card {
  flex: 0 0 260px;
  padding: 28px 24px 26px;
  background: linear-gradient(145deg, rgba(22,22,22,0.92), rgba(14,14,14,0.97));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  position: relative;
  /* NO preserve-3d inside overflow scroll — causes compositing glitches */
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.5s var(--ease);
  opacity: 0; transform: translateY(12px);
}

.team-card.item-visible { opacity: 1; transform: translateY(0); }
.team-card:hover { border-color: rgba(255,255,255,0.10); box-shadow: 0 12px 36px rgba(0,0,0,0.65); }

/* brackets on team cards */
.team-card .card-bracket { opacity: 0; transition: opacity 0.3s var(--ease); }
.team-card:hover .card-bracket { opacity: 1; }

.team-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
}

.avatar-placeholder { font-size: 18px; color: rgba(255,255,255,0.22); }

.team-name { font-family: var(--font-mono); font-size: 13px; color: #d0d0d0; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 5px; }
.team-role { font-family: var(--font-mono); font-size: 9px; color: var(--text-dim); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 14px; line-height: 1.5; }
.team-bio  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }


/* ============================= */
/* ADVISORY BOARD                */
/* ============================= */

.advisory-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 44px 0 14px;
}

.advisory-divider-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.10), transparent);
}

.advisory-divider-label {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 3px; color: var(--text-dim);
  text-transform: uppercase; white-space: nowrap;
  padding: 0 4px;
}

.advisory-intro {
  font-size: 13.5px !important;
  color: var(--text-dim) !important;
  max-width: 560px;
  margin-bottom: 18px !important;
  font-style: italic;
}

.advisory-scroll-wrap {
  position: relative;
  margin-top: 8px;
  margin-left: -56px;
  margin-right: -56px;
  overflow-y: clip;
}

.advisory-scroll {
  display: flex;
  gap: 16px;
  overflow-x: scroll;
  -webkit-overflow-scrolling: touch;
  padding: 8px 56px 20px;
  cursor: grab;
  scrollbar-width: none;
  scroll-behavior: auto;
  touch-action: pan-x;
}

.advisory-scroll::-webkit-scrollbar { display: none; }
.advisory-scroll.dragging { cursor: grabbing; user-select: none; }

.advisory-card {
  flex: 0 0 268px;
  padding: 28px 24px 26px;
  background: linear-gradient(145deg, rgba(22,22,22,0.92), rgba(14,14,14,0.97));
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.055);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  position: relative;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.5s var(--ease);
  opacity: 0; transform: translateY(12px);
}

.advisory-card.item-visible { opacity: 1; transform: translateY(0); }
.advisory-card:hover {
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 12px 36px rgba(0,0,0,0.65);
}

.advisory-card .card-bracket { opacity: 0; transition: opacity 0.3s var(--ease); }
.advisory-card:hover .card-bracket { opacity: 1; }

.advisory-badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
  opacity: 0.7;
}

.advisory-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.03);
}

@media (max-width: 1060px) {
  .advisory-scroll-wrap { margin-left: -28px; margin-right: -28px; }
  .advisory-scroll { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 720px) {
  .advisory-card { flex: 0 0 228px; }
  .advisory-scroll-wrap { margin-left: -20px; margin-right: -20px; }
  .advisory-scroll { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 480px) {
  .advisory-card { flex: 0 0 206px; }
  .advisory-scroll-wrap { margin-left: -16px; margin-right: -16px; }
  .advisory-scroll { padding-left: 16px; padding-right: 16px; }
}


/* ============================= */
/* RECOGNITION (PRESS)           */
/* ============================= */

/* Scroll container — mirrors timeline design */
.recog-scroll-wrap {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.10) transparent;
  padding-right: 6px;
  background: rgba(12,12,12,0.96);
  border-radius: 6px;
}

.recog-scroll-wrap::-webkit-scrollbar       { width: 3px; }
.recog-scroll-wrap::-webkit-scrollbar-track  { background: transparent; }
.recog-scroll-wrap::-webkit-scrollbar-thumb  { background: rgba(255,255,255,0.10); border-radius: 2px; }
.recog-scroll-wrap::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.20); }

.recog-list {
  position: relative;
  padding-left: 32px;
  padding-bottom: 16px;
}

/* Vertical line — mirrors timeline::before */
.recog-list::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 16px; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12) 10%, rgba(255,255,255,0.12) 85%, transparent);
}

.recog-item {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr 52px;
  gap: 20px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.recog-item:last-child { border-bottom: none; padding-bottom: 0; }
.recog-item.item-visible { opacity: 1; transform: translateY(0); }

/* Dot on the vertical line */
.recog-item::before {
  content: "";
  position: absolute;
  left: -29px; top: 28px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.15);
}

/* Type tag pill — MEDIA / AWARD / GRANT / CERT / COMMUNITY */
.recog-type-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 4px 10px;
  white-space: nowrap;
  align-self: start;
  margin-top: 3px;
  display: inline-block;
}

.recog-source {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c8c8c8;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
  font-weight: 700;
}

.recog-quote {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.recog-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-align: right;
  padding-top: 5px;
  white-space: nowrap;
}

/* Scroll indicator — reuses timeline indicator styles */
.recog-scroll-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  transition: opacity 0.5s;
}

.recog-scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .recog-scroll-wrap { max-height: 360px; }
  .recog-item { grid-template-columns: 70px 1fr 44px; gap: 14px; }
}

@media (max-width: 480px) {
  .recog-item { grid-template-columns: 1fr; gap: 6px; }
  .recog-year { text-align: left; }
  .recog-list { padding-left: 24px; }
}


/* ============================= */
/* CONTACT 2-COL                 */
/* ============================= */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }

.contact-label { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }

.email {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-mono); font-size: 18px;
  color: #ddd; text-decoration: none; position: relative; padding-bottom: 4px;
  transition: color var(--transition);
  word-break: break-all; /* prevent email from overflowing on very small screens */
  max-width: 100%;
}

.email::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.25), rgba(255,255,255,0.06));
  transition: background var(--transition);
}

.email:hover { color: #fff; }
.email:hover::after { background: linear-gradient(to right, rgba(255,255,255,0.55), rgba(255,255,255,0.15)); }
.email-prefix { color: #d0d0d0; }
.email-at     { color: var(--text-muted); margin: 0 1px; }
.email-domain { color: var(--text-muted); }
.email:hover .email-prefix, .email:hover .email-domain { color: #e8e8e8; }
.email:hover .email-at { color: #aaa; }

.contact-note { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.8px; margin-top: 14px; }


/* ============================= */
/* FOOTER                        */
/* ============================= */

footer {
  text-align: center; padding: 90px 20px 70px;
  background: #050505; border-top: 1px solid var(--border); position: relative;
  overflow: hidden; /* clip the glow pseudo-element */
}

footer::before {
  content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: min(600px, 100vw); height: 220px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.042), transparent 70%);
  filter: blur(80px); pointer-events: none;
}

.footer-inner { position: relative; z-index: 2; }

/* Logo — larger, full opacity, prominent */
.footer-logo { margin-bottom: 28px; }
.footer-logo img {
  height: 88px;
  display: block;
  margin: 0 auto 0;
  opacity: 1;
  filter: brightness(1.1);
}
.footer-logo .logo-text-fallback.large {
  justify-content: center;
  font-size: 26px;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}

.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px;
  text-transform: uppercase; color: #555; text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: #999; }

.footer-divider { width: 48px; height: 1px; background: rgba(255,255,255,0.06); margin: 0 auto 22px; }
.footer-copy    { color: #3a3a3a; font-size: 11.5px; letter-spacing: 0.5px; font-family: var(--font-mono); margin: 0 0 8px; }
.footer-tagline { color: #282828; font-size: 10px; font-family: var(--font-mono); letter-spacing: 2px; text-transform: uppercase; margin: 0; }


/* ============================= */
/* TRUST BADGES                  */
/* ============================= */

.trust-strip {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.trust-strip-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 22px;
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.055);
  background: linear-gradient(135deg, rgba(20,20,20,0.7), rgba(14,14,14,0.85));
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}

.trust-badge:hover {
  border-color: rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(26,26,26,0.85), rgba(18,18,18,0.95));
}

.trust-badge-icon {
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color var(--transition);
}

.trust-badge:hover .trust-badge-icon { color: rgba(255,255,255,0.55); }

.trust-badge-text { display: flex; flex-direction: column; gap: 2px; }

.trust-badge-name {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c8c8c8;
  letter-spacing: 0.4px;
  font-weight: 700;
  white-space: nowrap;
}

.trust-badge-sub {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: var(--text-dim);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-badge-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
  margin: 0 6px;
}

/* ---- Footer variant — smaller, inline centred row ---- */
.trust-strip-footer {
  margin-top: 0;
  margin-bottom: 28px;
  padding-top: 0;
  border-top: none;
}

.trust-badges-footer {
  gap: 4px 0;
}

.trust-badge-sm {
  padding: 9px 16px;
  gap: 9px;
  background: transparent;
  border-color: rgba(255,255,255,0.04);
}

.trust-badge-sm:hover {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}

.trust-badge-sm .trust-badge-name { font-size: 9.5px; color: #888; font-weight: 400; }
.trust-badge-sm .trust-badge-sub  { font-size: 7.5px; color: var(--text-dim); opacity: 0.7; }
.trust-badge-sm .trust-badge-icon { color: rgba(255,255,255,0.2); }
.trust-badge-sm:hover .trust-badge-icon { color: rgba(255,255,255,0.35); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .trust-badges {
    gap: 10px;
    flex-wrap: wrap;
  }
  .trust-badge-sep { display: none; }
  .trust-badge { padding: 10px 18px; }
}

@media (max-width: 480px) {
  .trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .trust-badge-sep { display: none; }
  .trust-badge { justify-content: flex-start; padding: 10px 14px; }
  .trust-badge-sm { padding: 8px 12px; }
  .trust-badges-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
}


/* ============================= */
/* SCROLL REVEAL                 */
/* ============================= */

.fade { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.fade.show { opacity: 1; transform: translateY(0); }


/* ============================= */
/* ACCESSIBILITY                 */
/* ============================= */

/* Keyboard focus styles */
a:focus-visible,
button:focus-visible {
  outline: 1px solid rgba(255,255,255,0.5);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove hover card tilt & heavy transitions on touch devices */
@media (hover: none) {
  .card:hover,
  .focus-card:hover,
  .team-card:hover,
  .advisory-card:hover {
    transform: none;
    border-color: rgba(255,255,255,0.055);
    box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  }
  .card:hover::before { opacity: 0; }
  .card:hover .card-bracket,
  .focus-card:hover .card-bracket,
  .team-card:hover .card-bracket,
  .advisory-card:hover .card-bracket { opacity: 0; }
  .card:hover .card-bar,
  .focus-card:hover .card-bar { width: 0; }
}

/* Reduced motion — disable all animations & transitions */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; }
  .fade.show { opacity: 1; transform: none; }
  .card, .focus-card, .tl-item, .team-card, .advisory-card, .recog-item {
    opacity: 1; transform: none;
  }

  #heroTitle { animation: none; border-right: none; }
  .grid-bg { animation: none; }
  .hero-scroll-hint, .hero-eyebrow, .hero-sub, .hero-pills { animation: none; opacity: 1; transform: none; }
  .scroll-line { animation: none; }
}


/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 1060px) {
  .section { margin: 36px 16px; padding: 38px 28px; }
  .team-scroll-wrap { margin-left: -28px; margin-right: -28px; }
  .team-scroll { padding-left: 28px; padding-right: 28px; }
}

@media (max-width: 1000px) {
  .navbar { padding: 15px 24px; }
  .navbar.scrolled { padding: 11px 24px; }
  nav a { margin-left: 14px; font-size: 9.5px; }
  .grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .focus-grid { grid-template-columns: 1fr; }
  .focus-scroll-wrap { max-height: 440px; }

  .hero-gradient-left, .hero-gradient-right { width: 70px; }
  .stat-band { padding: 22px 20px; }
  .stat-value { font-size: 18px; }
}

@media (max-width: 768px) {
  /* Hide nav links on tablet/mobile — prevents navbar overflow */
  nav { display: none; }

  /* Section label can overflow right at small sizes — rein it in */
  .section-label { right: 16px; top: 16px; font-size: 9px; }

  /* Hero inner must not exceed viewport */
  .hero-inner { width: 100%; max-width: 100%; padding: 0 4px; }

  /* Hero pills: allow individual pills to shrink */
  .hero-pill { font-size: 9.5px; padding: 6px 13px; letter-spacing: 1px; }

  /* Hero sub text */
  .hero-sub { font-size: 15px; }

  /* Stat band: stack items */
  .stat-band-inner { flex-wrap: wrap; gap: 18px; justify-content: center; }
  .stat-div { display: none; }
}

@media (max-width: 720px) {
  .team-card { flex: 0 0 220px; }
  .section { padding: 32px 20px; }
  .team-scroll-wrap { margin-left: -20px; margin-right: -20px; }
  .team-scroll { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 600px) {
  /* Data bar: show only SYS + UTC, hide everything else */
  .data-sep { display: none; }
  .data-item:nth-last-child(-n+4) { display: none; }
  /* Ensure remaining items don't overflow */
  .data-item { padding: 0 10px; }
  .data-val { min-width: 40px; font-size: 9px; }
  .data-label { font-size: 8px; letter-spacing: 1px; }

  /* Timeline */
  .timeline-scroll-wrap { max-height: 380px; }
  .timeline { padding-left: 26px; }
  .tl-item { grid-template-columns: 60px 1fr; gap: 12px; }

  /* Contact grid already 1-col at 1000px, ensure email wraps */
  .contact-grid { gap: 28px; }
}

@media (max-width: 480px) {
  #heroTitle   { font-size: clamp(20px, 6vw, 26px); }
  .section h2  { font-size: 17px; }
  .email       { font-size: 13px; }
  .team-card   { flex: 0 0 200px; }
  .footer-logo img { height: 68px; }

  /* Section label: hide on very small screens to prevent right overflow */
  .section-label { display: none; }

  /* Reduce section padding further */
  .section { padding: 28px 16px; margin: 24px 12px; }
  .team-scroll-wrap { margin-left: -16px; margin-right: -16px; }
  .team-scroll { padding-left: 16px; padding-right: 16px; }


}

/* ============================= */
/* RESEARCH COLLAB NOTE          */
/* ============================= */

.research-collab-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  opacity: 0.55;
}

.rcn-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

.rcn-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.rcn-text a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s;
}

.rcn-text a:hover {
  border-color: rgba(255,255,255,0.6);
}
