:root {
  --bg: #060606;
  --panel: #111111;
  --panel-deep: #0e0d0a;
  --ink: #ede7d6;
  --ink-soft: #c9c1ac;
  --dim: #7a7568;
  --rule: #1f1e1a;
  --rule-strong: #2e2c26;
  --gold: #cfb991;
  --gold-deep: #8e6f3e;
  --gold-bright: #f4d35e;
  --paper: #15130f;
  --max-width: 1180px;
  color-scheme: dark;
  font-family: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(207, 185, 145, 0.055) 0 1px, transparent 1px 42px),
    var(--bg);
  overflow-x: hidden;
}

::selection {
  color: #000;
  background: var(--gold);
}

body::-webkit-scrollbar {
  width: 8px;
}

body::-webkit-scrollbar-thumb {
  background: #2a2620;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 52px);
  color: var(--ink);
  background: rgba(6, 6, 6, 0.9);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #0a0a0a;
  background: var(--gold);
  font-weight: 700;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 700;
}

.brand small {
  margin-top: 2px;
  color: var(--dim);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--dim);
  border: 1px solid transparent;
  padding: 8px 10px;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--rule-strong);
}

.site-nav .nav-chip {
  color: var(--gold);
  border-color: var(--rule-strong);
  background: rgba(207, 185, 145, 0.04);
}

.hero {
  position: relative;
  min-height: 94vh;
  overflow: hidden;
  color: var(--ink);
  background: #080808;
  border-bottom: 1px solid var(--rule);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(90deg, rgba(6, 6, 6, 0.64), rgba(6, 6, 6, 0.16) 54%, rgba(6, 6, 6, 0)),
    radial-gradient(circle at 80% 44%, rgba(207, 185, 145, 0.1), transparent 38%),
    repeating-linear-gradient(135deg, rgba(207, 185, 145, 0.09) 0 1px, transparent 1px 38px),
    url("assets/formula_logo.png") right 7% center / min(46vw, 560px) auto no-repeat,
    #060606;
}

.hero-overlay {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 6, 6, 0), rgba(6, 6, 6, 0.86)),
    linear-gradient(90deg, rgba(207, 185, 145, 0.08), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 154px 0 56px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  width: min(900px, 100%);
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 6.4rem;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 3.45rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.18;
}

p {
  color: var(--dim);
  font-size: 1rem;
  line-height: 1.62;
}

.hero-copy {
  width: min(650px, 100%);
  color: var(--ink-soft);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--rule-strong);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.button.primary {
  color: #0a0a0a;
  border-color: var(--gold);
  background: var(--gold);
}

.button.secondary {
  color: var(--ink);
  background: rgba(17, 17, 17, 0.78);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(760px, 100%);
  margin: 58px 0 0;
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.hero-stats div {
  padding: 24px;
  background: rgba(14, 13, 10, 0.92);
}

.hero-stats dt {
  color: var(--gold);
  font-size: 2.95rem;
  font-weight: 600;
  line-height: 1;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.band,
.split-section,
.funding,
.founders,
.competition {
  padding: 96px clamp(18px, 4vw, 56px);
}

.band {
  background: var(--panel-deep);
  border-block: 1px solid var(--rule);
}

.dark {
  color: var(--ink);
  background: #080808;
}

.section-heading,
.intro-grid,
.budget-layout,
.founders-grid,
.funding-grid,
.timeline,
.competition,
.sponsor-grid,
.cta-panel,
.split-section {
  width: min(var(--max-width), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 46px;
}

.section-heading p {
  width: min(720px, 100%);
}

.intro-grid,
.founders-grid,
.funding-grid,
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.intro-grid article,
.funding-grid article,
.sponsor-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
  position: relative;
}

.intro-grid article::before,
.funding-grid article::before,
.sponsor-grid article::before,
.budget-total::before,
.cta-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--gold-deep);
  border-right: 1px solid var(--gold-deep);
}

.metric {
  display: block;
  margin-bottom: 42px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 70px;
  align-items: center;
  background: transparent;
}

.split-copy p {
  width: min(650px, 100%);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
  line-height: 1.52;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--gold);
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
}

.image-panel img {
  width: 100%;
  object-fit: cover;
}

