/* ── Our Story Page ─────────────────────────────────────────── */

/* Hero */
.story-hero {
  position: relative;
  min-height: 100vh;
  background: #090e1a;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.story-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.story-hero__glow--1 {
  width: 600px; height: 600px;
  background: rgba(0,174,239,0.12);
  top: -100px; left: -100px;
}
.story-hero__glow--2 {
  width: 500px; height: 500px;
  background: rgba(168,85,247,0.1);
  bottom: -100px; right: -50px;
}
.story-hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}
.story-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(0,174,239,0.08);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
}
.story-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.story-hero > .container > .story-hero__content > p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  margin: 0 auto 1rem;
  line-height: 1.8;
}
.story-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.story-hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* Timeline */
.story-timeline {
  background: #0d1117;
  padding: 100px 0;
}
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08) 10%, rgba(255,255,255,0.08) 90%, transparent);
}
.timeline-item {
  position: relative;
  width: 45%;
  margin-bottom: 60px;
}
.timeline-item--left  { margin-left: 0; text-align: right; }
.timeline-item--right { margin-left: 55%; text-align: left; }

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--dot-color);
  box-shadow: 0 0 20px var(--dot-color);
  z-index: 2;
}
.timeline-item--left  .timeline-dot { right: -7.5%; }
.timeline-item--right .timeline-dot { left: -7.5%; }

.timeline-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.timeline-card ul {
  list-style: none;
  padding: 0; margin: 0;
}
.timeline-card ul li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  line-height: 1.6;
}
.timeline-card ul li:first-child { border-top: none; }
.timeline-item--left ul li::before  { content: '← '; opacity: 0.4; }
.timeline-item--right ul li::before { content: '→ '; opacity: 0.4; }

/* Company Entities */
.story-entities {
  position: relative;
  background: #090e1a;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
}
.story-entities__glow {
  position: absolute;
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(0,174,239,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
.section-label-dark {
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.story-entities h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.story-entities__sub {
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto 3rem;
}
.entities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.entity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  z-index: 2;
}
.entity-card:hover {
  border-color: rgba(0,174,239,0.3);
  transform: translateY(-4px);
}
.entity-flag {
  font-size: 2.2rem;
  margin-bottom: 8px;
  line-height: 1;
  display: block;
  /* Force emoji rendering on all systems */
  font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Android Emoji",sans-serif;
}
.entity-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(0,174,239,0.1);
  color: var(--primary);
  border: 1px solid rgba(0,174,239,0.2);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.entity-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.entity-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.entity-detail__label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}
.entity-detail__value {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}
.entity-detail__value--mono {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  color: var(--primary);
}
.entity-desc {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* CTA */
.story-cta {
  background: #0d1117;
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.story-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}
.story-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.story-cta p {
  color: rgba(255,255,255,0.55);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .story-timeline { padding: 60px 0; }

  /* Give the timeline wrapper left breathing room for line + dot */
  .timeline { padding-left: 28px; }
  .timeline-line { left: 0; }

  /* All items: full width, single left-aligned column */
  .timeline-item,
  .timeline-item--left,
  .timeline-item--right {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  /* Dot always on the far left */
  .timeline-item--left  .timeline-dot,
  .timeline-item--right .timeline-dot {
    left: -28px !important;
    right: auto !important;
  }

  /* Uniform arrow direction */
  .timeline-item--left  ul li::before,
  .timeline-item--right ul li::before { content: '→ '; opacity: 0.4; }

  /* Tighter card padding on small screens */
  .timeline-card { padding: 18px 16px; }
  .timeline-card h3 { font-size: 0.95rem; }
  .timeline-card ul li { font-size: 0.8rem; }

  /* Entities single column */
  .entities-grid { grid-template-columns: 1fr; padding: 0 8px; }
  .entity-card { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .story-hero h1 { font-size: 1.7rem; }
  .story-entities h2 { font-size: 1.6rem; }
  .story-cta h2 { font-size: 1.6rem; }
}
