:root {
  color-scheme: light dark;
  --ink: #121014;
  --ink-soft: #211b20;
  --paper: #f7f4ee;
  --paper-strong: #fffaf1;
  --line-dark: rgba(18, 16, 20, 0.18);
  --line-light: rgba(255, 250, 241, 0.25);
  --mint: #31d9b1;
  --coral: #ff684f;
  --gold: #f5c85b;
  --blue: #3168f4;
  --rose: #ee8aae;
  --shadow: 0 24px 70px rgba(18, 16, 20, 0.22);
  --radius: 8px;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --body: "Avenir Next", "Segoe UI", Tahoma, sans-serif;
  --mono: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 20, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(18, 16, 20, 0.04) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 30;
  background: var(--paper-strong);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 10px 14px;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 16px 18px auto;
  z-index: 20;
}

.nav-shell {
  align-items: center;
  background: rgba(18, 16, 20, 0.78);
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
  color: var(--paper-strong);
  display: grid;
  gap: 16px;
  grid-template-columns: max-content 1fr max-content;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 60px;
  padding: 9px 10px 9px 12px;
  backdrop-filter: blur(16px);
}

.brand-link,
.nav-links,
.hero-actions,
.project-tags,
.mini-spec,
.bot-stack {
  align-items: center;
  display: flex;
}

.brand-link {
  gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--mint);
  border: 1px solid rgba(18, 16, 20, 0.4);
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.78rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nav-links {
  gap: 6px;
  justify-content: center;
}

.nav-links a,
.nav-cta,
.button,
.text-link {
  font-weight: 700;
  text-decoration: none;
}

.nav-links a {
  border-radius: 4px;
  color: rgba(255, 250, 241, 0.78);
  padding: 10px 13px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 250, 241, 0.1);
  color: var(--paper-strong);
}

.nav-cta {
  background: var(--coral);
  border-radius: 4px;
  color: var(--ink);
  padding: 10px 14px;
}

.hero {
  background: var(--ink);
  color: var(--paper-strong);
  min-height: 660px;
  height: 86svh;
  max-height: 920px;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-scrim,
.hero-grid {
  inset: 0;
  position: absolute;
}

.hero-media {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(18, 16, 20, 0.92), rgba(18, 16, 20, 0.62) 38%, rgba(18, 16, 20, 0.18) 72%),
    linear-gradient(180deg, rgba(18, 16, 20, 0.55), rgba(18, 16, 20, 0.08) 55%, rgba(18, 16, 20, 0.68));
}

.hero-grid {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 241, 0.08) 1px, transparent 1px);
  background-size: 82px 82px;
  mix-blend-mode: screen;
  opacity: 0.42;
}

.hero-content {
  max-width: 790px;
  padding: 150px 26px 120px max(26px, calc((100vw - 1180px) / 2 + 26px));
  position: relative;
  z-index: 2;
}

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  font-size: 7rem;
  margin-bottom: 16px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

h2 {
  font-size: 3.4rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.hero-kicker {
  color: var(--mint);
  font-family: var(--display);
  font-size: 2.1rem;
  line-height: 1.12;
  margin-bottom: 18px;
  max-width: 620px;
}

.hero-copy {
  color: rgba(255, 250, 241, 0.88);
  font-size: 1.18rem;
  max-width: 680px;
}

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

.button {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button-primary {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--ink);
  box-shadow: 0 16px 34px rgba(49, 217, 177, 0.24);
}

.button-ghost {
  background: rgba(255, 250, 241, 0.08);
  color: var(--paper-strong);
}

.hero-proof {
  align-items: stretch;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  position: absolute;
  right: 0;
  z-index: 3;
}

.hero-proof p {
  border-right: 1px solid var(--line-light);
  border-top: 1px solid var(--line-light);
  margin: 0;
  min-height: 76px;
  padding: 17px 22px;
  background: rgba(18, 16, 20, 0.64);
  backdrop-filter: blur(12px);
}

.hero-proof strong {
  color: var(--gold);
  display: block;
  font-family: var(--mono);
  font-size: 0.76rem;
}

.signal-strip {
  background: var(--coral);
  color: var(--ink);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  min-height: 116px;
}

.signal-strip p {
  align-items: center;
  background: rgba(255, 250, 241, 0.18);
  display: flex;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  padding: 26px;
}

.section {
  padding: 104px max(24px, calc((100vw - 1180px) / 2 + 24px));
}

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

.section-heading p:not(.eyebrow) {
  color: rgba(18, 16, 20, 0.72);
  font-size: 1.08rem;
}

.project-showcase {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.08fr 0.92fr;
}

.feature-project,
.project-card,
.idea-card,
.pipeline-step,
.intake-form,
.brief-output {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-project {
  background: var(--paper-strong);
  display: grid;
  gap: 24px;
  grid-row: span 2;
  grid-template-columns: 1fr;
  min-height: 590px;
  overflow: hidden;
  padding: 34px;
}

.project-copy {
  max-width: 690px;
}

.project-index {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.project-tags,
.mini-spec,
.bot-stack {
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.project-tags span,
.mini-spec span,
.bot-stack span {
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 8px 10px;
}

.text-link {
  color: var(--blue);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--coral);
}

.avatar-stage {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(49, 104, 244, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(49, 104, 244, 0.12) 1px, transparent 1px),
    #efe9df;
  background-size: 28px 28px;
  border: 1px solid rgba(18, 16, 20, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 290px;
  overflow: hidden;
  padding: 18px 18px 0;
}

.avatar-stage img {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(18, 16, 20, 0.2);
  border-radius: 8px 8px 0 0;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.project-card {
  background: var(--ink);
  color: var(--paper-strong);
  min-height: 286px;
  padding: 30px;
}

.project-card p {
  color: rgba(255, 250, 241, 0.82);
}

.project-card .project-index {
  color: var(--gold);
}

.project-card .mini-spec span,
.project-card .bot-stack span {
  border-color: var(--line-light);
}

.project-card-bright {
  background: var(--mint);
  color: var(--ink);
}

.project-card-bright p,
.project-card-bright .project-index {
  color: var(--ink);
}

.project-card-bright .bot-stack span {
  border-color: rgba(18, 16, 20, 0.28);
}

.platform-section {
  background: var(--ink);
  color: var(--paper-strong);
}

.platform-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.72);
}

.pipeline {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.pipeline-step {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 241, 0.06) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 24px 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 285px;
  padding: 28px;
}

.pipeline-step span {
  color: var(--coral);
  display: block;
  font-family: var(--mono);
  font-weight: 900;
  margin-bottom: 60px;
}

.pipeline-step h3 {
  font-size: 1.65rem;
}

.pipeline-step p {
  color: rgba(255, 250, 241, 0.72);
}

.playgrounds-section {
  background: var(--paper-strong);
}

.idea-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.idea-card {
  background: var(--paper);
  min-height: 270px;
  padding: 26px;
}

.idea-card:nth-child(2) {
  border-top: 6px solid var(--blue);
}

.idea-card:nth-child(3) {
  border-top: 6px solid var(--gold);
}

.idea-card:nth-child(4) {
  border-top: 6px solid var(--rose);
}

.idea-card:first-child {
  border-top: 6px solid var(--coral);
}

.cta-section {
  align-items: center;
  background: var(--coral);
  color: var(--ink);
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr max-content;
}

.cta-copy {
  max-width: 780px;
}

.cta-section .eyebrow {
  color: var(--ink);
}

.cta-button {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper-strong);
  min-width: 170px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--paper-strong);
  display: flex;
  justify-content: space-between;
  min-height: 110px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2 + 24px));
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--mint);
  font-weight: 800;
  text-decoration: none;
}

