/* K6N. Laws are in ../SITE-SPEC.md. Yellow is the number and the letters it hides. */
@font-face { font-family: "K6N Wide"; src: url("assets/k6n-wide.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/archivo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/archivo-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #0C0D0F; --ink2: #1A1C20; --paper: #F3F4F2; --paper2: #E1E4E0; --hot: #FFC400;
  --mute-d: #A9ADB3; --mute-l: #50555B; --line-d: #3A3E45; --line-l: #BFC4BE;
  --bar: 64px;
  --gut: clamp(16px, 5vw, 72px);
  --wide: "K6N Wide", "Arial Black", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--bar); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 400 17px/1.5 Archivo, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, .title { font-family: var(--wide); font-weight: 400; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
b { font-weight: 600; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.js-only { display: none !important; }
.js .js-only { display: revert !important; }
.js .toggle.js-only { display: flex !important; }
.js .btn.js-only { display: inline-flex !important; }
.js .asks.js-only, .js .lead.js-only, .js .scrub.js-only { display: block !important; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 20; background: var(--paper); color: var(--ink); padding: 12px 16px; }
.skip:focus { top: 8px; }

.wrap { max-width: 1744px; margin: 0 auto; padding: 0 var(--gut); }
.band { background: var(--paper); color: var(--ink); padding: clamp(72px, 9vw, 144px) 0; }
.dark { background: var(--ink); color: var(--paper); }
.hot { background: var(--hot); color: var(--ink); }
.title { font-size: clamp(32px, 4.4vw, 64px); }
.lead { font-size: clamp(22px, 2.1vw, 32px); line-height: 1.28; text-wrap: pretty; }
.soft { color: var(--mute-l); }
.dark .soft { color: var(--mute-d); }
.small { font-size: 15px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 10; height: var(--bar); background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-d); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gut); }
.bar-logo { display: flex; align-items: center; min-height: 44px; }
.bar-nav { display: flex; gap: clamp(16px, 2vw, 32px); }
.bar-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font-size: 16px; text-decoration: none; }
.bar-nav a:hover { text-decoration: underline; }
.wide-only { display: none !important; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 2px solid var(--paper); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; transition: background-color .18s, color .18s; }
@media (hover: hover) { .btn:hover { background: transparent; color: var(--paper); text-decoration: none; } }
.btn-line { background: transparent; color: var(--paper); }
@media (hover: hover) { .btn-line:hover { background: var(--paper); color: var(--ink); } }
.btn-ink { border-color: var(--ink); background: var(--ink); color: var(--paper); }
@media (hover: hover) { .btn-ink:hover { background: transparent; color: var(--ink); } }
.textbtn { border: 0; background: none; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: .18em; }

/* Hero */
.hero { min-height: calc(100svh - var(--bar)); display: flex; flex-direction: column; overflow: hidden; padding: 28px 0 36px; }
.hero-mark { display: flex; justify-content: center; margin: auto 0; }
.hero-mark svg { width: 166vw; max-width: none; flex: none; }
.hero-foot { width: 100%; margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(30px, 8.6vw, 44px); }
@keyframes from-left { from { transform: translateX(-220px); } }
@keyframes from-right { from { transform: translateX(220px); } }
.m-k { animation: from-left .9s var(--ease) both; }
.m-n { animation: from-right .9s var(--ease) both; }

/* The number opens */
.word { font-family: var(--wide); font-weight: 400; font-size: min(9.2vw, 168px); line-height: 1; letter-spacing: 0; position: relative; }
.word-in { display: flex; align-items: stretch; white-space: nowrap; height: 1em; line-height: 1; }
.mid { display: inline-grid; overflow: hidden; overflow: clip; background: var(--hot); margin: 0 .04em; }
.mid > * { grid-area: 1 / 1; padding: 0 .04em; }
.dark .mid { background: none; color: var(--hot); margin: 0; }
.dark .mid > * { padding: 0; }
.num { visibility: hidden; width: 0; padding: 0 !important; }
.js .num { width: max-content; }
.js .word.shut .num { visibility: visible; padding: 0 .04em !important; }
.js .dark .word.shut .num { padding: 0 !important; }
.word.shut .let { visibility: hidden; transform: translateY(100%); }
.word.opening .mid { transition: width .7s var(--ease); }
.word.opening .num { visibility: visible; transform: translateY(-110%); transition: transform .45s var(--ease); }
.word.opening .let { visibility: visible; transform: none; transition: transform .7s var(--ease); }
.js .word.opening .num { padding: 0 .04em !important; }
.word-s { font-size: min(9.2vw, 64px); }

