/* ======================================================
   OUR STORY PAGE — PLAYFUL REDESIGN
   Inherits: style.css (navbar, footer, reveal, base)
====================================================== */

:root {
  --os-ink: #1f2957;
  --os-soft-ink: #41507a;
  --os-card-cream: #fffdf4;
  --os-white: #ffffff;
  --os-surface: rgba(255, 255, 255, 0.88);
  --os-glass: rgba(255, 255, 255, 0.72);
  --os-outline-soft: rgba(255, 255, 255, 0.86);
  --os-shadow-lg: 0 24px 45px rgba(20, 37, 88, 0.2);
  --os-shadow-md: 0 12px 24px rgba(20, 37, 88, 0.16);
}

.os-page {
  background:
    radial-gradient(circle at 18% -5%, rgba(255, 220, 108, 0.44) 0%, rgba(255, 220, 108, 0) 32%),
    radial-gradient(circle at 95% 2%, rgba(88, 210, 255, 0.36) 0%, rgba(88, 210, 255, 0) 38%),
    linear-gradient(180deg, #e5f9ff 0%, #fff8e2 52%, #ffe9f5 100%);
}

.os-page main {
  position: relative;
  isolation: isolate;
}

.os-page main::before,
.os-page main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.os-page main::before {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 10%, rgba(255, 224, 126, 0.22) 0, rgba(255, 224, 126, 0) 36%),
    radial-gradient(circle at 90% 20%, rgba(138, 225, 255, 0.2) 0, rgba(138, 225, 255, 0) 35%),
    radial-gradient(circle at 28% 70%, rgba(255, 173, 221, 0.17) 0, rgba(255, 173, 221, 0) 32%);
}

.os-page main::after {
  z-index: -1;
  opacity: 0.34;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.52) 0 1px, transparent 1px 100%);
  background-size: 20px 20px;
}

/* Remove global dark vignette for brighter sections. */
.os-page .sec::after {
  opacity: 0;
}

/* ── Nav button for OUR STORY ── */
.n-story {
  background: linear-gradient(160deg, #f4a3ff 0%, #8b6bff 100%);
}

/* ======================================================
   HERO — OUR STORY
====================================================== */
#os-hero {
  min-height: clamp(640px, var(--app-vh-stable), 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 237, 140, 0.85) 0, rgba(255, 237, 140, 0.45) 16%, rgba(255, 237, 140, 0) 36%),
    radial-gradient(circle at 87% 14%, rgba(123, 204, 255, 0.8) 0, rgba(123, 204, 255, 0.45) 16%, rgba(123, 204, 255, 0) 38%),
    linear-gradient(175deg, #8ed8ff 0%, #86d6fd 36%, #9fd9ff 62%, #b3e3ff 100%);
}

#os-hero::before,
#os-hero::after,
#os-hero .os-hero-bg::before,
#os-hero .os-hero-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

#os-hero::before {
  width: clamp(320px, 46vw, 620px);
  height: clamp(320px, 46vw, 620px);
  top: -180px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 244, 179, 0.92) 0%, rgba(255, 244, 179, 0.14) 58%, rgba(255, 244, 179, 0) 72%);
  z-index: 0;
  animation: osPulseGlow 6.4s ease-in-out infinite;
}

#os-hero::after {
  width: 140%;
  height: 150px;
  left: -20%;
  bottom: -65px;
  z-index: 1;
  background:
    radial-gradient(circle at 10% 0, #fef3ac 0 38px, transparent 40px),
    radial-gradient(circle at 28% 0, #ffd4ed 0 40px, transparent 42px),
    radial-gradient(circle at 48% 0, #c8f4ff 0 36px, transparent 38px),
    radial-gradient(circle at 68% 0, #fff1b3 0 38px, transparent 40px),
    radial-gradient(circle at 86% 0, #ffd8f6 0 36px, transparent 38px);
  opacity: 0.62;
}

#os-hero .os-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/Background.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: soft-light;
  transform: scale(1.08);
  overflow: hidden;
}

#os-hero .os-hero-bg::before {
  inset: -8%;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.34) 0, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at 80% 75%, rgba(255, 233, 155, 0.32) 0, rgba(255, 233, 155, 0) 44%),
    linear-gradient(170deg, rgba(74, 179, 255, 0.22) 0%, rgba(255, 185, 228, 0.18) 100%);
  animation: osAuroraDrift 18s ease-in-out infinite alternate;
}

