:root {
  --red: #c51f2f;
  --ink: #232323;
  --text: #6f6f6f;
  --muted: #939393;
  --gray-soft: #b9b9b9;
  --line: #e0e0e0;
  --soft: #f7f7f7;
  --white: #ffffff;
  --black: #1c1c1c;
  --overlay: rgba(147, 147, 147, 0.92);
  --container: 1170px;
  --header-h: 75px;
  --font: "Montserrat", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 30px, var(--container));
  margin-inline: auto;
}

.section {
  padding: 70px 0;
}

.section-soft {
  background: var(--soft);
}

.section-head {
  margin-bottom: 45px;
  text-align: center;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--red);
}

.section-title.light {
  color: var(--white);
}

/* Buttons — sizes closer to original */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50px;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-header {
  min-height: 0;
  height: 29px;
  padding: 2px 23px 1px;
  font-size: 9px;
  line-height: 22px;
}

.btn-small {
  min-height: 0;
  height: 38px;
  padding: 5px 29px;
  font-size: 11px;
  line-height: 22px;
}

.btn:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.btn-header:hover {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

.btn-white {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
  height: 42px;
  padding: 6px 30px;
  font-size: 12px;
}

.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-small:hover {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}

/* Header — transparent over hero, dark when scrolled */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--black);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo img {
  width: min(210px, 48vw);
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  transition: 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #fafafa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--red);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
  color: var(--white);
  background-color: #1a1a1a;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.02) 50%, transparent 100%),
    image-set(
      url("../img/hero-home.webp") type("image/webp"),
      url("../img/hero-home.jpg") type("image/jpeg")
    );
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 28px;
  max-width: 627px;
  color: var(--white);
  font-size: clamp(42px, 5.2vw, 70px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
}

.hero h1 .accent {
  color: var(--red);
}

.hero p {
  margin: 0 0 28px;
  max-width: 456px;
  color: var(--gray-soft);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.about-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-top: 2px;
}

.about-item h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.about-item p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

/* Advertisers */
.advertisers {
  padding: 0 0 70px;
  background: var(--soft);
}

.advertisers-inner {
  width: min(100%, 100%);
  margin: 0 auto;
  padding: 70px 13% 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split-media img {
  width: 100%;
  height: auto;
}

.split-copy .eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 18px;
  font-weight: 600;
}

.split-copy h3 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.split-copy p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
}

.split-copy p strong {
  color: var(--ink);
  font-weight: 600;
}

.channel-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.channel-list li {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.channel-list img {
  width: 42px;
  height: 42px;
}

/* Steps (separate white sections) */
.steps-section {
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.step-num {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1;
}

.step h4 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

/* Affiliates — half image + 2x2 feature grid */
.affiliates {
  padding: 70px 0 0;
  background: var(--soft);
}

.affiliates-title {
  width: min(100% - 30px, var(--container));
  margin: 0 auto 45px;
}

.affiliates-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 560px;
}

.affiliates-visual {
  min-height: 480px;
  background: url("../img/affiliates-bg.png") center / cover no-repeat;
}

.affiliates-content {
  padding: 8% 10% 8% 8%;
}

.affiliate-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
}

.affiliate-points article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.aff-icon {
  width: 32px;
  height: 32px;
  margin-top: 2px;
}

.affiliate-points article h4 {
  margin: 0 0 8px;
  color: #0a0a0a;
  font-size: 15px;
  font-weight: 700;
}

.affiliate-points article p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.affiliates-cta {
  margin: 36px 0 0;
  text-align: center;
}

/* Brand */
.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  padding: 200px 0;
  color: var(--white);
  background-color: #232323;
  background-image:
    linear-gradient(rgba(35, 35, 35, 0.9), rgba(35, 35, 35, 0.9)),
    url("../img/equirates-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
  text-align: center;
  overflow: hidden;
}

.brand-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.brand .section-kicker {
  margin: 0 0 100px;
  color: #939393;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-text {
  margin: 0 auto 40px;
  padding: 0 5%;
  max-width: 860px;
  color: #d6d5d5;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 500;
  line-height: 40px;
}

/* Testimonials */
.testimonials {
  background: var(--soft);
  border-top: 1px solid #ededed;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.quote {
  text-align: center;
  padding: 0 10px;
}

.quote p {
  margin: 0 0 22px;
  color: var(--text);
  font-size: 14px;
}

.quote footer {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.quote-mark {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 6px;
  color: var(--red);
}

.quote strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.quote span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Team */
.team {
  background: var(--white);
}

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.team-card {
  width: 204px;
}

.team-photo {
  position: relative;
  overflow: hidden;
  width: 204px;
  max-width: 100%;
  aspect-ratio: 204 / 265;
  background: #ddd;
}

.team-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.3s ease;
}

.team-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.team-overlay::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--red);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.3s ease;
}

