/* Quantbot Technologies - Modernized Stylesheet
 * Brand Colors:
 * - Base Deep Navy: #031D44
 * - Midnight Navy: #092A5B
 * - Card Slate: #0C2747
 * - Accent Green: #60A244
 * - Accent Mint Green: #94C97E
 * - Pale Green: #D0E7C5
 * - Accent Electric Blue: #07439D
 * - Soft Sky Blue: #B1CFFC
 */

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

:root {
  --bg-primary: #031D44;
  --bg-secondary: #092A5B;
  --bg-card: rgba(12, 39, 71, 0.78);
  --bg-card-hover: rgba(16, 50, 92, 0.92);
  --bg-glass: rgba(3, 29, 68, 0.84);
  --accent-green: #60A244;
  --accent-mint: #94C97E;
  --accent-pale: #D0E7C5;
  --accent-blue: #07439D;
  --accent-sky: #B1CFFC;
  --accent-gold: #E6D5B8;
  --accent-gold-dim: rgba(230, 213, 184, 0.28);
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.84);
  --text-muted: rgba(255, 255, 255, 0.58);
  --border-color: rgba(96, 162, 68, 0.3);
  --border-focus: #94C97E;
  --border-card: rgba(148, 201, 126, 0.32);
  --specular-top: inset 0 1px 1px rgba(255, 255, 255, 0.35);
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 14px 40px rgba(96, 162, 68, 0.22);
  --shadow-card: 0 20px 50px -12px rgba(0, 0, 0, 0.55), 0 0 20px rgba(96, 162, 68, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.22);
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --expo-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --slow-ease-out: cubic-bezier(0.04, 1.15, 0.4, 0.99);
  --power-4-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --font-body: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Source Sans 3', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-height: 84px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  line-height: 1.6;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

.text-mint { color: var(--accent-mint); }
.text-green { color: var(--accent-green); }
.text-pale { color: var(--accent-pale); }
.text-sky { color: var(--accent-sky); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.uppercase-tracking {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.section-tag {
  display: inline-block;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 780px;
  margin-bottom: 2rem;
}

.heading-bar {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.heading-bar::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-green));
  border-radius: var(--radius-full);
}
.heading-bar.center-bar::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Wrapper / Container */
.wrapper {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Interactive Canvas Background */
#quant-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 201, 126, 0.12);
  transition: var(--transition-normal);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: rgba(2, 19, 44, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-bottom-color: rgba(96, 162, 68, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-fast);
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-logo:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-mint);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link .caret {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link .caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(7, 26, 56, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(96, 162, 68, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  min-width: 240px;
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(96, 162, 68, 0.15);
  color: var(--accent-mint);
  padding-left: 24px;
}

.dropdown-link.active {
  color: var(--accent-mint);
  font-weight: 700;
  background: rgba(96, 162, 68, 0.1);
}

/* Header Contact Pill */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.email-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-mint);
  text-decoration: none;
  padding: 6px 14px;
  background: rgba(12, 39, 71, 0.6);
  border: 1px solid rgba(96, 162, 68, 0.3);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.email-pill:hover {
  background: rgba(96, 162, 68, 0.2);
  border-color: var(--accent-mint);
  color: #FFFFFF;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #60A244 0%, #46842c 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(96, 162, 68, 0.35);
  border: 1px solid rgba(148, 201, 126, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #71ba51 0%, #519634 100%);
  box-shadow: 0 8px 25px rgba(96, 162, 68, 0.55);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--accent-green);
}

.btn-secondary:hover {
  background: rgba(96, 162, 68, 0.15);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--accent-mint);
  margin: 6px auto;
  transition: var(--transition-fast);
  border-radius: 2px;
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: rgba(3, 29, 68, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(96, 162, 68, 0.3);
  padding: 100px 32px 40px;
  transition: right var(--transition-normal);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--accent-mint);
}

.mobile-submenu {
  list-style: none;
  padding-left: 18px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-submenu-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  padding: 4px 0;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
  color: var(--accent-mint);
}

.mobile-contact-info {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Main Content Area */
main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.45;
  filter: contrast(110%) brightness(85%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 50%, rgba(7, 67, 157, 0.3) 0%, rgba(3, 29, 68, 0.95) 80%);
  z-index: -1;
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(96, 162, 68, 0.15);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-full);
  color: var(--accent-mint);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 0%, #D0E7C5 50%, #94C97E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 680px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Feature Grid Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-mint));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-card);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-sm);
  background: rgba(96, 162, 68, 0.15);
  border: 1px solid rgba(96, 162, 68, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Section Container */
.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background: #021736;
}

/* Strategy Timeline */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px;
  position: relative;
  transition: var(--transition-normal);
}

