/* ============================================================
   Nyvo — shared base for every site version
   Tokens mirror the Nyvo Design System v1 (Oct 2026).
   Paper + sand carry the page, ink carries the words,
   coral is only the connection (line, logo tile, one button).
   ============================================================ */

:root {
  --paper: #fcfaf6;      /* sand-50, page */
  --sand: #f5efe6;       /* sand-100, cards + sections */
  --sand-line: #ebe1d5;  /* sand-200, borders */
  --ink: #232323;        /* text + primary buttons */
  --ink-pressed: #3d3d3d;
  --ink-muted: #6b6359;
  --white: #ffffff;
  --coral: #ff6f5e;      /* coral-400: line, dots, logo tile only */
  --coral-deep: #f2584a; /* coral-500: the one special button */
  --coral-press: #e04a3c;
  --success: #2c6b43;
  --success-tint: #e6f2e9;
  --warn: #dfa53e;
  --warn-tint: #fbf1dc;
  --warn-text: #93641a;
  --on-dark-muted: #b9b2a8;

  --f-brand: "Quicksand", "Nunito", system-ui, sans-serif;
  --f-body: "Work Sans", system-ui, sans-serif;

  --r-input: 8px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-xl: 28px;
  --r-2xl: 40px;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(107,99,89,.08);
  --shadow-mid: 0 16px 40px rgba(107,99,89,.14);
  --shadow-strong: 0 30px 80px rgba(35,35,35,.18);

  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --wrap: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-brand); font-weight: 700; letter-spacing: -0.01em; line-height: 1.06; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 900px) { :root { --gutter: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-size: 14px; font-weight: 600; color: var(--ink-muted);
}
.eyebrow__dots { display: inline-flex; align-items: center; gap: 4px; }
.eyebrow__dots i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: block; }
.eyebrow__dots b { width: 16px; height: 3px; border-radius: 3px; background: var(--coral); display: block; }
.muted { color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: var(--r-btn); border: 0; cursor: pointer;
  font-family: var(--f-brand); font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-pressed); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sand-line); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--sand); }
.btn--ghost-dark { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn--ghost-dark:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.btn--sm { height: 44px; padding: 0 18px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- App Store badge (official Apple artwork, hotlinked) ---------- */
.store { display: inline-flex; border-radius: 10px; transition: transform .2s var(--ease), opacity .2s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 54px; width: auto; }
.store--sm img { height: 44px; }
.store--lg img { height: 62px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-note { font-size: 14px; color: var(--ink-muted); display: inline-flex; align-items: center; gap: 8px; }
.cta-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

/* QR: desktop only, sends phone users straight to the badge */
.qr {
  display: none; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--sand-line);
}
.qr__code { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: var(--white); }
.qr__code svg { width: 100%; height: 100%; }
.qr__txt { font-size: 13px; line-height: 1.35; color: var(--ink-muted); max-width: 120px; }
.qr__txt strong { display: block; color: var(--ink); font-family: var(--f-brand); font-size: 15px; }
@media (min-width: 900px) and (hover: hover) { .qr { display: inline-flex; } }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 34px; width: auto; }

/* ---------- Buddy-invite ribbon (?ref=buddy) ---------- */
.buddy-ribbon {
  position: fixed; left: 50%; bottom: 18px; z-index: 80; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--white); padding: 12px 12px 12px 18px; border-radius: 18px;
  box-shadow: var(--shadow-strong); transition: transform .6s var(--ease-out);
  font-size: 15px;
}
.buddy-ribbon.is-on { transform: translate(-50%, 0); }
.buddy-ribbon .btn { height: 40px; font-size: 15px; padding: 0 14px; }
.buddy-ribbon__x { background: none; border: 0; color: var(--on-dark-muted); cursor: pointer; width: 32px; height: 32px; }

