@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,300;0,400;0,500;0,700;0,800;1,400&family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg: #080810;
  --bg-2: #0e0e18;
  --surface: #131320;
  --surface-2: #1a1a2e;
  --border: rgba(255,255,255,0.06);
  --border-glow: rgba(225,29,72,0.3);

  --primary: #e11d48;
  --primary-bright: #f43f5e;
  --primary-dim: rgba(225,29,72,0.12);
  --primary-glow: rgba(225,29,72,0.4);
  --primary-glow-sm: rgba(225,29,72,0.2);

  --text: #f1f0f5;
  --text-2: #a8a6b4;
  --text-3: #6b6a78;

  --font-sans: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Space Grotesk', sans-serif;

  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset;
  --shadow-glow: 0 0 40px rgba(225,29,72,0.25), 0 0 80px rgba(225,29,72,0.1);
  --shadow-glow-sm: 0 0 20px rgba(225,29,72,0.2);

  --section-pad: clamp(5rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; }
canvas { display: block; }
img { display: block; }
a { text-decoration: none; color: inherit; touch-action: manipulation; }
button { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; }
ul { list-style: none; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #27273a; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.font-display { font-family: var(--font-display); }
.font-mono    { font-family: var(--font-mono); }

.text-gradient {
  background: linear-gradient(125deg, #fff 0%, #f43f5e 45%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text);
  overflow-wrap: break-word;
}

/* ============================================================
   BACKGROUND PATTERNS
   ============================================================ */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(225,29,72,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(225,29,72,0.05) 1px, transparent 1px);
  background-size: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px);
}

.bg-dots {
  background-image: radial-gradient(rgba(225,29,72,0.12) 1px, transparent 0);
  background-size: 22px 22px;
}

.vignette-top {
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 50%, transparent 100%);
}

/* ============================================================
   GLOW ORBS
   ============================================================ */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orbFloat 12s ease-in-out infinite;
  max-width: 90vw;
  max-height: 90vw;
}

.glow-orb-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: orbFloat 16s ease-in-out infinite reverse;
  max-width: 90vw;
  max-height: 90vw;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -15px) scale(1.05); }
  66%       { transform: translate(-15px, 10px) scale(0.97); }
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#site-header.scrolled {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--primary-bright));
  box-shadow: 0 0 8px var(--primary);
  transition: width 0.08s linear;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
  padding: 0.3rem 0.1rem;
  letter-spacing: -0.01em;
}
.nav-link:hover   { color: var(--text); }
.nav-link.active  { color: var(--primary); }

.mob-nav-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-2);
  transition: color 0.2s;
}
.mob-nav-link:hover { color: var(--primary); }

#mobile-menu {
  background: rgba(8,8,16,0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow-y: auto;
  padding: 5rem 1.5rem 2.5rem;
}

/* ============================================================
   LOGO BOX
   ============================================================ */
.logo-box {
  background: #ffffff;
  padding: 0.25rem 0.45rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(255,255,255,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.logo-box:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(255,255,255,0.35);
}
.logo-box img { display: block; height: 2rem; width: auto; object-fit: contain; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow-glow-sm);
  min-height: 44px;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  min-height: 44px;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ============================================================
   PILL / BADGE
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(225,29,72,0.25);
  background: rgba(225,29,72,0.08);
  color: var(--primary);
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 100%;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.07);
}

.tag-primary {
  background: var(--primary-dim);
  color: var(--primary-bright);
  border-color: rgba(225,29,72,0.2);
}

/* ============================================================
   ICON BADGE
   ============================================================ */
.icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--radius) - 0.2rem);
  background: var(--primary-dim);
  border: 1px solid rgba(225,29,72,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

.hero-bg-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 62rem;
  margin: 0 auto;
  width: 100%;
  padding: 6rem 1.25rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-headline {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.8vw, 1rem);
  max-width: 40rem;
  margin: 0 auto 2rem;
  line-height: 1.75;
  color: var(--text-2);
}

.hero-ticker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(19,19,32,0.72);
  backdrop-filter: blur(16px);
  max-width: 36rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 2.5rem;
}

.ticker-sep {
  color: rgba(255,255,255,0.2);
  display: none;
}
@media (min-width: 480px) { .ticker-sep { display: block; } }

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto 2rem;
}
@media (min-width: 480px) {
  .hero-ctas { flex-direction: row; max-width: none; width: auto; }
}

/* Scroll caret */
@keyframes caretBounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(7px); opacity: 1; }
}
.scroll-caret {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  animation: caretBounce 2.2s ease-in-out infinite;
}

