/* Life @Vibrant (14 Nov 2026) — story page in chapters. Mobile first from 320px. Colours and fonts come from the
   site theme (theme-ocean): ink #0B1F3A, navy #0A3D7A, sunshine #FFB703, logo red #D62839. All classes start with lf-. */
.lf{--ink:#0B1F3A;--navy:#0A3D7A;--sun:#FFB703;--red:#D62839;--paper:#fff;--mist:#F3F6FB;--soft:#52627A;--line:#E3EAF3;
    --top:52px;font-family:var(--vh-body);color:var(--ink);background:var(--paper);overflow-x:clip}
@media (min-width:992px){.lf{--top:75px}}
.lf-wrap{max-width:1240px;margin:0 auto;padding:0 16px}
@media (min-width:768px){.lf-wrap{padding:0 32px}}
.lf a:focus-visible,.lf button:focus-visible{outline:3px solid var(--sun);outline-offset:3px}

/* hero */
.lf-hero{background:var(--ink);color:#fff;padding:calc(var(--top) + 28px) 0 34px;position:relative}
.lf-crumbs{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 22px;padding:0;font-size:13px;color:#9DB3D1}
.lf-crumbs li+li::before{content:"/";margin-right:6px;opacity:.6}
.lf-crumbs a{color:#C9D8EC;text-decoration:none}
.lf-h1{font-family:var(--vh-head);font-weight:800;font-size:clamp(52px,15.5vw,168px);line-height:.9;letter-spacing:-.045em;margin:0 0 18px;color:#fff}
.lf-h1 span{color:var(--red)}
.lf-lede{font-size:17px;line-height:1.55;max-width:34em;margin:0 0 22px;color:#D6E2F2}
.lf-cta{display:flex;flex-wrap:wrap;gap:10px}
.lf-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:999px;font-weight:700;font-size:15px;text-decoration:none!important}
.lf-btn.lf-sun{background:var(--sun);color:var(--ink)!important}
.lf-btn.lf-sun:hover{background:#F5A800}
.lf-btn.lf-line{border:1.5px solid rgba(255,255,255,.5);color:#fff!important}
.lf-btn.lf-line:hover{background:rgba(255,255,255,.12)}
@media (min-width:768px){.lf-hero{padding-bottom:56px}.lf-lede{font-size:20px}}

/* two photo strips drifting in opposite directions */
.lf-strips{margin-top:34px;display:grid;gap:10px}
.lf-strip{overflow:hidden}
.lf-track{display:flex;gap:10px;width:max-content;animation:lf-drift 70s linear infinite}
.lf-strip.rev .lf-track{animation-direction:reverse;animation-duration:85s}
.lf-track img{height:128px;width:auto;border-radius:12px;display:block;background:#17304f}
@keyframes lf-drift{to{transform:translateX(calc(-50% - 5px))}}
@media (min-width:768px){.lf-strips{margin-top:52px;gap:14px}.lf-track{gap:14px}.lf-track img{height:210px;border-radius:16px}
  @keyframes lf-drift{to{transform:translateX(calc(-50% - 7px))}}}
@media (prefers-reduced-motion:reduce){.lf-track{animation:none}.lf-strip{overflow-x:auto}}

/* chapter bar */
.lf-nav{position:sticky;top:var(--top);z-index:20;background:rgba(255,255,255,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.lf-nav ul{list-style:none;margin:0;padding:10px 0;display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.lf-nav ul::-webkit-scrollbar{display:none}
.lf-nav a{display:block;white-space:nowrap;padding:8px 14px;border-radius:999px;font-weight:600;font-size:14px;color:var(--soft);text-decoration:none}
.lf-nav a:hover{color:var(--navy);background:var(--mist)}
.lf-nav a.on{background:var(--ink);color:#fff}

/* chapter */
.lf-ch{padding:48px 0;scroll-margin-top:calc(var(--top) + 50px)}
.lf-ch:nth-of-type(even){background:var(--mist)}
.lf-head{display:grid;gap:22px;margin-bottom:30px}
.lf-say h2{font-family:var(--vh-head);font-weight:800;font-size:clamp(28px,6.2vw,52px);line-height:1.06;letter-spacing:-.03em;margin:0 0 16px;color:var(--ink);text-wrap:balance}
.lf-say p{font-size:16.5px;line-height:1.65;margin:0 0 12px;max-width:36em;color:#27384F}
.lf-say .lf-n{font-size:14px;color:var(--soft);font-weight:600;margin-top:18px;padding-left:14px;border-left:3px solid var(--red)}
.lf-lead{display:block;border-radius:18px;overflow:hidden;background:#dfe7f1}
.lf-lead img{display:block;width:100%;height:auto;max-height:76vh;object-fit:cover}
@media (min-width:992px){
  .lf-ch{padding:96px 0}
  .lf-head{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;margin-bottom:48px}
  .lf-ch.flip .lf-say{order:2}
  .lf-ch.flip .lf-head{grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
  .lf-say p{font-size:18px}
  .lf-lead{border-radius:26px}
}

/* a group of photos: rows of equal height, each photo keeps its own shape */
.lf-group{margin-top:30px}
.lf-group h3{font-family:var(--vh-head);font-weight:700;font-size:18px;letter-spacing:-.01em;margin:0 0 12px;color:var(--ink)}
.lf-rows{--h:104px;display:flex;flex-wrap:wrap;gap:6px}
.lf-rows::after{content:"";flex:1000 1 0}
.lf-rows .lf-ph{flex:var(--r) 1 calc(var(--r) * var(--h));aspect-ratio:var(--r);max-width:100%;border-radius:10px;overflow:hidden;background:#dfe7f1;display:block}
.lf-rows img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.lf-rows .lf-ph:hover img{transform:scale(1.04)}
.lf.js .lf-group:not(.open) .lf-extra{display:none}
.lf-all{margin-top:14px;min-height:44px;padding:0 20px;border-radius:999px;border:1.5px solid var(--ink);background:transparent;color:var(--ink);font:700 14.5px var(--vh-body);cursor:pointer}
.lf-all:hover{background:var(--ink);color:#fff}
@media (min-width:576px){.lf-rows{--h:150px;gap:8px}}
@media (min-width:992px){.lf-rows{--h:210px;gap:10px}.lf-rows .lf-ph{border-radius:14px}.lf-group{margin-top:44px}.lf-group h3{font-size:21px;margin-bottom:16px}}
@media (prefers-reduced-motion:reduce){.lf-rows img{transition:none}.lf-rows .lf-ph:hover img{transform:none}}

/* the ten-year chapter is the one dark band */
.lf-ch.dark{background:var(--ink)}
.lf-ch.dark .lf-say h2,.lf-ch.dark .lf-group h3{color:#fff}
.lf-ch.dark .lf-say p{color:#CFDCEE}
.lf-ch.dark .lf-say .lf-n{color:#9DB3D1;border-color:var(--sun)}
.lf-ch.dark .lf-all{border-color:#fff;color:#fff}
.lf-ch.dark .lf-all:hover{background:#fff;color:var(--ink)}
.lf-ch.dark .lf-rows .lf-ph,.lf-ch.dark .lf-lead{background:#17304f}

/* closing */
.lf-end{background:var(--navy);color:#fff;padding:56px 0 64px}
.lf-end h2{font-family:var(--vh-head);font-weight:800;font-size:clamp(28px,6vw,48px);line-height:1.08;letter-spacing:-.03em;margin:0 0 12px;color:#fff}
.lf-end p{font-size:17px;line-height:1.6;max-width:36em;margin:0 0 22px;color:#D6E2F2}
@media (min-width:992px){.lf-end{padding:88px 0 96px}}

/* photo viewer */
html.lf-lock{overflow:hidden}
.lf-view{position:fixed;inset:0;z-index:100000;background:rgba(6,16,31,.96);display:flex;align-items:center;justify-content:center}
.lf-view[hidden]{display:none}
.lf-view figure{box-sizing:border-box;margin:0;width:100%;height:100%;display:grid;grid-template-rows:auto auto;align-content:center;justify-items:center;padding:56px 8px 14px}
.lf-view figure img{max-width:100%;max-height:calc(100vh - 124px);max-height:calc(100dvh - 124px);object-fit:contain;border-radius:8px}
.lf-view figcaption{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;padding-top:12px;color:#D6E2F2;font-size:14px}
.lf-view figcaption [data-pos]{color:#8FA6C6}
.lf-view button{position:absolute;border:0;background:rgba(255,255,255,.14);color:#fff;width:46px;height:46px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lf-view button:hover{background:rgba(255,255,255,.28)}
.lf-x{top:10px;right:10px}
.lf-arrow{top:50%;transform:translateY(-50%)}
.lf-arrow.lf-prev{left:8px}.lf-arrow.lf-next{right:8px}
@media (min-width:768px){.lf-view figure{padding:56px 76px 18px}.lf-arrow.lf-prev{left:18px}.lf-arrow.lf-next{right:18px}.lf-x{top:16px;right:18px}}
