/* =============================================
   ZEBIS RACING – Frederik Zebis Christensen
   style.css
   ============================================= */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #e63329;
  --red-dark:  #b5211a;
  --red-tint:  rgba(230, 51, 41, 0.12);
  --red-glow:  rgba(230, 51, 41, 0.25);
  --black:     #080808;
  --dark:      #0f0f0f;
  --dark2:     #161616;
  --dark3:     #1f1f1f;
  --border:    rgba(255,255,255,0.09);
  --text:      #e0e0e0;
  --text-muted:#888;
  --white:     #ffffff;
  --gold:      #f5c842;

  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;

  --section-pad: 120px;
  --nav-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Grain texture — premium overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ---------- TYPOGRAPHY HELPERS ---------- */
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section__label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 36px;
}
.section__title em {
  font-style: italic;
  color: var(--red);
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(230,51,41,0.2);
}
.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin-top: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(24px, env(safe-area-inset-left, 0));
  padding-right: max(24px, env(safe-area-inset-right, 0));
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: visible;
}

/* Section diagonal red line separators */
.section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent 10%, rgba(230,51,41,0.3) 50%, transparent 90%);
  z-index: 3;
}

/* Angled section transitions */
.about::before,
.results::before,
.sponsors::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  z-index: 2;
}
.career::before,
.gallery::before,
.contact::before {
  content: '';
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 50px;
  background: var(--black);
  clip-path: polygon(0 0, 100% 0, 100% 0%, 0 100%);
  z-index: 2;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}
.btn:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 0.08s;
}
.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px var(--red-tint);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.btn--outline:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn--sm { font-size: 0.8rem; padding: 10px 20px; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: none; }

/* Reveal from left — for timeline items */
.reveal--left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal--left.visible { opacity: 1; transform: none; }

/* Reveal with scale — for cards */
.reveal--scale {
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}
.reveal--scale.visible { opacity: 1; transform: none; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
  background: rgba(12, 12, 12, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.nav.scrolled::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(230,51,41,0.4), transparent);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover { color: var(--white); }
.nav__cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 3px;
  transition: background 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.nav__cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav__cta:active { transform: scale(0.97) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}
.nav__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: border-color 0.3s var(--ease-out-expo), color 0.3s;
  min-height: 36px;
}
.lang-toggle:hover {
  border-color: var(--red);
  color: var(--white);
}
.lang-toggle:active { transform: scale(0.97); }
.lang-toggle svg { flex-shrink: 0; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__track-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(105deg, transparent, transparent 120px,
      rgba(230,51,41,0.04) 120px, rgba(230,51,41,0.04) 122px),
    repeating-linear-gradient(75deg, transparent, transparent 200px,
      rgba(255,255,255,0.02) 200px, rgba(255,255,255,0.02) 201px);
  animation: trackMove 12s linear infinite;
}
@keyframes trackMove {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 500px 0, -300px 0; }
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(230,51,41,0.2) 0%, transparent 70%),
    linear-gradient(to bottom, rgba(8,8,8,0.2) 0%, rgba(8,8,8,0.5) 60%, var(--black) 100%);
}

