/* Legion. Black field, one grotesk, hairline rules. */
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-tight-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 {
  color-scheme: dark;
  --paper: #070708;
  --ink: #f4f4f2;
  --muted: #c8c8c4;
  --line: rgba(255, 255, 255, 0.16);
  --accent: #f4f4f2;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --pad: 40px;
  --max: 1200px;
  --gap: 24px;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 40px;
  --s6: 48px;
  --s7: 64px;
  --s8: 80px;
  --rule: 1px solid var(--line);
  --display-size: clamp(3.5rem, 7.4vw, 6.4rem);
  --h2: 1.75rem;
  --h3: 1.125rem;
  --body: 1.125rem;
  --small: 0.9375rem;
  --measure: 66ch;
}

@media (max-width: 1279px) {
  :root { --pad: 32px; }
}

@media (max-width: 1023px) {
  :root { --pad: 24px; }
}

@media (max-width: 767px) {
  :root { --pad: 16px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 70% 42% at 78% -8%, rgba(255, 255, 255, 0.045), transparent 55%),
    var(--paper);
}

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

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

a { color: inherit; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: var(--pad);
  top: -48px;
  z-index: 6;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  text-decoration: none;
}

.skip:focus { top: 8px; }

.shell {
  width: min(calc(100% - 2 * var(--pad)), var(--max));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--s4);
}

.c6 { grid-column: span 6; }
.c4 { grid-column: span 4; }

.top { position: relative; }

.bar {
  display: flex;
  align-items: center;
  min-height: 84px;
  gap: var(--s2);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  color: inherit;
  text-decoration: none;
  flex: none;
}

.mark {
  width: auto;
  height: 32px;
  display: block;
  flex: none;
}

.word {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-left: auto;
  margin-right: var(--s1);
}

.links a {
  display: inline-flex;
  align-items: center;
  height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.links a:hover,
.links a[aria-current="page"] { color: var(--ink); }

.menu { display: none; }

.btn,
.start-line a,
.send,
.submit,
.book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  flex: none;
}

.btn:hover,
.start-line a:hover,
.send:hover,
.submit:hover,
.book:hover {
  background: transparent;
  color: var(--ink);
}

.send:disabled,
.submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wrap { padding: 96px 0 112px; }

.home .wrap { padding-top: 112px; }

h1, h2, .manifesto p {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
}

h1, h2, h3 { text-wrap: balance; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-size: var(--display-size);
  line-height: 0.94;
  letter-spacing: -0.048em;
}

.kicker + h1 { margin-top: var(--s2); }

