:root {
  --portfolio-ink: #08090c;
  --portfolio-paper: #f5f0e8;
  --line: rgba(255, 255, 255, 0.035);
  --muted: rgba(245, 240, 232, 0.68);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--portfolio-ink);
  color: var(--portfolio-paper);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.flow-art {
  width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, #0f1117 0%, var(--portfolio-ink) 54%, #0b0c10 100%);
}

.flow-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.flow-art-container {
  --flow-pad: 56px;
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: var(--flow-pad);
  transform-origin: bottom left;
  will-change: transform;
}

.kicker,
.project-hero__role {
  margin: 0;
  color: rgba(245, 240, 232, 0.54);
  font: 700 11px/1.2 Inter, system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: end;
  background:
    radial-gradient(circle at 76% 12%, rgba(245, 240, 232, 0.08), transparent 30%),
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 78px 78px,
    linear-gradient(180deg, #101219 0%, #08090c 100%);
}

.intro-panel__copy {
  max-width: 740px;
}

.intro-panel h1 {
  max-width: 10.5ch;
  margin: 18px 0 0;
  font-family: "Source Serif 4", charter, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 8.5rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0;
}

.intro-panel__copy > p:not(.kicker) {
  max-width: 38rem;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.68;
}

.door-index {
  display: grid;
  gap: 1px;
  width: 100%;
  border: 1px solid rgba(245, 240, 232, 0.14);
  background: rgba(245, 240, 232, 0.08);
}

.door-index a {
  display: flex;
  min-height: 54px;
  gap: 18px;
  align-items: center;
  padding: 15px 16px;
  background: rgba(8, 9, 12, 0.7);
  color: rgba(245, 240, 232, 0.74);
  font-size: 14px;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.door-index a:hover,
.door-index a:focus-visible {
  background: rgba(245, 240, 232, 0.08);
  color: var(--portfolio-paper);
}

.door-index span {
  color: rgba(245, 240, 232, 0.42);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.project-section {
  background: #08090c;
}

.project-hero {
  margin: 0;
  border: 1px solid rgba(245, 240, 232, 0.16);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--site-accent) 14%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--site-surface) 76%, #08090c), #08090c);
  box-shadow: 0 -32px 90px rgba(0, 0, 0, 0.26);
}

.project-section--post-pilot {
  --site-accent: #f3efe7;
  --site-surface: #151515;
}

.project-section--book-cook {
  --site-accent: #e9574f;
  --site-surface: #fff8f1;
}

.project-section--fly {
  --site-accent: #7a8cff;
  --site-surface: #101828;
}

.project-hero__chrome {
  display: flex;
  gap: 8px;
  align-items: center;
  height: 40px;
  margin: calc(var(--flow-pad) * -1) calc(var(--flow-pad) * -1) 0;
  padding: 0 28px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.project-hero__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(245, 240, 232, 0.28);
}

.project-hero__chrome p {
  margin: 0 0 0 8px;
  color: rgba(245, 240, 232, 0.5);
  font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow-wrap: anywhere;
}

.project-hero__content {
  display: grid;
  grid-template-columns: minmax(72px, 0.22fr) minmax(0, 1fr) minmax(240px, 0.5fr);
  gap: 72px;
  align-items: end;
}

.project-hero__number {
  margin: 0;
  color: rgba(245, 240, 232, 0.24);
  font: 800 8rem/0.85 Inter, system-ui, sans-serif;
  letter-spacing: 0;
}

.project-hero__main {
  min-width: 0;
}

.project-hero__role {
  color: color-mix(in srgb, var(--site-accent) 72%, white);
}

.project-hero h2 {
  margin: 18px 0 0;
  color: #fff;
  font-family: "Source Serif 4", charter, Georgia, Cambria, "Times New Roman", Times, serif;
  font-size: 12rem;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0;
}

.project-hero__main > p:not(.project-hero__role) {
  max-width: 48rem;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.35rem;
  line-height: 1.55;
}

.project-hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-hero__notes li {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.76);
  font: 600 12px/1 Inter, system-ui, sans-serif;
}

.project-hero__launch {
  align-self: flex-start;
  color: #fff;
  border-bottom: 1px solid color-mix(in srgb, var(--site-accent) 80%, white);
  font: 700 14px/1.5 Inter, system-ui, sans-serif;
  text-decoration: none;
}

.project-hero__launch:hover,
.project-hero__launch:focus-visible {
  color: color-mix(in srgb, var(--site-accent) 76%, white);
}

@media (max-width: 980px) {
  .flow-art-container {
    --flow-pad: 44px;
    gap: 36px;
  }

  .intro-panel {
    grid-template-columns: 1fr;
    align-content: end;
  }

  .intro-panel h1 {
    max-width: 10ch;
    font-size: 6.75rem;
  }

  .door-index {
    max-width: 420px;
  }

  .project-hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .project-hero__number {
    font-size: 5.75rem;
  }

  .project-hero h2 {
    max-width: 8.5ch;
    font-size: 7.25rem;
  }

  .project-hero__notes {
    align-self: start;
  }
}

@media (max-width: 680px) {
  .flow-art-container {
    --flow-pad: 20px;
    gap: 28px;
    padding: 32px 20px;
  }

  .intro-panel {
    justify-content: end;
  }

  .intro-panel h1 {
    max-width: 10.2ch;
    font-size: 4rem;
    line-height: 0.94;
  }

  .intro-panel__copy > p:not(.kicker) {
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .door-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
  }

  .door-index a {
    display: grid;
    align-content: start;
    min-height: 68px;
    gap: 7px;
    padding: 12px;
    font-size: 13px;
  }

  .door-index span {
    font-size: 10px;
  }

  .project-hero__chrome {
    height: 36px;
    margin: -32px calc(var(--flow-pad) * -1) 0;
    padding-inline: 14px;
  }

  .project-hero__content {
    gap: 22px;
  }

  .project-hero__number {
    font-size: 4.25rem;
  }

  .project-hero__role {
    font-size: 10px;
    letter-spacing: 0;
  }

  .project-hero h2 {
    max-width: 9ch;
    margin-top: 14px;
    font-size: 4.65rem;
    line-height: 0.86;
  }

  .project-hero__main > p:not(.project-hero__role) {
    margin-top: 20px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .project-hero__notes {
    gap: 8px;
  }

  .project-hero__notes li {
    padding: 7px 9px;
    font-size: 10.5px;
  }
}

@media (max-width: 380px) {
  .flow-art-container {
    --flow-pad: 16px;
    padding-inline: 16px;
  }

  .intro-panel h1 {
    font-size: 3.2rem;
  }

  .project-hero__chrome {
    margin-inline: calc(var(--flow-pad) * -1);
  }

  .project-hero h2 {
    font-size: 4rem;
  }
}

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

  .flow-art-container {
    transform: none !important;
  }
}
