/* Ion Global Analytics - Institutional Premium Design System */

:root {
  /* Premium Deep Navy Palette */
  --bg: #F8F9FC;
  --bg-deep: #0B1120;
  --bg-card: #FFFFFF;
  --accent: #C9A84C;
  --accent-light: #E8D5A3;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --blue: #1E3A5F;
  --blue-light: #2A5298;
  --ink: #0B1120;
  --ink-soft: #1A2332;
  --grey: #6B7A8D;
  --grey-light: #94A3B8;
  --text: #4A5568;
  --border: rgba(11, 17, 32, 0.06);
  --border-strong: rgba(11, 17, 32, 0.12);
  --glow: rgba(201, 168, 76, 0.08);
  --shadow-sm: 0 2px 8px rgba(11, 17, 32, 0.04);
  --shadow-md: 0 8px 30px rgba(11, 17, 32, 0.06);
  --shadow-lg: 0 20px 60px rgba(11, 17, 32, 0.08);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.12);
  --gradient-gold: #C9A84C;
  --gradient-navy: #0D1117;
  --gradient-hero: linear-gradient(180deg, #F8F9FC 0%, #EDF0F7 100%);
  --max-width: 1280px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

/* Page Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

@media(max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Base Typographic Kickers & Headers */
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent) !important;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gradient-gold);
}

/* Section Defs */
section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

@media(max-width: 768px) {
  section {
    padding: 80px 0;
  }
}

/* Header Reset & Styles */
header {
  height: 72px;
  background: rgba(247, 248, 250, 0.96);
  padding: 0 clamp(24px, 4vw, 64px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ion-line);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Market Ticker */
.market-ticker-wrap {
  display: flex;
  align-items: center;
  background: #1A1F2E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  height: 38px;
  overflow: hidden;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: #8892A4;
  position: sticky;
  top: 72px;
  z-index: 99;
}

.ticker-status {
  background: #252A3A;
  color: #A0AEC0;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #48BB78;
  box-shadow: 0 0 6px rgba(72, 187, 120, 0.4);
  animation: pulse-glow 1.8s infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.ticker-track {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  animation: ticker-scroll 32s linear infinite;
}

.ticker-content:hover {
  animation-play-state: paused;
}

.t-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
}

.t-item b {
  color: #CBD5E0;
  font-weight: 600;
}

.t-item i {
  font-style: normal;
  font-weight: 600;
}

.t-item i.up { color: #48BB78; }
.t-item i.down { color: #FC8181; }

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Button & Pill System */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.4s var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pill.purple {
  background: var(--gradient-gold);
  color: var(--ink);
  border: 1px solid var(--accent);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.pill.purple:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.35), 0 0 0 1px var(--accent);
  filter: brightness(1.05);
}

.pill.purple:active {
  transform: translateY(-1px) scale(0.98);
}

.pill.white {
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.pill.white:hover {
  background: #FFFFFF;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-glow);
}

.pill.glass {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.pill.glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.15);
}

/* Hero Section */
.hero-section {
  padding: 140px 0 100px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: left;
}

.hero-copy h1 {
  font-size: clamp(44px, 5.5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

.hero-copy p:not(.kicker) {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 36px;
  max-width: 52ch;
}

.actions {
  display: flex;
  gap: 16px;
}

.hero-visual {
  width: 100%;
}

.quant-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.quote-card, .metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--transition);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quote-card:hover::before,
.metric-card:hover::before {
  opacity: 1;
}

.quote-card:hover, .metric-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent-glow);
}

.quote-card .quote-mark {
  font-size: 56px;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--accent);
  line-height: 0.8;
  display: block;
  margin-bottom: 16px;
  font-weight: 300;
}

.quote-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0;
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.loved {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faces {
  display: flex;
}

.faces img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-right: -8px;
  object-fit: cover;
}

.loved b {
  font-size: 11px;
  font-weight: 600;
  color: var(--grey);
}

.metric-card {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 28px 32px;
}

