/* BFC Medical Services — shared styles
   Sections: tokens · base · header · buttons · home (hero, loader, journey, band) ·
   sections · inner pages · form · footer · mobile bar · chat · motion · a11y */

:root {
  --paper: #F7FAFE;
  --ink: #0B1B3A;
  --muted: #52627F;
  --navy: #0B1F4B;
  --deep: #050F26;
  --blue: #1F63E0;
  --sky: #8FB4F0;
  --tint: #E8F0FD;
  --red: #D62F2F;
  --line: rgba(11, 27, 58, .12);
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --b: .15s;               /* base delay for hero word reveal */
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.65 Manrope, system-ui, sans-serif;
  overflow-x: hidden; overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 500; letter-spacing: -.025em; line-height: 1.02; margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 300; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background .4s, box-shadow .4s;
  view-transition-name: hd;
}
.hd.s { background: rgba(247, 250, 254, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 600 20px Fraunces, serif; letter-spacing: -.02em; }
.lg { background: #fff; border-radius: 12px; padding: 4px 8px; display: grid; place-items: center; box-shadow: 0 6px 18px -8px rgba(11, 31, 75, .35), 0 0 0 1px var(--line); }
.lg img { height: 32px; width: auto; display: block; }
.dn { display: flex; gap: 30px; font-weight: 600; font-size: 15px; }
.dn a { text-decoration: none; color: var(--muted); transition: color .2s; }
.dn a:hover, .dn a[aria-current=page] { color: var(--ink); }
.hd-r { display: flex; gap: 10px; align-items: center; }
.mb { display: none; background: none; border: 1.5px solid currentColor; border-radius: 999px; padding: 9px 18px; font: 700 14px Manrope, sans-serif; color: inherit; cursor: pointer; }

/* header over the dark home hero */
.hd.dk { color: #fff; }
.hd.dk .brand, .hd.dk .dn a { color: #fff; }
.hd.dk .dn a { opacity: .78; }
.hd.dk .dn a:hover, .hd.dk .dn a[aria-current=page] { opacity: 1; }
.hd.dk.s { background: rgba(5, 15, 38, .55); box-shadow: none; }
.hd.dk .lg { box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .6); }

/* mobile menu */
.mn {
  position: fixed; inset: 0; z-index: 40; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 30px;
  transform: translateY(-100%); visibility: hidden;
  transition: transform .6s cubic-bezier(.7, 0, .2, 1), visibility 0s .6s;
}
.mn.o { transform: none; visibility: visible; transition: transform .6s cubic-bezier(.7, 0, .2, 1); }
.mn a { font: 500 40px Fraunces, serif; text-decoration: none; padding: 6px 0; }
.mn button { position: absolute; top: 22px; right: 22px; background: none; border: 1.5px solid #fff; color: #fff; border-radius: 999px; padding: 9px 18px; font: 700 14px Manrope, sans-serif; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font: 700 15px Manrope, sans-serif;
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .25s ease, background .3s, color .3s;
}
.btn.red { background: var(--red); color: #fff; }
.btn.red:hover { background: #b92424; }
.btn.line { background: transparent; border: 1.5px solid var(--ink); color: var(--ink); }
.btn.ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- home: dark zone (hero + journey) ---------- */
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: none; }
.gl #gl { display: block; }
main, footer { position: relative; z-index: 2; }
.dz { background: radial-gradient(120% 70% at 70% 0%, #0E2C6B 0%, transparent 60%), linear-gradient(#050F26, #0A2257); position: relative; }
.gl .dz { background: transparent; }

.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 120px 0 9vh; padding-bottom: 9svh; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(75% 70% at 18% 88%, rgba(5, 15, 38, .8), transparent 72%); }
.hero .wrap { position: relative; width: 100%; }
.hero h1 { color: #fff; font-size: clamp(50px, 9.5vw, 148px); max-width: 11ch; }
.w { display: inline-block; margin-right: .26em; }
.js .w { opacity: 0; transform: translateY(.5em); animation: up .9s var(--ease) forwards; animation-delay: calc(var(--i) * .12s + var(--b)); }
.hx { opacity: 1; }
.js .hx { opacity: 0; animation: up .9s var(--ease) forwards; animation-delay: calc(var(--b) + .85s); }
@keyframes up { to { opacity: 1; transform: none; } }
.hsub { max-width: 36ch; font-size: clamp(18px, 2vw, 21px); color: #B9C9E8; margin: 26px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; color: #8FB4F0; font-size: 14px; font-weight: 600; }
.chips li { display: flex; align-items: center; gap: 9px; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.sc { position: absolute; right: 24px; bottom: 9vh; bottom: 9svh; color: var(--sky); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.sc::after { content: ""; width: 1.5px; height: 54px; background: linear-gradient(var(--sky), transparent); animation: sl 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes sl { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* intro loader (home only, first visit of a session) */
.ld { display: none; }
.intro .ld {
  position: fixed; inset: 0; z-index: 100; background: var(--deep); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1); border-radius: 0 0 50% 50% / 0 0 90px 90px;
  animation: ldfail 0s linear 3.2s forwards;   /* safety net if the script never runs */
}
@keyframes ldfail { to { visibility: hidden; pointer-events: none; } }
.ld.out { transform: translateY(-105%); }
.lt { display: flex; font: 500 clamp(80px, 18vw, 220px) Fraunces, serif; letter-spacing: -.04em; line-height: 1.05; overflow: hidden; }
.lt span { display: inline-block; transform: translateY(115%); animation: lr .9s var(--ease) forwards; animation-delay: calc(var(--i) * .09s + .05s); }
@keyframes lr { to { transform: none; } }
.ld small { color: var(--sky); font-size: 15px; }
.lb { width: min(260px, 50vw); height: 2px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; display: block; }
.lb::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: translateX(-100%); animation: lb 1.1s ease forwards; }
@keyframes lb { to { transform: none; } }
.sk { position: absolute; right: 22px; bottom: 22px; background: none; border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; border-radius: 999px; padding: 9px 18px; font: 700 14px Manrope, sans-serif; cursor: pointer; }
.intro { --b: 1.3s; }
.intro.fast { --b: .25s; }

/* journey: stacked photos by default, 3D tunnel when html.tun */
.jr { position: relative; padding: 90px 0 60px; }
.stage { width: min(92vw, 900px); margin: 0 auto; }
.rail { display: grid; gap: 26px; }
.pn { position: relative; margin: 0; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #0f2c66; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 50px 90px -30px rgba(0, 0, 0, .75); }
.pn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pn figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(5, 15, 38, .85)); }
.ttl, .cn, .pv, .nx { display: none; }

.tun .jr { height: 440vh; height: 440svh; padding: 0; }
.tun .stage { position: sticky; top: 0; width: auto; margin: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1500px; perspective-origin: 50% 42%; }
.tun .rail { display: block; position: absolute; inset: 0; transform-style: preserve-3d; }
.tun .pn { position: absolute; left: 50%; top: 45%; width: min(60vw, 820px); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); will-change: transform, opacity; }
.tun .pn:not(:first-child) { opacity: 0; }
.tun .pn img { transform: scale(1.28); }
.tun .pn figcaption { display: none; }
.tun .ttl, .tun .cn, .tun .pv, .tun .nx { display: block; }
.ttl { position: absolute; left: 0; right: 0; bottom: 8vh; bottom: 8svh; z-index: 200; pointer-events: none; }
.t1 { color: #fff; font: 500 clamp(40px, 7vw, 108px) Fraunces, serif; letter-spacing: -.03em; line-height: 1; }
.t2 { color: #B9C9E8; margin: 12px 0 0; max-width: 36ch; }
.tr { animation: ti .8s var(--ease); }
@keyframes ti { from { opacity: 0; transform: translateY(46px); } }
.cn { position: absolute; top: 84px; left: 50%; transform: translateX(-50%); z-index: 200; color: #B9C9E8; font-size: 14px; text-align: center; pointer-events: none; }
.cn i { display: block; height: 2px; width: 120px; background: rgba(255, 255, 255, .2); margin-top: 8px; position: relative; overflow: hidden; }
.cn b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; }
.pv, .nx { position: absolute; bottom: 3vh; bottom: 3svh; z-index: 200; color: var(--sky); font-size: 13px; max-width: 30vw; pointer-events: none; }
.pv { left: 24px; } .nx { right: 24px; text-align: right; }

.wv { display: block; width: 100%; height: 80px; margin-top: -79px; position: relative; z-index: 3; }

/* insurer marquee */
.mq { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--line); padding: 22px 0; background: var(--paper); }
.mq > div { display: inline-block; animation: mq 38s linear infinite; }
.mq:hover > div { animation-play-state: paused; }
.mq span { font: 500 clamp(26px, 3.6vw, 44px) Fraunces, serif; padding: 0 .6em; color: var(--navy); }
.mq span::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 1.2em; vertical-align: middle; }
@keyframes mq { to { transform: translateX(-50%); } }

/* kinetic band */
.kb { background: var(--navy); border-radius: 40px; padding: clamp(40px, 7vw, 90px) 0; overflow: hidden; text-align: center; }
.kr { overflow: hidden; white-space: nowrap; }
.kr > div { display: inline-block; will-change: transform; }
.kr span { font: 500 clamp(54px, 11vw, 170px) Fraunces, serif; letter-spacing: -.03em; line-height: 1.1; padding: 0 .3em; color: #fff; }
.kr span::after { content: ""; display: inline-block; width: .12em; height: .12em; border-radius: 50%; background: var(--red); margin-left: .6em; }
.kr:nth-child(2) span { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .65); }
.kb .cta { justify-content: center; margin-top: 44px; }

/* ---------- sections ---------- */
section { padding: 110px 0; background: var(--paper); }
.tint { background: var(--tint); }
h2 { font-size: clamp(36px, 5.6vw, 76px); max-width: 14ch; }
.lead { max-width: 48ch; color: var(--muted); font-size: 19px; margin: 20px 0 0; }
.rows { margin-top: 50px; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 20px; padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .35s, padding .35s; }
.row:hover { background: #fff; padding-left: 26px; }
.rn { font: 500 clamp(26px, 3.6vw, 46px) Fraunces, serif; letter-spacing: -.02em; flex: 1; }
.rd { color: var(--muted); max-width: 30ch; font-size: 16px; }
.row i { font-style: normal; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 18px; flex: none; transition: background .3s, color .3s, transform .3s; }
.row:hover i { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }
.tight { padding-top: 20px; }

/* ---------- inner pages ---------- */
.pt { padding: 150px 0 20px; background: var(--paper); position: relative; overflow: hidden; }
.pt::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 90% at 85% 0%, #000, transparent 70%);
  mask-image: radial-gradient(70% 90% at 85% 0%, #000, transparent 70%);
}
.pt .wrap { position: relative; }
.pt h1 { font-size: clamp(46px, 8vw, 112px); max-width: 12ch; }
.crumb { display: flex; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 22px; padding: 0; list-style: none; }
.crumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.px { overflow: hidden; background: var(--tint); }
.px img { display: block; width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0) scale(1.16); will-change: transform; }
.arch { aspect-ratio: 4 / 5; border-radius: 220px 220px var(--r) var(--r); }
.wide { aspect-ratio: 16 / 8; border-radius: var(--r); margin-top: 40px; }
.card { background: #fff; border-radius: var(--r); padding: 34px; box-shadow: 0 30px 60px -30px rgba(11, 31, 75, .25); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; padding: 0; list-style: none; }
.trio li { border-top: 1.5px solid var(--ink); padding-top: 18px; font: 500 26px/1.15 Fraunces, serif; letter-spacing: -.01em; }
.trio small { display: block; font: 400 15px/1.5 Manrope, sans-serif; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
dl { margin: 0; display: grid; gap: 22px; }
dt { font-weight: 700; font-size: 14px; color: var(--muted); }
dd { margin: 2px 0 0; font: 500 24px Fraunces, serif; }
dd a { text-decoration: none; }

/* ---------- form ---------- */
.f { display: grid; gap: 16px; }
.f label { font-weight: 700; font-size: 14px; display: grid; gap: 7px; }
.f input, .f select { font: inherit; font-size: 16px; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); width: 100%; }
.f input:focus, .f select:focus { outline: none; border-color: var(--blue); }
.note { font-size: 14px; color: var(--muted); margin: 0; }
#fe { color: var(--red); font-weight: 700; min-height: 1.3em; margin: 0; }
.alt2 { background: none; border: 0; color: var(--muted); font: 600 14px Manrope, sans-serif; text-decoration: underline; cursor: pointer; padding: 4px; }

/* ---------- footer ---------- */
footer { background: var(--navy); color: #B8C7E6; padding: 70px 0 40px; font-size: 15px; overflow: hidden; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
footer nav a { display: block; text-decoration: none; padding: 2px 0; }
footer nav a:hover, footer .wrap a:hover { color: #fff; }
footer b { color: #fff; display: block; margin-bottom: 8px; }
footer .fb { font: 500 28px Fraunces, serif; color: #fff; }
footer .cp { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 22px; font-size: 13px; }
footer .gw { grid-column: 1 / -1; font: 500 clamp(110px, 26vw, 400px) Fraunces, serif; letter-spacing: -.05em; line-height: .8; color: rgba(255, 255, 255, .06); margin: 10px 0 -2vw; user-select: none; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- mobile quick bar ---------- */
.sb { display: none; }

/* ---------- floating chat + social ---------- */
.fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab.hide { display: none; }
.fl { display: flex; flex-direction: column-reverse; gap: 12px; align-items: flex-end; }
.fi { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.7); transform-origin: 100% 100%; transition: opacity .2s, transform .35s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .35s; }
.fab.o .fi { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .45s cubic-bezier(.3, 1.4, .5, 1), visibility 0s; transition-delay: calc(var(--k) * .06s); }
.fi span { background: #fff; color: var(--navy); font: 700 14px Manrope, sans-serif; padding: 8px 14px; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(11, 31, 75, .4); white-space: nowrap; }
.fi i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); color: #fff; }
.fi svg, .fm svg { width: 26px; height: 26px; fill: currentColor; }
.fm { position: relative; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--red); color: #fff; box-shadow: 0 14px 30px -8px rgba(214, 47, 47, .65); cursor: pointer; display: grid; place-items: center; transition: transform .3s; }
.fm:hover { transform: scale(1.06); }
.fm::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: pl 2.4s ease-out infinite; pointer-events: none; }
.fab.o .fm::after { display: none; }
@keyframes pl { to { transform: scale(1.6); opacity: 0; } }

.chat { position: fixed; right: 16px; bottom: 96px; width: 372px; height: min(560px, calc(100vh - 130px)); z-index: 70; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(11, 31, 75, .5); display: flex; flex-direction: column; overflow: hidden; transform-origin: 100% 100%; transform: scale(.8); opacity: 0; visibility: hidden; transition: transform .35s cubic-bezier(.3, 1.2, .5, 1), opacity .2s, visibility 0s .35s; }
.chat.o { transform: none; opacity: 1; visibility: visible; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1), opacity .25s, visibility 0s; }
.ch { background: var(--navy); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ch b { font: 600 19px Fraunces, serif; display: block; }
.ch small { color: #B8C7E6; font-size: 12.5px; line-height: 1.35; display: block; margin-top: 2px; }
.ch button { background: none; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; padding: 0 4px; }
.cm { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.m { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-line; animation: up .35s ease both; }
.m.b { background: var(--tint); color: var(--ink); border-bottom-left-radius: 6px; align-self: flex-start; }
.m.u { background: var(--blue); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.m.e { background: #FDECEC; border: 1.5px solid var(--red); }
.ac { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 94%; }
.ac a, .ac button { font: 700 13.5px Manrope, sans-serif; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--blue); color: var(--blue); background: #fff; text-decoration: none; cursor: pointer; }
.ac a.p { background: var(--red); border-color: var(--red); color: #fff; }
.ty { display: flex; gap: 5px; padding: 14px 16px; }
.ty i { width: 7px; height: 7px; border-radius: 50%; background: #7C93BD; animation: tb 1s infinite; }
.ty i:nth-child(2) { animation-delay: .15s; } .ty i:nth-child(3) { animation-delay: .3s; }
@keyframes tb { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.cf { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.cf input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.cf button { background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 0 20px; font: 700 14px Manrope, sans-serif; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .dn, .hd .btn.red { display: none; }
  .mb { display: block; }
  .two, footer .wrap, .trio { grid-template-columns: 1fr; }
  .rd { display: none; }
  section { padding: 76px 0; }
  .arch { border-radius: 190px 190px var(--r) var(--r); }
  .row { padding: 20px 4px; }
  .sc, .pv, .nx { display: none !important; }
  .tun .pn { width: 74vw; aspect-ratio: 3 / 4; top: 40%; }
  .ttl { bottom: calc(56px + 4vh); bottom: calc(56px + 4svh); }
  .brand { font-size: 17px; line-height: 1.1; }
  .lg img { height: 28px; }
  .sb { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -10px 30px -12px rgba(11, 31, 75, .25); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .sb a { text-align: center; padding: 15px 4px; font-weight: 700; font-size: 13px; text-decoration: none; color: var(--navy); }
  .sb a:last-child { background: var(--red); color: #fff; }
  body { padding-bottom: 56px; }
  .fab { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .chat { left: 10px; right: 10px; width: auto; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); height: min(74vh, 580px); }
}

/* ---------- cross-page transition (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .w, .js .hx, .js .rv { animation: none; opacity: 1; transform: none; transition: none; }
  .mq > div, .sc::after, .fm::after, .ty i, .m, .tr { animation: none; }
  .fi, .chat, .fm { transition: none !important; }
  .intro .ld { display: none; }
  .px img { transform: none; }
  @view-transition { navigation: none; }
}

/* ---- home journey: scenes, thin small-caps copy, gold pills ---- */
:root { --gold: #D9B25F; --jo: "Josefin Sans", Manrope, sans-serif; }
.spin { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border: 2px solid #ccd; border-top-color: #667; border-radius: 50%; animation: sp .9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.ld { background: #fff !important; }
.sx { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.sx > .wrap { width: 100%; }
.sv { min-height: 85vh; }
.sx.lt { background: #eceef7; color: #2b303b; }
.sx.dkc { background: #0b0907; color: #fff; }
#loc { background: #0a120d; }
.gl .sx { background: transparent; }
.sx, .sx.sv { padding: 0; }
.st { font-size: 15px; line-height: 1.7; max-width: 440px; font-family: var(--jo); font-weight: 300; will-change: opacity, transform; }
.st.r { margin-left: auto; max-width: 400px; }
.st.c { margin: 0 auto; text-align: center; max-width: 560px; }
.st h1, .st h2 { font: 300 clamp(26px, 3.2vw, 44px)/1.15 var(--jo); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 20px; color: inherit; max-width: none; }
.dkc .st h2 { color: var(--gold); }
.st p { font: 300 15px/1.7 var(--jo); letter-spacing: .01em; margin: 0 0 26px; }
.gl #loc { background: transparent; }
.pl { letter-spacing: .1em; display: inline-flex; align-items: center; gap: 12px; font: 600 12px var(--jo); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.lt .pl { color: #2b303b; }
.pl i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #222; font-style: normal; border: 1px solid rgba(0, 0, 0, .25); }
.hs { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hb { position: absolute; left: 24px; right: 24px; bottom: 5vh; display: flex; justify-content: space-between; align-items: center; font: 400 11px var(--jo); letter-spacing: .12em; text-transform: uppercase; color: #2b303b; }
.hb .pl i { background: transparent; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ins { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 20px; justify-items: center; font: 600 clamp(15px, 1.6vw, 22px) var(--jo); letter-spacing: .08em; color: #5d6676; }
.pins { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; visibility: hidden; }
.pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; font: 600 12px var(--jo); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px #000; }
.pin b { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: radial-gradient(circle at 35% 30%, #fff1b8, #d9a93a 55%, #7a5412); box-shadow: 0 6px 14px rgba(0, 0, 0, .6); transition: transform .25s; }
.pin.big b { width: 26px; height: 26px; }
.pin:hover b { transform: rotate(-45deg) scale(1.3); }
.hint { position: absolute; left: 0; right: 0; bottom: 6vh; text-align: center; font: 300 12px var(--jo); color: rgba(255, 255, 255, .8); margin: 0; }
.gl .hd .dn a { font: 400 12px var(--jo); letter-spacing: .14em; text-transform: uppercase; }
.gl footer { position: relative; z-index: 1; background: #0b0907; color: #e8dcc4; }
.gl footer a, .gl footer b { color: #fff; }
@media (max-width: 800px) { .two2 { grid-template-columns: 1fr; } .st.r { margin-left: 0; } .hb { left: 16px; right: 16px; } }

@media (max-width: 800px) { .sx { padding: 0; } }
