:root {
  --night-deep: #050817;
  --night-blue: #0b1735;
  --night-light: #152b55;
  --gold: #d8b96a;
  --gold-light: #f0dfab;
  --text: #f7f4ea;
  --text-muted: #c8cfdd;
  --line: rgba(240, 223, 171, .24);
  --shadow: rgba(0, 0, 0, .44);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night-deep);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(216, 185, 106, .08), transparent 30rem),
    linear-gradient(180deg, #03050f 0%, var(--night-deep) 44%, #071024 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--gold-light);
  color: #071024;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 95vh;
  min-height: 95svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
}

.hero__shade,
.ending__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(3, 5, 15, .88), rgba(3, 5, 15, .42) 45%, rgba(3, 5, 15, .12)),
    linear-gradient(0deg, var(--night-deep), transparent 30%);
}

.hero__content {
  width: min(1180px, calc(100% - 40px));
  min-height: 95vh;
  min-height: 95svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px 0 74px;
  transform: translateY(4.5vh);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.ending h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 500;
  line-height: 1.34;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(2.75rem, 7.6vw, 6.55rem);
  letter-spacing: .035em;
  line-height: 1.42;
  text-shadow: 0 12px 38px var(--shadow);
}

.hero-title span {
  display: block;
}

.hero-title span + span {
  margin-top: .08em;
  padding-left: .42em;
}

.hero__lead {
  margin: 24px 0 0;
  color: var(--gold-light);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.hero__note {
  max-width: 510px;
  margin: 22px 0 0;
  color: var(--text-muted);
}

.hero__scroll {
  position: absolute;
  right: 34px;
  bottom: 28px;
  padding-bottom: 42px;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold-light), transparent);
}

.section {
  padding: clamp(92px, 11vw, 154px) 0;
}

.section--quiet {
  padding-top: calc(clamp(92px, 11vw, 154px) + 40px);
  background: linear-gradient(180deg, rgba(11, 23, 53, .32), rgba(5, 8, 23, 0));
}

.section--river {
  background: linear-gradient(180deg, rgba(7, 18, 41, .15), rgba(21, 43, 85, .28));
}

.section__inner {
  width: min(1220px, calc(100% - 40px));
  margin: 0 auto;
}

.gallery-section .section__inner {
  width: min(1360px, calc(100% - 28px));
}

.section__inner--narrow {
  width: min(820px, calc(100% - 40px));
}

.intro {
  padding-top: clamp(72px, 10vw, 128px);
}

.intro__inner {
  width: min(740px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 2;
  text-align: center;
}

.intro__inner p {
  margin: 0;
}

.intro__inner p + p {
  margin-top: 42px;
}

.section-heading {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(34px, 6vw, 70px);
  padding: 18px 34px 18px 0;
}

.section-heading h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2rem, 4vw, 4rem);
}

.section-heading > p:not(.section-kicker) {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--text-muted);
}

.firework-heading::before,
.firework-heading::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
  border-radius: 999px;
}

.firework-heading::before {
  top: 16px;
  right: -6px;
  width: 10px;
  height: 10px;
  background: var(--gold-light);
  box-shadow: 0 0 18px rgba(240, 223, 171, .65);
}

.firework-heading::after {
  top: -2px;
  right: -26px;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(240, 223, 171, .48);
  transform: scale(.2);
}

.firework-heading.is-visible::before {
  animation: firework-dot 1.25s ease-out both;
}

.firework-heading.is-visible::after {
  animation: firework-ring 1.55s ease-out both;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .84fr);
  gap: clamp(34px, 5.2vw, 76px);
  align-items: center;
}

.split--reverse {
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.05fr);
}

.split--reverse .photo-frame {
  order: 2;
}

.photo-frame {
  margin: 0;
}

.photo-frame img {
  width: 100%;
  height: auto;
  background: #071024;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.photo-frame figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: .86rem;
}

.text-block {
  color: var(--text-muted);
}

.text-block .lead {
  margin-top: 0;
  color: var(--text);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.75;
}

.schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(42px, 7vw, 86px);
  border: 1px solid var(--line);
  background: var(--line);
}

.schedule article {
  min-height: 170px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(7, 18, 41, .78);
}

.schedule span {
  color: var(--gold-light);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.45rem;
}

.schedule h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

.schedule p {
  margin: 0;
  color: var(--text-muted);
}

.wide-photo {
  margin-bottom: clamp(48px, 7vw, 92px);
}

.wide-photo img {
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 45%;
}

.prose {
  width: min(740px, 100%);
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1.02rem, 1.25vw, 1.1rem);
  line-height: 1.98;
}

.prose p {
  margin: 0;
}

.prose p + p {
  margin-top: 1.42em;
}

.prose--center {
  text-align: center;
}

.nh-program-section {
  background:
    linear-gradient(180deg, rgba(7, 18, 41, .24), rgba(5, 8, 23, .08)),
    radial-gradient(circle at 82% 18%, rgba(216, 185, 106, .09), transparent 24rem);
}

.nh-program-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3.5vw, 44px);
}

.nh-program-day {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(7, 18, 41, .72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .22);
}

.nh-program-day h3 {
  margin: 0;
  padding: 18px clamp(20px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(216, 185, 106, .2), rgba(216, 185, 106, .05));
  color: var(--gold-light);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.28rem, 2vw, 1.7rem);
  font-weight: 500;
}

.nh-program-list {
  margin: 0;
}

