:root {
  --sky: #E6EBEF;      /* page: cool high-desert winter sky */
  --paper: #F7F9FA;    /* window chrome */
  --basalt: #15191C;   /* text */
  --slate: #5B6670;    /* secondary text */
  --line: #CBD3D9;
  --juniper: #2F3FD8;  /* the one accent */
  --pad: clamp(20px, 4vw, 56px);
  --max: 1400px;
  --font: "Bricolage Grotesque", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--sky);
  color: var(--basalt);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--juniper); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ---------------- top bar ---------------- */
.top {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.me { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; text-decoration: none; }
.top-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); font-size: 0.95rem; }
.top-links a { text-decoration: none; color: var(--slate); transition: color .2s; }
.top-links a:hover { color: var(--basalt); }
.top-links .top-cta {
  color: var(--paper); background: var(--basalt); padding: 9px 16px; border-radius: 999px; font-weight: 600;
}
.top-links .top-cta:hover { color: var(--paper); background: var(--juniper); }

/* ---------------- intro ---------------- */
.intro {
  max-width: var(--max); margin: 0 auto; padding: clamp(16px, 4vh, 48px) var(--pad) clamp(22px, 3.4vh, 36px);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px 64px; align-items: end;
}
.intro h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.9rem); line-height: 0.95; font-weight: 700;
  letter-spacing: -0.045em; max-width: 13ch;
  font-variation-settings: "opsz" 96;
}
.intro-side { max-width: 42ch; padding-bottom: 8px; }
.intro-side p { font-size: 1.08rem; }
.intro-side .intro-hint { margin-top: 14px; color: var(--slate); font-size: 0.98rem; }

/* ---------------- the window ---------------- */
.work { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.window {
  background: var(--paper); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 30px 60px -30px rgba(21, 25, 28, .35), 0 12px 24px -16px rgba(21, 25, 28, .2);
}

/* tabs: the project switcher */
.tabs {
  display: flex; gap: 2px; padding: 10px 10px 0; background: #DCE2E7;
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: 0 0 auto; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px 12px; border: 0; border-radius: 12px 12px 0 0;
  background: transparent; cursor: pointer; text-align: left;
  color: var(--slate); font-size: 0.95rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s;
}
.tab:hover { background: rgba(247, 249, 250, .55); color: var(--basalt); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--basalt); font-weight: 600; }
/* the little marker says whether a site is a real client's or a concept */
.tab .kind-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--juniper); flex: none; }
.tab[data-kind="concept"] .kind-dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--slate); }
.tab[data-kind="product"] .kind-dot { border-radius: 2px; background: var(--basalt); }

.toolbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #CDD4DA; }
.address {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  background: var(--sky); border-radius: 999px; padding: 7px 14px; font-size: 0.92rem; color: var(--slate);
}
.address svg { width: 13px; height: 13px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; background: var(--sky); border-radius: 999px; padding: 3px; }
.seg[hidden] { display: none; }
.seg button {
  border: 0; background: transparent; padding: 6px 13px; border-radius: 999px; cursor: pointer;
  font-size: 0.86rem; color: var(--slate);
}
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--basalt); font-weight: 600; box-shadow: 0 1px 2px rgba(21, 25, 28, .14); }
.visit {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  color: var(--juniper); padding: 6px 4px;
}
.visit svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.visit:hover { text-decoration: underline; text-underline-offset: 3px; }

.viewport {
  position: relative; height: min(76vh, 820px); min-height: 420px; overflow: hidden;
  background: #D4DBE0;
}
.site {
  position: absolute; top: 0; left: 0; border: 0; background: #fff;
  transform-origin: 0 0; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.site.on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.viewport.phone .site { border-radius: 34px; box-shadow: 0 0 0 9px var(--basalt), 0 24px 50px -20px rgba(21, 25, 28, .5); }

/* the iframe only takes scroll and clicks after you ask for it, so the page itself keeps scrolling */
.shield {
  position: absolute; inset: 0; z-index: 2; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 22px;
}
.shield-hint {
  background: var(--basalt); color: var(--paper); font-size: 0.9rem; font-weight: 600;
  padding: 10px 16px; border-radius: 999px; opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease);
}
.shield:hover .shield-hint, .shield:focus-visible .shield-hint { opacity: 1; transform: none; }
.viewport.live .shield { display: none; }
.release {
  position: absolute; z-index: 3; right: 14px; top: 14px; border: 0; cursor: pointer;
  background: var(--basalt); color: var(--paper); font-size: 0.86rem; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(21, 25, 28, .5);
}

.loading {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: 14px;
  color: var(--slate); font-size: 0.95rem;
}
.loading[hidden] { display: none; }
/* the archived "before" screenshot scrolls like a page */
.before { position: absolute; inset: 0; z-index: 1; overflow-y: auto; background: #fff; scrollbar-width: thin; }
.before[hidden] { display: none; }
.before img { display: block; width: 100%; height: auto; }
.loading span { width: 140px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.loading span::after {
  content: ""; position: absolute; inset: 0; width: 40%; background: var(--juniper); border-radius: 3px;
  animation: load 1.1s var(--ease) infinite;
}
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* caption under the window */
.caption {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px 64px;
  padding: 26px 4px 0; min-height: 132px;
}
.projects { list-style: none; }
.projects.tabbed .caption:not(.on) { display: none; }
.cap-kind a { color: inherit; text-underline-offset: 3px; }
.cap-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 700; }
.cap-kind { margin-top: 8px; color: var(--slate); font-size: 0.95rem; }
.cap-body { max-width: 60ch; font-size: 1.04rem; }

/* ---------------- how it works ---------------- */
.how, .pricing, .auto, .why, .faq, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vh, 140px) var(--pad) 0; }
.how h2, .pricing h2, .auto h2, .why h2, .faq h2, .contact h2 {
  font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1; font-weight: 700;
}
.steps {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 44px;
}
.steps li { counter-increment: step; border-top: 2px solid var(--basalt); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block; font-size: 0.95rem; font-weight: 700; color: var(--juniper); margin-bottom: 18px;
}
.steps h3 { font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 10px; font-weight: 650; }
.steps p { color: var(--slate); max-width: 38ch; }
.pricing, .auto, .why, .faq, .contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 64px; align-items: start; }
.pricing-body { padding-top: 6px; max-width: 58ch; }
.pricing-lead { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.pricing-body ul { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.pricing-body li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--slate); }