/* Service sections */
.split { display: grid; gap: 40px; margin-top: clamp(32px, 4vw, 64px); }
.split > * { min-width: 0; }
.points { margin-top: 28px; }
.points li { border-top: 1px solid var(--line-l); padding: 13px 0; }
.dark .points li { border-color: var(--line-d); }
.aside { margin-top: 20px; color: var(--mute-d); }
figcaption { margin-top: 20px; font-size: 15px; color: var(--mute-l); }
.dark figcaption { color: var(--mute-d); }
.dark figcaption a { color: var(--paper); display: inline-block; padding: 12px 0; }
.panel { background: var(--paper2); padding: clamp(20px, 3vw, 40px); }
.dark .panel { background: var(--ink2); }
.panel-note { font-size: 15px; color: var(--mute-l); }
.dark .panel-note { color: var(--mute-d); }

.screens { position: relative; padding-bottom: 32%; }
.scr-phone { position: absolute; left: 5%; bottom: 0; width: 22%; border: 5px solid var(--paper); border-radius: 22px; }
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.6vw, 24px); }
.phones img { border-radius: clamp(12px, 2vw, 32px); }

/* Ten services */
.index { display: grid; margin-top: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line-d); }
.index a { display: flex; align-items: center; gap: 20px; min-height: 84px; padding: 12px 0; border-top: 1px solid var(--line-d); text-decoration: none; }
.index a:hover b { text-decoration: underline; text-underline-offset: .18em; }
.index b { display: block; font-size: 22px; line-height: 1.2; }
.index small { display: block; font-size: 16px; color: var(--mute-d); margin-top: 3px; }
.code { font-family: var(--wide); font-size: clamp(24px, 2.6vw, 38px); width: 3.4em; flex: none; line-height: 1; }
.code i { font-style: normal; color: var(--hot); }

/* Chat */
.log { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.js .log { min-height: 420px; }
.log p { max-width: 82%; padding: 12px 18px; border-radius: 20px; }
.them { align-self: flex-end; background: var(--ink); color: var(--paper); }
.us { align-self: flex-start; background: var(--paper); }
.log .typing { color: var(--mute-l); }
.asks { margin-top: 24px; border-top: 1px solid var(--line-l); padding-top: 18px; min-height: 148px; }
.asks-t { font-size: 15px; color: var(--mute-l); margin-bottom: 10px; }
.asks-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ask { min-height: 46px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 24px; background: none; text-align: left; transition: background-color .18s, color .18s; }
@media (hover: hover) { .ask:hover { background: var(--ink); color: var(--paper); } }
.asks[aria-busy="true"] .ask { opacity: .45; }

/* Call */
.call-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.toggle { border: 2px solid var(--paper); }
.toggle button { min-height: 44px; padding: 8px 18px; border: 0; background: none; }
.toggle button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.wave { width: 100%; margin: 24px 0; }
.turns { display: flex; flex-direction: column; gap: 14px; }
.turns + .turns { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line-d); }
.js .turns { min-height: 236px; }
.js .turns + .turns { margin-top: 0; padding-top: 0; border: 0; }
.turns > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.turns dt { color: var(--mute-d); }
.turns dt.ai { color: var(--hot); }
.after { background: var(--paper); color: var(--ink); padding: 20px 24px; margin-top: 28px; }
.after h3 { font-size: 18px; margin-bottom: 4px; }

