/* Dr Riad Srour Physiotherapy Center: mobile landing, glass edition, white theme
   Main colour is white (clinic grade); the logo's own blue (#087f9b) is the accent:
   primary buttons, the logo, beads, active states, drawings and the booking block.
   Text is a dark clinic blue so it reads crisply on white and on frosted white glass. */

:root {
  --brand: #087f9b;          /* the logo blue: the accent colour */
  --brand-lift: #1593b0;     /* the same blue, lit */
  --brand-deep: #066c84;     /* the same blue, in shade */
  --brand-ink: #06637a;      /* blue for small text on white (passes contrast) */
  --wash: #edf7fa;           /* the faintest blue, for tinted panels */
  --line: rgba(8, 127, 155, 0.14); /* hairline borders */
  --aqua: #12a7c4;
  --aqua-soft: #e0f8fd;
  --mint: #24a27e;
  --peach: #e2814f;

  --page: #f6fafb;           /* page background: white with a breath of blue */
  --ink: #0b3a47;            /* headings and main text */
  --ink-2: #3d5f69;          /* body copy */
  --ink-3: #567580;          /* quiet labels */
  --on-light: #055d72;

  --glass-fill: linear-gradient(160deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 60%, rgba(255, 255, 255, 0.74) 100%);
  --glass-dark: linear-gradient(150deg, rgba(5, 88, 108, 0.56) 0%, rgba(4, 76, 94, 0.42) 100%);
  --glass-white: linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.6) 55%, rgba(255, 255, 255, 0.7) 100%);
  --glass-white-strong: linear-gradient(160deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.82) 60%, rgba(255, 255, 255, 0.88) 100%);
  --ink-deep: #053f4e;       /* titles on white */
  --ink-dark: #055d72;       /* text on white glass */
  --ink-dark-2: #24606f;
  --glass-blur: blur(20px) saturate(160%);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--line), 0 18px 40px -24px rgba(8, 80, 100, 0.32);
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--line), 0 24px 48px -26px rgba(8, 80, 100, 0.38);

  --gutter: 20px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
p, h1, h2, h3 { margin: 0; }

svg { flex: none; }
.btn svg,
.icon-btn svg,

.sheet-link svg,
.swipe-hint svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 12px; }

/* ---------- Background light ---------- */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% -10%, #ffffff 0%, var(--page) 55%, #eef6f8 100%);
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 90vmax;
  height: 90vmax;
  border-radius: 50%;
  will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 { top: -46vmax; right: -50vmax; background: radial-gradient(circle, rgba(92, 200, 225, 0.28) 0%, rgba(92, 200, 225, 0) 58%); }
.b2 { top: 10vh; left: -60vmax; background: radial-gradient(circle, rgba(8, 127, 155, 0.14) 0%, rgba(8, 127, 155, 0) 60%); animation-duration: 32s; animation-delay: -8s; }
.b3 { bottom: -50vmax; right: -34vmax; background: radial-gradient(circle, rgba(140, 230, 205, 0.22) 0%, rgba(140, 230, 205, 0) 60%); animation-duration: 29s; animation-delay: -14s; }
.b4 { top: 55vh; left: -14vw; width: 70vmax; height: 70vmax; background: radial-gradient(circle, rgba(8, 127, 155, 0.1) 0%, rgba(8, 127, 155, 0) 60%); animation-duration: 36s; animation-delay: -4s; }

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); }
  100% { transform: translate3d(5vmax, -4vmax, 0) scale(0.96); }
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */

.glass,
.glass-btn {
  position: relative;
  background: var(--glass-fill);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  isolation: isolate;
}

/* light catches the top left edge, fades round the rest */
.glass::before,
.glass-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.4) 30%, rgba(8, 127, 155, 0.08) 62%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- Loader ---------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.loader-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 50% 42%, #ffffff 0%, var(--page) 60%, #eaf4f7 100%);
}

.loader-halo {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 127, 155, 0.12) 0%, rgba(8, 127, 155, 0.04) 42%, rgba(8, 127, 155, 0) 68%);
  opacity: 0;
  transform: scale(0.6);
}

.loader-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: -6vh;
}

.loader-mark {
  width: 88px;
  height: 191px;
  color: var(--brand);
  transform-origin: 0 0;
}
.loader-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 16px rgba(8, 127, 155, 0.22));
}

