:root {
  --white: #ffffff;
  --red: #c8102e;
  --red-dark: #9e0c24;
  --gold: #c9a227;
  --gold-soft: #faf5e6;
  --ink: #2b2b2b;
  --grey: #6b6b6b;
  --line: #ece6d6;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header */
header { border-bottom: 2px solid var(--gold); }
header .wrap {
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 18px; text-decoration: none; color: var(--red);
}
.logo b { font-weight: inherit; }
.logo span { color: var(--gold); }
nav { display: flex; gap: 20px; }
nav a {
  font-size: 15px; text-decoration: none; color: var(--grey);
  border-bottom: 2px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { color: var(--red); border-color: var(--red); }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
h1 {
  font-size: clamp(34px, 6vw, 52px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800;
}
h1 em { font-style: normal; color: var(--red); }
.lead { font-size: 18px; color: var(--grey); max-width: 52ch; margin-top: 14px; }

/* Sections */
section { padding: 40px 0; border-top: 1px solid var(--line); }
h2 {
  font-size: 22px; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
h2::before { content: ""; width: 8px; height: 8px; background: var(--red); flex: none; }

/* Buttons */
.btn {
  display: inline-block; margin-top: 24px; padding: 10px 20px;
  background: var(--red); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 15px; transition: background .15s;
}
.btn:hover { background: var(--red-dark); }

/* Team */
.team { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.person .photo {
  position: relative; aspect-ratio: 1; background: var(--gold-soft);
  overflow: hidden; border-bottom: 3px solid var(--red);
}
.person .photo .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--gold); font-family: var(--mono); font-size: 40px; font-weight: 700;
}
.person .photo img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.person h3 { font-size: 16px; margin-top: 10px; }
.person .role {
  font-family: var(--mono); font-size: 12px; color: var(--red);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* Callout */
.callout {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; background: var(--red); color: var(--white); padding: 24px 28px;
  border-left: 6px solid var(--gold);
}
.callout .eyebrow { color: var(--gold-soft); opacity: .85; margin-bottom: 4px; }
.callout h3 { font-size: 20px; }
.callout .btn { margin-top: 0; background: var(--white); color: var(--red); }
.callout .btn:hover { background: var(--gold-soft); }

/* Facts (hackathon) */
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--gold-soft); border-top: 3px solid var(--gold); margin-top: 28px;
}
.facts div { padding: 14px 20px; }
.facts dt {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold);
}
.facts dd { font-weight: 600; }

/* Flow */
.flow {
  list-style: none; counter-reset: step; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px;
}
.flow li {
  counter-increment: step; display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.flow li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 13px; color: var(--red); font-weight: 700;
}
.flow code { font-family: var(--mono); font-size: 13px; color: var(--gold); }

/* Footer */
footer { border-top: 2px solid var(--gold); padding: 20px 0 32px; }
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between;
  font-size: 13px; color: var(--grey);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--red); }

/* Language switch */
nav a.lang {
  font-family: var(--mono); font-size: 13px; color: var(--gold);
  border: 1px solid var(--gold); padding: 0 6px; align-self: center;
}
nav a.lang:hover { color: var(--white); background: var(--gold); border-color: var(--gold); }

/* Mobile */
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  header .wrap { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 4px; row-gap: 6px; }
  .logo { font-size: 17px; gap: 6px; }
  .logo img { width: 22px; height: 22px; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  nav a { font-size: 14px; padding: 6px 0; }
  .hero { padding-top: 36px; padding-bottom: 28px; }
  .lead { font-size: 17px; }
  section { padding: 32px 0; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .facts div { padding: 12px 14px; }
  .facts div:last-child { grid-column: 1 / -1; }
  .hero .btn { display: block; text-align: center; padding: 14px; }
  .callout { padding: 20px; }
  .callout .btn { width: 100%; text-align: center; }
  .person h3 { font-size: 15px; }
  footer .wrap { flex-direction: column; }
}