/* Automation */
.head2 { display: grid; gap: 20px; }
.word + .head2 { margin-top: clamp(32px, 4vw, 64px); }
.clean { display: grid; gap: 32px; margin-top: clamp(32px, 4vw, 56px); }
.clean > * { min-width: 0; }
.clean-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; min-height: 52px; }
.clean table { width: 100%; border-collapse: collapse; margin-top: 16px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.clean th { text-align: left; font-weight: 600; }
.clean th, .clean td { border-top: 1px solid var(--line-l); padding: 14px 8px 14px 0; font-size: clamp(16px, 1.5vw, 20px); }
.clean tr:last-child td { border-bottom: 1px solid var(--line-l); }
.clean th:last-child, .clean td:last-child { text-align: right; padding-right: 0; }
.clean .raw, .clean .raw-block { display: none; }
.clean:not(.is-clean) .raw { display: inline; }
.clean:not(.is-clean) .raw-block { display: block; }
.clean:not(.is-clean) .fix, .clean:not(.is-clean) .fix-block { display: none; }
.is-clean .dup td { color: var(--mute-l); }
@keyframes settle { from { opacity: 0; transform: translateY(8px); } }
.run .fix, .run .fix-block { animation: settle .45s var(--ease) both; }
.run .fix { display: inline-block; }
.run tbody tr:nth-child(2) .fix { animation-delay: .08s; }
.run tbody tr:nth-child(3) .fix { animation-delay: .16s; }
.run tbody tr:nth-child(4) .fix { animation-delay: .24s; }
.run tbody tr:nth-child(5) .fix { animation-delay: .32s; }
.run .fix-block { animation-delay: .5s; }
.todo { background: var(--ink); color: var(--paper); padding: clamp(24px, 3vw, 40px); min-height: 280px; }
.fix-block { display: grid; gap: 14px; margin-top: 20px; }
.raw-block { margin-top: 20px; color: var(--mute-d); }
.sum { font-family: var(--wide); font-size: clamp(32px, 3.4vw, 52px); line-height: 1.1; color: var(--hot); }

/* Dashboard */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.tile { background: var(--ink2); padding: clamp(18px, 2vw, 32px); min-width: 0; }
.tile-hot, .tile-line, .tile-do { grid-column: 1 / -1; }
.tile-hot { background: var(--hot); color: var(--ink); display: flex; flex-direction: column; }
.tile-b { font-weight: 600; font-size: 22px; line-height: 1.2; margin: 16px 0 6px; }
.huge { font-family: var(--wide); font-size: clamp(112px, 11vw, 190px); line-height: .9; letter-spacing: -.03em; display: block; }
.tile-hot .huge { margin-top: auto; padding-top: 36px; }
.line-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.read { font-weight: 600; font-variant-numeric: tabular-nums; }
.plot { position: relative; height: 220px; margin-top: 24px; touch-action: pan-y; }
.plot svg { width: 100%; height: 100%; }
.dot { position: absolute; left: 98.26%; top: 86.36%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 3px var(--ink2); }
.scrub { width: 100%; height: 44px; margin: 4px 0 0; appearance: none; -webkit-appearance: none; background: none; cursor: pointer; }
.scrub::-webkit-slider-runnable-track { height: 2px; background: var(--line-d); }
.scrub::-moz-range-track { height: 2px; background: var(--line-d); }
.scrub::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; background: var(--paper); border: 0; }
.scrub::-moz-range-thumb { width: 18px; height: 18px; background: var(--paper); border: 0; border-radius: 0; }
.tile-do ul { margin-top: 20px; }
.tile-do li { border-top: 1px solid var(--line-d); padding: 14px 0; }
.tile-do li:last-child { padding-bottom: 0; }
.tile-do b, .tile-do span { display: block; }
.tile-do span { color: var(--mute-d); }
.tile-s p:first-child { font-size: 15px; color: var(--mute-d); }
.stat { font-family: var(--wide); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.1; margin-top: 6px; }
.note { margin-top: 20px; }

/* Five more */
.rows { margin-top: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line-l); }
.row { display: grid; gap: 14px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line-l); }
.row p { max-width: 34em; }