.hero__stripe {
  position: absolute;
  top: -10%;
  right: 18%;
  width: 3px;
  height: 130%;
  background: linear-gradient(to bottom, transparent 5%, var(--red) 40%, var(--red) 60%, transparent 95%);
  transform: rotate(15deg);
  transform-origin: top center;
  opacity: 0.35;
  z-index: 1;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 100dvh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__content {
  padding: var(--nav-h) 0 80px;
}

.hero__subtitle {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(4.5rem, 12vw, 11rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero__name-first { color: var(--white); }
.hero__name-last {
  -webkit-text-stroke: 2px rgba(255,255,255,0.35);
  color: transparent;
}

.hero__tagline {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__number {
  font-family: var(--font-head);
  font-size: clamp(14rem, 28vw, 26rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 3px var(--red);
  text-shadow: 0 0 80px rgba(230,51,41,0.25);
  text-align: right;
  align-self: center;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease-out-expo) forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--dark); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__img-wrap {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.about__img-placeholder {
  background: var(--dark2);
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about__img-placeholder svg { width: 100%; height: 100%; }

.about__img-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--red);
  padding: 8px 16px;
  border-radius: 3px;
  text-align: center;
}
.about__img-badge span {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.about__img-badge small {
  display: block;
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.about__car-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
}
.about__car-icon {
  display: flex;
  align-items: center;
  color: var(--red);
  flex-shrink: 0;
}
.about__car-tag strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.about__car-tag small { font-size: 0.8rem; color: var(--text-muted); }

.about__lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 20px;
}
.about__body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about__body strong { color: var(--white); }

.about__quote {
  border-left: 3px solid var(--red);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--dark2);
  border-radius: 0 4px 4px 0;
}
.about__quote p {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
}
.about__quote cite {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 8px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.fact {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 12px;
  text-align: center;
}
.fact__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.fact__label {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =============================================
   CAREER / TIMELINE
   ============================================= */
.career {
  background: linear-gradient(180deg, var(--black) 0%, rgba(14,14,14,1) 100%);
}

.timeline {
  position: relative;
  margin-top: 60px;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--red), rgba(230,51,41,0.08));
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  margin-bottom: 48px;
}
.timeline__item:last-child { margin-bottom: 0; }

.timeline__dot {
  position: absolute;
  left: -44px;
  top: 20px;
  width: 20px; height: 20px;
  background: var(--red);
  border-radius: 50%;
  border: 3px solid var(--black);
  box-shadow: 0 0 0 6px rgba(230,51,41,0.2), 0 0 20px rgba(230,51,41,0.15);
}
.timeline__item:first-child .timeline__dot {
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(230,51,41,0.25); }
  50% { box-shadow: 0 0 0 14px rgba(230,51,41,0.1), 0 0 30px rgba(230,51,41,0.15); }
}

.timeline__year {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(230,51,41,0.2);
  display: inline-block;
}

.timeline__card {
  background: var(--dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  padding: 32px 36px;
  transition: border-color 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              transform 0.4s var(--ease-out-expo);
}
.timeline__card:hover {
  border-color: rgba(230,51,41,0.4);
  border-left-color: var(--red);
  box-shadow: 0 16px 48px -12px rgba(230,51,41,0.15);
  transform: translateX(8px);
}

.timeline__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.timeline__series {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.timeline__badge {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--dark3);
  color: var(--text-muted);
}
.timeline__badge--active {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(230,51,41,0.3);
}

.timeline__card h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.timeline__card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.timeline__details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline__details li {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--dark2);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
}
.timeline__details li strong { color: var(--white); }

/* =============================================
   RESULTS — minimalist editorial
   ============================================= */
.results { background: var(--dark); }

.results__bg { display: none; }

.results__intro {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 560px;
  line-height: 1.7;
}

/* Round cards */
.results__rounds {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.round {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.round:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.round__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.round__num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-tint);
  padding: 6px 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.round__track {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.round__track strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
}
.round__track span {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.round__results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.round__row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.round__class {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.result-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}
.result-badge--win  {
  background: rgba(230,51,41,0.12);
  color: var(--red);
  box-shadow: none;
  padding: 5px 12px;
  font-size: 0.7rem;
}
.result-badge--podium {
  background: rgba(245,200,66,0.1);
  color: var(--gold);
}
.result-badge--dnf  {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  opacity: 0.7;
}

/* Stats — minimal, border-separated */
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: none;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  padding: 36px 24px;
  text-align: left;
  transition: none;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.stat-card__number {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card__number::after { display: none; }
.stat-card__label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-card__sub { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; opacity: 0.7; }

.about__info-box {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 28px 0 0;
  margin-top: 48px;
}
.about__info-box h4 {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.about__info-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 680px;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery { background: var(--black); }

.gallery__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.75;
}
.gallery__lead a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* Gallery – Behold Instagram widget */
.gallery__behold {
  margin-bottom: 36px;
  border-radius: 8px;
  overflow: hidden;
}

.gallery__cta { text-align: center; }

/* =============================================
   SPONSORS
   ============================================= */
.sponsors {
  background: var(--dark);
}
.sponsors::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(230,51,41,0.05), transparent);
  pointer-events: none;
}

.sponsors__lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.75;
}

.sponsors__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.sponsor-slot {
  border-radius: 6px;
  border: 1px solid var(--border);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.sponsor-slot:hover { transform: translateY(-3px); }

.sponsor-slot--ws {
  grid-column: 1 / -1;
  min-height: 160px;
  background: linear-gradient(135deg, var(--dark2), rgba(230,51,41,0.06));
  border-color: rgba(230,51,41,0.3);
}
.sponsor-slot--ws:hover { border-color: var(--red); }

.sponsor-slot--cego {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
}
.sponsor-slot--cego:hover { border-color: rgba(255,255,255,0.25); }

.sponsor-slot--spinking {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
}
.sponsor-slot--spinking:hover { border-color: rgba(255,255,255,0.25); }

.sponsor-slot--open {
  background: transparent;
  border: 1px dashed rgba(255,255,255,0.1);
}
.sponsor-slot--open:hover {
  border-color: var(--red);
  background: rgba(230,51,41,0.03);
}
.sponsor-slot--open:hover .sponsor-slot__inner > span { color: var(--red); }

.sponsor-slot__inner {
  text-align: center;
  padding: 20px;
}
.sponsor-slot__name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.sponsor-slot__inner small {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sponsor-slot--open .sponsor-slot__inner > span {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.2);
  margin-bottom: 4px;
}

.sponsor-logo {
  max-width: 160px;
  max-height: 70px;
  object-fit: contain;
  transition: filter 0.2s, opacity 0.2s;
  filter: brightness(1.1);
}
.sponsor-slot--ws .sponsor-logo {
  width: 90%;
  max-width: 100%;
  max-height: 130px;
  height: auto;
}
.sponsor-slot:hover .sponsor-logo { filter: brightness(1.4) drop-shadow(0 0 12px rgba(255,255,255,0.08)); }

/* Packages */
.sponsors__packages h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 28px;
}
.packages__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}
.package {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
}
.package--featured {
  background: linear-gradient(var(--dark3), var(--dark3)) padding-box,
              linear-gradient(135deg, var(--red), rgba(230,51,41,0.3)) border-box;
  border: 2px solid transparent;
  border-radius: 8px;
  position: relative;
  grid-row: 1 / 3;
}
.package--featured::before {
  content: 'Populær';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.package__tier {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.package__tier--gold { color: var(--gold); }
.package ul {
  list-style: none;
  margin-bottom: 24px;
}
.package ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.package ul li::before {
  content: '✓';
  color: var(--red);
  font-weight: 700;
  flex-shrink: 0;
}

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--black);
}
.contact::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at bottom right, rgba(230,51,41,0.06), transparent 60%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-top: 20px;
}
.contact__info > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact__socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.social-link:hover { color: var(--white); }
.contact__flag {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.contact__team {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.contact__team strong { color: var(--white); }

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--dark);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 36px;
}
.form__group { display: flex; flex-direction: column; gap: 7px; }
.form__group label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s, transform 0.3s var(--ease-out-expo);
}
.form__group:focus-within label {
  color: var(--red);
  transform: translateX(4px);
}
.form__group input,
.form__group select,
.form__group textarea {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-appearance: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(230,51,41,0.15), 0 0 20px rgba(230,51,41,0.05);
}
.form__group textarea { resize: vertical; min-height: 120px; }
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--text-muted); }
.form__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark);
  border-top: none;
  padding: 48px 0 32px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(230,51,41,0.4), transparent);
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer__logo {
  display: flex;
  align-items: center;
}
.footer__logo-img {
  height: 36px;
  width: auto;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--white); }
