/* =============================================
   HANAKO AMAYA — style.css
   ============================================= */

:root {
  --bg:           #0E0B1A;
  --bg-2:         #140f27;
  --bg-3:         #1a1430;
  --purple:       #7B3FE4;
  --purple-dim:   #5c2eb8;
  --lavender:     #C4AEFF;
  --blush:        #E897BA;
  --crimson:      #8B1A2A;
  --crimson-glow: rgba(139,26,42,0.18);
  --text:         #EDE9FF;
  --text-muted:   #9589be;
  --border:       rgba(196,174,255,0.13);
  --card-bg:      rgba(255,255,255,0.03);
  --radius:       10px;
  --radius-lg:    16px;
  --ease:         cubic-bezier(0.4,0,0.2,1);
  --font-serif:   'DM Serif Display', serif;
  --font-sans:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
textarea, input { font: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.link { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.link:hover { color: var(--blush); }

.badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 11px; border-radius: 99px;
  border: 1px solid rgba(123,63,228,0.5);
  background: rgba(123,63,228,0.18);
  color: var(--lavender);
}
.badge--closed {
  border-color: rgba(180,80,80,0.5);
  background: rgba(180,80,80,0.15);
  color: #e8a0a0;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: #9055f5; transform: translateY(-1px); }
.btn--ghost { border: 1.5px solid var(--border); color: var(--lavender); }
.btn--ghost:hover { border-color: var(--lavender); background: rgba(196,174,255,0.07); }
.btn--blaze {
  border: 1.5px solid rgba(220,100,60,0.4);
  color: #e07050;
  background: rgba(220,100,60,0.08);
}
.btn--blaze:hover {
  border-color: rgba(220,100,60,0.7);
  background: rgba(220,100,60,0.15);
  transform: translateY(-1px);
}
.btn__blaze-icon {
  width: 18px; height: 18px;
  object-fit: contain;
  mix-blend-mode: screen;
  flex-shrink: 0;
}
.btn--large { padding: 15px 36px; font-size: 16px; }
.btn--sm { padding: 8px 18px; font-size: 13px; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(14,11,26,0.93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__logo { font-family: var(--font-serif); font-size: 20px; color: var(--lavender); white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { background: var(--purple) !important; color: #fff !important; padding: 7px 18px; border-radius: 7px; font-weight: 600 !important; }
.nav__cta:hover { background: #9055f5 !important; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; z-index: 102; position: relative; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--lavender); border-radius: 2px; transition: 0.2s; }

/* =============================================
   HERO — cinematic centered layout
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #080510;
}

#petalCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Portrait sits as full-bleed background, pushed right */
.hero__bg-portrait {
  position: absolute; inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.hero__bg-portrait img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  mix-blend-mode: lighten;
  opacity: 0.75;
  filter: drop-shadow(0 0 60px rgba(120,20,40,0.6))
          drop-shadow(0 0 20px rgba(196,174,255,0.1));
  animation: fadeIn 1.4s 0.3s both;
}

/* Vignette: very heavy solid on the left, fades out past 50% */
.hero__vignette {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(8,5,16,0.98) 0%, rgba(8,5,16,0.5) 18%, transparent 40%),
    linear-gradient(to bottom, rgba(8,5,16,0.7) 0%, transparent 20%),
    linear-gradient(to right, #080510 0%, #080510 25%, rgba(8,5,16,0.85) 40%, rgba(8,5,16,0.2) 58%, transparent 72%),
    radial-gradient(ellipse 45% 65% at 72% 80%,
      rgba(100,15,30,0.4) 0%,
      transparent 70%);
}

/* Text pinned hard to the left */
.hero__center {
  position: absolute;
  top: 0; bottom: 80px; left: 0;
  width: 48%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 48px 0 max(48px, calc((100vw - 1120px) / 2 + 48px));
}

.hero__eyebrow {
  font-size: 11px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blush);
  margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.8s 0.5s forwards;
}
.hero__title em {
  font-style: italic;
  color: var(--lavender);
  display: block;
}
.hero__sub {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 36px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.7s 0.7s forwards;
}
.hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  opacity: 0; animation: fadeUp 0.7s 0.85s forwards;
}
.hero__actions .btn {
  width: 100%;
  justify-content: center;
}
.hero__mediakit-link {
  display: none;
}

/* Stats bar pinned to the bottom of the hero */
.hero__stats-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: rgba(8,5,16,0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; animation: fadeUp 0.7s 1s forwards;
}
.hero__stats-bar .stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 32px;
}
.stat__divider {
  width: 1px; height: 32px;
  background: var(--border);
  flex-shrink: 0;
}
.stat__num {
  display: block; font-family: var(--font-serif);
  font-size: 28px; color: var(--lavender); line-height: 1;
}
.stat__label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

.hero__scroll {
  position: absolute; bottom: 88px; right: 28px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); opacity: 0.35;
}
.hero__scroll span {
  display: block; width: 1px; height: 28px;
  background: linear-gradient(to bottom, transparent, var(--lavender));
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 96px 0; }
.section__eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blush); margin-bottom: 10px;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.12; margin-bottom: 20px;
}
.section__desc { color: var(--text-muted); max-width: 560px; margin-bottom: 44px; }

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--bg-2); position: relative; overflow: hidden; }