.timeline-step:hover {
  border-color: var(--accent-mint);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(96, 162, 68, 0.35);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 48px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: var(--transition-normal);
  position: relative;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-glow);
}

.team-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
  border-radius: var(--radius-full);
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-blue));
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: #021736;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.team-role {
  font-size: 0.9rem;
  color: var(--accent-mint);
  font-weight: 600;
  margin-bottom: 16px;
}

.team-bio-preview {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
  text-align: left;
}

.team-read-more {
  color: var(--accent-mint);
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: auto;
  transition: var(--transition-fast);
}

.team-read-more:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #071f48;
  border: 1px solid var(--accent-mint);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform var(--transition-fast);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: var(--accent-green);
}

/* Interactive Tabs Component */
.tabs-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  margin-top: 48px;
}

.tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-btn {
  background: rgba(12, 39, 71, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  color: var(--accent-mint);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-btn:hover {
  background: rgba(16, 50, 92, 0.85);
  color: #FFFFFF;
  border-color: var(--accent-mint);
}

.tab-btn.active {
  background: linear-gradient(90deg, #07439D 0%, #0C2747 100%);
  color: #FFFFFF;
  border-color: var(--accent-mint);
  box-shadow: 0 4px 20px rgba(7, 67, 157, 0.4);
}

.tab-pane {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.tab-pane-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-pane-header img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist li {
  position: relative;
  padding-left: 36px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: rgba(96, 162, 68, 0.2);
  border: 1px solid var(--accent-mint);
  border-radius: var(--radius-full);
  color: var(--accent-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* FAQ / Founders Q&A */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-mint);
}

.faq-question {
  padding: 24px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  width: 100%;
  border: none;
  color: #FFFFFF;
  text-align: left;
}

.faq-question .icon {
  font-size: 1.25rem;
  color: var(--accent-mint);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.faq-author {
  display: block;
  margin-top: 14px;
  color: var(--accent-mint);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Page Components */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.office-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.office-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.office-card:hover {
  border-color: var(--accent-mint);
  transform: translateY(-3px);
}

.office-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.office-body {
  padding: 16px 20px;
}

.office-city {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.office-address {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form Styling */
.form-card {
  background: #071f48;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(3, 29, 68, 0.7);
  border: 1px solid rgba(96, 162, 68, 0.35);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 3px rgba(148, 201, 126, 0.2);
  background: rgba(3, 29, 68, 0.95);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Filter Controls (News, Blog, Careers) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding: 16px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--accent-green);
  border-color: var(--accent-mint);
  color: #FFFFFF;
}

.search-input-wrap {
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  background: rgba(3, 29, 68, 0.8);
  border: 1px solid rgba(96, 162, 68, 0.4);
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-size: 0.875rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-mint);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* News / Blog Cards */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-mint);
  box-shadow: var(--shadow-glow);
}

.article-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #021736;
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.825rem;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 12px;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #FFFFFF;
}

.article-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.article-title a:hover {
  color: var(--accent-mint);
}

.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* Footer */
.site-footer {
  background-color: #02132d;
  background-image: url('../assets/london_skyline.png');
  background-size: cover;
  background-position: center bottom;
  position: relative;
  z-index: 10;
  margin-top: 80px;
  border-top: 1px solid rgba(96, 162, 68, 0.25);
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 29, 68, 0.96) 0%, rgba(2, 19, 45, 0.98) 100%);
  z-index: -1;
}

.footer-top {
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-mint);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-mint);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
}

.footer-legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--accent-mint);
}

/* Legal Document Styles */
.legal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin: 40px 0 80px;
}

.legal-content h2 {
  color: var(--accent-mint);
  font-size: 1.5rem;
  margin-top: 36px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 201, 126, 0.2);
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.95rem;
}

.legal-table th, .legal-table td {
  padding: 14px 18px;
  border: 1px solid rgba(96, 162, 68, 0.3);
  text-align: left;
}

.legal-table th {
  background: rgba(96, 162, 68, 0.2);
  color: #FFFFFF;
  font-weight: 700;
}

