/* EASY CHOICE INC. — site styles.
   Light, warm paper surfaces with ink text. The footer is graphite.
   The brand itself is monochrome. Colour appears only as status inside diagrams and logs:
   amber = waiting for a person, green = done. */

@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #fafaf7;      /* page surface */
  --ink-2: #ffffff;
  --line: #dcdcd5;
  --text: #18222e;
  --text-2: #4a5562;
  --text-3: #68717d;

  --paper: #f1f0eb;    /* second surface: hero right, terms band */
  --sheet: #ffffff;
  --p-line: #d3d2cb;
  --p-text: #1f2a36;
  --p-text-2: #535f6b;
  --black: #1b2837;    /* the one heavy tone: buttons, rules, footer. Slate navy, not black. */

  --flag: #c2820c;
  --done: #23855a;
  --flag-p: #875800;
  --done-p: #1b7044;
  --foot: #1b2837;

  --display: "Jost", "Century Gothic", "Avenir Next", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --w: 1180px;
  --gut: clamp(20px, 4vw, 40px);
  --edge: max(var(--gut), calc((100vw - var(--w)) / 2 + var(--gut)));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.12; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--black); color: #fff; padding: 10px 16px; font-family: var(--display); z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- header ---------- */
.top { background: var(--ink); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand__mark { width: 46px; flex: none; }
.brand__name { font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); font-family: var(--display); font-size: 16px; }
.nav a { text-decoration: none; color: var(--text-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }
.nav a.btn { color: #fff; padding: 10px 18px; border-bottom: 0; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-family: var(--display); font-size: 15px; padding: 9px 14px; border-radius: 2px; cursor: pointer; }

/* ---------- buttons and links ---------- */
.btn { display: inline-block; font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.2; text-decoration: none; background: var(--black); color: #fff; padding: 14px 24px; border-radius: 2px; border: 1px solid var(--black); cursor: pointer; }
.btn:hover { background: #2a3c52; border-color: #2a3c52; }
.btn--dark { background: var(--black); color: var(--paper); border-color: var(--black); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); }
.more { font-family: var(--display); font-size: 17px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

/* ---------- hero: the page splits where the logo's rule sits ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__say > *, .job { position: relative; z-index: 1; }
.hero__say { padding: clamp(56px, 9vw, 120px) clamp(24px, 3.4vw, 52px) clamp(56px, 8vw, 104px) var(--edge); display: flex; flex-direction: column; justify-content: center; }
.hero__h { font-size: clamp(38px, 4.35vw, 62px); font-weight: 300; line-height: 1.06; letter-spacing: -0.016em; text-wrap: balance; }
.hero__p { margin-top: 28px; font-size: clamp(18px, 1.45vw, 20.5px); color: var(--text-2); max-width: 31em; }
.hero__say .actions { margin-top: 36px; }
.hero__who { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 15.5px; color: var(--text-3); max-width: 31em; }

.hero__show { background: var(--paper); color: var(--p-text); border-left: 1px solid var(--black); padding: clamp(40px, 6vw, 84px) var(--edge) clamp(40px, 6vw, 84px) clamp(28px, 5vw, 72px); display: flex; align-items: center; }

/* the job sheet */
.job { width: 100%; max-width: 540px; background: var(--sheet); border: 1px solid var(--p-line); box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.35); }
.job__head { padding: 22px 26px 18px; border-bottom: 1px solid var(--p-line); }
.job__kind { font-family: var(--display); font-size: 14.5px; color: var(--p-text-2); }
.job__title { font-family: var(--display); font-size: 24px; font-weight: 500; color: var(--black); margin-top: 2px; letter-spacing: -0.005em; }
.job__part { padding: 18px 26px 20px; }
.job__part + .job__part { border-top: 1px solid var(--black); }
.job__label { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--black); display: flex; justify-content: space-between; gap: 12px; }
.job__label span { font-weight: 400; color: var(--p-text-2); }
.hand { margin-top: 10px; font-size: 16.5px; line-height: 1.5; color: var(--p-text-2); counter-reset: h; }
.hand li { counter-increment: h; display: grid; grid-template-columns: 1.6em 1fr; padding: 3px 0; }
.hand li::before { content: counter(h) "."; font-family: var(--mono); font-size: 13.5px; padding-top: 2px; color: var(--p-text-2); }
.log { margin-top: 12px; font-family: var(--mono); font-size: 13.6px; line-height: 1.5; color: var(--p-text); }
.log li { display: grid; grid-template-columns: 4.1em 14px 1fr; align-items: baseline; padding: 4px 0; }
.log time { color: var(--p-text-2); }
.log i { width: 7px; height: 7px; border-radius: 50%; background: var(--p-line); display: block; transform: translateY(-1px); }
.log .is-done i { background: var(--done-p); }
.log .is-flag i { background: var(--flag-p); }
.log .is-flag span { color: var(--black); font-weight: 500; }
.job__foot { padding: 12px 26px 14px; border-top: 1px solid var(--p-line); font-family: var(--display); font-size: 14px; color: var(--p-text-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.js .log li { opacity: 0; transform: translateY(4px); transition: opacity 0.35s ease, transform 0.35s ease; }
.js .log li.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .log li { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- bands ---------- */
.band { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.band--paper { background: var(--paper); color: var(--p-text); }
.band--tight { padding: clamp(48px, 6vw, 80px) 0; }
.lede { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.lede h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 300; letter-spacing: -0.012em; max-width: 14em; text-wrap: balance; }
.lede p { color: var(--text-2); max-width: 32em; }
.band--paper .lede p { color: var(--p-text-2); }
.band--paper h2, .band--paper h3 { color: var(--black); }

/* four systems: a 2 by 2 field divided by the same centre rule */
.four { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sys { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px) clamp(30px, 4vw, 50px); }
.sys:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
.sys:nth-child(even) { padding-right: 0; }
.sys:nth-child(n + 3) { border-top: 1px solid var(--line); }
.sys__fig { height: 148px; margin-bottom: 24px; color: var(--text-3); }
.sys__fig svg { height: 100%; width: auto; }
.sys h3 { font-size: 27px; font-weight: 500; }
.sys h3 a { text-decoration: none; }
.sys h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.sys p { margin-top: 12px; color: var(--text-2); max-width: 30em; }
.sys__jobs { margin-top: 18px; font-family: var(--display); font-size: 15.5px; color: var(--text-3); max-width: 34em; }
.sys__jobs b { font-weight: 500; color: var(--text-2); }

/* schematic drawing styles */
.fig-l { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.fig-d { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-dasharray: 2 5; stroke-linecap: round; }
.fig-s { fill: var(--ink); stroke: currentColor; stroke-width: 1.25; }
.fig-flag { fill: var(--flag); }
.fig-done { fill: var(--done); }
.fig-t { font-family: var(--display); font-size: 11.5px; fill: currentColor; }
.band--paper .fig-s { fill: var(--paper); }

.fig-anim .fig-fade { opacity: 0; transition: opacity 0.5s ease 1.1s; }
.fig-anim.is-drawn .fig-fade { opacity: 1; }
.fig-anim .fig-draw { transition: stroke-dashoffset 1.3s cubic-bezier(0.6, 0, 0.2, 1); }

.fig-run { opacity: 0; }
.fig-anim.is-drawn .fig-run { opacity: 1; transition: opacity 0.4s ease 1.5s; }

/* ---------- motion: one vocabulary on every page ----------
   A dot on a line. Hollow = still done by hand. Amber = waiting for a person. Green = done.
   Each effect runs once, or sits still for visitors who ask for reduced motion. */
.head { position: relative; border-bottom: 1px solid var(--line); }
.head + .band { border-top: 0; }
.head::before { content: ""; position: absolute; left: 50%; bottom: -8px; width: 1px; height: 16px; background: var(--black); }
.head::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; opacity: 0; animation: cross 5.2s cubic-bezier(0.5, 0, 0.3, 1) 0.5s 1 both; }
@keyframes cross {
  0% { left: -10px; background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); opacity: 1; }
  44% { left: calc(50% - 4px); background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); }
  46%, 60% { left: calc(50% - 4px); background: var(--flag); box-shadow: 0 0 0 5px rgba(194, 130, 12, 0.18); }
  63% { left: calc(50% - 4px); background: var(--done); box-shadow: 0 0 0 0 rgba(35, 133, 90, 0); opacity: 1; }
  96% { opacity: 1; }
  100% { left: calc(100% - 9px); background: var(--done); opacity: 0; }
}
.steps { position: relative; }
.steps::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); }
.steps.is-seen::after { animation: walk 6.4s cubic-bezier(0.5, 0, 0.3, 1) 0.3s 1 both; }
@keyframes walk {
  0% { left: 0; background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); }
  28% { left: calc(33.333% - 4px); background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); }
  30%, 46% { left: calc(33.333% - 4px); background: var(--flag); box-shadow: 0 0 0 5px rgba(194, 130, 12, 0.18); }
  49% { left: calc(33.333% - 4px); background: var(--done); box-shadow: 0 0 0 0 rgba(35, 133, 90, 0); }
  72%, 78% { left: calc(66.666% - 4px); background: var(--done); }
  100% { left: calc(100% - 9px); background: var(--done); box-shadow: 0 0 0 0 rgba(35, 133, 90, 0); }
}
.live { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 14.5px; color: var(--text-2); margin-top: 10px; }
.live::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--done); animation: pulse 2.6s ease-out infinite; }
.live--past::before { background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(35, 133, 90, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(35, 133, 90, 0); } }
.sent { margin-top: 6px; border: 1px solid var(--p-line); background: var(--sheet); padding: 16px 20px 12px; max-width: 34em; }
.sent .log { margin-top: 0; }
.form__err { color: #9a2c1f; font-size: 15.5px; margin-top: 8px; }
.form__human { min-height: 65px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .head::after, .steps::after { animation: none; display: none; }
  .live::before { animation: none; }
}

/* steps: a real sequence, so it is numbered */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.step { padding: 30px clamp(20px, 3vw, 40px) 6px 0; counter-increment: s; }
.step + .step { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--line); }
.step::before { content: counter(s); font-family: var(--display); font-weight: 300; font-size: 54px; line-height: 1; color: var(--text-3); display: block; margin-bottom: 18px; }
.step h3 { font-size: 24px; font-weight: 500; }
.step p { margin-top: 10px; color: var(--text-2); }
.note { margin-top: clamp(32px, 4vw, 52px); padding-top: 22px; border-top: 1px solid var(--line); max-width: 44em; color: var(--text-2); }
.note b { font-weight: 600; color: var(--text); }