.footer__ig { color: var(--text-muted); transition: color 0.2s; }
.footer__ig:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom p { font-size: 0.78rem; color: var(--text-muted); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual { max-width: 360px; }
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    border: none;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 16px;
  }
  .stat-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }
  .sponsors__grid { grid-template-columns: repeat(2, 1fr); }
  .packages__grid { grid-template-columns: 1fr; }
  .package--featured { grid-row: auto; }
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__grid { grid-template-columns: 1.4fr 1fr; }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 99;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .nav__links.open { display: flex; }
  .nav__links a { font-size: 1.4rem; min-height: 44px; display: flex; align-items: center; }
  .nav__burger { display: flex; }

  /* Hero collapses to single column */
  .hero__grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .hero__content { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
  .hero__subtitle { font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero__name { font-size: clamp(3rem, 14vw, 5rem); }
  .hero__number {
    position: absolute;
    right: -5%;
    bottom: 10%;
    font-size: clamp(8rem, 35vw, 14rem);
    -webkit-text-stroke: 2px rgba(230,51,41,0.15);
    text-shadow: none;
    opacity: 0.4;
    animation: none;
    z-index: 0;
  }
  .hero__stripe { display: none; }

  /* Timeline tighter */
  .timeline { padding-left: 32px; }
  .timeline__dot { left: -28px; width: 16px; height: 16px; }
  .timeline__card { padding: 24px 20px; }
  .timeline__card:hover { transform: none; }
  .timeline__year { font-size: 1.1rem; }

  /* Stats 2-column on tablet */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    border: none;
  }
  .stat-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 16px;
  }
  .stat-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-card:nth-last-child(-n+2) { border-bottom: none; }

  /* Section dividers smaller on mobile */
  .about::before, .results::before, .sponsors::before,
  .career::before, .gallery::before, .contact::before {
    height: 30px;
    top: -30px;
  }

  /* Prevent iOS zoom on form inputs */
  .form__group input,
  .form__group select,
  .form__group textarea { font-size: 16px; }

  /* Footer center on mobile */
  .footer__top { flex-direction: column; align-items: center; text-align: center; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; gap: 16px; }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0)); }
}