/* Hanako_back — right edge, facing left into the section */
.about__bg-figure {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 32%;
  max-width: 380px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to left, black 20%, rgba(0,0,0,0.7) 55%, transparent 88%),
                      linear-gradient(to top,  black 10%, transparent 95%),
                      linear-gradient(to bottom, transparent 0%, black 8%);
  mask-image: linear-gradient(to left, black 20%, rgba(0,0,0,0.7) 55%, transparent 88%),
              linear-gradient(to top,  black 10%, transparent 95%),
              linear-gradient(to bottom, transparent 0%, black 8%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}
.about__bg-figure img {
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: center right;
  display: block;
  mix-blend-mode: lighten;
  opacity: 0.6;
}
.about .container { position: relative; z-index: 1; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about__text p { color: var(--text-muted); margin-bottom: 14px; }
.about__text p:first-of-type { margin-top: 20px; }

/* Other projects mini-links */
.about__projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.about__project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 14px;
  transition: all 0.2s;
}
.about__project-link:hover {
  border-color: var(--lavender);
  background: rgba(196,174,255,0.06);
}
.about__project-link span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blush);
}

.about__highlights { display: flex; flex-direction: column; gap: 16px; }
.highlight-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.highlight-card h3 {
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lavender); margin-bottom: 14px;
}
.highlight-card li { color: var(--text-muted); font-size: 14px; padding: 3px 0 3px 14px; position: relative; }
.highlight-card li::before { content: '/'; position: absolute; left: 0; color: var(--purple); font-weight: 600; }

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--bg); }
.pricing-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 26px; margin-bottom: 44px; background: var(--card-bg);
}
.pricing-banner__left { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pricing-banner__price { font-family: var(--font-serif); font-size: 38px; color: var(--lavender); }
.pricing-banner__price small { font-family: var(--font-sans); font-size: 15px; color: var(--text-muted); }
.pricing-banner__label { color: var(--text); font-weight: 500; font-size: 15px; }
.services__why { margin-bottom: 44px; }
.services__why h3 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 20px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.why-item { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.why-item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.why-item p { font-size: 13px; color: var(--text-muted); }
.accordion { display: flex; flex-direction: column; gap: 6px; margin-bottom: 28px; }
.accordion__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg); }
.accordion__trigger {
  width: 100%; text-align: left; padding: 16px 20px;
  font-size: 15px; font-weight: 500; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; transition: background 0.2s;
}
.accordion__trigger::after { content: '+'; font-size: 18px; color: var(--lavender); transition: transform 0.2s; }
.accordion__item.open .accordion__trigger { background: rgba(123,63,228,0.08); }
.accordion__item.open .accordion__trigger::after { transform: rotate(45deg); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 20px; }
.accordion__item.open .accordion__body { max-height: 320px; padding: 0 20px 16px; }
.accordion__body li { color: var(--text-muted); font-size: 14px; padding: 3px 0 3px 14px; position: relative; }
.accordion__body li::before { content: '/'; position: absolute; left: 0; color: var(--purple); font-weight: 600; }
.services__note { color: var(--text-muted); font-size: 14px; border-left: 2px solid var(--purple); padding-left: 14px; }

/* =============================================
   ROSTER
   ============================================= */
.roster { background: var(--bg-2); }
.roster__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 18px; }
.talent-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px 18px; text-align: center;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.talent-card:hover { transform: translateY(-5px); border-color: rgba(196,174,255,0.3); box-shadow: 0 16px 40px rgba(0,0,0,0.35); }
.talent-card__avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 14px; overflow: hidden;
  background: var(--bg-3); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.talent-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.talent-card__avatar-initials { font-family: var(--font-serif); font-size: 26px; color: var(--lavender); }
.talent-card__name { font-weight: 600; font-size: 15px; margin-bottom: 10px; position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; }