.legal-table td {
  background: rgba(3, 29, 68, 0.4);
  color: var(--text-secondary);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-desktop,
  .header-actions .email-pill {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

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

  .tabs-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .wrapper {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section {
    padding: 60px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card,
  .legal-content {
    padding: 24px;
  }

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

/* ============================================================================
   MASTER SYNTHESIS UPGRADE: CLASSIC • MODERN • SOPHISTICATED • ELEGANT
   Inspired by Moonlab /inspo: Luxury Typography, Swiss Grid, Spatial visionOS,
   Danilo De Marco, Niccolò Miranda, 2xA Studio, Bleibtgleich, Bulbs & Thibaut
   ============================================================================ */

/* 1. Multi-Theme Institutional Palettes (bleibtgleich.dev inspired) */
html[data-theme="atelier-gold"] {
  --bg-primary: #090A0D;
  --bg-secondary: #12141A;
  --bg-card: rgba(20, 22, 28, 0.84);
  --bg-card-hover: rgba(28, 31, 40, 0.95);
  --bg-glass: rgba(9, 10, 13, 0.88);
  --accent-green: #C5A059;
  --accent-mint: #E6D5B8;
  --accent-pale: #F5EBD6;
  --accent-blue: #2A2419;
  --accent-sky: #D4C3A3;
  --accent-gold: #E6D5B8;
  --border-color: rgba(230, 213, 184, 0.24);
  --border-focus: #E6D5B8;
  --border-card: rgba(230, 213, 184, 0.32);
  --shadow-glow: 0 16px 44px rgba(197, 160, 89, 0.2);
}

html[data-theme="swiss-editorial"] {
  --bg-primary: #F6F3EC;
  --bg-secondary: #EAE5D9;
  --bg-card: rgba(255, 253, 248, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.99);
  --bg-glass: rgba(246, 243, 236, 0.92);
  --accent-green: #1B4332;
  --accent-mint: #2D6A4F;
  --accent-pale: #40916C;
  --accent-blue: #181816;
  --accent-sky: #3A5A40;
  --accent-gold: #8C6D46;
  --text-primary: #141615;
  --text-secondary: rgba(20, 22, 21, 0.82);
  --text-muted: rgba(20, 22, 21, 0.56);
  --border-color: rgba(24, 24, 22, 0.18);
  --border-focus: #1B4332;
  --border-card: rgba(24, 24, 22, 0.22);
  --shadow-subtle: 0 4px 16px rgba(24, 24, 22, 0.06);
  --shadow-glow: 0 14px 34px rgba(27, 67, 50, 0.12);
  --shadow-card: 0 12px 30px -8px rgba(24, 24, 22, 0.1);
}

html[data-theme="swiss-editorial"] .brand-logo img,
html[data-theme="swiss-editorial"] .footer-brand .brand-logo img,
html[data-theme="swiss-editorial"] .footer-logo img {
  filter: invert(0.88) hue-rotate(175deg) saturate(1.4);
}

html[data-theme="swiss-editorial"] .hero-overlay {
  background: linear-gradient(135deg, rgba(246, 243, 236, 0.94) 0%, rgba(234, 229, 217, 0.86) 100%) !important;
}

html[data-theme="swiss-editorial"] .section-dark,
html[data-theme="swiss-editorial"] .site-footer,
html[data-theme="swiss-editorial"] .footer {
  background: #EAE5D9 !important;
  color: #141615;
}

html[data-theme="vision-spatial"] {
  --bg-primary: #050B16;
  --bg-secondary: #0B1528;
  --bg-card: rgba(15, 25, 45, 0.52);
  --bg-card-hover: rgba(22, 38, 68, 0.72);
  --bg-glass: rgba(8, 15, 29, 0.72);
  --accent-green: #0EA5E9;
  --accent-mint: #38BDF8;
  --accent-pale: #BAE6FD;
  --accent-blue: #1E3A8A;
  --accent-sky: #7DD3FC;
  --accent-gold: #E0F2FE;
  --border-color: rgba(255, 255, 255, 0.22);
  --border-focus: #38BDF8;
  --border-card: rgba(255, 255, 255, 0.26);
  --shadow-glow: 0 24px 60px rgba(14, 165, 233, 0.25);
}

html[data-theme="titanium-quant"] {
  --bg-primary: #0F1114;
  --bg-secondary: #16191E;
  --bg-card: rgba(24, 27, 32, 0.9);
  --bg-card-hover: rgba(32, 36, 43, 0.98);
  --bg-glass: rgba(15, 17, 20, 0.9);
  --accent-green: #D97706;
  --accent-mint: #F59E0B;
  --accent-pale: #FDE68A;
  --accent-blue: #27272A;
  --accent-sky: #10B981;
  --accent-gold: #F59E0B;
  --border-color: rgba(245, 158, 11, 0.28);
  --border-focus: #F59E0B;
  --border-card: rgba(255, 255, 255, 0.16);
  --shadow-glow: 0 20px 48px rgba(245, 158, 11, 0.18);
}

/* Surface Physics Variations for Random Roll */
html[data-surface="swiss-grid"] {
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
}

html[data-surface="spatial-glass"] {
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 30px;
}

html[data-surface="luxury-filigree"] .card,
html[data-surface="luxury-filigree"] .timeline-step,
html[data-surface="luxury-filigree"] .bento-cell {
  outline: 1px solid var(--accent-gold-dim);
  outline-offset: -6px;
}

/* Luxury Editorial Serif Accent Class */
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 2. Top Institutional Telemetry Bar (2xa.studio & Cybercore inspired) */
.qb-telemetry-bar {
  position: relative;
  z-index: 102;
  background: rgba(2, 14, 34, 0.94);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding: 6px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="swiss-editorial"] .qb-telemetry-bar {
  background: #141615;
  color: #F6F3EC;
}

.qb-telemetry-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qb-clocks-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.qb-sys-prefix {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-mint);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.qb-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
  animation: qbPulse 2s infinite;
}

@keyframes qbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.qb-hub-clock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.78);
}

.qb-hub-clock strong {
  color: var(--accent-gold);
  font-weight: 600;
}

.qb-controls-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qb-ctrl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s var(--expo-ease-out);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.qb-ctrl-btn:hover,
.qb-ctrl-btn.active {
  background: var(--accent-mint);
  color: #031D44;
  border-color: var(--accent-mint);
  box-shadow: 0 0 14px rgba(148, 201, 126, 0.4);
}

.qb-ctrl-btn.qb-roll-btn {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-green));
  color: #031D44;
  border-color: rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.qb-ctrl-btn.qb-roll-btn:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 18px var(--accent-mint);
}

