/* Look & feel. To re-skin the whole page, change the variables below. */
:root {
  --bg: #070708;
  --text: #f5f5f7;
  --muted: rgba(245, 245, 247, .62);
  --faint: rgba(245, 245, 247, .38);
  --glass: rgba(255, 255, 255, .06);
  --glass-hi: rgba(255, 255, 255, .1);
  --hair: rgba(255, 255, 255, .1);
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Manrope", "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --spring: cubic-bezier(.2, .9, .25, 1.15);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  min-height: 100svh; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- living background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.bg i:nth-child(1) { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 62%); animation: drift1 22s ease-in-out infinite alternate; }
.bg i:nth-child(2) { width: 60vmax; height: 60vmax; right: -28vmax; top: 22vh; background: radial-gradient(circle, rgba(200,205,220,.13), transparent 62%); animation: drift2 28s ease-in-out infinite alternate; }
.bg i:nth-child(3) { width: 55vmax; height: 55vmax; left: -10vmax; bottom: -30vmax; background: radial-gradient(circle, rgba(255,255,255,.09), transparent 62%); animation: drift3 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vmax, -10vmax) scale(.9); } }
@keyframes drift3 { to { transform: translate(20vmax, -14vmax) scale(1.2); } }
.bg::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { max-width: 520px; margin: 0 auto; padding: 0 20px calc(44px + env(safe-area-inset-bottom)); }

