@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.72);
  --chip: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.14);
  --surface: #121212;
  --card: #1c1c1e;
  --accent: #7dd3fc;
  --radius: 16px;
  --radius-lg: 20px;
  --max: 480px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: Sora, "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.page {
  min-height: 100svh;
  background: var(--bg);
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-bottom: 3rem;
  container-type: inline-size;
}

/* —— Home —— */
.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(125, 211, 252, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(249, 168, 212, 0.1), transparent 50%),
    #000;
}

.home-brand {
  text-align: center;
  margin-bottom: 2.25rem;
  animation: rise 0.7s var(--ease) both;
}

.home-brand h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.home-brand p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-grid {
  width: 100%;
  max-width: 420px;
  display: grid;
  gap: 1rem;
}

.home-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  background: var(--card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: rise 0.75s var(--ease) both;
}

.home-card:nth-child(2) {
  animation-delay: 0.08s;
}

.home-card:hover,
.home-card:focus-visible {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.home-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.home-card-meta {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.home-card-meta strong {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.home-card-meta span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--chip-border);
  background: var(--chip);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

/* —— Bio hero —— */
.hero {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  overflow: hidden;
  background: #111;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.hero-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.55) 45%, #000);
  pointer-events: none;
}

.identity {
  position: relative;
  margin-top: -172px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem;
  text-align: center;
  animation: rise 0.65s var(--ease) both;
}

.identity h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.identity h1 span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.handle {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
}

.socials {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.socials a,
.socials button {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.socials a:active,
.socials button:active,
.press:active {
  transform: scale(0.94);
}

.socials svg {
  width: 30px;
  height: 30px;
}

.chips {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  animation: rise 0.75s var(--ease) 0.05s both;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip);
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.chip.online {
  border-color: rgba(134, 239, 172, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse 2s ease infinite;
}

.bio {
  margin: 1.5rem auto 0;
  max-width: 22rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 500;
  white-space: pre-wrap;
  animation: rise 0.8s var(--ease) 0.08s both;
}

.cta-wrap {
  margin-top: 1rem;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: rise 0.85s var(--ease) 0.1s both;
}

.cta {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1.65 / 1;
  background: var(--card);
  transition: transform 0.25s var(--ease);
}

.cta:hover {
  transform: translateY(-2px);
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.cta-fade {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.cta-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #00aff0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-badge svg {
  width: 22px;
  height: 22px;
}

.cta-label {
  position: absolute;
  inset-inline: 0.75rem;
  bottom: 0.9rem;
  text-align: center;
  font-size: 1.1875rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.gallery {
  margin-top: 1.5rem;
  display: flex;
  overflow-x: auto;
  padding: 0.25rem 1rem;
  scrollbar-width: none;
  animation: rise 0.9s var(--ease) 0.12s both;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 0.75rem;
  margin: 0 auto;
  flex-shrink: 0;
}

.gallery img {
  aspect-ratio: 1;
  width: clamp(80px, calc((100cqw - 120px) / 3), 136px);
  flex-shrink: 0;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: 50% 18%;
  background: #1a1a1a;
  transition: transform 0.3s var(--ease);
}

.gallery img:hover {
  transform: scale(1.03);
}

.story {
  margin-top: 2.25rem;
  padding: 0 1rem;
  animation: rise 0.95s var(--ease) 0.14s both;
}

.story h2 {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.2;
}

.story-card {
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.story-media {
  position: relative;
}

.story-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 22%;
}

.story-media::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 33%;
  background: linear-gradient(to top, var(--surface), transparent);
}

.story p {
  padding: 0.25rem 1.25rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  white-space: pre-wrap;
}

.footer-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

@media (min-width: 640px) {
  .shell {
    padding-bottom: 4rem;
  }

  .identity h1 {
    font-size: 2.1rem;
  }

  .hero {
    border-radius: 0 0 2px 2px;
  }
}

@media (max-width: 380px) {
  .identity {
    margin-top: -148px;
  }

  .identity h1 {
    font-size: 1.75rem;
  }

  .cta-label {
    font-size: 1.05rem;
  }
}

/* Per-model image focus */
.shell.focus-center .hero img,
.shell.focus-center .cta img,
.shell.focus-center .gallery img,
.shell.focus-center .story-media img,
.shell.focus-center .home-card img {
  object-position: 50% 50%;
}

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