:root {
  color-scheme: dark;
  --ink: #121717;
  --paper: #f7f0df;
  --muted: rgba(247, 240, 223, .72);
  --line: rgba(247, 240, 223, .18);
  --panel: rgba(255, 255, 255, .075);
  --teal: #45d0a4;
  --amber: #e8b74f;
  --rose: #ee6f9f;
  --blue: #7fa7ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #121717 0%, #171b1c 42%, #101414 100%);
  color: var(--paper);
}

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

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

.site-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(247, 240, 223, .11);
  background: rgba(18, 23, 23, .78);
  backdrop-filter: blur(16px);
}

.site-bar a {
  font-weight: 860;
}

.site-bar span {
  color: rgba(247, 240, 223, .58);
  font-size: 13px;
  font-weight: 780;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px max(20px, calc((100vw - 1120px) / 2)) 70px;
  border-bottom: 1px solid rgba(247, 240, 223, .12);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 23, 23, .94) 0%, rgba(18, 23, 23, .72) 42%, rgba(18, 23, 23, .22) 100%),
    linear-gradient(180deg, rgba(18, 23, 23, 0) 70%, #121717 100%);
  pointer-events: none;
}

.hero-proof {
  position: absolute;
  inset: 58px 0 0 auto;
  width: min(58vw, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  opacity: .92;
}

.proof-cell {
  display: grid;
  place-items: center;
  min-height: 42vh;
  overflow: hidden;
}

.proof-cell img {
  width: min(72%, 310px);
  max-height: 36vh;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .3));
}

.proof-green {
  background: #0e6d55;
}

.proof-dark {
  background: #060708;
}

.proof-pink {
  background: #b31668;
}

.proof-light {
  background: #efe7d8;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 880;
  letter-spacing: .09em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(247, 240, 223, .82);
  font-size: 18px;
  line-height: 1.76;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid rgba(247, 240, 223, .24);
  border-radius: 8px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .07);
  color: var(--paper);
  font-weight: 840;
}

.button.primary {
  border-color: var(--amber);
  background: var(--amber);
  color: #111515;
}

section:not(.hero) {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0;
}

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

.section-heading h2,
.cta-section h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.cta-section p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, .04);
}

.control-panel {
  display: grid;
  align-content: start;
  gap: 28px;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: rgba(18, 23, 23, .74);
}

.control-group {
  display: grid;
  gap: 12px;
}