/* Live indicator dot */
.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(61,220,132,0.6);
  animation: livePulse 2s ease-out infinite;
}
.live-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #3ddc84;
  background: rgba(61,220,132,0.12);
  border: 1px solid rgba(61,220,132,0.3);
  border-radius: 99px; padding: 2px 8px;
  margin-bottom: 10px;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(61,220,132,0.6); }
  70%  { box-shadow: 0 0 0 6px rgba(61,220,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(61,220,132,0); }
}
.talent-card__stats { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.talent-card__stat { font-size: 12px; color: var(--text-muted); }
.talent-card__stat strong { color: var(--lavender); }
.talent-card__link {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--lavender); border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 14px; transition: all 0.2s;
}
.talent-card__link:hover { background: rgba(196,174,255,0.09); border-color: var(--lavender); }

/* Type badge */
.talent-type-badge {
  width: 22px;
  height: 22px;
  object-fit: contain;
  mix-blend-mode: lighten;
  margin: 4px auto 8px;
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.talent-card:hover .talent-type-badge { opacity: 1; }

/* Admin type toggle */
.admin-type-toggle {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.admin-type-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--card-bg);
  cursor: pointer;
  transition: all 0.2s;
}
.admin-type-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  mix-blend-mode: lighten;
}
.admin-type-btn:hover { border-color: var(--lavender); color: var(--text); }
.admin-type-btn.active { border-color: var(--lavender); background: rgba(196,174,255,0.1); color: var(--text); }

/* =============================================
   REVIEWS
   ============================================= */
.reviews { background: var(--bg-3); }
.reviews__carousel { overflow: hidden; width: 100%; }
.reviews__track { display: flex; gap: 20px; transition: transform 0.45s var(--ease); width: 100%; }
.review-card {
  min-width: calc(50% - 10px); max-width: calc(50% - 10px); flex-shrink: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  box-sizing: border-box; overflow-wrap: break-word; word-break: break-word;
}
.review-card__quote {
  font-size: 15px; line-height: 1.75; margin-bottom: 18px;
  position: relative; padding-top: 20px; color: var(--text);
}
.review-card__quote::before {
  content: '"'; position: absolute; top: -10px; left: -2px;
  font-family: var(--font-serif); font-size: 56px;
  color: var(--purple); line-height: 1; opacity: 0.35;
}
.review-card__author { font-weight: 600; font-size: 13px; color: var(--lavender); }
.reviews__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.reviews__btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--lavender); font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.reviews__btn:hover { background: rgba(196,174,255,0.09); border-color: var(--lavender); }
.reviews__dots { display: flex; gap: 6px; }
.reviews__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; transition: background 0.2s; }
.reviews__dot.active { background: var(--lavender); }

/* =============================================
   CONSULT
   ============================================= */
.consult { background: var(--bg); }
.consult__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.consult__price { font-family: var(--font-serif); font-size: 44px; color: var(--lavender); margin-bottom: 16px; line-height: 1; }
.consult__price small { font-family: var(--font-sans); font-size: 17px; color: var(--text-muted); }
.consult__list { margin: 20px 0 30px; display: flex; flex-direction: column; gap: 9px; }
.consult__list li { color: var(--text-muted); font-size: 15px; padding-left: 18px; position: relative; }
.consult__list li::before { content: '/'; position: absolute; left: 0; color: var(--purple); font-weight: 600; }
.consult__visual { display: flex; align-items: center; justify-content: center; }
.consult__card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px; text-align: center; max-width: 300px;
}
.consult__card-title { font-family: var(--font-serif); font-size: 24px; margin-bottom: 10px; }
.consult__card-sub { color: var(--text-muted); font-size: 14px; }

/* =============================================
   CONTACT
   ============================================= */
.contact { background: var(--bg-2); text-align: center; position: relative; overflow: hidden; }