#os-hero .os-hero-bg::after {
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(142, 216, 255, 0.08) 0%, rgba(255, 245, 197, 0.28) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
}

#os-hero .sec-inner {
  position: relative;
  z-index: 4;
  min-height: clamp(620px, var(--app-vh-stable), 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(74px, 11vw, 120px) 20px 110px;
}

.os-hero-inner {
  position: relative;
  width: min(860px, 95vw);
}

.os-hero-inner::before {
  content: "";
  position: absolute;
  width: clamp(240px, 46vw, 500px);
  height: clamp(120px, 24vw, 240px);
  left: 50%;
  top: clamp(120px, 20vw, 180px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 244, 194, 0.58) 0%, rgba(255, 244, 194, 0) 70%);
  z-index: -1;
  filter: blur(2px);
}

.os-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(160deg, rgba(255, 248, 203, 0.98) 0%, rgba(255, 231, 128, 0.94) 100%);
  color: #7c5300;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: clamp(12px, 1.8vw, 16px);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  box-shadow: 0 9px 0 rgba(179, 123, 0, 0.24), 0 14px 24px rgba(74, 53, 0, 0.16);
  transform: rotate(-2deg);
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
  animation: osPopIn 650ms var(--ease-bounce) both;
}

.os-hero-badge::before {
  content: "*";
  font-size: 18px;
}

.os-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(52px, 12vw, 124px);
  line-height: 0.94;
  letter-spacing: clamp(2px, 0.7vw, 6px);
  color: #fff1a4;
  -webkit-text-stroke: clamp(2px, 0.55vw, 5px) #5d3f00;
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 rgba(93, 63, 0, 0.34), 0 10px 26px rgba(93, 63, 0, 0.24), 0 0 30px rgba(255, 242, 152, 0.22);
  animation: osPopIn 760ms var(--ease-bounce) 90ms both;
}

.os-hero-sub {
  margin: 20px auto 0;
  max-width: 640px;
  width: min(640px, calc(100vw - 32px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 13px 26px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 244, 213, 0.9) 100%);
  color: #2f4f78;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 28px);
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 10px 0 rgba(82, 123, 165, 0.22), 0 16px 30px rgba(53, 89, 132, 0.2);
  backdrop-filter: blur(4px);
  animation: osPopIn 760ms var(--ease-bounce) 180ms both;
}

/* Floating stickers */
.os-float-icons {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.os-fi {
  position: absolute;
  font-size: clamp(26px, 4.6vw, 50px);
  opacity: 0.92;
  filter: drop-shadow(0 8px 12px rgba(37, 58, 95, 0.24));
  transform-origin: center;
  animation: osWobble var(--dur, 4.8s) ease-in-out infinite;
  animation-delay: var(--del, 0s);
}

.os-fi:nth-child(1) {
  top: 16%;
  left: 10%;
  --dur: 4.2s;
}

.os-fi:nth-child(2) {
  top: 22%;
  right: 8%;
  --dur: 3.7s;
  --del: -0.8s;
}

.os-fi:nth-child(3) {
  top: 56%;
  left: 5%;
  --dur: 5.1s;
  --del: -1.4s;
}

.os-fi:nth-child(4) {
  top: 63%;
  right: 8%;
  --dur: 4.1s;
  --del: -0.5s;
}

.os-fi:nth-child(5) {
  top: 77%;
  left: 15%;
  --dur: 4.7s;
  --del: -1.8s;
}

.os-fi:nth-child(6) {
  top: 76%;
  right: 16%;
  --dur: 4.4s;
  --del: -1.2s;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  border: 2px solid rgba(255, 255, 255, 0.96);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: #3c5680;
  text-transform: uppercase;
  box-shadow: 0 7px 16px rgba(58, 90, 131, 0.2);
  backdrop-filter: blur(6px);
  animation: osHintFloat 2.2s ease-in-out infinite;
}

.scroll-hint::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: osArrowDrop 1.3s ease-in-out infinite;
}