/* ============================================================
   HERO MARQUEE
   ============================================================ */
.hero-marquee-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(8,8,16,0.6);
  backdrop-filter: blur(8px);
  padding: 0.9rem 0;
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   ENTRANCE ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.7s ease forwards; }
.animate-fade-up { animation: fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s cubic-bezier(0.16,1,0.3,1), transform 0.65s cubic-bezier(0.16,1,0.3,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SITE SECTION LAYOUT
   ============================================================ */
.site-section {
  padding: var(--section-pad) 0;
  position: relative;
  /* Ensure content is always above the fixed Three.js canvas */
  isolation: isolate;
}

.section-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) {
  .section-inner { padding: 0 1.5rem; }
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.stat-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.25rem);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  backdrop-filter: blur(12px);
}
.stat-card:hover {
  border-color: rgba(225,29,72,0.3);
  box-shadow: 0 0 30px rgba(225,29,72,0.12), var(--shadow-card);
  transform: translateY(-5px);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.stat-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* ============================================================
   METRIC CARDS
   ============================================================ */
.metric-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(19,19,32,0.6);
  transition: border-color 0.3s, transform 0.3s;
}
.metric-card:hover {
  border-color: rgba(225,29,72,0.2);
  transform: translateY(-3px);
}

/* ============================================================
   STRATEGIC PILLARS
   ============================================================ */
.pillar-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% -10%, rgba(225,29,72,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.pillar-card:hover {
  border-color: rgba(225,29,72,0.3);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
  transform: translateY(-6px);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card:hover .icon-badge {
  background: rgba(225,29,72,0.2);
  box-shadow: var(--shadow-glow-sm);
}

.pillar-num {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(225,29,72,0.07);
  line-height: 1;
}

/* ============================================================
   DOMAIN GRID & CARDS
   ============================================================ */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .domain-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .domain-grid { grid-template-columns: repeat(4, 1fr); } }

.domain-card {
  position: relative;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.domain-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dc) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.domain-card:hover {
  border-color: var(--dc);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35), 0 0 0 1px var(--dc);
  transform: translateY(-6px);
}
.domain-card:hover::after { opacity: 0.05; }

.domain-icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc);
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}
.domain-card:hover .domain-icon-wrap {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

.domain-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.domain-desc {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 0.75rem;
}

.domain-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dtag {
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--dc);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ============================================================
   PREMIUM EVENT CARDS
   ============================================================ */
.event-card-premium {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}
.event-card-premium:hover {
  border-color: rgba(225,29,72,0.3);
  box-shadow: var(--shadow-card), 0 0 40px rgba(225,29,72,0.08);
  transform: translateY(-5px);
}

.ecp-image {
  position: relative;
  height: 11rem;
  overflow: hidden;
}
.ecp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.event-card-premium:hover .ecp-image img { transform: scale(1.06); }

.ecp-date-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(225,29,72,0.35);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--primary-bright);
  font-weight: 600;
}

.ecp-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ============================================================
   HORIZONTAL TIMELINE
   ============================================================ */
.tl-wrap {
  overflow-x: auto;
  overflow-y: visible;
  padding: 1rem 0 1.5rem;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(225,29,72,0.25) transparent;
}
.tl-wrap:active { cursor: grabbing; }
.tl-wrap::-webkit-scrollbar { height: 4px; }
.tl-wrap::-webkit-scrollbar-track { background: transparent; }
.tl-wrap::-webkit-scrollbar-thumb { background: rgba(225,29,72,0.25); border-radius: 99px; }

/* Track container — has the full connecting line via ::before */
.tl-track {
  display: flex;
  align-items: flex-start;
  padding: 1.5rem 4rem 0;
  position: relative;
  width: max-content;
  min-width: 100%;
}

/* The continuous horizontal line across all dots */
.tl-track::before {
  content: '';
  position: absolute;
  top: calc(1.5rem + 6px); /* 1.5rem top-padding + 6px = center of 14px dot */
  left: 5rem;
  right: 5rem;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(225,29,72,0.6) 8%,
    rgba(225,29,72,0.45) 85%,
    transparent
  );
  pointer-events: none;
}

.tl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 18rem;
  padding: 0 1rem;
}

.tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 2.5px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.2), 0 0 14px rgba(225,29,72,0.5);
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  animation: pulseDot 2.5s ease-in-out infinite;
  margin-bottom: 1.75rem;
}

