:root {
  --bg: #16110f;
  --surface: #221a18;
  --surface-2: #1c1614;
  --line: #3a2e2b;
  --text: #f6eee9;
  --text-2: #e3d6d0;
  --muted: #c9b8b1;
  --on-accent: #16110f;
  --accent: #f2a7c3;
  --radius: 18px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Layout shell ---------- */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}
.hero { display: none; }
.main {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: max(72px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Identity ---------- */
.avatar {
  width: 148px; height: 148px;
  border-radius: 50%;
  padding: 4px;
  border: 2px solid var(--accent);
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--line); }
.eyebrow {
  display: none;
  margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent);
}
.name {
  margin: 28px 0 0;
  font-family: var(--serif);
  font-weight: 500; font-style: italic;
  font-size: 44px; line-height: 1.05; letter-spacing: -0.5px;
}
.name .line { display: inline; }
.name .line + .line::before { content: " "; }
.handle { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.bio { margin: 16px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* ---------- Buttons ---------- */
.cta {
  margin-top: 48px;
  width: 100%;
  min-height: 60px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 17px; font-weight: 700;
  transition: transform .15s ease, filter .15s ease;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(.98); }
.cta svg { flex-shrink: 0; }

.cue {
  margin-top: 36px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent);
}
.cue svg { animation: nudge 1.6s ease-in-out infinite; }
.cue + .cta { margin-top: 12px; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .cue svg { animation: none; } }

.links { margin-top: 12px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.link {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600;
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.link:hover { border-color: #57463f; background: #261d1b; }
.link .label { flex: 1; }
.link .detail { font-size: 13px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.link .arrow { display: none; color: var(--muted); }

.footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex; justify-content: center; gap: 20px;
  font-size: 13px; color: var(--muted);
}
.footer .copy { display: none; }
.footer a:hover { color: var(--text); }

/* ---------- Links layout (mobile) ---------- */
.layout-links .main { align-items: stretch; text-align: left; padding-top: max(56px, env(safe-area-inset-top)); }
.layout-links .identity { display: flex; align-items: center; gap: 16px; }
.layout-links .avatar { width: 76px; height: 76px; padding: 3px; flex-shrink: 0; }
.layout-links .name { margin: 0; font-size: 32px; }
.layout-links .handle { margin-top: 4px; font-size: 14px; }
.layout-links .cta { margin-top: 28px; border-radius: 16px; justify-content: space-between; padding: 0 20px; font-size: 16px; }

/* ---------- Instagram layout (mobile) ---------- */
@media (max-width: 899px) {
  .layout-ig .avatar { width: 116px; height: 116px; }
  .layout-ig .name { margin-top: 20px; font-size: 38px; }
}

/* ---------- Desktop: split layout ---------- */
@media (min-width: 900px) {
  .hero {
    display: block;
    position: sticky; top: 0;
    width: 46%; max-width: 640px;
    height: 100vh;
    flex-shrink: 0;
    background: var(--surface);
  }
  .hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
  .main {
    max-width: none;
    margin: 0;
    padding: 72px clamp(48px, 7vw, 112px) 48px;
    align-items: flex-start;
    text-align: left;
  }
  .avatar { display: none; }
  .eyebrow { display: block; }
  .name { margin-top: auto; font-size: clamp(72px, 8vw, 112px); line-height: .95; letter-spacing: -2px; }
  .name .line { display: block; }
  .name .line + .line::before { content: none; }
  .handle { margin-top: 20px; font-size: 17px; }
  .cta { width: 360px; margin-top: 48px; justify-content: space-between; min-height: 64px; }
  .cue { display: none; }
  .footer { width: 100%; justify-content: flex-start; gap: 24px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: auto; }
  .footer .copy { display: block; margin-right: auto; }

  .layout-links .main { padding-top: 64px; }
  .layout-links .identity { display: block; }
  .layout-links .name { margin-top: 20px; font-size: clamp(56px, 5.5vw, 76px); }
  .layout-links .name .line { display: inline; }
  .layout-links .name .line + .line::before { content: " "; }
  .layout-links .cta { width: 100%; max-width: 560px; border-radius: 16px; margin-top: 40px; padding: 0 24px; }
  .layout-links .links { max-width: 560px; margin-top: 12px; gap: 0; }
  .layout-links .link { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 4px; min-height: 60px; font-size: 16px; }
  .layout-links .link:hover { background: none; color: var(--accent); }
  .layout-links .link .detail { font-size: 14px; }
  .layout-links .link .arrow { display: block; }
  .layout-links .footer { border-top: 0; }
}

/* ---------- Sheets (18+ and browser drawer) ---------- */
.scrim {
  position: fixed; inset: 0;
  background: rgba(10, 7, 6, .72);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 40;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  margin: 0 auto;
  max-width: 480px;
  padding: 12px 24px max(32px, env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  z-index: 50;
  text-align: center;
}
.sheet.open { transform: translateY(0); }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: #4a3c38; margin: 0 auto; }
.sheet h2 { margin: 20px 0 0; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.15; }
.sheet p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #d8cac4; }
.sheet .badge {
  margin: 24px auto 0;
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.sheet .cta { margin-top: 24px; width: 100%; min-height: 58px; justify-content: center; }
.sheet .quiet {
  margin-top: 8px; width: 100%; min-height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600; color: #d8cac4;
}
.sheet .quiet:hover { color: var(--text); }
.steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.steps li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.4;
}
.steps .num {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pointer {
  position: fixed; top: 10px; right: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  color: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
  z-index: 45;
}
.pointer.open { opacity: 1; }
.pointer svg { animation: lift 1.4s ease-in-out infinite; }
@keyframes lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .pointer svg { animation: none; } .sheet, .scrim { transition: none; } }
@media (min-width: 900px) { .sheet { bottom: 50%; transform: translate(0, 60%) scale(.98); opacity: 0; border-radius: 28px; border: 1px solid var(--line); transition: opacity .2s ease, transform .2s ease; pointer-events: none; } .sheet.open { transform: translate(0, 50%); opacity: 1; pointer-events: auto; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 640px; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 24px 40px; }
.back {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600;
}
.legal .kicker { margin: 36px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.legal h1 { margin: 8px 0 0; font-family: var(--serif); font-weight: 500; font-size: 38px; line-height: 1.1; }
.legal .updated { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.legal section { margin-top: 28px; }
.legal h2 { margin: 0; font-size: 17px; font-weight: 700; }
.legal section p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.legal section a { color: var(--accent); font-weight: 600; }
.legal footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