.draw-path {
  stroke-dasharray: 1 1;
  stroke-dashoffset: 1;
}
.dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}

.loader-word { text-align: center; }
.loader-name {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.005em;
}
.loader-name .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
}
.loader-sub {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--brand-ink);
  opacity: 0;
  padding-left: 0.5em;
}

.loader-beads {
  position: absolute;
  bottom: calc(56px + env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  opacity: 0;
}
.loader-beads i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.25;
}

/* sequence starts once fonts are ready (JS adds .go) */
.loader.go .loader-halo { animation: halo 2.4s var(--ease-out) 0.1s forwards, breathe 3.2s ease-in-out 2.5s infinite; }
.loader.go .draw-path { animation: draw 1.5s cubic-bezier(0.6, 0, 0.3, 1) 0.2s forwards; }
.loader.go .dot { animation: pop 0.6s var(--spring) forwards; }
.loader.go .dot.d1 { animation-delay: 0.5s; }
.loader.go .dot.d2 { animation-delay: 0.64s; }
.loader.go .dot.d3 { animation-delay: 0.78s; }
.loader.go .dot.d4 { animation-delay: 0.92s; }
.loader.go .loader-name .ch { animation: letter 0.8s var(--ease-out) forwards; animation-delay: calc(1.35s + var(--i) * 0.035s); }
.loader.go .loader-sub { animation: track 1.1s var(--ease-out) 1.9s forwards; }
.loader.go .loader-beads { animation: fade-in 0.6s ease 2.3s forwards; }
.loader.go .loader-beads i { animation: bead 1.2s ease-in-out infinite; }
.loader-beads i:nth-child(2) { animation-delay: 0.12s !important; }
.loader-beads i:nth-child(3) { animation-delay: 0.24s !important; }
.loader-beads i:nth-child(4) { animation-delay: 0.36s !important; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes halo { to { opacity: 1; transform: scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.75; } }
@keyframes letter { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes track { from { opacity: 0; letter-spacing: 0.9em; } to { opacity: 1; letter-spacing: 0.32em; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes bead { 0%, 100% { opacity: 0.25; transform: scale(1); } 40% { opacity: 1; transform: scale(1.35); } }

/* ---------- Page ---------- */

/* clip (not hidden) keeps the sticky top bar working; it stops slide-in animations
   from widening the page, which made phones zoom the whole site out */
.page {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  overflow-x: clip;
  padding-bottom: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(8px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
}
.is-ready [data-reveal] { opacity: 1; transform: none; filter: none; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: calc(10px + env(safe-area-inset-top));
  z-index: 20;
  margin: calc(10px + env(safe-area-inset-top)) 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 7px 7px 16px;
  border-radius: 999px;
}

.topbar[data-reveal] { transform: none; filter: none; }
.menu-open .topbar { z-index: 45; }

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { width: 16px; height: 35px; color: var(--brand); }
.brand-mark.is-hidden { opacity: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 19px; color: var(--ink); }
.brand-sub {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-ink);
}

.topbar-actions { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.25s var(--spring);
}
.icon-btn:active { transform: scale(0.9); }

.burger { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.35s var(--ease-out), width 0.35s var(--ease-out); }
.burger i:last-child { width: 11px; }
[aria-expanded="true"] .burger i:first-child { transform: translateY(3.5px) rotate(45deg); width: 18px; }
[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); width: 18px; }

/* ---------- Hero ---------- */

.hero { padding: 40px var(--gutter) 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ripple 2.2s ease-out infinite;
}
@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(3.2); opacity: 0; } }

.hero-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 13.6vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line > span { display: inline-block; filter: none; transform: translate3d(0, 105%, 0); }
.is-ready .hero-title .line > span { transform: none; }

em {
  font-style: italic;
  background: linear-gradient(100deg, var(--brand) 0%, var(--aqua) 55%, var(--mint) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero-copy { max-width: 34ch; font-size: 16.5px; font-weight: 500; line-height: 1.6; color: var(--ink-2); }

/* real clinic footage in a white glass frame */
.hero-media {
  position: relative;
  padding: 9px;
  border-radius: 34px;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
}
.hero-media[data-reveal] { transform: translate3d(0, 34px, 0) scale(0.96); }
.is-ready .hero-media[data-reveal] { transform: none; }
.hero-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 26px;
  background: #dfe8eb;
}
.hero-cta { display: flex; gap: 10px; margin-top: 14px; }

.btn {
  position: relative;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  overflow: hidden;
  transition: transform 0.3s var(--spring), box-shadow 0.3s ease;
}
.btn:active { transform: scale(0.96); }

.btn-solid {
  flex: 1;
  color: #fff;
  background: linear-gradient(180deg, var(--brand) 0%, #066f88 100%);
  box-shadow: 0 16px 30px -14px rgba(8, 127, 155, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-solid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.34) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5s ease-in-out 3.6s infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.btn-glass { padding: 0 22px; color: var(--brand-ink); }

/* ---------- People: Dr Riad in the middle, team either side, one swipe per person ---------- */

.people {
  container-type: inline-size;
  position: relative;
  margin-top: 26px;
}
/* sizes come from the section's own width, so a desktop scrollbar cannot push the centre card off centre */
.people > * {
  --cw: min(74cqw, 320px);               /* card width */
  --side: calc((100cqw - var(--cw)) / 2); /* room either side of the centred card */
  --gap: 14px;
}

.people-inner { position: relative; z-index: 1; }
.people-inner[data-reveal] { transform: translate3d(0, 44px, 0) scale(0.97); }
.is-ready .people-inner[data-reveal] { transform: none; }

.stage {
  position: relative;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 20px var(--side) 24px;
  scrollbar-width: none;
}
.stage::-webkit-scrollbar { display: none; }
.stage:focus-visible { outline-offset: -6px; border-radius: 36px; }

.slide {
  flex: 0 0 var(--cw);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

/* depth is drawn on the inner card (main.js sets --s, --o, --ry, --ox while you swipe) */
.slide-card {
  padding: 9px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
  opacity: var(--o, 1);
  transform: perspective(900px) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transform-origin: var(--ox, 50%) 50%;
  will-change: transform;
}

.slide-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  background: #cfd6d8;
}
.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  transform: scale(1.05) translate3d(0, var(--py, 0px), 0);
}
.slide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 72, 90, 0.18) 0%, rgba(4, 72, 90, 0) 40%);
  pointer-events: none;
}

