:root {
  --ink: #111314;
  --paper: #f7f1e7;
  --muted: #6d675f;
  --line: rgba(17, 19, 20, 0.14);
  --blue: #2d9cff;
  --rose: #f04f98;
  --gold: #c9a875;
  --white: #fffaf2;
  --panel: rgba(255, 250, 242, 0.94);
  --shadow: 0 22px 70px rgba(17, 19, 20, 0.22);
  --guide-aura: #f04f98;
  --guide-deep: #3f1f33;
  --guide-soft: #f6c5c7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

body[data-guide="feminine"] {
  --guide-aura: #f04f98;
  --guide-deep: #3f1f33;
  --guide-soft: #f6c5c7;
}

body[data-guide="masculine"] {
  --guide-aura: #2d9cff;
  --guide-deep: #16324f;
  --guide-soft: #c9a875;
}

body[data-guide="robot"] {
  --guide-aura: #4de4ef;
  --guide-deep: #1f2433;
  --guide-soft: #8fb7c7;
}

body[data-guide="nature"] {
  --guide-aura: #78c957;
  --guide-deep: #214d3a;
  --guide-soft: #d7b56d;
}

body[data-guide="cosmic"] {
  --guide-aura: #b999ff;
  --guide-deep: #281c56;
  --guide-soft: #cc8cbe;
}

body[data-guide="portal"] {
  --guide-aura: #7de9ff;
  --guide-deep: #0b263b;
  --guide-soft: #2d9cff;
}

button,
a {
  font: inherit;
}

button {
  border-radius: 0;
}

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

.girl-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--guide-aura) 24%, transparent), transparent 28%),
    linear-gradient(90deg, rgba(17, 19, 20, 0.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, var(--paper), color-mix(in srgb, var(--guide-soft) 18%, var(--paper)) 62%, var(--paper));
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 24px;
  color: var(--white);
  isolation: isolate;
}

.hero__image,
.hero__shade,
.hero__guide-image,
.hero__portal-brand {
  position: absolute;
  pointer-events: none;
}

.hero__image {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  z-index: -5;
}

.hero__guide-image {
  right: max(30px, 6vw);
  bottom: 6vh;
  width: min(38vw, 520px);
  max-height: 74vh;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 24%;
  z-index: -3;
  opacity: 0.72;
  mix-blend-mode: screen;
  clip-path: inset(0 0 13% 0);
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 0 42%, rgba(0, 0, 0, 0.74) 55%, transparent 76%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 0 42%, rgba(0, 0, 0, 0.74) 55%, transparent 76%);
  filter:
    drop-shadow(0 26px 58px rgba(0, 0, 0, 0.54))
    drop-shadow(0 0 46px color-mix(in srgb, var(--guide-aura) 46%, transparent));
  transform: translateZ(0);
  transition: opacity 220ms ease, filter 220ms ease;
}

.hero__portal-brand {
  inset: 0;
  z-index: -4;
  display: grid;
  place-items: center;
  opacity: 0.66;
  background:
    radial-gradient(circle, transparent 0 19%, color-mix(in srgb, var(--guide-aura) 66%, transparent) 19.3% 20.1%, transparent 20.5% 27%, rgba(255, 255, 255, 0.2) 27.5% 28.2%, transparent 28.8% 37%, rgba(45, 156, 255, 0.34) 37.4% 38.2%, transparent 38.6%),
    radial-gradient(circle at 52% 46%, color-mix(in srgb, var(--guide-deep) 52%, transparent), transparent 48%);
}

.hero__portal-brand span {
  margin-top: -20vh;
  color: rgba(255, 250, 242, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(6rem, 21vw, 19rem);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow:
    0 0 18px color-mix(in srgb, var(--guide-aura) 50%, transparent),
    0 0 80px rgba(45, 156, 255, 0.38);
}

.hero__shade {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.3) 52%, rgba(0, 0, 0, 0.62)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 52%);
}

.hero__nav {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.hero__nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.hero__content {
  width: min(760px, 100%);
  padding-bottom: 8vh;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 12vw, 9.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 250, 242, 0.88);
  font-size: clamp(1.05rem, 2.2vw, 1.46rem);
  line-height: 1.35;
}

.hero__actions,
.scene-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__actions {
  margin-top: 26px;
}

.scene-chip {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  padding: 0 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.scene-chip span {
  color: color-mix(in srgb, var(--guide-aura) 80%, var(--white));
  font-size: 0.72rem;
}

.scene-chip.is-active,
.scene-chip:hover,
.scene-chip:focus-visible {
  transform: translateY(-1px);
  border-color: var(--guide-aura);
  background: color-mix(in srgb, var(--guide-aura) 28%, rgba(0, 0, 0, 0.42));
  outline: none;
}

.studio-console {
  width: min(1220px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(440px, 1.46fr) minmax(270px, 0.82fr);
  gap: 14px;
  align-items: stretch;
}

.signal-panel,
.guide-panel,
.stage {
  border: 1px solid rgba(17, 19, 20, 0.12);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.signal-panel,
.guide-panel {
  padding: 22px;
}

.signal-panel h2,
.stage__caption h2,
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.signal-panel h2 {
  font-size: 2rem;
  line-height: 1;
}

.signal-meter {
  height: 8px;
  margin: 22px 0;
  background: rgba(17, 19, 20, 0.1);
  overflow: hidden;
}

.signal-meter span {
  display: block;
  width: var(--level);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--guide-aura), var(--gold));
}

.identity-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.identity-list div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.identity-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 900;
}