.future-dot {
  background: rgba(225,29,72,0.3);
  border-color: rgba(225,29,72,0.5);
  box-shadow: 0 0 0 3px rgba(225,29,72,0.08);
  animation: none;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(225,29,72,0.2), 0 0 14px rgba(225,29,72,0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(225,29,72,0.1), 0 0 22px rgba(225,29,72,0.6); }
}

.tl-card {
  background: var(--surface);
  border: 1px solid rgba(225,29,72,0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  width: calc(100% - 2rem);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tl-card:hover {
  border-color: rgba(225,29,72,0.35);
  box-shadow: 0 0 24px rgba(225,29,72,0.1);
}
.tl-card-future {
  border-color: rgba(244,63,94,0.2);
  background: rgba(225,29,72,0.04);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.tl-phase {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0.25rem 0 0.75rem;
}
.tl-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.tl-body {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.65;
  color: var(--text-2);
}

/* ============================================================
   SPOTLIGHT CARDS
   ============================================================ */
.spotlight-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 0% 0%, rgba(225,29,72,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.spotlight-card:hover {
  border-color: rgba(225,29,72,0.25);
  box-shadow: var(--shadow-card), 0 0 30px rgba(225,29,72,0.07);
  transform: translateY(-4px);
}

.spotlight-quote {
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: rgba(225,29,72,0.12);
  pointer-events: none;
  user-select: none;
}

.spotlight-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spotlight-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(225,29,72,0.4);
  flex-shrink: 0;
}

/* ============================================================
   TEAM MEMBER CARDS
   ============================================================ */
.member-card {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.member-card:hover {
  border-color: rgba(225,29,72,0.4);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), var(--shadow-glow-sm);
  transform: translateY(-8px) scale(1.015);
}
.member-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s;
}
.member-card:hover img { transform: scale(1.08); filter: brightness(1.06); }

.member-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.95) 0%, rgba(8,8,16,0.3) 55%, transparent 100%);
}
.member-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(0.75rem,2vw,1.25rem);
}
.member-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.8rem,2vw,0.95rem);
  color: #fff;
}
.member-card-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.avatar-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(225,29,72,0.07) 0%, transparent 70%),
    linear-gradient(160deg, #16162a 0%, #0f0f1e 50%, #12121f 100%);
  border-radius: var(--radius-sm);
}

/* Silhouette bust shape */
.avatar-placeholder::before {
  content: '';
  position: absolute;
  bottom: 38%;
  left: 50%;
  transform: translateX(-50%);
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(160deg, #1e1e38 0%, #191930 100%);
  border: 1.5px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 0 10px #12121f;
}

/* Shoulder silhouette */
.avatar-placeholder::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 42%;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: linear-gradient(180deg, #1c1c34 0%, #151526 100%);
  border-top: 1.5px solid rgba(255,255,255,0.05);
}

/* Initials label */
.avatar-placeholder .ap-initials {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
}

/* ============================================================
   GALLERY MASONRY
   ============================================================ */
/* ============================================================
   ABSTRACT RANDOM GRID SYSTEM
   ============================================================ */
.gallery-masonry,
.abstract-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: 1.25rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 640px) {
  .gallery-masonry,
  .abstract-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
}

@media (min-width: 1024px) {
  .gallery-masonry,
  .abstract-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 260px;
    gap: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .gallery-masonry,
  .abstract-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.75rem;
  }
}

/* Span utilities for dynamic abstract grid */
.span-1x1 { grid-column: span 1; grid-row: span 1; }

@media (min-width: 640px) {
  .span-2x1 { grid-column: span 2; grid-row: span 1; }
  .span-1x2 { grid-column: span 1; grid-row: span 2; }
  .span-2x2 { grid-column: span 2; grid-row: span 2; }
  .span-3x1 { grid-column: span 2; grid-row: span 1; }
  .span-3x2 { grid-column: span 2; grid-row: span 2; }
}

@media (min-width: 1024px) {
  .span-2x1 { grid-column: span 2; grid-row: span 1; }
  .span-1x2 { grid-column: span 1; grid-row: span 2; }
  .span-2x2 { grid-column: span 2; grid-row: span 2; }
  .span-3x1 { grid-column: span 3; grid-row: span 1; }
  .span-3x2 { grid-column: span 3; grid-row: span 2; }
}

/* ABSTRACT CARD STYLING */
.abstract-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(19, 19, 32, 0.6);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.abstract-card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 12px 40px -10px rgba(225, 29, 72, 0.35), 0 0 0 1px rgba(225, 29, 72, 0.2);
  transform: translateY(-4px);
}

.abstract-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.abstract-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

