:root {
  --phase-ink: #050403;
  --phase-paper: #f3e8d5;
  --phase-muted: rgba(232, 218, 195, 0.7);
  --phase-line: rgba(214, 148, 79, 0.28);
  --phase-orange: #d16f2f;
  --phase-gold: #d8b06d;
  --phase-panel: rgba(13, 10, 8, 0.88);
}

html {
  background: var(--phase-ink);
}

body.current-phase-body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--phase-paper);
  background:
    radial-gradient(circle at 78% 8%, rgba(194, 96, 40, 0.14), transparent 30%),
    radial-gradient(circle at 12% 28%, rgba(93, 120, 134, 0.09), transparent 26%),
    linear-gradient(180deg, #050403 0%, #090704 42%, #030303 100%);
}

.current-phase-body .jd-site-header {
  background: rgba(5, 4, 3, 0.92);
  border-bottom-color: rgba(209, 111, 47, 0.28);
}

.current-phase-stage {
  position: relative;
  isolation: isolate;
}

.current-phase-stage::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
}

.phase-shell {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.phase-hero {
  position: relative;
  min-height: min(870px, calc(100vh - 92px));
  display: grid;
  align-items: center;
  padding: clamp(76px, 9vw, 132px) 0 clamp(72px, 8vw, 116px);
  border-bottom: 1px solid var(--phase-line);
  overflow: hidden;
}

.phase-hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 3, 3, 0.98) 0%, rgba(4, 3, 3, 0.9) 43%, rgba(4, 3, 3, 0.3) 76%, rgba(4, 3, 3, 0.86) 100%),
    url("../images/NewMainPageUCImage.png") 75% center / cover no-repeat;
  filter: saturate(0.7) contrast(1.05);
}

.phase-hero__atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(118deg, transparent 0 72px, rgba(219, 111, 45, 0.035) 73px 75px, transparent 76px 146px);
}

.phase-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.76fr);
  gap: clamp(46px, 7vw, 102px);
  align-items: center;
}

.phase-hero__copy {
  max-width: 720px;
}

.phase-kicker,
.phase-file-number,
.phase-production-status,
.phase-release-card__label,
.phase-symbol-panel__label,
.phase-artifact figcaption span,
.phase-sequence-grid article > span {
  margin: 0;
  color: var(--phase-gold);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
}

.phase-file-number {
  margin-top: 14px;
  color: rgba(242, 230, 208, 0.54);
}

.phase-hero h1 {
  max-width: 760px;
  margin: 22px 0 24px;
  color: #fffaf2;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 8.6vw, 8.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.84;
  overflow-wrap: normal;
  hyphens: none;
  word-break: keep-all;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.phase-lede {
  max-width: 650px;
  margin: 0;
  color: rgba(238, 226, 205, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.6vw, 1.38rem);
  line-height: 1.78;
}

.phase-status-row,
.phase-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.phase-status-row {
  margin-top: 30px;
}

.phase-status-row span,
.phase-symbols span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(209, 111, 47, 0.34);
  border-radius: 999px;
  background: rgba(209, 111, 47, 0.06);
  color: rgba(246, 235, 217, 0.82);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.phase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.phase-actions--stacked {
  display: grid;
  margin-top: 24px;
}

.phase-actions--centered {
  justify-content: center;
}

.phase-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(216, 176, 109, 0.36);
  border-radius: 2px;
  background: rgba(8, 6, 5, 0.62);
  color: #f5ead7;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.phase-button:hover,
.phase-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(239, 196, 124, 0.72);
  color: #fff;
}