/* ======================================================
   STORY TRAIL NAV
====================================================== */
.os-story-trail-wrap {
  position: sticky;
  top: calc(var(--nav-h-desktop) - 2px);
  z-index: 22;
  padding: 14px clamp(16px, 4vw, 40px) 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 225, 0.9) 0%, rgba(255, 239, 248, 0.76) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(122, 159, 196, 0.24);
  backdrop-filter: blur(10px);
}

.os-story-trail-wrap::after {
  content: "";
  position: absolute;
  left: clamp(16px, 4vw, 44px);
  right: clamp(16px, 4vw, 44px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(115, 151, 196, 0) 0%, rgba(115, 151, 196, 0.45) 50%, rgba(115, 151, 196, 0) 100%);
}

.os-story-trail {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 12px;
}

.os-trail-stop {
  --trail-accent: #7ecfff;
  text-decoration: none;
  color: var(--os-ink);
  position: relative;
  overflow: hidden;
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.95) 0%, color-mix(in srgb, var(--trail-accent) 17%, white) 100%);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 20px;
  padding: 11px 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  box-shadow: 0 9px 0 rgba(44, 63, 112, 0.12), 0 14px 20px rgba(25, 37, 79, 0.12);
  transition: transform 220ms var(--ease-bounce), box-shadow 220ms ease, filter 220ms ease;
}

.os-trail-stop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--trail-accent) 76%, #ffffff) 0%, color-mix(in srgb, var(--trail-accent) 34%, #ffffff) 100%);
}

.os-trail-stop::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--trail-accent) 78%, white);
  opacity: 0.76;
}

.os-trail-stop:nth-child(odd) {
  transform: rotate(-1.2deg);
}

.os-trail-stop:nth-child(even) {
  transform: rotate(1.1deg);
}

.os-trail-stop:nth-child(1) {
  --trail-accent: #ffbe56;
}

.os-trail-stop:nth-child(2) {
  --trail-accent: #8fd85e;
}

.os-trail-stop:nth-child(3) {
  --trail-accent: #ff79c1;
}

.os-trail-stop:nth-child(4) {
  --trail-accent: #65d4ff;
}

.os-trail-stop:nth-child(5) {
  --trail-accent: #ffd86f;
}

.os-trail-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 13px;
  color: #113f61;
  background: linear-gradient(160deg, color-mix(in srgb, var(--trail-accent) 42%, white) 0%, color-mix(in srgb, var(--trail-accent) 70%, white) 100%);
  border: 2px solid #fff;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--trail-accent) 40%, transparent);
}

.os-trail-text {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.7vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-trail-stop:hover,
.os-trail-stop:focus-visible {
  transform: translateY(-5px) rotate(0deg);
  box-shadow: 0 12px 0 rgba(44, 63, 112, 0.15), 0 18px 24px rgba(25, 37, 79, 0.16);
  filter: saturate(1.09);
}

.os-trail-stop:active {
  transform: translateY(-1px) rotate(0deg);
}

.os-trail-stop:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ======================================================
   SECTION WRAPPERS + BACKGROUNDS
====================================================== */
#os-beginning,
#os-why,
#os-parents,
#os-more,
#os-hope {
  position: relative;
  overflow: clip;
}

#os-beginning > *,
#os-why > *,
#os-parents > *,
#os-more > *,
#os-hope > * {
  position: relative;
  z-index: 1;
}

#os-beginning::before,
#os-why::before,
#os-parents::before,
#os-more::before,
#os-hope::before,
#os-beginning::after,
#os-why::after,
#os-parents::after,
#os-more::after,
#os-hope::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