/* Where to start */
.picks { margin-top: clamp(28px, 4vw, 56px); border-bottom: 1px solid var(--line-d); }
.picks label { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 2px 18px; align-items: center; min-height: 76px; padding: 14px 0; border-top: 1px solid var(--line-d); }
.js .picks label { cursor: pointer; }
.picks input { position: absolute; opacity: 0; width: 28px; height: 28px; left: 0; top: 50%; margin: -14px 0 0; }
.box { grid-row: span 2; width: 28px; height: 28px; border: 2px solid var(--paper); display: grid; place-items: center; }
html:not(.js) .picks input, html:not(.js) .box { display: none; }
html:not(.js) .picks label { grid-template-columns: 1fr; }
.box::after { content: ""; width: 12px; height: 6px; border: solid var(--ink); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); opacity: 0; }
.picks input:checked + .box { background: var(--paper); }
.picks input:checked + .box::after { opacity: 1; }
.picks input:focus-visible + .box { outline: 3px solid var(--paper); outline-offset: 3px; }
.see { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.3; }
.build { color: var(--mute-d); grid-column: -2 / -1; }
.picks input:checked ~ .build { color: var(--paper); }
.picks-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.status { min-height: 1.5em; }
.fallback { display: block; width: 100%; max-width: 720px; margin-top: 16px; padding: 16px; border: 2px solid var(--paper); border-radius: 0; background: var(--ink2); color: var(--paper); font: inherit; resize: vertical; }

/* How we work */
.steps { display: grid; gap: 40px; margin-top: clamp(32px, 5vw, 72px); }
.steps li { border-top: 6px solid var(--ink); padding-top: 24px; }
.steps h3 { margin: 20px 0 8px; font-size: 26px; }
.steps p { color: var(--mute-l); }

/* Names */
.about { padding-top: 0; }
.letters { display: grid; grid-template-columns: repeat(8, 1fr); margin-top: clamp(28px, 4vw, 56px); font-family: var(--wide); font-size: min(10.4vw, 188px); line-height: 1; }
.share { grid-area: 1 / 4 / 3 / 7; background: var(--hot); }
.l { text-align: center; padding: .1em 0; }
.r1 { grid-row: 1; } .r2 { grid-row: 2; }
.c1 { grid-column: 1; } .c2 { grid-column: 2; } .c3 { grid-column: 3; } .c4 { grid-column: 4; }
.c5 { grid-column: 5; } .c6 { grid-column: 6; } .c7 { grid-column: 7; } .c8 { grid-column: 8; }
.trio { display: grid; gap: 24px; margin-top: 32px; }
.trio p { color: var(--mute-l); margin-top: 4px; }

/* Contact */
.title-xl { font-size: clamp(36px, 6.4vw, 96px); max-width: 15em; }
.people { display: grid; gap: 36px; margin-top: clamp(48px, 8vw, 120px); border-top: 3px solid var(--ink); padding-top: 28px; }
.people h3 { font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.people a { display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 48px; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(48px, 6vw, 88px); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 700px) {
  body { font-size: 18px; }
  .hero-mark { justify-content: flex-start; padding: 0 var(--gut); max-width: 1744px; width: 100%; margin: 0 auto; }
  .hero-mark svg { width: min(100%, max(560px, (100svh - var(--bar) - 300px) * 2.95)); }
  .hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 56px); }
  .hero h1 { font-size: clamp(36px, 4.4vw, 64px); max-width: 15em; }
  .index { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: clamp(32px, 5vw, 96px); }
  .tile-line, .tile-do { grid-column: 1 / -1; }
  .row { grid-template-columns: minmax(0, 620px) 1fr; gap: 32px; min-height: 124px; }
  .picks label { grid-template-columns: 28px 3fr 2fr; }
  .box { grid-row: auto; }
  .build { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trio { grid-template-columns: 3fr 3fr 2fr; gap: 0; }
  .trio > * { padding-right: 24px; }
  .people { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .wide-only { display: flex !important; }
  .narrow-only { display: none !important; }
  .hero-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .btns { flex: none; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 7vw, 128px); }
  .head2 { grid-template-columns: 7fr 5fr; gap: clamp(48px, 7vw, 128px); align-items: start; }
  .clean { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 96px); }
  .board { grid-template-columns: 4fr repeat(3, 2fr) 5fr; grid-template-rows: auto auto; gap: 20px; }
  .tile-hot { grid-area: 1 / 1 / 3 / 2; }
  .tile-line { grid-area: 1 / 2 / 2 / 5; }
  .tile-do { grid-area: 1 / 5 / 3 / 6; display: flex; flex-direction: column; }
  .tile-do ul { margin-top: auto; padding-top: 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .bar { position: static; } }

/* Page not found */
.lost { min-height: 100svh; display: grid; align-items: center; }
.lost .wrap { width: 100%; display: grid; gap: 24px; justify-items: start; }
