/* ============================================================
   i-GotFunded — Components & Effects v5
   Hero canvas, scroll progress, depth layers, mobile menu
   ============================================================ */

/* ─── Scroll progress (top of page) ─── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  z-index: 10001;
  background: transparent;
  pointer-events: none;
}
.scroll-progress-bar {
  height: 100%;
  background: var(--cyan);
  width: 0%;
  transform-origin: left center;
  will-change: transform;
}

/* ─── Hero canvas (Three.js mount) ─── */
.hero-canvas-wrap {
  perspective: 1200px;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6, 92, 233, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

/* ─── Hero floating data card ─── */
.hero-data-card {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  background: rgba(10, 18, 40, 0.86);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px;
  color: var(--paper);
  min-width: 220px;
  box-shadow: 0 16px 40px rgba(10, 18, 40, 0.18);
  transform: translate3d(0, 0, 0);
}
.hero-data-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.hero-data-card-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--pulse);
  border-radius: 50%;
  animation: live-pulse 1.6s var(--ease) infinite;
}
.hero-data-card-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.hero-data-card-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(244, 242, 238, 0.6);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
  .hero-data-card { top: 16px; right: 16px; padding: 12px 16px; min-width: 180px; }
  .hero-data-card-num { font-size: 1.4rem; }
}

/* ─── Bento card variants ─── */
.bento-card .bento-eyebrow {
  margin-bottom: 24px;
}
.bento-card .bento-num {
  margin-bottom: 12px;
}
.bento-card .bento-meta {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-card.dark .bento-meta { color: rgba(244, 242, 238, 0.5); }
.bento-card.cobalt .bento-meta { color: rgba(244, 242, 238, 0.65); }

.bento-card.tall { display: flex; flex-direction: column; }
.bento-card .bento-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--paper-warm);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.bento-card.dark .bento-icon { background: rgba(255, 255, 255, 0.06); color: var(--cyan); }
.bento-card.cobalt .bento-icon { background: rgba(255, 255, 255, 0.10); color: var(--cyan); }

/* ─── Card with image (high-res photo) ─── */
.bento-card.image-card {
  padding: 0;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  position: relative;
  isolation: isolate;
}
.bento-card.image-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s var(--ease);
  transform: scale(1.02);
}
.bento-card.image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 18, 40, 0.92) 0%, rgba(10, 18, 40, 0.30) 60%, transparent 100%);
  z-index: 1;
}
.bento-card.image-card .image-card-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: var(--paper);
}
.bento-card.image-card .image-card-content h3 { color: var(--paper); margin-bottom: 8px; }
.bento-card.image-card .image-card-content p { color: rgba(244, 242, 238, 0.78); font-size: 0.95rem; }
.bento-card.image-card:hover img { transform: scale(1.06); }

/* ─── Three.js orbit guide (subtle center ring around 3d scene) ─── */
.orbit-guide {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}
.orbit-guide.outer {
  inset: 4%;
  border-style: dashed;
  opacity: 0.25;
  animation: spin 80s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─── Custom cursor (subtle) ─── */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    width: 8px; height: 8px;
    background: var(--ink);
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.12s var(--ease), background 0.2s ease, width 0.18s var(--ease), height 0.18s var(--ease);
    will-change: transform;
    mix-blend-mode: difference;
    opacity: 0;
  }
  .cursor-dot.ready { opacity: 1; }
  .cursor-dot.hover {
    width: 36px; height: 36px;
    background: var(--cyan);
    mix-blend-mode: normal;
  }
}

/* ─── Section divider line (editorial) ─── */
.divider-line {
  width: 100%;
  height: 1px;
  background: var(--hairline);
}
.divider-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 80px 0 56px;
}
.divider-eyebrow::before, .divider-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ─── Story / values  ─── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: start;
}
.story-grid .story-left { position: sticky; top: 120px; }
.story-grid h2 { margin-bottom: 24px; }
.story-grid .story-photo {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.story-grid .story-photo img { width: 100%; height: 280px; object-fit: cover; }
.story-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
}
.story-block:last-child { border-bottom: none; }
.story-block h3 { font-size: 1.15rem; margin-bottom: 10px; }
.story-block p { font-size: 1rem; color: var(--ink-soft); }
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 1fr; gap: 56px; }
  .story-grid .story-left { position: static; }
}

/* ─── Apply page — split layout ─── */
.apply-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) {
  .apply-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Apply hero stats card ─── */
.apply-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px;
  gap: 8px;
}
.apply-hero-stats .stat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  text-align: left;
}
.apply-hero-stats .stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--paper);
  line-height: 0.95;
  margin-bottom: 8px;
}
.apply-hero-stats .stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 242, 238, 0.5);
}

.benefit-list { display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.benefit-item:last-child { border-bottom: none; }
.benefit-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.benefit-check svg { width: 12px; height: 12px; }
.benefit-text h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.benefit-text p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ─── How it works — step rows (editorial) ─── */
.steps-list {
  border-top: 1px solid var(--hairline);
}
.step-block {
  display: grid;
  grid-template-columns: 80px 1fr 1.4fr;
  gap: 32px;
  padding: 64px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.step-block:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.85;
  color: var(--ink);
}
.step-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.step-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}
.step-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.0;
  margin-bottom: 16px;
}
.step-body p { margin-bottom: 14px; font-size: 1rem; }
.step-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper-warm);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.step-pill::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cobalt);
}
@media (max-width: 768px) {
  .step-block { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
}

/* ─── Timeline ─── */
.timeline {
  position: relative;
  padding-left: 36px;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--hairline-strong);
}
.timeline-item {
  position: relative;
  padding-bottom: 36px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -41px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--cobalt);
}
.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 6px;
}
.timeline-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; margin-bottom: 4px; }
.timeline-detail { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }

/* ─── Roles list (careers) ─── */
.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.3s var(--ease);
}
.role-card:hover { padding-left: 12px; padding-right: 12px; }
.role-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 8px;
}
.role-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.role-dept { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }
.role-meta { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.role-location {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.role-apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}
.role-apply-btn:hover { background: var(--cobalt); transform: translateY(-1px); }
@media (max-width: 768px) {
  .role-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .role-meta { flex-direction: row-reverse; gap: 16px; }
}

/* ─── ISO benefits (careers) ─── */
.iso-benefits { display: flex; flex-direction: column; gap: 8px; }
.iso-benefit {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.iso-benefit:last-child { border-bottom: none; }
.iso-benefit-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--paper-warm);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.iso-benefit-icon svg { width: 18px; height: 18px; }
.iso-benefit h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; margin-bottom: 4px; }
.iso-benefit p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .orbit-guide.outer { animation: none; }
}

/* ─── Print ─── */
@media print {
  .scroll-progress, #hero-canvas, .hero-data-card, .cursor-dot { display: none !important; }
}
