:root {
  color-scheme: dark;
  --ink: #11110f;
  --ink-soft: #23231f;
  --paper: #f7f5ed;
  --paper-deep: #e7e2d3;
  --line: rgba(17, 17, 15, 0.18);
  --line-dark: rgba(247, 245, 237, 0.18);
  --green: #2f6b4f;
  --green-bright: #9bdc54;
  --blue: #286b75;
  --red: #df4d34;
  --yellow: #efc94c;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--green-bright);
}

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

#studio,
#ventures,
#thesis,
#contact {
  scroll-margin-top: 86px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 14px 34px;
  color: var(--paper);
  background: rgba(17, 17, 15, 0.82);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: blur(18px);
}

.brand-mark,
.nav-links,
.hero-actions,
.button,
.funnel-map,
.build-log-inner,
.contact-block {
  display: flex;
  align-items: center;
}

.brand-mark {
  justify-self: start;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--ink);
  background: var(--green-bright);
  border: 1px solid rgba(247, 245, 237, 0.3);
  border-radius: 4px;
}

.nav-links {
  justify-self: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}

.nav-links a,
.nav-action {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-action:hover,
.nav-action:focus-visible {
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.nav-action {
  justify-self: end;
  border: 1px solid var(--line-dark);
}

.hero {
  position: relative;
  min-height: 82svh;
  padding: 126px 34px 74px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

#signal-canvas,
.hero-texture {
  position: absolute;
  inset: 0;
}

#signal-canvas {
  width: 100%;
  height: 100%;
}

.hero-texture {
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 245, 237, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(247, 245, 237, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 52px;
  align-items: end;
  width: min(1180px, 100%);
  min-height: 540px;
  margin: 0 auto;
}

.eyebrow,
.section-kicker,
.readout-label,
.venture-type {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.eyebrow,
.readout-label {
  color: var(--green-bright);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 0.96;
}

h1 {
  max-width: 8ch;
  font-size: 108px;
  white-space: nowrap;
}

h2 {
  max-width: 13ch;
  font-size: 64px;
}

h3 {
  font-size: 36px;
}

.lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(247, 245, 237, 0.86);
  font-size: 25px;
  line-height: 1.32;
}

.hero-copy {
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.46);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--ink);
  background: var(--green-bright);
  border: 1px solid var(--green-bright);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
}

.button-secondary {
  color: var(--paper);
  background: rgba(247, 245, 237, 0.04);
  border: 1px solid var(--line-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.hero-readout {
  padding: 0 0 6px;
}

.signal-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.signal-list li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}

.signal-list span {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.signal-list strong,
.signal-list em {
  display: block;
  min-width: 0;
}

.signal-list strong {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.signal-list em {
  margin-top: 6px;
  color: rgba(247, 245, 237, 0.68);
  font-style: normal;
}

.section-shell {
  width: min(1180px, calc(100% - 68px));
  margin: 0 auto;
}

.studio-band {
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  border-bottom: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 64px;
  padding: 88px 0;
}

.section-kicker {
  color: var(--red);
}

.studio-copy {
  display: grid;
  gap: 18px;
  align-self: end;
}

.studio-copy p,
.thesis-copy p,
.contact-block p {
  margin: 0;
  color: rgba(17, 17, 15, 0.74);
  font-size: 20px;
  line-height: 1.5;
}

.portfolio {
  padding: 92px 0 104px;
  background: var(--paper-deep);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 38px;
}

.section-heading h2 {
  max-width: 15ch;
}

.section-heading::after {
  display: block;
  width: min(560px, 100%);
  height: 8px;
  content: "";
  background:
    linear-gradient(90deg, var(--red) 0 30%, var(--yellow) 30% 54%, var(--green) 54% 78%, var(--blue) 78% 100%);
  border-radius: 2px;
}

.venture-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.venture-card {
  position: relative;
  grid-column: span 2;
  display: grid;
  min-height: 348px;
  padding: 22px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(17, 17, 15, 0.16);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(17, 17, 15, 0.08);
}

.venture-card:nth-child(4),
.venture-card:nth-child(5) {
  grid-column: span 3;
}

.venture-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 17, 15, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  border-radius: inherit;
  opacity: 0.28;
}

.venture-card > * {
  position: relative;
}

.card-index {
  width: max-content;
  margin-bottom: 46px;
  padding: 5px 8px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.venture-type {
  margin-bottom: 10px;
  color: var(--green);
}

.venture-card p:not(.venture-type) {
  margin: 18px 0 28px;
  color: rgba(17, 17, 15, 0.72);
}

.venture-card a {
  align-self: end;
  width: max-content;
  max-width: 100%;
  padding-bottom: 5px;
  border-bottom: 2px solid currentColor;
  font-size: 14px;
  font-weight: 850;
}

.venture-card a:hover,
.venture-card a:focus-visible {
  color: var(--red);
  outline: none;
}

.venture-card.is-warm {
  background: #f1c75e;
}

.venture-card.is-green {
  color: var(--paper);
  background: #214f3a;
}

.venture-card.is-green .venture-type,
.venture-card.is-green p,
.venture-card.is-green .card-index {
  color: var(--paper);
}

.venture-card.is-green .card-index {
  background: rgba(247, 245, 237, 0.14);
}

.venture-card.is-blue {
  color: var(--paper);
  background: #235e68;
}

.venture-card.is-blue .venture-type,
.venture-card.is-blue p,
.venture-card.is-blue .card-index {
  color: var(--paper);
}

.venture-card.is-blue .card-index {
  background: rgba(247, 245, 237, 0.14);
}

.venture-card.is-open {
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.1) 1px, transparent 1px),
    #f4f2e7;
  background-size: 20px 20px;
  border-style: dashed;
}

.thesis {
  padding: 98px 0;
  color: var(--paper);
  background: var(--ink);
}

.thesis-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 0.64fr);
  gap: 70px;
  align-items: center;
}