.form-hero {
  background:
    linear-gradient(90deg, rgba(18, 16, 20, 0.88), rgba(18, 16, 20, 0.58)),
    url("assets/mbti-chan-hero.jpg") center / cover;
  color: var(--paper-strong);
  min-height: 500px;
  padding: 150px max(24px, calc((100vw - 1180px) / 2 + 24px)) 80px;
}

.form-hero-copy {
  max-width: 760px;
}

.form-hero h1 {
  font-size: 4.8rem;
}

.form-hero p:not(.eyebrow) {
  color: rgba(255, 250, 241, 0.84);
  font-size: 1.2rem;
  max-width: 680px;
}

.form-section {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.62fr);
  padding: 70px max(24px, calc((100vw - 1180px) / 2 + 24px)) 110px;
}

.intake-form,
.brief-output {
  background: var(--paper-strong);
  padding: 30px;
}

.intake-form {
  display: grid;
  gap: 18px;
}

.form-heading {
  margin-bottom: 8px;
}

.form-heading h2 {
  margin-bottom: 0;
}

.intake-form label,
.intake-form fieldset {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.intake-form input,
.intake-form textarea {
  background: #fffdf8;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  width: 100%;
}

.intake-form textarea {
  resize: vertical;
}

.intake-form input:focus,
.intake-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(49, 104, 244, 0.2);
}

.intake-form fieldset {
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 18px;
}

.intake-form legend {
  font-weight: 900;
  padding: 0 8px;
}

.choice-row {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 34px;
}

.choice-row input {
  min-height: 18px;
  width: 18px;
}

.brief-output {
  align-self: start;
  position: sticky;
  top: 100px;
}

.brief-output pre {
  background: var(--ink);
  border-radius: 8px;
  color: var(--paper-strong);
  font-family: var(--mono);
  font-size: 0.86rem;
  min-height: 360px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.brief-output .button {
  margin-top: 14px;
}

.brief-output .button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .nav-shell {
    grid-template-columns: 1fr max-content;
  }

  .nav-links {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    padding: 142px 24px 210px;
  }

  h1 {
    font-size: 5.3rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .hero-proof,
  .signal-strip,
  .project-showcase,
  .pipeline,
  .idea-grid,
  .cta-section,
  .form-section {
    grid-template-columns: 1fr;
  }

  .hero-proof p {
    min-height: auto;
  }

  .pipeline-step {
    min-height: 220px;
  }

  .pipeline-step span {
    margin-bottom: 36px;
  }

  .brief-output {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header {
    inset: 10px 10px auto;
  }

  .nav-shell {
    min-height: 54px;
  }

  .brand-link {
    font-size: 1rem;
  }

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

  .nav-cta {
    padding: 9px 10px;
  }

  .hero {
    min-height: 830px;
  }

  .hero-media {
    object-position: 56% center;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 16, 20, 0.88), rgba(18, 16, 20, 0.5) 44%, rgba(18, 16, 20, 0.84)),
      linear-gradient(90deg, rgba(18, 16, 20, 0.78), rgba(18, 16, 20, 0.26));
  }

  .hero-content {
    padding: 120px 18px 230px;
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.18rem;
  }

  h3 {
    font-size: 1.62rem;
  }

  .hero-kicker {
    font-size: 1.55rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding: 76px 18px;
  }

  .feature-project,
  .project-card,
  .idea-card,
  .pipeline-step,
  .intake-form,
  .brief-output {
    padding: 22px;
  }

  .avatar-stage {
    gap: 8px;
    min-height: 220px;
    padding: 10px 10px 0;
  }

  .form-hero {
    min-height: 470px;
    padding: 120px 18px 64px;
  }

  .form-hero h1 {
    font-size: 3rem;
  }

  .form-section {
    padding: 54px 18px 78px;
  }

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

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

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