/* 3. Top Scroll Progress Bar (ollivere.webflow.io inspired) */
.qb-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold), var(--accent-green));
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 12px var(--accent-mint);
}

/* 4. 12-Column Architectural Swiss Grid Overlay (bulbs.simondupety.com) */
.qb-swiss-grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 998;
  padding: 0 24px;
}

.qb-swiss-grid-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.qb-swiss-col {
  height: 100%;
  background: rgba(148, 201, 126, 0.035);
  border-left: 1px dashed rgba(148, 201, 126, 0.22);
  border-right: 1px dashed rgba(148, 201, 126, 0.22);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 460ms cubic-bezier(0.645, 0.045, 0.355, 1);
  position: relative;
}

.qb-swiss-col::before {
  content: attr(data-col);
  position: absolute;
  top: 96px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-mint);
  opacity: 0.7;
  letter-spacing: 0.08em;
}

body.show-swiss-grid .qb-swiss-col {
  transform: scaleY(1);
}

/* 5. Dense 25%-Opacity Live Scroll Section Minimap Index (bulbs.simondupety.com) */
.qb-minimap-index {
  position: fixed;
  left: 20px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-subtle);
  max-width: 190px;
}

.qb-minimap-header {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-gold);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qb-minimap-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  opacity: 0.28;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qb-minimap-item::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.qb-minimap-item:hover,
.qb-minimap-item.is-active {
  opacity: 1;
  color: var(--accent-mint);
  transform: translateX(3px);
}

.qb-minimap-item.is-active::before {
  box-shadow: 0 0 8px var(--accent-mint);
}

/* 6. Dual-Layer Character Split Wave Hover (danilodemarco.com) */
.qb-split-wrap {
  display: inline-grid;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.2;
}

.qb-split-layer {
  grid-area: 1 / 1;
  display: inline-flex;
}

.qb-split-layer .qb-char {
  display: inline-block;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--char-index, 0) * 16ms);
  will-change: transform;
}

.qb-split-layer.layer-clone .qb-char {
  transform: translateY(115%);
  color: var(--accent-mint);
}

a:hover .qb-split-layer.layer-orig .qb-char,
button:hover .qb-split-layer.layer-orig .qb-char {
  transform: translateY(-115%);
}

a:hover .qb-split-layer.layer-clone .qb-char,
button:hover .qb-split-layer.layer-clone .qb-char {
  transform: translateY(0%);
}