/* paper band split by the rule: heading | what stays with you */
.pair { display: grid; grid-template-columns: 1fr 1fr; }
.pair > div:first-child { padding-right: clamp(24px, 5vw, 72px); border-right: 1px solid var(--black); }
.pair > div:last-child { padding-left: clamp(24px, 5vw, 72px); }
.pair h2 { font-size: clamp(26px, 2.8vw, 36px); font-weight: 400; margin-bottom: 22px; }
.fine { margin-top: 0; font-size: 15.5px; color: var(--p-text-2); max-width: 34em; }
.keep li { padding: 13px 0 13px 30px; border-top: 1px solid var(--p-line); position: relative; }
.keep li:last-child { border-bottom: 1px solid var(--p-line); }
.keep li::before { content: ""; position: absolute; left: 2px; top: 1.32em; width: 14px; height: 1px; background: var(--black); }

/* work rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(180px, 1fr) 2.4fr; gap: clamp(20px, 4vw, 56px); padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { font-size: 22px; font-weight: 500; }
.row__kind { font-family: var(--display); font-size: 15px; color: var(--text-3); margin-top: 4px; }
.row p { color: var(--text-2); max-width: 40em; }
.row p + p { margin-top: 10px; }
.row__fig { height: 132px; max-width: 100%; color: var(--text-3); margin-top: 18px; }
.row__fig svg { height: 100%; width: auto; max-width: 100%; }

/* closing */
.close { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: end; }
.close h2 { font-size: clamp(32px, 4vw, 54px); font-weight: 300; letter-spacing: -0.015em; max-width: 13em; text-wrap: balance; }
.close p { color: var(--text-2); margin-bottom: 22px; max-width: 26em; }