h2 {
  margin: 0;
  font-size: var(--h2);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

h3 {
  margin: var(--s3) 0 0;
  font-family: var(--font);
  font-size: var(--h3);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sub,
.lead {
  margin: var(--s3) 0 0;
  max-width: var(--measure);
  font-size: 1.25rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.sub { color: var(--muted); }

.sub .answer {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.lead { color: var(--ink); }

.idea {
  margin: var(--s6) 0 0;
  max-width: var(--measure);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.teaser {
  margin: var(--s4) 0 0;
  max-width: var(--measure);
}

.measure,
.block p,
.why p,
.keep li,
.outcomes p,
.ladder p,
.manifesto,
.qa p,
.page p,
.small,
.note,
.mail {
  max-width: var(--measure);
}

.outcomes,
.ladder,
.stack,
.manifesto,
.keep {
  margin-top: var(--s6);
}

.outcomes,
.ladder,
.manifesto,
.keep,
.block,
.why {
  border-top: var(--rule);
}

.outcomes,
.ladder,
.manifesto,
.keep { padding-top: var(--s4); }

.block,
.why {
  padding-top: var(--s4);
  margin-top: var(--s4);
}

.block:first-child,
.why:first-child { margin-top: 0; }

.outcomes h2,
.ladder h2,
.block h2,
.why h2,
.keep h2 { margin: 0; }

.outcomes p,
.ladder p,
.block p,
.why p,
.keep li,
.page p,
.qa p {
  margin: var(--s2) 0 0;
  color: var(--muted);
}

.block p + p,
.why p + p,
.page p + p { margin-top: var(--s2); }

.page .lead {
  margin-top: var(--s3);
  color: var(--ink);
}

.beat {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--rule);
}

.beat h2,
.role > h2 { margin: 0; }

.role > h2 {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: var(--rule);
}

.page > h1,
h1.question {
  max-width: 20ch;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.08;
}

.ladder {
  list-style: none;
  padding: var(--s4) 0 0;
  margin-bottom: 0;
}

.keep ul,
ol.work,
ul.work {
  margin: var(--s2) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--s2);
}

.keep li,
ol.work li,
ul.work li {
  margin: 0;
  padding-left: var(--s2);
  border-left: 1px solid var(--line);
}

.manifesto {
  display: grid;
  gap: var(--s4);
}

.manifesto p {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink);
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.small,
.note,
.hint,
.place,
.role-meta {
  margin: var(--s3) 0 0;
  color: var(--muted);
  font-size: var(--small);
  line-height: 1.45;
  letter-spacing: 0;
}

.cta,
.start-line,
.step-actions { margin-top: var(--s5); }

.teaser a,
.mail a,
.foot a:not(.logo),
.page :is(p, li) a,
.crumbs a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.teaser a:hover,
.mail a:hover,
.foot a:not(.logo):hover,
.page :is(p, li) a:hover,
.crumbs a:hover { color: var(--ink); }

.page .start-line a,
.page .book {
  color: var(--paper);
  text-decoration: none;
}

.page .start-line a:hover,
.page .book:hover { color: var(--paper); }

.qa { border-top: var(--rule); }

.qa:last-child { border-bottom: var(--rule); }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
  padding: var(--s2) 0;
  cursor: pointer;
  list-style: none;
  font-size: var(--body);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.qa summary::-webkit-details-marker { display: none; }

.qa summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }

.qa p { margin: 0 0 var(--s2); }

.form,
.apply {
  margin-top: var(--s4);
  max-width: var(--measure);
  display: grid;
  gap: var(--s3);
}

.form > div,
.field {
  display: grid;
  gap: var(--s1);
}

label {
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: -0.011em;
  line-height: 1.3;
}

label .hint {
  margin: 0;
  font-weight: 400;
  color: var(--muted);
}

[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
textarea {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: var(--rule);
  border-radius: 0;
  font: inherit;
  letter-spacing: -0.011em;
}

input {
  height: 48px;
  padding: 0;
}

textarea {
  min-height: 128px;
  padding: var(--s2) 0;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}

.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  letter-spacing: -0.011em;
  cursor: pointer;
}

.chip:hover { border-color: var(--accent); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.mail { margin-top: var(--s4); font-size: 1.125rem; }

.note { margin: 0; }

.error,
.form-error,
.field-error { color: #e4b7b2; margin: 0; }

.done h2 {
  margin: 0;
  font-size: var(--h2);
}

.done p { margin-top: var(--s2); color: var(--muted); }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.foot-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 80px;
  padding-bottom: var(--s4);
  border-top: var(--rule);
}

.place { margin: 0 0 0 auto; }

.crumbs {
  margin: 0 0 var(--s3);
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: 0;
}

.crumbs [aria-hidden] { margin: 0 8px; }

.ways {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--s4);
  margin-top: var(--s4);
}

.ways > section { grid-column: span 6; }

.ways h3,
.faq h3 { margin-top: 0; }

.faq h3 { margin-top: var(--s3); }

.faq h3:first-child { margin-top: var(--s2); }

.roles {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
}

.roles a {
  display: grid;
  gap: var(--s1);
  padding: var(--s3) 0;
  border-top: var(--rule);
  color: inherit;
  text-decoration: none;
}

.roles a:hover .role-title { color: var(--accent); }

.role-title {
  font-family: var(--display);
  font-size: var(--h2);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.role-meta { margin: 0; }

.notice {
  margin-top: var(--s3);
  max-width: var(--measure);
  padding-left: var(--s2);
  border-left: 1px solid var(--accent);
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: var(--s3);
  margin-top: var(--s4);
}

.facts > div { grid-column: span 4; }

.facts dt {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.facts dd { margin: var(--s1) 0 0; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  min-height: 44px;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--accent);
}

.check-row label { font-size: var(--body); font-weight: 400; }

input[type="file"] {
  height: auto;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 0;
  color: var(--muted);
}

.toggle {
  display: flex;
  gap: var(--s3);
  margin: 0 0 var(--s3);
}

.toggle label { cursor: pointer; }

.toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
}

.toggle label:has(input:checked) span {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.toggle label:has(input:focus-visible) span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.drop {
  position: relative;
  margin-top: var(--s4);
  min-height: 128px;
  padding: var(--s3);
  border: var(--rule);
  display: grid;
  align-content: center;
  gap: var(--s1);
}

.drop:hover,
.drop:focus-within,
.drop.has-file { border-color: var(--accent); }

.drop-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
}

.drop-title { margin: 0; font-weight: 600; }

.drop-types,
.drop-picked { margin: 0; color: var(--muted); font-size: var(--small); }

.drop-picked { display: flex; gap: var(--s2); align-items: center; }

.question { max-width: 22ch; }

.success {
  width: min(calc(100% - 2 * var(--pad)), var(--max));
  margin: var(--s6) auto 0;
  padding-bottom: var(--s8);
}

@media (prefers-reduced-motion: no-preference) {
  .wrap > * {
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .wrap > *:nth-child(2) { animation-delay: 70ms; }
  .wrap > *:nth-child(3) { animation-delay: 140ms; }
  .wrap > *:nth-child(4) { animation-delay: 210ms; }
  .wrap > *:nth-child(5) { animation-delay: 280ms; }
  .wrap > *:nth-child(6) { animation-delay: 350ms; }
  .wrap > *:nth-child(7) { animation-delay: 420ms; }
  .btn,
  .links a,
  .chip,
  .start-line a,
  .send,
  .submit,
  .book,
  .roles a .role-title {
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .links { display: none; }
  .bar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    column-gap: var(--s2);
  }
  .logo { grid-column: 1; grid-row: 1; }
  .menu { display: contents; }
  .menu summary {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.011em;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .bar > .btn { grid-column: 3; grid-row: 1; }
  .menu nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    position: static;
    width: auto;
    padding: 8px 0 16px;
    border-top: var(--rule);
    background: transparent;
  }
  .menu[open] nav { display: grid; }
  .menu nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink);
    text-decoration: none;
    font-size: var(--body);
  }
}

@media (max-width: 800px) {
  .wrap { padding: var(--s5) 0 var(--s7); }
  h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); }
  .c6, .c4, .ways > section, .facts > div { grid-column: span 12; }
  .outcomes p, .ladder p { max-width: var(--measure); }
  .foot-row {
    display: grid;
    justify-items: start;
    gap: var(--s1);
    padding: var(--s4) 0;
  }
  .place { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
