:root {
  --ink: #25153d;
  --violet: #5936a2;
  --lime: #caff84;
  --line: #d5cedd;
  color: var(--ink);
  background: white;
  font: 400 1rem/1.5 "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, blockquote, p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: Manrope, system-ui, sans-serif; font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
img { display: block; max-width: 100%; height: auto; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 1320px); margin-inline: auto; }
.hero { position: relative; background: #190a2a url("/artwork/home/event-psd-hero.webp") 72% center / cover no-repeat; color: white; min-height: clamp(470px, 55.7vw, 860px); display: flex; align-items: center; }
.event-header { position: absolute; inset: 0 0 auto; display: flex; align-items: flex-start; justify-content: flex-end; z-index: 1; width: 100%; padding: clamp(16px, 1.4vw, 28px) 2.6%; }
.hero-copy .event-brand { display: block; width: fit-content; margin-bottom: clamp(.65rem, 1.1vw, 1rem); }
.event-brand img { width: clamp(116px, 13vw, 186px); }
.event-close {
  position: fixed;
  top: max(clamp(16px, 1.4vw, 28px), env(safe-area-inset-top));
  right: max(16px, 2.6%, env(safe-area-inset-right));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  padding: .55rem 1.3rem;
  color: var(--lime);
  background: #19092d;
  border: 1px solid #bbe090a6;
  border-radius: 6px;
  text-decoration: none;
  font-size: .875rem;
}
.event-close:hover { background: #253249; }
.hero-copy { width: min(39%, 570px); margin-left: 4.25%; padding-top: 4%; position: relative; }
.hero-copy .label { color: #73daed; font-size: clamp(1rem, 1.5vw, 1.5rem); margin-bottom: .5rem; }
h1 { font-size: clamp(2.4rem, 3.5vw, 4.5rem); }
h1 em { color: var(--lime); font-style: normal; display: block; }
.hero-copy .intro { margin-top: .75rem; max-width: 37ch; font-size: clamp(1rem, 1.58vw, 1.5rem); line-height: 1.35; }
.jump { color: var(--violet); font-weight: 600; text-decoration: none; display: inline-block; }
.jump:hover { text-decoration: underline; }
.hero-copy .jump { color: #f5e9ff; margin-top: clamp(1.6rem, 3.5vw, 3.6rem); }
.section-heading { text-align: center; border-block: 1px solid var(--line); padding: clamp(1rem, 2vw, 2rem) 1rem; }
.section-heading h2, .next h2 { color: var(--violet); font-size: clamp(1.9rem, 3.2vw, 3.5rem); }
.section-heading p { color: #414148; margin-top: .15rem; font-size: clamp(.95rem, 1.45vw, 1.35rem); }
.story { background: #faf8fc; }
.story-layout { display: grid; grid-template-columns: 49.4% 50.6%; max-width: 1600px; margin-inline: auto; }
.maya { align-self: stretch; padding-top: 15%; display: flex; flex-direction: column; justify-content: flex-start; }
.maya figcaption { padding-inline: 11%; }
.maya .label { color: #208397; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: clamp(.75rem, 1vw, 1rem); }
.maya blockquote { color: var(--violet); line-height: 1.22; font-size: clamp(1.2rem, 2vw, 2rem); max-width: 30ch; }
.maya img { width: 100%; mix-blend-mode: multiply; }
.story-steps { padding: 0 3% 3% 0; margin: 0; list-style: none; border-left: 1px solid #e1d5ee; }
.story-steps li { display: grid; grid-template-columns: 28% 72%; align-items: center; padding: .5rem 0; }
.story-steps li + li { margin-top: 5%; }
.story-steps li:last-child .story-copy { align-self: end; }
.story-copy { position: relative; padding: 0 .6rem 0 clamp(.8rem, 2.5vw, 2.5rem); }
.story-copy span, .phase-number { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--lime); color: #375023; font-weight: 700; }
.story-copy span { position: absolute; left: -1rem; top: -.3rem; }
.story-copy h3 { color: var(--violet); font-size: clamp(.94rem, 1.25vw, 1.3rem); text-transform: uppercase; }
.story-copy p { color: #42404a; font-size: clamp(.82rem, 1vw, 1.07rem); line-height: 1.35; margin-top: .35rem; }
.story-steps img { border-radius: 50%; width: 100%; }
.story-steps li:first-child > img,
.story-steps li:nth-child(3) > img { width: 75%; justify-self: center; transform: translateX(-24px); }
.story-steps li:nth-child(3) { transform: translateY(-20px); }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 auto; list-style: none; max-width: 1600px; }
.phase { padding: clamp(1.2rem, 3.7vw, 3.75rem) clamp(1rem, 4vw, 4.5rem) 2rem; }
.phase + .phase { border-left: 1px solid var(--line); }
.phase .label { color: var(--violet); text-transform: uppercase; font-size: .85rem; margin-top: .45rem; }
.phase-art { margin-block: .6rem 1rem; }
.phase-art img { width: 100%; }
.phase h3 { font-size: clamp(1rem, 1.45vw, 1.45rem); text-transform: uppercase; }
.phase h3 + p { font-size: .92rem; color: #42404a; margin-top: .45rem; }
.phase-demo { margin-top: .75rem; font-size: .82rem; }
.next { border-top: 1px solid var(--line); padding-block: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.next h2 { font-size: 1.5rem; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.button { color: white; background: var(--violet); padding: .6rem 1rem; border-radius: 100px; text-decoration: none; font-weight: 600; }
@media (max-width: 760px) {
  .hero { min-height: 520px; align-items: flex-end; background-image: linear-gradient(0deg, #180a28 10%, #180a28dd 34%, transparent 76%), url("/artwork/home/event-psd-hero.webp"); background-position: center, 82% center; }
  .hero-copy { width: min(88%, 420px); margin: 0 0 2.4rem 6%; padding: 0; }
  .hero-copy .jump { margin-top: 1.15rem; }
  .story-layout, .timeline { display: block; }
  .maya { padding-top: 1.5rem; max-width: 430px; margin: auto; }
  .maya img { max-height: 490px; width: auto; margin-inline: auto; }
  .story-steps { margin: 0 1rem 0 1.5rem; padding: 0 .3rem 1.5rem; }
  .story-steps li { grid-template-columns: 1fr 42%; }
  .story-copy { padding-left: 1.3rem; }
  .story-copy span { left: -1.35rem; width: 1.65rem; }
  .story-steps li:last-child .story-copy { align-self: center; }
  .phase { padding-inline: 6%; }
  .phase + .phase { border-left: 0; border-top: 1px solid var(--line); }
  .phase-art { max-width: 420px; }
}
@media print {
  .event-close, .jump, .next { display: none; }
  .hero { min-height: 300px; print-color-adjust: exact; }
  .story-steps li, .phase { break-inside: avoid; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  body:not(:has(:target)) > main {
    animation: event-page-open 260ms ease-out both;
  }
}

@keyframes event-page-open {
  from { opacity: 0; translate: 0 6px; }
  to { opacity: 1; translate: 0 0; }
}

@media screen and (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .hero {
    isolation: isolate;
    overflow: hidden;
    background-image: none;
  }

  .hero::before {
    position: absolute;
    z-index: -1;
    inset: -36px 0 0;
    background: url("/artwork/home/event-psd-hero.webp") 72% center / cover no-repeat;
    transform: translateY(var(--hero-shift, 0px));
    content: "";
  }
}