.identity-list dd {
  margin: 5px 0 0;
  font-size: 1rem;
  font-weight: 800;
}

.stage {
  display: grid;
  grid-template-columns: minmax(220px, 0.88fr) minmax(260px, 1fr);
  min-height: 460px;
  overflow: hidden;
}

.stage__media {
  position: relative;
  min-height: 460px;
  background: var(--ink);
  overflow: hidden;
}

.stage__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stage__glow {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, color-mix(in srgb, var(--guide-aura) 24%, transparent), transparent);
}

.stage__caption {
  align-self: end;
  padding: 28px;
}

.stage__caption h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
  line-height: 0.94;
}

.stage__caption p:last-child {
  color: var(--muted);
  line-height: 1.55;
  font-size: 1.05rem;
}

.guide-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.guide-copy,
.guide-note {
  color: var(--muted);
  line-height: 1.45;
}

.guide-copy {
  margin: 10px 0 14px;
}

.guide-preview {
  display: grid;
  grid-template-columns: minmax(96px, 0.78fr) 1.12fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  border: 1px solid color-mix(in srgb, var(--guide-aura) 38%, var(--line));
  background:
    radial-gradient(circle at 15% 12%, color-mix(in srgb, var(--guide-aura) 24%, transparent), transparent 44%),
    color-mix(in srgb, var(--guide-soft) 20%, var(--white));
  overflow: hidden;
}

.guide-preview img {
  width: 100%;
  height: 100%;
  min-height: 156px;
  object-fit: cover;
}

.guide-preview div {
  min-width: 0;
  padding: 12px 12px 12px 0;
}

.guide-preview .eyebrow {
  margin-bottom: 8px;
}

.guide-preview h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.08;
}

.guide-preview p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.guide-note {
  min-height: 22px;
  margin: 10px 0 0;
  font-size: 0.92rem;
  font-weight: 900;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guide-option {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.guide-option img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.guide-option span {
  display: block;
  padding: 7px;
  font-size: 0.76rem;
  font-weight: 900;
}

.guide-option.is-active,
.guide-option:hover,
.guide-option:focus-visible {
  border-color: var(--guide-aura);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--guide-aura) 46%, transparent);
  outline: none;
}

.gallery-section {
  width: min(1220px, calc(100% - 32px));
  margin: 56px auto 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 6.8vw, 5.8rem);
  line-height: 0.9;
}

.scene-rail {
  margin-bottom: 14px;
}

.scene-rail .scene-chip {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 250, 242, 0.72);
}

.scene-rail .scene-chip.is-active,
.scene-rail .scene-chip:hover,
.scene-rail .scene-chip:focus-visible {
  color: var(--white);
  background: linear-gradient(90deg, var(--ink), color-mix(in srgb, var(--guide-deep) 82%, var(--ink)));
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
  text-align: left;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
  transition: transform 260ms ease;
}

.gallery-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
  font-weight: 900;
}

.gallery-card.is-active span {
  background: color-mix(in srgb, var(--guide-aura) 54%, rgba(0, 0, 0, 0.58));
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.04);
}

.gallery-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .hero__guide-image {
    right: -4vw;
    width: min(52vw, 470px);
    opacity: 0.58;
  }

  .studio-console {
    grid-template-columns: 1fr;
  }

  .stage {
    grid-template-columns: minmax(240px, 0.72fr) 1fr;
  }

  .signal-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.7fr) 1fr;
    gap: 18px;
    align-items: center;
  }

  .signal-meter {
    margin: 0;
  }

  .identity-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 88vh;
    padding: 18px;
  }

  .hero__nav {
    gap: 6px;
  }

  .hero__nav a {
    min-width: 0;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .hero__guide-image {
    right: -28vw;
    bottom: 7vh;
    width: 88vw;
    max-height: 62vh;
    opacity: 0.28;
  }

  .hero__content {
    padding-bottom: 6vh;
  }

  .hero h1 {
    font-size: clamp(3.8rem, 20vw, 6.2rem);
  }

  .studio-console,
  .gallery-section {
    width: calc(100% - 20px);
  }

  .signal-panel,
  .guide-panel,
  .stage__caption {
    padding: 18px;
  }

  .signal-panel,
  .stage {
    grid-template-columns: 1fr;
  }

  .identity-list {
    grid-template-columns: 1fr;
  }

  .stage__media {
    min-height: 430px;
  }

  .guide-preview {
    grid-template-columns: 1fr;
  }

  .guide-preview img {
    min-height: 230px;
  }

  .guide-preview div {
    padding: 0 14px 14px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 420px;
  }
}
