:root {
  --purple: #5237b3;
  --purple-deep: #432d9b;
  --lavender: #ca99f7;
  --lavender-pale: #e5dbf7;
  --ink: #25212f;
  --white: #fff;
  --grid: min(1200px, calc(100vw - 80px));
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--purple);
  font-family: "Trebuchet MS", "Avenir Next", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  color: var(--purple);
  background: #fff;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 50%;
  display: flex;
  width: var(--grid);
  height: 108px;
  align-items: center;
  justify-content: flex-end;
  transform: translateX(-50%);
}

.brand {
  width: 200px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(350px, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: 24px;
  padding: 116px max(40px, calc((100vw - 1200px) / 2)) 70px;
  isolation: isolate;
  background: var(--purple);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 77% 20%, rgb(202 153 247 / 12%), transparent 24%),
    radial-gradient(circle at 17% 80%, rgb(202 153 247 / 8%), transparent 30%);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}

.hero h1 {
  max-width: 590px;
  margin: 0 0 38px;
  font-size: clamp(46px, 4.2vw, 68px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.03;
}

.hero h1 strong,
.hero h1 span {
  display: block;
}

.hero h1 strong {
  margin-bottom: 8px;
  font-size: 1.12em;
  font-weight: 800;
}

.button {
  display: inline-flex;
  min-width: 168px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button--accent {
  color: #fff;
  background: var(--lavender);
  box-shadow: 0 14px 38px rgb(32 16 80 / 18%);
}

.button--light {
  color: var(--purple);
  background: #fff;
  box-shadow: 0 10px 30px rgb(33 18 92 / 12%);
}

.button--dark {
  color: #fff;
  background: var(--purple);
}

.device-panel {
  width: 314px;
  margin-top: 28px;
  padding: 15px 18px 16px;
  border: 2px solid rgb(255 255 255 / 70%);
  border-radius: 20px;
}

.device-panel p {
  margin: 0 0 11px;
  font-size: 15px;
  text-align: center;
}

.device-panel div {
  display: flex;
  gap: 12px;
}

.device-button {
  flex: 1;
  min-height: 39px;
  border: 0;
  border-radius: 11px;
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  min-height: 590px;
}

.hero__media {
  position: absolute;
  top: 50%;
  left: 48%;
  width: min(42vw, 630px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 32px 72px rgb(34 17 92 / 36%);
  transform: translate(-50%, -49%);
}

.hero__media img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translateY(-8%);
}

.hero__orb {
  position: absolute;
  z-index: 2;
  top: 13%;
  right: 0;
  width: 154px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #8d86e8, #d39af1);
  box-shadow: 0 20px 50px rgb(34 17 92 / 20%);
}

.century {
  position: absolute;
  z-index: 3;
  right: max(8px, calc((100vw - 1320px) / 2));
  bottom: 78px;
  color: #fff;
  font-size: clamp(90px, 10vw, 150px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.8;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.about {
  display: grid;
  min-height: 670px;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  padding: 120px max(40px, calc((100vw - 1200px) / 2));
  color: var(--ink);
  background: #fff;
}

.section-number {
  margin: 0 0 26px;
  color: var(--lavender);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.about h2,
.section-heading h2,
.closing h2 {
  margin: 0;
  font-size: clamp(48px, 5.7vw, 78px);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.about__text > p:not(.section-number) {
  max-width: 610px;
  margin: 36px 0 30px;
  color: #635e6b;
  font-size: 20px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 2px solid currentColor;
  color: var(--purple);
  background: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link svg {
  width: 24px;
  fill: currentColor;
}

.about__quote {
  position: relative;
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 44px;
  border-radius: 50% 50% 24px 24px;
  color: #fff;
  background: linear-gradient(145deg, #8d86e8, #ca99f7);
}

.about__quote::after {
  position: absolute;
  top: -15%;
  right: -18%;
  width: 70%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 50%;
  content: "";
}

.about__quote span {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.about__quote p {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.exhibits {
  padding: 130px max(40px, calc((100vw - 1200px) / 2)) 150px;
  background:
    radial-gradient(circle at 25% 34%, rgb(202 153 247 / 10%), transparent 25%),
    var(--purple);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 70px;
}

.section-heading .section-number {
  grid-column: 1 / -1;
}

.section-heading p:last-child {
  width: 300px;
  margin: 0 0 7px 40px;
  color: rgb(255 255 255 / 66%);
  line-height: 1.55;
}

.exhibit-list {
  display: grid;
  gap: 30px;
}

.exhibit {
  display: grid;
  min-height: 530px;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 40px;
}

.exhibit--left {
  grid-template-columns: 1.18fr 0.82fr;
}

.exhibit--left .exhibit__copy {
  order: 2;
}

.exhibit--left .exhibit__image {
  order: 1;
}

.exhibit__copy {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.exhibit__index {
  margin: 0 0 24px;
  color: var(--lavender);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.exhibit h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.exhibit__meta {
  margin: 20px 0 30px;
  color: rgb(255 255 255 / 70%);
  font-size: 17px;
}

.exhibit__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 48% 48% 22px 22px;
  background: transparent;
  cursor: pointer;
  transition: transform 300ms ease, filter 300ms ease;
}

.exhibit__image:hover {
  filter: brightness(1.06);
  transform: translateY(-6px);
}

.exhibit__image img {
  display: block;
  width: 100%;
  height: auto;
}

.closing {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  padding: 120px max(40px, calc((100vw - 1200px) / 2));
  color: var(--ink);
  background: var(--lavender-pale);
}

.closing h2 {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.closing .button {
  position: relative;
  z-index: 2;
  margin-top: 42px;
}

.closing__mark {
  position: absolute;
  right: -30px;
  bottom: -65px;
  color: rgb(82 55 179 / 12%);
  font-size: min(32vw, 430px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.footer {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 70px max(40px, calc((100vw - 1200px) / 2));
  color: #fff;
  background: #29272d;
}

.footer strong {
  font-size: 22px;
  letter-spacing: 0.16em;
}

.footer p,
.footer span {
  color: rgb(255 255 255 / 60%);
  font-size: 14px;
}

.footer__credits {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__credits span {
  max-width: 240px;
}

.footer__credits img {
  width: 78px;
  height: 54px;
  object-fit: contain;
}

.modal {
  width: min(1050px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 40px 120px rgb(25 13 68 / 48%);
}

.modal[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: modal-in 220ms ease-out;
}

.modal::backdrop {
  background: rgb(26 15 68 / 82%);
  backdrop-filter: blur(8px);
}

.modal__close {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--purple);
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 24px rgb(41 23 98 / 18%);
}

.modal__close svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.modal__media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 28px 0 0 28px;
  background: var(--purple);
}

.modal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__media span {
  position: absolute;
  bottom: 24px;
  left: 28px;
  padding: 8px 12px;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.modal__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 52px;
}

.modal__place {
  margin: 0 0 18px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.modal dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 35px 0;
}

.modal dl div {
  padding-top: 13px;
  border-top: 1px solid #ded9e8;
}

.modal dt {
  margin-bottom: 6px;
  color: #87818d;
  font-size: 12px;
}

.modal dd {
  margin: 0;
  font-weight: 700;
}

.modal__content > p:not(.modal__place, .modal__note) {
  color: #68626d;
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
}

.modal__note {
  margin: 22px 0 0;
  color: #918a98;
  font-size: 12px;
  line-height: 1.45;
}

.modal--project[open] {
  grid-template-columns: 1.2fr 0.8fr;
}

.project-film {
  display: grid;
  min-height: 580px;
  place-content: center;
  color: #fff;
  background:
    linear-gradient(rgb(48 24 114 / 28%), rgb(48 24 114 / 70%)),
    url("/public/assets/vr-museum.png") center / cover;
  text-align: center;
}

.project-film__play {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  place-items: center;
  padding-left: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 25px;
}

.project-film p {
  font-weight: 800;
  letter-spacing: 0.2em;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 26px;
  bottom: 26px;
  max-width: 360px;
  padding: 16px 20px;
  border-radius: 14px;
  color: var(--purple);
  background: #fff;
  box-shadow: 0 18px 60px rgb(22 10 67 / 30%);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@media (max-width: 980px) {
  :root {
    --grid: calc(100vw - 48px);
  }

  .hero {
    min-height: 900px;
    grid-template-columns: 1fr;
    align-items: start;
    padding: 125px 24px 80px;
  }

  .hero__content {
    padding-top: 430px;
  }

  .hero__visual {
    position: absolute;
    top: 100px;
    right: 24px;
    left: 24px;
    min-height: 440px;
  }

  .hero__media {
    left: 56%;
    width: min(72vw, 500px);
  }

  .century {
    top: 230px;
    right: 15px;
    bottom: auto;
    font-size: 88px;
  }

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

  .about__quote {
    min-height: 360px;
  }

  .exhibit,
  .exhibit--left {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .exhibit--left .exhibit__copy {
    order: 1;
  }

  .exhibit--left .exhibit__image {
    order: 2;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal[open],
  .modal--project[open] {
    grid-template-columns: 1fr;
  }

  .modal__media,
  .project-film {
    min-height: 340px;
    border-radius: 28px 28px 0 0;
  }
}

@media (max-width: 640px) {
  :root {
    --grid: calc(100vw - 36px);
  }

  .site-header {
    height: 82px;
  }

  .brand {
    width: 156px;
  }

  .hero {
    min-height: 810px;
    padding: 84px 18px 54px;
  }

  .hero__visual {
    top: 62px;
    right: 8px;
    left: 8px;
    min-height: 340px;
  }

  .hero__media {
    left: 56%;
    width: 320px;
  }

  .hero__orb {
    top: 5%;
    right: 2%;
    width: 92px;
  }

  .century {
    top: 190px;
    right: -8px;
    font-size: 70px;
  }

  .hero__content {
    padding-top: 345px;
  }

  .hero h1 {
    margin-bottom: 24px;
    font-size: 39px;
  }

  .device-panel {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .about,
  .exhibits,
  .closing {
    padding: 82px 18px;
  }

  .about {
    gap: 50px;
  }

  .about h2,
  .section-heading h2,
  .closing h2 {
    font-size: 45px;
  }

  .about__text > p:not(.section-number) {
    font-size: 17px;
  }

  .about__quote {
    min-height: 310px;
    padding: 30px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p:last-child {
    width: auto;
    margin: 22px 0 0;
  }

  .exhibit,
  .exhibit--left {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 56px;
  }

  .exhibit__copy,
  .exhibit--left .exhibit__copy {
    order: 2;
    padding: 24px 8px 0;
  }

  .exhibit__image,
  .exhibit--left .exhibit__image {
    order: 1;
    border-radius: 45% 45% 18px 18px;
  }

  .exhibit h3 {
    font-size: 38px;
  }

  .closing {
    min-height: 480px;
  }

  .footer {
    padding: 60px 18px;
  }

  .footer__credits {
    flex-wrap: wrap;
  }

  .footer__credits span {
    flex-basis: 100%;
  }

  .modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    border-radius: 20px;
  }

  .modal__media,
  .project-film {
    min-height: 260px;
    border-radius: 20px 20px 0 0;
  }

  .modal__content {
    padding: 36px 24px;
  }

  .modal dl {
    grid-template-columns: 1fr;
  }

  .modal__actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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