:root {
  color-scheme: light;
  --bg: #ffffff;
  --text: #080808;
  --muted: rgba(0, 0, 0, 0.58);
  --faint: rgba(0, 0, 0, 0.08);
  --line: rgba(0, 0, 0, 0.12);
  --panel: rgba(0, 0, 0, 0.025);
  --accent: #2b50ff;
  --accent-text: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  --section-rail: clamp(172px, 18vw, 256px);
  --grid-inset: 20px;
  --anchor-offset: 101px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main > section[id] {
  scroll-margin-top: var(--anchor-offset);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-kerning: normal;
  font-synthesis: none;
  transition: background-color 220ms linear, color 220ms linear;
}

body,
button,
input,
select {
  font: 400 16px/1.5 var(--sans);
}

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

a:hover {
  color: var(--accent);
}

button,
input,
select {
  border-radius: 0;
}

button,
select {
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.wordmark,
.site-nav nav a {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--line);
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.wordmark {
  border-left: 0;
}

.site-nav nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.site-nav nav a {
  flex: 0 0 136px;
  width: 136px;
  justify-content: center;
  padding: 0 12px;
}

.site-nav nav a.active {
  color: var(--accent);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: var(--accent-text);
}

.context-strip {
  position: sticky;
  top: 65px;
  z-index: 19;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.context-quote {
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  margin: 0;
  padding: 9px 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.context-quote p {
  margin: 0;
  color: var(--accent);
  white-space: nowrap;
}

.context-quote cite {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  :root {
    --anchor-offset: 119px;
  }

  .context-quote {
    display: block;
  }

  .context-quote cite {
    display: block;
    margin-top: 2px;
  }
}

select,
input {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
}

.hero {
  min-height: calc(100svh - 98px);
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(280px, 0.58fr);
  grid-template-rows: 1fr auto;
  border-bottom: 1px solid var(--line);
}

.hero-headline {
  grid-column: 1 / -1;
  display: grid;
  min-width: 0;
  align-content: end;
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px) clamp(32px, 6vw, 74px);
}

.mono-label,
.meta,
.section-label p,
.principle-number,
.lock-badge {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.mono-label,
.meta,
.section-label p,
.principle-number {
  color: var(--muted);
}

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

h1 {
  margin: 18px 0 0;
  max-width: 1120px;
  font-size: clamp(56px, 11vw, 124px);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 span {
  display: block;
  color: var(--accent);
}

.caret {
  display: inline-block;
  width: 0.06em;
  height: 0.76em;
  margin-left: 0.06em;
  background: var(--accent);
  animation: blink 1.05s steps(2, start) infinite;
  vertical-align: -0.06em;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-quote {
  grid-column: 1 / -1;
  min-height: 280px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: clamp(22px, 4vw, 46px);
}

.hero-quote {
  border-right: 0;
}

.hero-quote p {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(26px, 3.8vw, 50px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
}

.section-grid {
  display: grid;
  grid-template-columns: var(--section-rail) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.section-label {
  border-right: 1px solid var(--line);
  padding: 22px 18px;
}

.section-label p {
  position: sticky;
  top: 110px;
}

.section-body {
  min-width: 0;
  padding: clamp(34px, 6vw, 86px);
}

.manifesto-copy {
  max-width: 1100px;
  margin: 0;
  padding-inline-start: var(--grid-inset);
  font-size: clamp(28px, 3.6vw, 54px);
  font-weight: 500;
  line-height: 1.17;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}

.manifesto-copy p {
  margin: 0;
}

.manifesto-copy p + p {
  margin-top: 1em;
}

.manifesto-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.manifesto-copy strong {
  font-weight: 600;
}

.section-heading {
  margin-bottom: clamp(26px, 5vw, 58px);
  padding-inline-start: var(--grid-inset);
}

.section-heading h2 {
  max-width: 980px;
  margin: 12px 0 0;
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.48fr);
  gap: 36px;
  align-items: end;
}

.section-heading.split > p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 18px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.experiment-grid article:hover,
.work-card:hover {
  background: var(--panel);
}

.principle-number {
  color: var(--accent);
  margin-bottom: 48px;
}

.principle-grid .mono-label {
  color: var(--accent);
}

.principle-grid h3 {
  margin: 14px 0;
  font-size: clamp(23px, 2.15vw, 32px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.principle-grid p:not(.mono-label):not(.principle-number) {
  color: var(--muted);
  line-height: 1.5;
}

.experiment-grid,
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

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

.experiment-grid article,
.work-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px;
  transition: background-color 160ms linear;
}

.experiment-grid h3,
.work-card h3 {
  margin: 40px 0 14px;
  font-size: clamp(24px, 2.25vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.experiment-grid p:not(.meta),
.work-card p:not(.meta):not(.outcome) {
  color: var(--muted);
}

.experiment-grid a {
  display: inline-flex;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.experiments-all-link {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-top: 0;
  padding: 0 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  transition: background-color 160ms linear, color 160ms linear;
}

.experiments-all-link:hover {
  background: var(--accent);
  color: var(--accent-text);
}

.experiments-all-link span {
  font-size: 18px;
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 28px;
}

.work-heading {
  grid-column: 1;
  padding-inline-start: var(--grid-inset);
}

.work-heading h2 {
  max-width: 970px;
  margin: 12px 0 18px;
  font-size: clamp(38px, 7vw, 88px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.work-heading > p:last-child {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.access-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--bg);
}

.gate {
  display: none;
}

.gate.active {
  display: block;
}

.gate label {
  display: block;
  margin: 18px 0 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.gate p:not(.mono-label) {
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 0;
}

.input-row input {
  width: 100%;
  border-right: 0;
}

button,
.button-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.gate > a:not(.button-link) {
  display: inline-flex;
  margin-top: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.work-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
}

.work-card {
  position: relative;
  min-height: 440px;
}

.redacted {
  height: 148px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(
      135deg,
      var(--faint) 0,
      var(--faint) 1px,
      transparent 1px,
      transparent 12px
  );
}

.case-study-image {
  display: none;
  width: 100%;
  height: 148px;
  border: 1px solid var(--line);
  object-fit: cover;
  object-position: top left;
}

.lock-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  padding: 6px 8px;
}

body.access-granted .lock-badge {
  border-color: var(--accent);
  color: var(--accent);
}

.outcome {
  display: none;
  margin-top: auto;
  padding-top: 20px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.access-granted .outcome {
  display: block;
}

body.access-granted .redacted {
  display: none;
}

body.access-granted .case-study-image,
body.access-granted .case-study-link {
  display: block;
}

body.access-granted .work-card h3 {
  margin-top: 20px;
}

.case-study-link {
  display: none;
  width: fit-content;
  min-height: 0;
  margin-top: 16px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--accent);
  padding: 0 0 2px;
}

body.not-local-preview .work-grid {
  display: none;
}

.case-study-dialog {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  overflow: hidden;
  border: 0;
  background: var(--bg);
  color: var(--text);
  padding: 0;
}

.case-study-dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.case-study-dialog-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  min-height: 64px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.case-dialog-wordmark,
.case-dialog-nav a,
.dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.case-dialog-wordmark {
  justify-content: start;
  border-left: 0;
}

.case-dialog-nav {
  display: flex;
  min-width: 0;
}

.case-dialog-nav a {
  min-width: 118px;
}

.dialog-close {
  border-left: 1px solid var(--line);
  background: var(--accent);
  color: var(--accent-text);
}

.case-study-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100svh - 64px);
  border: 0;
}
body.access-granted .lock-badge::before {
  content: "Unlocked";
}

body.access-granted .lock-badge {
  font-size: 0;
}

body.access-granted .lock-badge::before {
  font-size: 11px;
}

.contact-panel {
  border: 1px solid var(--line);
}

.contact {
  min-height: calc(100svh - var(--anchor-offset));
}

.contact-step {
  display: none;
  min-height: 420px;
  padding: clamp(22px, 5vw, 56px) 20px;
}

.contact-step.active {
  display: block;
}

.contact-step h3 {
  max-width: 920px;
  margin: 18px 0 34px;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

.contact-step h3 span,
.contact-step strong {
  color: var(--accent);
}

.contact-step[data-step="0"] h3 {
  color: var(--accent);
}

.contact-intro {
  max-width: none;
  margin: -14px 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.012em;
  white-space: nowrap;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 660px);
  gap: 0;
}

.choice-row button {
  width: 100%;
  margin-right: -1px;
  margin-bottom: -1px;
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.choice-row button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

#contact-message {
  display: block;
  width: 100%;
  min-height: 180px;
  overflow-y: hidden;
  resize: none;
  border: 1px solid var(--line);
  background: var(--faint);
  color: var(--text);
  padding: clamp(14px, 2vw, 18px);
  font: 400 clamp(15px, 1.35vw, 18px)/1.42 var(--sans);
  letter-spacing: -0.012em;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.contact-actions .text-button {
  margin-top: 0;
}

#contact-error {
  display: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#contact-error.visible {
  display: block;
}

.text-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  padding: 0;
  margin-top: 18px;
}

.dot-loader {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}

.dot-loader span {
  width: 12px;
  height: 12px;
  background: var(--accent);
  animation: pulse 920ms infinite ease-in-out;
}

.dot-loader span:nth-child(2) {
  animation-delay: 140ms;
}

.dot-loader span:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.18;
  }
  50% {
    opacity: 1;
  }
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
}

.site-footer a,
.site-footer small {
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  border-right: 1px solid var(--line);
  padding: 0 18px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.site-footer nav a {
  min-height: 60px;
  border-right: 0;
  padding: 0;
}

.site-footer nav span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.site-footer small {
  justify-content: end;
  border-right: 0;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .principle-grid,
  .experiment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-layout,
  .work-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .access-panel {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --grid-inset: 0;
    --anchor-offset: 111px;
  }

  .site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    grid-template-columns: 1fr;
  }

  .wordmark {
    min-height: 56px;
  }

  .site-nav nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    overflow: visible;
  }

  .site-footer nav {
    min-width: 0;
    overflow-x: auto;
  }

  .site-nav nav a {
    min-width: 0;
    width: auto;
    min-height: 54px;
    flex: 1 1 0;
    border-top: 1px solid var(--line);
    padding: 0 4px;
    font-size: clamp(8px, 2.3vw, 10px);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .context-strip {
    display: none;
  }

  .case-study-dialog-head {
    grid-template-columns: 1fr auto;
  }

  .case-dialog-nav {
    display: none;
  }

  .hero,
  .section-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: calc(100svh - 110px);
  }

  .hero-headline {
    padding: clamp(42px, 10vw, 64px) 18px 30px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-quote,
  .section-label {
    border-right: 0;
  }

  .section-label {
    border-bottom: 1px solid var(--line);
  }

  .section-label p {
    position: static;
  }

  .section-body {
    padding: 32px 18px;
  }

  .manifesto-copy {
    font-size: clamp(26px, 7.2vw, 38px);
    line-height: 1.2;
  }

  .section-heading h2 {
    font-size: clamp(36px, 10vw, 52px);
  }

  .section-heading.split > p {
    font-size: 17px;
  }

  .principle-grid,
  .experiment-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .case-study-detail-grid,
  .case-study-metrics {
    grid-template-columns: 1fr;
  }

  .principle-grid article {
    min-height: 0;
    padding: 18px;
  }

  .experiment-grid article {
    min-height: 280px;
    padding: 18px;
  }

  .experiments-all-link {
    min-height: 64px;
    padding: 0 18px;
  }

  .choice-row {
    grid-template-columns: 1fr;
    width: min(100%, 360px);
  }

  .choice-row button {
    width: 100%;
    margin-right: 0;
  }

  .input-row {
    display: grid;
  }

  .input-row input {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-step {
    min-height: 0;
    padding: 30px 18px;
  }

  .contact-step h3 {
    margin: 12px 0 28px;
    font-size: clamp(32px, 9vw, 48px);
  }

  .contact-intro {
    margin-top: -12px;
    font-size: 18px;
  }

  #contact-message {
    min-height: 0;
    padding: 15px;
    font-size: clamp(15px, 4.2vw, 17px);
    line-height: 1.45;
  }

  .site-footer small {
    justify-content: start;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .site-nav nav a {
    font-size: clamp(7.5px, 2.25vw, 9px);
    letter-spacing: 0.01em;
  }

  .section-label {
    padding: 18px;
  }

  .section-body {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .contact-intro {
    white-space: normal;
  }
}