#os-beginning::before,
#os-why::before,
#os-parents::before,
#os-more::before,
#os-hope::before {
  width: clamp(180px, 34vw, 360px);
  height: clamp(180px, 34vw, 360px);
  right: -88px;
  top: 12%;
  border-radius: 50%;
  opacity: 0.5;
  background: radial-gradient(circle, color-mix(in srgb, var(--os-accent) 58%, white) 0%, rgba(255, 255, 255, 0) 72%);
  animation: osBlobFloat 12s ease-in-out infinite;
}

#os-beginning::after,
#os-why::after,
#os-parents::after,
#os-more::after,
#os-hope::after {
  width: clamp(140px, 28vw, 260px);
  height: clamp(140px, 28vw, 260px);
  left: -72px;
  bottom: 8%;
  border-radius: 50%;
  opacity: 0.38;
  background: radial-gradient(circle, color-mix(in srgb, var(--os-accent) 40%, white) 0%, rgba(255, 255, 255, 0) 76%);
  animation: osBlobFloat 14s ease-in-out infinite reverse;
}

#os-beginning {
  --os-accent: #ffb448;
  --os-bg-top: #fff3bf;
  background: linear-gradient(180deg, #fff3bf 0%, #ffe6aa 100%);
}

#os-why {
  --os-accent: #72ce45;
  --os-bg-top: #dcf8cf;
  background: linear-gradient(180deg, #dcf8cf 0%, #c9efba 100%);
}

#os-parents {
  --os-accent: #ff61b4;
  --os-bg-top: #ffe0f1;
  background: linear-gradient(180deg, #ffe0f1 0%, #ffd2e8 100%);
}

#os-more {
  --os-accent: #4acfff;
  --os-bg-top: #d8f3ff;
  background: linear-gradient(180deg, #d8f3ff 0%, #c6eaff 100%);
}

#os-hope {
  --os-accent: #ffd84f;
  --os-bg-top: #fff2bf;
  background: linear-gradient(180deg, #fff2bf 0%, #ffe8ca 100%);
}

/* ── Image banner — visible header per section ── */
.os-sec-banner {
  position: relative;
  margin: clamp(14px, 2vw, 24px) clamp(12px, 2vw, 20px) 0;
  height: clamp(480px, 78vh, 860px);
  overflow: hidden;
  border-radius: clamp(20px, 3vw, 32px);
  border: 2px solid rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 34px rgba(20, 37, 88, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.os-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  filter: brightness(0.88) saturate(1.06);
  transform: scale(1.015);
}

#os-more .os-banner-img { object-position: center 54%; }
#os-beginning .os-banner-img { object-position: center 38%; }

/* ── Title inside banner ── */
.os-banner-title {
  position: relative;
  z-index: 3;
  width: min(88%, 980px);
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 80px);
  letter-spacing: clamp(1px, 0.25vw, 4px);
  line-height: 1.06;
  color: var(--os-accent);
  -webkit-text-stroke: clamp(2px, 0.4vw, 5px) #fff;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.18), 0 8px 28px rgba(0, 0, 0, 0.12);
  text-wrap: balance;
  pointer-events: none;
  transition: text-shadow 320ms ease;
}

/* Cute title entrance inside each banner */
.os-sec-banner .os-banner-title.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.86) rotate(-1.4deg);
  filter: blur(7px) saturate(1.2);
  transition:
    opacity 780ms cubic-bezier(.22, 1, .36, 1),
    transform 900ms cubic-bezier(.22, 1, .36, 1),
    filter 760ms ease;
}

.os-sec-banner .os-banner-title.reveal.on {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0deg);
  filter: blur(0) saturate(1);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.58),
    0 6px 16px rgba(0, 0, 0, 0.22),
    0 10px 30px rgba(0, 0, 0, 0.16),
    0 0 26px color-mix(in srgb, var(--os-accent) 22%, transparent);
  animation: osBannerTitlePop 980ms var(--ease-bounce) both, osBannerTitleGlow 4.8s ease-in-out 1s infinite;
}