.nh-program-item {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding: 16px clamp(20px, 3vw, 30px);
}

.nh-program-item + .nh-program-item {
  border-top: 1px solid rgba(240, 223, 171, .16);
}

.nh-program-item dt {
  color: var(--gold-light);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.18rem;
  font-weight: 600;
  white-space: nowrap;
}

.nh-program-item dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.7;
}

.nh-program-note {
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 46px);
}

.gallery__item--wide {
  grid-column: 1 / -1;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery__item--wide img {
  aspect-ratio: 16 / 8;
}

.gallery__item:nth-child(4) img {
  object-fit: contain;
  padding: 18px;
}

.venue-map {
  margin-top: clamp(54px, 8vw, 98px);
  padding-top: clamp(28px, 5vw, 52px);
  border-top: 1px solid var(--line);
}

.venue-map h3 {
  margin: 0 0 22px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.7vw, 2.4rem);
  font-weight: 500;
}

.map-svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: #071229;
}

.map-label {
  fill: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.map-label--small {
  font-size: 20px;
}

.map-label--river {
  fill: #cdefff;
}

.map-launches circle {
  fill: var(--gold-light);
  filter: drop-shadow(0 0 8px rgba(240, 223, 171, .72));
}

.map-fireworks circle {
  fill: rgba(247, 244, 234, .92);
  stroke: #f7f4ea;
  stroke-width: 2;
}

.map-fireworks path {
  fill: none;
  stroke: #e85a5a;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 5px rgba(232, 90, 90, .5));
}

.map-label--bridge-horizontal {
  fill: var(--gold-light);
  paint-order: stroke;
  stroke: #071229;
  stroke-width: 5px;
}

.note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: .9rem;
}

.ending {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.ending img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
}

.ending__shade {
  background:
    linear-gradient(180deg, rgba(5, 8, 23, .28), rgba(5, 8, 23, .92)),
    radial-gradient(circle at center, rgba(5, 8, 23, .2), rgba(5, 8, 23, .72));
}

.ending__content {
  width: min(900px, calc(100% - 40px));
  padding: 90px 0;
}

.ending h2 {
  font-size: clamp(2.35rem, 5.7vw, 5.2rem);
  text-shadow: 0 16px 42px var(--shadow);
}

.ending__signature {
  margin: 26px 0 0;
  color: var(--text-muted);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(.96rem, 1.3vw, 1.18rem);
  line-height: 1.9;
  text-shadow: 0 10px 28px var(--shadow);
}

.return-link {
  display: inline-block;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid rgba(240, 223, 171, .72);
  color: var(--gold-light);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

.return-link:hover,
.return-link:focus-visible {
  background: var(--gold-light);
  color: #071024;
}

@keyframes firework-dot {
  0% {
    opacity: 0;
    transform: scale(.5);
  }
  22% {
    opacity: .9;
  }
  58% {
    opacity: .35;
  }
  100% {
    opacity: 0;
    transform: scale(8);
  }
}

@keyframes firework-ring {
  0% {
    opacity: 0;
    transform: scale(.2);
  }
  24% {
    opacity: .65;
  }
  58% {
    opacity: .24;
  }
  100% {
    opacity: 0;
    transform: scale(1.38);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__image {
    animation: hero-breath 18s ease-out both;
  }

  @keyframes hero-breath {
    from {
      transform: scale(1.02);
    }
    to {
      transform: scale(1.08);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .firework-heading::before,
  .firework-heading::after {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 76svh;
  }

  .hero__image {
    object-position: 62% 42%;
  }

  .hero__shade {
    background:
      linear-gradient(90deg, rgba(3, 5, 15, .86), rgba(3, 5, 15, .4) 72%, rgba(3, 5, 15, .1)),
      linear-gradient(0deg, var(--night-deep), transparent 36%);
  }

  .hero__content {
    width: min(100% - 30px, 720px);
    min-height: 76svh;
    padding: 58px 0 82px;
    transform: none;
  }

  .hero__scroll {
    right: 18px;
  }

  .section__inner,
  .section__inner--narrow,
  .intro__inner,
  .ending__content {
    width: calc(100% - 30px);
  }

  .gallery-section .section__inner {
    width: calc(100% - 24px);
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .photo-frame {
    order: initial;
  }

  .schedule,
  .nh-program-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .schedule article {
    min-height: 0;
  }

  .gallery__item--wide {
    grid-column: auto;
  }

  .gallery__item img,
  .gallery__item--wide img {
    aspect-ratio: auto;
  }

  .gallery__item:nth-child(4) img {
    padding: 12px;
  }

  .section-heading {
    padding-right: 22px;
  }

  .map-label {
    font-size: 30px;
  }

  .map-label--small {
    font-size: 24px;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.72rem);
    line-height: 1.48;
  }

  .hero-title span + span {
    padding-left: .28em;
  }

  .intro__inner {
    text-align: left;
  }

  .section {
    padding: 82px 0;
  }

  .section--quiet {
    padding-top: 122px;
  }

  .section__inner,
  .section__inner--narrow,
  .intro__inner,
  .ending__content {
    width: calc(100% - 28px);
  }

  .prose {
    line-height: 1.92;
  }

  .section-heading h2 {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .nh-program-item {
    grid-template-columns: 4.5em minmax(0, 1fr);
    gap: 12px;
    padding: 14px 18px;
  }

  .nh-program-day h3 {
    padding: 16px 18px;
  }

  .hero__note br {
    display: none;
  }
}