/* ---------- shared glass ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--hair);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
}

/* ---------- top bar ---------- */
.bar { display: flex; justify-content: space-between; padding: 14px 0 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  transition: transform .35s var(--spring), background .25s;
}
.icon-btn:hover { background: var(--glass-hi); transform: scale(1.06); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 17px; height: 17px; fill: var(--text); }
.icon-btn svg.stroke { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 6px 0 4px; }
.avatar { position: relative; width: 112px; height: 112px; margin: 0 auto 18px; }
.avatar::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(#fff, #6d6d72 25%, #1c1c1e 45%, #b8b8bd 70%, #fff);
  animation: spin 7s linear infinite;
}
.avatar::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.22), transparent 68%); z-index: -1; animation: breathe 5s ease-in-out infinite; }
.avatar img { position: relative; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe { 50% { opacity: .45; transform: scale(1.08); } }

.hero-name {
  font-size: clamp(34px, 9.5vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05;
  background: linear-gradient(100deg, #fff 42%, #86868b 50%, #fff 58%) 100% 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s ease-in-out infinite;
}
@keyframes shine { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0 0; } }
.hero-role {
  display: inline-block; margin-top: 12px; padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; letter-spacing: -.005em; color: var(--text);
}
.hero-lines { margin-top: 16px; font-size: 16.5px; font-weight: 500; letter-spacing: -.012em; }
.hero-lines p + p { color: var(--muted); margin-top: 2px; }

.hobbies { display: flex; justify-content: center; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.hobbies button {
  width: 44px; height: 44px; border-radius: 50%; font-size: 21px; line-height: 1;
  display: grid; place-items: center;
  animation: bob 4.5s ease-in-out infinite; animation-delay: calc(var(--k) * -.7s);
  transition: transform .35s var(--spring), background .25s;
}
.hobbies button:hover { background: var(--glass-hi); transform: scale(1.18) rotate(-6deg); animation-play-state: paused; }
.hobbies button:active { transform: scale(.9); }
@keyframes bob { 50% { translate: 0 -5px; } }

.socials { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.socials a {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  transition: transform .35s var(--spring), background .25s, border-color .25s;
}
.socials a:hover { background: #fff; border-color: #fff; transform: translateY(-3px) scale(1.06); }
.socials a:hover img, .socials a:hover svg { filter: invert(1); }
.socials a:active { transform: scale(.92); }
.socials img, .socials svg { width: 20px; height: 20px; }
.socials svg { fill: none; stroke: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials .fallback { font-size: 11px; font-weight: 600; }

/* ---------- values strip ---------- */
.ticker {
  margin: 30px -20px 0; overflow: hidden; white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ticker-track { display: inline-flex; animation: slide 38s linear infinite; }
.ticker span { font-size: 14px; font-weight: 500; letter-spacing: -.005em; color: var(--muted); display: inline-flex; align-items: center; }
.ticker span::after { content: "✝"; font-size: 10px; margin: 0 16px; color: var(--faint); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.block { margin-top: 34px; }
.block-head { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: -.005em; margin: 0 4px 12px; }

/* ---------- businesses (swipeable) ---------- */
.biz {
  display: flex; gap: 12px; margin: 0 -20px; padding: 0 20px 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none;
}
.biz::-webkit-scrollbar { display: none; }
.biz-card {
  position: relative; flex: 0 0 min(80%, 320px); aspect-ratio: 4 / 5; scroll-snap-align: start;
  border-radius: 30px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--hair); background: #131315;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  transition: transform .5s var(--spring), border-color .3s;
}
.biz-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.28); }
.biz-card:active { transform: scale(.975); }
.biz-art { position: absolute; inset: 0; z-index: -2; }
.biz-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.biz-card:hover .biz-art img { transform: scale(1.07); }
.biz-mark {
  position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 34%;
  font-size: 150px; font-weight: 700; letter-spacing: -.06em; line-height: 1;
  color: transparent; background: linear-gradient(160deg, #fff, #55555a 70%); -webkit-background-clip: text; background-clip: text;
}
.biz-art.plain { background: radial-gradient(120% 90% at 20% 0%, #3a3a3f, #121214 62%); }
.biz-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.92)); }
.biz-kind { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.72); }
.biz-name { font-size: 25px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; text-wrap: balance; }
.biz-blurb { font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.4; margin-top: 6px; }
.biz-cta {
  align-self: flex-start; margin-top: 14px; padding: 9px 16px; border-radius: 99px;
  background: #fff; color: #000; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 6px;
}
.biz-cta i { font-style: normal; transition: transform .35s var(--spring); }
.biz-card:hover .biz-cta i { transform: translateX(4px); }

/* ---------- links ---------- */
.links { display: grid; gap: 10px; }
.link {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
  border-radius: var(--radius); overflow: hidden;
  transition: transform .45s var(--spring), background .3s, border-color .3s;
}
.link::after, .socials a::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 70%);
}
.link:hover::after { opacity: 1; }
.link:hover { transform: translateY(-2px) scale(1.012); border-color: rgba(255,255,255,.24); background: var(--glass-hi); }
.link:active { transform: scale(.975); }
.link-thumb { position: relative; flex: 0 0 64px; height: 64px; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.08); }
.link-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.link:hover .link-thumb img { transform: scale(1.1); }
.link-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.3); }
.link-thumb .play::after { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.link-date { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; color: #000; }
.link-date .m { font-size: 11px; font-weight: 700; color: #d70015; text-transform: uppercase; }
.link-date .d { font-size: 27px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.link-nothumb { height: 100%; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--muted); }
.link-body { flex: 1; min-width: 0; }
.link-tag { font-size: 12px; font-weight: 600; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.link-title { font-size: 16px; font-weight: 600; letter-spacing: -.018em; line-height: 1.25; margin-top: 1px; }
.link-text { font-size: 13.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.link-arrow {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--muted); font-size: 13px;
  transition: transform .4s var(--spring), background .25s, color .25s;
}
.link:hover .link-arrow { background: #fff; color: #000; transform: rotate(-45deg); }

.link.featured { border-color: rgba(255,255,255,.3); background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)); box-shadow: 0 10px 40px -12px rgba(255,255,255,.18); }
.link.featured .link-thumb { flex-basis: 76px; height: 76px; }
.link.featured .link-tag { color: #fff; }
.link.featured .link-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

/* ---------- footer ---------- */
.foot { margin-top: 48px; text-align: center; color: var(--faint); font-size: 12.5px; }
.foot svg { width: 14px; height: 14px; fill: var(--muted); margin: 0 auto 10px; display: block; }
.foot p + p { margin-top: 3px; }

/* ---------- verse sheet ---------- */
.verse {
  width: min(440px, calc(100vw - 24px)); margin: auto auto calc(12px + env(safe-area-inset-bottom)); padding: 30px 24px 20px;
  border-radius: 32px; border: 1px solid rgba(255,255,255,.14); text-align: center; color: var(--text);
  background: rgba(30, 30, 32, .78); -webkit-backdrop-filter: blur(40px) saturate(1.5); backdrop-filter: blur(40px) saturate(1.5);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.verse::backdrop { background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.verse[open] { animation: sheet .6s var(--spring); }
.verse[open]::backdrop { animation: fade .4s ease; }
@keyframes sheet { from { opacity: 0; transform: translateY(60px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.verse-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: 18px; line-height: 1; color: var(--muted); }
.verse-cross { width: 20px; height: 20px; fill: var(--text); margin: 0 auto 10px; display: block; }
.verse-heading { font-size: 13px; font-weight: 600; color: var(--muted); }
.verse-text { font-family: var(--serif); font-size: clamp(25px, 7vw, 30px); line-height: 1.18; letter-spacing: -.01em; margin: 14px 0 12px; text-wrap: balance; }
.verse-text.swap { animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); filter: blur(6px); } }
.verse-ref { font-size: 14px; font-weight: 600; color: var(--muted); }
.verse-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.btn { height: 50px; border-radius: 99px; background: #fff; color: #000; font-size: 15px; font-weight: 600; letter-spacing: -.01em; transition: transform .3s var(--spring); }
.btn:active { transform: scale(.95); }
.btn.ghost { background: rgba(255,255,255,.1); color: var(--text); }
@media (min-width: 600px) { .verse { margin: auto; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px) scale(.9); opacity: 0; pointer-events: none; z-index: 60;
  background: #fff; color: #000; padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 600;
  transition: opacity .25s, transform .45s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- entrance ---------- */
.reveal { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(8px); }
.reveal.in { opacity: 1; transform: none; filter: none; transition: opacity .7s var(--ease), transform .8s var(--spring), filter .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.done { transition-delay: 0s; }

@media (min-width: 600px) {
  .page { padding-top: 20px; }
  .biz { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .biz-card { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
