:root {
  --ink: #070707;
  --ink-2: #101010;
  --ink-3: #171717;
  --paper: #f2efe8;
  --paper-dim: #cfc9bd;
  --muted: #8f8a80;
  --line: rgba(242, 239, 232, 0.12);
  --line-strong: rgba(242, 239, 232, 0.2);
  --signal: #e8e2d6;
  --accent: #d7a35b;
  --header-h: 78px;
  --wrap: min(1280px, calc(100% - 7vw));
  --display: "Syne", "Helvetica Neue", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", sans-serif;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 80;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 3.5vw;
  background: linear-gradient(to bottom, rgba(7, 7, 7, 0.72), rgba(7, 7, 7, 0));
  transition: background 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: -0.04em;
}

.primary-nav {
  display: flex;
  gap: 26px;
}

.primary-nav a,
.header-cta,
.site-footer a,
.ghost,
.hero-bottom a,
.out {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.primary-nav a,
.header-cta,
.site-footer a {
  color: rgba(242, 239, 232, 0.78);
}

.primary-nav a:hover,
.header-cta:hover,
.site-footer a:hover,
.ghost:hover {
  color: #fff;
}

.header-cta {
  justify-self: end;
  padding: 12px 18px;
  border: 1px solid rgba(242, 239, 232, 0.28);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  position: relative;
}

.menu-toggle i {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--paper);
}

.menu-toggle i:first-child { top: 16px; }
.menu-toggle i:last-child { bottom: 16px; }

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  padding: 8px 5vw 24px;
  background: rgba(7, 7, 7, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
}

.hero-media,
.hero-content {
  grid-area: 1 / 1;
}

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

.hero-media picture,
.hero-media img {
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: 35% center;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.82) 0%, rgba(7, 7, 7, 0.48) 48%, rgba(7, 7, 7, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.55) 0%, transparent 28%, rgba(7, 7, 7, 0.55) 78%, rgba(7, 7, 7, 0.92) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 48px;
  width: var(--wrap);
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 0 40px;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-main {
  margin-top: auto;
  max-width: 720px;
}

.hero-top,
.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 239, 232, 0.84);
}

.hero-top p,
.hero-bottom span,
.hero-bottom a {
  margin: 0;
}

.hero-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(242, 239, 232, 0.16);
}

.hero-name {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 28px;
  font-size: clamp(64px, 11vw, 128px);
  max-width: 9ch;
}

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

.hero-lead {
  max-width: 34rem;
  margin: 0 0 34px;
  font-size: 19px;
  color: rgba(242, 239, 232, 0.86);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn:hover {
  background: #fff;
}

.btn-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(242, 239, 232, 0.45);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--ink);
}

.ghost {
  color: rgba(242, 239, 232, 0.8);
}

/* About */

.about,
.ventures,
.approach {
  padding: 12vh 0;
}

.about {
  background: var(--paper);
  color: var(--ink);
}

.about-grid {
  display: grid;
  grid-template-columns: 140px minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-label p {
  margin: 0;
}

.about h2,
.block-head h2,
.motorsport-panel h2,
.contact-copy h2 {
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 72px);
}

.about-copy .lede {
  margin-top: 0;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
}

.about-copy p {
  color: #4c4943;
}

.stat-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(7, 7, 7, 0.12);
}

.stat-row strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.stat-row span {
  color: #6d685e;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Ventures */

.block-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.block-head p,
.principles p {
  color: var(--paper-dim);
  max-width: 40rem;
}

.block-head.light p,
.block-head.light .about-label {
  color: rgba(242, 239, 232, 0.66);
}

.venture-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.venture-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 32px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.venture-card.linked:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 163, 91, 0.55);
  background: #141414;
}

.venture-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-bottom: 28px;
  color: var(--accent);
}

.venture-icon svg {
  width: 100%;
  height: 100%;
}

.out {
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.venture-card h3 {
  margin: 0 0 16px;
  font-size: 30px;
}

.venture-card > p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 15px;
}

/* Machines */