.control-label {
  color: rgba(247, 240, 223, .56);
  font-size: 13px;
  font-weight: 820;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button {
  font: inherit;
}

.segmented button,
.swatch {
  min-height: 40px;
  border: 1px solid rgba(247, 240, 223, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: var(--paper);
  cursor: pointer;
}

.segmented button {
  padding: 0 13px;
  font-size: 14px;
  font-weight: 790;
}

.segmented button.is-active {
  border-color: var(--teal);
  background: rgba(69, 208, 164, .18);
  color: #dffdee;
}

.swatches {
  display: flex;
  gap: 10px;
}

.swatch {
  width: 42px;
  padding: 0;
}

.swatch.is-active {
  border-color: var(--amber);
  outline: 2px solid rgba(232, 183, 79, .34);
}

.swatch[data-bg="checker"],
.bg-checker {
  background-color: #ddd4c3;
  background-image:
    linear-gradient(45deg, #aaa 25%, transparent 25%),
    linear-gradient(-45deg, #aaa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #aaa 75%),
    linear-gradient(-45deg, transparent 75%, #aaa 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.swatch-dark,
.bg-dark {
  background: #050607;
}

.swatch-light,
.bg-light {
  background: #f2ead8;
}

.swatch-green,
.bg-green {
  background: #0b7a57;
}

.swatch-pink,
.bg-pink {
  background: #bb1469;
}

.subject-facts {
  display: grid;
  gap: 18px;
  margin: 0;
}

.subject-facts div {
  padding-top: 18px;
  border-top: 1px solid rgba(247, 240, 223, .12);
}

.subject-facts dt {
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 850;
}

.subject-facts dd {
  margin: 0;
  color: rgba(247, 240, 223, .76);
  line-height: 1.65;
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 48px;
}

.preview-stage img {
  width: min(62%, 470px);
  max-height: 520px;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(0, 0, 0, .28));
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: 28px;
  align-items: stretch;
}

figure {
  margin: 0;
}

.method-grid figure,
.case-result,
.case-source,
.wide-proof,
.limit-list article,
.workflow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.method-grid figure {
  display: grid;
  align-content: center;
  padding: 20px;
}

figcaption {
  margin-top: 14px;
  color: rgba(247, 240, 223, .68);
  font-size: 14px;
  line-height: 1.55;
}

.method-copy {
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(69, 208, 164, .09);
}

.method-copy ol {
  display: grid;
  gap: 20px;
  margin: 0;
  padding-left: 24px;
}

.method-copy li {
  padding-left: 4px;
  color: rgba(247, 240, 223, .62);
}

.method-copy strong,
.method-copy span {
  display: block;
}

.method-copy strong {
  margin-bottom: 5px;
  color: var(--paper);
  font-size: 18px;
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 28px;
}

.case-result,
.case-source,
.wide-proof {
  padding: 20px;
}

.case-result {
  display: grid;
  place-items: center;
  background-color: #ddd4c3;
  background-image:
    linear-gradient(45deg, #aaa 25%, transparent 25%),
    linear-gradient(-45deg, #aaa 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #aaa 75%),
    linear-gradient(-45deg, transparent 75%, #aaa 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.case-result figcaption {
  color: #202322;
  font-weight: 760;
}

.case-result img {
  max-height: 520px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.workflow-step {
  min-height: 190px;
  padding: 20px;
}

.workflow-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.workflow-step strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.workflow-step p {
  color: rgba(247, 240, 223, .66);
  line-height: 1.6;
}

.wide-proof {
  margin-top: 18px;
}

.wide-proof img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

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

.limit-list article {
  padding: 24px;
}

.limit-list h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.limit-list p {
  color: rgba(247, 240, 223, .68);
  line-height: 1.66;
}

.cta-section {
  display: grid;
  justify-items: start;
  margin-bottom: 60px;
  border-top: 1px solid rgba(247, 240, 223, .12);
}

.cta-section p {
  max-width: 680px;
}

@media (max-width: 860px) {
  .site-bar {
    min-height: 54px;
  }

  .hero {
    min-height: 92vh;
    padding-top: 92px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(18, 23, 23, .2) 0%, rgba(18, 23, 23, .78) 46%, #121717 100%);
  }

  .hero-proof {
    inset: 54px 0 auto;
    width: 100%;
    height: 48vh;
    grid-template-columns: repeat(4, minmax(110px, 1fr));
  }

  .proof-cell {
    min-height: 48vh;
  }

  .proof-cell img {
    width: 86%;
    max-height: 30vh;
  }

  .hero-copy {
    padding-top: 42vh;
  }

  .hero-actions,
  .segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-width: 0;
    text-align: center;
  }

  section:not(.hero) {
    width: min(100% - 28px, 1120px);
    padding: 62px 0;
  }

  .lab-layout,
  .method-grid,
  .case-layout,
  .limit-list {
    grid-template-columns: 1fr;
  }

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

  .preview-stage {
    min-height: 440px;
    padding: 30px;
  }

  .preview-stage img {
    width: min(78%, 360px);
    max-height: 390px;
  }

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

@media (max-width: 560px) {
  .site-bar {
    padding-inline: 14px;
  }

  .site-bar span {
    display: none;
  }

  .hero {
    padding-inline: 14px;
    padding-bottom: 46px;
  }

  .hero-proof {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    height: 45vh;
  }

  .proof-cell {
    min-height: 22.5vh;
  }

  .proof-cell img {
    max-height: 19vh;
  }

  .hero-copy {
    padding-top: 39vh;
  }

  h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .section-heading h2,
  .cta-section h2 {
    font-size: 34px;
  }

  .hero-actions,
  .segmented,
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .control-panel {
    padding: 20px;
  }

  .swatches {
    justify-content: space-between;
  }

  .swatch {
    width: 38px;
  }

  .preview-stage {
    min-height: 390px;
  }

  .method-copy,
  .limit-list article,
  .workflow-step {
    padding: 20px;
  }
}