.metric-card strong {
  font-size: 48px;
  font-weight: 700;
  color: #B0946E;
  line-height: 1;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.metric-card span {
  font-size: 12px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

@media(max-width: 900px) {
  .hero-section {
    padding: 80px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .quote-card, .metric-card {
    padding: 32px 24px;
  }
}

/* About Section */
.about-section {
  background: var(--bg-deep);
  color: #FFFFFF;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  margin-bottom: 24px;
  line-height: 1.1;
  font-weight: 500;
}

.about-copy p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 20px;
  max-width: 65ch;
}

.about-copy blockquote {
  font-family: "Newsreader", serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 32px 0;
  border-left: 2px solid var(--purple);
  padding-left: 24px;
}

.experience-badge {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-top: 40px;
}

.experience-badge strong {
  font-size: 64px;
  font-weight: 500;
  color: var(--purple);
  line-height: 1;
}

.experience-badge span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.about-photo-panel {
  width: 100%;
}

.about-photo {
  height: 540px;
  background: linear-gradient(rgba(8, 10, 14, 0.15), rgba(8, 10, 14, 0.15)), url('assets/research-presentation.png') center/cover;
  border-radius: 6px;
  border: 1px solid var(--ion-line);
}

@media(max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-photo {
    height: 380px;
  }
}

/* Services Capabilities Section */
.services-section {
  background: var(--bg);
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ion-line);
  margin-bottom: 80px;
}

.service-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.4s var(--transition);
  position: relative;
}

.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-row:hover {
  background: var(--glow);
  padding-left: 16px;
}

.service-row:hover::before {
  opacity: 1;
}

.service-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
}

.service-detail h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  font-family: "Manrope", sans-serif;
}

.service-detail p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
  max-width: 72ch;
}

.expert-box {
  background: var(--gradient-navy);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 72px 48px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.expert-box::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.expert-box h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: #FFFFFF;
  margin: 12px 0 28px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
}

.expert-box .actions {
  justify-content: center;
}

@media(max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }
  .expert-box {
    padding: 48px 24px;
  }
}

/* Strategy & Methodology Section */
.technology-section {
  background: var(--bg-deep);
  color: #FFFFFF;
}

/* Process Diagram Flow */
.process-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  padding: 24px 40px;
  border: 1px solid var(--ion-line);
  border-radius: 6px;
  margin-bottom: 80px;
}

.flow-node {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.node-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
  text-transform: uppercase;
}

.node-sub {
  font-size: 9px;
  color: var(--grey);
  text-transform: uppercase;
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.flow-arrow {
  color: var(--purple);
  font-size: 16px;
  font-weight: 300;
  user-select: none;
}

@media(max-width: 800px) {
  .process-flow {
    flex-direction: column;
    gap: 16px;
    padding: 32px 20px;
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tech-photo-panel {
  width: 100%;
}

.tech-photo {
  height: 520px;
  background: linear-gradient(rgba(8, 10, 14, 0.15), rgba(8, 10, 14, 0.15)), url('assets/analyst-workstation.png') center/cover;
  border-radius: 6px;
  border: 1px solid var(--ion-line);
}

.tech-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.tech-step-item {
  border-left: 2px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 0 0 32px !important;
  transform: none !important;
  opacity: 1 !important;
}

.tech-step-item.current {
  border-left-color: var(--purple) !important;
}

.tech-step-item .step-num {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

.tech-step-item h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.tech-step-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey);
}

@media(max-width: 900px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tech-photo {
    height: 360px;
  }
}

/* Team Section */
.team-section {
  background: var(--bg);
}

.team-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
}

.team-section h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  font-weight: 500;
}

.team-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.5s var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--accent-glow);
}

.team-card:hover::before {
  opacity: 1;
}

.person-placeholder {
  height: 200px;
  background: #111419;
  border-radius: 4px;
  border: 1px solid var(--ion-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--grey);
  margin-bottom: 32px;
}

.member-info h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.member-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.member-info ul {
  list-style: none;
}

.member-info li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey);
  margin-bottom: 12px;
  position: relative;
  padding-left: 20px;
}

.member-info li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple);
}