.plate-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}
.plate-tag svg { width: 6px; height: 13px; color: var(--brand); }

.plate {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 10px 12px 16px;
  border-radius: 20px;
  color: var(--ink-dark);
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 26px -14px rgba(8, 80, 100, 0.4);
}
.plate-text { min-width: 0; }
.plate-name { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.05; }
.plate-role {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-dark-2);
}
.plate-role::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone, var(--brand));
}
.slide[data-tone="mint"] { --tone: #24a27e; }
.slide[data-tone="peach"] { --tone: #e2814f; }
.slide[data-tone="soft"] { --tone: #8fb0b8; }


.sheen {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 32%, rgba(255, 255, 255, 0.32) 48%, rgba(255, 255, 255, 0.06) 56%, transparent 68%);
  transform: translateX(-130%);
  pointer-events: none;
}
.is-ready .sheen { animation: sweep 1.6s var(--ease-io) 1.25s forwards; }
@keyframes sweep { to { transform: translateX(130%); } }

/* beads under the row: one per person, the current one stretches */
.pager { display: flex; justify-content: center; align-items: center; gap: 7px; }
.bead {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(8, 127, 155, 0.24);
  transition: width 0.35s var(--ease-out), background 0.35s ease;
}
.bead::after { content: ""; position: absolute; inset: -9px -4px; }
.bead.is-lead { box-shadow: 0 0 0 2px rgba(8, 127, 155, 0.22); }
.bead[aria-current="true"] { width: 24px; background: var(--brand); }

.swipe-hint {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  transition: opacity 0.4s ease;
}
.swipe-hint svg { width: 16px; height: 16px; animation: nudge 1.6s ease-in-out infinite; }
.swipe-hint svg:first-child { animation-name: nudge-back; }
.swipe-hint.gone { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
@keyframes nudge-back { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-4px); } }

/* ---------- 3D mobilisation table ---------- */

.feature { margin-top: 64px; scroll-margin-top: 84px; }

.feature-media {
  margin: 22px var(--gutter) 0;
  padding: 9px;
  border-radius: 32px;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
}
.feature-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  background: #dfe8eb;
  cursor: pointer;
}

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0 var(--gutter);
  list-style: none;
}
.reasons[data-io] { transition-delay: 0.1s; }
.reason {
  padding: 16px 14px;
  border-radius: 24px;
  background: var(--glass-white-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--card-shadow);
}
.reason svg {
  display: block;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 14px;
  color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.16);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reason h3 { margin-top: 12px; font-family: var(--serif); font-weight: 400; font-size: 19px; line-height: 1.15; color: var(--ink); }
