:root {
  color-scheme: dark;
  --black: #080a0c;
  --surface: #101317;
  --surface-2: #171b20;
  --white: #f5f5f2;
  --muted: #a5a9ae;
  --line: rgba(255, 255, 255, 0.14);
  --red: #e2221a;
  --green: #14954a;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 5%, rgba(226, 34, 26, 0.11), transparent 26rem),
    var(--black);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  color: #080a0c;
  background: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(1320px, calc(100% - 64px));
  min-height: 104px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
}

.brand {
  width: clamp(190px, 19vw, 270px);
}

.brand img,
.site-footer img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.2vw, 22px);
}

.nav-link {
  position: relative;
  padding: 11px 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.active {
  color: white;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.disabled {
  color: rgba(255, 255, 255, 0.36);
  cursor: default;
}

.nav-link.disabled::after {
  display: none;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.34);
}

.language-switcher button {
  padding: 8px 2px;
  border: 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.language-switcher button:hover,
.language-switcher button:focus-visible,
.language-switcher button[aria-pressed="true"] {
  color: white;
}

.admin-access {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: white;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-access:hover,
.admin-access:focus-visible {
  border-color: var(--red);
  background: var(--red);
}

@media (max-width: 1180px) {
  .site-header {
    min-height: 142px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 18px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .nav-link {
    font-size: 0.72rem;
  }

  .admin-access {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.6rem;
  }
}

.intro {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) 0 clamp(70px, 9vw, 126px);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
}

.eyebrow,
.role {
  margin: 0 0 24px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 42px;
  height: 2px;
  margin: 0 14px 4px 0;
  background: var(--red);
}

.intro h1,
.profile h2,
.vision h2 {
  margin: 0;
  font-family: "Arial Narrow", Impact, sans-serif;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.intro h1 {
  max-width: 900px;
  font-size: clamp(4rem, 9vw, 9rem);
}

.intro-copy {
  padding-bottom: 8px;
  color: #c2c5c9;
  font-size: clamp(1.03rem, 1.5vw, 1.28rem);
}

.intro-copy p {
  margin: 0;
}

.intro-copy p + p {
  margin-top: 22px;
  color: var(--muted);
}

.tricolore {
  width: 210px;
  height: 4px;
  margin-top: clamp(60px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tricolore span:nth-child(1) { background: var(--green); }
.tricolore span:nth-child(2) { background: #f4f4f1; }
.tricolore span:nth-child(3) { background: var(--red); }

.founders {
  border-top: 1px solid var(--line);
}

.founder {
  min-height: 0;
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  border-bottom: 1px solid var(--line);
}

.founder-chris {
  grid-template-columns: 1.24fr 0.76fr;
}

.founder-chris .portrait {
  order: 2;
}

.founder-chris .profile {
  order: 1;
}

.portrait {
  position: relative;
  align-self: center;
  width: 100%;
  height: clamp(400px, 34vw, 460px);
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #15181b 0%, #08090b 74%);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(3, 5, 7, 0.42));
  pointer-events: none;
}

.portrait > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.88) contrast(1.03);
}

.founder-gavino .portrait > img {
  object-position: right center;
}

.founder-chris .portrait > img {
  object-position: left center;
}

.founder-moments {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: auto;
  bottom: auto;
  left: clamp(14px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  transform: translateY(-50%);
}

.founder-moment {
  width: clamp(70px, 5.7vw, 88px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  background: var(--surface-2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  transform-origin: center;
}

.founder-moment:nth-child(1) { transform: rotate(-3deg); }
.founder-moment:nth-child(2) { transform: rotate(2deg); }
.founder-moment:nth-child(3) { transform: rotate(-1deg); }

.founder-moment img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.founder-moment-track img {
  object-position: 48% center;
}

.founder-chris .founder-moments {
  right: clamp(14px, 2vw, 26px);
  left: auto;
  top: 50%;
  bottom: auto;
}

.founder-moment-motogp img {
  object-position: center;
}

.profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 6vw, 90px) clamp(56px, 8vw, 126px);
  background: var(--surface);
}

.founder-chris .profile {
  background: var(--surface-2);
}

.profile h2 {
  margin-bottom: 46px;
  font-size: clamp(3.5rem, 7vw, 7.6rem);
}

.profile > p:not(.role) {
  max-width: 590px;
  margin: 0;
  color: #c4c7ca;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
}

.profile > p + p:not(.role) {
  margin-top: 20px;
  color: var(--muted);
}

.vision {
  width: min(1100px, calc(100% - 64px));
  margin: 0 auto;
  padding: clamp(100px, 14vw, 190px) 0;
  text-align: center;
}

.vision .eyebrow::before {
  display: none;
}

.vision h2 {
  font-size: clamp(3.6rem, 8vw, 8rem);
}

.vision > p:last-child {
  max-width: 760px;
  margin: 50px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
}

.site-footer {
  width: min(1320px, calc(100% - 64px));
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr auto;
  align-items: center;
  gap: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.site-footer a {
  justify-self: center;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: white;
}

@media (max-width: 900px) {
  .intro-grid,
  .founder {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    align-items: start;
  }

  .founder {
    min-height: 0;
  }

  .founder-chris .portrait,
  .founder-chris .profile {
    order: initial;
  }

  .portrait {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .founder-chris .portrait {
    aspect-ratio: 16 / 10;
  }

  .founder-moments {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 22px;
  }

  .founder-chris .founder-moments {
    right: 22px;
    left: auto;
    top: 50%;
  }

  .founder-moment {
    width: clamp(66px, 12vw, 82px);
  }

  .profile {
    padding: 72px 32px 82px;
  }

  .site-footer {
    min-height: 210px;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 18px;
    padding: 40px 0;
  }

  .site-footer a {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .intro,
  .vision,
  .site-footer {
    width: min(100% - 36px, 1320px);
  }

  .site-header {
    min-height: 82px;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 18px 0;
  }

  .brand {
    width: 166px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 18px;
  }

  .site-nav {
    gap: 24px;
  }

  .nav-link {
    font-size: 0.73rem;
  }

  .intro {
    padding-top: 72px;
  }

  .intro-grid {
    gap: 42px;
  }

  .intro h1 {
    font-size: clamp(3.2rem, 16vw, 5.1rem);
  }

  .profile h2 {
    font-size: clamp(3.2rem, 15vw, 5.4rem);
  }

  .portrait,
  .founder-chris .portrait {
    aspect-ratio: 3 / 2;
  }

  .founder-moments {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 12px;
    gap: 6px;
    padding: 0;
  }

  .founder-chris .founder-moments {
    right: 12px;
    left: auto;
    top: 50%;
  }

  .founder-moment {
    width: clamp(48px, 14vw, 58px);
    margin: 0;
    border-width: 2px;
  }

  .vision h2 {
    font-size: clamp(3rem, 14vw, 5.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
