@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-mono-400.woff2) format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-500.woff2) format('woff2')}
@font-face{font-family:'Space Mono';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/space-mono-400.woff2) format('woff2')}
/* TechThread home page styles (ported from mock-up v6, 16 Oct 2026). The "< 1000 px" phone block at the end must stay LAST. */
/* TechThread Mono tokens: paper, ink and three greys only. */
:root {
  --paper: #ffffff; --ink: #0d0d0d; --grey-1: #6f6f6f; --grey-2: #ababab; --grey-3: #e8e8e8;
  --display: var(--font-space), "Space Mono", Menlo, Consolas, monospace;
  --mono: var(--font-plex), "IBM Plex Mono", Menlo, Consolas, monospace;
  --hair: 1px;
  --m: 16px; --fs-head: min(30px, 7.9vw); --fs-term: 13px; --pitch: 24px; --fs-label: 11.5px; --fs-body: 14px; --fs-h2: 26px; --gut: 30px; --sec: 96px;
}
@media (min-width: 700px) { :root { --m: 40px; --fs-head: min(50px, 6.2vw); --fs-term: 14px; --pitch: 27px; --fs-label: 12px; --fs-body: 15px; --fs-h2: 36px; --gut: 46px; --sec: 104px; } }
@media (min-width: 1100px) { :root { --m: 64px; --fs-head: min(54px, 4vw, 6.4vh); --fs-term: 14px; --pitch: 28px; --fs-label: 12.5px; --fs-body: 15.5px; --fs-h2: 44px; --gut: 52px; --sec: 112px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: var(--fs-body); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
svg * { vector-effect: non-scaling-stroke; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--m); }
.g1 { color: var(--grey-1); } .g2 { color: var(--grey-2); }
.label { font-size: var(--fs-label); line-height: 1.5; }
.comment { font-size: var(--fs-label); color: var(--grey-1); }
.wide-only { display: none; }
.ln.wide-ln { display: none; }
@media (min-width: 700px) { .wide-only { display: inline; } .ln.wide-ln { display: grid; } .ln.narrow-only { display: none; } .phone-only { display: none; } }

/* Floating header: black links, scroll-spy marker, reading progress */
.bar-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 30; padding: 0 var(--m); pointer-events: none; }
.bar { pointer-events: auto; position: relative; max-width: calc(1440px - 2 * var(--m)); margin: 0 auto; height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 0 16px; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border: var(--hair) solid var(--grey-3); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { height: 22px; width: auto; display: block; }
.logo-word { width: 108px; height: auto; display: block; }
.spy { display: none; position: relative; height: 100%; align-items: stretch; }
.spy a { display: flex; align-items: center; padding: 0 14px; font-size: var(--fs-label); font-weight: 500; color: var(--ink); text-decoration: none; }
.spy a:hover { text-decoration: underline; text-underline-offset: 4px; }
.spy i { position: absolute; bottom: -1px; height: 2px; background: var(--ink); transition: left .35s ease, width .35s ease; width: 0; }
@media (min-width: 760px) { .spy { display: flex; } }
.bar-r { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; background: none; border: var(--hair) solid var(--ink); padding: 10px 12px; font-size: var(--fs-label); font-weight: 500; cursor: pointer; }
@media (min-width: 760px) { .menu-btn { display: none; } }
.menu { position: absolute; top: 60px; right: 0; left: 0; background: var(--paper); border: var(--hair) solid var(--ink); display: flex; flex-direction: column; }
.menu a { padding: 14px 16px; border-bottom: var(--hair) solid var(--grey-3); text-decoration: none; font-weight: 500; font-size: var(--fs-term); }
.menu a:last-child { border-bottom: 0; }
.progress { position: absolute; left: -1px; bottom: -1px; height: 1px; background: var(--ink); width: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 var(--fs-label)/1 var(--mono); padding: 13px 18px; border: var(--hair) solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }
.bar .btn { padding: 11px 14px; }

/* Hero */
.hero { padding-top: 88px; }
.lines { counter-reset: ln; }
.ln { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr); align-items: baseline; }
.ln::before { counter-increment: ln; content: counter(ln, decimal-leading-zero); font: 400 var(--fs-label)/1 var(--mono); color: var(--grey-2); }
.gap { height: calc(var(--fs-head) * 0.45); }
.head { font: 400 var(--fs-head)/1.16 var(--display); white-space: pre; letter-spacing: -0.01em; }
.prompt-c { color: var(--grey-2); }
.cursor { display: inline-block; width: 0.5em; height: 0.84em; margin-left: 0.17em; background: var(--ink); vertical-align: -0.14em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
/* 980-1099 px (small laptops, iPad landscape): a smaller headline, so the phone stays above the fold */
@media (min-width: 980px) and (max-width: 1099px) { :root { --fs-head: min(44px, 4.2vw, 6.4vh); } }
/* NOW -> NEXT: what you can use today, then what comes next. Solid line = done, dashed line = ahead. */
.path { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 22px; padding-left: var(--gut); }
.stop { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.stop-at { font-size: var(--fs-label); font-weight: 500; line-height: 1.4; }
.stop-line { position: relative; align-self: stretch; height: 9px; margin: 6px 0 12px; }
.stop-line::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 3px solid var(--ink); }
.stop-line i { position: absolute; left: 0; top: 0; width: 9px; height: 9px; background: var(--ink); }
.stop-line b { position: absolute; right: 0; top: 50%; transform: translateY(-50%); padding-left: 8px; background: var(--paper); color: var(--grey-1); font-weight: 400; line-height: 1; }
.next .stop-line::before { top: 4px; border-top: 1px dashed var(--grey-1); }
.next .stop-line i { background: var(--paper); border: var(--hair) solid var(--ink); }
.stop-name { font-size: calc(var(--fs-body) * 1.2); font-weight: 500; line-height: 1.3; }
.stop-copy { color: var(--grey-1); padding-right: 12px; }
.stop .tag { margin-top: 8px; }
.stop .btn { margin-top: 10px; }
/* phones and tablets: both columns share the same rows, so the tags and buttons line up */
@media (max-width: 859px) {
  .path { grid-template-rows: repeat(6, auto); }
  .stop { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; justify-items: start; }
  .stop-line { justify-self: stretch; }
}
/* computers: tag beside the name, the words on one line, button on the right, so the phone below still fits the first screen */
@media (min-width: 860px) {
  .stop { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; column-gap: 12px; align-items: center; align-content: start; }
  .stop-at, .stop-line { grid-column: 1 / -1; }
  .stop-copy { grid-column: 1 / 4; grid-row: 4; padding-right: 0; font-size: var(--fs-term); }
  .stop-copy br { display: none; }
  .stop .tag { grid-column: 2; grid-row: 3; margin-top: 0; }
  .stop .btn { grid-column: 4; grid-row: 3 / 5; margin-top: 0; }
  .stop:not(.next) .btn { margin-right: 28px; }
}
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Hero visual: phone -> pattern file */
.duo { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; }
@media (min-width: 860px) { .duo { grid-template-columns: auto 36px minmax(0, 1fr); } }
/* the phone fits the screen height: what is left after the bar, the headline (3 lines, so it follows --fs-head) and the NOW -> NEXT line */
@media (min-width: 860px) { .phone { --above: 266px; width: auto !important; height: clamp(260px, calc(100vh - var(--above) - var(--fs-head) * 3.93), 455px); } }
@media (min-width: 860px) and (max-width: 1199px) { .phone { --above: 290px; } }   /* the words under PatternCam take two lines here */
/* every size in % below: same iPhone shape however small the screen makes it */
.phone { width: min(210px, 58vw); aspect-ratio: 9 / 19.5; border: 5px solid var(--ink); border-radius: 20% / 9.23%; position: relative; background: var(--ink); overflow: hidden; justify-self: center; }
.phone .island { position: absolute; top: 2%; left: 50%; width: 30%; height: 4.6%; margin-left: -15%; background: var(--ink); border-radius: 12px; z-index: 3; }
.screen { position: absolute; inset: 0; background: #0b0b0b; border-radius: 17% / 7.85%; overflow: hidden; display: flex; flex-direction: column; }
.scr-top { height: 14%; flex: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; color: #fff; font-size: 11px; }
.scr-cam { flex: 1; display: flex; align-items: center; min-height: 0; }
.scr-cam svg { display: block; width: 100%; height: auto; }
.scr-bot { height: 18%; flex: none; display: flex; align-items: center; justify-content: center; }
.shutter { width: auto; height: 72%; aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; display: grid; place-items: center; }
.shutter i { width: 76%; height: 76%; border-radius: 50%; background: #fff; transition: transform .15s; }
.shutter.snap i { transform: scale(.82); }
@media (max-width: 859px) { .phone { width: auto !important; height: clamp(280px, calc(100svh - 500px), 455px); } }   /* on phones too: the whole phone shows on the first screen */
.arrow { display: none; color: var(--grey-2); text-align: center; font-size: 22px; transition: color .3s; }
@media (min-width: 860px) { .arrow { display: block; } }
.arrow.go { color: var(--ink); }
.win { border: var(--hair) solid var(--ink); background: var(--paper); }
.win-top { height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; border-bottom: var(--hair) solid var(--grey-3); font-size: var(--fs-label); }
.win-top .st { display: flex; align-items: center; gap: 14px; color: var(--grey-1); }
.linkbtn { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: var(--fs-label); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.win-foot { border-top: var(--hair) solid var(--grey-3); padding: 10px 14px; font-size: var(--fs-label); display: flex; justify-content: space-between; gap: 12px; color: var(--grey-1); }
.win-foot b { color: var(--ink); font-weight: 500; white-space: nowrap; }
.prow { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 22px 26px; padding: 26px 18px 18px; min-height: 120px; }
.fp { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s; }
.fp.in { opacity: 1; transform: none; }
.fp svg { display: block; overflow: visible; }
.fp .nm { font-size: var(--fs-label); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.fp .nm.none { color: var(--grey-2); font-weight: 400; }

/* Pattern line styles */
.o-out { fill: transparent; stroke: var(--ink); stroke-width: 1.5px; stroke-linejoin: round; }
.o-dart { fill: none; stroke: var(--ink); stroke-width: 1.3px; }
.o-line { fill: none; stroke: var(--ink); stroke-width: 1.1px; stroke-dasharray: 7 4; }
.o-notch { stroke: var(--ink); stroke-width: 2px; stroke-linecap: square; }
.o-drill { fill: none; stroke: var(--ink); stroke-width: 1.2px; }
.o-grain { fill: none; stroke: var(--ink); stroke-width: 1px; }
.o-corner { fill: var(--ink); }
.layer, .pc { transition: opacity .25s; }
.scanline { stroke: #fff; stroke-width: 2px; }

/* Promises */
.promise { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--hair) solid var(--grey-3); }
@media (min-width: 900px) { .promise { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promise > div { padding: 24px 0 8px; border-bottom: var(--hair) solid var(--grey-3); }
@media (min-width: 900px) { .promise > div { border-bottom: 0; padding: 30px 30px 8px 0; } .promise > div + div { border-left: var(--hair) solid var(--grey-3); padding-left: 30px; } }
.promise h3 { font-size: calc(var(--fs-h2) * 0.72); line-height: 1.1; letter-spacing: -0.02em; }
.promise p { margin-top: 8px; color: var(--grey-1); max-width: 34ch; }

/* Sections */
.sec { margin-top: var(--sec); scroll-margin-top: 80px; }   /* margin, not padding: a nav jump lands on the content */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; }
.sub { margin-top: 14px; color: var(--grey-1); max-width: 56ch; }
.tag { display: inline-block; font-size: var(--fs-label); border: var(--hair) dashed var(--grey-1); color: var(--grey-1); padding: 3px 8px; line-height: 1.4; }

/* Every mark: fits one screen */
.marks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1000px) { .marks-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: stretch; } .marks-stage { align-self: start; } }
.marks-side { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 999px) { .marks-side { display: contents; } .marks-side > * { min-width: 0; } .marks-grid { gap: 0; } .marks-grid .sub { margin-bottom: 22px; } .marks-stage { order: 4; } .chips { order: 5; } .pcard { order: 6; } }
.pcard { margin-top: 22px; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pc-body { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 12px 18px; min-height: 0; }
.pc-fig { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 80px; }
.pc-fig svg { display: block; overflow: visible; }
.pc-list { font-size: var(--fs-label); }
.pc-list div { display: flex; align-items: baseline; padding: 1px 0; border-bottom: var(--hair) solid var(--grey-3); white-space: pre; }
.pc-list div .lead { flex: 1; min-width: 0; overflow: hidden; color: var(--grey-2); margin: 0 1ch; }
.pc-list div .lead::before { content: ".................................................................."; }
.pc-list div b { font-weight: 500; }
.pc-list .z { color: var(--grey-2); }
.marks-stage { border: var(--hair) solid var(--ink); }
.marks-stage svg { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) { .marks-stage { justify-self: end; } .marks-stage svg { height: min(calc(100vh - 110px), 980px); width: auto; } }
.chips { margin-top: 26px; display: flex; flex-direction: column; border-top: var(--hair) solid var(--grey-3); }
@media (min-width: 1000px) { #chips { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; margin-top: 20px; } #chips .chip { padding: 6px 0; } }
.chip { display: flex; align-items: baseline; width: 100%; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: var(--fs-term); white-space: pre; text-align: left; border-bottom: var(--hair) solid var(--grey-3); }
.chip .lead { flex: 1; min-width: 0; overflow: hidden; color: var(--grey-2); margin: 0 1ch; }
.chip .lead::before { content: "..................................................................."; }
.chip .n { font-weight: 500; min-width: 3ch; text-align: right; }
.chip .mk { color: var(--grey-2); margin-right: 1ch; }
.chip:hover .mk, .chip.on .mk { color: var(--ink); }
.chip.on { font-weight: 500; }
.solo .layer { opacity: .12; }
.solo .layer[data-l="outline"] { opacity: .45; }
.solo .layer.lit { opacity: 1; }
.lit .o-dart, .lit .o-line, .lit .o-grain, .lit .o-drill { stroke-width: 2.8px; }
.lit .o-notch { stroke-width: 4px; }
.lit .o-out { stroke-width: 2.6px; }
.focus .pc { opacity: .14; }
.focus .pc.on { opacity: 1; }
#marks .o-out { cursor: pointer; }

/* Software: one file, many programs */
.soft { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: stretch; }   /* stretch: the card never moves when the note changes */
@media (min-width: 900px) { .soft { grid-template-columns: minmax(0, 1.15fr) 120px minmax(0, 0.85fr); gap: 0; } }
.fcard { display: flex; flex-direction: column; min-width: 0; }
.fsheet { flex: 1; min-height: 200px; display: flex; align-items: center; justify-content: center; padding: 18px 16px 12px; background-image: linear-gradient(var(--grey-3) 1px, transparent 1px), linear-gradient(90deg, var(--grey-3) 1px, transparent 1px); background-color: var(--paper); }
.fsheet svg { display: block; width: 100%; height: auto; max-height: 100%; overflow: visible; }
.fsheet .f-out { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4px; stroke-linejoin: round; }
.fsheet .f-in { fill: none; stroke: var(--ink); stroke-width: 1px; }
.fsheet .f-grain { fill: none; stroke: var(--grey-1); stroke-width: 1px; }
.fsheet .f-notch { stroke: var(--ink); stroke-width: 1.6px; }
.fsheet .f-drill { fill: none; stroke: var(--ink); stroke-width: 1px; }
.fsheet .f-name { font-family: var(--mono); font-weight: 500; letter-spacing: .04em; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; stroke-linejoin: round; }   /* a paper halo over the grain line */   /* size set in JS: 11 px on screen */
.fc-scale { display: inline-flex; align-items: center; gap: 8px; color: var(--grey-1); white-space: nowrap; }
.fc-scale i { display: inline-block; height: 5px; border: var(--hair) solid var(--ink); border-top: 0; }
.tcol { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.wires { display: none; width: 100%; height: 100%; align-self: stretch; }
@media (min-width: 900px) { .wires { display: block; } }
.wires path { fill: none; stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 5 6; animation: flow 1s linear infinite; transition: stroke .2s, stroke-width .2s; }
.wires.pick path { stroke: var(--grey-3); }
.wires.pick path.on { stroke: var(--ink); stroke-width: 2.2px; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.targets { display: flex; flex-direction: column; border-top: var(--hair) solid var(--grey-3); }
.tgt { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: none; border: 0; border-bottom: var(--hair) solid var(--grey-3); padding: 16px 0; cursor: pointer; text-align: left; font-size: calc(var(--fs-h2) * 0.5); color: var(--grey-1); }
.tgt small { font-size: var(--fs-label); color: var(--grey-2); white-space: nowrap; }
.tgt { color: var(--ink); }
.targets.pick .tgt { color: var(--grey-2); }
.targets.pick .tgt.on { color: var(--ink); }
.tgt.on small { color: var(--ink); }
.tgt.more { font-size: var(--fs-term); }
.soft-note { margin-top: 14px; font-size: var(--fs-label); line-height: 1.5; min-height: 3em; color: var(--grey-1); }   /* two lines kept: no jump */

/* Agent: prompt first. At rest a chat box sits in the middle with suggestions; send one and the files the agent makes pop up. */
.stage { position: relative; margin-top: 14px; border: var(--hair) solid var(--ink); display: flex; flex-direction: column; min-width: 0;
  background-color: var(--paper); background-image: radial-gradient(var(--grey-3) 1px, transparent 1.2px); background-size: 22px 22px; }
@media (min-width: 1000px) { .stage { height: clamp(540px, calc(100vh - 124px), 820px); } }
@media (max-width: 999px) { .stage.rest { min-height: 560px; } }
/* run: a chat, like the chat apps: your message on the right, the agent thinks, then answers with the files */
.thread { display: none; }
.run .thread { position: relative; display: flex; flex-direction: column; gap: 26px; flex: 1; min-height: 0; overflow-y: auto; padding: 14px max(18px, 3%) 10px; }
@media (max-width: 999px) { .run .thread { overflow: visible; padding: 16px 12px 18px; } }
.turn { flex: none; display: flex; flex-direction: column; gap: 10px; }
.u-msg { align-self: flex-end; max-width: min(760px, 88%); display: flex; align-items: center; gap: 10px; background: var(--grey-3); padding: 6px 12px 6px 6px; font-size: var(--fs-term); line-height: 1.5; animation: pop .3s cubic-bezier(.2, .8, .2, 1.1); }
.u-msg.plain { padding: 9px 12px; }
.u-att { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--paper); border: var(--hair) solid var(--grey-2); padding: 2px 8px 2px 2px; font-size: var(--fs-label); white-space: nowrap; }
.u-att img { height: 22px; width: auto; display: block; }
.u-att.f { padding: 4px 8px 4px 6px; }
.a-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; align-items: start; }
.a-av { width: 26px; height: 26px; border: var(--hair) solid var(--ink); display: grid; place-items: center; background: var(--paper); }
.a-av img { width: 14px; height: auto; display: block; }
.thinking .a-av img { animation: think 1.1s ease-in-out infinite; }
@keyframes think { 50% { opacity: .2; } }
@media (max-width: 699px) { .a-msg { grid-template-columns: minmax(0, 1fr); } .a-av { display: none; } }
.a-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.think-h { align-self: flex-start; background: none; border: 0; padding: 3px 0; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-label); color: var(--grey-1); cursor: pointer; }
.think-h:hover { color: var(--ink); }
.thinking .think-h { color: var(--ink); cursor: default; font-weight: 500; }
.think-h .chev { display: inline-block; transition: transform .2s; }
.think.open .think-h .chev { transform: rotate(90deg); }
.think-steps { margin: 4px 0 0 3px; padding: 2px 0 2px 14px; list-style: none; border-left: var(--hair) solid var(--grey-3); display: flex; flex-direction: column; gap: 5px; font-size: var(--fs-label); line-height: 1.5; color: var(--grey-1); }
.think:not(.open) .think-steps { display: none; }
.think-steps li { display: flex; gap: 8px; animation: pop .3s ease; }
.think-steps li .st { flex: none; width: 1.1em; color: var(--ink); }
.think-steps li .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.think-steps li .sub { color: var(--ink); animation: pop .3s ease; }
.think-steps li.go { color: var(--ink); }
.say { font-size: var(--fs-term); line-height: 1.55; animation: pop .3s ease; }
.say .btn { display: inline-flex; margin-top: 12px; }
.board { display: grid; gap: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board.one { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.board.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 999px) { .board, .board.one, .board.two { grid-template-columns: minmax(0, 1fr); gap: 26px; } }
.dock { flex: none; display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.rest .dock { margin: auto; max-width: 760px; padding: 32px 18px; text-align: center; }
.run .dock { padding: 10px 14px 12px; border-top: var(--hair) solid var(--grey-3); background: var(--paper); }
.dock-h { font-size: calc(var(--fs-h2) * 1.05); }
.dock-sub { margin: 10px auto 0; }
.run .dock-h, .run .dock-sub, .run .sugs { display: none; }
.pbox { margin-top: 26px; border: var(--hair) solid var(--ink); background: var(--paper); text-align: left; transition: box-shadow .2s; }
.run .pbox { margin-top: 0; }
.pb-att { display: flex; gap: 8px; padding: 0 10px; }
.pb-att:not(:empty) { padding-top: 10px; }
.att { display: inline-flex; align-items: center; gap: 8px; border: var(--hair) solid var(--grey-3); padding: 4px 8px 4px 4px; font-size: var(--fs-label); animation: pop .35s cubic-bezier(.2, .8, .2, 1.2); }
.att img { height: 34px; width: auto; display: block; }
.att.f { padding: 10px 10px 10px 8px; gap: 6px; }
.pb-row { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; }   /* icon and Make stay centred on the text as it wraps (Jason 16 Oct) */
.pbox .clip { flex: none; width: 34px; height: 34px; border: var(--hair) solid var(--grey-3); display: grid; place-items: center; background: none; cursor: pointer; }
.pbox textarea { flex: 1; min-width: 0; display: block; border: 0; outline: none; background: transparent; font: inherit; color: inherit; font-size: calc(var(--fs-term) + 1px); line-height: 1.45; padding: 10px 0; resize: none; overflow-y: auto; max-height: calc(1.45em * 4 + 20px); }   /* grows with the prompt, up to 4 lines */
.rest .pbox textarea { font-size: calc(var(--fs-term) + 2px); padding: 14px 0; max-height: calc(1.45em * 4 + 28px); }
.pbox textarea::placeholder { color: var(--grey-2); }
.pbox .send { padding: 12px 16px; }
.pbox .send.press { transform: scale(.95); }
.sugs { margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; text-align: left; }
@media (max-width: 699px) { .sugs { grid-template-columns: minmax(0, 1fr); } }
.sug { display: flex; gap: 12px; align-items: center; background: var(--paper); border: var(--hair) solid var(--grey-3); padding: 10px 12px; cursor: pointer; font-size: var(--fs-label); line-height: 1.45; color: var(--ink); text-align: left; transition: border-color .2s; }
.sug:hover, .sug:focus-visible { border-color: var(--ink); }
.sug .pv { flex: none; width: 46px; height: 46px; border: var(--hair) solid var(--grey-3); display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.sug .pv img { width: 100%; height: 100%; object-fit: cover; object-position: 0 30%; display: block; }
.chips-row { display: none; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.run .chips-row { display: flex; }
.chip2 { background: var(--paper); border: var(--hair) solid var(--grey-3); padding: 6px 10px; font-size: var(--fs-label); color: var(--grey-1); cursor: pointer; }
.chip2:hover, .chip2.on { border-color: var(--ink); color: var(--ink); }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
/* the cards that pop up */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--paper); border: var(--hair) solid var(--ink); opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1.15); }
.card.in { opacity: 1; transform: none; }
@media (max-width: 999px) { .card { height: 58vh; min-height: 340px; } }
.card + .card::before { content: "→"; position: absolute; left: -26px; top: 50%; width: 18px; margin-top: -12px; text-align: center; color: var(--grey-2); font-size: 18px; line-height: 24px; }
@media (max-width: 999px) { .card + .card::before { content: "↓"; left: 50%; top: -25px; margin: 0 0 0 -9px; } }
.card-h { flex: none; height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px; border-bottom: var(--hair) solid var(--grey-3); font-size: var(--fs-label); }
.card-h span:first-child { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.card-h .open { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: var(--fs-label); color: var(--grey-1); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.card-h .open:hover { color: var(--ink); }
.card-b { flex: 1; min-height: 0; padding: 12px; display: flex; flex-direction: column; gap: 10px; cursor: zoom-in; position: relative; }
.card-f { flex: none; font-size: var(--fs-label); color: var(--grey-1); display: flex; justify-content: space-between; gap: 10px; }
.card-f b { color: var(--ink); font-weight: 500; }
.sk { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.sk .lv { stroke: var(--ink); stroke-width: 1.2px; stroke-dasharray: 5 4; opacity: 0; transition: opacity .3s; }
.sk .lv-t { font-family: var(--mono); font-weight: 500; fill: var(--ink); opacity: 0; transition: opacity .3s; }
.sk .lv-d { fill: var(--ink); opacity: 0; transition: opacity .3s; }
.sk .on { opacity: 1; }
.sk .scan { stroke: var(--ink); stroke-width: 2px; }
.pat { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.pat .pz { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3px; stroke-linejoin: round; }
.pat .pzl { fill: none; stroke: var(--ink); stroke-width: .9px; }   /* inner lines solid; the dashed one is the stitching line */
.pat .fly { transition: transform .8s cubic-bezier(.3, .7, .2, 1), opacity .4s; transform-box: fill-box; transform-origin: center; }
/* lay_plan.dxf: the pieces on the fabric roll */
.lay { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.lay .fab { fill: var(--grey-3); }
.lay .selv { stroke: var(--grey-2); stroke-width: 1px; stroke-dasharray: 4 3; }
.lay .pz { fill: var(--paper); stroke: var(--ink); stroke-width: 1px; stroke-linejoin: round; transition: fill .15s; }
.lay .pzg { fill: none; stroke: var(--grey-1); stroke-width: .8px; pointer-events: none; }
.lay .lp:hover .pz { fill: var(--grey-3); }
.lay .fly { transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .35s; transform-box: fill-box; transform-origin: center; }
.tpm { flex: 1; min-height: 0; display: flex; flex-direction: column; border: var(--hair) solid var(--ink); font-size: var(--fs-label); transform-origin: 50% 100%; }
.tpm .tp-title { padding: 6px 10px; font-size: var(--fs-label); }
.tpm-meta { flex: none; display: flex; gap: 14px; padding: 4px 10px; border-bottom: var(--hair) solid var(--ink); color: var(--grey-1); white-space: nowrap; overflow: hidden; }
.tpm-b { flex: 1; min-height: 0; padding: 8px; display: flex; }
.tpm-b svg { flex: 1; min-width: 0; height: 100%; display: block; }
.tpm .pom-g { opacity: 0; transition: opacity .3s; }
.tpm .pom-g.in { opacity: 1; }
.pat .pzs, .fit .pzs { fill: none; stroke: var(--grey-1); stroke-width: .9px; stroke-dasharray: 4 3; pointer-events: none; }
.pat .pzg, .fit .pzg { fill: none; stroke: var(--grey-1); stroke-width: .9px; pointer-events: none; }
.pat .pzt, .fit .pzt { stroke: var(--ink); stroke-width: 1.3px; pointer-events: none; }
.pat .pzname, .fit .pzname { font-family: var(--mono); font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }
/* full size: a pop-up window with the whole file */
.lb { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; }
.lb-bg { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.45); }
.lb-box { position: relative; width: min(1120px, 100%); height: min(780px, calc(100vh - 32px)); background: var(--paper); border: var(--hair) solid var(--ink); display: flex; flex-direction: column; animation: pop .3s cubic-bezier(.2, .8, .2, 1.1); }
.lb-box .win-top b { font-weight: 500; }
.cview { flex: 1; min-height: 0; padding: 14px; display: flex; flex-direction: column; position: relative; }
.cview .empty { margin: auto; color: var(--grey-2); font-size: var(--fs-label); }
@media (prefers-reduced-motion: reduce) { .card, .pat .fly, .lay .fly, .att, .lb-box { transition: none; animation: none; } }
.cfoot { flex: none; display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-label); color: var(--grey-1); border-top: var(--hair) solid var(--grey-3); padding-top: 8px; margin-top: 10px; }
.cfoot b { color: var(--ink); font-weight: 500; white-space: nowrap; }
/* sketch.jpg: the drawing + what the agent read */
.readv { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.readv img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 0; }
.readv .rl { font-size: var(--fs-label); align-self: center; }
.readv .rl h4 { margin: 0 0 6px; font-weight: 500; font-size: var(--fs-term); }
.rl div { display: flex; align-items: baseline; padding: 4px 0; border-bottom: var(--hair) solid var(--grey-3); white-space: nowrap; opacity: 0; transition: opacity .25s; }
.rl div.in { opacity: 1; }
.rl div span:first-child { color: var(--grey-1); }
.rl div .lead { flex: 1; min-width: 1ch; overflow: hidden; color: var(--grey-2); margin: 0 1ch; }
.rl div .lead::before { content: ".................................................................."; }
.rl div b { font-weight: 500; white-space: normal; text-align: right; }
@media (max-width: 599px) { .readv { grid-template-columns: minmax(0, 1fr); align-items: start; } .readv img { height: auto; max-height: 30vh; } }
/* trousers_M.dxf */
.fit { flex: 1; min-height: 0; width: 100%; display: block; }
.fit .pz { fill: var(--paper); stroke: var(--ink); stroke-width: 1.3px; stroke-linejoin: round; transition: fill .2s; cursor: pointer; }
.fit .pzl { fill: none; stroke: var(--ink); stroke-width: 1px; pointer-events: none; }
.fit g { transition: opacity .4s; }
.fit.hov g { opacity: .25; }
.fit.hov g.on { opacity: 1; }
.fit g.on .pz { stroke-width: 2.2px; }
.fit .pzn { font-family: var(--mono); fill: var(--grey-1); pointer-events: none; }
/* jogger_XS-XL.dxf */
.nest { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr); gap: 12px; }
.nest figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.nest svg { flex: 1; min-height: 0; width: 100%; display: block; }
.nest figcaption { flex: none; font-size: var(--fs-label); color: var(--grey-1); margin-top: 6px; }
.zoom { border: var(--hair) solid var(--grey-3); }
.g-line { fill: none; stroke: var(--grey-2); stroke-width: 1px; transition: stroke .2s, stroke-width .2s; }
.g-line.m { stroke: var(--ink); stroke-width: 1.6px; }
.g-line.hl { stroke: var(--ink); stroke-width: 2.4px; }
.sizes { flex: none; display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.size { background: none; border: var(--hair) solid var(--grey-3); padding: 6px 10px; font-size: var(--fs-label); cursor: pointer; color: var(--grey-1); }
.size.on, .size:hover { border-color: var(--ink); color: var(--ink); }
/* techpack.pdf: a factory tech pack page (ruled header, flats, red points of measure, spec table) */
.tp { flex: 1; min-height: 0; border: var(--hair) solid var(--ink); background: var(--paper); display: flex; flex-direction: column; font-size: var(--fs-label); overflow: hidden; }
.tp-h { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-bottom: var(--hair) solid var(--ink); }
.tp-title { padding: 8px 12px; font-weight: 500; font-size: var(--fs-term); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-pages { display: flex; border-left: var(--hair) solid var(--ink); }
.tp-pages button { background: none; border: 0; border-left: var(--hair) solid var(--grey-3); padding: 0 12px; font-size: var(--fs-label); color: var(--grey-1); cursor: pointer; white-space: nowrap; }
.tp-pages button:first-child { border-left: 0; }
.tp-pages button.on { background: var(--ink); color: var(--paper); }
.tp-meta { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: var(--hair) solid var(--ink); }
.tp-meta div { padding: 5px 12px; border-left: var(--hair) solid var(--grey-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-meta div:first-child { border-left: 0; }
.tp-meta span { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); }
.tp-body { flex: 1; min-height: 0; padding: 12px; display: flex; gap: 14px; }
.tp-body > svg { flex: 1; min-width: 0; min-height: 0; height: 100%; display: block; }
.tp .fl-outline { fill: none; stroke: var(--ink); stroke-width: 1.8px; stroke-linejoin: round; stroke-linecap: round; }
.tp .fl-edge { fill: none; stroke: var(--ink); stroke-width: 1.2px; stroke-linejoin: round; stroke-linecap: round; }
.tp .fl-seam { fill: none; stroke: var(--ink); stroke-width: .9px; stroke-linejoin: round; stroke-linecap: round; }
.tp .fl-gather { fill: none; stroke: var(--grey-1); stroke-width: .8px; stroke-linecap: round; }
.tp .fl-hidden { fill: none; stroke: var(--grey-1); stroke-width: .9px; stroke-dasharray: 4 3; }
.tp .co-l { fill: none; stroke: #c8102e; stroke-width: .9px; }
.tp .co-a { fill: #c8102e; }
.tp .co-c { fill: var(--ink); }
.tp .co-t { font-family: var(--mono); font-weight: 500; fill: var(--paper); }
.tp .hl .co-l { stroke-width: 2px; }
.legend { flex: none; width: 42%; max-width: 280px; align-self: center; list-style: none; margin: 0; padding: 0; font-size: 11.5px; }
.legend li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; border-bottom: var(--hair) solid var(--grey-3); line-height: 1.4; }
.legend li:hover { background: var(--grey-3); }
.legend li span { flex: none; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-size: 10px; font-weight: 500; transform: translateY(3px); }
@media (max-width: 599px) { .legend { width: 100%; max-width: none; } }
.tp .fl-lab { font-family: var(--mono); font-weight: 500; fill: var(--ink); }
.tp .pom { fill: none; stroke: #c8102e; stroke-width: 1.2px; }
.tp .pom-c { fill: var(--paper); stroke: #c8102e; stroke-width: 1px; }
.tp .pom-t { font-family: var(--mono); font-weight: 500; fill: #c8102e; }
.spec { flex: none; width: 46%; max-width: 300px; border-collapse: collapse; align-self: center; }
.spec th { text-align: left; font-weight: 400; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-1); border-bottom: var(--hair) solid var(--ink); padding: 4px 4px; }
.spec td { border-bottom: var(--hair) solid var(--grey-3); padding: 5px 4px; vertical-align: baseline; }
.spec td.L { color: #c8102e; font-weight: 500; width: 2ch; }
.spec td.v, .spec th.v { text-align: right; font-weight: 500; white-space: nowrap; }
.spec td svg { display: block; }
.tp-foot { flex: none; display: flex; justify-content: space-between; gap: 12px; border-top: var(--hair) solid var(--grey-3); padding: 6px 12px; color: var(--grey-1); }
@media (max-width: 599px) { .tp-body { flex-direction: column; } .spec { width: 100%; max-width: none; } .tp-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-pages button { padding: 0 8px; } }

.dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.tp .hl .pom { stroke-width: 2.6px; }
.tp .hl .pom-c { stroke-width: 2px; }
.spec tr:hover td { background: var(--grey-3); }
.spec.cutl { width: 100%; max-width: none; align-self: flex-start; }
.spec.cutl td { padding: 2px 4px; line-height: 1.4; }
.tp-body { overflow: auto; }

/* API */
.api { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 1000px) { .api { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; } }
.tabs { display: flex; border-bottom: var(--hair) solid var(--grey-3); }
.tabbtn { background: none; border: 0; padding: 0 14px; height: 42px; font-size: var(--fs-label); color: var(--grey-1); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabbtn.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.term { padding: 16px 16px 20px; font-size: var(--fs-term); line-height: var(--pitch); min-height: 150px; }
.t { display: flex; align-items: baseline; white-space: pre; min-width: 0; }
.sig { flex: none; min-width: 2ch; color: var(--grey-2); }
.sig-ok { min-width: 5ch; color: var(--ink); }
.cmd { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.out { color: var(--grey-1); overflow: hidden; text-overflow: ellipsis; }
.term .t { opacity: 0; transition: opacity .25s; }
.term .t.in { opacity: 1; }
.uses { display: flex; flex-direction: column; border-top: var(--hair) solid var(--grey-3); }
.uses div { padding: 14px 0; border-bottom: var(--hair) solid var(--grey-3); font-size: var(--fs-label); color: var(--grey-1); }
.uses b { display: block; font-size: var(--fs-term); color: var(--ink); font-weight: 500; }

/* Beta: a plain form, inline and as a pop-up */
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1000px) { .wl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; } }
.jf-body { padding: 20px; }
.jf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: var(--fs-label); color: var(--grey-1); margin-bottom: 6px; }
.fld input { width: 100%; border: var(--hair) solid var(--grey-2); background: var(--paper); padding: 13px 14px; font-size: var(--fs-term); border-radius: 0; outline: none; }
.fld input:focus { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.fld input.bad { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.jf-btn { width: 100%; padding: 16px 18px; font-size: var(--fs-term); margin-top: 4px; }
.jf-msg { margin-top: 12px; font-size: var(--fs-label); min-height: 1.5em; }
.jf-note { margin-top: 4px; font-size: var(--fs-label); color: var(--grey-1); }
.jf-ok { padding: 28px 20px; font-size: var(--fs-term); }
.jf-ok b { display: block; font-size: calc(var(--fs-h2) * 0.6); font-weight: 400; margin-bottom: 8px; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(13, 13, 13, 0.45); }
.modal-box { position: relative; width: min(460px, 100%); background: var(--paper); border: var(--hair) solid var(--ink); }
.modal-x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.modal-in { padding: 4px 20px 0; }
.modal-in h3 { font-size: calc(var(--fs-h2) * 0.7); letter-spacing: -0.02em; }
.modal-in p { color: var(--grey-1); margin-top: 8px; }
.modal .jf-body { padding: 18px 20px 22px; }
.get-qr { padding: 4px 0 18px; text-align: center; }
.get-qr img { display: block; margin: 0 auto; }
.get-qr p { margin-top: 10px; font-size: var(--fs-label); color: var(--grey-1); }
body.locked { overflow: hidden; }

/* Footer */
.foot { margin-top: var(--sec); border-top: var(--hair) solid var(--grey-3); padding: 22px 0 28px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: var(--fs-label); }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; flex: 1; }
.foot a { color: var(--grey-1); text-decoration: none; }
@media (hover: hover) { .foot a:hover { color: var(--ink); } }   /* hover only with a mouse: on a phone a tap left it black */
.foot .c { color: var(--grey-1); }
/* the message pop-up (components/site/MessageDialog.tsx, a native <dialog>): footer contact / press, API "Request access" */
.msg { width: min(440px, calc(100% - 32px)); padding: 0; border: var(--hair) solid var(--ink); background: var(--paper); color: var(--ink); }
.msg::backdrop { background: rgba(13, 13, 13, 0.45); }
.msg-in { padding: 18px 20px 0; }
.msg-in h3 { font-size: calc(var(--fs-h2) * 0.7); letter-spacing: -0.02em; }
.msg-in p { color: var(--grey-1); margin-top: 8px; }
.msg .jf-body { padding: 16px 20px 20px; }
.fld textarea { width: 100%; display: block; border: var(--hair) solid var(--grey-2); background: var(--paper); padding: 13px 14px; font: inherit; font-size: var(--fs-term); line-height: 1.5; border-radius: 0; outline: none; resize: vertical; min-height: 104px; }
.fld textarea:focus, .fld textarea.bad { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* < 1000 px: the chat is a window the size of the screen (messages scroll inside, the box at its bottom);
   each answer's files are one row you swipe, so one answer fits one screen */
@media (max-width: 999px) {
  .stage, .stage.rest { height: calc(100vh - 96px); height: calc(100svh - 96px); min-height: 520px; max-height: 900px; }
  .run .thread { overflow-y: auto; overscroll-behavior: contain; padding: 16px 12px 14px; background: var(--paper); }
  .board, .board.one, .board.two { display: flex; gap: 12px; margin: 0 -12px; padding: 0 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 12px; scrollbar-width: none; position: relative; }
  .board::-webkit-scrollbar { display: none; }
  .board .card { flex: 0 0 min(86%, 560px); height: auto; min-height: 0; scroll-snap-align: start; }
  .board.one .card { flex-basis: 100%; }
  .card + .card::before { display: none; }
}
/* phone: bigger text, your message stacked */
@media (max-width: 699px) {
  .run .thread { padding: 14px 10px 12px; gap: 34px; }
  .board, .board.one, .board.two { margin: 0 -10px; padding: 0 10px; scroll-padding: 0 10px; }
  .turn { gap: 12px; }
  .u-msg { flex-direction: column; align-items: flex-start; gap: 8px; max-width: 92%; padding: 10px 12px; font-size: 15px; }
  .u-att { font-size: 12.5px; }
  .think-h { font-size: 13px; padding: 6px 0; }
  .think-steps { font-size: 13px; gap: 7px; }
  .say { font-size: 15px; }
  .card-h { font-size: 13px; height: 42px; }
  .card-f { font-size: 12.5px; }
  .run .dock { padding: 8px 10px 10px; }
  .run .pbox textarea { font-size: 16px; }
  .path { margin-top: 16px; padding-left: 0; }
  .stop-copy { padding-right: 4px; font-size: var(--fs-term); }
  .duo { margin-top: 16px; }
  .pbox textarea:placeholder-shown { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the box is one line tall until someone types */
  .pbox textarea::placeholder { font-size: 14px; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chips-row::-webkit-scrollbar { display: none; }
  .chip2 { flex: none; font-size: 12.5px; padding: 7px 11px; }
  .lb { padding: 6px; }
  .lb-box { height: calc(100vh - 12px); height: calc(100svh - 12px); }
  .cview { padding: 10px; }
  /* footer: the links as a tidy two-column list, then the line */
  .foot { padding: 6px 0 26px; }
  .foot .wrap { display: block; font-size: 13px; }
  .foot nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 18px; }
  .foot nav a { padding: 12px 0; border-bottom: var(--hair) solid var(--grey-3); }
  /* 6 links = 3 even rows of 2, all grey: contact · press / instagram · linkedin / privacy · terms */
  .fld input, .fld textarea { font-size: 16px; }   /* 16 px: iPhone Safari does not zoom in on the field */
  .foot .c { display: block; padding-top: 16px; }
}
@media (max-width: 380px) { .sec-head .label { display: none; } }   /* the smallest phones: the status tag fits on one line without the section number */

/* ===== Site mock-up, 7 Nov 2026: real iPhone screens, a top menu, one page per product and solution. Sits on top of the real stylesheet. ===== */
:root { --font-space: "Space Mono"; --font-plex: "IBM Plex Mono"; }

/* fewer sizes, nothing tiny */
:root { --fs-label: 13px; --fs-term: 14px; --fs-body: 16px; --fs-h2: 30px; --sec: 88px; --fs-head: min(30px, 7.9vw); --fs-big: min(34px, 8.8vw); }
@media (min-width: 700px) { :root { --fs-h2: 36px; --sec: 104px; --fs-head: min(46px, 6.2vw); --fs-big: min(50px, 7vw); } }
@media (min-width: 860px) { :root { --fs-head: clamp(30px, min(4.2vw, 7.6vh), 60px); --fs-big: clamp(34px, min(4.5vw, 8vh), 68px); } }
@media (min-width: 1100px) { :root { --fs-h2: 40px; --sec: 96px; } }

/* the top menu */
.mainnav { display: none; flex: 1; align-self: stretch; align-items: stretch; margin-left: 24px; }
@media (min-width: 860px) { .mainnav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 859px) { .menu-btn { display: inline-flex; align-items: center; } }   /* iPad upright has no room for the full menu */
.dd { display: flex; }
.dd-btn, .navlink { position: relative; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: none; border: 0; font-size: var(--fs-label); font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; }
.car { font-size: 10px; color: var(--grey-1); transition: transform .2s; }
.dd:hover .car, .dd.open .car { transform: rotate(180deg); }
.dd.shut .car { transform: none; }
.dd-btn.on::after, .navlink.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); }
.mega { display: none; position: absolute; left: -1px; right: -1px; top: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--paper); border: var(--hair) solid var(--ink); }
.mega.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd:hover .mega, .dd.open .mega { display: grid; }
.dd.shut .mega { display: none; }
.mega a { display: block; padding: 20px 22px 22px; color: inherit; text-decoration: none; }
.mega a + a { border-left: var(--hair) solid var(--grey-3); }
.mega b { display: block; font-size: var(--fs-term); font-weight: 500; }
.mega span { display: block; margin-top: 4px; font-size: var(--fs-label); line-height: 1.45; color: var(--grey-1); }
.mega a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.mega .tag { margin-top: 12px; }
.tag { font-style: normal; }
.tag.live { background: var(--ink); border: var(--hair) solid var(--ink); color: var(--paper); font-weight: 500; }
.menu { max-height: calc(100vh - 90px); max-height: calc(100svh - 90px); overflow-y: auto; }
.menu .mh { padding: 14px 16px 6px; font-size: var(--fs-label); color: var(--grey-1); }

/* pages */
.view.enter { animation: appear .35s ease; }
@keyframes appear { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } }
.phead { padding-top: 104px; margin-bottom: 36px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 860px) { .phead { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; } }
.phead .cta { margin-top: 0; }
.phead > div:only-child { grid-column: 1 / -1; }
.comment a { color: inherit; text-underline-offset: 3px; }
.pt { margin-top: 12px; font: 400 var(--fs-head)/1.16 var(--display); letter-spacing: -0.01em; }
.plede { margin-top: 12px; color: var(--grey-1); }
.plede .tag { margin-left: 6px; }

/* the one section shape */
.sec { margin-top: 0; padding-top: var(--sec); scroll-margin-top: -30px; }
#agent-home { scroll-margin-top: -8px; }
.top { margin-bottom: 32px; }
.top .comment { margin-bottom: 12px; }
.comment { font-size: var(--fs-label); }
.sub { margin-top: 12px; }
.top .sub { max-width: none; }
.rise { opacity: 0; transition: opacity .7s ease; }
.top.rise { transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise, .top.rise { opacity: 1; transform: none; transition: none; } }

/* the real iPhone: a frame round a real screen from the app */
.phone-real { position: relative; aspect-ratio: 921 / 2000; border: 7px solid var(--ink); border-radius: 13.5% / 6.4%; overflow: hidden; background: var(--paper); flex: none; }
.phone-real img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* home, first screen: the words in the middle, and one thread leaving the cursor */
.hero { position: relative; padding-top: 0; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
#needle { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 1; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 66px; padding-bottom: clamp(16px, 5vh, 64px); pointer-events: none; }
.hero .door { pointer-events: auto; }
.hero h1 { margin-top: clamp(10px, 2.2vh, 26px); }
.hl { display: block; font: 400 var(--fs-big)/1.1 var(--display); letter-spacing: -0.015em; white-space: pre; }
.hl.wide { display: none; }
@media (min-width: 700px) { .hl.wide { display: block; } .hl.narrow { display: none; } }
.lede { margin-top: clamp(14px, 3.4vh, 36px); color: var(--grey-1); }
.doors { margin-top: clamp(20px, 5vh, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(100%, 640px); }
.door { display: block; padding: 11px 16px 12px; border: var(--hair) solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; text-align: left; transition: background .15s, color .15s; }
.door b { display: block; font-size: var(--fs-term); font-weight: 500; }
.door span { display: block; margin-top: 2px; font-size: var(--fs-label); color: var(--grey-1); }
.door.ink { background: var(--ink); color: var(--paper); }
.door.ink span { color: var(--grey-2); }
.door:hover { background: var(--ink); color: var(--paper); }
.door:hover span { color: var(--grey-2); }
.door.ink:hover { background: var(--paper); color: var(--ink); }
.door.ink:hover span { color: var(--grey-1); }
@media (max-width: 699px) {   /* phones: two small buttons, one line each, words at full size */
  .doors { grid-template-columns: minmax(0, 1fr); gap: 8px; width: min(100%, 300px); }
  .door { padding: 11px 14px; text-align: center; }
  .door b { font-size: var(--fs-body); }
  .door span { display: none; }
}
@media (max-width: 389px) { .bar { gap: 8px; padding: 0 6px 0 10px; } .bar-r { gap: 6px; } .bar .btn { padding-left: 10px; padding-right: 10px; } .menu-btn { padding-left: 8px; padding-right: 8px; } }

/* home, the app: one phone stays, its screen changes as you scroll */
.flow { position: relative; height: 280vh; }   /* 45vh of scroll per step, so the zoom on step 02 can finish */
.flow-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.flow-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 12px; }
#flow-phone { height: min(calc(100vh - 100px), 640px); }
#flow-phone img { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
#flow-phone img.on { opacity: 1; }
#flow-phone img.zoom { transform-origin: 50% 64.3%; transition: opacity .35s ease, transform .9s cubic-bezier(.3, .7, .2, 1) .15s; }
#flow-phone img.zoom.on { transform: scale(2.6); }
@media (prefers-reduced-motion: reduce) { #flow-phone img.zoom { transition: opacity .35s ease; } }
.flow-left, .flow-right { min-width: 0; }
.flow-left .comment { margin-bottom: 12px; }
.flow-left .h2 { font-size: calc(var(--fs-h2) * 0.8); line-height: 1.16; }
.steps-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: var(--hair) solid var(--grey-3); }
.steps-list button { display: block; width: 100%; padding: 11px 0; background: none; border: 0; border-bottom: var(--hair) solid var(--grey-3); text-align: left; font-size: var(--fs-term); color: var(--grey-1); cursor: pointer; transition: color .25s; }
.steps-list span { margin-right: 1.6ch; color: var(--grey-2); }
.steps-list button.on { color: var(--ink); font-weight: 500; }
.steps-list button.on span { color: var(--ink); }
.lines { position: relative; min-height: 196px; }
.line { position: absolute; inset: 0 0 auto 0; opacity: 0; transition: opacity .3s ease; }
.line.on { opacity: 1; }
.no { display: block; font-size: var(--fs-label); color: var(--grey-2); }
.line h3 { margin-top: 8px; font-size: calc(var(--fs-h2) * 0.8); font-weight: 400; line-height: 1.14; letter-spacing: -0.02em; }
.line p { margin-top: 10px; color: var(--grey-1); }
.flow-act { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.flow-right .see { margin-top: 16px; }
@media (max-width: 859px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 12px; padding-top: 78px; padding-bottom: 14px; }
  .flow-left { justify-self: stretch; }
  .flow-left .comment, .steps-list, .flow-right .see, .flow-act .note { display: none; }
  .flow-left .h2 { font-size: 20px; line-height: 1.2; }
  #flow-phone { height: 100%; min-height: 0; }
  .flow-right { justify-self: stretch; }
  .lines { min-height: 112px; }
  .line h3 { margin-top: 4px; font-size: 22px; }
  .line p { margin-top: 4px; font-size: var(--fs-term); line-height: 1.45; }
  .flow-act { margin-top: 8px; }
}
.note { font-size: var(--fs-term); color: var(--grey-1); }
.note a { color: var(--ink); }
.actrow { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.see { display: inline-block; font-size: var(--fs-term); font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: var(--hair) solid var(--ink); }

/* PatternCam page: the whole app at a glance, one row of real screens */

.cell .spec { margin-top: 14px; }

/* cells: every grid on the site is this one */
.cells { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--hair) solid var(--grey-3); }
.cell { display: flex; flex-direction: column; padding: 24px 0; color: inherit; text-decoration: none; border-bottom: var(--hair) solid var(--grey-3); min-width: 0; }
@media (min-width: 860px) {
  .cells { border-bottom: var(--hair) solid var(--grey-3); }
  .cells.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cell { border-bottom: 0; padding: 26px 26px 28px 0; }
  .cell + .cell { border-left: var(--hair) solid var(--grey-3); padding-left: 26px; }
  .cell:last-child { padding-right: 0; }
}
.cell h3 { font-size: calc(var(--fs-h2) * 0.6); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.cell p { margin: 6px 0 0; color: var(--grey-1); }
.steps { margin-top: 44px; }
.steps .no { margin-bottom: 10px; }

/* who it's for: their moment, then what happens */
.who .comment { margin: 0 0 12px; }
.who .see { margin-top: 16px; }
.who-top { display: flex; align-items: center; gap: 10px; }
.who-top .ico { width: 26px; height: 26px; color: var(--ink); flex: none; }
.who h3 { font-size: calc(var(--fs-h2) * 0.72); font-weight: 400; letter-spacing: -0.02em; line-height: 1.18; }
.who .cell > p:not(.comment) { margin: 10px 0 20px; }
.who .see { align-self: flex-start; }
a.cell:hover h3 { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.spec { list-style: none; margin: 20px 0 0; padding: 0; border-top: var(--hair) solid var(--grey-3); }
.spec li { padding: 10px 0; border-bottom: var(--hair) solid var(--grey-3); font-size: var(--fs-term); }
.spec li:last-child { border-bottom: 0; }

/* every mark */
.marks-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1000px) { .marks-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 48px; align-items: center; } }
.marks-stage { border: 0; justify-self: center; }
@media (min-width: 1000px) { .marks-stage svg { height: clamp(380px, calc(100vh - 290px), 620px); width: auto; } }
#chips { display: flex; flex-direction: column; margin-top: 0; }
#chips .chip { padding: 9px 0; }
.pcard { margin-top: 0; flex: none; }
.pc-top { padding-bottom: 10px; border-bottom: var(--hair) solid var(--grey-3); font-size: var(--fs-term); }
.pc-top b { font-weight: 500; }
.pc-body { padding: 16px 0 0; }

/* solution pages: what changes, written as a diff */

.nextrow { margin-top: var(--sec); padding-top: 22px; border-top: var(--hair) solid var(--grey-3); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; }
.nextrow a { font-size: calc(var(--fs-h2) * 0.6); font-weight: 500; color: var(--ink); text-decoration: none; }
.nextrow a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nextrow .links { display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* the chat */
.stage { margin-top: 0; background-image: none; }
@media (min-width: 1000px) { .stage { height: clamp(430px, calc(100vh - 224px), 760px); } }   /* the same height before and during the demo: nothing jumps */
.pbox { margin-top: 0; }

/* integrations and enterprise */
.soft { margin-top: 0; }
.tgt { padding: 12px 0; }
.api { margin-top: 0; }

.st2 { color: var(--grey-1); }

/* early access: one row */
#beta .jf-body { padding: 0; }
#beta .fld { margin-bottom: 0; }
#beta .jf-msg:empty { display: none; }
#beta .jf-note { margin-top: 10px; }
@media (min-width: 860px) { #beta .jf-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 12px; align-items: end; } #beta .jf-btn { margin-top: 0; width: auto; height: 48px; padding: 0 22px; } #beta .jf-msg, #beta .jf-note { grid-column: 1 / -1; } }

/* the footer lists every page */
.sitefoot { margin-top: var(--sec); padding: 44px 0 26px; border-top: var(--hair) solid var(--grey-3); }
.smap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
@media (min-width: 860px) { .smap { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.smap b { display: block; margin-bottom: 10px; font-size: var(--fs-term); font-weight: 500; }
.smap a { display: block; padding: 4px 0; font-size: var(--fs-term); color: var(--grey-1); text-decoration: none; }
.smap a:hover { color: var(--ink); }
.legalrow { margin-top: 36px; padding-top: 16px; border-top: var(--hair) solid var(--grey-3); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-label); color: var(--grey-1); }
.legalrow a { color: inherit; text-decoration: none; }
.legalrow span { margin-right: auto; }

/* the thread: one line, behind everything, from the headline to the garment */
.view[data-route="/"] { position: relative; }
.view[data-route="/"] > section { position: relative; z-index: 1; }
#seam { position: absolute; top: 0; left: 0; width: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.stitch { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-dasharray: 9 6; }
#seam-tip, #end-tip { fill: var(--ink); }
.tie { position: relative; }
.tie::before { content: ""; position: absolute; right: 100%; top: 50%; margin-right: 8px; width: var(--reach, 0); height: 1.6px; background: repeating-linear-gradient(90deg, var(--ink) 0 9px, transparent 9px 15px); transform: scaleX(0); transform-origin: left; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.tie.in::before { transform: scaleX(1); }

/* the end of the page: the thread stitches the mark, then the words */
.finish { height: 200vh; }   /* the finished mark and words hold for a while before the page moves on */
.finish-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#end-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#end-fill { fill: var(--ink); opacity: 0; }
.finish-copy { position: absolute; left: 0; right: 0; margin: 0 auto; width: min(780px, calc(100% - 2 * var(--m))); text-align: center; text-wrap: balance; opacity: 0; pointer-events: none; }
.finish-copy .sub { max-width: none; margin-left: auto; margin-right: auto; }
.finish-copy .cta { margin-top: 20px; display: flex; justify-content: center; }
@media (max-width: 859px) { .finish-copy .h2 { font-size: 22px; line-height: 1.2; } }

/* the agent section fits one screen: words and buttons share a band above the chat */
.ico path { stroke-width: 1.5; }
#agent-home { scroll-margin-top: -14px; }
.agent-head { display: grid; gap: 14px; margin-bottom: 16px; }
.agent-head .comment { margin-bottom: 8px; }
.agent-head .sub { max-width: none; }
.agent-act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
@media (min-width: 860px) {
  .agent-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 20px; }
  .agent-head > div:first-child { display: contents; }
  .agent-head .comment, .agent-head .h2 { grid-column: 1 / -1; }
  .agent-head .sub { margin-top: 8px; }
  .agent-act { margin-top: 8px; }
}
@media (min-width: 1000px) {
  .run .thread { gap: 12px; padding-top: 8px; padding-bottom: 6px; }
  .stage .turn { gap: 6px; }
  .stage .board { max-height: max(200px, calc(100vh - 478px)); grid-template-rows: minmax(0, 1fr); }   /* the real script asks for 260 px at least: the real site needs that lowered too */
}

/* the whole road, on one screen: thread style says what is real */
.journey .big { margin-top: 12px; font: 400 var(--fs-big)/1.12 var(--display); letter-spacing: -0.015em; }
.road { list-style: none; margin: clamp(30px, 7vh, 76px) 0 0; padding: 0; display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; }
.st { position: relative; padding: 24px 24px 0 0; min-width: 0; }
.st::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; background: var(--paper); border: 1.6px solid var(--ink); box-sizing: border-box; z-index: 1; }
.st::after { content: ""; position: absolute; left: 9px; right: 0; top: 3.5px; height: 2px; }
.st.live::before, .st.live::after { background: var(--ink); }
.st.edge::after, .st.later::after { background: repeating-linear-gradient(90deg, var(--grey-2) 0 2px, transparent 2px 8px); }
.st.later::before { border-color: var(--grey-2); }
.st:last-child::after { display: none; }
.st h3 { font-size: calc(var(--fs-h2) * 0.72); font-weight: 400; letter-spacing: -0.02em; }
.st .what { margin-top: 10px; line-height: 1.45; }
.st .tag { margin-top: 10px; }
.way { margin-top: 10px; display: grid; grid-template-columns: 13ch minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.way span { color: var(--grey-1); }
.way b { font-weight: 500; }
.way.here b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.6px; }
.way .tag { margin-top: 0; }
.road.small { margin-top: 18px; }
@media (max-width: 859px) {
  .road { grid-template-columns: minmax(0, 1fr); }
  .st { padding: 0 0 22px 24px; }
  .st::after { left: 3.5px; right: auto; top: 9px; bottom: 0; width: 2px; height: auto; }
  .st.edge::after, .st.later::after { background: repeating-linear-gradient(180deg, var(--grey-2) 0 2px, transparent 2px 8px); }
  .way { grid-template-columns: minmax(0, 1fr) auto; }
  .way span { grid-column: 1 / -1; }
}

/* solutions: one person's moment, then today, then what is coming */
.scene { margin-top: 14px; max-width: 58ch; font-size: calc(var(--fs-body) * 1.12); line-height: 1.6; color: var(--grey-1); }
.today { list-style: none; margin: 10px 0 0; padding: 0; border-top: var(--hair) solid var(--grey-3); }
.today li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; padding: 11px 0; border-bottom: var(--hair) solid var(--grey-3); }
.today .ico { width: 22px; height: 22px; }
.today b { display: block; font-weight: 500; }
.today span { display: block; color: var(--grey-1); line-height: 1.45; }
.today.three { display: grid; border-top: 0; gap: 0 28px; }
@media (min-width: 860px) { .today.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } .today.three li { border-top: var(--hair) solid var(--grey-3); } }

.band { margin-top: 56px; padding: 26px 28px; border: 1.6px dashed var(--ink); display: grid; gap: 18px; }
.band .h2 { margin-top: 8px; font-size: calc(var(--fs-h2) * 0.8); line-height: 1.16; }
.band .sub { margin-top: 8px; max-width: 60ch; }
.band .tag { margin-left: 6px; }

@media (min-width: 860px) { .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; } }

/* studios: the archive is the picture */

.lost { min-height: 60vh; padding-top: 150px; }

/* the top bar is solid: nothing shows through it or above it */
.bar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
.bar-wrap::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: var(--paper); }

/* the line that answers the road's headline */
.road-line { margin-top: clamp(12px, 2.6vh, 24px); font-size: calc(var(--fs-body) * 1.12); line-height: 1.5; color: var(--ink); }

/* computers: one idea fills one screen, centred, so nothing piles up at the top */
@media (min-width: 860px) {
  .journey, .who-sec { min-height: 100vh; min-height: 100svh; box-sizing: border-box; display: flex; align-items: center; padding-top: 70px; padding-bottom: 16px; }
  .journey > .wrap, .who-sec > .wrap { width: 100%; }
}

/* a pop-up never runs off a small screen */
.modal-box { max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; }

/* home ends straight into the footer */
.sitefoot { position: relative; z-index: 2; background: var(--paper); }
body.home .sitefoot { margin-top: 0; }

/* the card shows only what is on this piece; no counts anywhere */
.pc-list .z { display: none; }
#fc-foot { visibility: hidden; }

/* small additions */
.agent-cta { display: flex; align-items: center; gap: 20px; }
.fab-note { margin-top: 12px; font-size: var(--fs-label); color: var(--grey-1); }
.ent-api { margin-top: 18px; }

.howto { margin-top: 44px; }
.today .num { font-style: normal; font-weight: 500; color: var(--grey-1); }
.today span a, .faq a { color: inherit; text-underline-offset: 3px; }
.view > .wrap > .today.three { margin-top: 10px; }

/* help: every answer in view, no folding */
.faq { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--hair) solid var(--grey-3); }
.faq > div { padding: 18px 0; border-bottom: var(--hair) solid var(--grey-3); min-width: 0; }
.faq dt { font-weight: 500; }
.faq dd { margin: 6px 0 0; color: var(--grey-1); line-height: 1.55; }
@media (min-width: 860px) { .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* phones: the words stay small, the place to tap does not */
@media (max-width: 859px) {
  
  .comment a, .see, .nextrow a, .legalrow a { position: relative; }
  .comment a::after, .see::after, .nextrow a::after, .legalrow a::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
  /* the footer is short here: the pages are already in the menu, so only six links stay, in even rows */
  .sitefoot { padding: 14px 0 18px; }
  .smap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .smap > div { display: contents; }
  .smap > div:nth-child(-n+2), .smap b, .smap .foot-wide { display: none; }
  .smap a { padding: 12px 0; }
  .legalrow { margin-top: 8px; padding-top: 12px; }

}

@media (min-width: 700px) and (max-width: 859px) { .smap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ss-h { margin-top: 12px; font: 400 var(--fs-head)/1.14 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.ss-p { margin-top: 14px; font-size: calc(var(--fs-body) * 1.12); line-height: 1.5; color: var(--grey-1); max-width: 34ch; }



/* studios: one file, sent */
.send { gap: 18px; }

@media (max-width: 859px) { .send { flex-direction: column; gap: 22px; height: auto; }     }

/* manufacturers: millimetres */
.dim { stroke: var(--grey-1); stroke-width: 1.2; vector-effect: non-scaling-stroke; }

/* solutions, 11 Nov: their pain on the left, the fix on the right, one row each */
.sp { padding-top: 92px; }
.sp-head { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; }
.sp-head .ss-p { max-width: none; }
.sp-head .actrow { margin-top: 0; }



@media (max-width: 859px) {
  .sp { padding-top: 88px; }
  .sp-head { grid-template-columns: minmax(0, 1fr); }

}

/* solutions, 11 Nov: three big before / after cards, words you can read */
.pp { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; }
.sp-head + .pp { margin-top: 44px; }
.pp-before { background: var(--grey-3); padding: clamp(24px, 3vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.pp-q { margin-top: 14px; font: 400 clamp(22px, 2.2vw, 30px)/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.pp-arw { align-self: center; text-align: center; font-size: 30px; }
.pp-after { border: 1.6px solid var(--ink); padding: clamp(20px, 2.4vw, 32px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.pp-after .phone-real { height: clamp(240px, 36vh, 330px); border-width: 5px; }
.pp-h { margin-top: 10px; font: 400 clamp(22px, 2.2vw, 30px)/1.25 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.pp-after .tag { display: inline-block; margin-top: 14px; }
.pp.flip > .pp-before { order: 3; }
.pp.flip > .pp-arw { order: 2; }
.pp.flip > .pp-after { order: 1; }
.pp.flip .pp-arw { transform: rotate(180deg); }

@media (max-width: 859px) {
  .pp { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .pp.flip > * { order: 0 !important; }
  .pp-arw, .pp.flip .pp-arw { transform: rotate(90deg); padding: 6px 0; font-size: 24px; }
  .pp-after { grid-template-columns: auto minmax(0, 1fr); }
  .pp-after .phone-real { height: 230px; }
  
}

/* before cards: a drawing of the pain, then a few words */
.pp-before { justify-content: flex-start; }
.pp-ill { display: block; width: 100%; height: clamp(170px, 27vh, 250px); margin-top: 10px; }
.pp-ill .ik { fill: var(--paper); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pp-ill .ik.nofill { fill: none; stroke-width: 2.4; }
.pp-ill .ik.cur { fill: var(--ink); }
.pp-ill .ig { fill: none; stroke: var(--grey-1); stroke-width: 1.6; stroke-dasharray: 7 6; }
.pp-ill .it { font: 500 12px var(--mono); fill: var(--ink); }
.pp-ill .it.big { font-size: 15px; fill: var(--grey-1); }
.pp-ill .iq { font: 400 34px var(--display); fill: var(--ink); }
.pp-ill .lbl { fill: var(--grey-3); stroke: none; }
.pp-ill .hatch line { stroke: var(--grey-2); stroke-width: 1.2; }
.pp-q { margin-top: 14px; }
.pp-q span { display: block; margin-top: 6px; font: 400 var(--fs-term)/1.45 var(--mono); color: var(--grey-1); letter-spacing: 0; }

/* manufacturers: the fabric is the picture */


/* PatternCam page: one output per screen, what was found without the counts */
#chips .n, #chips .lead, .pc-list .lead, .pc-list b { display: none; }
.pc-list > div:nth-last-child(2) { display: none; }
.pc-hero { padding-top: 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.pc-hero .comment .tag { margin-left: 10px; }
.pc-phones { display: flex; justify-content: center; gap: 14px; }
.pc-phones .phone-real { width: min(44vw, 230px); }
@media (min-width: 860px) {
  .pc-hero { grid-template-columns: minmax(0, 1fr) auto; gap: 44px; min-height: 100vh; min-height: 100svh; padding-top: 80px; padding-bottom: 16px; box-sizing: border-box; }
  .pc-phones .phone-real { width: auto; height: clamp(400px, calc(100vh - 136px), 640px); }
  .pc-phones .phone-real + .phone-real { margin-top: 28px; }
}
.shot { padding-top: var(--sec); }
.shot-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
.shot .phone-real { width: min(64vw, 260px); justify-self: center; }
.shot .comment { margin-bottom: 12px; }
.shot .h2 { font: 400 var(--fs-head)/1.14 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.shot .sub { margin-top: 14px; max-width: 46ch; }
@media (min-width: 860px) {
  .shot-in { grid-template-columns: minmax(0, 560px) auto; justify-content: center; gap: 72px; }
  .shot .phone-real { width: auto; height: clamp(420px, calc(100vh - 110px), 640px); }
  .shot.flip .shot-in { grid-template-columns: auto minmax(0, 560px); }
  .shot.flip .shot-in > :first-child { order: 2; }
}

/* Pattern agent page: the result is already there, one tab per thing it makes */
.viewer { border: var(--hair) solid var(--ink); }
.vtabs { display: flex; flex-wrap: wrap; border-bottom: var(--hair) solid var(--ink); }
.vtabs button { padding: 12px 20px; background: none; border: 0; border-right: var(--hair) solid var(--grey-3); font: inherit; font-weight: 500; color: var(--grey-1); cursor: pointer; }
.vtabs button.on { background: var(--ink); color: var(--paper); }
.vpanel { height: clamp(320px, calc(100vh - 384px), 620px); padding: 18px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 0; }
.vpanel[data-v="sizes"] { flex-direction: column; }
.vp-two { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.5fr); align-items: center; gap: 18px; }
.vp-two figure { margin: 0; height: 100%; min-height: 0; }
.vp-two img { display: block; width: 100%; height: 100%; object-fit: contain; }
.varrow { color: var(--grey-2); font-size: 20px; }
.vcap { padding: 10px 18px 12px; border-top: var(--hair) solid var(--grey-3); color: var(--grey-1); font-size: var(--fs-label); }
.vpieces, .vsizes, .vlay, .vflats { display: block; max-width: 100%; }
.vpieces { width: 100%; height: 100%; }
.vpieces polygon { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.vpieces polyline { fill: none; stroke: var(--grey-1); stroke-width: .8; vector-effect: non-scaling-stroke; }
.vsizes { width: 100%; flex: 1; min-height: 0; }
.vsizes polygon { fill: none; stroke: var(--grey-1); stroke-width: .8; vector-effect: non-scaling-stroke; }
.vsizes polygon.m { stroke: var(--ink); stroke-width: 1.6; }
.vsz { display: flex; gap: 18px; font-size: var(--fs-label); color: var(--grey-1); }
.vsz b { color: var(--ink); font-weight: 500; }
.vlay { height: 100%; background: var(--grey-3); }
.vlay polygon { fill: var(--paper); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.vdoc { width: min(100%, 860px); max-height: 100%; border: var(--hair) solid var(--ink); }
.vdoc-h { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: var(--hair) solid var(--ink); text-transform: uppercase; font-size: var(--fs-label); }
.vdoc-h b { font-weight: 500; }
.vdoc-b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; padding: 14px 16px; align-items: center; }
.vflats { width: 100%; max-height: calc(100vh - 470px); min-height: 150px; }
.vflats path { fill: none; stroke: var(--ink); stroke-width: .9; vector-effect: non-scaling-stroke; }

.vdoc table { width: 100%; border-collapse: collapse; font-size: var(--fs-label); }
.vdoc th { width: 2.4ch; text-align: left; font-weight: 500; }
.vdoc td, .vdoc th { padding: 4px 0; border-bottom: var(--hair) solid var(--grey-3); }
.vdoc td.n { text-align: right; white-space: nowrap; font-weight: 500; }
@media (max-width: 699px) {
  .vtabs button { flex: 1 1 50%; padding: 10px 8px; border-bottom: var(--hair) solid var(--grey-3); }
  .vpanel { height: auto; min-height: 320px; padding: 12px; }
  .vp-two { grid-template-columns: minmax(0, 1fr); height: auto; }
  .vp-two figure { height: 240px; }
  .varrow { justify-self: center; transform: rotate(90deg); }
  .vlay { width: 100%; height: auto; }
  .vsizes { height: 320px; flex: none; }
  .vdoc-b { grid-template-columns: minmax(0, 1fr); }
}

/* studios and brands: drawings in place of a phone (coming items); brown = card pattern blocks (his ask, 9 Nov) */
.pp-h span { display: block; margin-top: 6px; font: 400 var(--fs-term)/1.45 var(--mono); color: var(--grey-1); letter-spacing: 0; }
.pp-after .pp-ill.pp-draw { width: clamp(220px, 20vw, 300px); height: clamp(260px, 40vh, 340px); margin-top: 0; }

.pp-ill .kr { fill: #c9a274; stroke: #5a4027; stroke-width: 1.5; stroke-linejoin: round; }
.pp-ill .kr2 { fill: #b48c5e; }
.pp-ill .kr.box { fill: #b58d5f; }
.pp-ill .hole { fill: var(--grey-3); stroke: #5a4027; stroke-width: 1.4; }
.pp-ill .ik.hook { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.pp-ill .ik.rail { stroke-width: 4; stroke-linecap: round; }
.pp-ill .fl { stroke: var(--grey-2); stroke-width: 1.2; fill: none; }
.pp-ill .ik.thin { stroke-width: 1.2; }
.pp-ill .ik.tagc { fill: var(--paper); stroke-width: 1.2; }
.pp-ill .it.sm { font-size: 11px; }
.pp-ill .it.hand { font: 400 13px var(--display); }
.pp-ill .ik.sheet { fill: var(--paper); stroke: var(--grey-2); stroke-width: 1.2; }
.pp-ill .ik.trace { stroke-width: 1.8; }
.pp-ill .ik.rlr { fill: var(--paper); stroke-width: 1.4; }
.pp-ill .tick { stroke: var(--ink); stroke-width: 1; }
.pp-ill .ik.mark { stroke-width: 1.5; stroke-linecap: round; }
.pp-ill .ik.style { stroke-width: 2.4; }
.pp-ill .ik.sample { stroke-width: 2.6; }
.pp-ill .ik.gsz { stroke-width: 1.1; }

.pp-ill .ig { fill: none; }
@media (max-width: 760px) { .pp-after .pp-ill.pp-draw { width: 140px; height: 220px; }  }

/* before / after made plain (his note 9 Nov: "before and after is not clear ... darker, or bigger texts") */
.pp-before { background: #d5d5d5; }
.pp-ill .hole { fill: #d5d5d5; }
.pp-lab { display: inline-block; margin: 0; padding: 6px 12px; font: 500 15px/1.2 var(--mono); letter-spacing: 0.02em; background: var(--paper); color: var(--ink); border: 1.6px solid var(--ink); align-self: flex-start; }
.pp-lab.on { background: var(--ink); color: var(--paper); }
.pp-after .pp-lab { margin-bottom: 6px; }
.pp-q, .pp-h { font-size: clamp(24px, 2.5vw, 34px); }
.pp-q span, .pp-h span { font-size: 16px; color: #4a4a4a; }

.pp-ill .it.b { font-weight: 700; }

/* both labels at the same height: the after card puts its label on its own top row, same padding as the before card */
.pp-after { padding: clamp(24px, 3vw, 44px); grid-template-rows: auto 1fr; row-gap: 0; }
.pp-after > .pp-lab { grid-column: 1 / -1; justify-self: start; align-self: start; margin-bottom: 0; }
.pp-after > .pp-lab + * { margin-top: 18px; }
.pp-after > div:last-child { align-self: center; }
.pp-after .pp-ill.pp-draw { width: clamp(200px, 17vw, 250px); }
/* manufacturers */

.pp-ill .ik.bold { stroke-width: 2.6; }

.pp-ill .ik.fab { fill: #6e737a; }

.pp-ill .ik.lbl { fill: var(--grey-3); }
.pp-ill .glow { fill: #ffffff; opacity: .35; stroke: none; }
.pp-ill .ik.fabr { fill: #9aa3ad; }
.pp-ill .ik.tagc.dim { stroke: var(--grey-2); }
.pp-ill .it.inv { fill: var(--paper); }
.pp-ill .it.xs { font-size: 9px; }

/* home 9 Nov: the road names the product under each step; "Is this you?" shows one before -> after per page */
.way.way-one { grid-template-columns: minmax(0, 1fr) auto; }
.who-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; margin: 2px 0 18px; }
.who-pair .wp-b { background: #d5d5d5; padding: 10px; display: flex; align-items: center; justify-content: center; height: 150px; min-width: 0; }
.who-pair .wp-b svg { width: 100%; height: 100%; margin: 0; }
.who-pair .wp-b .hole { fill: #d5d5d5; }
.who-pair .wp-arw { font-size: 20px; }
.who-pair .wp-a { height: 150px; border-width: 4px; }
.flow { height: 220vh; }   /* 30vh of scroll per step: shorter, the zoom on step 02 still has time */
/* home 9 Nov: the time ladder; each time word in a black block */
.journey .big { font-size: calc(var(--fs-big) * 1.04); line-height: 1.34; }
.journey .big .time-w { font-weight: 400; background: var(--ink); color: var(--paper); padding: 0 .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.who-top { margin-bottom: 14px; }
.who-top .pp-lab { font-size: 14px; padding: 5px 10px; }
.journey .big .time-w { white-space: nowrap; }
/* the wipe: the word stays black text; a black copy with white text is revealed from the left by --p (0 to 1, set on scroll; 1 without JS) */
.journey .big .time-w { position: relative; background: none; color: var(--ink); --p: 1; }
.journey .big .time-w .tw-on { position: absolute; inset: 0; padding: 0 .18em; background: var(--ink); color: var(--paper); white-space: nowrap; clip-path: inset(.13em calc((1 - var(--p)) * 100%) .13em 0); }
/* small phones: a drawing card stacks the drawing above its words (side by side ran 14 px too wide at 375 px) */
@media (max-width: 420px) { .pp-after:has(.pp-draw) { grid-template-columns: minmax(0, 1fr); } .pp-after .pp-ill.pp-draw { width: 100%; max-width: 240px; height: 240px; justify-self: start; } }
