:root {
  color-scheme: light;
  --ink: #17191c;
  --muted: #5f666f;
  --paper: #f6f3ec;
  --white: #fffdf8;
  --line: rgba(23, 25, 28, 0.14);
  --teal: #0f766e;
  --red: #b43a2f;
  --gold: #d99a12;
  --blue: #285c8f;
  --shadow: 0 22px 70px rgba(23, 25, 28, 0.18);
  --font-main: "SFMono-Regular", "Roboto Mono", "Cascadia Code", "Liberation Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
}

#app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: absolute;
  inset: 18px 22px auto;
  z-index: 10;
  display: flex;
  align-items: center;
  color: var(--white);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-weight: 800;
}

.brand-logo {
  display: inline-flex;
  color: var(--logo-gold, var(--gold));
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  overflow: visible;
}

.brand-mark rect,
.brand-mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark rect {
  stroke-width: 2.2;
}

.brand-mark path {
  stroke-width: 5.4;
}

.brand-mark circle {
  fill: #111315;
  stroke: currentColor;
  stroke-width: 4.4;
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  min-width: 14ch;
  padding-bottom: 0;
  color: var(--white);
  font-family: "Courier New", Courier, var(--font-main);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
}

.brand-wordmark-text {
  display: inline-block;
  min-width: 0;
}

.hero {
  position: relative;
  min-height: clamp(40vh, 46vw, 50vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111315;
  color: var(--white);
}

#build-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 19, 21, 0.94) 0%, rgba(17, 19, 21, 0.56) 48%, rgba(17, 19, 21, 0.1) 100%),
    linear-gradient(0deg, rgba(17, 19, 21, 0.92) 0%, rgba(17, 19, 21, 0.08) 46%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 44px));
  margin: 0 0 clamp(34px, 5vh, 52px) clamp(22px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  margin-top: 0;
}

.hero-lede {
  max-width: none;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  line-height: 1.55;
  white-space: nowrap;
}

.section {
  padding: clamp(52px, 7vw, 88px) clamp(22px, 6vw, 88px);
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.work-section {
  flex: 1;
  background: var(--white);
}

.project-library-head {
  margin-bottom: 10px;
}

.project-library-head .eyebrow {
  margin-bottom: 0;
}

.project-library-head .section-heading {
  margin-bottom: 0;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 26px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 9px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) minmax(280px, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  min-height: 124px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: var(--white);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.timeline-item:hover,
.timeline-item:focus-visible {
  background: #f8fbf8;
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-4px);
}

.timeline-dot {
  position: absolute;
  left: -24px;
  width: 18px;
  height: 18px;
  border: 4px solid var(--white);
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--line);
}

.project-name {
  font-weight: 800;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.project-copy {
  color: var(--muted);
  line-height: 1.55;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: 26px clamp(22px, 6vw, 88px);
  scroll-margin-top: 92px;
  background: var(--ink);
  color: rgba(255, 253, 248, 0.72);
  font-size: 0.9rem;
}

.site-footer > * {
  flex: 0 0 auto;
  min-width: 0;
  white-space: nowrap;
}

.footer-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  color: var(--white);
  mix-blend-mode: normal;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
}

.footer-brand .brand-wordmark {
  font-size: 0.92rem;
}

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

  .timeline-item {
    transition: none;
  }

  .timeline-item:hover,
  .timeline-item:focus-visible {
    transform: none;
  }
}

@media (max-width: 820px) {
  .site-header {
    inset: 12px 14px auto;
  }

  .hero {
    min-height: 50vh;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(17, 19, 21, 0.98), rgba(17, 19, 21, 0.52)),
      linear-gradient(0deg, rgba(17, 19, 21, 0.94), rgba(17, 19, 21, 0.34));
  }

  #build-scene {
    opacity: 0.58;
  }

  .hero-copy {
    width: min(100% - 28px, 680px);
    margin: 0 14px 42px;
  }

  .hero-lede {
    white-space: normal;
  }

  .timeline-list {
    padding-left: 20px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    min-height: 150px;
    gap: 16px;
  }

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

  .site-footer > * {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-wordmark {
    min-width: 14ch;
    font-size: 0.82rem;
  }

}