/* ---------- FAQ (details/summary) ---------- */
.faq { display: grid; gap: 0; }
.faq details { border-bottom: 1px solid var(--sand-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-family: var(--f-brand); font-weight: 700; font-size: 19px; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; position: relative;
  box-shadow: inset 0 0 0 1.5px var(--sand-line); transition: transform .3s var(--ease), background .3s;
}
.faq summary i::before, .faq summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px;
  background: currentColor; transform: translate(-50%, -50%);
}
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq details[open] summary i { background: var(--ink); color: var(--white); box-shadow: none; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .faq__a { padding: 0 48px 24px 0; color: var(--ink-muted); max-width: 720px; }
.faq details[open] .faq__a { animation: faqIn .4s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer (shared structure) ---------- */
.site-foot { background: var(--ink); color: var(--white); padding: 56px 0 40px; font-size: 15px; }
.site-foot__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.site-foot a { color: var(--white); text-decoration: none; opacity: .86; }
.site-foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-foot__social { display: flex; gap: 16px; }
.site-foot__social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); opacity: 1; }
.site-foot__social a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.site-foot__social svg { width: 20px; height: 20px; }
.site-foot__base { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--on-dark-muted); font-size: 14px; }

/* ============================================================
   PHONE + APP SCREENS (rebuilt from "Approved for build")
   Drawn at true size (393 x 852 screen) then scaled with --k.
   ============================================================ */
