/* aidolworld.ai styles
   Layout: photocard-white pages with one dark "stage" moment (hero phone + contact band);
   K-pop album language, lightstick pink as the single accent. */
:root {
  --bg: #F7F5FA;        /* photocard white, lilac bias */
  --bg-alt: #EFEBF5;
  --surface: #FFFFFF;
  --fg: #17132B;        /* ink */
  --muted: #5D5773;
  --line: #E0DAEA;
  --accent: #D61F63;    /* lightstick pink */
  --accent-soft: #FBE3EC;
  --on-accent: #FFFFFF;
  --stage: #120E22;     /* always-dark stage */
  --stage-fg: #F4F0FB;
  --stage-muted: #ABA3C2;
  --stage-line: #2C2545;
  --glow-a: rgba(255, 64, 140, .45);
  --glow-b: rgba(92, 120, 255, .35);

  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --s-1: clamp(2.1rem, 1.2rem + 3.6vw, 3.9rem);
  --s-2: clamp(1.6rem, 1.15rem + 1.8vw, 2.4rem);
  --s-3: 1.15rem;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0C1A; --bg-alt: #151126; --surface: #1B1630; --fg: #F2EEF9; --muted: #A69FBB;
    --line: #2B2442; --accent: #FF5A93; --accent-soft: #3A1A2C; --on-accent: #14101F;
    --stage: #08060F; --stage-line: #241E38;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0C1A; --bg-alt: #151126; --surface: #1B1630; --fg: #F2EEF9; --muted: #A69FBB;
  --line: #2B2442; --accent: #FF5A93; --accent-soft: #3A1A2C; --on-accent: #14101F;
  --stage: #08060F; --stage-line: #241E38;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--s-1); }
h2 { font-size: var(--s-2); }
h3 { font-size: var(--s-3); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
.sub em, .lede em { font-weight: 700; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }

.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  font: 600 .98rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { padding: .6em 1em; font-size: .9rem; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand-word { font: 700 1.05rem/1 var(--f-display); letter-spacing: -.01em; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
@media (max-width: 760px) {
  .nav-links { display: none; }
  #nav-button { margin-left: auto; }
}

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { white-space: nowrap; text-wrap: nowrap; font-size: min(var(--s-1), 8vw); }
@media (min-width: 861px) { .hero h1 { font-size: min(var(--s-1), 5.2vw); } }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 500 .82rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: .04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }

.phone {
  justify-self: center; position: relative; width: min(300px, 78vw); max-width: 100%;
  aspect-ratio: 9 / 19; border-radius: 42px; padding: 10px;
  background: var(--stage); box-shadow: 0 30px 80px -30px var(--glow-a), 0 0 0 1px var(--stage-line);
}
.phone::before {
  content: ""; position: absolute; inset: -18% -40%; z-index: -1;
  background: radial-gradient(40% 35% at 35% 40%, var(--glow-a), transparent 70%),
              radial-gradient(35% 30% at 70% 65%, var(--glow-b), transparent 70%);
  filter: blur(10px);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 33px; overflow: hidden; background: var(--stage); }
.phone-screen video, .phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.media-fallback {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(255,90,147,.55), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px),
    var(--stage);
}
.media-fallback img { position: static; width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 12px 40px -8px var(--glow-a); }
.media-fallback span { font: 700 1.25rem/1 var(--f-display); color: var(--stage-fg); letter-spacing: -.03em; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-block: 48px 64px; gap: 48px; }
  .phone { width: min(260px, 70vw); }
}

/* Bands */
.band { padding-block: 88px; }
.band-alt { background: var(--bg-alt); }
.band-ink { background: var(--stage); color: var(--stage-fg); }
.band-ink .sub { color: var(--stage-muted); }
.band-ink .eyebrow { color: #FF6FA2; }
.head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 680px; }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
@media (max-width: 600px) { .band { padding-block: 64px; } }

/* Game: trailer */
.head-tight { margin-bottom: 20px; }
.trailer {
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: var(--stage); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -40px var(--glow-a);
}
.trailer video { width: 100%; height: 100%; object-fit: contain; background: var(--stage); }

/* Seven experiences */
.exp { margin-top: 88px; display: grid; gap: 28px; }
.exp-map { position: relative; aspect-ratio: 2000 / 780; max-width: 100%; }
.exp-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.exp-lines line { stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-width: 3; stroke-dasharray: 1 8; }
.exp-center { position: absolute; margin: 0; transform: translate(-50%, -50%); width: 15%; display: grid; justify-items: center; gap: 6px; }
.exp-center img { width: 100%; height: auto; filter: drop-shadow(0 20px 30px rgba(180, 120, 220, .25)); }
.exp-center figcaption { font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1 var(--f-display); color: #6a3fd0; letter-spacing: -.01em; }
.exp-items { list-style: none; margin: 0; padding: 0; }
.exp-item { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.exp-item img { width: clamp(52px, 5.4vw, 76px); height: auto; display: block; filter: drop-shadow(0 10px 16px rgba(170, 110, 220, .22)); }
.exp-item span { position: absolute; top: 50%; transform: translateY(-50%); width: max-content; max-width: 10.5em; font-weight: 700; font-size: clamp(.95rem, 1.35vw, 1.15rem); line-height: 1.3; color: var(--fg); }
.exp-left span { right: calc(100% + 18px); text-align: right; }
.exp-right span { left: calc(100% + 18px); text-align: left; }
.exp-top span { left: 50%; top: auto; bottom: calc(100% + 12px); transform: translateX(-50%); text-align: center; }
:root[data-theme="dark"] .exp-center figcaption { color: #b9a2ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .exp-center figcaption { color: #b9a2ff; } }

@media (max-width: 900px) {
  .exp { margin-top: 64px; }
  .exp-map { aspect-ratio: auto; display: grid; gap: 24px; }
  .exp-lines { display: none; }
  .exp-center { position: static; transform: none; width: min(200px, 50%); justify-self: center; }
  .exp-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .exp-item { position: static; transform: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
  .exp-item img { width: 44px; max-height: 48px; object-fit: contain; flex: none; }
  .exp-item span, .exp-left span, .exp-right span, .exp-top span { position: static; transform: none; width: auto; max-width: none; text-align: left; font-size: .98rem; }
}
@media (max-width: 520px) { .exp-items { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pillar { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--accent); min-width: 0; }
.pillar p { color: var(--muted); }
.pillar-img { margin: 0 0 8px; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); overflow: hidden; background: var(--stage); border: 1px solid var(--line); }
.pillar-img img { width: 100%; height: 100%; object-fit: cover; }
.pillar:has(.pillar-img) { border-top: 0; padding-top: 0; }
.pillar:has(.pillar-img) h3 { padding-top: 14px; border-top: 2px solid var(--accent); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; gap: 40px; } }

/* Studio facts */
.studio { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.studio .head { margin-bottom: 0; }
.studio.no-facts { grid-template-columns: 1fr; }
.facts { display: grid; gap: 0; margin: 0; }
.fact { display: grid; grid-template-columns: 5.5rem 1fr; align-items: baseline; gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.fact:first-child { border-top: 1px solid var(--line); }
.fact dt { font: 700 2.4rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.fact dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .studio { grid-template-columns: 1fr; } }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.member { display: grid; gap: 12px; align-content: start; min-width: 0; }
.portrait {
  position: relative; aspect-ratio: 1 / 1; max-width: 100%; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--bg));
  border: 1px solid var(--line);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.initials { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1.6rem/1 var(--f-display); color: var(--accent); }
.member h3 { font-size: 1rem; }
.member .role { font-size: .9rem; color: var(--muted); }
.member a { font-size: .85rem; font-weight: 600; color: var(--accent); text-decoration: none; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }

/* Updates */
.updates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.updates li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.updates time { font: 500 .85rem/1.6 var(--f-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.updates h3 { font-family: var(--f-body); font-size: 1.1rem; font-weight: 600; letter-spacing: 0; }
.updates p { color: var(--muted); }
.updates .u-body { display: grid; gap: 4px; min-width: 0; }
@media (max-width: 600px) { .updates li { grid-template-columns: 1fr; } }

/* Contact */
.emails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.email {
  display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--stage-line); background: rgba(255,255,255,.03); min-width: 0;
}
.email .label { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stage-muted); }
.email a.addr { font: 700 1.05rem/1.3 var(--f-display); color: var(--stage-fg); text-decoration: none; overflow-wrap: anywhere; }
.email a.addr:hover { color: #FF6FA2; }
.email p { color: var(--stage-muted); font-size: .95rem; }
.copy {
  justify-self: start; background: transparent; color: var(--stage-fg); border: 1px solid var(--stage-line);
  border-radius: 999px; padding: .45em .9em; font: 500 .8rem/1 var(--f-mono); cursor: pointer;
}
.copy:hover { border-color: var(--stage-fg); }
@media (max-width: 860px) { .emails { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--stage); color: var(--stage-fg); border-top: 1px solid var(--stage-line); }
.foot .muted { color: var(--stage-muted); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; padding-block: 40px; }
.foot-in > p { grid-column: 1 / -1; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.social a { text-decoration: none; font-weight: 500; color: var(--stage-muted); }
.social a:hover { color: var(--stage-fg); }
.foot .brand-word { margin-bottom: 6px; }
@media (max-width: 600px) { .foot-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot { animation: none; }
  .btn { transition: none; }
}
