:root {
  color-scheme: dark;
  --ink: #110d0b;
  --panel: rgba(42, 28, 22, 0.73);
  --line: rgba(255, 232, 213, 0.16);
  --paper: #fff5ed;
  --muted: #c7aca0;
  --copper: #e68b55;
  --rose: #d96d6e;
  --mono: "DM Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { width: 100%; min-height: 100%; background: var(--ink); }

body {
  width: 100%;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -12%, rgba(145, 63, 34, 0.24), transparent 42rem),
    linear-gradient(145deg, #120c0a 0%, #1a100e 50%, #0c0908 100%);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.3;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.3) 0.45px, transparent 0.7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
}

.opening-active { overflow: hidden; }

.opening-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100vw;
  min-height: 100svh;
  height: 100dvh;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: #120b09;
  transition: opacity 800ms ease, visibility 800ms linear;
}

.opening-photo {
  position: absolute;
  inset: -8%;
  opacity: 0.56;
  background: url("assets/scarlett-main.png") center 40% / cover no-repeat;
  filter: blur(16px) saturate(0.5) brightness(0.28);
  transform: scale(1.15);
  animation: opening-drift 3.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.opening-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 52%, rgba(214, 114, 75, 0.25), transparent 18%),
    radial-gradient(ellipse at 50% 52%, transparent 18%, rgba(19, 10, 8, 0.55) 58%, rgba(13, 7, 6, 0.96) 100%);
}

.opening-orbit {
  position: absolute;
  width: min(86vw, 720px);
  aspect-ratio: 1;
  border: 1px solid rgba(238, 160, 109, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 10vw rgba(238, 160, 109, 0.018), 0 0 0 22vw rgba(238, 160, 109, 0.012);
  opacity: 0;
  transform: scale(0.28);
  animation: opening-orbit 1.65s 120ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.opening-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.opening-copy p {
  margin: 0 0 13px;
  color: rgba(255, 224, 205, 0.72);
  font: 500 clamp(0.6rem, 1.8vw, 0.72rem) var(--mono);
  letter-spacing: 0.16em;
  opacity: 0;
  animation: opening-fade 450ms 520ms ease forwards;
}

.opening-copy h1 {
  margin: 0;
  color: var(--paper);
  font: italic 600 clamp(4.2rem, 15vw, 8.4rem)/0.9 var(--serif);
  letter-spacing: -0.09em;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.92);
  animation: opening-name 900ms 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.opening-copy h1 span {
  color: var(--copper);
}

.opening-copy small {
  margin-top: 22px;
  color: rgba(255, 224, 205, 0.46);
  font: 500 0.57rem var(--mono);
  letter-spacing: 0.14em;
  opacity: 0;
  animation: opening-fade 500ms 820ms ease forwards;
}

.opening-mark {
  position: absolute;
  bottom: 9vh;
  color: var(--copper);
  font-size: 0.9rem;
  opacity: 0;
  animation: opening-mark 1.6s 680ms ease-in-out infinite;
}

.page-shell { transition: opacity 1s ease, filter 1s ease, transform 1.15s cubic-bezier(0.16, 1, 0.3, 1); }
.opening-active .page-shell { opacity: 0; filter: blur(8px); transform: scale(0.985) translateY(8px); }
.site-revealed .page-shell { opacity: 1; filter: none; transform: none; }
.opening-screen.is-leaving { visibility: hidden; opacity: 0; pointer-events: none; }

@media (max-width: 560px) {
  .opening-screen { min-height: 100svh; height: 100dvh; }
  .opening-photo { inset: -12%; background-position: center 34%; filter: blur(12px) saturate(0.52) brightness(0.3); }
  .opening-orbit { width: min(78vw, 360px); box-shadow: 0 0 0 13vw rgba(238, 160, 109, 0.018); }
  .opening-copy { width: 100%; padding: 24px 20px; }
  .opening-copy p { margin-bottom: 10px; font-size: 0.62rem; letter-spacing: 0.13em; }
  .opening-copy h1 { max-width: calc(100vw - 40px); font-size: clamp(3.5rem, 16vw, 5.2rem); }
  .opening-copy small { margin-top: 18px; font-size: 0.5rem; letter-spacing: 0.11em; }
  .opening-mark { bottom: 7vh; }
}

@keyframes opening-fade { to { opacity: 1; } }
@keyframes opening-name { to { opacity: 1; filter: blur(0); transform: scale(1); } }
@keyframes opening-orbit { 0% { opacity: 0; transform: scale(0.28); } 48% { opacity: 0.9; } 100% { opacity: 0.35; transform: scale(1); } }
@keyframes opening-mark { 0%, 100% { opacity: 0.22; transform: scale(0.8) rotate(0deg); } 50% { opacity: 0.95; transform: scale(1.25) rotate(22deg); } }
@keyframes opening-drift { from { transform: scale(1.18) translateY(2%); } to { transform: scale(1.08) translateY(-1%); } }

@media (prefers-reduced-motion: reduce) {
  .opening-screen { transition-duration: 150ms; }
  .opening-photo, .opening-orbit, .opening-copy p, .opening-copy h1, .opening-copy small, .opening-mark { animation-duration: 1ms; animation-delay: 0ms; }
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 28px 17px 34px;
  place-items: center;
  isolation: isolate;
}

.page-shell::before {
  position: fixed;
  z-index: 0;
  inset: -28vmax;
  content: "";
  opacity: 0.34;
  pointer-events: none;
  background:
    repeating-radial-gradient(ellipse at 50% 33%, transparent 0 38px, rgba(227, 129, 79, 0.13) 39px 40px, transparent 41px 74px),
    radial-gradient(ellipse at 50% 34%, rgba(127, 43, 33, 0.23), transparent 28%);
  filter: blur(0.2px);
  mask-image: radial-gradient(ellipse at 50% 33%, #000 0 18%, transparent 57%);
  animation: void-breathe 10s ease-in-out infinite alternate;
}

.glow {
  position: fixed;
  z-index: -1;
  width: 23rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
}

.glow-one { top: -11rem; right: -11rem; background: var(--copper); }
.glow-two { bottom: -11rem; left: -12rem; background: #742b31; }

.profile { position: relative; z-index: 1; width: min(100%, 448px); padding-bottom: 28px; }

.portrait {
  position: relative;
  height: clamp(205px, 55vw, 258px);
  margin: 0 0 23px;
  overflow: hidden;
  border: 1px solid rgba(255, 238, 227, 0.2);
  border-radius: 27px;
  background: #2b1913;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  animation: portrait-pulse 6s ease-in-out infinite;
}

.portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(15, 7, 5, 0.74));
}

.portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.87) contrast(1.04);
  transform: scale(1.02);
}

.portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: 13px;
  color: rgba(255, 244, 236, 0.72);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.13em;
}

.identity { padding: 0 5px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--copper);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 12px var(--rose);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 13vw, 4.35rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.09em;
  line-height: 0.84;
}

h1 span { color: var(--copper); }

.handle {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.035em;
}

.bio {
  margin: 17px 0 22px;
  color: rgba(255, 245, 237, 0.75);
  font-size: 0.97rem;
  letter-spacing: -0.02em;
}

.link-list {
  display: grid;
  gap: 10px;
}

.social-link {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 15px 10px 11px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--paper);
  background: var(--panel);
  box-shadow: inset 0 1px rgba(255,255,255,0.045), 0 9px 25px rgba(0,0,0,0.12);
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  border-color: rgba(255, 195, 159, 0.54);
  background: rgba(66, 40, 30, 0.88);
  outline: none;
  transform: translateY(-2px);
}

.social-link:active { transform: translateY(0) scale(0.99); }

.icon-wrap {
  width: 43px;
  height: 43px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 13px;
  background: rgba(255,255,255,0.06);
}

.icon-wrap img { width: 22px; height: 22px; }
.tiktok .icon-wrap { background: rgba(71, 202, 195, 0.12); }
.x-link .icon-wrap { background: rgba(188, 99, 91, 0.15); }
.instagram .icon-wrap { background: rgba(217, 109, 110, 0.13); }
.telegram .icon-wrap { background: rgba(97, 169, 206, 0.12); }
.facebook .icon-wrap { background: rgba(105, 137, 199, 0.12); }
.x-icon { color: #ffd8ce; font-family: var(--sans); font-size: 1.1rem; font-weight: 600; }

.x-link {
  border-color: rgba(203, 112, 102, 0.24);
  background: linear-gradient(105deg, rgba(83, 42, 38, 0.48), rgba(47, 27, 25, 0.84));
  box-shadow: inset 0 1px rgba(255,255,255,0.06), 0 8px 23px rgba(0,0,0,0.11), 0 0 18px rgba(185, 85, 72, 0.09);
  animation: x-shiver 5.2s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.tiktok,
.instagram,
.telegram,
.facebook { animation: soft-shiver 7.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite; }

.tiktok { animation-delay: -1.4s; }
.instagram { animation-delay: -3.2s; }
.telegram { animation-delay: -5.1s; }
.facebook { animation-delay: -6.5s; }

.link-copy { min-width: 0; display: grid; gap: 2px; }
.link-copy strong { font-size: 0.96rem; font-weight: 600; letter-spacing: -0.025em; }
.link-copy small { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.035em; text-overflow: ellipsis; white-space: nowrap; }
.arrow { color: rgba(255, 239, 227, 0.63); font-family: var(--mono); font-size: 1rem; }

.private-link {
  border-color: rgba(230, 139, 85, 0.38);
  background: linear-gradient(105deg, rgba(106, 47, 35, 0.7), rgba(53, 27, 24, 0.88));
  box-shadow: inset 0 1px rgba(255,255,255,0.09), 0 9px 25px rgba(0,0,0,0.12), 0 0 24px rgba(218, 96, 62, 0.17);
  animation: secret-shake 1.35s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite;
}

.private-link:hover,
.private-link:focus-visible { border-color: var(--copper); background: linear-gradient(105deg, rgba(126, 54, 38, 0.82), rgba(65, 30, 27, 0.94)); }
.private-icon { color: #ffcfaf; font-size: 1.2rem; animation: secret-heart 0.9s ease-in-out infinite; }

.footer-note {
  margin: 22px 0 0;
  color: rgba(199, 172, 160, 0.57);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.private-dialog {
  width: min(calc(100% - 34px), 405px);
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 216, 190, 0.3);
  border-radius: 23px;
  color: var(--paper);
  background: #211310;
  box-shadow: 0 25px 100px rgba(0,0,0,0.7);
}

.private-dialog::backdrop { background: rgba(6, 4, 3, 0.78); backdrop-filter: blur(7px); }

.dialog-card { position: relative; padding: 28px; }
.close-dialog { position: absolute; top: 12px; right: 14px; border: 0; color: var(--muted); background: transparent; font: 1.65rem/1 var(--serif); cursor: pointer; }
.dialog-kicker { margin: 0 0 9px; color: var(--copper); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; }
.dialog-card h2 { margin: 0; font-family: var(--serif); font-size: 2.25rem; font-style: italic; font-weight: 600; letter-spacing: -0.07em; }
.dialog-card > p.insist-note { margin: 9px 0 0 !important; color: #f1a474; font-family: var(--mono); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.04em; }
.dialog-card > p:not(.dialog-kicker) { margin: 11px 0 22px; color: var(--muted); font-size: 0.89rem; line-height: 1.55; }
#private-dialog .dialog-actions { margin-top: 22px; }
.dialog-heart { display: inline-block; font-family: var(--sans); font-size: 0.72em; font-style: normal; letter-spacing: 0; vertical-align: 0.08em; }
.sweet-note { color: #ffd0b7; }
.age-note { color: rgba(199, 172, 160, 0.72); font-family: var(--mono); font-size: 0.72em; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 9px; }
.dialog-actions a, .dialog-actions button { display: grid; min-height: 46px; place-items: center; border-radius: 12px; font: 500 0.74rem var(--sans); cursor: pointer; text-decoration: none; }
.stay-button { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.continue-button { border: 1px solid #e99462; color: #2b140e; background: #eea06d; }

@keyframes void-breathe {
  from { opacity: 0.2; transform: scale(0.95) rotate(-2deg); }
  to { opacity: 0.45; transform: scale(1.07) rotate(2deg); }
}

@keyframes portrait-pulse {
  0%, 100% { border-color: rgba(255, 238, 227, 0.2); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34); }
  50% { border-color: rgba(230, 139, 85, 0.47); box-shadow: 0 25px 72px rgba(0, 0, 0, 0.46), 0 0 40px rgba(181, 70, 44, 0.16); }
}

@keyframes secret-shake {
  0%, 62%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  66% { transform: translate3d(-2px, 0, 0) rotate(-0.8deg); }
  70% { transform: translate3d(2px, 0, 0) rotate(0.9deg); }
  74% { transform: translate3d(-2px, 0, 0) rotate(-0.7deg); }
  78% { transform: translate3d(2px, 0, 0) rotate(0.8deg); }
  82% { transform: translate3d(-1px, 0, 0) rotate(-0.45deg); }
  86% { transform: translate3d(1px, 0, 0) rotate(0.35deg); }
  91% { transform: translate3d(-1px, 0, 0) rotate(-0.25deg); }
}

@keyframes secret-heart {
  0%, 100% { transform: scale(1); text-shadow: 0 0 0 transparent; }
  50% { transform: scale(1.15); text-shadow: 0 0 15px rgba(255, 178, 141, 0.63); }
}

@keyframes x-shiver {
  0%, 84%, 100% { transform: translate3d(0, 0, 0); }
  87% { transform: translate3d(-1px, 0, 0) rotate(-0.25deg); }
  90% { transform: translate3d(1px, 0, 0) rotate(0.25deg); }
  93% { transform: translate3d(-1px, 0, 0); }
  96% { transform: translate3d(1px, 0, 0); }
}

@keyframes soft-shiver {
  0%, 87%, 100% { transform: translate3d(0, 0, 0); }
  90% { transform: translate3d(-0.8px, 0, 0); }
  93% { transform: translate3d(0.8px, 0, 0); }
  96% { transform: translate3d(-0.45px, 0, 0); }
}

@media (min-width: 620px) {
  .page-shell { padding-top: 26px; padding-bottom: 26px; }
  .profile { width: min(100%, 540px); padding-bottom: 28px; }
  .portrait { height: 215px; margin-bottom: 18px; }
  .identity h1 { font-size: 4.7rem; }
  .identity .eyebrow { font-size: 0.64rem; }
  .identity .handle { font-size: 0.73rem; }
  .identity .bio { margin-top: 13px; margin-bottom: 16px; font-size: 1.04rem; }
  .link-list { gap: 8px; }
  .social-link { min-height: 67px; padding: 8px 17px 8px 10px; }
  .icon-wrap { width: 43px; height: 43px; }
  .link-copy strong { font-size: 1.06rem; }
  .link-copy small { font-size: 0.63rem; }
  .footer-note { margin-top: 16px; }
}

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