/* Hanako_front — right side, forward-facing, fades bottom up */
.contact__bg-figure {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 4%;
  width: 32%;
  max-width: 360px;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%),
                      linear-gradient(to left, black 50%, transparent 95%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%),
              linear-gradient(to left, black 50%, transparent 95%);
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
}
.contact__bg-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  display: block;
  mix-blend-mode: lighten;
  opacity: 0.45;
}
.contact .container { position: relative; z-index: 1; }
.contact .section__title { margin: 0 auto 14px; }
.contact .section__desc { margin: 0 auto 36px; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.contact__emails { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.contact__label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 3px; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 36px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.footer__name { font-family: var(--font-serif); font-size: 20px; color: var(--lavender); }
.footer__logo-link { display: block; }
.footer__logo-img {
  height: 72px;
  width: auto;
  mix-blend-mode: lighten;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.footer__logo-link:hover .footer__logo-img { opacity: 1; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer__links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer__links a:hover { color: var(--lavender); }
.footer__copy { font-size: 12px; color: var(--text-muted); }

/* =============================================
   LOADING SCREEN
   ============================================= */
body.loading { overflow: hidden; }

#hanakoLoader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #080510;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  clip-path: circle(150% at 50% 100%);
}

#loaderCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Crimson glow at the base */
#hanakoLoader::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50%;
  background: radial-gradient(ellipse 70% 60% at 50% 100%,
    rgba(100,15,30,0.5) 0%,
    rgba(60,10,90,0.2) 50%,
    transparent 75%);
  pointer-events: none;
  z-index: 1;
}

.loader__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10vh;
  width: 100%;
  max-width: 500px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Chibi — slides up on .loader--visible */
.loader__chibi {
  width: 200px;
  margin-bottom: 24px;
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.1s,
              opacity    0.6s ease 0.1s;
}
#hanakoLoader.loader--visible .loader__chibi {
  transform: translateY(0);
  opacity: 1;
}
.loader__chibi img {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(196,174,255,0.3))
          drop-shadow(0 0 12px rgba(139,26,42,0.5));
}

/* Text block */
.loader__text-block {
  text-align: center;
  margin-bottom: 28px;
}

.loader__name {
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 52px);
  color: var(--lavender);
  line-height: 1;
  margin-bottom: 14px;
  min-height: 1.1em;
  letter-spacing: -0.01em;
}

.loader__tagline {
  font-family: var(--font-sans);
  font-size: clamp(13px, 2vw, 16px);
  color: var(--text-muted);
  min-height: 1.4em;
  letter-spacing: 0.01em;
}

/* Progress bar */
.loader__bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(196,174,255,0.12);
  border-radius: 99px;
  overflow: hidden;
}
.loader__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--lavender));
  border-radius: 99px;
}

/* =============================================
   CORNER COMPANION
   ============================================= */
#chibiCorner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 110px;
  z-index: 95;
  cursor: pointer;
  pointer-events: all;
  filter: drop-shadow(0 4px 16px rgba(139,26,42,0.35));
}
#chibiCorner img {
  width: 100%;
  display: block;
  mix-blend-mode: screen;
  pointer-events: none;
  transform-origin: bottom center;
}

/* Bounce: triggered by fast scroll */
@keyframes companionBounce {
  0%,100% { transform: translateY(0) scaleY(1); }
  30%      { transform: translateY(-18px) scaleY(1.05); }
  60%      { transform: translateY(-6px) scaleY(0.97); }
  80%      { transform: translateY(-2px); }
}
#chibiCorner.companion--bounce img {
  animation: companionBounce 0.6s cubic-bezier(0.36,0.07,0.19,0.97);
}

/* Wiggle: triggered by hovering talent cards */
@keyframes companionWiggle {
  0%,100% { transform: rotate(0deg); }
  20%      { transform: rotate(-8deg); }
  50%      { transform: rotate(8deg); }
  80%      { transform: rotate(-4deg); }
}
#chibiCorner.companion--wiggle img {
  animation: companionWiggle 0.5s ease-in-out;
}

/* Spin: triggered by clicking links/buttons */
@keyframes companionSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
#chibiCorner.companion--spin img {
  animation: companionSpin 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* Wave: idle or click on companion */
@keyframes companionWave {
  0%,100% { transform: translateY(0) rotate(0deg); }
  15%      { transform: translateY(-14px) rotate(-6deg); }
  30%      { transform: translateY(-18px) rotate(4deg); }
  50%      { transform: translateY(-12px) rotate(-4deg); }
  70%      { transform: translateY(-6px) rotate(2deg); }
  85%      { transform: translateY(-2px) rotate(-1deg); }
}
#chibiCorner.companion--wave img {
  animation: companionWave 0.9s ease-in-out;
}

/* =============================================
   ANIMATIONS & REVEAL
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scrollPulse {
  0%,100% { opacity:0.3; } 50% { opacity:1; }
}
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   IS THIS RIGHT FOR YOU
   ============================================= */
.fit { background: var(--bg-2); }
.fit__grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 56px;
  align-items: start;
}
.fit__divider {
  background: var(--border);
  align-self: stretch;
}
.fit__col .section__title { font-size: clamp(22px, 3vw, 32px); margin-bottom: 24px; }
.fit__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.fit__list li {
  color: var(--text-muted);
  font-size: 15px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.fit__list li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}
.fit__list--no li::before { color: var(--blush); opacity: 0.7; }
.fit__note {
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 14px;
  line-height: 1.7;
}