@media (max-width: 540px) {
  :root { --section-pad: 64px; }
  .about__facts { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .sponsors__grid { grid-template-columns: 1fr 1fr; }
  .packages__grid { grid-template-columns: 1fr; }
  .package--featured { grid-row: auto; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__name { font-size: clamp(2.6rem, 13vw, 4rem); }
  .contact__form { padding: 24px 20px; }
  .timeline { padding-left: 24px; }
  .timeline__dot { left: -22px; width: 14px; height: 14px; }
  .timeline__card:hover { transform: none; }
  .section__title { font-size: clamp(2.6rem, 8vw, 4rem); }

  /* Footer links wrap to 2 rows */
  .footer__links { gap: 12px 16px; }
}

@media (max-width: 400px) {
  :root { --section-pad: 48px; }
  .hero__name { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .hero__subtitle { font-size: 0.62rem; letter-spacing: 0.08em; }
  .section__title { font-size: clamp(2.2rem, 8vw, 3rem); }
  .about__facts { gap: 8px; }
  .stats__grid { gap: 0; }
  .sponsors__grid { grid-template-columns: 1fr; }
  .contact__form { padding: 20px 16px; }
  .container { padding: 0 16px; }
  .timeline__details { gap: 6px; }
  .timeline__details li { font-size: 0.68rem; padding: 3px 8px; }
}

/* Touch devices — disable sticky hover states */
@media (hover: none) {
  .timeline__card:hover { transform: none; box-shadow: none; border-color: var(--border); border-left-color: var(--red); }
  .sponsor-slot:hover { transform: none; }
  .btn:hover { transform: none; box-shadow: none; }
  .btn:active { transform: scale(0.97); }
}
