@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("./inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111111;
  --paper: #f4efd8;
  --yellow: #f6d84b;
  --muted: rgba(17, 17, 17, 0.62);
  --line: rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 4vw, 58px);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  mix-blend-mode: difference;
}

.logo,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  background: #f1ecd7;
  padding: 120px clamp(20px, 5vw, 72px) clamp(28px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  text-align: left;
  color: white;
  mix-blend-mode: difference;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: clamp(22px, 3vw, 38px);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.04;
  font-weight: 700;
  max-width: 920px;
  color: inherit;
}

.hero-copy p {
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 0;
  color: inherit;
  opacity: 1;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.35;
  font-weight: 500;
}


.hero-logo-orbit {
  position: fixed;
  left: 72%;
  top: 52%;
  z-index: 1;
  display: grid;
  width: clamp(280px, 38vw, 560px);
  height: clamp(280px, 38vw, 560px);
  place-items: center;
  border: clamp(10px, 1.5vw, 20px) solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: clamp(132px, 19vw, 280px);
  font-weight: 900;
  line-height: 1;
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  backface-visibility: visible;
  animation: logo-turnstile 12s linear infinite;
}

.content-section {
  position: relative;
  z-index: 3;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(160px, 0.28fr) minmax(0, 1fr);
  gap: clamp(30px, 7vw, 120px);
  padding: clamp(80px, 11vw, 160px) clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-label {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h2 {
  max-width: 980px;
  margin-bottom: 28px;
  font-size: clamp(34px, 4.5vw, 68px);
  line-height: 0.98;
  font-weight: 900;
}

.content-section p:not(.section-label) {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.32;
  font-weight: 700;
}

.content-section p:not(.section-label):last-child {
  margin-bottom: 0;
}

#experience {
  background: var(--yellow);
}

#experience {
  grid-template-rows: auto auto;
  row-gap: 12px;
}

#experience > .companies-label {
  grid-column: 1 / -1;
}

#experience > .logo-marquee {
  grid-column: 1 / -1;
}

#experience p:not(.section-label) {
  color: rgba(17, 17, 17, 0.72);
}

.companies-label {
  margin-top: clamp(28px, 4vw, 48px);
  margin-bottom: 12px;
  color: rgba(17, 17, 17, 0.72);
}

.logo-marquee {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(17, 17, 17, 0.12);
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding-block: 14px;
  animation: logo-scroll 42s linear infinite;
}

.logo-tile {
  display: grid;
  width: clamp(180px, 17vw, 260px);
  min-height: 128px;
  flex: 0 0 auto;
  place-items: center;
  padding: 26px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(17, 17, 17, 0.12);
}

.logo-tile a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.logo-tile a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 8px;
}

.logo-tile img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 64px;
  filter: grayscale(1);
  opacity: 0.62;
  object-fit: contain;
}

@keyframes logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 6px));
  }
}

.contact-section {
  background: var(--yellow);
}

.contact-section a {
  display: inline-block;
  margin-top: 24px;
  border-bottom: 0.08em solid currentColor;
  font-size: clamp(30px, 5vw, 72px);
  line-height: 1;
  font-weight: 900;
}

.site-footer {
  position: relative;
  z-index: 3;
  padding: 22px clamp(20px, 5vw, 72px);
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

@keyframes logo-turnstile {
  from {
    transform: translate(-50%, -50%) rotateY(0deg);
  }

  to {
    transform: translate(-50%, -50%) rotateY(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-orbit {
    animation: none;
  }

  .logo-track {
    animation: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 18px;
  }

  .site-header nav {
    gap: 12px;
    font-size: 11px;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-logo-orbit {
    top: 34%;
    opacity: 0.72;
  }

  .content-section {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 72px;
  }
}