/* 7. Cursor-Reactive Radial Spotlight & Specular Rim Cards (React Bits & Spatial visionOS) */
.card,
.timeline-step,
.team-card,
.office-card,
.blog-card,
.news-card,
.job-card,
.bento-cell {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  /* Zero-duration border highlight entry + 450ms eased exit trail (bleibtgleich.dev) */
  transition:
    transform 0.45s var(--expo-ease-out),
    box-shadow 0.45s var(--expo-ease-out),
    background 0.45s var(--expo-ease-out),
    border-color 0.45s var(--expo-ease-out);
}

.card:hover,
.timeline-step:hover,
.team-card:hover,
.office-card:hover,
.blog-card:hover,
.news-card:hover,
.job-card:hover,
.bento-cell:hover {
  transition:
    transform 0.35s var(--expo-ease-out),
    box-shadow 0.2s ease,
    background 0s,
    border-color 0s;
}

.card::before,
.timeline-step::before,
.team-card::before,
.office-card::before,
.bento-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(148, 201, 126, 0.15),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover::before,
.timeline-step:hover::before,
.team-card:hover::before,
.office-card:hover::before,
.bento-cell:hover::before {
  opacity: 1;
}

.card > *,
.timeline-step > *,
.bento-cell > * {
  position: relative;
  z-index: 1;
}

/* 8. Custom Magnetic Spring Cursor & Context Pill Host (thibaut.cool & danilodemarco.com) */
@media (pointer: fine) {
  .qb-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(148, 201, 126, 0.55);
    pointer-events: none;
    z-index: 9998;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.28s var(--expo-ease-out), height 0.28s var(--expo-ease-out), background 0.28s ease, border-color 0.28s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .qb-cursor-ring.is-hovering {
    width: 54px;
    height: 54px;
    background: rgba(148, 201, 126, 0.12);
    border-color: var(--accent-gold);
  }

  .qb-cursor-pill {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    background: rgba(3, 29, 68, 0.92);
    color: var(--accent-mint);
    border: 1px solid var(--accent-mint);
    padding: 4px 10px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translate3d(-100px, -100px, 0) scale(0.85);
    transition: opacity 0.2s var(--expo-ease-out);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
  }

  .qb-cursor-pill.is-visible {
    opacity: 1;
  }
}

/* 9. GPU-Composited Infinite Institutional Marquee Ticker (niccolomiranda.com) */
.qb-marquee-strip {
  position: relative;
  overflow: hidden;
  background: rgba(6, 22, 48, 0.86);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 13px 0;
  backdrop-filter: blur(12px);
  z-index: 5;
}

html[data-theme="swiss-editorial"] .qb-marquee-strip {
  background: #EAE5D9;
}

.qb-marquee-track {
  display: flex;
  width: max-content;
  gap: 42px;
  will-change: transform;
  animation: qbMarqueeScroll 38s linear infinite;
}

.qb-marquee-strip:hover .qb-marquee-track {
  animation-play-state: paused;
}

.qb-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  white-space: nowrap;
}

.qb-marquee-item strong {
  color: var(--accent-mint);
}

.qb-marquee-sep {
  color: var(--accent-gold);
  opacity: 0.7;
}

@keyframes qbMarqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* 10. Continuous 360° Rotating Circular SVG Seal Stamp (danilodemarco.com & surrealism) */
.qb-rotating-seal {
  position: relative;
  width: 132px;
  height: 132px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.qb-rotating-seal svg.seal-ring {
  width: 100%;
  height: 100%;
  animation: qbSealSpin 22s linear infinite;
}

.qb-rotating-seal:hover svg.seal-ring {
  animation-duration: 7s;
}

.qb-rotating-seal .seal-core {
  position: absolute;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 0, 0, 0.35);
}

@keyframes qbSealSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 11. Interactive QuantLab Strategy & Alpha Simulator */
.quantlab-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}

.quantlab-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: stretch;
}

.quantlab-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(3, 18, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

html[data-theme="swiss-editorial"] .quantlab-controls {
  background: rgba(234, 229, 217, 0.7);
}

.quantlab-field label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-mint);
  margin-bottom: 8px;
}