/* TECH INDEX MARKER */
.grid-idx {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: rgba(8, 8, 16, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.abstract-card:hover .grid-idx {
  background: rgba(225, 29, 72, 0.85);
  border-color: #f43f5e;
  color: #fff;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

/* CORNER BRACKET DECORATION */
.corner-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.corner-bracket.top-right {
  top: 0.75rem;
  right: 0.75rem;
  border-top: 2px solid #f43f5e;
  border-right: 2px solid #f43f5e;
}
.abstract-card:hover .corner-bracket {
  opacity: 1;
}

/* OVERLAY DECORATION */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,16,0.1) 0%, rgba(8,8,16,0.4) 40%, rgba(8,8,16,0.92) 100%);
  opacity: 0.9;
  transition: opacity 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  z-index: 10;
}
.abstract-card:hover .gallery-overlay {
  background: linear-gradient(180deg, rgba(225,29,72,0.1) 0%, rgba(8,8,16,0.5) 40%, rgba(8,8,16,0.95) 100%);
}

/* PRESET BUTTON STYLES */
.preset-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #a8a6b4;
  transition: all 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.preset-btn:hover {
  border-color: rgba(225, 29, 72, 0.4);
  color: #fff;
  background: rgba(225, 29, 72, 0.12);
}
.preset-btn.active {
  background: rgba(225, 29, 72, 0.2);
  border-color: #e11d48;
  color: #fff;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.3);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }

.faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(19,19,32,0.8);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover { border-color: rgba(225,29,72,0.25); }
.faq-item.open  { border-color: rgba(225,29,72,0.3); }

.faq-question {
  width: 100%;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  text-align: left;
  background: none;
  border: none;
}

.faq-icon { transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1); flex-shrink: 0; color: var(--primary); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 20rem;
  padding: 0 1.25rem 1.25rem;
}

/* ============================================================
   JOIN CTA SECTION
   ============================================================ */
.join-cta {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--bg);
}

.join-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(225,29,72,0.18) 0%, rgba(225,29,72,0.06) 45%, transparent 75%);
  pointer-events: none;
}

.join-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(225,29,72,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(225,29,72,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  opacity: 0.6;
}

.join-inner {
  position: relative;
  z-index: 2;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--bg-2);
  border-top: 1px solid rgba(255,255,255,0.04);
  position: relative;
  z-index: 1;
}

.footer-glow-line {
  height: 1px;
  background: linear-gradient(to right, transparent 0%, var(--primary) 40%, var(--primary-bright) 60%, transparent 100%);
  opacity: 0.45;
}

/* ── CTA Strip ─────────────────────────────────────────────── */
.footer-cta-strip {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(225,29,72,0.04);
}
.footer-cta-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-cta-text { flex: 1; min-width: 0; }

/* ── Main Body ──────────────────────────────────────────────── */
.footer-body {
  max-width: 80rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .footer-body { grid-template-columns: 1.4fr 2fr; gap: 4rem; }
}

.footer-brand-col {}

/* ── Link grid (3 cols) ─────────────────────────────────────── */
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 639px) {
  .footer-links-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.footer-link {
  color: var(--text-3);
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-link:hover { color: var(--primary); padding-left: 2px; }

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* ── Bottom Bar ─────────────────────────────────────────────── */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  margin: 0 1.25rem;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }



/* ============================================================
   SOCIAL ICONS
   ============================================================ */
.social-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.social-icon:hover {
  border-color: rgba(225,29,72,0.4);
  color: var(--primary);
  background: rgba(225,29,72,0.08);
  transform: translateY(-2px);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6,6,12,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lb-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  z-index: 10;
}

.lb-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  padding: 0 1rem;
}

.lb-img {
  flex: 1;
  max-width: 82vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
}

.lb-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
  outline: none;
  cursor: pointer;
}
.lb-btn:hover {
  background: rgba(225,29,72,0.2);
  border-color: rgba(225,29,72,0.4);
  transform: scale(1.1);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
#back-to-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 45;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-sm);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--primary-bright);
  box-shadow: var(--shadow-glow);
}

/* ============================================================
   TILT CARD 3D EFFECT
   ============================================================ */
.tilt-card { perspective: 800px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 639px) {
  :root { --section-pad: 4rem; }
  .hero-headline { font-size: clamp(2rem, 10vw, 3.5rem); }
  .tl-step { width: 15rem; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding: 5rem 0 2rem; }
  .hero-content { padding-top: 5rem; padding-bottom: 1rem; }
}

/* ============================================================
   PULSE DOT (HUD)
   ============================================================ */
@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.85); }
}

/* ============================================================
   LINE CLAMP
   ============================================================ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
