:root {
  --ink: #111314;
  --paper: #f7f1e7;
  --muted: #756f65;
  --line: rgba(17, 19, 20, 0.14);
  --blue: #2d9cff;
  --rose: #f04f98;
  --gold: #c9a875;
  --white: #fffaf2;
  --shadow: 0 24px 70px rgba(17, 19, 20, 0.24);
}

* {
  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;
}

button,
a {
  font: inherit;
}

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

.girl-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(17, 19, 20, 0.06) 1px, transparent 1px) 0 0 / 44px 44px,
    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 {
  position: absolute;
  inset: 0;
}

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

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.52)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent 48%);
}

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

.hero__nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

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

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

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.4rem, 13vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.icon-command {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-command:hover,
.icon-command:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(45, 156, 255, 0.28);
  outline: none;
}

.portal-board {
  width: min(1180px, calc(100% - 32px));
  margin: -42px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 0.8fr;
  gap: 14px;
  align-items: stretch;
}

.identity-panel,
.palette-panel,
.stage {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid rgba(17, 19, 20, 0.12);
  box-shadow: var(--shadow);
}

.identity-panel,
.palette-panel {
  padding: 22px;
}

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

.identity-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(--rose), 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: 800;
}

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

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

.stage__media {
  background: var(--ink);
  min-height: 430px;
}

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

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

.stage__caption h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.92;
}

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

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 18px 0 22px;
}

.swatches span {
  aspect-ratio: 1;
  border: 1px solid rgba(17, 19, 20, 0.18);
  background: var(--swatch);
}

.mood-stack {
  display: grid;
  gap: 8px;
}

.mood-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  padding: 0 12px;
  cursor: pointer;
  font-weight: 800;
}

.mood-pill.is-active,
.mood-pill:hover,
.mood-pill:focus-visible {
  background: var(--ink);
  color: var(--white);
  outline: none;
}

.gallery-section {
  width: min(1180px, 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, 7vw, 6rem);
  line-height: 0.9;
}

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

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

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

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

.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: 980px) {
  .portal-board,
  .stage {
    grid-template-columns: 1fr;
  }

  .portal-board {
    margin-top: -28px;
  }

  .stage__media {
    min-height: 520px;
  }

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

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

  .hero__nav {
    gap: 6px;
  }

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

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

  .stage__media {
    min-height: 440px;
  }

  .stage__caption,
  .identity-panel,
  .palette-panel {
    padding: 18px;
  }

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

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