.reason p { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

.feature-cta { display: flex; width: calc(100% - 2 * var(--gutter)); margin: 14px var(--gutter) 0; }

/* "+" on each team plate: tap the card to open the profile */
.plate-more {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.18);
}
.plate-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.slide-card { cursor: pointer; }
.slide-card:focus-visible { outline-offset: 4px; border-radius: 32px; }
.slide[data-tone="rose"] { --tone: #cf5f86; }

/* ---------- Team profile sheet ---------- */

.profile-scrim {
  position: fixed;
  inset: 0;
  z-index: 46;
  background: rgba(11, 58, 71, 0.26);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.profile {
  position: fixed;
  z-index: 47;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  max-width: 460px;
  max-height: calc(100dvh - 70px);
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 18px 18px;
  border-radius: 32px;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94));
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(8, 60, 75, 0.5);
  transform: translate3d(0, 110%, 0);
  visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.profile-open .profile-scrim { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.profile-open .profile { transform: none; visibility: visible; transition: transform 0.55s var(--ease-out); }

.profile-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; }
.profile-close svg { width: 18px; height: 18px; }

.profile-top { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding-right: 44px; }
.profile-photo {
  flex: none;
  width: 96px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 22px;
  background: #cfd6d8;
  box-shadow: 0 0 0 1px var(--line), 0 14px 26px -16px rgba(8, 80, 100, 0.5);
}
.profile-id { min-width: 0; }
.profile-title { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--brand-ink); }
.profile-name { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.05; color: var(--ink); }
.profile-exp { margin-top: 8px; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }

.profile-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.profile-skills span {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.18);
}

.profile-creds { margin: 18px 0 0; padding: 0; list-style: none; }
.profile-creds li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); }
.profile-creds li:first-child { border-top: 0; }
.profile-creds li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 17px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.profile-creds strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.profile-creds span { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }

.profile-bio {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18.5px;
  line-height: 1.45;
  color: var(--ink-deep);
  background: var(--wash);
}
.profile-book { display: flex; width: 100%; margin-top: 14px; }

/* ---------- Insurance affiliates ---------- */

.insurance { margin-top: 64px; scroll-margin-top: 84px; }
.ins-panel {
  margin: 22px var(--gutter) 0;
  padding: 12px;
  border-radius: 30px;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(150, 225, 240, 0.35) 0%, rgba(150, 225, 240, 0) 55%),
    linear-gradient(160deg, var(--brand) 0%, #066f88 100%);
  box-shadow: 0 24px 44px -24px rgba(8, 127, 155, 0.8);
}
.ins-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ins-grid li {
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.ins-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ins-grid img { width: 76%; height: 58px; object-fit: contain; }
/* GlobeMed's mark is tall (globe, name and "Lebanon"), so it gets more height to read the same size */
.ins-grid img[src$="globemed.png"] { height: 80px; }

/* ---------- Where we are ---------- */

.location { margin-top: 64px; scroll-margin-top: 84px; }
.loc-card {
  position: relative;
  display: block;
  margin: 22px var(--gutter) 0;
  padding: 9px;
  border-radius: 32px;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
  transition: opacity 0.2s ease;
}
.loc-card:active { opacity: 0.88; }
.loc-photo { display: block; overflow: hidden; border-radius: 24px; background: #cfd6d8; }
.loc-photo img { display: block; width: 100%; height: auto; aspect-ratio: 720 / 522; object-fit: cover; }
/* the photo is wide, so the name sits under it instead of covering the building */
.loc-plate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 6px 6px 10px;
}
.loc-text { display: flex; flex-direction: column; min-width: 0; }
.loc-name { font-family: var(--serif); font-size: 19px; line-height: 1.15; color: var(--ink); }
.loc-place { margin-top: 3px; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); }
.loc-pin {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, var(--brand) 0%, #066f88 100%);
  box-shadow: 0 8px 18px -8px rgba(8, 127, 155, 0.8);
}
.loc-pin svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- What people say ---------- */