/* inner pages */
.head { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); background-image: radial-gradient(rgba(27, 40, 55, 0.12) 1px, transparent 1.4px); background-size: 26px 26px; }
.head h1 { font-size: clamp(36px, 4.4vw, 60px); font-weight: 300; letter-spacing: -0.016em; max-width: 15em; line-height: 1.06; text-wrap: balance; }
.head p { margin-top: 22px; font-size: clamp(18px, 1.4vw, 20px); color: var(--text-2); max-width: 36em; }

.detail { display: grid; grid-template-columns: minmax(240px, 1fr) 1.5fr; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; }
.detail__fig { height: 150px; color: var(--text-3); margin-top: 26px; }
.detail__fig svg { height: 100%; width: auto; }
.detail h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 400; }
.detail h3 { font-size: 17px; font-weight: 500; color: var(--text); margin-top: 26px; margin-bottom: 8px; }
.detail h3:first-child { margin-top: 0; }
.detail p, .detail li { color: var(--text-2); max-width: 38em; }
.dash li { padding-left: 26px; position: relative; margin-top: 6px; }
.dash li::before { content: ""; position: absolute; left: 2px; top: 0.82em; width: 12px; height: 1px; background: var(--text-3); }

.prose { max-width: 40em; }
.prose h2 { font-size: 28px; font-weight: 400; margin-top: 52px; margin-bottom: 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-2); margin-top: 14px; }
.prose p:first-child { margin-top: 0; }
.prose ul { margin-top: 10px; }
.prose ul li { color: var(--text-2); }

.faq { border-top: 1px solid var(--line); }
.faq div { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(20px, 4vw, 56px); padding: 24px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; }
.faq dd { margin: 0; color: var(--text-2); max-width: 38em; }

.facts { border-top: 1px solid var(--line); max-width: 40em; }
.facts div { display: grid; grid-template-columns: 11em 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); color: var(--text-3); font-size: 16px; }
.facts dd { margin: 0; }

/* contact form */
.form { display: grid; gap: 18px; max-width: 34em; }
.form[hidden] { display: none; }
.form label { display: block; font-family: var(--display); font-weight: 500; font-size: 16px; margin-bottom: 6px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--text); outline-offset: 0; border-color: var(--text); }
.form textarea { min-height: 150px; resize: vertical; }
.form__hint { font-size: 15.5px; color: var(--text-3); margin-top: 6px; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 6vw, 88px); }
.aside { border-left: 1px solid var(--line); padding-left: clamp(20px, 3vw, 40px); }
.aside h2 { font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.aside p { color: var(--text-2); }
.aside p + h2 { margin-top: 32px; }

/* ---------- case pages ---------- */
.crumb { font-family: var(--display); font-size: 15px; color: var(--text-3); margin-bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.crumb a { color: var(--text-2); }
.head .crumb { margin-top: 0; font-size: 15px; color: var(--text-3); }
.meta { margin: 34px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); max-width: none; }
.meta div { padding: 14px 24px 0 0; }
.meta div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.meta dt { font-family: var(--display); font-size: 14px; color: var(--text-3); }
.meta dd { margin: 4px 0 0; font-size: 16px; line-height: 1.45; color: var(--text); }
.case__fig { color: var(--text-3); max-width: 860px; margin: 0 auto; }
.case__fig svg { width: 100%; height: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(36px, 5vw, 60px); }
.stats li { padding: 22px 20px 20px 0; }
.stats li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.05; color: var(--text); letter-spacing: -0.01em; }
.stats span { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.stats__note { margin-top: 10px; font-family: var(--display); font-size: 14px; color: var(--text-3); }
.detail__n { font-family: var(--display); font-weight: 300; font-size: 54px; line-height: 1; color: var(--text-3); margin-bottom: 16px; }
.detail > div > p + p, .detail > div > p + table, .detail > div > table + p, .detail > div > p + ul, .detail > div > ul + p { margin-top: 16px; }
.dash li b, .detail li b { font-weight: 600; color: var(--text); }
.pull { font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 300; line-height: 1.25; color: var(--text) !important; }
.ledger { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: 11px 16px 11px 0; border-bottom: 1px solid var(--line); }
.ledger thead th { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--text-3); border-bottom-color: var(--text-3); }
.ledger tbody th { font-family: var(--display); font-weight: 500; color: var(--text); width: 38%; }
.ledger td { color: var(--text-2); }
.ledger--3 tbody th { width: 30%; }
.ledger--3 td:nth-child(2) { width: 1%; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display); font-size: 14px; color: var(--text); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.3px var(--text-3); }
.tag--ai::before { background: var(--black); box-shadow: none; }
.shot { margin: clamp(28px, 4vw, 44px) 0 0; }
.shot__a { display: block; border: 1px solid var(--line); background: var(--sheet); cursor: zoom-in; overflow: hidden; }
.shot__a img { width: 100%; height: auto; transition: transform 0.4s ease; }
.shot__a:hover img { transform: scale(1.01); }
.shot figcaption { margin-top: 10px; font-family: var(--display); font-size: 15px; line-height: 1.45; color: var(--text-3); max-width: 46em; }
.shots { display: grid; gap: 0 clamp(20px, 3vw, 36px); align-items: start; }
.shots--2 { grid-template-columns: 1fr 1fr; }
.shots--3 { grid-template-columns: 1.1fr 1fr 1fr; }
.fineprint { max-width: 50em; font-size: 15.5px; color: var(--text-3); }
.fineprint p + p, .fineprint ol { margin-top: 10px; }
.fineprint ol { list-style: decimal; padding-left: 1.3em; }
.row__title { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--text); text-decoration: none; }
.row__title:hover { text-decoration: underline; }
.row h3 a { text-decoration: none; }
.row .actions .more + .more { margin-left: 0; }
sup a { text-decoration: none; font-family: var(--display); font-size: 0.75em; color: var(--text-3); }