.image-panel .logo-art {
  padding: 50px;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background:
    repeating-linear-gradient(135deg, rgba(207, 185, 145, 0.065) 0 1px, transparent 1px 34px),
    #070707;
}

.image-caption {
  padding: 18px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.founders {
  background: #090909;
}

.founder-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule-strong);
  background: var(--panel);
}

.founder-card::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--gold-deep);
  border-right: 1px solid var(--gold-deep);
}

.founder-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(207, 185, 145, 0.055) 0 1px, transparent 1px 34px),
    #070707;
  border-bottom: 1px solid var(--rule-strong);
}

.founder-photo img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(var(--photo-scale, 1.05));
  transform-origin: center;
}

.founder-henry img {
  --photo-scale: 1.08;
}

.founder-davyd img {
  --photo-scale: 1.02;
}

.founder-torsten img {
  --photo-scale: 1.08;
}

.founder-info {
  padding: 22px 24px 24px;
}

.founder-info h3 {
  margin-bottom: 8px;
}

.founder-info p {
  margin: 0;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.budget-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.budget-total {
  position: relative;
  padding: 36px;
  border: 1px solid var(--rule-strong);
  background: var(--panel-deep);
}

.budget-total span {
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.budget-total strong {
  display: block;
  margin: 22px 0;
  color: var(--gold);
  font-size: 5.4rem;
  font-weight: 600;
  line-height: 0.92;
}

.budget-table {
  display: grid;
  border: 1px solid var(--rule-strong);
  background: var(--rule-strong);
}

.table-row {
  display: grid;
  grid-template-columns: 0.7fr 2.2fr 0.7fr;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 18px 20px;
  color: var(--ink-soft);
  background: var(--panel);
  border-bottom: 1px solid var(--rule-strong);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  min-height: 52px;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  background: #0b0a08;
}

.table-row span:first-child,
.table-row span:last-child {
  color: var(--ink);
  font-weight: 600;
}

.funding {
  background: #090909;
  border-bottom: 1px solid var(--rule);
}

.section-heading.compact {
  margin-bottom: 28px;
}

.funding-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funding-grid article {
  min-height: 300px;
}

.funding-grid strong {
  display: block;
  margin-top: 30px;
  color: var(--gold);
  font-size: 2.5rem;
  font-weight: 600;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-strong);
  border: 1px solid var(--rule-strong);
}

.timeline article {
  min-height: 330px;
  padding: 26px;
  background: var(--panel);
}

.year {
  display: inline-block;
  margin-bottom: 66px;
  color: #0a0a0a;
  background: var(--gold);
  padding: 7px 10px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.competition {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 70px;
  align-items: center;
  background: transparent;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.event-grid span {
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  background: var(--panel);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
}

.sponsor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 38px;
  border: 1px solid var(--rule-strong);
  background: var(--panel-deep);
}

.cta-panel h2 {
  width: min(760px, 100%);
  margin-bottom: 0;
  font-size: 2.85rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--dim);
  background: #000;
  border-top: 1px solid var(--rule);
}

.site-footer p {
  margin: 0;
  color: inherit;
  font-size: 0.9rem;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  .intro-grid,
  .founders-grid,
  .funding-grid,
  .sponsor-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section,
  .budget-layout,
  .competition {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    display: block;
  }

  .brand {
    min-width: 0;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
    gap: 6px;
  }

  .site-nav a {
    padding: 7px 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 176px;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(6, 6, 6, 0.64), rgba(6, 6, 6, 0.16)),
      radial-gradient(circle at 86% 58%, rgba(207, 185, 145, 0.08), transparent 42%),
      repeating-linear-gradient(135deg, rgba(207, 185, 145, 0.07) 0 1px, transparent 1px 38px),
      url("assets/formula_logo.png") right 18px bottom 360px / 170px auto no-repeat,
      #060606;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-stats,
  .intro-grid,
  .founders-grid,
  .funding-grid,
  .sponsor-grid,
  .timeline,
  .event-grid {
    grid-template-columns: 1fr;
  }

  .band,
  .split-section,
  .founders,
  .funding,
  .competition {
    padding-block: 72px;
  }

  .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .table-head {
    display: none;
  }

  .cta-panel,
  .site-footer {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.85rem;
  }

  .hero-stats dt,
  .budget-total strong {
    font-size: 2.8rem;
  }
}
