:root {
  --text: #f6f3ee;
  --muted: rgba(246, 243, 238, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --surface: rgba(7, 10, 18, 0.34);
  --surface-strong: rgba(8, 12, 23, 0.56);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  --menu-origin-x: calc(100% - 88px);
  --menu-origin-y: 86px;
  --aurora-strength: 0.9;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

html {
  overflow: hidden;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #06080f;
  isolation: isolate;
}

button {
  font: inherit;
}

.backdrop,
.aurora-layer,
.constellation-layer,
.backdrop-overlay {
  position: fixed;
  inset: 0;
}

.backdrop {
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(4, 7, 12, 0.78) 10%, rgba(4, 7, 12, 0.14) 48%, rgba(4, 7, 12, 0.52) 100%),
    url("assets/bg.webp") center center / cover no-repeat;
  transform: scale(1.04);
}

.aurora-layer {
  z-index: 1;
  pointer-events: none;
  opacity: var(--aurora-strength);
  mix-blend-mode: screen;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 260ms ease;
}

.aurora-layer canvas,
.constellation-layer canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.constellation-layer {
  z-index: 3;
  pointer-events: none;
  opacity: 0.92;
  mix-blend-mode: normal;
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  transition: opacity 260ms ease;
}

.backdrop-overlay {
  z-index: 2;
  background:
    radial-gradient(circle at 76% 20%, rgba(132, 255, 213, 0.18), transparent 32%),
    radial-gradient(circle at 84% 28%, rgba(204, 184, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(2, 4, 9, 0.08), rgba(2, 4, 9, 0.52));
  pointer-events: none;
}

.page-shell {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100%;
  padding: 30px 34px 28px;
}

.topbar,
.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.identity {
  display: grid;
  gap: 4px;
}

.identity-tags {
  margin: 0;
  margin-top: 8px;
}

.identity-role,
.identity-tags,
.identity-line,
.eyebrow,
.focus-label,
.menu-kicker,
.menu-item-detail-meta,
.footer-note {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

.identity-role,
.eyebrow,
.focus-label,
.menu-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.identity-tags,
.identity-line,
.menu-item-detail-meta,
.footer-note,
.hero-text,
.focus-card p {
  color: var(--muted);
}

.brand-signature {
  font-style: italic;
  font-weight: 600;
}

.menu-toggle {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(7, 10, 18, 0.28);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-2px);
  background: rgba(7, 10, 18, 0.42);
}

.menu-label {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.menu-icon {
  display: grid;
  gap: 6px;
}

.menu-icon span {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--text);
  transform-origin: center;
  transition: transform 260ms ease, opacity 260ms ease;
}

body.menu-open .menu-icon span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

body.menu-open .menu-icon span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.stage {
  display: flex;
  align-items: end;
  min-height: 0;
  padding: 42px 0 34px;
}

.hero-copy {
  max-width: 760px;
  align-self: center;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-wrap: balance;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-text {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags span {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 23, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.88rem;
}

.focus-card {
  width: min(100%, 38rem);
  margin-top: 28px;
  align-self: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.focus-card h2 {
  margin: 10px 0 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 600;
  line-height: 0.95;
}

.focus-card p {
  margin: 0;
  line-height: 1.75;
}

.focus-text {
  max-width: none;
  font-size: clamp(0.74rem, 0.62rem + 0.45vw, 0.94rem);
  line-height: 1.7;
  text-transform: uppercase;
}

.footer-note {
  gap: 18px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 32px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 70% 22%, rgba(123, 255, 203, 0.15), transparent 22%),
    radial-gradient(circle at 78% 30%, rgba(208, 181, 255, 0.12), transparent 20%),
    rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: opacity;
  contain: paint;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

body.menu-open .aurora-layer {
  opacity: 0.42;
}

body.menu-open .constellation-layer {
  opacity: 0.28;
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer,
  .constellation-layer {
    opacity: 0.45;
  }
}

.menu-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76vw, 920px);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
  transform-origin: center;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 480ms cubic-bezier(0.2, 0.9, 0.22, 1), opacity 240ms ease;
}

body.menu-open .menu-rings {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.menu-rings span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  animation: drift 18s linear infinite;
}

.menu-rings span:nth-child(2) {
  inset: 10%;
  animation-duration: 12s;
  animation-direction: reverse;
}

.menu-rings span:nth-child(3) {
  inset: 22%;
  animation-duration: 10s;
}

.menu-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  width: min(820px, 100%);
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 38px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition: transform 420ms cubic-bezier(0.2, 0.9, 0.22, 1), opacity 240ms ease;
}

body.menu-open .menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.menu-panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -20% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(133, 255, 212, 0.24), transparent 68%);
  filter: blur(10px);
}

.menu-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}

.menu-close:hover,
.menu-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.menu-copy {
  position: relative;
  z-index: 1;
}

.menu-items {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.menu-item-block {
  display: grid;
  gap: 14px;
}

.menu-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms ease, color 220ms ease, letter-spacing 220ms ease;
}

.menu-item:hover,
.menu-item:focus-visible,
.menu-item.active {
  color: var(--text);
  transform: translateX(12px);
}

.menu-item-label {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.menu-item-meta {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-item-body {
  max-width: 56rem;
  padding: 0 0 10px 12px;
  color: var(--muted);
}

.menu-item-text,
.menu-item-detail-meta {
  margin: 0;
}

.menu-item-text {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.22rem, 1.5vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  white-space: normal;
}

.menu-item-issued-by {
  display: block;
  margin-top: 0.34em;
  font-size: 0.64em;
  line-height: 1.15;
  letter-spacing: 0;
}

.menu-item-break {
  display: block;
  height: 0.58em;
}

.menu-item-detail-meta {
  margin-top: 18px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
}

@keyframes drift {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .page-shell {
    padding: 22px;
  }

  .menu-panel {
    grid-template-columns: 1fr;
  }

  .stage {
    align-items: center;
  }

  .focus-card {
    max-width: 420px;
  }
}

@media (max-width: 720px) {
  :root {
    --menu-origin-x: calc(100% - 76px);
    --menu-origin-y: 72px;
  }

  .page-shell {
    padding: 18px;
  }

  .topbar,
  .footer-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .menu-toggle {
    align-self: flex-end;
    padding: 14px 18px 14px 22px;
  }

  .menu-label {
    font-size: 1rem;
  }

  .menu-icon span {
    width: 30px;
  }

  .stage {
    padding: 24px 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.6rem, 18vw, 5.6rem);
  }

  .hero-text {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .focus-card,
  .menu-panel {
    padding: 22px;
  }

  .menu-close {
    top: 18px;
    right: 18px;
    min-width: 76px;
    padding: 9px 14px;
  }

  .menu-overlay {
    padding: 18px;
  }

  .menu-item-label {
    font-size: clamp(2.4rem, 12vw, 4rem);
  }
}

@media (max-height: 760px) {
  .page-shell {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero-copy h1 {
    font-size: clamp(3.8rem, 10vh, 7rem);
  }

  .hero-text {
    margin-top: 18px;
  }

  .hero-tags {
    margin-top: 20px;
  }

  .focus-card {
    padding: 22px;
  }
}