.quantlab-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quantlab-pill {
  flex: 1 1 auto;
  text-align: center;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantlab-pill:hover,
.quantlab-pill.active {
  background: var(--accent-mint);
  color: #031D44;
  border-color: var(--accent-mint);
  font-weight: 700;
}

.quantlab-display {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.quantlab-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quantlab-metric-box {
  background: rgba(3, 18, 42, 0.52);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
}

html[data-theme="swiss-editorial"] .quantlab-metric-box {
  background: rgba(234, 229, 217, 0.75);
}

.quantlab-metric-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.quantlab-metric-val {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-mint);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.quantlab-canvas-wrap {
  position: relative;
  height: 250px;
  border-radius: 14px;
  background: rgba(2, 12, 28, 0.72);
  border: 1px solid var(--border-color);
  padding: 16px;
  overflow: hidden;
}

/* 12. Bento Grid Matrix (Style #11 Bento Grid) */
.bento-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-span-2 {
  grid-column: span 2;
}

.bento-row-2 {
  grid-row: span 2;
}

/* 13. Command Palette Modal (#qb-cmd-palette) & Random Roll Toast */
.qb-cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(2, 10, 24, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 11vh;
}

.qb-cmd-backdrop.is-open {
  display: flex;
}

.qb-cmd-box {
  width: 92%;
  max-width: 620px;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-focus);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), var(--specular-top);
  overflow: hidden;
}

.qb-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.qb-cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.qb-cmd-list {
  max-height: 360px;
  overflow-y: auto;
  padding: 10px;
}

.qb-cmd-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.12s ease;
}

.qb-cmd-item:hover {
  background: rgba(148, 201, 126, 0.16);
  color: var(--accent-mint);
}

.qb-roll-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9995;
  background: var(--bg-glass);
  border: 1px solid var(--accent-mint);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(148, 201, 126, 0.25);
  backdrop-filter: blur(18px);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 0.45s var(--expo-ease-out), opacity 0.45s ease;
  max-width: 340px;
}

.qb-roll-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================================
   14. UNIFIED HEADER TELEMETRY & FLUID 7-STAGE PRESENTATION DECK (HOMEPAGE)
   ============================================================================ */

/* Unified Header Telemetry Pill & Action Buttons */
.qb-header-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.qb-header-telemetry strong {
  color: var(--text-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qb-header-telemetry .sep {
  opacity: 0.35;
}

.qb-header-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.qb-header-pill-btn:hover {
  border-color: var(--accent-mint);
  background: rgba(148, 201, 126, 0.14);
  color: var(--accent-mint);
  transform: translateY(-1px);
}

.qb-header-pill-btn kbd {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-gold);
}

/* Hide side minimap on homepage presentation deck so only the bottom Stage HUD shows */
body.is-home-presentation .qb-minimap-index {
  display: none;
}

/* Shared Presentation Stage Typography & Tokens */
.p-stage {
  position: relative;
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.p-stage-container {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 96px;
}

.p-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-mint);
  margin-bottom: 18px;
}

.p-eyebrow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 201, 126, 0.14);
  border: 1px solid rgba(148, 201, 126, 0.38);
  color: var(--accent-gold);
  font-weight: 700;
}

.p-stage-title {
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.p-stage-desc {
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 600px;
}

/* ----------------------------------------------------------------------------
   STAGE 01: OPENING KEYNOTE HERO
   ---------------------------------------------------------------------------- */
.p-stage-hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--header-height);
  overflow: hidden;
}

.p-stage-hero .p-stage-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 42px;
}

.p-hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
  margin-bottom: 48px;
}

.p-hero-title {
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.p-hero-title .p-line {
  display: block;
}

.p-hero-title .p-serif-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  color: var(--accent-gold);
  letter-spacing: 0.01em;
  margin-top: 12px;
}

.p-hero-lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 32px;
}

.p-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.p-hero-plinth {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.p-plinth-item {
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(6, 26, 58, 0.58);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

html[data-theme="swiss-editorial"] .p-plinth-item {
  background: rgba(255, 255, 255, 0.85);
}

.p-plinth-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.p-plinth-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-mint);
  margin-bottom: 4px;
}

