@font-face {
  font-family: Studio;
  src: url(assets/sans.otf);
}
@font-face {
  font-family: Studio;
  src: url(assets/sans-bold.otf);
  font-weight: 700;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Studio, Arial, sans-serif;
}
button,
a,
input,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #7155fa;
  outline-offset: 5px;
}
button {
  min-height: 44px;
}
button:disabled {
  cursor: default;
  opacity: 0.6;
}
[hidden] {
  display: none !important;
}
.tools {
  position: fixed;
  z-index: 20;
  bottom: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tools button,
.tools a {
  background: #fff;
  color: #222;
  border: 1px solid #ddd;
  border-radius: 30px;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 12px;
  text-decoration: none;
}
.tools button:disabled {
  display: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
noscript {
  display: block;
  padding: 12px;
  font-size: 13px;
  background: #fff;
  color: #222;
}
.paused * {
  animation-play-state: paused !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
html {
  scroll-behavior: smooth;
}
body {
  background: #eef4f5;
  color: #0c1213;
}
.clip-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.driver-hero {
  height: 100svh;
  min-height: 800px;
  max-height: 1100px;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #f0f6f7;
}
.contours {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background: repeating-radial-gradient(
    ellipse at 20% 30%,
    transparent 0 95px,
    #b5ccce55 97px,
    transparent 99px 190px
  );
  transform: rotate(-12deg) scale(1.2);
  pointer-events: none;
}
header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 36px;
  gap: 25px;
}
header a {
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 11px;
  letter-spacing: -0.2px;
}
.logo {
  font-weight: 700;
  font-size: 23px;
  line-height: 0.8;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  letter-spacing: -1px;
}
.logo small {
  font-size: 6px;
  letter-spacing: 0.9px;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 48px;
}
.garage {
  font-weight: 700;
}
.driver-name {
  position: absolute;
  z-index: 3;
  top: 31%;
  left: 3.5%;
  width: 280px;
}
.driver-name > p {
  font-size: 11px;
  color: #738185;
  position: absolute;
  left: 215px;
  top: 0;
  margin: 0;
}
h1 {
  font-size: 110px;
  line-height: 0.82;
  letter-spacing: -6px;
  margin: 0;
  font-weight: 700;
}
h1 span {
  display: block;
  transform: scaleX(0.65);
  transform-origin: left;
  width: 150%;
}
.driver-name ul {
  list-style: none;
  padding: 0;
  margin: 65px 0 0;
  font-size: 12px;
  line-height: 1.9;
}
.portrait {
  position: absolute;
  width: min(79vw, 1100px);
  aspect-ratio: 1;
  left: 50%;
  transform: translateX(-50%);
  bottom: -210px;
  z-index: 2;
}
.portrait img,
.portrait canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.portrait .suit-tone {
  filter: brightness(0.2);
  mask-image: linear-gradient(transparent 40%, #000 47%);
  pointer-events: none;
}
.portrait canvas {
  transform: scale(1.08);
  transform-origin: 50% 25%;
  pointer-events: none;
}
.race-card {
  position: absolute;
  z-index: 3;
  top: 33%;
  right: 3.5%;
  width: 185px;
}
.race-next,
.stats {
  padding: 10px;
  border: 1px solid #adc7c966;
  position: relative;
}
.race-next {
  border-bottom: 0;
  padding-bottom: 8px;
}
.label {
  color: #3e7878 !important;
  font-size: 9px !important;
  margin: 0 0 14px !important;
  letter-spacing: 0.3px;
}
.race-next h2,
.race-next > p {
  font-size: 10px;
  line-height: 1.25;
  font-weight: 400;
  margin: 0 0 5px;
}
.race-next svg {
  width: 95px;
  margin: 0 0 0 auto;
  display: block;
  color: #667a7d;
}
.stats dl {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}
.stats dt {
  font-size: 7px;
  color: #53666b;
  margin-bottom: 7px;
}
.stats dd {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -2px;
  margin: 0;
}
.portrait-controls {
  position: absolute;
  left: 3.5%;
  bottom: 50px;
  z-index: 4;
}
.portrait-controls button {
  padding: 10px 15px;
  border: 1px solid #8b9fa3;
  border-radius: 30px;
  background: #f2f8f8b3;
  font-size: 12px;
}
.portrait-controls p {
  max-width: 210px;
  font-size: 11px;
  line-height: 1.4;
  color: #40575d;
  margin: 8px 0;
}
.scroll-note {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  z-index: 4;
  color: #e5eded;
  text-decoration: none;
  font-size: 9px;
  letter-spacing: 1px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.season-card {
  position: sticky;
  top: 18px;
  z-index: 6;
  min-height: 720px;
  margin: 0 18px;
  border-radius: 24px 24px 0 0;
  background: #142a2e;
  color: #ebf4f2;
  padding: 35px 48px 45px;
  box-shadow: 0 -18px 40px #0002;
  overflow: hidden;
}
.section-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: 0.4px;
}
.section-top p {
  margin: 0;
}
.season-card h2 {
  font-size: clamp(70px, 8vw, 130px);
  line-height: 0.9;
  letter-spacing: -5px;
  font-weight: 400;
  margin: 90px 0 60px;
}
.season-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: end;
}
.season-bottom > p {
  font-size: 20px;
  line-height: 1.4;
  max-width: 350px;
}
.season-bottom dl {
  display: flex;
  gap: 55px;
  margin: 0;
}
.season-bottom dt {
  font-size: 10px;
  color: #a9c6c4;
}
.season-bottom dd {
  font-size: 55px;
  letter-spacing: -3px;
  margin: 20px 0 0;
}
.circuit-card {
  z-index: 7;
  background: #b8e7d8;
  color: #142a2e;
  top: 36px;
  min-height: 740px;
}
.circuit-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.circuit-card h2 {
  font-size: clamp(60px, 6.5vw, 100px);
  margin: 100px 0 40px;
}
.circuit-card p {
  font-size: 16px;
  line-height: 1.4;
}
.circuit-card .section-top p {
  font-size: 11px;
}
.circuit-card button {
  background: #142a2e;
  color: #eff8f5;
  border: 0;
  border-radius: 30px;
  padding: 12px 22px;
  font-size: 13px;
  margin-top: 20px;
}
.circuit-card #lap-status {
  font-size: 12px;
  min-height: 18px;
}
.circuit-layout svg {
  width: 100%;
  filter: drop-shadow(0 20px 25px #193c2f13);
}
.track-shadow {
  fill: none;
  stroke: #83b5a6;
  stroke-width: 22;
  stroke-linejoin: round;
}
.track-shadow + #track-line {
  fill: none;
  stroke: #f6fffb;
  stroke-width: 14;
  stroke-linejoin: round;
}
#lap-dot {
  fill: #163c35;
  stroke: #fff;
  stroke-width: 3;
}
.notes-card {
  z-index: 8;
  background: #f0f6f7;
  color: #142a2e;
  top: 54px;
  min-height: 800px;
  padding-bottom: 100px;
}
.notes-card h2 {
  font-size: clamp(65px, 7.5vw, 110px);
}
.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  font-size: 20px;
  line-height: 1.5;
}
.notes-grid p {
  max-width: 440px;
}
.notes-grid > div {
  font-size: 15px;
  align-self: end;
}
.notes-grid a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 5px;
}
@media (max-width: 900px) {
  header {
    padding: 18px 24px;
  }
  nav {
    gap: 24px;
  }
  .driver-hero {
    min-height: 750px;
  }
  .driver-name {
    left: 24px;
    top: 27%;
    width: 190px;
  }
  h1 {
    font-size: 90px;
  }
  .driver-name > p {
    left: 145px;
    font-size: 8px;
  }
  .driver-name ul {
    font-size: 10px;
    margin-top: 40px;
  }
  .portrait {
    width: 1000px;
    max-width: 115vw;
    bottom: -100px;
  }
  .race-card {
    right: 24px;
    top: 35%;
    width: 145px;
  }
  .stats dd {
    font-size: 24px;
  }
  .portrait-controls {
    left: 24px;
  }
  .season-card {
    padding: 30px;
    min-height: 680px;
  }
  .season-bottom {
    gap: 40px;
  }
  .season-bottom dl {
    gap: 25px;
  }
  .season-bottom dd {
    font-size: 42px;
  }
  .circuit-layout {
    gap: 10px;
  }
  .circuit-card h2 {
    font-size: 65px;
  }
  .notes-grid {
    gap: 40px;
  }
}
@media (max-width: 600px) {
  header {
    padding: 10px 18px;
    gap: 15px;
  }
  .logo {
    font-size: 20px;
  }
  nav {
    gap: 14px;
  }
  header a {
    font-size: 9px;
  }
  .garage {
    display: none;
  }
  .driver-hero {
    min-height: 790px;
    height: 100svh;
  }
  .driver-name {
    left: 20px;
    top: 120px;
    width: 200px;
    z-index: 3;
  }
  h1 {
    font-size: 86px;
    letter-spacing: -5px;
    line-height: 0.85;
  }
  .driver-name > p {
    left: 143px;
    top: 3px;
    font-size: 8px;
  }
  .driver-name ul {
    font-size: 9px;
    margin-top: 28px;
    line-height: 1.9;
  }
  .portrait {
    width: 740px;
    max-width: none;
    bottom: -60px;
    left: 62%;
  }
  .race-card {
    right: 16px;
    top: auto;
    bottom: 112px;
    width: 122px;
    background: #f0f6f7df;
    border-radius: 5px;
  }
  .race-next {
    padding: 9px;
  }
  .race-next svg {
    width: 65px;
  }
  .stats {
    padding: 9px;
  }
  .label {
    font-size: 8px !important;
    margin-bottom: 9px !important;
  }
  .race-next h2,
  .race-next > p {
    font-size: 8px;
  }
  .stats dd {
    font-size: 21px;
    letter-spacing: -1px;
  }
  .stats dt {
    font-size: 6px;
  }
  .stats dl {
    gap: 8px;
  }
  .portrait-controls {
    left: 20px;
    bottom: 28px;
  }
  .portrait-controls p {
    max-width: 140px;
    font-size: 10px;
  }
  .portrait-controls button {
    font-size: 11px;
    background: #f0f6f7;
  }
  .scroll-note {
    display: none;
  }
  .season-card {
    margin: 0 8px;
    top: 10px;
    min-height: 760px;
    border-radius: 20px 20px 0 0;
    padding: 26px 22px 45px;
  }
  .section-top {
    font-size: 9px;
  }
  .season-card h2 {
    font-size: 67px;
    letter-spacing: -3.5px;
    margin: 85px 0 40px;
  }
  .season-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .season-bottom > p {
    font-size: 18px;
    max-width: 280px;
  }
  .season-bottom dl {
    gap: 34px;
  }
  .season-bottom dd {
    font-size: 43px;
  }
  .circuit-card {
    top: 20px;
  }
  .circuit-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .circuit-card h2 {
    font-size: 64px;
    margin: 60px 0 25px;
  }
  .circuit-card p {
    font-size: 14px;
  }
  .circuit-layout svg {
    max-height: 260px;
  }
  .notes-card {
    top: 30px;
    min-height: 900px;
  }
  .notes-card h2 {
    font-size: 57px;
    margin-top: 85px;
  }
  .notes-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    font-size: 18px;
  }
  .notes-grid > div {
    font-size: 14px;
  }
  .tools {
    right: 12px;
    bottom: 12px;
  }
  .tools button {
    font-size: 10px;
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .driver-hero,
  .season-card {
    position: relative;
    top: auto;
  }
  .portrait canvas {
    transition: none;
  }
}

@media (max-width: 600px) {
  .portrait {
    bottom: -240px;
  }
  .race-card {
    top: 118px;
    bottom: auto;
  }
  .driver-name h1 {
    font-size: 76px;
  }
  .portrait-controls p {
    color: #f0f6f7;
    background: #142a2ee8;
    padding: 5px 8px;
    border-radius: 4px;
  }
  .stats dt {
    font-size: 8px;
  }
}

.driver-name h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .driver-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    grid-template-rows: auto auto 470px;
    height: auto;
    min-height: 100svh;
    max-height: none;
  }
  .driver-hero header {
    grid-column: 1 / 3;
  }
  .driver-name {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    left: auto;
    top: auto;
    margin: 50px 14px 0 20px;
    width: auto;
  }
  .driver-name > p {
    left: auto;
    right: 0;
  }
  .race-card {
    position: relative;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    top: auto;
    right: auto;
    bottom: auto;
    margin: 50px 16px 0 0;
  }
  .portrait {
    position: relative;
    grid-column: 1 / 3;
    grid-row: 3;
    align-self: start;
    bottom: auto;
    margin-top: -30px;
  }
}