.reviews { margin-top: 64px; scroll-margin-top: 84px; }
.rev-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px var(--gutter) 0;
  padding: 20px 18px;
  border-radius: 30px;
  background: var(--glass-white-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
}
.rev-score { flex: none; text-align: center; }
.rev-big { font-family: var(--serif); font-size: 58px; line-height: 0.95; color: var(--ink); }
.rev-stars { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.rev-stars svg, .btn .btn-star { width: 17px; height: 17px; fill: #f5b301; stroke: none; }
.rev-count { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.rev-bars { flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; }
.rev-bars li { display: flex; align-items: center; gap: 8px; height: 20px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.rev-n { width: 10px; text-align: right; }
.rev-bar { flex: 1; height: 7px; border-radius: 999px; background: rgba(8, 127, 155, 0.1); overflow: hidden; }
.rev-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f5b301, #f7c843); }
.rev-c { width: 26px; font-variant-numeric: tabular-nums; }

/* quote cards: one swipe row, cards are snap items (no transforms on them) */
.quote-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 12px var(--gutter) 4px;
  scrollbar-width: none;
}
.quote-rail::-webkit-scrollbar { display: none; }
.quote-rail[hidden] { display: none; }
.quote {
  flex: 0 0 min(80cqw, 300px);
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 18px 18px 16px;
  border-radius: 26px;
  scroll-snap-align: start;
  background: var(--glass-white-strong);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--card-shadow);
}
.reviews { container-type: inline-size; }
.quote-stars { display: flex; gap: 2px; }
.quote-stars svg { width: 15px; height: 15px; fill: #f5b301; }
/* collapsed, every card shows the same 8 lines; long ones fade out and offer "Read more" */
.quote-rail { align-items: flex-start; }
.quote-text {
  margin: 12px 0 0;
  height: calc(18px * 1.45 * 8);
  overflow: hidden;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-deep);
}
.quote-text p { margin: 0; }
.quote-text p + p { margin-top: 0.7em; }
.quote.is-long .quote-text {
  -webkit-mask: linear-gradient(to bottom, #000 70%, transparent);
  mask: linear-gradient(to bottom, #000 70%, transparent);
}
.quote.is-open .quote-text { height: auto; -webkit-mask: none; mask: none; }
.quote-more {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-ink);
}
.quote-more.is-hidden { visibility: hidden; }
.quote-by { margin-top: 14px; }
.quote-by strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.quote-by span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }

/* ---------- Footer: the clinic blue closes the page ---------- */

.site-footer {
  margin-top: 72px;
  padding: 30px var(--gutter) calc(26px + env(safe-area-inset-bottom));
  border-radius: 36px 36px 0 0;
  color: #fff;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(150, 225, 240, 0.35) 0%, rgba(150, 225, 240, 0) 55%),
    linear-gradient(170deg, var(--brand) 0%, #066a82 100%);
}
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-mark { width: 22px; height: 48px; color: #fff; }
.foot-brand-text { display: flex; flex-direction: column; line-height: 1; }
.foot-name { font-family: var(--serif); font-size: 26px; }
.foot-sub { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255, 255, 255, 0.88); }

.foot-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.foot-contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition: background 0.2s ease;
}
.foot-contact a:active { background: rgba(255, 255, 255, 0.2); }
.foot-contact svg {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  color: var(--brand);
  background: #fff;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.foot-contact span { min-width: 0; }
.foot-contact strong { display: block; font-size: 14px; font-weight: 700; }
.foot-contact small { display: block; margin-top: 1px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, 0.9); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.foot-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}
.foot-links a.foot-account { background: #fff; color: var(--brand-ink); font-weight: 700; box-shadow: none; }
.foot-copy {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
}

/* ---------- Section heads (shared by every section after the hero) ---------- */

.section-head { padding: 0 var(--gutter); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 6px;
  background: radial-gradient(circle, var(--brand) 2px, transparent 2.5px) 0 50% / 8px 6px repeat-x;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 10.4vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-sub { margin-top: 12px; max-width: 34ch; font-size: 16.5px; font-weight: 500; line-height: 1.55; color: var(--ink-2); }

/* blocks below the fold fade up as they scroll into view (main.js adds .in) */
[data-io] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(8px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), filter 0.9s var(--ease-out);
}
[data-io].in { opacity: 1; transform: none; filter: none; }
.topics[data-io] { transition-delay: 0.12s; }

/* ---------- Recent articles ---------- */

.people,
.articles { scroll-margin-top: 84px; }
.articles { margin-top: 68px; }

.topics {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px var(--gutter) 6px;
  scrollbar-width: none;
}
.topics::-webkit-scrollbar { display: none; }

.topic {
  flex: none;
  height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-dark);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.22);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--spring);
}
.topic:active { transform: scale(0.95); }
.topic[aria-pressed="true"] {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 20px -10px rgba(8, 127, 155, 0.8);
}

