@import url('https://fonts.googleapis.com/css2?family=Amatic+SC:wght@400;700&family=Cabin:wght@400;500;600;700&display=swap');

:root{
  --red:#ff0000;
  --violet:#8b00ff;
  --ink:#261717;
  --txt:#f8eff1;
  --dim:#dbc9d1;
  --glass:rgba(255,255,255,.11);
  --glass-2:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.22);
  --stroke-soft:rgba(255,255,255,.13);
  --blur:blur(16px) saturate(150%);
  --dockw:214px;
  --tickerh:34px;
  --shadow:0 16px 40px rgba(12,4,6,.42);
  --radius:10px;
}

*{box-sizing:border-box;}

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

body{
  margin:0;
  min-height:100vh;
  font-family:'Cabin',system-ui,-apple-system,'Noto Sans SC','PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--txt);
  overflow-x:hidden;
  padding:var(--tickerh) 0 0;
  background:
    radial-gradient(120% 78% at 92% -12%,rgba(255,0,0,.42),transparent 58%),
    radial-gradient(105% 72% at 4% 10%,rgba(139,0,255,.42),transparent 60%),
    radial-gradient(130% 110% at 48% 116%,rgba(255,0,0,.22),transparent 62%),
    radial-gradient(90% 90% at 85% 80%,rgba(139,0,255,.18),transparent 60%),
    #180d0f;
  background-attachment:fixed;
}

img{max-width:100%;height:auto;}

