@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: Orbitron;
  src: url("assets/fonts/orbitron-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07070a;
  --surface: #140a14;
  --pink: #ff168f;
  --soft: #ffbadf;
  --cyan: #00e5ff;
  --text: #fff4fb;
  --muted: #c9b4c6;
  --line: #432338;
  --heading: Orbitron, "Arial Black", system-ui, sans-serif;
  --mono: ui-monospace, "Courier New", monospace;
  --angle: polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 13px 100%, 0 calc(100% - 13px));
  --frame: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  --grid: linear-gradient(#ffbadf10 1px, transparent 1px), linear-gradient(90deg, #ffbadf10 1px, transparent 1px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 Inter, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { font: 800 clamp(1.55rem, 3.7vw, 3.1rem)/1.12 var(--heading); letter-spacing: -.045em; }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); line-height: 1.25; }
.shell { width: min(100% - clamp(2rem, 8vw, 8rem), 82rem); margin-inline: auto; }
.icon { display: block; width: 1.15em; height: 1.15em; flex: none; }
.skip { position: fixed; z-index: 10; top: .6rem; left: .6rem; padding: .5rem 1rem; background: var(--text); color: var(--bg); transform: translateY(-180%); }
.skip:focus { transform: none; }
main, section[id] { scroll-margin-top: 1.5rem; }
#home { scroll-margin-top: 3rem; }

.header {
  position: sticky;
  z-index: 3;
  top: 0;
  background: #100b12;
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .65rem clamp(.75rem, 2vw, 1.75rem); min-height: 4.5rem; }
.brand { display: inline-flex; flex: none; align-items: center; gap: .65rem; min-height: 44px; }
.brand img:first-child { width: clamp(2rem, 3vw, 2.5rem); }
.brand img:last-child { width: clamp(5.25rem, 8.5vw, 8rem); }
nav { display: flex; gap: clamp(.6rem, 1.8vw, 1.85rem); }
nav a { position: relative; display: grid; place-items: center; min-height: 44px; color: var(--muted); font-size: .875rem; font-weight: 700; }
nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink) 70%, var(--cyan) 70%, var(--cyan) 84%, transparent 84%);
  opacity: 0;
  transition: opacity .18s;
}
nav a:hover, nav a[aria-current] { color: var(--text); }
nav a:hover::after, nav a[aria-current]::after { opacity: 1; }
.menu { display: none; }

