/* Mountain Delights – homepage sections 1 + 2 (round 14, 2026-10-12): story collage + why-us photo panels.
   Palette follows round 9: ink #0a2540, one accent (logo blue #0073ad). */
.mdstory, .mdwhy2 { --ink: #0a2540; --text: #33465b; --muted: #5b6f85; --blue: #0073ad; --line: #e3e9ef; font-family: var(--font-body, "Manrope", sans-serif); }

/* shared bits */
.mdx-kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px !important; font-size: 12.5px !important; font-weight: 800 !important; letter-spacing: .14em; text-transform: uppercase; color: var(--blue) !important; }
.mdx-kicker::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: currentColor; }
.mdx-kicker--light { color: #7cc4ea !important; }
.mdx-btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--blue); background: var(--blue); color: #fff !important; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s; box-shadow: 0 14px 28px -16px rgba(0, 128, 192, .9); }
.mdx-btn:hover { transform: translateY(-2px); background: #0a93d8; box-shadow: 0 18px 32px -16px rgba(0, 128, 192, .95); }
.mdx-btn i { font-size: 13px; transition: transform .2s; }
.mdx-btn:hover i.fa-arrow-right { transform: translateX(3px); }
.mdx-btn--ghost { background: transparent; color: var(--ink) !important; border-color: #cfdbe6; box-shadow: none; }
.mdx-btn--ghost:hover { background: #fff; border-color: var(--blue); color: var(--blue) !important; box-shadow: none; }
.mdx-btn--ghost i.fa-whatsapp { color: #25d366; font-size: 17px; }
.mdx-btn--wa { background: #15803d; border-color: #15803d; color: #fff !important; box-shadow: 0 14px 28px -16px rgba(20, 140, 70, .8); }
.mdx-btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.mdx-btn--wa i.fa-whatsapp { color: #fff; font-size: 17px; }

/* ================= 1. STORY ================= */
.mdstory { position: relative; padding: 104px 0 112px; background: #fff; overflow: hidden; }
.mdstory::before { content: ""; position: absolute; top: -180px; left: -160px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 128, 192, .08), rgba(0, 128, 192, 0)); pointer-events: none; }
.mdstory-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 84px; align-items: center; }

.mdstory-media { position: relative; padding: 34px 0 54px 30px; }
.mdstory-media figure { margin: 0; overflow: hidden; }
.mdstory-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mdstory-main { width: 80%; aspect-ratio: 4 / 5; border-radius: 30px; box-shadow: 0 40px 80px -40px rgba(10, 37, 64, .55); }
.mdstory-main img { transform: scale(1.12); transition: transform 2.4s cubic-bezier(.2, .7, .2, 1); object-position: 40% 50%; }
.mdstory.is-in .mdstory-main img { transform: scale(1); }
.mdstory-small { position: absolute; top: 0; right: 0; width: 42%; aspect-ratio: 4 / 3; border-radius: 20px; border: 7px solid #fff; box-shadow: 0 24px 50px -24px rgba(10, 37, 64, .5); }
.mdstory-float { position: absolute; right: 4%; bottom: 0; width: 54%; aspect-ratio: 3 / 2; border-radius: 22px; border: 8px solid #fff; box-shadow: 0 34px 70px -28px rgba(10, 37, 64, .6); }
.mdstory-media figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(10, 37, 64, .62); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mdstory-small, .mdstory-float { will-change: transform; }

.mdstory-seal { position: absolute; left: 0; bottom: 92px; width: 148px; height: 148px; border-radius: 50%; background: #fff; box-shadow: 0 22px 44px -18px rgba(10, 37, 64, .45); display: grid; place-items: center; z-index: 2; }
.mdstory-seal-ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: mdx-spin 26s linear infinite; }
.mdstory-seal-ring text { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); }
.mdstory-seal-core { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; background: var(--blue); color: #fff; line-height: 1; }
.mdstory-seal-core b { font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.mdstory-seal-core small { margin-top: -10px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
@keyframes mdx-spin { to { transform: rotate(360deg); } }

.mdstory-title { margin: 0 0 22px !important; padding: 0 !important; font-size: clamp(36px, 4.3vw, 58px) !important; font-weight: 800 !important; line-height: 1.04 !important; letter-spacing: -.035em !important; color: var(--ink) !important; text-wrap: balance; }
.mdstory-title em { position: relative; display: inline-block; font-style: normal; color: var(--blue); white-space: nowrap; }
.mdstory-title em svg { position: absolute; left: 0; right: 0; bottom: -.12em; width: 100%; height: .3em; overflow: visible; }
.mdstory-title em path { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; opacity: .35; transition: stroke-dashoffset 1.3s .5s cubic-bezier(.65, 0, .35, 1); }
.mdstory.is-in .mdstory-title em path { stroke-dashoffset: 0; }
.mdstory-lede { margin: 0 0 32px !important; max-width: 560px; font-size: 18px !important; line-height: 1.7 !important; font-weight: 500; color: var(--text) !important; }

.mdstory-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 34px !important; padding: 26px 0 0 !important; border-top: 1px solid var(--line); list-style: none; }
.mdstory-pillars li { display: flex !important; flex-direction: column; gap: 4px; }
.mdx-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; background: #eaf5fb; color: var(--blue); font-size: 17px; transition: transform .3s, background .3s, color .3s; }
.mdstory-pillars li:hover .mdx-ico { transform: translateY(-3px) rotate(-6deg); background: var(--blue); color: #fff; }
.mdstory-pillars b { font-size: 15.5px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.mdstory-pillars small { font-size: 13.5px; font-weight: 500; line-height: 1.45; color: var(--muted); }

.mdstory-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; }
.mdstory-founder { display: flex; align-items: center; gap: 12px; }
.mdstory-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--blue); }
.mdstory-founder span { display: flex; flex-direction: column; line-height: 1.25; }
.mdstory-founder small { font-size: 12px; font-weight: 600; color: var(--muted); }
.mdstory-founder b { font-size: 16px; font-weight: 800; color: var(--ink); }
.mdstory-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ================= 2. WHY – photo panels ================= */
.mdwhy2 { position: relative; padding: 104px 0 112px; background: #0a2540; color: #fff; overflow: hidden; isolation: isolate; }
.mdwhy2::before { content: ""; position: absolute; z-index: -1; top: -260px; right: -200px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 128, 192, .35), rgba(0, 128, 192, 0)); }
.mdwhy2::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); }
.mdwhy2-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-bottom: 52px; }
.mdwhy2-head h2 { margin: 0 !important; padding: 0 !important; font-size: clamp(34px, 4vw, 54px) !important; font-weight: 800 !important; line-height: 1.06 !important; letter-spacing: -.035em !important; color: #fff !important; }
.mdwhy2-head h2 span { color: #7cc4ea; }
.mdwhy2-stats { display: flex; flex-wrap: wrap; gap: 18px 44px; margin: 0 !important; padding: 0 !important; list-style: none; }
.mdwhy2-stats li { display: block !important; min-width: 120px; }
.mdwhy2-stats b { font-size: clamp(38px, 3.6vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.mdwhy2-stats i { margin-left: 2px; font-style: normal; font-size: 26px; font-weight: 800; color: #7cc4ea; vertical-align: top; }
.mdwhy2-stats span { display: block; margin-top: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .66); }

.mdwhy2-panels { display: flex; gap: 12px; height: 560px; }
.mdwhy2-panel { position: relative; flex: 1 1 0; min-width: 0; border-radius: 24px; overflow: hidden; cursor: pointer; outline: none; transition: flex-grow .75s cubic-bezier(.2, .75, .2, 1); background: #12304f; }
.mdwhy2-panel.is-open { flex-grow: 4.4; cursor: default; }
.mdwhy2-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); filter: saturate(.85) brightness(.82); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.mdwhy2-panel.is-open img { transform: scale(1); filter: none; }
.mdwhy2-panel:not(.is-open):hover img { filter: saturate(1) brightness(.95); }
.mdwhy2-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 37, 64, .1) 0%, rgba(10, 37, 64, .15) 40%, rgba(10, 37, 64, .9) 100%); }
.mdwhy2-panel:not(.is-open) .mdwhy2-shade { background: linear-gradient(180deg, rgba(10, 37, 64, .35), rgba(10, 37, 64, .8)); }
.mdwhy2-num { position: absolute; top: 18px; left: 18px; display: grid; place-items: center; min-width: 46px; height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .06em; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .4s, border-color .4s; }
.mdwhy2-panel.is-open .mdwhy2-num { background: var(--blue); border-color: var(--blue); }
.mdwhy2-spine { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; white-space: nowrap; max-height: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 800; letter-spacing: .01em; color: #fff; transition: opacity .3s; }
.mdwhy2-panel.is-open .mdwhy2-spine { opacity: 0; }
.mdwhy2-body { position: absolute; left: 30px; right: 30px; bottom: 30px; max-width: 470px; opacity: 0; transform: translateY(18px); transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
.mdwhy2-panel.is-open .mdwhy2-body { opacity: 1; transform: none; transition-delay: .32s; pointer-events: auto; }
.mdwhy2-body h3 { margin: 0 0 10px !important; font-size: clamp(22px, 2vw, 28px) !important; font-weight: 800 !important; line-height: 1.15 !important; letter-spacing: -.02em !important; color: #fff !important; }
.mdwhy2-body p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.6 !important; font-weight: 500; color: rgba(255, 255, 255, .86) !important; }
.mdwhy2-panel:focus-visible { box-shadow: 0 0 0 3px #7cc4ea; }
.mdwhy2-hint { display: none; }

/* tablets & phones: swipeable cards, every card shows its text */
@media (max-width: 991.98px) {
    .mdstory, .mdwhy2 { padding: 72px 0 80px; }
    .mdstory-grid { grid-template-columns: 1fr; gap: 44px; }
    .mdstory-media { padding: 0 0 46px; max-width: 620px; }
    .mdstory-main { width: 100%; aspect-ratio: 4 / 3.4; border-radius: 24px; }
    .mdstory-small { display: none; }
    .mdstory-float { width: 50%; right: -4px; border-width: 6px; border-radius: 18px; }
    .mdstory-seal { left: 14px; bottom: 16px; width: 112px; height: 112px; }
    .mdstory-seal-ring text { font-size: 16px; }
    .mdstory-seal-core { width: 56px; height: 56px; }
    .mdstory-seal-core b { font-size: 19px; }
    .mdstory-seal-core small { margin-top: -6px; font-size: 8.5px; }
    .mdstory-pillars { grid-template-columns: 1fr; gap: 14px; }
    .mdstory-media figcaption { left: 8px; right: 8px; bottom: 8px; max-width: max-content; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mdstory-pillars li { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
    .mdstory-pillars .mdx-ico { margin: 0; }
    .mdstory-pillars small { flex-basis: 100%; padding-left: 58px; margin-top: -8px; }
    .mdwhy2-head { margin-bottom: 32px; }
    .mdwhy2-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; }
    .mdwhy2-stats li { min-width: 0; }
    .mdwhy2-stats b { font-size: 30px; }
    .mdwhy2-stats i { font-size: 18px; }
    .mdwhy2-stats span { font-size: 12px; line-height: 1.35; }
    .mdwhy2-panels { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .mdwhy2-panels::-webkit-scrollbar { display: none; }
    .mdwhy2-panel, .mdwhy2-panel.is-open { flex: 0 0 82%; height: 460px; scroll-snap-align: center; cursor: default; }
    .mdwhy2-panel img { transform: none; filter: none; }
    .mdwhy2-panel .mdwhy2-shade { background: linear-gradient(180deg, rgba(10, 37, 64, .05) 25%, rgba(10, 37, 64, .92) 100%) !important; }
    .mdwhy2-panel .mdwhy2-num { background: var(--blue); border-color: var(--blue); }
    .mdwhy2-spine { display: none; }
    .mdwhy2-body { left: 22px; right: 22px; bottom: 22px; opacity: 1; transform: none; pointer-events: auto; }
    .mdwhy2-hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0 !important; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); }
}
@media (max-width: 575.98px) { .mdstory-actions { width: 100%; } .mdstory-actions .mdx-btn { flex: 1 1 auto; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
    .mdstory-seal-ring { animation: none; }
    .mdstory-main img, .mdwhy2-panel, .mdwhy2-panel img, .mdwhy2-body { transition: none !important; }
    .mdstory-title em path { transition: none; stroke-dashoffset: 0; }
}

/* round 24 (W5): the intro is now three short paragraphs */
.mdstory-lede p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; }
.mdstory-lede p:last-child { margin-bottom: 0; }
@media (max-width: 575px) { .mdstory-lede p { font-size: 16px; } }