/* =============================================
   MANAGEMENT TERMS
   ============================================= */
.terms { background: var(--bg); }
.terms__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.terms__card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.terms__card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blush);
}
.terms__card-value {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--lavender);
  line-height: 1.1;
}
.terms__card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .fit__grid { grid-template-columns: 1fr; gap: 40px; }
  .fit__divider { display: none; }
  .terms__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .terms__grid { grid-template-columns: 1fr; }
}

/* =============================================
   ADMIN TRIGGER
   ============================================= */
#adminTrigger {
  position: fixed; bottom: 20px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(123,63,228,0.18); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 90; opacity: 0.4;
}
#adminTrigger:hover { opacity: 1; background: rgba(123,63,228,0.35); color: var(--lavender); }

/* =============================================
   ADMIN OVERLAY & PANEL
   ============================================= */
.admin-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,5,18,0.7); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: 20px; overflow-y: auto;
}
.admin-overlay.hidden { display: none; }
.admin-panel {
  background: #1a1330; border: 1px solid var(--border); border-radius: var(--radius-lg);
  width: 100%; max-width: 480px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; max-height: calc(100vh - 40px); overflow-y: auto;
}
.admin-panel--sm { max-width: 400px; align-self: center; margin: auto; }
.admin-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: #1a1330; z-index: 1;
}
.admin-panel__header h2 { font-family: var(--font-serif); font-size: 20px; }
.admin-panel__header button {
  font-size: 22px; color: var(--text-muted); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s;
}
.admin-panel__header button:hover { background: rgba(255,255,255,0.07); color: var(--text); }
.admin-panel__footer {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
  position: sticky; bottom: 0; background: #1a1330;
}
.admin-section { padding: 18px 22px; border-bottom: 1px solid var(--border); }
.admin-section h3 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lavender); margin-bottom: 14px; }
.admin-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; margin-top: -8px; }

.admin-toggle-row { display: flex; align-items: center; justify-content: space-between; }
#slotStatusLabel { font-size: 14px; color: var(--text-muted); }
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 99px; background: #3a3060; cursor: pointer; transition: background 0.2s; }
.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.toggle-switch input:checked + .toggle-track { background: var(--purple); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }

.admin-roster-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 200px; overflow-y: auto; }
.admin-roster-item {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 7px; padding: 10px 14px; gap: 10px;
}
.admin-roster-item__name { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-roster-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-roster-item__actions button { font-size: 12px; color: var(--text-muted); padding: 3px 10px; border: 1px solid var(--border); border-radius: 5px; transition: all 0.2s; }
.admin-roster-item__actions button:hover { color: var(--text); border-color: var(--text-muted); }
.admin-roster-item__actions .btn-delete:hover { color: #e88; border-color: #e88; }

.admin-form { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.admin-form--inline { padding: 0; }
.admin-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--text-muted); }
.admin-form input[type="text"],
.admin-form input[type="url"],
.admin-form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 6px; padding: 9px 12px; color: var(--text); font-size: 14px;
  transition: border-color 0.2s; width: 100%;
}
.admin-form input:focus, .admin-form textarea:focus { outline: none; border-color: var(--purple); }
.admin-form input[type="file"] { font-size: 13px; color: var(--text-muted); }
.admin-form__file-label { cursor: pointer; }
.talent-preview { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; border: 2px solid var(--border); display: none; }
.talent-preview img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  .hero__title { font-size: clamp(60px, 16vw, 120px); }
  .hero__stats-bar .stat { padding: 0 18px; }
  .stat__num { font-size: 22px; }
}
@media (max-width: 860px) {
  .about__grid, .consult__grid { grid-template-columns: 1fr; gap: 36px; }
  .about__chibi { position: static; width: 140px; margin: 20px auto 0; }
  .about__bg-figure, .contact__bg-figure { display: none; }
  .consult__visual { display: flex; }
  .consult__card { max-width: 100%; width: 100%; }
  .review-card { min-width: 100%; max-width: 100%; }
  .nav__links {
    display: none; position: fixed; inset: 0;
    background: rgba(14,11,26,0.97);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 28px; font-size: 18px; z-index: 101;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }
  .hero__actions { max-width: 100%; }
}
@media (max-width: 560px) {
  .hero__stats-bar { gap: 0; flex-wrap: wrap; justify-content: space-around; }
  .stat__divider { display: none; }
  .hero__stats-bar .stat { padding: 8px 16px; }
  .pricing-banner { flex-direction: column; gap: 10px; align-items: flex-start; }
  .admin-overlay { padding: 10px; align-items: flex-end; }
  .admin-panel { max-width: 100%; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
