/* TAPATAHI marketing — brand tokens from the app */

@font-face {
  font-family: DaltonWhite;
  src: url("assets/fonts/daltonwhite.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Varsity;
  src: url("assets/fonts/varsity.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Script;
  src: url("assets/fonts/script.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Beatstreet;
  src: url("assets/fonts/beatstreet.ttf") format("truetype");
  font-display: swap;
}

:root {
  --red: #d10023;
  --red-soft: rgba(209, 0, 35, 0.42);
  --purple: #6a00ff;
  --gold: #e8c27a;
  --bg: #000;
  --text: #f3f3f3;
  --muted: #9a9a9a;
  --card: #141414;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --phone-w: min(42vw, 340px);
  --bezel: 9px;
  --radius: 42px;
  --screen-r: 34px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 8px 14px;
  z-index: 100;
}
.skip:focus { left: 8px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 40;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transform-origin: left;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 30;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent);
}
.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}
.nav__links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: #fff;
  border-color: var(--red);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.nav__brand span {
  font-family: DaltonWhite, sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--red);
}
.nav__brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Type */
.wordmark {
  font-family: DaltonWhite, sans-serif;
  color: var(--red);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

h1, h2 {
  font-family: Varsity, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.92;
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--red);
  paint-order: stroke fill;
}

h1 { font-size: clamp(2.6rem, 7.2vw, 6.4rem); }
h2 { font-size: clamp(2rem, 5.4vw, 4.4rem); }

h3 {
  font-family: Varsity, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin: 16px 0 8px;
  color: #fff;
}

.lede {
  font-family: Script, cursive;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  color: #ddd;
  margin: 28px 0 0;
  line-height: 1.35;
}

.kicker {
  font-family: Varsity, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 14px;
}

.kicker--light { color: #ff5a73; }

.section__line {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 18px 0 0;
}

/* Phone */
.phone {
  position: relative;
  width: var(--phone-w);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.65));
}
.phone__frame {
  position: relative;
  border-radius: var(--radius);
  padding: var(--bezel);
  background: linear-gradient(165deg, #3a3a3a, #111 35%, #000);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.phone__frame img,
.phone__frame .swap {
  width: 100%;
  height: auto;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: var(--screen-r);
  display: block;
}
.phone__glow {
  position: absolute;
  inset: -18% -30% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, var(--red-soft), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.phone__glow--soft {
  background: radial-gradient(ellipse at center, rgba(209, 0, 35, 0.22), transparent 70%);
}

.phone--hero { width: min(48vw, 380px); }
.phone--feature { width: min(52vw, 360px); }

.phone__frame--swap {
  display: grid;
}
.phone__frame--swap .swap {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}
.phone__frame--swap .swap.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 6vw 80px;
  overflow: hidden;
}
.hero__atmosphere {
  position: absolute;
  inset: -8%;
  z-index: 0;
}
.hero__atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 70% at 78% 48%, rgba(209, 0, 35, 0.18), transparent 55%),
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.78) 42%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 96%);
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 4vw;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.hero__copy {
  animation: rise 1.05s var(--ease) both;
}
.hero__stage {
  display: flex;
  justify-content: center;
  perspective: 900px;
  animation: rise 1.15s var(--ease) 0.12s both;
}
.phone--hero {
  transform: rotateY(-8deg) rotateX(2deg) translateZ(0);
  transform-style: preserve-3d;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* Sections */
.section {
  position: relative;
  padding: 88px 6vw;
  max-width: 1280px;
  margin: 0 auto;
}
.section__copy { max-width: 720px; margin-bottom: 56px; }

/* Team cluster */
.cluster {
  position: relative;
  height: min(78vw, 680px);
  max-width: 1100px;
  margin: 0 auto;
}
.cluster .phone {
  position: absolute;
  top: 6%;
}
.cluster .phone--side {
  width: min(28vw, 250px);
  left: 2%;
  transform: rotate(-11deg) translateY(36px);
  z-index: 1;
}
.cluster .phone--right {
  left: auto;
  right: 2%;
  transform: rotate(11deg) translateY(52px);
  z-index: 2;
}
.cluster .phone--front {
  width: min(34vw, 300px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

/* Place / modules */
.place { padding-top: 80px; }
.place__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}
.place__stage { display: flex; justify-content: center; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #ccc;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: Varsity, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s;
}
.chip:hover { border-color: var(--red); color: #fff; }
.chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chip.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.modules {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
}
.modules li {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modules strong {
  display: block;
  font-family: Varsity, sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* DOC */
.doc {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 80px 6vw 90px;
  overflow: hidden;
}
.doc__shot {
  position: absolute;
  inset: -6% 0 -10%;
}
.doc__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.doc__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 20%, rgba(0, 0, 0, 0.82) 78%, #000),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55), transparent 55%);
}
.doc__copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.doc__copy .section__line { color: #cfcfcf; }

/* Season */
.season {
  padding: 120px 0 40px;
  overflow: hidden;
}
.season__copy {
  max-width: 1280px;
  margin: 0 auto 48px;
  padding: 0 6vw;
}
.season__board {
  margin: 0;
  width: 92vw;
  max-width: 1400px;
  margin-inline: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: perspective(1400px) rotateX(6deg);
  transform-origin: center top;
}
.season__board img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 670;
  object-fit: cover;
}

/* Strip */
.strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 80px 6vw 40px;
  max-width: 1280px;
  margin: 0 auto;
}
.strip__card {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
}
.strip__card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  filter: brightness(0.72);
}
.strip__card figcaption {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-family: Varsity, sans-serif;
  font-size: 1.4rem;
  -webkit-text-stroke: 1px var(--red);
  paint-order: stroke fill;
}

/* Difference */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.diff {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 22px;
}
.diff p {
  margin: 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}
.diff h3 { margin-left: 22px; margin-right: 22px; }
.diff__crop {
  height: 220px;
  overflow: hidden;
}
.diff__crop img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  object-position: center 12%;
  transform: scale(1.08);
}
.diff__crop--season img { object-position: center; height: 100%; }
.diff__crop--vip img { object-position: center 40%; }
.diff__crop--squad img { object-position: center 30%; }

/* Close */
.close {
  position: relative;
  padding: 88px 6vw 72px;
  overflow: hidden;
}
.close__atmosphere {
  position: absolute;
  inset: 0;
}
.close__atmosphere img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}
.close__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.72) 40%, #000 100%);
}
.close__inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.close__copy { margin-bottom: 48px; }
.close__copy .lede { margin-top: 20px; }
.close__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 40px;
  perspective: 1000px;
}
.close__phones .phone--mini:first-child { transform: rotate(-12deg) translateY(28px); }
.close__phones .phone--mini:last-child { transform: rotate(12deg) translateY(28px); }
.phone--close { width: min(34vw, 270px); }
.phone--mini { width: min(18vw, 160px); }

