:root {
  --accent: #b31250;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.7, 0.25, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.theme-rose {
  --bg: #f2c8d4;
  --bg-deep: #1a100f;
  --ink: #2a141d;
  --muted: #7a5966;
  --paper: rgba(255, 255, 255, 0.68);
  --paper-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(42, 20, 29, 0.16);
  --line-soft: rgba(42, 20, 29, 0.08);
  --btn-bg: #1c1016;
  --btn-ink: #fdf8f3;
  --id-ink: #fff;
  --shadow: 0 26px 70px rgba(74, 17, 40, 0.28);
}

body.theme-dark {
  --bg: #0b0b0d;
  --bg-deep: #050506;
  --ink: #f4efe8;
  --muted: #a69c92;
  --paper: rgba(255, 255, 255, 0.07);
  --paper-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --btn-bg: #f4efe8;
  --btn-ink: #12100e;
  --id-ink: #fff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
}

body.theme-cream {
  --bg: #f2e9da;
  --bg-deep: #1a1510;
  --ink: #241c14;
  --muted: #7d6c5a;
  --paper: rgba(255, 255, 255, 0.6);
  --paper-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(36, 28, 20, 0.18);
  --line-soft: rgba(36, 28, 20, 0.09);
  --btn-bg: #241c14;
  --btn-ink: #fbf6ee;
  --id-ink: #fff;
  --shadow: 0 26px 70px rgba(62, 40, 18, 0.24);
}

a { color: inherit; }
[hidden] { display: none !important; }

.wash {
  position: fixed;
  inset: -48px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(52px) saturate(0.8) brightness(0.4);
  transform: scale(1.12);
}

.wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 30%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
}

/* masthead */
.masthead {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: calc(16px + env(safe-area-inset-top));
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.wordmark {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 12px/1.3 var(--sans);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-tools { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.crumbs { display: flex; gap: 14px; flex-shrink: 0; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.crumbs a { text-decoration: none; opacity: 0.78; transition: opacity 0.2s var(--ease); }
.crumbs a:hover { opacity: 1; }

.iconbtn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 10, 14, 0.28);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.iconbtn:hover { background: rgba(18, 10, 14, 0.45); }
.iconbtn svg { width: 16px; height: 16px; }
.iconbtn .snd-on, .iconbtn.on .snd-off { display: none; }
.iconbtn.on .snd-on { display: block; }

/* stage */
.stage {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0 -20px -18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.media {
  position: absolute;
  inset: 0;
  z-index: -2;
  margin: 0;
  overflow: hidden;
  background: #150d10;
}

.media img,
.media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
  filter: saturate(0.97) contrast(1.02);
}

.veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 5, 7, 0.34) 0%, rgba(8, 5, 7, 0.02) 24%, rgba(8, 5, 7, 0.04) 42%, rgba(8, 5, 7, 0.52) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 5, 7, 0.16), transparent 46%);
  opacity: var(--veil, 1);
}

.identity {
  padding: 0 22px 8px;
  color: var(--id-ink);
  text-align: center;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
  animation: rise 0.8s var(--ease) both;
}

.headline { display: block; }

.name {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font: 400 clamp(38px, 10.5vw, 52px)/1 var(--serif);
  letter-spacing: -0.02em;
}

.name [data-name] { min-width: 0; overflow-wrap: anywhere; }
.name .v { display: inline-flex; flex-shrink: 0; }
.name .v svg { width: 17px; height: 17px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3)); }

.handle {
  margin: 10px 0 0;
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
  opacity: 0.8;
}

.bio {
  max-width: 31ch;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.live { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 16px; }

.live > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(14, 8, 11, 0.32);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  color: #fff;
  max-width: 100%;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: left;
  overflow-wrap: anywhere;
}

