/* Our Story page: brand blue #014088 + orange #ed5f00 */
.os-eyebrow { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem !important; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #014088 !important; }
.os-eyebrow::after { content: none !important; }
.os-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: #ed5f00; }
.os-title { max-width: none; font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; color: #0a0e1a; margin: 0 0 1rem; }
.os-title .accent { color: #ed5f00; }
.os-head h2 { text-align: center; }
.os-head { max-width: 960px; margin: 0 auto 2.5rem; text-align: center; }
.os-head p:not(.os-eyebrow) { font-size: 1.05rem; line-height: 1.7; color: #475569; margin: 0; }

/* ---------- Hero ---------- */
.os-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: clamp(4rem, 8vw, 7rem) 0 clamp(4.5rem, 8vw, 7.5rem); background: linear-gradient(135deg, #012a5c 0%, #014088 55%, #0a58b8 100%); }
.os-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; background-image: linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(80% 90% at 70% 50%, #000, transparent 80%); mask-image: radial-gradient(80% 90% at 70% 50%, #000, transparent 80%); }
.os-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.os-orb--1 { width: 420px; height: 420px; right: -80px; top: -120px; background: rgba(237, 95, 0, 0.45); animation: os-drift 12s ease-in-out infinite alternate; }
.os-orb--2 { width: 360px; height: 360px; left: -120px; bottom: -160px; background: rgba(56, 130, 255, 0.45); animation: os-drift 15s ease-in-out infinite alternate-reverse; }
.os-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.os-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1.1rem; border-radius: 999px; margin-bottom: 1.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); animation: os-rise 0.8s both; }
.os-badge i { width: 7px; height: 7px; border-radius: 50%; background: #ed5f00; box-shadow: 0 0 0 4px rgba(237, 95, 0, 0.3); }
.os-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; margin: 0 0 1.25rem; animation: os-rise 0.8s 0.1s both; }
.os-hero h1 .accent { color: #ed5f00; }
.os-hero h1::after { content: ""; display: block; width: 76px; height: 4px; margin-top: 1.1rem; border-radius: 4px; background: #ed5f00; }
.os-hero-copy p { font-size: 1.08rem; line-height: 1.7; color: rgba(255, 255, 255, 0.86); margin: 0; max-width: 680px; animation: os-rise 0.8s 0.2s both; }
.os-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.9rem; animation: os-rise 0.8s 0.35s both; }
.os-hero-cta .btn { padding: 1rem 1.7rem; }
.os-hero-art { display: flex; justify-content: center; }
.os-plaque { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 22px; background: #fff; color: #014088; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6); transform: rotate(3deg); animation: os-pop 1s 0.2s cubic-bezier(.22,.61,.36,1) both, os-float 6s 1.3s ease-in-out infinite; }
.os-plaque::before { content: ""; position: absolute; inset: 12px; border: 3px solid #014088; border-radius: 14px; }
.os-plaque::after { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(237, 95, 0, 0.7); border-radius: 8px; }
.os-plaque span { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; }
.os-plaque strong { font-size: clamp(3.4rem, 8vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #ed5f00; margin: 0.15rem 0 0.3rem; }
.os-plaque-bottom { color: #0a0e1a; }
@keyframes os-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes os-pop { from { opacity: 0; transform: rotate(-6deg) scale(0.85); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes os-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes os-drift { to { transform: translate(60px, 40px); } }

/* ---------- Timeline ---------- */
.os-journey { padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem); background: #fff; overflow: hidden; }
.os-slides { display: grid; padding: clamp(0.5rem, 2vw, 1.5rem) 0; }
.os-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(1.5rem, 5vw, 4.5rem); align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s 0.6s; }
.os-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.os-media { justify-self: center; padding: 1rem; }
.os-media img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 24px; box-shadow: 0 30px 50px -26px rgba(1, 64, 136, 0.55); transform: rotate(-5deg) translateX(-24px); transition: transform 0.9s cubic-bezier(.22,.61,.36,1); }
.os-slide.is-active .os-media img { transform: rotate(-3deg); }
.os-year { display: block; font-size: clamp(4.5rem, 12vw, 9.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; color: #014088; transform: translateY(24px); opacity: 0; transition: transform 0.8s 0.1s cubic-bezier(.22,.61,.36,1), opacity 0.8s 0.1s ease; }
.os-text { max-width: 600px; margin: 1.4rem 0 0 clamp(0px, 15vw, 270px); font-size: 1.1rem; line-height: 1.8; color: #334155; transform: translateY(24px); opacity: 0; transition: transform 0.8s 0.25s cubic-bezier(.22,.61,.36,1), opacity 0.8s 0.25s ease; }
.os-text b { color: #014088; }
.os-slide.is-active .os-year, .os-slide.is-active .os-text { transform: none; opacity: 1; }

.os-nav { margin-top: clamp(2rem, 4vw, 3.2rem); overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
.os-track { position: relative; display: flex; min-width: calc(var(--n) * 58px); }
.os-line { position: absolute; top: 8px; left: calc(50% / var(--n)); right: calc(50% / var(--n)); height: 3px; border-radius: 3px; background: #dbe4f1; }
.os-line-fill { display: block; height: 100%; width: 0; border-radius: 3px; background: #014088; transition: width 0.7s cubic-bezier(.22,.61,.36,1); }
.os-node { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0; font: inherit; background: none; border: 0; cursor: pointer; }
.os-dot { position: relative; overflow: hidden; width: 19px; height: 19px; border-radius: 999px; background: #fff; border: 3px solid #014088; transition: width 0.4s ease, background 0.4s ease, border-color 0.4s ease; }
.os-dot::after { content: ""; position: absolute; inset: 0; width: 0; background: #ed5f00; }
.os-label { font-size: 0.82rem; font-weight: 700; color: #94a3b8; transition: color 0.3s ease; }
.os-node:hover .os-label { color: #014088; }
.os-node.is-active .os-dot { width: 42px; background: #fff; border-color: #ed5f00; }
.os-node.is-active .os-dot::after { animation: os-prog var(--ms, 4500ms) linear forwards; }
.os-timeline.is-paused .os-node.is-active .os-dot::after { animation-play-state: paused; }
@keyframes os-prog { to { width: 100%; } }
.os-node.is-active .os-label { color: #0a0e1a; font-size: 0.9rem; }
.os-node:focus-visible { outline: 3px solid #ed5f00; outline-offset: 4px; border-radius: 8px; }

/* ---------- Binding cord ---------- */
.os-cord { position: relative; overflow: hidden; padding: clamp(4rem, 7vw, 6.5rem) 0; background: radial-gradient(40% 30% at 0% 0%, rgba(1, 64, 136, 0.09), transparent 70%), radial-gradient(35% 30% at 100% 100%, rgba(237, 95, 0, 0.09), transparent 70%), #f4f8fe; }
.os-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.os-value { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 2.2rem 2rem 2.4rem; border-radius: 22px; background: #fff; border: 1px solid #e4e9f2; box-shadow: 0 24px 44px -32px rgba(1, 64, 136, 0.55); transition: transform 0.4s cubic-bezier(.22,.61,.36,1), box-shadow 0.4s ease; }
.os-value::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ed5f00, #ffa24d); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.22,.61,.36,1); }
.os-value:hover { transform: translateY(-8px); box-shadow: 0 34px 50px -28px rgba(1, 64, 136, 0.65); border-color: rgba(237, 95, 0, 0.4); }
.os-value:hover::after { transform: scaleX(1); }
.os-value-icon { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 1.5rem; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #014088, #0a58b8); box-shadow: 0 16px 26px -14px rgba(1, 64, 136, 0.9); transition: background 0.4s ease, transform 0.4s ease; }
.os-value:hover .os-value-icon { background: linear-gradient(145deg, #ed5f00, #ff8a3d); transform: rotate(-6deg) scale(1.06); }
.os-value h3 { margin: 0 0 0.7rem; font-size: 1.35rem; font-weight: 800; color: #014088; }
.os-value p { margin: 0; font-size: 1rem; line-height: 1.75; color: #475569; }

/* ---------- CTA ---------- */
.os-cta { position: relative; overflow: hidden; color: #fff; text-align: center; padding: clamp(3.5rem, 6vw, 5rem) 0; background: linear-gradient(115deg, #ed5f00 0%, #ff8a3d 100%); }
.os-cta::before { content: ""; position: absolute; inset: 0; opacity: 0.5; background-image: radial-gradient(rgba(255,255,255,0.22) 1.5px, transparent 1.5px); background-size: 24px 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); mask-image: linear-gradient(90deg, transparent, #000 50%, transparent); }
.os-cta-inner { position: relative; }
.os-cta h2 { margin: 0 0 1.6rem; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; color: #fff; }
.os-cta-btn { padding: 1rem 2rem; background: #014088; color: #fff; }
.os-cta-btn:hover { box-shadow: 0 20px 34px -16px rgba(1, 30, 70, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .os-hero-grid { grid-template-columns: 1fr; }
  .os-hero-art { justify-content: flex-start; }
  .os-plaque { width: min(100%, 260px); }
  .os-slide { grid-template-columns: 1fr; text-align: left; }
  .os-media { justify-self: start; padding: 0.5rem 0 0.5rem 0.5rem; }
  .os-media img { max-width: 220px; }
}
@media (max-width: 1024px) { .os-values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .os-values { grid-template-columns: 1fr; }
  .os-hero-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .os-hero *, .os-orb { animation: none !important; }
  .os-slide, .os-media img, .os-year, .os-text, .os-line-fill, .os-dot { transition: none !important; }
}

/* Timeline heading stays on a single line (wraps only on very small screens) */
.os-journey .os-head { max-width: none; }
.os-journey .os-title { font-size: clamp(1.5rem, 3.2vw, 2.6rem); }
@media (min-width: 640px) { .os-journey .os-title { white-space: nowrap; } }
@media (max-width: 820px) { .os-text { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .os-node.is-active .os-dot::after { animation: none; width: 100%; } }