/* one swipe row of equal cards; no transforms on the cards themselves (they are snap items) */
.articles { container-type: inline-size; }

.post-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 16px var(--gutter) 22px;
  scrollbar-width: none;
  transform: translate3d(48px, 0, 0);
  transition: transform 1.1s var(--ease-out);
}
.post-rail::-webkit-scrollbar { display: none; }
.post-rail.in { transform: none; }
.post-rail:focus-visible { outline-offset: -6px; border-radius: 34px; }

.post {
  display: block;
  color: var(--ink-dark);
  background: var(--glass-white-strong);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
  transition: opacity 0.8s var(--ease-out) var(--d, 0s);
}
.post:active { opacity: 0.86; }
.post-rail .post { opacity: 0; }
.post-rail.in .post { opacity: 1; }

.post-card {
  position: relative;
  flex: 0 0 min(78cqw, 300px);
  padding: 9px;
  border-radius: 30px;
  scroll-snap-align: start;
}
.post-card .post-cover { aspect-ratio: 3 / 4; border-radius: 22px; }
/* line drawings sit in the top part so the plate never covers them */
.post-card .cover:not(.has-photo) svg { top: 6%; height: 54%; }

.post-plate {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 19px;
  padding: 14px 12px 12px 16px;
  border-radius: 20px;
  background: var(--glass-white-strong);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.6), 0 12px 26px -14px rgba(8, 80, 100, 0.4);
}
.post-card .post-title { font-size: 20.5px; }
.post-plate .post-meta { margin-top: 8px; }
.post-plate .post-go { width: 38px; height: 38px; }

.cover.has-photo { background: #cfd6d8; }
.cover.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

.post-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px 9px 9px;
  border-radius: 26px;
}
.post-thumb { flex: none; width: 94px; height: 94px; border-radius: 19px; }
.post-row .post-body { min-width: 0; }
.post-row .post-title { font-size: 18.5px; }

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dark);
}
.post-title { margin-top: 5px; font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink-deep); }
.post-excerpt { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-dark-2); }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dark);
}
.post-row .post-meta { margin-top: 6px; }