.hero {
  overflow: hidden;
  border-bottom: 1px solid #502143;
  background: radial-gradient(ellipse at 77% 70%, #3c0f30 0%, transparent 65%),
    var(--grid), #0b080e;
  background-size: auto, 48px 48px, 48px 48px, auto;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: center; gap: clamp(1rem, 4vw, 4.5rem); padding-block: clamp(1.5rem, 4.5vw, 4.25rem); }
.intro { min-width: 0; }
.eyebrow { color: var(--soft); font: 700 .78rem/1.45 var(--mono); letter-spacing: .14em; }
.intro .eyebrow { display: flex; align-items: center; gap: .75rem; }
.intro .eyebrow::before { content: ""; width: 2.25rem; height: 1px; background: linear-gradient(90deg, var(--pink) 76%, transparent 76%, transparent 84%, var(--cyan) 84%); }
h1 { margin-top: clamp(.65rem, 1.7vw, 1.35rem); }
h1 img { width: 100%; }
.tagline { margin-top: .85rem; color: var(--text); font: 700 clamp(.75rem, 1.7vw, 1.15rem)/1.5 var(--mono); letter-spacing: clamp(.075em, .6vw, .27em); }
.tagline b { color: var(--pink); }
.lede { max-width: 30ch; margin-top: 1rem; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.125rem); }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: clamp(1.05rem, 2.5vw, 1.85rem); }
.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .55rem clamp(.7rem, 2vw, 1.2rem);
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .875rem;
  font-weight: 800;
}
.button::before, .button::after { content: ""; position: absolute; z-index: -1; inset: 0; clip-path: var(--angle); background: #905075; pointer-events: none; }
.button::after { inset: 1px; background: var(--surface); transition: background .18s; }
.button:hover::after { background: #3e1733; }
.primary { color: #150009; }
.primary::before, .primary::after { background: var(--pink); }
.primary:hover::after { background: var(--soft); }

.art { min-width: 0; padding: 1px; background: linear-gradient(150deg, var(--pink), #562346 45%, #672b52 82%, #00e5ff78); clip-path: var(--frame); }
.art-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-items: end;
  overflow: hidden;
  clip-path: inherit;
  background: var(--grid), radial-gradient(ellipse at 52% 57%, #ad246d, #3c1031 59%, #150b19 88%);
  background-size: 27px 27px, 27px 27px, auto;
}
.avatar { position: relative; width: min(94%, 33rem); height: auto; margin-top: .5rem; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  background: linear-gradient(transparent, #ff72b630 95%, #ffbadf64);
  transform: translateY(100%);
  animation: scan 4.8s ease-out .6s 1;
}
@keyframes scan { 60% { transform: translateY(-655%); opacity: .75; } 100% { transform: translateY(-655%); opacity: 0; } }
.hud-ring { position: absolute; width: 69%; aspect-ratio: 1; inset: 18% 15.5% auto; border: 1px dashed #ffbadf73; border-radius: 50%; }
.hud-ring::after { content: ""; position: absolute; inset: 9%; border: 1px solid #ffbadf4a; border-radius: 50%; }
.hud-cross { position: absolute; inset: 6% auto auto 5%; width: 13%; height: 10%; border: solid #ffbadf9c; border-width: 1px 0 0 1px; }
.hud-cross::after { content: ""; position: absolute; top: -2px; left: -2px; width: 4px; height: 4px; background: var(--cyan); }
.hud-ticks {
  position: absolute;
  inset: auto 5% 5% auto;
  width: 15%;
  height: .8rem;
  background: repeating-linear-gradient(-65deg, #ff82c183 0 2px, transparent 2px 6px);
  animation: tick-shift .65s ease-out .9s 1;
}
@keyframes tick-shift {
  25% { transform: translateX(3px); }
  55% { transform: translateX(-2px); }
}
.bow {
  position: absolute;
  width: clamp(1.55rem, 3.5vw, 3rem);
  aspect-ratio: 2;
  background: radial-gradient(ellipse closest-side, #ffd6eb 92%, transparent) center / 21% 58% no-repeat;
  transform: rotate(19deg);
}
.bow::before, .bow::after {
  content: "";
  position: absolute;
  width: 44%;
  height: 100%;
  background: linear-gradient(110deg, #ffbadf, #f178b5);
  border-radius: 22% 68% 68% 22%;
}
.bow::after { right: 0; transform: scaleX(-1); }
.art-inner .bow { top: 15%; right: 10%; }

.sections { display: grid; gap: clamp(2.5rem, 6.2vw, 6rem); padding-block: clamp(2.35rem, 5vw, 5rem); }
.section-head { margin-bottom: clamp(.95rem, 2.4vw, 1.65rem); }
.section-head .eyebrow, .profile .eyebrow, .connect .eyebrow { margin-bottom: .4rem; }
.section-head > p:last-child, .profile-copy > p:last-child { margin-top: .65rem; color: var(--muted); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 2vw, 1.4rem); }
.twitch { --accent: #e1a9ff; --wash: #3c174a; }
.youtube { --accent: #ff8bc4; --wash: #4c1332; }
.smp { --accent: #87edf5; --wash: #13333a; }
.platform { border-bottom: 1px solid var(--line); }
.media-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 2.15;
  min-height: 5.25rem;
  overflow: hidden;
  clip-path: var(--frame);
  background: var(--grid), radial-gradient(ellipse at 50% 43%, var(--wash), #160d19 75%);
  background-size: 19px 19px, 19px 19px, auto;
  border-top: 1px solid var(--accent);
}
.media-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 63%;
  height: 115%;
  border-inline: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transform: skewX(-31deg);
  background: linear-gradient(100deg, transparent 62%, color-mix(in srgb, var(--accent) 12%, transparent));
}
.media-stage::after { content: ""; position: absolute; inset: auto 7% 10% auto; width: 11%; height: .35rem; background: repeating-linear-gradient(-55deg, var(--accent) 0 1px, transparent 1px 5px); opacity: .65; }
.media-stage .icon { width: clamp(2rem, 6vw, 5rem); height: auto; aspect-ratio: 1; color: var(--accent); }
.media-stage img { width: 100%; height: 100%; object-fit: cover; }
.platform-caption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; padding: .8rem .2rem .95rem; }
.platform-caption p, .destination p { margin-top: .17rem; color: var(--muted); font-size: .86rem; }
.channel-link { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; color: var(--accent, var(--soft)); font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22em; }
.channel-link:hover { color: var(--text); }

.destination { position: relative; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; align-items: start; gap: clamp(.55rem, 2.2vw, 1.35rem); padding: clamp(.85rem, 3vw, 1.75rem); }
.destination::before { content: ""; position: absolute; z-index: -1; inset: 0; border-top: 1px solid var(--accent); clip-path: var(--angle); }
.destination.smp::before { background: var(--grid), linear-gradient(135deg, var(--wash), #10171e 74%); background-size: 14px 14px, 14px 14px, auto; }
.destination > .icon { color: var(--accent); width: clamp(1.65rem, 4vw, 3.15rem); height: auto; aspect-ratio: 1; }
.destination .channel-link { margin-top: .3rem; }


.profile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.9rem, 4vw, 4rem);
  padding: clamp(1.05rem, 5vw, 3.6rem);
}
.profile::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  clip-path: var(--frame);
  background: var(--grid), radial-gradient(ellipse at 16% 28%, #631842, #260e22 50%, #100b12 92%);
  background-size: 22px 22px, 22px 22px, auto;
  border-top: 1px solid #b64180;
}
.profile-art { position: relative; width: clamp(5.75rem, 23vw, 15rem); padding: .28rem; border: 1px solid #ef66aa; border-radius: 50%; }
.profile-art img { width: 100%; border-radius: 50%; }
.profile-art .bow { right: 0; top: 2%; }
.profile-copy > p:last-child { max-width: 46ch; }
.profile-mark { position: absolute; z-index: -1; right: 3%; top: 50%; transform: translateY(-50%) rotate(18deg); width: clamp(5rem, 16vw, 13rem); opacity: .16; }

.connect { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 1.25rem; }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.social-button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .35rem clamp(.5rem, 1.5vw, .9rem); border: 1px solid #70405d; background: #1d1020; color: var(--accent); font-size: clamp(.75rem, 2.4vw, .9rem); font-weight: 700; }
.social-button[href]:hover { color: var(--text); border-color: var(--accent); }

footer { border-top: 1px solid var(--line); background: #110b13; }
.footer-inner { display: flex; min-height: 4rem; gap: .4rem; justify-content: space-between; align-items: center; font: .78rem var(--mono); color: var(--muted); }
.signature { color: var(--soft); }
.secret { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; opacity: .75; }
.secret:hover, .secret:focus-visible { opacity: 1; }
dialog { width: min(23rem, 100% - 2rem); text-align: center; padding: 2rem; border: 1px solid var(--pink); background: var(--surface); color: var(--text); }
dialog::backdrop { background: #07070ad9; }
dialog img { margin: 0 auto .75rem; }
dialog p { margin: .65rem 0 1rem; color: var(--muted); }

@media (max-width: 53rem) {
  .header:has(nav:not(.enhanced)) { position: relative; }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: .15rem .7rem; min-height: 0; padding-block: .4rem; }
  .brand { margin-right: auto; }
  .menu { display: inline-flex; justify-content: center; align-items: center; gap: .35rem; order: 2; min-height: 44px; padding: .25rem .55rem; border: 1px solid var(--line); background: var(--surface); color: var(--soft); font-size: .78rem; font-weight: 700; }
  nav { order: 3; width: 100%; flex-wrap: wrap; gap: .15rem 1.1rem; padding-block: .2rem; }
  nav.enhanced:not(.open) { display: none; }
}

@media (max-width: 42rem) {
  .hero-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .intro { max-width: 34rem; }
  .art { width: min(100%, 28rem); justify-self: center; }
  .avatar { width: min(94%, 21rem); }
}

@media (max-width: 28rem) {
  .brand { gap: .45rem; }
  .profile { grid-template-columns: 1fr; }
  .profile-art { width: clamp(6.5rem, 34vw, 9rem); }
  .profile-mark { top: 22%; }
}

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