.live > span > span { min-width: 0; }
.live svg { width: 13px; height: 13px; flex-shrink: 0; opacity: 0.8; }
.dot { width: 5px; height: 5px; border-radius: 50%; background: #53e08a; box-shadow: 0 0 0 3px rgba(83, 224, 138, 0.16); }

.socials { display: flex; justify-content: center; gap: 9px; margin-top: 18px; }

.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(20, 11, 15, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.socials a:hover { transform: translateY(-2px); background: rgba(20, 11, 15, 0.5); }
.socials svg { width: 17px; height: 17px; }
.socials a[data-net="youtube"] path { fill: #1a1014; }

/* actions */
.dock { display: grid; gap: 9px; margin-top: 22px; text-align: left; }

.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  font: 600 16px/1.35 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease);
}

.pill:active { transform: scale(0.988); }

.pill .lead {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.pill .lead svg { width: 16px; height: 16px; }

.pill.primary {
  justify-content: center;
  padding: 14px 58px;
  text-align: center;
  color: var(--btn-ink);
  background: var(--btn-bg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  text-shadow: none;
}

.pill.primary [data-cta] { min-width: 0; overflow-wrap: anywhere; }

.pill.primary .lead {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(127, 127, 127, 0.18);
}

.pill.primary .key {
  position: absolute;
  right: 18px;
  font-size: 17px;
  font-weight: 400;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}

.pill.primary:hover .key { transform: translateX(3px); }

.pill.audio {
  color: #fff;
  background: rgba(20, 11, 15, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.pill.audio .lead { background: #fff; color: #a30e49; }
.pill.audio .label { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
.pill.audio .tail { flex-shrink: 0; font-size: 12px; font-weight: 500; opacity: 0.8; letter-spacing: 0.04em; }
.pill.audio .wave { display: flex; align-items: center; gap: 2px; height: 14px; }

.wave i { display: block; width: 2px; border-radius: 2px; background: currentColor; opacity: 0.7; height: calc(var(--h, 10) * 1px); }
.playing .wave i { animation: bounce 0.85s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -0.05s); }

.urlbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--id-ink);
  opacity: 0.62;
  text-shadow: none;
}

.urlbar svg { width: 13px; height: 13px; flex-shrink: 0; }
.urlbar span { min-width: 0; overflow-wrap: anywhere; }

/* foot */

.ov-soft .veil { --veil: 0.8; }
.ov-strong .veil { --veil: 1.08; }

/* positions */
.pos-center .media img, .pos-center .media video { object-position: 50% 28%; }
.pos-top .media img, .pos-top .media video { object-position: 50% 10%; }
.pos-bottom .media img, .pos-bottom .media video { object-position: 50% 82%; }
.pos-left .media img, .pos-left .media video { object-position: 20% 28%; }
.pos-right .media img, .pos-right .media video { object-position: 82% 28%; }

/* cta styles */
.cta-white .pill.primary { background: #fff; color: #25151b; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); border: 1px solid var(--line); }
.cta-white .pill.primary .lead { background: rgba(37, 21, 27, 0.08); }
.cta-rose .pill.primary { background: linear-gradient(135deg, #d91f66, #a30e49 60%, #8b0a3c); color: #fff; }
.cta-rose .pill.primary .lead { background: rgba(255, 255, 255, 0.2); }
.cta-cream .pill.primary { background: var(--accent); color: var(--accent-ink, #fff); }
.cta-cream .pill.primary .lead { background: rgba(0, 0, 0, 0.12); }

/* desktop */
@media (min-width: 900px) {
  body { background: var(--bg); }
  .wash { display: none; }
  .media-bg { background: #120b0f; }
  .media-bg .wash { display: block; }
  .shell { max-width: 1180px; padding: 0 40px 40px; }

  .masthead { position: static; color: var(--ink); text-shadow: none; padding: 26px 0 0; }
  .crumbs a { opacity: 0.62; }
  .iconbtn { border-color: var(--line); background: var(--paper); color: var(--ink); }
  .iconbtn:hover { background: var(--paper-strong); }

  .stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    min-height: calc(100svh - 150px);
    margin: 0;
    padding: 26px 0;
  }

  .media {
    position: relative;
    inset: auto;
    order: 2;
    height: min(76svh, 760px);
    border-radius: 22px;
    box-shadow: var(--shadow);
    z-index: 0;
  }

  .veil { display: none; }

  .identity {
    order: 1;
    padding: 0;
    text-align: left;
    color: var(--ink);
    text-shadow: none;
    max-width: 520px;
  }

  .name { font-size: clamp(54px, 6vw, 78px); justify-content: flex-start; }
  .name .v svg { width: 21px; height: 21px; }
  .handle { font-size: 13px; }
  .bio { margin: 20px 0 0; max-width: 36ch; font-size: 16px; color: var(--muted); }
  .live { justify-content: flex-start; margin-top: 20px; }
  .live > span { border-color: var(--line); background: var(--paper); color: var(--ink); backdrop-filter: none; }
  .socials { justify-content: flex-start; margin-top: 22px; }
  .socials a { width: 42px; height: 42px; border-color: var(--line); background: var(--paper); color: var(--ink); backdrop-filter: none; }
  .socials a:hover { background: var(--paper-strong); }
  .socials a[data-net="youtube"] path { fill: var(--bg); }
  .dock { background: transparent; margin: 30px 0 0; padding: 0; border-radius: 0; box-shadow: none; }

  .dock { margin-top: 30px; max-width: 380px; }
  .pill.audio { background: var(--paper); border-color: var(--line); color: var(--ink); }
  .pill.audio .lead { background: var(--ink); color: var(--bg); }
  .urlbar { color: var(--muted); opacity: 1; }

  .about { max-width: 520px; padding-top: 18px; }
  .foot { max-width: 100%; }

  body.theme-rose .media, body.theme-cream .media { outline: 1px solid rgba(255, 255, 255, 0.18); outline-offset: -1px; }
}

@media (max-width: 899px) {
  .dock {
    margin: 24px -20px -18px;
    padding: 16px 20px calc(10px + env(safe-area-inset-bottom));
    border-radius: 26px 26px 0 0;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.16);
  }
  .pill.audio { background: var(--paper); border-color: var(--line); color: var(--ink); }
  .pill.audio .lead { background: var(--ink); color: var(--bg); }
  .urlbar { color: var(--muted); opacity: 1; text-shadow: none; }
}

@media (max-width: 360px) {
  .crumbs a:first-child { display: none; }
  .name { font-size: 36px; }
  .pill { font-size: 14px; }
}

/* foot */
.eyebrow { margin: 0 0 10px; font: 600 13px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 26px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 899px) {
  .shell > .foot { color: rgba(255, 255, 255, 0.85); border-color: rgba(255, 255, 255, 0.22); }
  .shell > .foot a:hover { color: #fff; }
}

/* privacy / error documents */
.doc {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 0 22px calc(40px + env(safe-area-inset-bottom));
}

.doc .masthead { position: static; width: 100%; padding: calc(20px + env(safe-area-inset-top)) 0 0; color: var(--ink); text-shadow: none; }
.doc .iconbtn { display: none; }

.doc h1 { margin: 34px 0 10px; font: 400 clamp(34px, 7vw, 46px)/1.08 var(--serif); letter-spacing: -0.02em; }
.doc .lede { margin: 0 0 26px; color: var(--muted); font-size: 16px; }
.doc h2 { margin: 28px 0 8px; font: 600 13px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.doc p { margin: 0 0 12px; color: var(--muted); font-size: 16px; }
.doc a { text-underline-offset: 3px; }
.doc .foot { margin-top: 36px; }

main.error {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

main.error .card { max-width: 360px; }
main.error h1 { margin: 0 0 8px; font: 400 34px/1.1 var(--serif); }
main.error p { margin: 0 0 20px; color: var(--muted); font-size: 16px; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes bounce { from { transform: scaleY(0.35); } to { transform: scaleY(1.15); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

.flat .wash { display: none; }

main.error .pill { width: 100%; }


/* ---------- verify / handoff compatibility ---------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 20px calc(36px + env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand { font-weight: 600; letter-spacing: 0.26em; text-decoration: none; }
.nav a { text-decoration: none; opacity: 0.75; }

.center {
  min-height: 82svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.panel {
  width: 100%;
  max-width: 370px;
  padding: 26px 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: rgba(18, 10, 14, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.panel h1 { margin: 0 0 10px; font: 400 27px/1.15 var(--serif); }
.panel .bio { margin: 0 0 14px; color: rgba(255, 255, 255, 0.82); font-size: 16px; }

.avatar {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.spinner {
  width: 24px;
  height: 24px;
  margin: 2px auto 14px;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#turnstile { display: flex; justify-content: center; margin: 2px 0 6px; }

.status { min-height: 20px; margin: 6px 0 0; font-size: 14px; opacity: 0.8; }
.status.error { color: #ffd2cf; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #25151b;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.cta.small { margin-top: 12px; font-size: 16px; }
.cta .arrow { transition: transform 0.2s var(--ease); }
.cta:hover .arrow { transform: translateX(3px); }

.hint { margin: 12px 0 0; font-size: 14px; opacity: 0.8; }
.hint a { color: inherit; }

.wrap footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.hidden { display: none !important; }

@keyframes spin { to { transform: rotate(360deg); } }