/* named post-go, never "go": main.js adds .go to the loader to start its animation */
.post-go {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #1593b0 0%, var(--brand) 100%);
  box-shadow: 0 8px 18px -8px rgba(8, 127, 155, 0.8);
}
.post-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* cover drawings: white line art on the clinic blue, light placed per article */
.cover {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 90% at var(--light, 25% 0%), rgba(150, 225, 240, 0.85) 0%, rgba(150, 225, 240, 0) 56%),
    linear-gradient(160deg, #1b92ad 0%, var(--brand) 55%, var(--brand-deep) 100%);
}
.cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover .l,
.cover .t,
.cover .b { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cover .l { stroke: #fff; stroke-width: 3; }
.cover .t { stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.cover .b { stroke: #fff; stroke-width: 11; }
.cover .f { fill: #fff; }

/* ---------- Article reader ---------- */

body.reading { overflow: hidden; }

.reader {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: linear-gradient(180deg, #ffffff 0%, var(--page) 40%, #eef6f8 100%);
  transform: translate3d(0, 100%, 0);
  transition: transform 0.55s var(--ease-out);
}
.reader.open { transform: none; }

.reader-scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* full width so the fade covers the text underneath; buttons line up with the 640px column */
.reader-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - 640px) / 2)) 22px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.reader-bar > * { pointer-events: auto; }

.reader-inner { max-width: 672px; margin: 0 auto; padding: 0 16px calc(36px + env(safe-area-inset-bottom)); }

.reader-frame {
  padding: 9px;
  border-radius: 30px;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--card-shadow);
}
.reader-cover { aspect-ratio: 16 / 10; border-radius: 22px; }
.reader-cover.has-photo { aspect-ratio: 3 / 4; max-height: 72vh; }

.reader-head { padding: 24px 6px 20px; }
.tag-light {
  display: inline-flex;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.2);
}
.reader-title {
  margin-top: 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(33px, 9.6vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.reader-meta { margin-top: 12px; font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* the reading surface is solid white: long text needs the best contrast */
.paper {
  padding: 26px 22px 24px;
  border-radius: 28px;
  background: #fff;
  color: #23434b;
  font-size: 17px;
  line-height: 1.7;
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(8, 80, 100, 0.35);
}
.paper p { margin: 0 0 14px; }
.paper .lede { margin-bottom: 20px; font-size: 19px; font-weight: 500; line-height: 1.55; color: var(--ink-deep); }
.paper h3 {
  margin: 28px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.15;
  color: var(--ink-deep);
}
.paper ul { margin: 0 0 16px; padding: 0; list-style: none; }
.paper li { position: relative; margin-bottom: 10px; padding-left: 24px; }
.paper li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.paper-figure { margin: 22px -8px 22px; }
/* photos and app screens keep their own shape (crop the file, not in CSS) */
.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: #e9eef0;
  box-shadow: 0 0 0 1px var(--line);
}
.paper-figure figcaption { margin-top: 10px; padding: 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink-dark-2); }

.callout { margin: 24px 0 2px; padding: 16px 18px; border-radius: 18px; background: var(--wash); }
.callout p { margin: 0; }
.callout .callout-title { margin-bottom: 4px; font-weight: 700; color: var(--ink-deep); }
.callout.warn { background: #fff0e6; }
.callout.warn .callout-title { color: #93390f; }

.reader-cta {
  margin-top: 14px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(150, 225, 240, 0.35) 0%, rgba(150, 225, 240, 0) 55%),
    linear-gradient(160deg, var(--brand) 0%, #066f88 100%);
  box-shadow: 0 24px 44px -24px rgba(8, 127, 155, 0.8);
}
.reader-cta-title { font-family: var(--serif); font-size: 27px; line-height: 1.1; }
.reader-cta-text { margin-top: 6px; font-size: 15.5px; font-weight: 500; }
.reader-cta-row { display: flex; gap: 10px; margin-top: 16px; }
/* on the blue block the buttons flip: white primary, clear glass secondary */
.reader-cta .btn-solid { color: var(--on-light); background: #fff; box-shadow: 0 14px 26px -14px rgba(0, 30, 40, 0.6); }
.reader-cta .btn-solid::after { background: linear-gradient(110deg, transparent 30%, rgba(8, 127, 155, 0.12) 50%, transparent 70%); }
.reader-cta .btn-glass { color: #fff; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); }
.reader-cta .btn-glass::before { display: none; }

.reader .next { margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(8, 60, 75, 0.6);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.4s var(--ease-out);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menu sheet ---------- */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 58, 71, 0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.sheet {
  position: fixed;
  z-index: 41;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 456px;
  margin: 0 auto;
  padding: 10px 10px 12px;
  border-radius: 32px;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(8, 60, 75, 0.45);
  transform: translate3d(0, 115%, 0);
  visibility: hidden;
  transition: transform 0.55s var(--ease-out), visibility 0s linear 0.55s;
}
.menu-open .sheet-scrim { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
.menu-open .sheet { transform: none; visibility: visible; transition: transform 0.55s var(--ease-out); }

.sheet-grab { display: block; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: rgba(11, 58, 71, 0.16); }

.sheet-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 20px;
  transition: background 0.2s ease;
}
.sheet-link:active { background: var(--wash); }
.sheet-link + .sheet-link { margin-top: 2px; }
.sheet-link svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--wash);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 155, 0.16);
}
.sheet-link strong { display: block; font-size: 16px; font-weight: 600; }
.sheet-link small { display: block; margin-top: 1px; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }

/* ---------- Wider screens: keep the phone column, let the light fill the rest ---------- */

@media (min-width: 560px) {
  .page { padding-top: 12px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .blob, .pulse::after, .btn-solid::after, .swipe-hint svg { animation: none !important; }
  .loader.go .draw-path { animation-duration: 0.01s; animation-delay: 0s; }
  .loader.go .dot, .loader.go .loader-name .ch, .loader.go .loader-sub, .loader.go .loader-halo { animation-duration: 0.01s; animation-delay: 0s !important; }
  [data-reveal], [data-io], .post, .post-rail, .reader { transition-duration: 0.01s !important; transition-delay: 0s !important; }
  .is-ready .sheen { animation: none; }
}
