:root {
  --red: #a71d1f;
  --red-dark: #7e1416;
  --bg: #ffffff;
  --ink: #111111;
  --partners-h: clamp(64px, 11vh, 120px);
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Layout: desktop/landscape = one screen ---------- */
.landing {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  user-select: none;
  pointer-events: none;
  animation: heroIn 1.2s cubic-bezier(.2, .7, .2, 1) both;
}

.actions {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 9vw, 9rem);
  align-items: baseline;
  padding: clamp(.4rem, 1.5vh, 1.2rem) 1rem clamp(.4rem, 1.2vh, 1rem);
}

.actions__link {
  appearance: none;
  background: none;
  border: 0;
  padding: .1em 0;
  margin: 0;
  cursor: pointer;
  color: var(--red);
  text-decoration: none;
  text-transform: uppercase;
  font-family: inherit;
  font-weight: 900;
  font-stretch: 80%;
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(1.6rem, 3.4vw, 3.4rem);
  position: relative;
  transition: color .2s ease, transform .2s ease;
  animation: fadeUp .8s ease backwards;
}
.actions__link:nth-child(1) { animation-delay: .5s; }
.actions__link:nth-child(2) { animation-delay: .65s; }
.actions__link:nth-child(3) { animation-delay: .8s; }

.actions__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.08em;
  height: .08em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.actions__link:hover,
.actions__link:focus-visible { color: var(--red-dark); transform: translateY(-2px); }
.actions__link:hover::after,
.actions__link:focus-visible::after { transform: scaleX(1); }
.actions__link:focus-visible { outline: 2px solid var(--red); outline-offset: 6px; }

/* ---------- Partner logos ---------- */
.partners {
  flex: 0 0 auto;
  height: var(--partners-h);
  padding: 0 clamp(12px, 1.5vw, 28px) clamp(12px, 2vh, 24px);
}

.partners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 40px);
}

.partners__list li {
  flex: 0 1 auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
}

.partners__list img {
  max-height: 72%;
  width: auto;
  object-fit: contain;
}

/* taller logos (stacked marks) get a bit more room */
.partners__list img[src*="esplanade"],
.partners__list img[src*="merrigong"] { max-height: 100%; }
.partners__list img[src*="partner-black"] { max-height: 42%; }

.partners__text-logo {
  flex-direction: column;
  align-items: center !important;
  justify-content: flex-end !important;
  padding-bottom: 2%;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.15;
}
.partners__text-logo .jc-top {
  color: #e2231a;
  font-weight: 700;
  font-variant: small-caps;
  text-transform: none;
  font-size: clamp(.6rem, 1vw, 1rem);
  letter-spacing: .02em;
}
.partners__text-logo .jc-bottom {
  color: #111;
  font-weight: 800;
  font-size: clamp(.5rem, .8vw, .82rem);
  letter-spacing: .03em;
}

/* ---------- Tablet / portrait: stack naturally ---------- */
@media (max-aspect-ratio: 4/3) {
  .landing { height: auto; min-height: 0; }

  .hero__img {
    flex: none;
    height: auto;
    padding: clamp(20px, 5vw, 40px) clamp(16px, 5vw, 40px) 0;
  }

  .actions {
    gap: clamp(1.5rem, 8vw, 5rem);
    padding: 1.25rem 16px 2rem;
  }

  .actions__link { font-size: clamp(1.5rem, 7vw, 3rem); }

  .partners {
    height: auto;
    padding: 1.5rem 16px 2rem;
    border-top: 1px solid #eee;
  }

  .partners__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 1.25rem;
    align-items: center;
  }

  .partners__list li {
    height: 64px;
    align-items: center;
  }
  .partners__list img { max-height: 100%; max-width: 100%; }
  .partners__list img[src*="partner-black"] { max-height: 36px; }
  .partners__text-logo { padding-bottom: 0; }
  .partners__text-logo .jc-top { font-size: .95rem; }
  .partners__text-logo .jc-bottom { font-size: .62rem; }
}

@media (max-width: 480px) {
  .partners__list { grid-template-columns: repeat(2, 1fr); }
  .actions { gap: 1.4rem; }
}

/* very short landscape screens (phones sideways) */
@media (max-height: 520px) and (min-aspect-ratio: 4/3) {
  :root { --partners-h: 56px; }
  .actions__link { font-size: clamp(1.2rem, 3vw, 2rem); }
}

/* ---------- Trailer modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 0, 0, .86);
  animation: fade .25s ease both;
}

.modal__box {
  position: relative;
  width: min(1100px, 100%);
  animation: pop .3s cubic-bezier(.2, .8, .2, 1) both;
}

.modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal__frame iframe,
.modal__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}

.modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}
.modal__close:focus-visible { outline: 2px solid #fff; }

body.is-locked { overflow: hidden; }

/* ---------- Animations ---------- */
@keyframes heroIn {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