.os-sec-banner .os-banner-title::before,
.os-sec-banner .os-banner-title::after {
  content: "";
  position: absolute;
  width: clamp(14px, 2.6vw, 24px);
  height: clamp(14px, 2.6vw, 24px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: color-mix(in srgb, var(--os-accent) 48%, white);
  opacity: 0;
  transform: scale(0.2) rotate(0deg);
  box-shadow: 0 4px 12px rgba(20, 37, 88, 0.18);
}

.os-sec-banner .os-banner-title::before {
  left: clamp(-6px, -1vw, -18px);
  top: clamp(-14px, -2vw, -24px);
}

.os-sec-banner .os-banner-title::after {
  right: clamp(-8px, -1vw, -20px);
  bottom: clamp(-8px, -1.4vw, -18px);
}

.os-sec-banner .os-banner-title.reveal.on::before {
  animation: osBannerDotIn 760ms var(--ease-bounce) 120ms both, osBannerDotBob 2.8s ease-in-out 1.1s infinite;
}

.os-sec-banner .os-banner-title.reveal.on::after {
  animation: osBannerDotIn 760ms var(--ease-bounce) 240ms both, osBannerDotBob 3.1s ease-in-out 1.3s infinite reverse;
}

/* ── Wave bottom ── */
.os-banner-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: clamp(36px, 5.5vw, 65px);
  z-index: 2;
  display: block;
}
.os-banner-wave path {
  fill: var(--os-bg-top);
}

.os-sec-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17, 34, 72, 0.05) 0%, rgba(17, 34, 72, 0.28) 82%),
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.34) 0 18%, transparent 38%);
}

.os-sec-banner::after {
  content: attr(data-chapter);
  position: absolute;
  left: clamp(14px, 2.2vw, 24px);
  top: clamp(14px, 2.2vw, 24px);
  z-index: 4;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(160deg, color-mix(in srgb, var(--os-accent) 38%, white) 0%, rgba(255, 255, 255, 0.88) 100%);
  box-shadow: 0 8px 18px rgba(20, 37, 88, 0.2);
  color: #26476c;
  font-family: var(--font-display);
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.os-hope-banner {
  border-radius: clamp(24px, 3.5vw, 36px);
}

.os-section-inner {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: clamp(-64px, -7vw, -38px) 0 0;
  padding: 0;
  display: block;
}

.os-card {
  position: relative;
  width: min(1220px, calc(100% - clamp(20px, 4vw, 44px)));
  margin: 0 auto;
  border-radius: clamp(24px, 3vw, 38px);
  border: 2px solid var(--os-outline-soft);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 252, 242, 0.92) 100%);
  padding: clamp(32px, 5vw, 56px) clamp(28px, 8vw, 120px) clamp(36px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--os-shadow-lg);
  overflow: visible;
}

.os-card::before,
.os-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}

.os-card::before {
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--os-accent) 15%, white) 0%, rgba(255, 255, 255, 0) 44%);
}

.os-card::after {
  z-index: 1;
  width: 42%;
  height: 12px;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, color-mix(in srgb, var(--os-accent) 50%, white) 52%, rgba(255, 255, 255, 0.35) 100%);
  box-shadow: 0 2px 10px rgba(20, 37, 88, 0.14);
}

.os-card > * {
  position: relative;
  z-index: 2;
}

.os-card--wide {
  max-width: min(1220px, calc(100% - clamp(20px, 4vw, 44px)));
}

.os-card-icon {
  width: clamp(72px, 10vw, 96px);
  height: clamp(72px, 10vw, 96px);
  margin: clamp(-54px, -6vw, -36px) auto 12px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(36px, 5.2vw, 52px);
  line-height: 1;
  background: linear-gradient(160deg, color-mix(in srgb, var(--os-accent) 46%, white) 0%, color-mix(in srgb, var(--os-accent) 15%, white) 100%);
  border: 4px solid #fff;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--os-accent) 28%, transparent);
  animation: osBob 3.8s ease-in-out infinite;
  position: relative;
  z-index: 6;
}

.os-card-icon--lg {
  width: clamp(86px, 11vw, 112px);
  height: clamp(86px, 11vw, 112px);
  font-size: clamp(44px, 5.8vw, 62px);
}

