/* ═══════════════════════════════════════════════════
   GUIDING DREAMS · Our Story · ourstory.css
   ═══════════════════════════════════════════════════ */

/* ── Intro ── */
.ost-intro {
  padding: 64px 0 56px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.ost-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.ost-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 14px;
}
.ost-eyebrow::before {
  content: '';
  display: block;
  width: 24px; height: 1.5px;
  background: var(--brand-cyan);
  flex-shrink: 0;
}
.ost-eyebrow--light { color: var(--brand-teal); }
.ost-eyebrow--light::before { background: var(--brand-teal); }

.ost-intro-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
}
.ost-intro-heading em { font-style: italic; color: var(--brand-teal); }

.ost-intro-right p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.78;
  margin-bottom: 12px;
}
.ost-intro-right strong { font-weight: 500; color: var(--black); }

.ost-stats-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.ost-stat { display: flex; flex-direction: column; gap: 3px; }
.ost-stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--brand-navy);
  line-height: 1;
  letter-spacing: -1.5px;
}
.ost-stat-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   TIMELINE SECTION
══════════════════════════════════════════════════════ */
.ost-timeline-section {
  background: #f4f5f3;
  padding: 80px 0 64px;
  position: relative;
}

/* ── Vertical line ── */
.ost-line-wrap {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}
.ost-line-track {
  width: 100%; height: 100%;
  background: rgba(13,31,45,0.08);
  position: relative;
  border-radius: 2px;
}
.ost-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  background: linear-gradient(180deg, var(--brand-cyan), var(--brand-teal));
  border-radius: 2px;
  will-change: height;
}

/* ── Timeline wrapper ── */
.ost-timeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* ── Item row ── */
.ost-item {
  display: grid;
  grid-template-columns: 1fr 68px 1fr;
  align-items: start;
  padding: 20px 0;
}

/* LEFT: card | dot | spacer */
.ost-left .ost-card    { grid-column: 1; grid-row: 1; margin-left: auto; margin-right: 20px; }
.ost-left .ost-dot-col { grid-column: 2; grid-row: 1; }
.ost-left .ost-spacer  { grid-column: 3; grid-row: 1; }

/* RIGHT: spacer | dot | card */
.ost-right .ost-spacer  { grid-column: 1; grid-row: 1; }
.ost-right .ost-dot-col { grid-column: 2; grid-row: 1; }
.ost-right .ost-card    { grid-column: 3; grid-row: 1; margin-left: 20px; margin-right: auto; }

/* Reduce gap on major items */
.ost-item--major { padding: 24px 0; }

/* ── Dot column ── */
.ost-dot-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 8px;
  position: relative;
  z-index: 2;
}

.ost-dot {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(13,31,45,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  flex-shrink: 0;
  cursor: default;
}
.ost-dot:hover {
  border-color: var(--brand-teal);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(62,207,170,0.12);
}
.ost-dot--big {
  width: 54px; height: 54px;
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  box-shadow: 0 4px 20px rgba(13,31,45,0.22);
}
.ost-dot--big:hover {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 8px rgba(62,207,170,0.12);
}

/* ═══════════════════════════════════════════════════
   CARD
═══════════════════════════════════════════════════ */
.ost-card {
  background: var(--white);
  border: 1.5px solid rgba(13,31,45,0.07);
  border-radius: 18px;
  padding: 24px 26px;
  max-width: 530px;
  width: 100%;
  opacity: 0; /* GSAP animates in */
  transition: border-color 0.28s, box-shadow 0.28s, transform 0.28s;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ost-card:hover {
  border-color: rgba(62,207,170,0.28);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}

/* Major card */
.ost-card--major {
  border-color: rgba(62,207,170,0.20);
  background: #fafffe;
  padding-left: 30px;
  position: relative;
}
.ost-card--major::before {
  content: '';
  position: absolute;
  left: 0; top: 20px; bottom: 20px;
  width: 3px;
  background: linear-gradient(180deg, var(--brand-teal), var(--brand-cyan));
  border-radius: 0 2px 2px 0;
}

/* Card header */
.ost-card-date {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 6px;
}

.ost-emoji {
  font-size: 22px;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.ost-card-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin-bottom: 10px;
}
.ost-card-title em { font-style: italic; color: var(--brand-teal); font-size: 0.88em; }

.ost-card-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 0;
}
.ost-card-body strong { font-weight: 500; color: var(--black); }

/* ── Highlight block ── */
.ost-highlight {
  background: rgba(62,207,170,0.07);
  border-left: 3px solid var(--brand-teal);
  border-radius: 0 8px 8px 0;
  padding: 10px 13px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  line-height: 1.62;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
}
.ost-highlight svg { flex-shrink: 0; margin-top: 2px; }
.ost-highlight strong { font-weight: 500; }
.ost-highlight--strong {
  background: rgba(13,31,45,0.05);
  border-color: var(--brand-navy);
}

/* ── Pills ── */
.ost-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.ost-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  background: #f2f3f1;
  border: 1px solid rgba(13,31,45,0.08);
  border-radius: 100px;
  padding: 3px 11px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ost-pill:hover {
  background: rgba(62,207,170,0.09);
  border-color: rgba(62,207,170,0.25);
  color: var(--brand-teal);
}
.ost-pill--teal {
  color: var(--brand-teal);
  background: rgba(62,207,170,0.08);
  border-color: rgba(62,207,170,0.22);
}

/* ── Image grid ── */
.ost-imgs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
}
.ost-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  /* background: linear-gradient(135deg, #e8f5f0, #c8ead8); */
  border-radius: 8px;
  position: relative;
}
.ost-img::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0.25;
  pointer-events: none;
}
.ost-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.45s ease;
  /* border-radius: 20px; */
}
.ost-img img + * { display: none; } /* hide emoji when img loads */
.ost-img:hover img { transform: scale(1.05); }