.machines {
  background: var(--ink-2);
  padding: 12vh 0 0;
  border-top: 1px solid var(--line);
}

.machine-feature {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
}

.machine-feature picture,
.machine-feature img {
  width: 100%;
  height: 78vh;
}

.machine-feature img {
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.machine-feature-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 0;
  background: linear-gradient(transparent, rgba(7, 7, 7, 0.92));
}

.machine-feature-copy > * {
  width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.machine-feature-copy p:first-child {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.machine-feature-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(48px, 8vw, 92px);
}

.spec {
  margin: 0;
  color: var(--paper-dim);
}

.line {
  margin: 16px 0 0;
  font-size: 22px;
  font-style: italic;
}

.machine-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.machine-rail article {
  padding: 36px 28px 44px;
  border-right: 1px solid var(--line);
  min-height: 250px;
  display: flex;
  flex-direction: column;
}

.machine-rail article:last-child {
  border-right: 0;
}

.machine-rail span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.machine-rail h3 {
  margin: auto 0 12px;
  font-size: 32px;
}

.machine-rail p {
  margin: 18px 0 0;
  color: var(--muted);
}

.machine-rail small {
  color: var(--paper-dim);
}

/* Motorsport */

.motorsport-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: stretch;
}

.motorsport-stage > picture,
.motorsport-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.motorsport-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.motorsport-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.18), rgba(7, 7, 7, 0.72) 55%, rgba(7, 7, 7, 0.9)),
    linear-gradient(transparent, rgba(7, 7, 7, 0.45));
}

.motorsport-panel {
  position: relative;
  z-index: 1;
  width: min(560px, calc(100% - 8vw));
  margin: 10vh 6vw 10vh auto;
  padding: 40px 36px;
  background: rgba(7, 7, 7, 0.78);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
}

.motorsport-panel > p {
  color: var(--paper-dim);
}

.driver {
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.driver h3 {
  margin: 8px 0;
  font-size: 34px;
}

.driver p {
  margin: 0;
  color: var(--paper-dim);
}

.driver p:first-child {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.motorsport-panel ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
}

.motorsport-panel li {
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

/* Approach */

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

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.principles li {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.principles span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.principles h3 {
  margin: 0 0 14px;
  font-size: 28px;
}

blockquote {
  margin: 80px 0 0;
  max-width: 14ch;
  font-size: clamp(36px, 5vw, 58px);
}

blockquote em {
  color: var(--accent);
  font-style: normal;
}

/* Contact */

.contact {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.contact-media,
.contact-copy {
  grid-area: 1 / 1;
}

.contact-media {
  position: absolute;
  inset: 0;
}

.contact-media picture,
.contact-media img {
  width: 100%;
  height: 100%;
}

.contact-media img {
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.55);
}

.contact-shade {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 7, 0.62);
}

.contact-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 14vh 0;
}

.contact-copy > p:first-child {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-note {
  color: var(--paper-dim);
}

.contact-mail {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.03em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

.contact-mail:hover {
  color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  background: var(--ink);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-grid p {
  margin: 0;
}

@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 980px) {
  .primary-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .about-grid,
  .venture-board,
  .machine-rail,
  .principles,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 24px;
  }

  .machine-feature,
  .machine-feature picture,
  .machine-feature img {
    min-height: 58vh;
    height: 58vh;
  }

  .machine-rail article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    min-height: 0;
  }

  .motorsport-panel {
    margin: auto 5vw 8vh;
    width: calc(100% - 10vw);
  }

  .hero {
    overflow: visible;
    min-height: 100svh;
  }

  .hero-content {
    min-height: 100svh;
    gap: 24px;
    padding: calc(var(--header-h) + 20px) 0 24px;
  }

  .hero-top {
    flex-direction: column;
    gap: 8px;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 64px);
    margin-bottom: 16px;
  }

  .hero-lead {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-media img {
    animation: none;
    transform: none;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img {
    animation: none;
    transform: none;
  }
  .venture-card.linked:hover {
    transform: none;
  }
}