a{color:#ffb3b8;}

/* ===== ambient light sources ===== */
.aura{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.aura i{
  position:absolute;
  display:block;
  border-radius:50%;
  filter:blur(62px);
  opacity:.5;
  mix-blend-mode:screen;
}
.aura i:nth-child(1){
  width:52vw;height:52vw;left:-10vw;top:-12vh;
  background:#ff0000;
  animation:drift 24s ease-in-out infinite;
}
.aura i:nth-child(2){
  width:44vw;height:44vw;right:-8vw;top:18vh;
  background:#8b00ff;
  animation:drift 30s ease-in-out infinite reverse;
}
.aura i:nth-child(3){
  width:38vw;height:38vw;left:26vw;bottom:-14vh;
  background:#b4006b;
  animation:drift 27s ease-in-out infinite 2s;
}
.aura i:nth-child(4){
  width:26vw;height:26vw;right:22vw;bottom:26vh;
  background:#4a0a4a;
  opacity:.7;
  animation:drift 34s ease-in-out infinite reverse;
}
@keyframes drift{
  0%,100%{transform:translate3d(0,0,0) scale(1);}
  50%{transform:translate3d(4vw,-5vh,0) scale(1.16);}
}

/* ===== top thin strip ===== */
.ticker{
  position:fixed;
  inset:0 0 auto 0;
  height:var(--tickerh);
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-bottom:1px solid var(--stroke);
  background:linear-gradient(90deg,rgba(255,0,0,.34),rgba(139,0,255,.34),rgba(255,0,0,.3));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
.ticker-txt{
  font-size:16px;
  line-height:1;
  letter-spacing:.36em;
  padding-left:.36em;
  color:#fff;
  text-shadow:0 1px 10px rgba(0,0,0,.55);
  white-space:nowrap;
}

/* ===== fixed left dock ===== */
.dock{
  position:fixed;
  top:var(--tickerh);
  left:0;
  bottom:0;
  width:var(--dockw);
  z-index:50;
  display:flex;
  flex-direction:column;
  padding:18px 14px 24px;
  overflow-y:auto;
  border-right:1px solid var(--stroke);
  background:rgba(255,255,255,.09);
  -webkit-backdrop-filter:var(--blur);
  backdrop-filter:var(--blur);
  box-shadow:14px 0 44px rgba(10,3,5,.32);
}
.dock-top{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 6px;
  min-height:44px;
  text-decoration:none;
  color:#fff;
}
.mark-img{
  width:36px;height:36px;
  border-radius:10px;
  object-fit:cover;
  border:1px solid var(--stroke);
}
.mark-txt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;height:36px;
  border-radius:10px;
  font-family:'Amatic SC','Cabin',system-ui,sans-serif;
  font-size:24px;
  line-height:1;
  color:#fff;
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 6px 18px rgba(255,0,0,.32);
}
.brand-txt{
  font-family:'Amatic SC','Cabin',system-ui,sans-serif;
  font-size:26px;
  letter-spacing:.06em;
  line-height:1;
}

.dock-shell{display:block;}
.knob{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.1);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  font-size:16px;
  color:#fff;
  cursor:pointer;
  list-style:none;
  user-select:none;
  transition:background .25s ease,border-color .25s ease;
}
.knob::-webkit-details-marker{display:none;}
.knob:hover{background:rgba(255,0,0,.26);border-color:rgba(255,255,255,.4);}
.knob-bars{
  width:16px;height:10px;
  background:
    linear-gradient(#fff,#fff) 0 0/16px 2px no-repeat,
    linear-gradient(#fff,#fff) 0 4px/16px 2px no-repeat,
    linear-gradient(#fff,#fff) 0 8px/11px 2px no-repeat;
  opacity:.9;
}
.dock-shell[open] .knob{background:rgba(255,0,0,.3);}

.dock-menu{
  list-style:none;
  margin:12px 0 0;
  padding:0;
  display:grid;
  gap:8px;
}
.pill{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:10px 16px;
  border-radius:999px;
  border:1px solid var(--stroke-soft);
  background:rgba(255,255,255,.07);
  color:var(--txt);
  font-size:16px;
  line-height:1.3;
  text-decoration:none;
  transition:background .22s ease,transform .22s ease,color .22s ease;
}
.pill:hover,.pill:focus-visible{
  background:linear-gradient(100deg,rgba(255,0,0,.46),rgba(139,0,255,.42));
  color:#fff;
  transform:translateX(2px);
}

/* ===== stage ===== */
.stage{
  position:relative;
  z-index:1;
  max-width:1160px;
  margin:0 auto;
  padding:26px 20px 34px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 248px;
  gap:22px;
  align-items:start;
}

.sheet{min-width:0;}

/* hero */
.hero{
  position:relative;
  display:grid;
  grid-template-columns:42% minmax(0,1fr);
  align-items:center;
  gap:22px;
  min-height:45vh;
  padding:22px 22px 30px;
  margin-bottom:20px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background:linear-gradient(135deg,rgba(255,0,0,.24),rgba(139,0,255,.24) 60%,rgba(255,255,255,.08));
  -webkit-backdrop-filter:var(--blur);
  backdrop-filter:var(--blur);
  box-shadow:var(--shadow);
}
.hero::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:52%;
  background:linear-gradient(180deg,rgba(255,255,255,.16),transparent);
  pointer-events:none;
}
.hero-art{
  position:relative;
  margin:0;
  aspect-ratio:4/3;
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.26);
  background:radial-gradient(circle at 32% 28%,rgba(255,0,0,.7),rgba(139,0,255,.5) 58%,rgba(38,23,23,.95));
  box-shadow:0 18px 42px rgba(10,3,5,.5);
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
}
.hero-glint{
  position:absolute;
  inset:0;
  background:linear-gradient(125deg,rgba(255,255,255,.34),transparent 42%);
  pointer-events:none;
}
.hero-copy{
  position:relative;
  text-align:center;
}
.hero-title{
  margin:0 0 12px;
  font-family:'Amatic SC','Cabin',system-ui,'Noto Sans SC',sans-serif;
  font-size:clamp(2.1rem,5.4vw,3.4rem);
  line-height:1.16;
  letter-spacing:.02em;
  background:linear-gradient(100deg,#ffffff,#ffd3d6 46%,#d9b8ff);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero-lede{
  margin:0 auto;
  max-width:44ch;
  font-size:16px;
  line-height:1.8;
  color:var(--dim);
}
.slash{
  position:absolute;
  left:-12%;
  right:-12%;
  bottom:0;
  height:8px;
  background:linear-gradient(90deg,var(--red),var(--violet),var(--red));
  transform:skewY(-1.6deg);
  opacity:.92;
}

.rule{
  border:0;
  height:1px;
  margin:0 0 18px;
  background:linear-gradient(90deg,var(--red),var(--violet) 46%,transparent);
}

/* content blocks coming from page.content */
section > article{
  position:relative;
  margin:0 0 16px;
  padding:24px 20px;
  border-radius:var(--radius);
  border:1px solid var(--stroke-soft);
  background:var(--glass);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  box-shadow:0 12px 32px rgba(12,4,6,.3);
  scroll-margin-top:96px;
}
section > article::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:1px;
  background:linear-gradient(90deg,rgba(255,255,255,.6),transparent 70%);
}
section > article:last-of-type{margin-bottom:0;}

section > article > :first-child{margin-top:0;}
section > article > :last-child{margin-bottom:0;}

section h2,
section h3,
.side-title{
  font-family:'Cabin',system-ui,'Noto Sans SC',sans-serif;
  font-weight:700;
  line-height:1.4;
  color:#fff;
}
section h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 10px;
  font-size:1.42rem;
  letter-spacing:.01em;
}
section h2::before{
  content:"";
  width:11px;height:11px;
  flex:0 0 11px;
  border-radius:3px;
  transform:rotate(45deg);
  background:linear-gradient(135deg,var(--red),var(--violet));
  box-shadow:0 0 12px rgba(255,0,0,.6);
}
section h3{
  margin:22px 0 8px;
  font-size:1.12rem;
  color:#ffe2e5;
}
section hr{
  border:0;
  height:1px;
  margin:0 0 16px;
  background:linear-gradient(90deg,rgba(255,255,255,.5),rgba(139,0,255,.4) 55%,transparent);
}
section p{margin:0 0 14px;}
section ul,
section ol{margin:0 0 16px;padding-left:1.35em;}
section li{margin:6px 0;}
section strong{color:#fff;}
section a{color:#ffc0c6;text-underline-offset:3px;}
section figure{margin:18px 0;}
section figcaption{font-size:16px;color:var(--dim);}

/* aside on the right */
.side{
  position:sticky;
  top:52px;
  padding:18px 14px 20px;
  border-radius:12px;
  border:1px solid var(--stroke);
  background:var(--glass);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  box-shadow:var(--shadow);
}
.side-title{
  margin:0 0 8px;
  font-size:1.05rem;
  letter-spacing:.08em;
}
.side hr{
  border:0;
  height:1px;
  margin:0 0 12px;
  background:linear-gradient(90deg,var(--violet),var(--red) 70%,transparent);
}
.side-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:8px;
}
.mini{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid var(--stroke-soft);
  background:rgba(255,255,255,.06);
  color:var(--txt);
  font-size:16px;
  text-decoration:none;
  transition:background .22s ease,color .22s ease;
}
.mini:hover,.mini:focus-visible{
  background:linear-gradient(100deg,rgba(139,0,255,.5),rgba(255,0,0,.44));
  color:#fff;
}

/* ===== footer ===== */
.base{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  padding:20px 22px 30px;
  border-top:1px solid var(--stroke);
  background:rgba(255,255,255,.06);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.base-brand{
  font-family:'Amatic SC','Cabin',system-ui,sans-serif;
  font-size:28px;
  line-height:1;
  letter-spacing:.05em;
  color:#fff;
  text-decoration:none;
}
.base-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.base-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--stroke-soft);
  background:rgba(255,255,255,.05);
  color:var(--dim);
  font-size:16px;
  text-decoration:none;
}
.base-nav a:hover{color:#fff;background:rgba(255,0,0,.28);}
.base-copy{
  flex:1 1 200px;
  margin:0;
  text-align:center;
  font-size:16px;
  color:var(--dim);
}

/* reveal */
.js-reveal-on section > article,
.js-reveal-on .hero,
.js-reveal-on .side{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .6s ease,transform .6s ease;
}
.js-reveal-on .in{
  opacity:1;
  transform:none;
}

/* ===== desktop offset ===== */
@media (min-width:900px){
  body{padding-left:var(--dockw);}
  .base{padding-left:24px;}
  section > article{scroll-margin-top:84px;}
}

/* ===== small screens ===== */
@media (max-width:899px){
  .ticker{position:relative;}
  body{padding-top:0;}
  .dock{
    position:sticky;
    top:0;
    left:auto;
    bottom:auto;
    width:auto;
    overflow:visible;
    padding:8px 12px 10px;
    border-right:0;
    border-bottom:1px solid var(--stroke);
  }
  .dock-top{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:10px;
  }
  .brand{flex:0 0 auto;padding:4px 0;}
  .dock-shell{flex:1 1 120px;min-width:120px;}
  .dock-shell[open]{flex:1 1 100%;}
  .knob{justify-content:center;}
  .dock-menu{grid-template-columns:1fr 1fr;margin-top:10px;}
  .stage{grid-template-columns:minmax(0,1fr);padding:16px 14px 28px;gap:16px;}
  .hero{
    grid-template-columns:minmax(0,1fr);
    gap:16px;
    padding:18px 16px 26px;
    min-height:0;
  }
  .hero-copy{order:1;}
  .hero-art{order:2;aspect-ratio:16/10;}
  .side{position:static;}
  section > article{padding:20px 16px;scroll-margin-top:180px;}
  .base{justify-content:center;text-align:center;padding:18px 14px 26px;}
  .base-copy{flex:1 1 100%;}
  .base-nav{justify-content:center;}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto;}
  .aura i{animation:none;}
  .js-reveal-on section > article,
  .js-reveal-on .hero,
  .js-reveal-on .side{opacity:1;transform:none;transition:none;}
  .pill:hover,.pill:focus-visible{transform:none;}
}

button[aria-expanded]{min-width:44px;min-height:44px}