.os-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.6vw, 56px);
  letter-spacing: clamp(1px, 0.2vw, 3px);
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-text-stroke: 1px rgba(31, 41, 87, 0.22);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(31, 41, 87, 0.15);
  margin-bottom: 24px;
}

#main-content .c-yellow {
  color: #f59e0b;
}

#main-content .c-green {
  color: #22a043;
}

#main-content .c-pink {
  color: #e63d8f;
}

#main-content .c-cyan,
#main-content .c-blue {
  color: #0e94c4;
}

.os-card-body {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.os-card-body p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 2.1vw, 19px);
  line-height: 1.72;
  color: var(--os-soft-ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-highlight {
  margin: 10px 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 2px dashed color-mix(in srgb, var(--os-accent) 60%, white);
  background: color-mix(in srgb, var(--os-accent) 18%, white);
  color: #214067 !important;
  font-style: italic;
  font-weight: 800 !important;
  font-size: clamp(17px, 2.2vw, 21px) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.54);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-card-closing {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 2px dashed rgba(65, 80, 122, 0.2);
  font-weight: 800;
  font-style: italic;
  color: #1f3f6b !important;
  line-height: 1.7;
  font-size: clamp(16px, 2vw, 19px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ======================================================
   VALUES + PILLARS
====================================================== */
.os-values-grid {
  max-width: 660px;
  margin: 26px auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
}

.os-value-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 16px;
  width: min(100%, 420px);
  max-width: 100%;
  border-radius: 999px;
  border: 2px solid #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, color-mix(in srgb, var(--os-accent) 20%, white) 100%);
  color: #2a3f61;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 8px 15px rgba(31, 41, 87, 0.12);
  transition: transform 180ms var(--ease-bounce), box-shadow 180ms ease;
}

.os-value-chip > span:first-child {
  font-size: 1.15em;
  flex-shrink: 0;
  margin-top: 1px;
}

.os-value-label {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.os-value-chip:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 18px rgba(31, 41, 87, 0.16);
}

.os-pillars {
  margin: 28px auto;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(5, minmax(95px, 1fr));
  gap: 11px;
}

.os-pillar {
  border-radius: 22px;
  padding: 16px 10px;
  border: 2px solid #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, color-mix(in srgb, var(--pillar-clr) 22%, white) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 9px 15px rgba(31, 41, 87, 0.12);
  transition: transform 220ms var(--ease-bounce), box-shadow 220ms ease;
}

.os-pillar:nth-child(odd) {
  border-radius: 26px 16px 24px 18px;
}

.os-pillar:nth-child(even) {
  border-radius: 18px 24px 16px 26px;
}

.os-pillar:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 16px 24px rgba(31, 41, 87, 0.2);
}

.os-pillar-icon {
  font-size: clamp(24px, 3.1vw, 34px);
}

.os-pillar span:last-child {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--pillar-clr) 82%, #1f2957 18%);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ======================================================
   INTENTION LIST
====================================================== */
.os-intention-list {
  margin: 4px auto 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.os-intention-list p {
  margin: 0;
  width: 100%;
  padding: 13px 15px 13px 19px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(198, 241, 255, 0.66) 100%);
  color: #255078 !important;
  font-style: italic;
  font-weight: 800 !important;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 8px 15px rgba(31, 41, 87, 0.12);
}

.os-intention-list p::before {
  content: "-> ";
  color: #1286b4;
  font-style: normal;
  font-weight: 900;
}

/* ======================================================
   HOPE CLOSING
====================================================== */
.os-hope-inner {
  min-height: clamp(620px, 78vh, 760px);
  align-items: center;
}

.os-hope-card {
  position: relative;
  z-index: 3;
  width: min(1220px, calc(100% - clamp(20px, 4vw, 44px)));
  margin: 0 auto;
  border-radius: clamp(26px, 3vw, 40px);
  padding: clamp(34px, 5vw, 68px) clamp(28px, 8vw, 120px);
  text-align: center;
  border: 2px solid var(--os-outline-soft);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 246, 225, 0.92) 100%);
  box-shadow: var(--os-shadow-lg);
  overflow: visible;
}