.thesis-copy h2 {
  max-width: 14ch;
}

.thesis-copy p {
  max-width: 760px;
  margin-top: 28px;
  color: rgba(247, 245, 237, 0.74);
}

.funnel-map {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}

.funnel-map div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line-dark);
}

.funnel-map span {
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.funnel-map strong {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1;
}

.build-log {
  padding: 88px 0 98px;
  background: var(--green-bright);
  border-top: 1px solid rgba(17, 17, 15, 0.2);
}

.build-log-inner {
  justify-content: space-between;
  gap: 56px;
}

.build-log h2 {
  max-width: 11ch;
}

.contact-block {
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  max-width: 470px;
}

.contact-block .button-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 1180px) {
  h1 {
    font-size: 128px;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 112px 22px 52px;
  }

  .hero-inner,
  .studio-grid,
  .section-heading,
  .thesis-layout,
  .build-log-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 44px;
    min-height: 0;
  }

  h1 {
    font-size: 88px;
  }

  h2 {
    max-width: 14ch;
    font-size: 50px;
  }

  .lede {
    font-size: 22px;
  }

  .section-shell {
    width: min(100% - 44px, 760px);
  }

  .studio-grid,
  .portfolio,
  .thesis,
  .build-log {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .venture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .venture-card,
  .venture-card:nth-child(4),
  .venture-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 64px;
  }

  .brand-mark {
    font-size: 13px;
  }

  .nav-action {
    padding-inline: 11px;
  }

  .hero {
    min-height: 82svh;
    padding: 94px 18px 44px;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 39px;
  }

  h3 {
    font-size: 30px;
  }

  .lede,
  .studio-copy p,
  .thesis-copy p,
  .contact-block p {
    font-size: 18px;
  }

  .hero-actions,
  .contact-block {
    align-items: stretch;
  }

  .hero-inner {
    gap: 28px;
  }

  .hero-readout {
    padding-bottom: 0;
  }

  .readout-label {
    margin-bottom: 12px;
  }

  .signal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
  }

  .signal-list li {
    display: block;
    padding: 0;
    border: 0;
  }

  .signal-list span,
  .signal-list em {
    display: none;
  }

  .signal-list strong {
    display: block;
    padding: 8px 10px;
    color: var(--paper);
    background: rgba(247, 245, 237, 0.08);
    border: 1px solid var(--line-dark);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1;
  }

  .button {
    width: 100%;
  }

  .signal-list li {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .section-shell {
    width: calc(100% - 36px);
  }

  .venture-grid {
    grid-template-columns: 1fr;
  }

  .venture-card {
    min-height: 316px;
  }

  .funnel-map strong {
    font-size: 28px;
  }
}
