@import url("fonts.css");

:root {
  --bone: #F2EEE5;
  --ink: #151515;
  --black: #0E0E0E;
  --gap: #FBFAF6;
  --accent: #2F6B60;
  --accent-on-black: #7DBFB0;
  --ink-2: #3B3A36;
  --ink-3: #5C5A55;
  --bone-2: #C9C5BB;
  --bone-3: #D9D5CB;
  --bone-4: #A8A49B;
  --white: #FFFFFF;

  /* Hairlines: ink and bone at reduced opacity. */
  --rule-ink: rgba(21, 21, 21, 0.16);
  --rule-bone: rgba(242, 238, 229, 0.16);
  --rule-bone-2: rgba(242, 238, 229, 0.2);
  --rule-bone-3: rgba(242, 238, 229, 0.3);
  --rule-bone-4: rgba(242, 238, 229, 0.4);

  --sans: Archivo, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --display: Commissioner, Archivo, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
}

/* Base */

html {
  background: var(--black);
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1, h2, p {
  margin: 0;
}

/* Shared */

.wrap {
  box-sizing: border-box;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.mono {
  font-family: var(--mono);
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.caps-small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commissioner {
  font-family: var(--display);
  font-variation-settings: 'FLAR' 100, 'VOLM' 0;
}

.c-accent { color: var(--accent); }
.c-accent-on-black { color: var(--accent-on-black); }
.c-ink-2 { color: var(--ink-2); }
.c-ink-3 { color: var(--ink-3); }
.c-bone-2 { color: var(--bone-2); }
.c-bone-3 { color: var(--bone-3); }
.c-bone-4 { color: var(--bone-4); }

.fill-ink { fill: var(--ink); }
.fill-bone { fill: var(--bone); }
.fill-white { fill: var(--white); }

.stack-20 {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section {
  box-sizing: border-box;
}

.rule-ink {
  border-top: 1px solid var(--rule-ink);
}

.rule-bone {
  border-top: 1px solid var(--rule-bone);
}

.h2 {
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.title-21 {
  font-size: 21px;
  font-weight: 600;
}

/* Header */

.site-header {
  box-sizing: border-box;
  min-height: 88px;
  border-bottom: 1px solid var(--rule-ink);
}

.header-bar {
  min-height: 88px;
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wordmark {
  font-size: 22px;
  font-weight: 800;
  font-variation-settings: 'wdth' 125;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Hero */

.hero {
  min-height: 720px;
  padding-top: 96px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 56px 64px;
}

.hero-copy {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(44px, 6.6vw, 96px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.lede {
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.button {
  box-sizing: border-box;
  min-height: 48px;
  padding: 14px 22px;
  background: var(--ink);
  color: var(--bone);
}

.text-link {
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.hero-figure {
  flex: 1 1 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.omnius-dial {
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: pan-y; /* a vertical swipe on the ring still scrolls the page */
}

.omnius-tick {
  stroke: var(--ink);
  stroke-width: 1.5;
  opacity: 0.6;
}

.ring-circle {
  stroke: var(--ink);
}

.omnius-mark {
  transform-origin: 300px 300px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.omnius-dial:hover .omnius-mark {
  transform: scale(1.03);
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* 01 · The problem */

.problem {
  min-height: 520px;
}

.problem-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.problem-intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 64px;
}

.problem-intro > .stack-20 {
  flex: 1 1 420px;
}

.problem-intro > p {
  flex: 1 1 360px;
  max-width: 520px;
  align-self: flex-end;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 40px 32px;
}

.card {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-title {
  letter-spacing: -0.01em;
}

/* 02 · What we are building */

.approach {
  min-height: 760px;
}

.approach-inner {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-wrap: wrap;
  gap: 56px 72px;
}

.approach-copy {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  border-top: 1px solid var(--rule-ink);
  padding: 20px 0;
  display: flex;
  gap: 24px;
}

.step:last-child {
  border-bottom: 1px solid var(--rule-ink);
}

.step-letter {
  flex: 0 0 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 5px;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline {
  flex: 1 1 420px;
  min-width: 0;
  align-self: flex-start;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.pipeline-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--rule-bone-2);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline-steps {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pipeline-step {
  border: 1px solid var(--rule-bone-3);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.pipeline-step.record {
  border-color: var(--accent-on-black);
  color: var(--accent-on-black);
}

.pipeline-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--rule-bone-2);
  color: var(--bone-4);
  font-size: 12px;
}

/* Crossing the gap */

.crossing {
  position: relative;
  display: grid;
}

.crossing-bands,
.crossing-overlay {
  grid-area: 1 / 1;
}

.band {
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.band-outside {
  min-height: 340px;
}

.band-gap {
  box-sizing: border-box;
  min-height: 220px;
  background: var(--gap);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.band-gap > .band {
  min-height: 220px;
  padding-top: 48px;
  padding-bottom: 48px;
}

.band-inside {
  box-sizing: border-box;
  min-height: 360px;
  background: var(--black);
  color: var(--bone);
}

.band-inside > .band {
  min-height: 360px;
}

.band-title {
  max-width: 520px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.band-title.commissioner {
  font-weight: 400;
  letter-spacing: -0.01em;
}

.band-text {
  max-width: 460px;
}

.crossing-overlay {
  pointer-events: none;
  box-sizing: border-box;
  padding: 100px var(--gutter) 110px;
}

.crossing-mark {
  position: sticky;
  top: 300px;
  width: clamp(88px, 10vw, 136px);
  margin-left: auto;
  margin-right: 12%;
  mix-blend-mode: difference;
}

.crossing-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Phone widths: the mark would pass over the end of the paragraphs. It sits at
   the right edge of the content area, and the paragraphs stop 24px short of it
   (the mark is at least 88px wide). */
@media (max-width: 520px) {
  .crossing-mark {
    margin-right: 0;
  }

  .band-text {
    max-width: calc(100% - 112px);
  }
}

/* Without blend modes the white mark would vanish on the bone and the gap. Show
   it in ink instead, and let the black band paint over it: the band is lifted
   above the mark, which is positioned (sticky) but has no z-index. */
@supports not (mix-blend-mode: difference) {
  .crossing-mark .fill-white {
    fill: var(--ink);
  }

  .band-inside {
    position: relative;
    z-index: 1;
  }
}

/* The dark half */

.dark {
  background: var(--black);
  color: var(--bone);
}

.keep {
  min-height: 640px;
}

.keep-inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.keep h2 {
  max-width: 820px;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.04;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.keep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 40px 32px;
}

.keep-card {
  border-top: 1px solid var(--rule-bone-4);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.candour {
  min-height: 420px;
}

.candour-inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.candour p {
  max-width: 1040px;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.18;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.status {
  min-height: 560px;
}

.status-inner {
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 64px 72px;
}

.fact-group {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.facts {
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  font-size: 13px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-bone-2);
}

.fact-row:last-child {
  border-bottom: 1px solid var(--rule-bone-2);
}

.fact-row > :first-child {
  color: var(--bone-4);
}

/* Footer */

.site-footer {
  box-sizing: border-box;
  min-height: 140px;
  background: var(--black);
  color: var(--bone);
}

.footer-bar {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  color: var(--bone-4);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--bone);
}