.team-overlay-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease 0.05s;
}

.team-overlay a {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--ink);
  transition: color 0.2s ease, transform 0.2s ease;
}

.team-overlay a:hover {
  color: var(--red);
  transform: translateY(-2px);
}

.team-overlay svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
}

.team-card:hover .team-overlay,
.team-card:focus-within .team-overlay,
.team-card.is-open .team-overlay {
  opacity: 1;
}

.team-card:hover .team-overlay::before,
.team-card:focus-within .team-overlay::before,
.team-card.is-open .team-overlay::before,
.team-card:hover .team-overlay-links,
.team-card:focus-within .team-overlay-links,
.team-card.is-open .team-overlay-links {
  opacity: 1;
  transform: none;
}

.team-meta {
  margin-top: 18px;
  text-align: center;
}

.team-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.team-meta span {
  display: block;
  min-height: 2.6em;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Events — 4 in a row, hover reveals date/title */
.events {
  background: var(--white);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.event-card {
  position: relative;
  overflow: hidden;
  height: 350px;
  min-height: 350px;
  background-color: #111;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.event-card.e1 {
  background-image: url("../img/event-england.png");
}

.event-card.e2 {
  background-image: url("../img/event-budapest.png");
}

.event-card.e3 {
  background-image: url("../img/event-newyork.png");
}

.event-card.e4 {
  background-image: url("../img/event-cancun.png");
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.event-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.event-card:hover::before,
.event-card:focus-within::before,
.event-card.is-open::before {
  background: rgba(0, 0, 0, 0.35);
}

.event-card:hover .event-caption,
.event-card:focus-within .event-caption,
.event-card.is-open .event-caption {
  opacity: 1;
  transform: none;
}

.event-caption time {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.event-caption strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.event-caption p {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 13px;
}

.event-caption .link {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: #232323;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Contact */
.contact {
  padding: 80px 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../img/contact-bg.jpg") center / cover no-repeat;
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  width: 100px;
  background: var(--red);
}

.contact-grid {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.form-status.is-success {
  color: #0f7a3c;
}

.form-status.is-error {
  color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Footer */
.site-footer {
  padding: 50px 0;
  background: #1c1c1c;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  display: grid;
  place-items: center;
  color: var(--white);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--red);
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-links .sep {
  opacity: 0.6;
}

/* Legal */
.page-hero {
  padding: 120px 0 40px;
  background: var(--soft);
}

.page-hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  text-transform: uppercase;
}

.legal {
  padding: 40px 0 80px;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-size: 18px;
}

.legal-content p,
.legal-content li {
  color: var(--text);
  font-size: 14px;
}

.site-header.legal-header {
  background: var(--black);
}

/* 404 */
.error-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--soft);
  text-align: center;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  margin: 0 0 8px;
  color: var(--red);
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 700;
  letter-spacing: -4px;
  line-height: 1;
}

.error-page .section-title {
  margin-bottom: 16px;
}

.error-text {
  margin: 0 auto 32px;
  max-width: 420px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* Responsive */
@media (max-width: 1100px) {
  .about-grid,
  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .affiliates-panel {
    grid-template-columns: 1fr;
  }

  .advertisers-inner {
    padding: 70px 5% 0;
  }

  .affiliates-content {
    padding: 40px 6% 50px;
  }

  .affiliates-visual {
    min-height: 320px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 18px 20px 22px;
    background: var(--black);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .steps,
  .quote-grid,
  .affiliate-points,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .channel-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .brand {
    min-height: 0;
    padding: 120px 0;
    background-attachment: scroll;
  }

  .brand .section-kicker {
    margin-bottom: 40px;
  }

  .brand-text {
    font-size: 22px;
    line-height: 30px;
  }

  .team-row {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 40px;
  }

  .team-card,
  .team-photo {
    width: min(360px, 100%);
    max-width: 100%;
  }

  .hero {
    text-align: center;
  }

  .hero-copy {
    margin: 0 auto;
    max-width: 100%;
  }

  .hero h1,
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero .btn {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .about-grid,
  .events-grid,
  .steps,
  .quote-grid,
  .affiliate-points,
  .form-row {
    grid-template-columns: 1fr;
  }

  .channel-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .channel-list img {
    width: 34px;
    height: 34px;
  }

  .channel-list li {
    font-size: 11px;
  }

  .advertisers-inner {
    padding: 50px 4% 0;
  }

  .affiliates-cta {
    text-align: center;
  }

  .event-card {
    height: 280px;
    min-height: 280px;
  }

  .team-card,
  .team-photo {
    width: min(100%, 380px);
  }

  .team-meta strong {
    font-size: 15px;
  }

  .team-meta span {
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 110px 0 70px;
    text-align: center;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-right {
    width: 100%;
    justify-content: center;
  }

  .social-links,
  .footer-links {
    justify-content: center;
  }
}