.phone { --k: .72; position: relative; width: calc(421px * var(--k)); height: calc(880px * var(--k)); flex-shrink: 0; }
.phone__body {
  position: absolute; left: 0; top: 0; width: 421px; height: 880px; transform: scale(var(--k)); transform-origin: 0 0;
  border-radius: 69px; background: #111; padding: 14px;
  box-shadow: 0 0 0 2px #2b2b2b inset, 0 50px 100px -20px rgba(35,35,35,.35), 0 30px 60px -30px rgba(35,35,35,.4);
}
.phone__screen {
  position: relative; width: 393px; height: 852px; border-radius: 55px; overflow: hidden;
  background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.4;
}
.phone__island { position: absolute; left: 133px; top: 11px; width: 126px; height: 37px; border-radius: 19px; background: #000; z-index: 20; }
.phone__time { position: absolute; left: 0; width: 133px; top: 18px; text-align: center; font: 600 17px/22px -apple-system, "SF Pro Text", var(--f-body); z-index: 19; }
.phone__status { position: absolute; right: 30px; top: 22px; display: flex; gap: 6px; align-items: center; z-index: 19; }
.phone__status span { display: block; background: var(--ink); border-radius: 2px; }
.phone__status .sig { width: 18px; height: 11px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.phone__status .bat { width: 25px; height: 12px; border-radius: 4px; }
.phone__home { position: absolute; left: 129px; bottom: 8px; width: 134px; height: 5px; border-radius: 3px; background: var(--ink); z-index: 19; }

/* Screen layers: stack, show the active one (used by sticky storytelling) */
.screens { position: absolute; inset: 0; }
.scr { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; }
.scr.is-on { opacity: 1; transform: none; }
.screens--single .scr { opacity: 1; transform: none; }

/* shared screen parts */
.av { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-brand); font-weight: 700; font-size: 32px; box-shadow: 0 0 0 4px var(--paper); position: relative; }
.av--m { background: #8a6f5c; color: #fff; }
.av--a { background: #c9b8a3; color: var(--ink); }
.av--sm { width: 32px; height: 32px; font-size: 13px; box-shadow: 0 0 0 2px #fff; }
.av.is-talking::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--coral);
  animation: talk 1.4s ease-out infinite;
}
@keyframes talk { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.pill-ok { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 16px; background: var(--success-tint); color: var(--success); font-size: 14px; font-weight: 600; }
.pill-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ui-btn { height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--f-brand); font-weight: 700; font-size: 17px; }
.ui-btn--ink { background: var(--ink); color: #fff; }
.ui-btn--line { background: #fff; box-shadow: inset 0 0 0 1.5px var(--sand-line); }
.num { font-family: var(--f-brand); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }

/* In-ride */
.s-ride { padding-top: 112px; display: flex; flex-direction: column; align-items: center; }
.s-ride__pair { position: relative; width: 300px; height: 104px; margin-top: 14px; }
.s-ride__pair .av { position: absolute; top: 2px; }
.s-ride__pair .av--m { left: 32px; } .s-ride__pair .av--a { left: 192px; }
.s-ride__pair svg { position: absolute; inset: 0; }
.s-ride__lbl { position: absolute; top: 86px; width: 76px; text-align: center; font-size: 12px; color: var(--ink-muted); }
.s-ride__timer { margin-top: 24px; font-size: 84px; letter-spacing: -0.03em; }
.s-ride__mute {
  margin-top: 54px; width: 156px; height: 156px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--sand-line), 0 10px 30px rgba(107,99,89,.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-family: var(--f-brand); font-weight: 700; font-size: 15px; color: var(--ink-muted);
}
.s-ride__mute svg { width: 54px; height: 54px; color: var(--ink); }
.s-ride__btns { position: absolute; left: 20px; right: 20px; bottom: 46px; display: flex; gap: 10px; }
.s-ride__btns .ui-btn { flex: 1; } .s-ride__btns .ui-btn:last-child { flex: 1.4; color: #b5352a; }

/* Waiting / ride code */
.s-wait { padding: 120px 28px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.s-wait h4 { font-size: 28px; }
.s-wait__code { margin-top: 30px; display: flex; gap: 10px; }
.s-wait__code span { width: 64px; height: 80px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sand-line); display: grid; place-items: center; font-size: 46px; }
.s-wait__dots { margin-top: 34px; display: flex; gap: 8px; }
.s-wait__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); opacity: .2; animation: waitDot 1.4s infinite; }
.s-wait__dots i:nth-child(2) { animation-delay: .2s; } .s-wait__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes waitDot { 0%, 100% { opacity: .2; transform: none; } 40% { opacity: 1; transform: translateY(-4px); } }
.s-wait .ui-btn { position: absolute; left: 20px; right: 20px; bottom: 46px; }

/* Ride ended */
.s-end { padding-top: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.s-end__pair { position: relative; width: 240px; height: 80px; }
.s-end__pair .av { width: 64px; height: 64px; font-size: 27px; position: absolute; top: 8px; }
.s-end__pair .av--m { left: 14px; } .s-end__pair .av--a { right: 14px; }
.s-end__pair svg { position: absolute; inset: 0; }
.s-end h4 { margin-top: 12px; font-size: 26px; }
.s-end__dur { margin-top: 10px; font-size: 76px; }
.s-end__date { margin-top: 12px; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--sand-line); }
.s-end__card { margin: 34px 20px 0; align-self: stretch; text-align: left; border-radius: 20px; background: var(--sand); padding: 14px; display: flex; align-items: center; gap: 12px; }
.s-end__card b { font-family: var(--f-brand); font-size: 16px; display: block; }
.s-end__card small { font-size: 13px; color: var(--ink-muted); }
.s-end__card .ui-btn { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 15px; margin-left: auto; }
.s-end__thumbs { display: flex; flex-shrink: 0; }
.s-end__thumbs img { width: 44px; height: 54px; object-fit: cover; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 3px 8px rgba(107,99,89,.2); }
.s-end__thumbs img + img { margin-left: -18px; transform: rotate(8deg); }
.s-end__thumbs img:first-child { transform: rotate(-6deg); }
.s-end__btns { position: absolute; left: 20px; right: 20px; bottom: 46px; display: flex; gap: 12px; }
.s-end__btns .ui-btn { flex: 1; } .s-end__btns .ui-btn:last-child { flex: 1.4; }

.s-end--photos h4 { font-size: 24px; }
.s-end--photos .s-end__dur { font-size: 64px; }
.s-end__added { margin: 26px 20px 0; align-self: stretch; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s-end__added img, .s-end__added span { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.s-end__added img { animation: addIn .6s var(--ease-out) both; }
.s-end__added img:nth-child(2) { animation-delay: .15s; } .s-end__added img:nth-child(3) { animation-delay: .3s; }
.s-end__added span { display: grid; place-items: center; background: var(--sand); color: var(--ink-muted); box-shadow: inset 0 0 0 1.5px var(--sand-line); }
.s-end__saved { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 6px; }
.s-end__saved::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@keyframes addIn { from { opacity: 0; transform: scale(.7); } }

/* Home */
.s-home { padding: 80px 20px 0; display: flex; flex-direction: column; gap: 22px; }
.s-home h4 { font-size: 30px; }
.s-home__card { border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--sand-line), 0 16px 36px rgba(107,99,89,.14); padding: 22px; }
.s-home__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.s-home__who span { display: flex; } .s-home__who .av + .av { margin-left: -12px; }
.s-home__big { margin-top: 14px; font-size: 56px; }
.s-home__bar { margin-top: 16px; height: 8px; border-radius: 4px; background: var(--sand-line); overflow: hidden; }
.s-home__bar i { display: block; height: 100%; width: 80%; border-radius: 4px; background: var(--coral); }
.s-home__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-home__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.s-home__btns { position: absolute; left: 20px; right: 20px; bottom: 112px; display: flex; gap: 10px; }
.s-home__btns .ui-btn:first-child { flex: 1.6; } .s-home__btns .ui-btn:last-child { flex: 1; }
.s-home__tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; border-top: 1px solid var(--sand-line); background: var(--paper); display: flex; justify-content: space-around; padding-top: 12px; font-family: var(--f-brand); font-weight: 700; font-size: 12px; color: var(--ink-muted); }
.s-home__tabs span:first-child { color: var(--ink); }

.s-home { gap: 18px; }
.s-home__free { margin: 18px -22px -22px; padding: 14px 22px; border-top: 2px dashed var(--sand-line); background: #fffaf6; border-radius: 0 0 28px 28px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--coral-deep); }
.s-home__free b { font-family: var(--f-brand); color: var(--ink); }
.s-home__tips { height: 62px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--sand-line); padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.s-home__tips > span:nth-child(2) { flex: 1; display: grid; }
.s-home__tips b { font-family: var(--f-brand); font-size: 16px; }
.s-home__tips small { font-size: 12px; color: var(--ink-muted); }
.s-home__bulb { width: 38px; height: 38px; border-radius: 50%; background: #fff4d6; color: var(--warn-text); display: grid; place-items: center; }
.s-home__fade { position: absolute; left: 0; right: 0; bottom: 90px; height: 140px; background: linear-gradient(to top, var(--paper) 55%, rgba(252,250,246,0)); }

/* Ride detail */
.s-det__cover { position: absolute; left: 0; top: 0; width: 393px; height: 330px; }
.s-det__cover img { width: 100%; height: 100%; object-fit: cover; }
.s-det__cover::before { content: ""; position: absolute; inset: 0 0 auto; height: 130px; background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0)); }
.s-det__count { position: absolute; right: 16px; bottom: 14px; font-size: 12px; font-weight: 600; color: #fff; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.4); }
.s-det__body { position: absolute; left: 20px; right: 20px; top: 348px; display: flex; flex-direction: column; }
.s-det__who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.s-det__who > span { display: flex; } .s-det__who .av + .av { margin-left: -8px; }
.s-det__dur { margin-top: 10px; font-size: 64px; }
.s-det__stats { margin-top: 16px; display: flex; gap: 8px; }
.s-det__stats span { flex: 1; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--sand-line); display: grid; gap: 2px; }
.s-det__stats small { font-size: 12px; color: var(--ink-muted); }
.s-det__stats b { font-family: var(--f-brand); font-size: 18px; }
.s-det__h { margin-top: 18px; font-family: var(--f-brand); font-size: 16px; }
.s-det__photos { margin-top: 10px; display: flex; gap: 8px; }
.s-det__photos img, .s-det__photos span { width: 80px; height: 80px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.s-det__photos img.is-sel { outline: 2.5px solid var(--ink); outline-offset: 2px; }
.s-det__photos span { display: grid; place-items: center; background: var(--sand); border: 1.5px dashed #d9ccbb; }
.s-det__share { position: absolute; left: 20px; right: 20px; bottom: 46px; }

/* Album */
.s-album { padding: 90px 20px 0; }
.s-album h4 { font-size: 30px; }
.s-album__chips { margin: 14px 0 18px; display: flex; gap: 8px; }
.s-album__chips span { height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; font-family: var(--f-brand); font-weight: 700; font-size: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--sand-line); color: var(--ink-muted); }
.s-album__chips span:first-child { background: #fff3f1; box-shadow: inset 0 0 0 1.5px var(--coral); color: var(--ink); }
.s-album__m { font-family: var(--f-brand); font-weight: 700; font-size: 18px; margin: 4px 0 10px; }
.s-album__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 18px; }
.s-album__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

/* Share card (9:16) */
.sharecard { position: relative; width: 240px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: var(--shadow-strong); color: #fff; }
.sharecard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sharecard::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgba(20,20,20,.78), rgba(20,20,20,0)); }
.sharecard__txt { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.sharecard__txt .num { font-size: 40px; }
.sharecard__txt small { font-size: 12px; }
.sharecard__txt b { margin-top: 8px; font-family: var(--f-brand); font-size: 15px; }

/* ============================================================
   MOTION utilities (driven by js/nyvo.js)
   ============================================================ */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.rv.in { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-30px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv-l.in { opacity: 1; transform: none; }
.rv-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.rv-scale.in { opacity: 1; transform: none; }

/* draw-on-view: paths with pathLength="1" */
.draw path, path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.in .draw path, .in path.draw, .draw.in path, path.draw.in { stroke-dashoffset: 0; }
.pop { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--d, 0) * 1ms); }
.in .pop, .pop.in { transform: scale(1); }

/* split headline words (data-split) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i) * 70ms + var(--d, 0) * 1ms); }
.in .w > span, .w.in > span { transform: none; }

/* coral underline that draws under one word */
.uline { position: relative; display: inline-block; white-space: nowrap; }
.uline svg { position: absolute; left: 2%; bottom: -.2em; width: 96%; height: .32em; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .rv-l, .rv-scale { opacity: 1 !important; transform: none !important; }
  .w > span { transform: none !important; }
  .draw path, path.draw { stroke-dashoffset: 0 !important; }
  .pop { transform: none !important; }
}

/* ---------- Round 3: photo avatars, Home A, scrolling album ---------- */
.av--m, .av--a, .av--img { background-size: cover !important; background-position: center !important; color: transparent !important; }
.av--m { background-image: url(../assets/nyvo/avatars/mark.jpg) !important; }
.av--a { background-image: url(../assets/nyvo/avatars/abigail.jpg) !important; }
.s-home__cta { margin-top: 18px; display: flex; gap: 10px; }
.s-home__cta .ui-btn { height: 52px; font-size: 18px; }
.s-home__cta .ui-btn:first-child { flex: 1.6; } .s-home__cta .ui-btn:last-child { flex: 1; background: var(--paper); }
.s-home .s-home__grid img { border-radius: 14px; }
.s-album__feed { position: absolute; left: 20px; right: 20px; top: 232px; bottom: 0; overflow: hidden; -webkit-mask-image: linear-gradient(#000 85%, transparent); mask-image: linear-gradient(#000 85%, transparent); }
.s-album__roll { animation: albumRoll 22s ease-in-out infinite alternate; }
@keyframes albumRoll { 0%, 12% { transform: translateY(0); } 88%, 100% { transform: translateY(-46%); } }