@media(max-width: 900px) {
  .team-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .team-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* FAQ Section */
.faq-section {
  background: var(--bg-deep);
  color: #FFFFFF;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: flex-start;
}

.faq-image {
  height: 560px;
  background: linear-gradient(rgba(8, 10, 14, 0.15), rgba(8, 10, 14, 0.15)), url('assets/nyse-research-floor.png') center/cover;
  border-radius: 6px;
  border: 1px solid var(--ion-line);
  position: relative;
}

.contact-card {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  background: rgba(14, 18, 23, 0.95);
  border: 1px solid var(--ion-line);
  border-radius: 6px;
  padding: 24px 32px;
}

.contact-card p {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.faq-right h2 {
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 40px;
  font-weight: 500;
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.questions details {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.3s var(--transition);
}

.questions details:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-glow);
}

.questions summary {
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.questions summary::-webkit-details-marker {
  display: none;
}

.questions summary:after {
  content: "+";
  font-size: 20px;
  color: var(--purple);
  transition: transform 0.25s ease;
}

.questions details[open] summary:after {
  content: "−";
}

.questions p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--grey);
  margin-top: 16px;
}

@media(max-width: 900px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .faq-image {
    height: 380px;
  }
}

/* Bottom CTA / Appointment Section */
.cta-section {
  background: var(--bg);
}

.cta-box {
  background: var(--gradient-navy);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cta-box::before {
  content: "";
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 1.3;
  color: #FFFFFF;
  max-width: 720px;
  margin: 16px auto 36px;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  position: relative;
  z-index: 1;
}

@media(max-width: 768px) {
  .cta-box {
    padding: 60px 20px;
  }
}

/* Footer Section */
footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  padding: 80px 0 40px;
  color: #FFFFFF;
}

/* Legal Disclaimer */
.legal-disclaimer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-disclaimer p {
  font-size: 11px;
  line-height: 1.7;
  color: rgba(148, 163, 184, 0.6);
  margin-bottom: 12px;
  max-width: 90ch;
}

.legal-disclaimer p:last-child {
  margin-bottom: 0;
}