.ost-single-img {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  /* aspect-ratio: 16/9; */
  background: linear-gradient(135deg, #eaf5fb, #c5e4f5);
  position: relative;
}
.ost-single-img::after {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  opacity: 0.22;
  pointer-events: none;
}
.ost-single-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* ── Team avatars ── */
.ost-team-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.ost-team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.ost-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--brand-navy);
  border: 2px solid rgba(62,207,170,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  color: var(--brand-teal);
  transition: border-color 0.25s, transform 0.25s;
}
.ost-avatar:hover { border-color: var(--brand-teal); transform: scale(1.06); }
.ost-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ost-team-member > span {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   CLOSING SECTION
══════════════════════════════════════════════════════ */
.ost-closing {
  background: white;
  padding: 88px 0;
}
.ost-closing-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}
.ost-closing-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 400;
  color: #000000;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.ost-closing-title em { font-style: italic; color: var(--brand-teal); }
.ost-closing-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 300;
  color: rgba(49, 49, 49, 0.56);
  line-height: 1.78;
  margin-bottom: 32px;
  max-width: 480px;
}
.ost-closing-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ost-btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--brand-navy);
  background: var(--brand-teal);
  border-radius: 8px; padding: 12px 26px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.22s, transform 0.18s;
}
.ost-btn-primary:hover { background: var(--brand-cyan); transform: translateY(-1px); }
.ost-btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  color: rgba(56, 56, 56, 0.72);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.16);
  border-radius: 8px; padding: 12px 26px;
  text-decoration: none;
  display: inline-flex; align-items: center;
  transition: border-color 0.22s, color 0.22s;
}
.ost-btn-ghost:hover { border-color: var(--brand-teal); color: var(--brand-teal); }

/* Year visual */
.ost-year-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  opacity: 0;
}
.ost-yr {
  font-family: 'DM Serif Display', serif;
  font-size: 38px; font-weight: 400;
  color: rgba(29, 29, 29, 0.562);
  line-height: 1; letter-spacing: -2px;
}
.ost-yr-line {
  width: 2px; height: 72px;
  background: rgba(36, 36, 36, 0.678);
  position: relative; overflow: hidden;
}
.ost-yr-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0; height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), var(--brand-teal));
}
.ost-yr-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(62,207,170,0.10);
  border: 1.5px solid rgba(62,207,170,0.26);
  display: flex; align-items: center; justify-content: center;
}
.ost-yr-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--brand-teal);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .ost-intro-inner  { grid-template-columns: 1fr; gap: 32px; }
  .ost-closing-inner{ grid-template-columns: 1fr; gap: 36px; }
  .ost-closing-right{ display: none; }

  /* Single-column timeline on mobile */
  .ost-item {
    grid-template-columns: 52px 1fr !important;
    padding: 16px 0;
  }
  .ost-left .ost-card,
  .ost-right .ost-card {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin-left: 16px !important;
    margin-right: 0 !important;
    max-width: 100%;
  }
  .ost-left .ost-dot-col,
  .ost-right .ost-dot-col {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  .ost-left .ost-spacer,
  .ost-right .ost-spacer { display: none; }
  .ost-line-wrap { left: 26px; transform: none; }
}

@media (max-width: 560px) {
  .ost-timeline-section { padding: 56px 0; }
  .ost-card { padding: 18px 18px; }
  .ost-card--major { padding-left: 20px; }
  .ost-imgs-grid { grid-template-columns: 1fr; }
  .ost-stats-row { gap: 20px; }
}