*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
  color: #fff;
  overflow-x: hidden;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: 48px 24px;
}

.composition {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  width: 100%;
  animation: compositionLift 900ms cubic-bezier(0.22, 1, 0.36, 1) 3800ms forwards;
}

.logo {
  display: block;
  width: min(78vw, 520px);
  height: auto;
  max-height: 50vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

@media (min-width: 720px) {
  .logo {
    width: min(92vw, 1100px);
    max-height: 40vh;
  }
}

.meta {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: 90vw;
}

.line {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}

.locations {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.locations .dot {
  opacity: 0.5;
  font-size: 12px;
  line-height: 1;
}

.social {
  margin-top: 4px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-bottom: none;
  padding: 4px;
  opacity: 0.9;
  transition: opacity 200ms ease;
}

.social a:hover,
.social a:focus-visible {
  border-bottom: none;
  opacity: 1;
}

.social .icon {
  display: block;
}

a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: border-color 200ms ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: #fff;
  color: #fff;
  outline: none;
}

/* ---------- Intro sequence ---------- */

/* Logo: invisible until stage 2 */
.logo {
  opacity: 0;
  animation: introFade 800ms ease 3s forwards;
}

/* Tagline slot reserves the final tagline space so location reveals don't shift layout */
.tagline-slot {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11px;
}

.reveal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(48px, 11vw, 160px);
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  opacity: 0;
  pointer-events: none;
}

.reveal-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18em;
}

@media (min-width: 720px) {
  .reveal-stack {
    flex-direction: row;
    gap: 0.35em;
  }
}

/* Total reveal window = 400ms in + 500ms hold + 400ms out = 1300ms */
.reveal-london {
  animation: locationFlash 1300ms ease 200ms forwards;
}

.reveal-gc {
  animation: locationFlash 1300ms ease 1600ms forwards;
}

/* Details cascade — each starts hidden, animates in once */
.tagline,
.inquiries,
.email,
.social {
  opacity: 0;
}

.tagline {
  animation: detailRise 400ms ease 3900ms forwards;
}

.inquiries {
  margin-top: 32px;
  animation: detailRise 400ms ease 4200ms forwards;
}

.email {
  animation: detailRise 400ms ease 4400ms forwards;
}

.social {
  animation: detailRise 400ms ease 4800ms forwards;
}

@keyframes locationFlash {
  0%   { opacity: 0; }
  31%  { opacity: 1; } /* end of fade in (~400ms) */
  69%  { opacity: 1; } /* start of fade out (~900ms) */
  100% { opacity: 0; }
}

@keyframes introFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes compositionLift {
  from { transform: translateY(0); }
  to   { transform: translateY(-12vh); }
}

@keyframes detailRise {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .logo {
    width: 78vw;
    max-height: 45vh;
  }

  .meta {
    margin-top: 36px;
    gap: 14px;
  }

  .line {
    font-size: 13px;
    letter-spacing: 0.22em;
  }

  .stage {
    padding: 32px 20px;
  }

  .reveal {
    font-size: clamp(40px, 14vw, 90px);
    letter-spacing: 0.14em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    display: none;
  }

  .composition {
    animation: none;
    transform: translateY(-12vh);
  }

  .logo,
  .tagline,
  .inquiries,
  .email,
  .social {
    animation: introFade 600ms ease 0ms forwards;
    transform: none;
  }
}