.p-plinth-lbl {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------------------
   STAGE 02: PINNED 4-SLIDE ARCHITECTURAL DECK (WHAT MAKES US DIFFERENT)
   ---------------------------------------------------------------------------- */
.p-stage-pillars {
  position: relative;
  height: 340vh;
  background: linear-gradient(180deg, rgba(3, 22, 52, 0.55) 0%, rgba(4, 29, 68, 0.82) 100%);
}

html[data-theme="swiss-editorial"] .p-stage-pillars {
  background: #EFECE4;
}

.p-pillars-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.p-pillars-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.p-pillar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.p-pillar-tab {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-pillar-tab:hover {
  border-color: rgba(148, 201, 126, 0.45);
  color: var(--text-primary);
}

.p-pillar-tab.is-active {
  background: linear-gradient(135deg, rgba(148, 201, 126, 0.16), rgba(7, 67, 157, 0.28));
  border-color: var(--accent-mint);
  color: var(--text-primary);
  transform: translateX(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.p-pillar-tab-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.p-pillar-tab.is-active .p-pillar-tab-num {
  background: var(--accent-mint);
  color: #031D44;
}

.p-pillar-tab-title {
  font-weight: 700;
  font-size: 0.98rem;
}

.p-pillar-tab-meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Right 3D Card Stack */
.p-pillars-right {
  position: relative;
  height: min(560px, 72vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1400px;
}

.p-deck-card {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(6, 26, 58, 0.92);
  border: 1px solid var(--border-color);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: grid;
  grid-template-rows: 220px 1fr;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 64px, -90px) scale(0.92);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
}

html[data-theme="swiss-editorial"] .p-deck-card {
  background: #FFFFFF;
  box-shadow: 0 24px 60px rgba(20, 22, 21, 0.12);
}

.p-deck-card.is-past {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -56px, -60px) scale(0.94);
}

.p-deck-card.is-active {
  opacity: 1;
  pointer-events: auto;
  border-color: var(--accent-gold);
  transform: translate3d(0, 0, 0) scale(1);
  z-index: 4;
}

.p-deck-card.is-next {
  opacity: 0.32;
  pointer-events: none;
  transform: translate3d(0, 28px, -40px) scale(0.96);
  z-index: 2;
}

.p-deck-card-media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.p-deck-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s ease;
}

.p-deck-card.is-active .p-deck-card-media img {
  transform: scale(1.04);
}

.p-deck-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 29, 68, 0.1) 0%, rgba(6, 26, 58, 0.92) 100%);
}

html[data-theme="swiss-editorial"] .p-deck-card-media::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 22, 21, 0.55) 100%);
}

.p-deck-card-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(3, 18, 42, 0.85);
  border: 1px solid var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.p-deck-card-body {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p-deck-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.p-deck-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(148, 201, 126, 0.12);
  border: 1px solid rgba(148, 201, 126, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
}

.p-deck-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p-deck-card-head h3 {
  font-size: 1.55rem;
  margin: 4px 0 0;
}

.p-deck-card-body p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.p-deck-card-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.p-deck-card-specs span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.p-deck-card-specs strong {
  font-size: 0.86rem;
  color: var(--accent-mint);
}

/* ----------------------------------------------------------------------------
   STAGE 03: PINNED HORIZONTAL STRATEGY PIPELINE CONVEYOR
   ---------------------------------------------------------------------------- */
.p-stage-pipeline {
  position: relative;
  height: 360vh;
}

.p-pipeline-sticky {
  position: sticky;
  top: var(--header-height);
  height: calc(100dvh - var(--header-height));
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.p-pipeline-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.p-pipeline-status-box {
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(6, 26, 58, 0.72);
  border: 1px solid var(--border-color);
}

html[data-theme="swiss-editorial"] .p-pipeline-status-box {
  background: #FFFFFF;
}

.p-pipe-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 10px;
}

html[data-theme="swiss-editorial"] .p-pipe-progress-track {
  background: rgba(20, 22, 21, 0.12);
}

.p-pipe-progress-fill {
  height: 100%;
  width: 16.6%;
  background: linear-gradient(90deg, var(--accent-mint), var(--accent-gold));
  border-radius: 999px;
  transition: width 0.15s ease-out;
}

.p-pipeline-track-viewport {
  width: 100%;
  overflow: hidden;
  padding: 12px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.p-pipeline-track {
  display: flex;
  gap: 24px;
  width: max-content;
  will-change: transform;
}

.p-phase-card {
  width: clamp(320px, 32vw, 410px);
  min-height: 320px;
  padding: 30px;
  border-radius: 22px;
  background: rgba(6, 26, 58, 0.75);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease,
              opacity 0.35s ease;
  cursor: pointer;
}

html[data-theme="swiss-editorial"] .p-phase-card {
  background: #FFFFFF;
}

.p-phase-card.is-active {
  border-color: var(--accent-mint);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42), 0 0 28px rgba(148, 201, 126, 0.16);
}

.p-phase-card.is-complete {
  border-color: rgba(230, 213, 184, 0.45);
}

.p-phase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.p-phase-num {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--accent-mint);
}