.os-hope-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: clamp(18px, 2vw, 26px);
  border: 2px dashed rgba(255, 192, 53, 0.4);
  pointer-events: none;
}

.os-hope-card > * {
  position: relative;
  z-index: 2;
}

.os-welcome-msg {
  margin-top: 22px;
  font-family: var(--font-title);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.3;
  color: #ef9f00;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.85), 0 7px 14px rgba(31, 41, 87, 0.16);
}

.os-hope-logo {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.os-hope-logo img {
  width: clamp(84px, 13vw, 126px);
  height: auto;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.97);
  background: #fff;
  box-shadow: 0 0 0 7px rgba(255, 216, 79, 0.35), 0 12px 20px rgba(31, 41, 87, 0.2);
  animation: osBob 3.8s ease-in-out infinite;
}

/* ======================================================
   DIVIDERS
====================================================== */
.os-divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.24) 100%);
}

.os-divider::before,
.os-divider::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(152, 176, 214, 0.8) 50%, rgba(255, 255, 255, 0) 100%);
}

.os-divider::before {
  top: 0;
}

.os-divider::after {
  bottom: 0;
}

.os-divider span {
  display: inline-block;
  border-radius: 50%;
  animation: osBobDot 850ms ease-in-out infinite alternate;
}

.os-divider span:nth-child(1) {
  width: 14px;
  height: 14px;
  background: #ff9ed0;
  animation-delay: 0ms;
}

.os-divider span:nth-child(2) {
  width: 10px;
  height: 10px;
  background: #ffd35a;
  animation-delay: 110ms;
}

.os-divider span:nth-child(3) {
  width: 18px;
  height: 18px;
  background: #80ddff;
  animation-delay: 180ms;
}

.os-divider span:nth-child(4) {
  width: 10px;
  height: 10px;
  background: #95e56d;
  animation-delay: 110ms;
}

.os-divider span:nth-child(5) {
  width: 14px;
  height: 14px;
  background: #ffa86b;
  animation-delay: 0ms;
}

/* ======================================================
   KEYFRAMES
====================================================== */
@keyframes osPopIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes osWobble {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-10px) rotate(7deg);
  }
  65% {
    transform: translateY(6px) rotate(-5deg);
  }
}

@keyframes osBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes osBobDot {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-8px);
  }
}

@keyframes osArrowDrop {
  0%,
  100% {
    transform: rotate(45deg) translate(0, 0);
    opacity: 0.8;
  }
  50% {
    transform: rotate(45deg) translate(3px, 3px);
    opacity: 1;
  }
}

@keyframes osPulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

@keyframes osAuroraDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(2%, 2%, 0) rotate(2.2deg);
  }
}

@keyframes osHintFloat {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4px);
  }
}

@keyframes osBlobFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

@keyframes osBannerTitlePop {
  0% {
    letter-spacing: 0;
    transform: translateY(16px) scale(0.92) rotate(-1deg);
  }
  55% {
    letter-spacing: clamp(1px, 0.3vw, 3px);
    transform: translateY(-3px) scale(1.04) rotate(0.5deg);
  }
  100% {
    letter-spacing: clamp(1px, 0.25vw, 4px);
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes osBannerTitleGlow {
  0%,
  100% {
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.58),
      0 6px 16px rgba(0, 0, 0, 0.22),
      0 10px 30px rgba(0, 0, 0, 0.16),
      0 0 20px color-mix(in srgb, var(--os-accent) 18%, transparent);
  }
  50% {
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.58),
      0 8px 20px rgba(0, 0, 0, 0.24),
      0 12px 36px rgba(0, 0, 0, 0.18),
      0 0 30px color-mix(in srgb, var(--os-accent) 30%, transparent);
  }
}