.phase-button--solid {
  border-color: transparent;
  background: linear-gradient(112deg, #b64d24, #da8644 56%, #d9b06d);
  color: #160a05;
  box-shadow: 0 14px 34px rgba(182, 77, 36, 0.2);
}

.phase-button--pending {
  border-style: dashed;
  color: rgba(237, 223, 201, 0.55);
  cursor: default;
}

.phase-button--pending:hover {
  transform: none;
  border-color: rgba(216, 176, 109, 0.36);
  color: rgba(237, 223, 201, 0.55);
}

.phase-audio-status {
  min-height: 24px;
  margin-top: 14px;
  color: rgba(235, 221, 197, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.phase-cover {
  position: relative;
  width: min(100%, 510px);
  margin: 0 auto;
  padding: clamp(10px, 1.7vw, 18px);
  border: 1px solid rgba(216, 176, 109, 0.26);
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.66);
  transform: rotate(1.2deg);
}

.phase-cover__halo {
  position: absolute;
  inset: 10% -10% -12%;
  z-index: -1;
  background: radial-gradient(circle, rgba(220, 117, 48, 0.24), transparent 67%);
  filter: blur(30px);
}

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

.phase-cover figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 3px 2px;
  color: rgba(235, 221, 197, 0.62);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.phase-cover figcaption strong {
  color: var(--phase-gold);
  font-weight: 600;
}

.phase-release-band {
  padding: clamp(64px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--phase-line);
  background:
    linear-gradient(105deg, rgba(209, 111, 47, 0.12), transparent 48%),
    rgba(10, 8, 6, 0.9);
}

.phase-release-band__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
}

.phase-release-band h2,
.phase-section-heading h2,
.phase-return h2 {
  margin: 10px 0 18px;
  color: #fff8ed;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.1vw, 4.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
  text-wrap: balance;
}

.phase-release-band__grid > div:first-child > p:last-child,
.phase-section-heading > p,
.phase-return > p {
  max-width: 700px;
  margin: 0;
  color: var(--phase-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.03rem;
  line-height: 1.78;
}

.phase-release-card {
  padding: 28px;
  border: 1px solid rgba(216, 176, 109, 0.3);
  background:
    linear-gradient(180deg, rgba(216, 176, 109, 0.075), transparent 45%),
    rgba(4, 4, 4, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018), 0 22px 50px rgba(0, 0, 0, 0.26);
}

.phase-release-card > strong {
  display: block;
  margin-top: 10px;
  color: #fff4e3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  font-weight: 400;
}

.phase-spotify-embed {
  display: block;
  width: 100%;
  min-height: 352px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  background: #121212;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
}

.phase-section {
  padding-top: clamp(88px, 11vw, 154px);
  padding-bottom: clamp(88px, 11vw, 154px);
}

.phase-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: end;
  margin-bottom: clamp(46px, 7vw, 82px);
}

.phase-section-heading h2 {
  margin-bottom: 0;
}

.phase-meaning-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
}

.phase-meaning-grid blockquote,
.phase-symbol-panel {
  min-height: 300px;
  margin: 0;
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(216, 176, 109, 0.22);
  background: var(--phase-panel);
}

.phase-meaning-grid blockquote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(120deg, rgba(209, 111, 47, 0.12), transparent 55%),
    var(--phase-panel);
}

.phase-meaning-grid blockquote span {
  color: var(--phase-gold);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.phase-meaning-grid blockquote p {
  margin: 42px 0 0;
  color: #fff8ee;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.9rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.phase-symbol-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.phase-symbols {
  margin-top: 38px;
}

.phase-section--archive {
  border-block: 1px solid var(--phase-line);
  background:
    radial-gradient(circle at 50% 20%, rgba(213, 132, 65, 0.08), transparent 38%),
    linear-gradient(180deg, #080604, #030303);
}

.phase-artifact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}

.phase-artifact {
  grid-column: span 4;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(216, 176, 109, 0.18);
  background: rgba(1, 1, 1, 0.52);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.28);
  transform: none;
}

.phase-artifact:first-child {
  grid-column: 1 / -1;
  transform: none;
}

.phase-artifact:nth-child(4) {
  grid-column: 5 / span 4;
}

.phase-artifact:nth-child(3) {
  transform: translateY(24px);
}

.phase-artifact__mount {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 24px);
  background:
    radial-gradient(circle, rgba(216, 176, 109, 0.07), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 24px),
    #080706;
  overflow: hidden;
}

a.phase-artifact__mount {
  color: inherit;
  text-decoration: none;
}

.phase-artifact__mount--link {
  cursor: pointer;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.phase-artifact__mount--link:hover,
.phase-artifact__mount--link:focus-visible {
  outline: 2px solid var(--phase-orange);
  outline-offset: 3px;
  background:
    radial-gradient(circle, rgba(209, 111, 47, 0.15), transparent 62%),
    #080706;
  box-shadow: 0 0 0 1px rgba(209, 111, 47, 0.3);
  transform: translateY(-2px);
}

.phase-artifact:first-child .phase-artifact__mount {
  min-height: 410px;
}

.phase-artifact img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.54));
}

.phase-artifact--landscape img {
  max-width: 920px;
}

.phase-artifact figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px 3px;
}

.phase-artifact figcaption strong {
  color: rgba(246, 235, 217, 0.8);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.phase-artifact figcaption small {
  grid-column: 1 / -1;
  color: rgba(235, 221, 197, 0.54);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.phase-artifact:first-child figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
}

.phase-section-action {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.phase-cinema-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: 0;
  border: 1px solid rgba(216, 176, 109, 0.24);
  background: rgba(2, 2, 2, 0.8);
  overflow: hidden;
}

.phase-cinema-screen {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  align-self: center;
  display: grid;
  place-items: center;
  background: #000;
}

.phase-cinema-screen video,
.phase-cinema-screen iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
  object-fit: contain;
}