.why-body, .auto-body { max-width: 62ch; padding-top: 6px; }
.why-lead, .auto-lead { font-size: 1.18rem; }
.points, .autos { list-style: none; margin-top: 26px; border-top: 1px solid var(--line); }
.points li, .autos li { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.points h3, .autos h4 { font-size: 1.18rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.25; }
.points p, .autos p { margin-top: 6px; color: var(--slate); }
.faq .points { margin-top: 6px; max-width: 62ch; }
/* marks the automations that are already working for a real client */
.running {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 12px;
  font-size: 0.86rem; font-weight: 600; color: var(--juniper);
}
.running::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--juniper); box-shadow: 0 0 0 3px rgba(47, 63, 216, .16); }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin-top: 28px; }
.paths h3 { font-size: 1.18rem; font-weight: 650; letter-spacing: -0.015em; }
.paths p { margin-top: 6px; color: var(--slate); }
.auto .sub { margin-top: 44px; font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; }
.auto .sub + .autos { margin-top: 14px; }
.mini-steps { list-style: none; counter-reset: m; margin-top: 14px; }
.mini-steps li { counter-increment: m; position: relative; padding: 12px 0 12px 38px; border-bottom: 1px solid var(--line); color: var(--slate); }
.mini-steps li:first-child { border-top: 1px solid var(--line); }
.mini-steps li::before {
  content: counter(m); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; color: var(--paper); background: var(--juniper);
}
.mini-steps b { color: var(--basalt); font-weight: 650; }
.auto-note { margin-top: 16px; color: var(--slate); font-size: 0.98rem; }

/* ---------------- contact ---------------- */
.contact { padding-bottom: clamp(80px, 12vh, 140px); }
.contact-lead { font-size: 1.18rem; max-width: 34ch; margin-top: 16px; }
.contact-alt { margin-top: 16px; color: var(--slate); }
.contact-alt a { color: var(--juniper); font-weight: 600; text-underline-offset: 3px; }

.lead { display: grid; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 32px); }
.lead .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.need { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.need legend { width: 100%; font-weight: 600; margin-bottom: 10px; }
.need legend em { font-style: normal; font-weight: 400; color: var(--slate); }
.need label { cursor: pointer; }
.need input { position: absolute; opacity: 0; pointer-events: none; }
.need span {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: 0.95rem; transition: border-color .15s, background .15s, color .15s;
}
.need label:hover span { border-color: var(--slate); }
.need input:checked + span { background: var(--basalt); border-color: var(--basalt); color: var(--paper); }
.need input:focus-visible + span { outline: 2px solid var(--juniper); outline-offset: 3px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.field em { font-style: normal; font-weight: 400; color: var(--slate); }
.field input, .field textarea {
  font: inherit; font-weight: 400; font-size: 1rem; color: var(--basalt);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--juniper); box-shadow: 0 0 0 3px rgba(47, 63, 216, .15); }
.field input::placeholder, .field textarea::placeholder { color: #98A2AA; }
.field.bad input { border-color: #C2362B; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.send-btn {
  border: 0; cursor: pointer; background: var(--basalt); color: var(--paper); font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; transition: background .2s;
}
.send-btn:hover { background: var(--juniper); }
.send-btn:disabled { opacity: .6; cursor: wait; }
.form-msg { color: var(--slate); font-size: 0.95rem; }
.form-privacy { color: var(--slate); font-size: 0.86rem; margin-top: -4px; }
.form-msg.err { color: #C2362B; }
.lead.done { place-content: center; min-height: 320px; text-align: center; }
.lead.done h3 { font-size: 1.6rem; letter-spacing: -0.02em; }
.lead.done p { color: var(--slate); margin-top: 8px; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 32px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; color: var(--slate); font-size: 0.9rem;
}

/* ---------------- smaller screens ---------------- */
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .caption { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .pricing, .auto, .why, .faq, .contact { grid-template-columns: 1fr; }
  .paths, .lead .row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-links a:not(.top-cta) { display: none; }
  .toolbar { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .lights, .modes { display: none; }
  .address { grid-row: 1; grid-column: 1; }
  .visit { grid-row: 1; grid-column: 2; }
  .ba { grid-row: 2; grid-column: 1 / -1; justify-self: start; }
  .viewport { height: 72svh; min-height: 460px; }
  .viewport.phone .site { box-shadow: none; border-radius: 0; }
  .shield { padding-bottom: 16px; }
  .shield-hint { opacity: 1; transform: none; }
  .tab { padding: 10px 14px 11px; font-size: 0.9rem; }
  .window { border-radius: 14px; }
}