.cta__btn {
  display: inline-block;
  font-family: Varsity, sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--red);
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 12px 40px var(--red-soft);
}
.cta__btn:hover { filter: brightness(1.08); }
.cta__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta__tag {
  font-family: Script, cursive;
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.cta__note {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.foot {
  padding: 40px 6vw 56px;
  text-align: center;
  color: var(--muted);
}
.foot img {
  margin: 0 auto 8px;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.foot p {
  font-family: DaltonWhite, sans-serif;
  color: var(--red);
  margin: 0 0 12px;
  font-size: 1.2rem;
}
.foot nav { display: flex; justify-content: center; gap: 22px; }
.foot a { color: #888; text-decoration: none; font-size: 0.9rem; }
.foot a:hover { color: #fff; }

/* Reveals */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js [data-reveal="delay"] { transition-delay: 0.14s; }
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Tablet */
@media (max-width: 1080px) {
  .hero {
    min-height: auto;
    padding: 120px 5vw 60px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 48px;
  }
  .hero__stage { justify-content: flex-start; }
  .phone--hero {
    width: min(70vw, 340px);
    transform: none;
  }
  .place__layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .place__stage { order: -1; }
  .phone--feature { width: min(64vw, 320px); }
  .cluster { height: 520px; }
  .cluster .phone--side { width: 180px; }
  .cluster .phone--front { width: 220px; }
  .diff-grid { gap: 18px; }
}

/* Mobile — recompose, don't shrink */
@media (max-width: 720px) {
  .nav { padding: 12px 14px; flex-wrap: wrap; }
  .nav__links { width: 100%; }
  .nav__links a { font-size: 0.7rem; padding: 6px 10px; }
  .hero { padding: 120px 22px 48px; }
  .hero__atmosphere img { opacity: 0.28; }
  .hero__veil {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.72) 38%, #000 100%);
  }
  h1, h2 { -webkit-text-stroke-width: 1px; }
  h1 { font-size: clamp(2.85rem, 12.5vw, 3.5rem); }
  .section { padding: 80px 22px; }
  .section__copy { margin-bottom: 32px; }

  .cluster {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .cluster .phone {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: min(78vw, 300px);
  }
  .cluster .phone--side:first-child,
  .cluster .phone--right {
    display: none;
  }

  .place { padding: 64px 22px; }
  .phone--feature { width: min(78vw, 300px); }
  .modules li { font-size: 0.95rem; }

  .doc {
    min-height: 92svh;
    padding: 48px 22px 56px;
    align-items: flex-end;
  }
  .doc__shot img { object-position: center 8%; }

  .season { padding: 72px 0 20px; }
  .season__copy { padding: 0 22px; margin-bottom: 28px; }
  .season__board {
    width: calc(100% - 32px);
    transform: none;
    border-radius: 12px;
  }

  .strip {
    grid-template-columns: 1fr;
    padding: 40px 22px;
  }

  .diff-grid { grid-template-columns: 1fr; }
  .diff__crop { height: 200px; }

  .close { padding: 80px 22px 64px; }
  .close__phones { gap: 0; }
  .close__phones .phone--mini { display: none; }
  .phone--close { width: min(78vw, 300px); }

  .close__phones .phone--mini:first-child,
  .close__phones .phone--mini:last-child { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy,
  .hero__stage,
  .js [data-reveal],
  .phone__frame--swap .swap,
  .chip {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .phone--hero,
  .season__board,
  .cluster .phone--side,
  .cluster .phone--right,
  .cluster .phone--front,
  .close__phones .phone--mini {
    transform: none !important;
  }
}
