@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2?v=50519183") format("woff2");
  font-weight: 100 900; font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #1f1410;
  --muted: #6b5a50;
  --indigo: #3b2418;
  --violet: #8a4b2a;
  --pink: #e8321c;
  --orange: #ff8a5c;
  --ply: #ead5ae;
  --tint: #f7f2ea;
  --line: #e8dfd3;
  --ramp: linear-gradient(90deg, #3b2418 0%, #8a2e1a 40%, #e8321c 80%, #ff7a4d 100%);
  --red: #d92b16;
  --gutter: clamp(20px, 4vw, 56px);
  --top: 68px;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --text: "Geist", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.1875rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg text { font-family: var(--text); }

/* the scanned room, faint, behind the whole page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: url("/media/backdrop.png?v=50519183") center / cover no-repeat; pointer-events: none; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 30; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }

/* ---------- header ---------- */

.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: var(--top); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: -.04em; font-size: 1.7rem; line-height: 1; color: var(--ink); text-decoration: none; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a, .langs a { font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.langs { display: flex; gap: 2px; }
.langs a { padding: 5px 8px; border-radius: 4px; color: var(--muted); font-weight: 600; font-size: .9375rem; }
.langs a:hover { color: var(--ink); background: var(--tint); }
.langs a[aria-current] { color: #fff; background: var(--ink); }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-block; background: var(--red); color: #fff;
  font: inherit; font-weight: 600; font-size: 1.125rem; line-height: 1.2;
  padding: 16px 28px; border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--ink); }
.btn-small { padding: 10px 20px; font-size: 1rem; background: var(--ink); }
.btn-small:hover { background: var(--red); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.link:hover { color: var(--pink); }

/* ---------- hero: the animation fills the screen ---------- */

.hero { background: #fff; position: relative; min-height: min(calc(100svh - var(--top)), 1000px); display: flex; }
#scan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding-top: clamp(28px, 5vh, 64px); padding-bottom: 24px; pointer-events: none; }
.hero-in a, .hero-in button { pointer-events: auto; }
.hero-copy { max-width: min(36rem, 40vw); }

h1 {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(2.5rem, 4.5vw, 4.3rem); line-height: 1.02; letter-spacing: -.04em;
  text-wrap: balance;
}
.lede { margin-top: 24px; font-size: clamp(1.15rem, 1.4vw, 1.3rem); line-height: 1.45; max-width: 30em; }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.stage-bar { display: grid; grid-template-columns: 1fr auto; gap: 10px 24px; align-items: end; }
.stage-caption { font-size: 1.125rem; line-height: 1.35; font-weight: 500; max-width: 34em; min-height: 2.7em; display: flex; align-items: flex-end; }
.stage-toggle {
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration-color: var(--pink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.stages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.stages button {
  --p: 0;
  position: relative; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 600; color: var(--muted);
  background: rgba(255, 255, 255, .82); border: 0; padding: 14px 4px 6px;
}
.stages button::before, .stages button::after { content: ""; position: absolute; left: 0; top: 0; height: 5px; border-radius: 3px; }
.stages button::before { width: 100%; background: var(--line); }
.stages button::after { width: calc(var(--p) * 100%); background: var(--ramp); background-size: 600% 100%; }
.stages li:nth-child(2) button::after { background-position: 20% 0; }
.stages li:nth-child(3) button::after { background-position: 40% 0; }
.stages li:nth-child(4) button::after { background-position: 60% 0; }
.stages li:nth-child(5) button::after { background-position: 80% 0; }
.stages li:nth-child(6) button::after { background-position: 100% 0; }
.stages button:hover, .stages button[aria-current] { color: var(--ink); }
.stages .n { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; margin-right: 8px; color: var(--pink); }

/* ---------- section headings ---------- */

.section-title { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.section-lede { margin-top: 20px; max-width: 34em; font-size: 1.25rem; line-height: 1.45; }
h3 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: 1.75rem; line-height: 1.15; }

/* ---------- how it works ---------- */

.how { padding: clamp(64px, 8vw, 128px) 0 clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.how-head { position: sticky; top: calc(var(--top) + 40px); }

.step { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 250px); gap: 12px 24px; align-items: start; padding: 30px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-num { font-family: var(--display); font-weight: 700; letter-spacing: -.05em; font-size: 4.4rem; line-height: .86; }
.s1 .step-num { color: #3b2418; } .s2 .step-num { color: #6e3520; } .s3 .step-num { color: #a8391c; } .s4 .step-num { color: #d92b16; } .s5 .step-num { color: #f0602f; }
.step-copy p { margin-top: 10px; max-width: 30em; }
.step-copy .strong { font-weight: 700; }
.step-fig { background: rgba(255, 255, 255, .86); }
.step-fig svg { display: block; width: 100%; height: auto; }

/* ---------- where the cabinet meets the wall ---------- */

.wall { background: radial-gradient(120% 90% at 85% 0%, #5a2a17 0%, #2a1a13 45%, var(--ink) 100%); color: #fff; padding: clamp(64px, 8vw, 120px) 0; }
.wall-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.wall h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; text-wrap: balance; }
.wall-copy p { margin-top: 20px; max-width: 30em; color: #eadfd3; }
.wall-fig svg { display: block; width: 100%; height: auto; }

.wall-legend { display: none; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-weight: 600; }
.wall-legend li { display: flex; align-items: center; gap: 8px; }
.wall-legend li::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--c); }

/* ---------- track record ---------- */

.track { padding: clamp(64px, 8vw, 120px) 0; }
.track-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.track-head p { max-width: 30em; font-size: 1.25rem; line-height: 1.45; }
.timeline { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(6, 1fr); border-top: 5px solid; border-image: var(--ramp) 1; }
.timeline li { position: relative; padding: 26px 22px 0 0; }
.timeline li::before { content: ""; position: absolute; top: -13px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); }
.timeline .when { font-family: var(--display); font-weight: 700; letter-spacing: -.05em; font-size: clamp(2rem, 3vw, 2.9rem); line-height: 1; display: block; }
.timeline li:last-child .when { color: var(--red); }

.timeline p { margin-top: 10px; max-width: 20em; font-size: 1.0625rem; line-height: 1.4; }

/* ---------- answers ---------- */

.answers { padding: 0 0 clamp(64px, 8vw, 112px); }
.answers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.answer { background: var(--tint); border-radius: 6px; padding: clamp(24px, 3vw, 40px); }
.answer p { margin-top: 12px; max-width: 30em; }
.answer .link { display: inline-block; margin-top: 16px; }

/* ---------- after the job is in ---------- */

.after { background: var(--tint); padding: clamp(64px, 8vw, 120px) 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); }
.pair-item { display: flex; flex-direction: column; }
.pair-item > p { margin: 14px 0 28px; max-width: 30em; }
.mock { margin-top: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 1.0625rem; line-height: 1.3; box-shadow: 0 24px 48px -32px rgba(59, 36, 24, .5); overflow: hidden; }
.mock-head, .mock-foot, .rows li { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 20px; }
.mock-head { font-weight: 700; border-bottom: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows li > span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-foot { font-weight: 700; color: var(--red); }
.live { font-weight: 500; font-size: 1rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.shops li { flex-direction: column; align-items: flex-start; gap: 8px; }
.shops li > span:first-child { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: .9375rem; font-weight: 600; padding: 4px 10px; border-radius: 4px; background: var(--tint); color: var(--ink); }
.shops li.match { box-shadow: inset 5px 0 0 var(--pink); }
.shops li.match .chips i { background: var(--indigo); color: #fff; }

/* ---------- producers ---------- */

.producers { background: var(--ramp); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.producers-in { display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.producers h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1.08; }
.producers p { margin-top: 14px; max-width: 32em; font-weight: 500; }

/* ---------- demo form ---------- */

.demo { padding: clamp(64px, 8vw, 120px) 0; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: rgba(255, 255, 255, .9); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field:nth-child(n+3) { grid-column: 1 / -1; }
.field label { font-size: 1.0625rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9a898; border-radius: 6px; padding: 12px 14px; width: 100%; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--pink); outline-offset: 1px; border-color: var(--pink); }
.field .bad { border-color: var(--pink); box-shadow: inset 4px 0 0 var(--pink); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form-status { grid-column: 1 / -1; font-size: 1.0625rem; color: var(--muted); min-height: 1.4em; }
.form-status.err { color: #b3200f; font-weight: 600; }

/* ---------- footer ---------- */

.foot { background: var(--ink); color: #fff; padding: 36px 0 44px; font-size: 1.0625rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 36px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot nav a { text-decoration: none; color: #eadfd3; }
.foot nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.brand-foot { color: #fff; font-size: 1.5rem; }
.copy { margin-left: auto; color: #b5a596; }

/* ---------- detail pages ---------- */

.nav a[aria-current] { color: var(--red); }
.step-copy .more { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; }

.d-hero { background: #fff; padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.d-hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.d-fig { background: var(--tint); border-radius: 10px; padding: clamp(16px, 3vw, 40px); }
.d-fig svg { display: block; width: 100%; height: auto; }

.d-blocks { padding: clamp(56px, 7vw, 104px) 0; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.blocks li { position: relative; padding: 28px 0 36px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .88); }
.blocks li::before { content: ""; position: absolute; top: -3px; left: 0; width: 44px; height: 5px; background: var(--red); }
.blocks h2 { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: 1.5rem; line-height: 1.15; }
.blocks p { margin-top: 10px; max-width: 28em; }

.d-next { padding: 0 0 clamp(56px, 7vw, 96px); }
.d-next-in { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.d-next span { color: var(--muted); font-weight: 600; }
.d-next a { font-family: var(--display); font-weight: 650; letter-spacing: -.03em; font-size: clamp(1.8rem, 3vw, 2.6rem); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.d-next a:hover { color: var(--red); }

/* ---------- smaller screens ---------- */

/* ---------- screenshots on the detail pages ---------- */

.d-shots { background: var(--tint); padding: clamp(40px, 6vw, 88px) 0; }
.shots { display: grid; gap: clamp(32px, 5vw, 64px); }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(59, 36, 24, .16); }
.shot figcaption { margin-top: 14px; color: var(--muted); max-width: 46em; }

/* ---------- your own CAD ---------- */

.cad { padding: 0 0 clamp(64px, 8vw, 112px); }
.cad-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.cad .lede { margin-top: 16px; }
.cad-note { margin: 16px 0 20px; color: var(--muted); max-width: 34em; }

/* the figure rests on its last frame; the loop only runs when motion is welcome */
.cadfig-in { transform: translate(246px, 5px); }
.cadfig-out { transform: translate(-246px, -5px); }
.cadfig-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cadfig-c1, .cadfig-c2 { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cadfig-in { animation: cad-in 12s ease-in-out infinite; }
  .cadfig-draw { animation: cad-draw 12s ease-in-out infinite; }
  .cadfig-out { animation: cad-out 12s ease-in-out infinite; }
  .cadfig-c1 { animation: cad-c1 12s linear infinite; }
  .cadfig-c2 { animation: cad-c2 12s linear infinite; }
  .cadfig-c3 { animation: cad-c3 12s linear infinite; }
}
@keyframes cad-in { 0%, 7% { transform: translate(0, 0); opacity: 0; } 9% { transform: translate(0, 0); opacity: 1; } 26%, 94% { transform: translate(246px, 5px); opacity: 1; } 100% { transform: translate(246px, 5px); opacity: 0; } }
@keyframes cad-draw { 0%, 31% { stroke-dashoffset: 1; opacity: 1; } 52%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cad-out { 0%, 57% { transform: translate(0, 0); opacity: 0; } 59% { transform: translate(0, 0); opacity: 1; } 77%, 94% { transform: translate(-246px, -5px); opacity: 1; } 100% { transform: translate(-246px, -5px); opacity: 0; } }
@keyframes cad-c1 { 0%, 5% { opacity: 0; } 8%, 27% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes cad-c2 { 0%, 30% { opacity: 0; } 33%, 54% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes cad-c3 { 0%, 57% { opacity: 0; } 60%, 94% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 1100px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .timeline li:nth-child(n+4)::after { content: ""; position: absolute; left: 0; right: 0; top: -5px; height: 5px; background: var(--ramp); }
}

@media (max-width: 1000px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-in { display: contents; }
  .hero-copy { order: 1; max-width: none; padding: 32px var(--gutter) 8px; }
  #scan { order: 2; position: static; height: auto; aspect-ratio: 5 / 4; }
  .stage-bar { order: 3; padding: 0 var(--gutter) 24px; }
  .wall-fig text, .wall-fig .lead { display: none; }
  .wall-legend { display: flex; }
  .stage-caption { font-size: 1.0625rem; }
  .how-grid, .wall-grid, .demo-grid, .track-head, .d-hero-grid, .cad-grid { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .how-head { position: static; }
  .pair, .answers-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .top-in { gap: 12px; }
  .btn-small { padding: 9px 14px; }
  .brand { font-size: 1.45rem; }
  .step { grid-template-columns: 52px minmax(0, 1fr); }
  .step-num { font-size: 3.2rem; }
  .step-fig { grid-column: 2; max-width: 280px; }
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 5px solid; border-image: linear-gradient(180deg, #3b2418, #e8321c) 1; }
  .timeline li { padding: 0 0 28px 28px; }
  .timeline li::before { top: 6px; left: -13px; }
  .form { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .copy { margin-left: 0; }
}

@media (max-width: 420px) {
  .top .btn-small { display: none; }
}

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