:root {
  color-scheme: dark;
  --ink: #f3efe7;
  --muted: rgba(235, 230, 220, 0.66);
  --quiet: rgba(235, 230, 220, 0.45);
  --hairline: rgba(235, 230, 220, 0.18);
  --orange: #f06426;
  --canvas: #0a0a09;
  --gutter: clamp(1.45rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.9rem;
  transform: translateY(-160%);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--ink);
  color: var(--canvas);
  font-size: 0.8rem;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow: hidden;
  background: var(--canvas);
}

.hero-art {
  position: absolute;
  z-index: -3;
  inset: 0;
  overflow: hidden;
}

.hero-art img,
.hero-art video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(0.82) contrast(1.08) brightness(0.74);
}

.hero-art img {
  z-index: 0;
}

.hero-art video {
  z-index: 1;
  opacity: 0;
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-art video.is-playing {
  opacity: 1;
}

.hero-art::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.7'/%3E%3C/svg%3E");
  background-size: 11rem 11rem;
  mix-blend-mode: soft-light;
  opacity: 0.15;
  pointer-events: none;
}

.art-grade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.7) 0%, rgba(8, 8, 7, 0.58) 22%, rgba(8, 8, 7, 0.4) 39%, rgba(8, 8, 7, 0.14) 57%, rgba(8, 8, 7, 0.02) 76%),
    linear-gradient(180deg, rgba(7, 7, 6, 0.28) 0%, transparent 24%, transparent 68%, rgba(7, 7, 6, 0.48) 100%);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-inline: var(--gutter);
}

.site-header {
  min-height: clamp(5.5rem, 10vh, 7.5rem);
  padding-top: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-crop {
  position: relative;
  display: block;
  width: 7.4rem;
  height: 1.58rem;
  overflow: hidden;
}

.brand-crop img {
  position: absolute;
  width: 9.18rem;
  max-width: none;
  top: -1.7rem;
  left: -0.77rem;
  filter: invert(96%) sepia(9%) saturate(260%) hue-rotate(350deg) brightness(101%) contrast(91%);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 3vw, 3rem);
}

.primary-nav a,
.site-footer a {
  position: relative;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--ink);
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(1rem, 3vh, 2rem) var(--gutter) clamp(2rem, 5vh, 4.5rem);
}

.statement {
  width: min(59rem, 70vw);
  margin-top: clamp(1rem, 2.5vh, 2.25rem);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 42.5rem;
  font-size: clamp(2.5rem, 3.15vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.07;
  text-wrap: balance;
}

.supporting-copy,
.closing-statement {
  max-width: 38rem;
  color: rgba(235, 230, 220, 0.72);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.58;
}

.supporting-copy {
  margin-top: clamp(2rem, 3.5vh, 2.8rem);
}

.closing-statement {
  max-width: 36rem;
  margin-top: clamp(1.75rem, 3.25vh, 2.5rem);
  color: rgba(243, 239, 231, 0.9);
}

.backgrounds {
  width: 100%;
  max-width: 57rem;
  margin-top: clamp(2.8rem, 5vh, 3.75rem);
}

.backgrounds h2 {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--hairline);
  color: rgba(235, 230, 220, 0.56);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.3vw, 1.25rem);
  min-height: 5.25rem;
  margin: 0;
  padding: 1.3rem 0 0;
  list-style: none;
}

.logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.logo img {
  display: block;
  width: auto;
  max-width: 7rem;
  max-height: 2.2rem;
  object-fit: contain;
  object-position: left center;
  opacity: 0.75;
  filter: grayscale(1) brightness(0) invert(1);
}

.logo--stanford img {
  max-height: 1.5rem;
}

.logo--berkeley img {
  max-height: 1.95rem;
}

.logo--tum img {
  max-width: 4.25rem;
  max-height: 1.7rem;
}

.logo--imo {
  gap: 0.62rem;
}

.logo--imo img {
  flex: 0 0 auto;
  width: 2.5rem;
  max-width: 2.5rem;
  max-height: 2.25rem;
}

.logo--imo span {
  max-width: 7.8rem;
  color: rgba(243, 239, 231, 0.72);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.25;
}

.logo--amazon img {
  max-width: 5.7rem;
  max-height: 1.65rem;
}

.logo--tesla img {
  max-width: 6rem;
  max-height: 2.05rem;
}

.logo--waymo img {
  max-width: 7.95rem;
  max-height: 2.4rem;
}

.site-footer {
  min-height: 3.8rem;
  padding-bottom: 0.45rem;
  color: var(--quiet);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
}

.footer-location {
  margin-left: 0.45rem;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  font-size: inherit;
}

@media (max-width: 980px) {
  .statement {
    width: min(52rem, 84vw);
  }

  h1 {
    font-size: clamp(2.4rem, 4.6vw, 2.85rem);
  }

  .logo-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(5.2rem, 1fr));
    gap: 1.65rem 2rem;
    padding-top: 1.6rem;
  }

}

@media (max-width: 720px) {
  :root {
    --gutter: clamp(1.25rem, 6vw, 2.2rem);
  }

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

  .hero-art {
    height: 58svh;
    min-height: 29rem;
  }

  .hero-art img,
  .hero-art video {
    object-position: 54% 50%;
    filter: saturate(0.9) contrast(1.04) brightness(0.86);
  }

  .art-grade {
    background:
      linear-gradient(180deg, rgba(7, 7, 6, 0.12) 0%, rgba(7, 7, 6, 0.48) 36%, rgba(10, 10, 9, 0.94) 58%, var(--canvas) 72%),
      linear-gradient(90deg, rgba(7, 7, 6, 0.62) 0%, rgba(7, 7, 6, 0.2) 76%);
  }

  .site-header {
    align-items: flex-start;
    min-height: 6.2rem;
    padding-top: 1.8rem;
  }

  .primary-nav {
    gap: 1.3rem;
    padding-top: 0.05rem;
  }

  .primary-nav a {
    font-size: 0.68rem;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: clamp(11.5rem, 26svh, 15rem);
    padding-bottom: 3.5rem;
  }

  .statement {
    width: 100%;
    margin: 0;
  }

  h1 {
    max-width: 16ch;
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    line-height: 1.06;
  }

.supporting-copy,
.closing-statement {
    max-width: 32rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .supporting-copy {
    margin-top: 2.25rem;
  }

  .closing-statement {
    margin-top: 2rem;
  }

  .backgrounds {
    margin-top: 3.5rem;
  }

  .logo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.6rem;
    padding-top: 1.65rem;
  }

  .logo img {
    max-width: 6.5rem;
  }

  .logo--imo {
    align-items: center;
  }

  .logo--imo span {
    max-width: 6.3rem;
    font-size: 0.63rem;
  }

  .site-footer {
    align-items: flex-end;
    min-height: 5rem;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 430px) {
  .brand-crop {
    width: 6.6rem;
    height: 1.45rem;
  }

  .brand-crop img {
    width: 8.2rem;
    top: -1.52rem;
    left: -0.7rem;
  }

  .logo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.9rem 2rem;
  }

  .site-footer {
    gap: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .hero-video {
    display: none;
  }
}
