/* ---- Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  /* snap each full screen into view as the user scrolls */
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
}

/* the full screens that snap */
.hero,
.events,
.about {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body {
  background-color: #000;
  color: #fff;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Footer (sits at the bottom of the About screen) ---- */
.footer {
  display: flex;
  align-items: center;
  /* logo pinned far left, social links pushed far right */
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
  /* horizontal alignment comes from the section's own padding */
  padding-top: clamp(1.5rem, 4vw, 3rem);
}

.footer-social-group {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}

.footer-social {
  color: #fff;
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.footer-social:hover {
  opacity: 0.6;
}

.footer-social svg {
  width: clamp(17px, 1.8vw, 23px);
  height: auto;
  display: block;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  display: block;
  height: clamp(48px, 5.2vw, 76px);
  width: auto;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.25rem 2rem;
}

.hero-title {
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

/* each group stays on one line; the only allowed break is between
   the two groups, i.e. right after "SF" */
.hero-title .nb {
  white-space: nowrap;
}

/* inline images sit on the text baseline and scale with the heading */
.inline-img {
  display: inline-block;
  height: 0.95em;
  width: auto;
  vertical-align: -0.18em;
  object-fit: cover;
  margin: 0 0.06em;
}

.inline-img.rounded {
  border-radius: 0.18em;
  aspect-ratio: 4 / 3;
}

.inline-img.circle {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  /* pull "the" and "World" a touch closer around the globe image */
  margin: 0 0.01em;
}

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  color: #f2f2f2;
}

/* small static down-arrow centered at the bottom hinting that the page scrolls */
.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1.5rem, 4vw, 3rem);
  color: #fff;
}

.scroll-hint svg {
  display: block;
  width: clamp(21px, 3vw, 51px);
  height: auto;
}

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
  .hero-title {
    max-width: 100%;
  }
}

/* ---- Events screen ---- */
.events {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 5rem);
}

.events-title {
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.01em;
}

.events-title b {
  font-weight: 700;
  /* Instrument Serif has no real bold, so thicken the strokes a touch */
  -webkit-text-stroke: 0.018em currentColor;
}

.events-sub {
  margin-top: clamp(0.8rem, 1.8vw, 1.3rem);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  color: #f2f2f2;
}

/* the staggered flow of event cards + arrows */
.flow {
  /* fill the space under the heading; the middle column (London card)
     stays dead-center because the two side columns are equal (1fr) */
  flex: 1;
  margin-top: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
}

.flow-side {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
}

.flow-left {
  justify-content: flex-start;
}

.flow-right {
  justify-content: flex-start;
}

.event-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
  flex-shrink: 0;
}

/* the middle (June 19 / London) card sits higher */
.event-item.raised {
  transform: translateY(clamp(-6rem, -9vw, -3rem));
}

.event-date {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
}

.event-card {
  width: clamp(140px, 19vw, 270px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  border: 0.5px solid #fff;
  display: block;
}

.arrow {
  color: #fff;
  width: clamp(70px, 10vw, 170px);
  height: auto;
  flex-shrink: 0;
}

.next-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.next-stop-label {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 600;
  white-space: nowrap;
}

/* buttons are always white; hover inverts to black */
.btn {
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-size: clamp(0.95rem, 1.9vw, 1.25rem);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #000;
  color: #fff;
}

/* button sitting under the heading + subtitle */
.events-head .btn {
  display: inline-block;
  margin-top: clamp(0.6rem, 1.5vw, 1rem);
}

/* a touch more breathing room between an event image and its button */
.event-item .btn {
  margin-top: clamp(0.6rem, 1.5vw, 1rem);
}

/* ---- About / Siblings screen ---- */
.about {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* smaller bottom padding pushes the footer lower in the screen */
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 5rem) clamp(1rem, 2.5vw, 1.75rem);
}

/* the text + photos row fills the screen; the footer sits beneath it */
.about-main {
  flex: 1;
  display: flex;
  /* heading sits at the top, same as the other screens */
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2rem, 5vw, 5rem);
}

.about-text {
  max-width: 48%;
}

/* match the subheading characteristics from screens 2 & 3 (.events-sub) */
.about-para {
  margin-top: clamp(0.9rem, 2.2vw, 1.6rem);
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  color: #f2f2f2;
}

/* spacing between the two paragraphs */
.about-para + .about-para {
  margin-top: 1.3rem;
}

.about-photos {
  position: relative;
  flex-shrink: 0;
  /* narrower container = cards closer together horizontally */
  width: clamp(255px, 29vw, 420px);
  height: clamp(340px, 38vw, 520px);
  /* nudge the whole pair to the left */
  margin-right: clamp(3rem, 10vw, 11rem);
  /* keep the photos vertically centered while the heading stays at top */
  align-self: center;
  /* nudge the pair a bit lower in the screen */
  transform: translateY(clamp(1.25rem, 4vw, 3.25rem));
}

.photo-card {
  position: absolute;
  width: clamp(165px, 18vw, 255px);
  height: auto;
  border: 1.5px solid #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.photo-back {
  /* upper photo nudged down toward the lower one */
  top: clamp(2rem, 6vw, 5rem);
  /* shifted a bit further right */
  right: clamp(-3rem, -3vw, -1.5rem);
  transform: rotate(7deg);
  z-index: 1;
}

.photo-front {
  /* lower photo nudged up toward the upper one */
  bottom: clamp(2rem, 6vw, 5rem);
  left: 0;
  transform: rotate(-5deg);
  z-index: 2;
}

/* ---- Events: mobile ---- */
@media (max-width: 768px) {
  .flow {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }

  .flow-side {
    flex-direction: column;
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }

  .event-item.raised {
    transform: none;
  }

  .event-card {
    width: min(70vw, 320px);
  }

  /* point the connector arrows downward when stacked */
  .arrow {
    width: 60px;
    transform: rotate(72deg);
  }

  /* about screen stacks: text on top, photos below */
  .about-main {
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  .about-text {
    max-width: 100%;
  }

  .about-photos {
    width: min(85vw, 420px);
    height: min(70vw, 360px);
    align-self: center;
  }

  .photo-card {
    width: min(45vw, 220px);
  }
}