.p-phase-card.is-active .p-phase-num {
  color: var(--accent-gold);
}

.p-phase-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(148, 201, 126, 0.12);
  color: var(--accent-mint);
}

.p-phase-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.p-phase-desc {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.p-phase-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.p-phase-footer strong {
  color: var(--accent-gold);
}

/* ----------------------------------------------------------------------------
   STAGE 04: OUR STORY — EDITORIAL SCROLLYTELLING & PORTRAIT GALLERY
   ---------------------------------------------------------------------------- */
.p-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.p-kinetic-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.48;
  color: var(--text-primary);
  padding: 22px 26px;
  margin: 24px 0;
  border-left: 3px solid var(--accent-gold);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 16px 16px 0;
}

.qb-quote-word {
  opacity: 0.28;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.qb-quote-word.is-word-lit {
  opacity: 1;
  color: var(--accent-gold);
}

.p-story-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.p-story-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 4 / 4.4;
  background: #041531;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.p-story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s ease;
}

.p-story-card:hover img,
.p-story-card.is-active img {
  transform: scale(1.06);
}

.p-story-card:hover,
.p-story-card.is-active {
  border-color: var(--accent-gold);
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}

.p-story-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 16px 14px;
  background: linear-gradient(180deg, rgba(3, 18, 42, 0) 0%, rgba(3, 18, 42, 0.94) 100%);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-story-caption span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent-mint);
}

.p-story-caption strong {
  font-size: 0.98rem;
  color: #FFFFFF;
}

/* ----------------------------------------------------------------------------
   15. UNIFIED FLOATING PRESENTATION STAGE HUD BAR (BOTTOM CENTER)
   ---------------------------------------------------------------------------- */
.p-deck-hud {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1180;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(3, 18, 42, 0.88);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
  font-family: var(--font-mono);
}

html[data-theme="swiss-editorial"] .p-deck-hud {
  background: rgba(20, 22, 21, 0.94);
  color: #F6F3EC;
}

.p-hud-stages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.p-hud-pill {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-hud-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.p-hud-pill.is-active {
  background: rgba(148, 201, 126, 0.18);
  border-color: var(--accent-mint);
  color: var(--accent-mint);
}

.p-hud-pill-label {
  display: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.p-hud-pill.is-active .p-hud-pill-label {
  display: inline;
}

.p-hud-divider {
  width: 1px;
  height: 18px;
  background: var(--border-color);
}

.p-hud-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 201, 126, 0.4);
  background: rgba(148, 201, 126, 0.12);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.p-hud-next-btn:hover {
  background: var(--accent-mint);
  color: #031D44;
  border-color: var(--accent-mint);
}

.p-hud-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.p-hud-icon-btn:hover,
.p-hud-icon-btn.is-active {
  background: var(--accent-mint);
  color: #031D44;
  border-color: var(--accent-mint);
}

/* ----------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS FOR PRESENTATION DECK
   ---------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .qb-header-telemetry {
    display: none;
  }
  .p-pillars-grid,
  .p-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p-stage-pillars {
    height: auto;
  }
  .p-pillars-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding: 80px 0;
  }
  .p-pillars-right {
    height: auto;
  }
  .p-card-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    height: auto;
  }
  .p-deck-card,
  .p-deck-card.is-past,
  .p-deck-card.is-active,
  .p-deck-card.is-next {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .p-stage-pipeline {
    height: auto;
  }
  .p-pipeline-sticky {
    position: relative;
    top: 0;
    height: auto;
    padding: 80px 0;
  }
  .p-pipeline-track-viewport {
    overflow-x: auto;
    padding-bottom: 16px;
  }
  .quantlab-grid {
    grid-template-columns: 1fr;
  }
  .bento-matrix {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .p-hero-layout {
    grid-template-columns: 1fr;
  }
  .p-hero-aside {
    display: none;
  }
  .p-hero-plinth {
    grid-template-columns: repeat(2, 1fr);
  }
  .p-story-gallery,
  .quantlab-metrics-row,
  .bento-matrix {
    grid-template-columns: 1fr;
  }
  .bento-span-2 {
    grid-column: span 1;
  }
  .p-hud-next-btn,
  .p-hud-pill-label {
    display: none !important;
  }
  .qb-header-pill-btn span,
  .qb-header-pill-btn kbd {
    display: none;
  }
}