@keyframes osBannerDotIn {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-26deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.1) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes osBannerDotBob {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.06);
  }
}

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 980px) {
  .os-story-trail-wrap {
    top: calc(var(--nav-h-desktop) - 2px);
  }

  .os-story-trail {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }

  .os-pillars {
    grid-template-columns: repeat(3, minmax(94px, 1fr));
  }
}

@media (max-width: 768px) {
  #os-hero {
    min-height: calc(var(--app-vh-stable) - var(--nav-h-mobile) + 100px);
  }

  #os-hero .sec-inner {
    min-height: calc(var(--app-vh-stable) - var(--nav-h-mobile) + 100px);
    padding-top: 48px;
    padding-bottom: 86px;
  }

  .os-hero-sub {
    border-radius: 22px;
    padding: 12px 16px;
    width: min(640px, calc(100vw - 20px));
    font-size: clamp(15px, 4.4vw, 20px);
  }

  .os-story-trail-wrap {
    position: relative;
    top: auto;
    padding: 12px 12px 18px;
    backdrop-filter: none;
  }

  .os-story-trail-wrap::after {
    left: 12px;
    right: 12px;
  }

  .os-story-trail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .os-story-trail::-webkit-scrollbar {
    height: 8px;
  }

  .os-story-trail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(37, 81, 124, 0.35);
  }

  .os-trail-stop {
    min-width: 210px;
    scroll-snap-align: center;
  }

  .os-sec-banner {
    margin: 10px 10px 0;
    height: clamp(340px, 65vh, 520px);
    border-radius: 20px;
  }

  .os-sec-banner::after {
    left: 12px;
    top: 12px;
    padding: 7px 11px;
    font-size: 10px;
    letter-spacing: 1px;
  }

  .os-banner-title {
    font-size: clamp(22px, 6.5vw, 36px);
    width: 94%;
    line-height: 1.02;
  }

  .os-section-inner {
    margin-top: -34px;
    padding: 0;
  }

  .os-card {
    width: calc(100% - 20px);
    border-radius: 22px;
    padding: 24px 18px 30px;
  }

  .os-card::after {
    width: 58%;
  }

  .os-card--wide,
  .os-hope-card {
    width: calc(100% - 20px);
    border-radius: 22px;
  }

  .os-section-title {
    font-size: clamp(24px, 8vw, 36px);
    -webkit-text-stroke: 1px rgba(31, 41, 87, 0.22);
  }

  .os-values-grid {
    gap: 10px;
  }

  .os-value-chip {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }

  .os-pillars {
    grid-template-columns: repeat(2, minmax(104px, 1fr));
    gap: 10px;
  }

  .os-pillar {
    padding: 14px 8px;
  }

  .os-intention-list p {
    font-size: 15px !important;
  }

  .os-hope-inner {
    min-height: auto;
  }

  .os-hope-card {
    padding: 28px 18px 36px;
  }

  .scroll-hint {
    bottom: 14px;
  }

  #os-beginning::before,
  #os-why::before,
  #os-parents::before,
  #os-more::before,
  #os-hope::before {
    width: clamp(150px, 30vw, 230px);
    height: clamp(150px, 30vw, 230px);
    right: -74px;
  }

  #os-beginning::after,
  #os-why::after,
  #os-parents::after,
  #os-more::after,
  #os-hope::after {
    width: clamp(120px, 24vw, 180px);
    height: clamp(120px, 24vw, 180px);
    left: -64px;
  }

  .os-page main::after {
    opacity: 0.2;
  }
}

@media (max-width: 520px) {
  .os-hero-title {
    letter-spacing: 2px;
  }

  .os-hero-sub {
    font-size: clamp(15px, 4.8vw, 20px);
  }

  .os-trail-stop {
    min-width: 180px;
  }

  .os-trail-num {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .os-pillar span:last-child {
    font-size: 11px;
  }

  .os-sec-banner::after {
    font-size: 9px;
    padding: 6px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-page * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Skip heavy paint for off-screen sections. */
#os-beginning,
#os-why,
#os-parents,
#os-more,
#os-hope {
  content-visibility: auto;
  contain-intrinsic-size: 0 80vh;
}