.legal-disclaimer strong {
  color: rgba(148, 163, 184, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
}

.footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  font-family: "Manrope", sans-serif;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: var(--grey-light);
  line-height: 2;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.copyright-text {
  font-size: 12px !important;
  color: var(--grey);
  margin: 16px 0 24px;
}

.connect-links h3 {
  font-size: 11px;
  margin-bottom: 12px;
}

@media(max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media(max-width: 500px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* === MOTION POLISH === */

/* Masked headline reveals */
.reveal-wrap {
  overflow: hidden;
  display: block;
}
.reveal-wrap > * {
  display: block;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-wrap.revealed > * {
  transform: translateY(0);
}

/* Process flow line-draw animation */
.process-flow .flow-arrow {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.process-flow .flow-node {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-flow.in-view .flow-node,
.process-flow.in-view .flow-arrow {
  opacity: 1;
  transform: none;
}
.process-flow.in-view .flow-node:nth-child(1) { transition-delay: 0s; }
.process-flow.in-view .flow-arrow:nth-child(2) { transition-delay: 0.15s; }
.process-flow.in-view .flow-node:nth-child(3) { transition-delay: 0.3s; }
.process-flow.in-view .flow-arrow:nth-child(4) { transition-delay: 0.45s; }
.process-flow.in-view .flow-node:nth-child(5) { transition-delay: 0.6s; }
.process-flow.in-view .flow-arrow:nth-child(6) { transition-delay: 0.75s; }
.process-flow.in-view .flow-node:nth-child(7) { transition-delay: 0.9s; }
.process-flow.in-view .flow-arrow:nth-child(8) { transition-delay: 1.05s; }
.process-flow.in-view .flow-node:nth-child(9) { transition-delay: 1.2s; }

/* Live data tick feedback */
.t-item i {
  transition: color 0.3s ease, transform 0.3s ease;
}
.t-item i.tick-flash {
  transform: translateY(-2px);
}

/* Image clip reveals */
.about-photo,
.tech-photo,
.faq-image {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-photo.in-view,
.tech-photo.in-view,
.faq-image.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Pill/button hover refinements */
.pill {
  position: relative;
  overflow: hidden;
}
.pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pill:hover::after {
  opacity: 1;
}

/* FAQ accordion smooth open */
.questions details[open] p {
  animation: faq-open 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* Newsletter form in footer */
.newsletter-form {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ion-line);
}
.newsletter-form h3 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.newsletter-form > p {
  font-size: 13px;
  color: var(--grey);
  margin-bottom: 16px;
  line-height: 1.5;
}
.newsletter-form label {
  display: block;
  margin-bottom: 12px;
}
.newsletter-form label span {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.newsletter-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--ion-line);
  background: #111419;
  border-radius: 4px;
  padding: 10px 14px;
  font: 13px "Manrope", sans-serif;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--purple);
}
.newsletter-form .newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--grey);
  line-height: 1.4;
  margin-bottom: 12px;
}
.newsletter-form .newsletter-consent input {
  margin-top: 2px;
  flex-shrink: 0;
}
.newsletter-form .pill {
  padding: 8px 16px;
  font-size: 10px;
}
.newsletter-form .newsletter-status {
  font-size: 12px;
  color: var(--purple);
  margin-top: 8px;
  min-height: 18px;
}

/* Reduced motion: disable new motion additions */
@media (prefers-reduced-motion: reduce) {
  .reveal-wrap > * {
    transform: none !important;
    transition: none !important;
  }
  .process-flow .flow-node,
  .process-flow .flow-arrow {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .about-photo,
  .tech-photo,
  .faq-image {
    opacity: 1 !important;
    transform: none !important;
  }
  .questions details[open] p {
    animation: none !important;
  }
}

/* === INSTITUTIONAL MICRO-INTERACTIONS & HOVER TRANSITIONS === */

/* Card Lift & Fine Elevation Highlight */
.quote-card, .metric-card, .team-card, .expert-box, .cta-box, .contact-card {
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.22s ease !important;
}

.quote-card:hover, .metric-card:hover, .team-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(35, 86, 216, 0.25) !important;
  box-shadow: 0 14px 36px rgba(13, 24, 51, 0.08) !important;
}

/* Image Zoom Containment & Smooth Scale */
.about-photo-panel, .tech-photo-panel, .faq-left {
  overflow: hidden;
  border-radius: 12px;
}

.about-photo, .tech-photo, .faq-image {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease !important;
}

.about-photo-panel:hover .about-photo,
.tech-photo-panel:hover .tech-photo,
.faq-left:hover .faq-image {
  transform: scale(1.035) !important;
}

/* Tactile Active Compression on Buttons */
.pill:active {
  transform: translateY(0) scale(0.98) !important;
}

/* Smooth Service Row Indent Effect */
.service-row {
  transition: background 0.25s ease, padding-left 0.25s ease, border-color 0.25s ease !important;
}

.service-row:hover {
  background: rgba(35, 86, 216, 0.03) !important;
  padding-left: 12px !important;
}

/* Process Flow Nodes Interactive Float */
.flow-node {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.flow-node:hover {
  transform: translateY(-4px) scale(1.02) !important;
  border-color: #60A5FA !important;
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.2) !important;
}

/* FAQ Chevron Smooth Rotation */
.questions summary::after {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease !important;
}

/* Footer Link Slide Effect */
footer a {
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

footer a:hover {
  color: #FFFFFF !important;
  transform: translateX(4px) !important;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  .quote-card:hover, .metric-card:hover, .team-card:hover,
  .about-photo-panel:hover .about-photo,
  .tech-photo-panel:hover .tech-photo,
  .faq-left:hover .faq-image,
  .flow-node:hover,
  footer a:hover {
    transform: none !important;
    transition: none !important;
  }
  .service-row:hover {
    padding-left: 0 !important;
  }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 200;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #B0946E, #C9A84C, #E8D5A3);
  transition: width 80ms linear;
  border-radius: 0 2px 2px 0;
}

/* === BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  color: var(--ink);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-3px);
}
.back-to-top:active {
  transform: translateY(0) scale(0.95);
}
@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 20px;
    right: 20px;
  }
}

/* === MOBILE POLISH (600px and below) === */
@media (max-width: 600px) {
  /* Tighter section padding */
  section {
    padding: 64px 0;
  }

  /* Hero mobile */
  .hero-section {
    padding: 48px 0 56px;
  }
  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  .hero-copy p:not(.kicker) {
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 28px;
  }
  .actions {
    flex-direction: column;
    gap: 12px;
  }
  .actions .pill {
    width: 100%;
    text-align: center;n  }
  .quant-panel {
    gap: 16px;
  }
  .quote-card, .metric-card {
    padding: 24px 20px;
    border-radius: 8px;
  }
  .quote-card .quote-mark {
    font-size: 40px;
  }
  .quote-card p {
    font-size: 15px;
  }
  .metric-card strong {
    font-size: 36px;
  }
  .metric-card span {
    font-size: 11px;
  }

  /* About section mobile */
  .about-section {
    padding: 64px 0;
  }
  .about-copy h2 {
    font-size: 28px;
  }
  .about-copy p {
    font-size: 14px;
  }
  .about-copy blockquote {
    font-size: 18px;
    padding-left: 16px;
  }
  .about-photo {
    height: 280px;
  }

  /* Services mobile */
  .services-section {
    padding: 64px 0;
  }
  .service-row {
    padding: 24px 0;
  }
  .service-num {
    font-size: 12px;
  }
  .service-detail h3 {
    font-size: 17px;
  }
  .service-detail p {
    font-size: 14px;
  }
  .expert-box {
    padding: 40px 20px;
  }
  .expert-box h2 {
    font-size: 24px;
  }

  /* Methodology mobile */
  .technology-section {
    padding: 64px 0;
  }
  .technology-section h2 {
    font-size: 28px;
  }
  .process-flow {
    padding: 20px 16px;
    margin-bottom: 48px;
  }
  .node-label {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .node-sub {
    font-size: 8px;
  }
  .tech-photo {
    height: 260px;
  }
  .tech-step-item h3 {
    font-size: 17px;
  }
  .tech-step-item p {
    font-size: 13px;
  }
n  /* Team mobile */
  .team-section {
    padding: 64px 0;
  }
  .team-section h2 {
    font-size: 28px;
  }
  .team-card {
    padding: 28px 20px;
  }
  .person-placeholder {
    height: 160px;
  }
  .member-info h3 {
    font-size: 18px;
  }
  .member-info li {
    font-size: 13px;
  }
n  /* FAQ mobile */
  .faq-section {
    padding: 64px 0;
  }
  .faq-right h2 {
    font-size: 28px;
    margin-bottom: 28px;
  }
  .faq-image {
    height: 240px;
  }
  .contact-card {
    padding: 20px;
    bottom: 20px;
    left: 20px;
    right: 20px;
  }
  .contact-card p {
    font-size: 12px;
  }
  .questions details {
    padding: 18px 16px;
  }
  .questions summary {
    font-size: 14px;
  }
  .questions p {
    font-size: 13px;
  }
n  /* CTA mobile */
  .cta-box {
    padding: 48px 20px;
  }
  .cta-box h2 {
    font-size: 22px;
  }

  /* Footer mobile */
  footer {
    padding: 48px 0 32px;
  }
  .footer-col h3 {
    font-size: 10px;
  }
  .footer-col p, .footer-col a {
    font-size: 13px;
    line-height: 1.8;
  }
  .copyright-text {
    font-size: 11px !important;
    margin: 12px 0 20px;
  }
  .legal-disclaimer p {
    font-size: 10px;
  }

  /* Ticker mobile */
  .market-ticker-wrap {
    height: 32px;
    font-size: 10px;
  }
  .ticker-status {
    padding: 0 10px;
    font-size: 8px;
    gap: 6px;
  }
  .ticker-content {
    gap: 24px;
  }
}

/* === MOBILE POLISH (480px and below) === */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding: 40px 0 48px;
  }
  .hero-copy h1 {
    font-size: 28px;
  }
  section {
    padding: 56px 0;
  }
  .about-section,
  .technology-section,
  .team-section,
  .faq-section {
    padding: 56px 0;
  }
  .about-copy h2,
  .technology-section h2,
  .team-section h2,
  .faq-right h2 {
    font-size: 24px;
  }
  .process-flow {
    gap: 12px;
  }
  .node-label {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar {
    transition: none;
  }
  .back-to-top {
    transition: opacity 0.15s ease;
  }
}