/* full-size screenshot: fits the screen; click the picture for actual size */
.lb { margin: 0; inset: 0; border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lb::backdrop { background: rgba(16, 24, 33, 0.86); }
.lb__in { width: 100%; height: 100%; overflow: auto; padding: 60px 24px 24px; }
.lb__in img { display: block; margin: 0 auto; max-width: min(100%, 1600px); height: auto; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,0.4); cursor: zoom-in; }
.lb__in img.is-full { max-width: none; cursor: zoom-out; }
.lb__x { position: fixed; top: 14px; right: 18px; z-index: 2; font-family: var(--display); font-size: 15px; background: var(--ink); color: var(--text); border: 0; border-radius: 2px; padding: 8px 14px; cursor: pointer; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.calc__form fieldset { border: 0; margin: 0; padding: 0; }
.calc__form fieldset + fieldset { margin-top: 30px; }
.calc__form legend { font-family: var(--display); font-weight: 500; font-size: 19px; padding: 0 0 4px; width: 100%; border-bottom: 1px solid var(--text-3); margin-bottom: 4px; }
.cf { display: grid; grid-template-columns: 1fr 172px; gap: 2px 18px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cf label { font-family: var(--display); font-size: 16.5px; line-height: 1.3; }
.cf__in { display: flex; align-items: center; border: 1px solid var(--line); background: var(--ink-2); border-radius: 2px; }
.cf__in:focus-within { outline: 2px solid var(--text); border-color: var(--text); }
.cf__in input { width: 100%; min-width: 0; border: 0; background: transparent; font-family: var(--mono); font-size: 16px; color: var(--text); padding: 9px 10px; text-align: right; -moz-appearance: textfield; }
.cf__in input:focus { outline: none; }
.cf__in input::-webkit-outer-spin-button, .cf__in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf__in span { flex: none; font-family: var(--display); font-size: 14px; color: var(--text-3); padding-right: 10px; white-space: nowrap; }
.cf__help { grid-column: 1 / -1; font-size: 14.5px; line-height: 1.45; color: var(--text-3); margin-top: 2px; }
.presets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; font-family: var(--display); font-size: 15px; color: var(--text-3); }
.presets span { margin-right: 4px; }
.presets button { font-family: var(--display); font-size: 15px; background: transparent; color: var(--text-2); border: 1px solid var(--line); border-radius: 2px; padding: 7px 12px; cursor: pointer; }
.presets button:hover { border-color: var(--text-3); color: var(--text); }
.presets button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.calc__out { position: sticky; top: 24px; }
.sheet { background: var(--sheet); border: 1px solid var(--p-line); box-shadow: 0 22px 44px -30px rgba(0, 0, 0, 0.35); }
.sheet__head { padding: 22px 26px 20px; border-bottom: 1px solid var(--black); background: var(--paper); }
.sheet__big { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.015em; color: var(--black); margin-top: 6px; }
.sheet__say { margin-top: 6px; font-family: var(--display); font-size: 17px; color: var(--p-text); }
.sheet__sub { margin-top: 12px; font-size: 15.5px; line-height: 1.45; color: var(--p-text-2); }
.sheet__sub span { font-family: var(--mono); font-size: 14.5px; color: var(--flag-p); }
.calc__log li { grid-template-columns: 1.8em 14px 1fr; }
.sheet__warn { margin: 0 26px 16px; padding: 10px 12px; border-left: 2px solid var(--flag); background: rgba(194, 130, 12, 0.08); font-size: 15px; line-height: 1.45; color: var(--p-text); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--p-text); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.numbered { list-style: decimal; padding-left: 1.4em; margin-top: 14px; }
.numbered li { color: var(--text-2); padding: 3px 0; }
.detail > div > ol + p { margin-top: 16px; }
.refs { list-style: decimal; padding-left: 1.4em; margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.refs li { padding: 3px 0; }
.ledger--src { margin-top: 18px; }
.ledger--src td:nth-child(2) { font-family: var(--mono); font-size: 14px; white-space: nowrap; color: var(--text); }

@media (max-width: 900px) {
  .meta { grid-template-columns: 1fr 1fr; }
  .meta div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .shots--2, .shots--3 { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__out { position: static; order: -1; }
}
@media (max-width: 600px) {
  .meta { grid-template-columns: 1fr; }
  .meta div, .meta div + div { padding-left: 0; border-left: 0; }
  .meta div + div { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
  .ledger, .ledger thead, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger thead { display: none; }
  .ledger tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .ledger th, .ledger td { border: 0; padding: 2px 0; white-space: normal !important; }
  .cf { grid-template-columns: 1fr 140px; }
}

/* ---------- footer ---------- */
.foot { background: var(--foot); padding: 56px 0 44px; font-family: var(--display); font-size: 16px; color: #b3bcc6; }
.foot__in { display: grid; grid-template-columns: 132px 1.3fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.foot__mark { width: 132px; color: #f1f1f1; }
.foot strong { color: #f1f1f1; font-weight: 500; letter-spacing: 0.04em; display: block; margin-bottom: 4px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.foot__legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid #33455a; font-size: 14.5px; color: #8d99a6; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  #flow { display: none; }
  .hero__show { border-left: 0; border-top: 1px solid var(--black); }
  .hero__say { padding: 56px var(--gut) 52px; }
  .hero__show { padding: 36px var(--gut) 48px; }
  .job { max-width: none; }
  .lede, .close, .split, .detail, .pair { grid-template-columns: 1fr; }
  .lede { align-items: start; }
  .four { grid-template-columns: 1fr; }
  .sys, .sys:nth-child(odd), .sys:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
  .sys + .sys { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps::after { display: none; }
  .step, .step + .step { padding: 26px 0 22px; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .pair > div:first-child { padding-right: 0; border-right: 0; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--black); }
  .pair > div:last-child { padding-left: 0; }
  .row, .faq div { grid-template-columns: 1fr; gap: 8px; }
  .aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .foot__in { grid-template-columns: 1fr; }
  .foot__mark { width: 104px; }
  .detail__fig { height: 120px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav__toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav a.btn { margin-top: 16px; text-align: center; padding: 14px 18px; }
  .brand__name { font-size: 16px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .log { font-size: 12.6px; }
  .log li { grid-template-columns: 3.9em 13px 1fr; }
}
.band--tight > .wrap > .detail:first-child { padding-top: 0; }
.band--tight > .wrap > .detail:first-child:last-child { padding-bottom: 0; }
.talk { margin: clamp(28px, 4vw, 44px) 0 0; }
.talk .log { margin: 0; padding: 18px 22px 14px; border: 1px solid var(--line); background: var(--sheet); font-size: 14px; }
.js .talk .log li { opacity: 1; transform: none; }
.talk .log li { grid-template-columns: 4.4em 14px 1fr; padding: 6px 0; }
.talk .log li + li { border-top: 1px dashed var(--line); margin-top: 4px; padding-top: 10px; }
.talk figcaption { margin-top: 10px; font-family: var(--display); font-size: 15px; line-height: 1.45; color: var(--text-3); }
.talk figcaption a { color: var(--text-2); white-space: nowrap; }
.pair p + p { margin-top: 14px; }
.shots > div > .shot:first-child { margin-top: clamp(28px, 4vw, 44px); }
.shots > div > .shot + .shot { margin-top: 16px; }
.ledger--src tbody th { width: 26%; }
.calc__bar { display: none; }
@media (max-width: 900px) {
  .calc__bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: var(--black); color: #fff; font-family: var(--display); font-size: 15px; transform: translateY(110%); transition: transform 0.25s ease; }
  .calc__bar b { font-weight: 400; font-size: 22px; }
  .calc__bar.is-on { transform: none; }
}
@media (max-width: 600px) {
  .case__fig { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut); }
  .case__fig svg { min-width: 600px; }
}

/* Home: the evening scene. A tall track with a sticky stage; scrolling moves the evening forward.
   Without script (or with reduced motion) everything shows at once and nothing sticks. */
.eve { background: var(--black); color: #e9ebe6; }
.eve__stage { position: relative; overflow: hidden; padding: 96px 0 64px; }
.eve__sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 0%, #2c3e52 0%, #1b2837 55%, #121b26 100%); }
.eve__win { position: absolute; right: 4%; top: 8%; width: min(40vw, 500px); height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.eve { --t: .85; }
.ew-dusk { opacity: clamp(0, calc(1 - var(--t) * 1.15), 1); }
.ew-sun { opacity: clamp(0, calc(1 - var(--t) * 1.7), 1); transform: translateY(calc(var(--t) * 70px)); }
.ew-moon { opacity: clamp(0, calc(var(--t) * 3 - 2), 1); }
.ew-stars { opacity: clamp(0, calc(var(--t) * 2.2 - 1.2), .9); }
.ew-lights rect { opacity: clamp(0, calc((var(--t) - var(--k)) * 6), 1); }
.eve__in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.eve__clock { font-family: var(--display); font-weight: 200; font-size: clamp(64px, 9vw, 120px); line-height: .9; letter-spacing: -.02em; }
.eve__clock small { font-size: .32em; margin-left: .25em; letter-spacing: .04em; opacity: .7; }
.eve__day { margin-top: 10px; font-family: var(--display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; opacity: .62; }
.eve__lines { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; max-width: 34em; }
.eve__h { margin-top: 40px; font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; color: #fff; }
.eve__phone { justify-self: center; width: min(100%, 340px); border-radius: 38px; padding: 12px; background: #0e151e; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.eve__screen { border-radius: 28px; background: #f6f5f0; color: var(--text); padding: 22px 16px 26px; min-height: 440px; display: flex; flex-direction: column; gap: 10px; }
.eve__app { font-family: var(--display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 4px 4px; }
.eve__card { background: #fff; border-radius: 14px; padding: 12px 14px 12px 30px; position: relative; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(24, 34, 46, .06); font-family: var(--display); }
.eve__card::before { content: ""; position: absolute; left: 13px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.eve__card.is-done::before { background: var(--done); }
.eve__card.is-flag::before { background: var(--flag); }
.eve__card b { display: block; font-weight: 500; font-size: 15px; }
.eve__card span { display: block; margin-top: 2px; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.eve__card--ring::before { background: var(--black); }
.eve__ok { margin-top: 10px; width: 100%; border: 0; border-radius: 10px; padding: 9px; background: var(--black); color: #fff; font: 500 14px var(--display); position: relative; overflow: hidden; cursor: default; }
.eve__ok::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .5); transform: scale(0); opacity: 0; }
.eve__note { position: relative; margin-top: 40px; text-align: center; font-size: 13px; opacity: .5; font-family: var(--display); }

/* scripted version: sticky stage, one line at a time, cards arrive with the clock */
.js .eve.is-live .eve__track { height: 340vh; }
.js .eve.is-live .eve__stage { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 28px; }
.js .eve.is-live .eve__lines { position: relative; min-height: 6.2em; }
.js .eve.is-live .eve__lines li { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; }
.js .eve.is-live .eve__lines li.is-on { opacity: 1; transform: none; }
.js .eve.is-live .eve__h { opacity: .28; transition: opacity .6s ease; }
.js .eve.is-live.is-end .eve__h { opacity: 1; }
.js .eve.is-live .eve__card { display: none; }
.js .eve.is-live .eve__card.is-on { display: block; animation: eve-in .45s cubic-bezier(.2, .7, .2, 1) both; }
.js .eve.is-live .eve__card--ring.is-on::before { animation: eve-ring 1s ease-in-out infinite; }
.js .eve.is-live .eve__ok.is-tap::after { animation: eve-tap .7s ease-out 1 both; }
.js .eve.is-live .eve__ok.is-tap { background: var(--done); }
@keyframes eve-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes eve-ring { 50% { transform: scale(1.7); opacity: .4; } }
@keyframes eve-tap { 0% { transform: scale(0); opacity: .9; } 100% { transform: scale(26); opacity: 0; } }
@media (max-width: 900px) {
  .eve__in { grid-template-columns: 1fr; }
  .eve__win { display: none; }
  .eve__phone { width: min(100%, 300px); }
  .eve__screen { min-height: 0; }
  .js .eve.is-live .eve__track { height: 300vh; }
  .js .eve.is-live .eve__stage { padding: 56px 0 18px; }
  .js .eve.is-live .eve__in { gap: 18px; }
  .eve__clock { font-size: 56px; }
  .eve__lines { margin-top: 18px; font-size: 17px; }
  .js .eve.is-live .eve__lines { min-height: 5em; }
  .eve__h { margin-top: 18px; font-size: 26px; }
  .eve__note { margin-top: 14px; }
  .js .eve.is-live .eve__card:not(.is-last) { display: none; }
  .js .eve.is-live .eve__card.is-on.is-last { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .eve__card, .eve__lines li, .eve__h { animation: none !important; transition: none !important; }
}

/* Back to top: appears after the first screen, on every page */
.totop { position: fixed; right: max(16px, 2vw); bottom: max(16px, 2vw); z-index: 40; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: var(--black); color: #fff; font: 500 14px var(--display); text-decoration: none; box-shadow: 0 8px 24px rgba(24, 34, 46, .22); opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: #26364a; }
@media (max-width: 600px) { .totop span { display: none; } .totop { padding: 11px 14px; } }

/* Quote Desk sample (what-we-build/quote-desk) */
.qd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 3vw, 40px); margin-top: 34px; align-items: start; }
.qd__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.qd__tabs button { font: 500 14px var(--display); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--p-line); background: var(--sheet); color: var(--text-2); cursor: pointer; }
.qd__tabs button[aria-selected="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.qd__mail { margin: 14px 0 0; background: var(--sheet); border: 1px solid var(--p-line); border-radius: 12px; padding: 16px 18px; }
.qd__mail figcaption { display: flex; justify-content: space-between; gap: 10px; font: 500 13px var(--display); color: var(--text-3); }
.qd__mail blockquote { margin: 8px 0 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.qd__read { margin-top: 18px; }
.qd__label { font: 500 13px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); display: flex; justify-content: space-between; }
.qd__label span { text-transform: none; letter-spacing: 0; color: var(--flag-p); }
.qd__lines { display: grid; gap: 8px; margin: 10px 0 8px; }
.qd__line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: var(--sheet); border: 1px solid var(--p-line); border-radius: 10px; padding: 8px; }
.qd__line select, .qd__line input { font: 14px var(--display); color: var(--text); border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 6px 7px; min-height: 34px; }
.qd__line select[data-f="p"] { flex: 1 1 170px; }
.qd__size, .qd__qty { display: inline-flex; align-items: center; gap: 4px; }
.qd__size input { width: 58px; } .qd__qty input { width: 52px; }
.qd__size i, .qd__qty i { font-style: normal; font-size: 13px; color: var(--text-3); }
.qd__x { margin-left: auto; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 4px 8px; }
.qd__opts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font: 14px var(--display); color: var(--text-2); }
.qd__opts input { accent-color: var(--black); margin-right: 5px; }
.qd__right { position: sticky; top: 84px; }
.qd__quote { background: var(--sheet); border: 1px solid var(--p-line); border-radius: 14px; padding: 20px; box-shadow: 0 12px 34px rgba(24, 34, 46, .07); }
.qd__qhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-family: var(--display); }
.qd__qhead b { display: block; font-size: 19px; font-weight: 500; }
.qd__qhead span { font-size: 13px; color: var(--text-3); }
.qd__state { font: 500 13px var(--display); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.qd__state.is-done { background: rgba(35, 133, 90, .1); color: var(--done-p); }
.qd__state.is-flag { background: rgba(194, 130, 12, .12); color: var(--flag-p); }
.qd__table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: 15px; }
.qd__table th { font: 500 12px var(--display); text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); text-align: left; padding: 10px 6px 6px 0; }
.qd__table td { vertical-align: top; padding: 10px 6px 10px 0; border-top: 1px solid var(--line); }
.qd__table td b { display: block; font-weight: 500; font-family: var(--display); }
.qd__table td small { display: block; margin-top: 3px; font: 12px/1.45 var(--mono); color: var(--text-3); }
.qd__table .num { text-align: right; white-space: nowrap; font-family: var(--mono); }
.qd__table tr.is-flag td { background: rgba(194, 130, 12, .07); }
.qd__table tr.is-flag small { color: var(--flag-p); }
.qd__table tr.is-flag .num { color: var(--flag-p); font-style: italic; }
.qd__sum { margin: 8px 0 0; border-top: 1px solid var(--line); padding-top: 8px; }
.qd__sum div { display: flex; justify-content: space-between; padding: 3px 0; font-family: var(--display); color: var(--text-2); }
.qd__sum dd { margin: 0; font-family: var(--mono); }
.qd__sum .qd__total { color: var(--text); font-weight: 500; font-size: 18px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.qd__act { margin-top: 16px; }
.qd__act .btn[disabled] { opacity: .45; cursor: default; }
.qd__log { margin-top: 12px; }
.qd__fine { margin-top: 12px; font-size: 13px; color: var(--text-3); }
@media (max-width: 900px) { .qd { grid-template-columns: 1fr; } .qd__right { position: static; } }
.qd-flow { table-layout: fixed; }
.qd-flow th, .qd-flow td { width: 33.3%; white-space: normal; }

/* What we build: lines and modules */
.line__say { margin-top: 12px; color: var(--text-2); max-width: 22em; }
.mods { display: grid; gap: 22px; }
.mod { background: var(--sheet); border: 1px solid var(--p-line); border-radius: 12px; padding: 20px 22px; }
.mod h3 { font-size: 23px; font-weight: 500; }
.mod h3 a { text-decoration: none; } .mod h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.mod__promise { margin-top: 4px; font-family: var(--display); font-size: 17px; color: var(--text); }
.mod__stuck, .mod__person { margin-top: 12px; color: var(--text-2); }
.mod .dash { margin-top: 10px; }
.mod__foot { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.mod__foot .tag { font: 500 12px var(--display); padding: 4px 10px; border-radius: 999px; background: var(--paper); color: var(--text-2); border: 1px solid var(--p-line); }
.form select { width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); border-radius: 2px; padding: 12px 14px; }

/* Module samples (demos.js) */
.dm { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(18px, 3vw, 36px); margin-top: 30px; align-items: start; }
.dm--wide { grid-template-columns: 1fr; gap: 14px; }
.dm__list { display: grid; gap: 8px; }
.dm__list button { text-align: left; display: grid; gap: 2px; background: var(--sheet); border: 1px solid var(--p-line); border-radius: 10px; padding: 12px 14px; cursor: pointer; font: 15px var(--display); color: var(--text); }
.dm__list button span { font-size: 12px; color: var(--text-3); letter-spacing: .03em; }
.dm__list button b { font-weight: 500; }
.dm__list button[aria-selected="true"] { border-color: var(--black); box-shadow: inset 3px 0 0 var(--black); }
.dm__panel { background: var(--sheet); border: 1px solid var(--p-line); border-radius: 14px; padding: 20px; box-shadow: 0 12px 34px rgba(24, 34, 46, .07); }
.dm__panel .log { margin-top: 14px; }
.dm__talk { display: grid; gap: 8px; margin-top: 14px; }
.dm__talk p { margin: 0; padding: 10px 12px; border-radius: 10px; line-height: 1.5; }
.dm__talk i { display: block; font: normal 500 11px var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.dm__said { background: var(--paper); margin-right: 18%; }
.dm__desk { background: rgba(27, 40, 55, .06); margin-left: 18%; }
.dm__ans { margin-top: 14px; }
.dm__ans .numbered { margin-top: 0; }
.dm__src { margin-top: 10px; font: 12px/1.5 var(--mono); color: var(--text-3); }
.dm__miss { color: var(--flag-p); margin-bottom: 12px; }
.dm__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dm__bar b { font: 500 18px var(--display); min-width: 13em; }
.dm__step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--p-line); background: var(--sheet); font-size: 18px; cursor: pointer; color: var(--text); }
.dm__step:disabled { opacity: .35; cursor: default; }
.dm__sum { margin-left: auto; font: 14px var(--display); color: var(--text-2); }
.dm__board td small { font-family: var(--display); }
.dm__dots { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.dm__dots li { width: 28px; height: 4px; border-radius: 2px; background: var(--p-line); }
.dm__dots li.is-on { background: var(--black); }
.dm__msg { background: var(--paper); border-radius: 12px; padding: 12px 14px; line-height: 1.5; margin-bottom: 10px; }
.dm__msg i { display: block; font: normal 500 12px var(--display); color: var(--text-3); margin-bottom: 4px; }
.dm__msg--draft { border: 1px dashed var(--flag); background: rgba(194, 130, 12, .05); }
.dm__photos { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dm__photos li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px; background: var(--paper); font-family: var(--display); font-size: 14px; }
.dm__photos li.is-flag { background: rgba(194, 130, 12, .08); color: var(--flag-p); }
.dm__photos li.is-done b { color: var(--done-p); }
.dm__panel .btn { margin-top: 12px; }
.dm__panel .btn[disabled] { opacity: .5; cursor: default; }
.mod__fact { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--black); background: var(--paper); font-family: var(--display); }
@media (max-width: 900px) { .dm { grid-template-columns: 1fr; } .dm__sum, .dm__dots { margin-left: 0; width: 100%; } .dm__said { margin-right: 8%; } .dm__desk { margin-left: 8%; } }

/* ---------- "Try it live": voice front desk (button in the header, panel at the top right) ---------- */
.tlive { display: inline-flex; align-items: center; gap: 8px; font: 500 15px/1 var(--display); color: var(--text); background: var(--sheet);
  border: 1px solid var(--p-line); border-radius: 999px; padding: 9px 15px 9px 13px; cursor: pointer; white-space: nowrap; }
.tlive:hover { border-color: var(--black); }
.tlive__ico { flex: none; width: 16px; height: 16px; color: #6b5bd2; }
.tlive--bar { display: none; }
.btn--line { background: var(--sheet); color: var(--text); border-color: var(--p-line); }
.btn--line:hover { border-color: var(--black); }
.lv { position: fixed; z-index: 30; top: 90px; right: 14px; bottom: 14px; width: min(400px, calc(100vw - 28px)); background: var(--sheet);
  border: 1px solid var(--p-line); border-radius: 18px; box-shadow: 0 18px 50px rgba(27, 40, 55, .16); display: flex; flex-direction: column; overflow: hidden; }
.lv[hidden] { display: none; }
.lv__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid var(--p-line); }
.lv__name { font: 500 17px/1.2 var(--display); }
.lv__sub { font: 13px/1.35 var(--display); color: var(--text-3); margin-top: 2px; }
.lv__sub i { display: none; width: 7px; height: 7px; border-radius: 50%; background: #2f8f5b; margin-right: 6px; vertical-align: 1px; }
.lv.is-live .lv__sub i { display: inline-block; }
.lv__x { margin-left: auto; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--text-3); cursor: pointer; padding: 0 4px; }
.lv__body { flex: 1; overflow: auto; display: flex; flex-direction: column; }
.lv__intro { margin: auto; text-align: center; padding: 30px 28px; color: var(--text-3); font: 14.5px/1.55 var(--display); }
.lv__intro p { margin: 18px 0 0; }
.lv.has-msgs .lv__intro { display: none; }
.lv__msgs { padding: 18px 18px 8px; display: grid; gap: 12px; align-content: start; }
.lv__msgs:empty { display: none; }
/* the orb: a slate sphere that swells with the desk's voice */
.orb { position: relative; display: inline-block; flex: none; }
.orb--lg { width: 132px; height: 132px; }
.orb--sm { width: 36px; height: 36px; }
.orb__core { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #5a6f86 0%, #2b3d52 34%, #1b2837 62%, #0f1822 100%);
  box-shadow: inset -8px -10px 24px rgba(0, 0, 0, .35), 0 8px 26px rgba(27, 40, 55, .25);
  transform: scale(calc(1 + var(--lv, 0) * .06)); transition: transform .08s; }
.orb__core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(160, 190, 220, .35) 70%, transparent 80%); animation: orbspin 9s linear infinite; }
.orb__ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid rgba(90, 111, 134, .5);
  transform: scale(calc(1 + var(--lv, 0) * .25)); opacity: calc(.08 + var(--lv, 0) * 1.2); transition: transform .08s, opacity .08s; }
.orb--sm .orb__ring { inset: -4px; }
@keyframes orbspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .orb__core::after { animation: none; } }
.lv__m { margin: 0; line-height: 1.5; font-size: 15.5px; }
.lv__m--a { padding-right: 10%; }
.lv__m--u { justify-self: end; max-width: 85%; background: var(--paper); border: 1px solid var(--p-line); border-radius: 14px; padding: 8px 13px; }
.lv__m--u.is-pending { color: var(--text-3); }
.lv__chip { justify-self: start; font: 12.5px var(--mono); color: var(--text-2); border: 1px solid var(--p-line); border-radius: 999px; padding: 4px 11px; }
.lv__rule { display: flex; align-items: center; gap: 10px; color: var(--text-3); font: 13px var(--display); }
.lv__rule::before, .lv__rule::after { content: ""; flex: 1; border-top: 1px solid var(--p-line); }
.lv__foot { padding: 10px 14px 14px; display: grid; gap: 8px; }
.lv__bar { display: flex; align-items: center; gap: 8px; border: 1px solid var(--p-line); border-radius: 999px; padding: 5px 5px 5px 16px; background: var(--sheet); }
.lv__bar:focus-within { border-color: var(--text-3); }
.lv__bar input { flex: 1; min-width: 0; border: 0; outline: 0; font: 15px var(--display); background: transparent; padding: 7px 0; }
.lv__talk { display: inline-flex; align-items: center; gap: 7px; background: var(--black); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 15px 9px 12px; font: 500 14.5px/1 var(--display); cursor: pointer; }
.lv.is-live .lv__talk { background: #a2382f; }
.lv__talk svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; fill: none; }
.lv__talk svg path { transform-origin: center; transform-box: fill-box; transition: transform .08s; }
.lv.is-live .lv__talk .w2 { transform: scaleY(calc(.55 + var(--mv, 0) * 1.2)); }
.lv.is-live .lv__talk .w3 { transform: scaleY(calc(.5 + var(--mv, 0) * 1.5)); }
.lv__fine { margin: 0 6px; font: 12px/1.45 var(--display); color: var(--text-3); }
.lv__fine a { color: inherit; }
@media (max-width: 760px) {
  .tlive--nav { display: none; }
  .tlive--bar { display: inline-flex; margin-left: auto; padding: 8px 12px; font-size: 14px; }
  .top__in { gap: 10px; }
  .lv { top: auto; right: 0; bottom: 0; height: 88vh; height: 88dvh; width: 100vw; border-width: 1px 0 0; border-radius: 18px 18px 0 0; }
}
.lv [hidden] { display: none !important; }
@media (max-width: 400px) { .tlive--bar { font-size: 13px; padding: 7px 10px; gap: 6px; } .brand { gap: 10px; } .brand__mark { width: 38px; } .brand__name { font-size: 15px; } .nav__toggle { padding: 8px 10px; font-size: 14px; } }
.close__acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn--live { display: inline-flex; align-items: center; gap: 9px; }
.btn--live .tlive__ico { width: 18px; height: 18px; }