.phase-cinema-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 56px);
  background:
    linear-gradient(140deg, rgba(209, 111, 47, 0.1), transparent 48%),
    rgba(12, 9, 7, 0.96);
}

.phase-cinema-copy h3,
.phase-sequence-grid h3 {
  margin: 14px 0 18px;
  color: #fff7ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

.phase-cinema-copy p,
.phase-sequence-grid p {
  margin: 0;
  color: var(--phase-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.72;
}

.phase-section--sequence {
  border-block: 1px solid var(--phase-line);
  background: rgba(10, 8, 6, 0.76);
}

.phase-sequence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 176, 109, 0.22);
  border-bottom: 1px solid rgba(216, 176, 109, 0.22);
}

.phase-sequence-grid article {
  min-height: 330px;
  padding: clamp(30px, 3.5vw, 48px);
  border-right: 1px solid rgba(216, 176, 109, 0.18);
}

.phase-sequence-grid article:last-child {
  border-right: 0;
}

.phase-sequence-grid h3 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
}

.phase-sequence-grid a {
  display: inline-block;
  margin-top: 28px;
  color: var(--phase-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.phase-sequence-grid a:hover,
.phase-sequence-grid a:focus-visible {
  color: #fff0d8;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.phase-return {
  padding-top: clamp(100px, 14vw, 190px);
  padding-bottom: clamp(100px, 14vw, 190px);
  text-align: center;
}

.phase-return h2,
.phase-return > p {
  max-width: 850px;
  margin-inline: auto;
}

.phase-return h2 {
  margin-top: 14px;
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .phase-hero__grid,
  .phase-release-band__grid,
  .phase-section-heading,
  .phase-meaning-grid,
  .phase-cinema-grid {
    grid-template-columns: 1fr;
  }

  .phase-hero__copy {
    max-width: 780px;
  }

  .phase-cover {
    width: min(100%, 600px);
  }

  .phase-section-heading {
    align-items: start;
  }

  .phase-section-heading > p {
    max-width: 760px;
  }

  .phase-artifact {
    grid-column: span 6;
    transform: none;
  }

  .phase-artifact:nth-child(3) {
    transform: none;
  }

  .phase-artifact:nth-child(4) {
    grid-column: 4 / span 6;
  }

  .phase-cinema-screen,
  .phase-cinema-screen video,
  .phase-cinema-screen iframe {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .phase-sequence-grid {
    grid-template-columns: 1fr;
  }

  .phase-sequence-grid article {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 176, 109, 0.18);
  }

  .phase-sequence-grid article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 680px) {
  .phase-shell {
    width: min(100% - 28px, 1240px);
  }

  .phase-hero {
    min-height: auto;
    padding-top: 62px;
    padding-bottom: 72px;
  }

  .phase-hero__grid {
    gap: 50px;
  }

  .phase-hero h1 {
    margin-top: 18px;
    font-size: clamp(2.35rem, 12.5vw, 5.3rem);
    line-height: 0.88;
  }

  .phase-lede {
    font-size: 1rem;
    line-height: 1.68;
  }

  .phase-status-row {
    display: grid;
  }

  .phase-status-row span {
    justify-content: center;
    text-align: center;
  }

  .phase-actions,
  .phase-actions--centered {
    display: grid;
    width: 100%;
  }

  .phase-button {
    width: 100%;
  }

  .phase-cover {
    transform: none;
  }

  .phase-cover figcaption,
  .phase-artifact figcaption {
    display: grid;
  }

  .phase-artifact figcaption strong {
    text-align: left;
  }

  .phase-release-card,
  .phase-meaning-grid blockquote,
  .phase-symbol-panel,
  .phase-cinema-copy {
    padding: 24px;
  }

  .phase-meaning-grid blockquote,
  .phase-symbol-panel {
    min-height: 250px;
  }

  .phase-artifact-grid {
    grid-template-columns: 1fr;
  }

  .phase-artifact,
  .phase-artifact:first-child,
  .phase-artifact:nth-child(4) {
    grid-column: 1;
  }

  .phase-artifact__mount,
  .phase-artifact:first-child .phase-artifact__mount {
    min-height: 250px;
  }

  .phase-section-action {
    margin-top: 42px;
  }

  .phase-cinema-copy h3 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phase-button,
  .phase-cover {
    transition: none;
    transform: none;
  }
}
