/* AI Business Albania — the engagement letter, v6: the front desk.
   Paper white and near-black ink; one engrossing-ink ultramarine owning whole fields; promises set as clauses;
   the hero shows the desk (a chat card and a task card on the field); the set-up as a ledger; the work as
   exhibits on one long dark table; the form closes on a signature rule. Schibsted Grotesk only. */

:root {
  --paper: #fbfbfc;
  --paper-2: #f2f3f7;
  --ink: #0f1424;
  --ink-2: #4e5668;
  --ink-3: #7b8398;
  --hair: #dcdfe7;
  --hair-2: #c3c8d4;
  --blue: #1f3fe6;
  --blue-deep: #1733c2;
  --on-blue: #ffffff;
  --on-blue-2: #c9d1fb;
  --on-blue-hair: rgba(255, 255, 255, 0.28);
  --accent: #1733c2;
  --sel: #d6dcfb;
  --err: #b42318;
  --ok: #0f6b3a;
  --table: #0f1424;
  --table-2: #171c2e;
  --table-ink: #f1f2f7;
  --table-ink-2: #a9b0c4;
  --table-hair: #2b3147;
  --table-accent: #8fa4ff;
  --sans: "Schibsted Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(20px, 5vw, 80px);
  --wrap: 1280px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0b0e16; --paper-2: #11151f; --ink: #eef0f6; --ink-2: #a9b0c4; --ink-3: #7b8398; --hair: #252b3b; --hair-2: #343b4f;
  --blue: #1f3fe6; --blue-deep: #3b58f0; --on-blue: #ffffff; --on-blue-2: #c9d1fb; --accent: #8fa4ff; --sel: #243173;
  --err: #ff8a7a; --ok: #6fd39b;
  --table: #06080f; --table-2: #0e111b; --table-hair: #1f2535;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0e16; --paper-2: #11151f; --ink: #eef0f6; --ink-2: #a9b0c4; --ink-3: #7b8398; --hair: #252b3b; --hair-2: #343b4f;
    --blue: #1f3fe6; --blue-deep: #3b58f0; --on-blue: #ffffff; --on-blue-2: #c9d1fb; --accent: #8fa4ff; --sel: #243173;
    --err: #ff8a7a; --ok: #6fd39b;
    --table: #06080f; --table-2: #0e111b; --table-hair: #1f2535;
    color-scheme: dark;
  }
}

/* ---- fonts (self-hosted, variable 400-900) ---------------------------- */
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-grotesk-var-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-grotesk-var-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-grotesk-var-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(/fonts/schibsted-grotesk-var-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--hair-2) var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; font-weight: 400;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  caret-color: var(--blue);
}
::selection { background: var(--sel); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--hair-2); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: text-decoration-color 160ms, color 160ms; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
h3 { letter-spacing: -0.015em; }
p { margin: 0; }
p + p { margin-top: 1em; }
b, strong { font-weight: 600; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -200vw; top: 10px; background: var(--blue); color: var(--on-blue); padding: 0.5rem 0.9rem; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); }

/* ---- the mark --------------------------------------------------------- */
.mark { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.mark-tile { width: 36px; height: 36px; flex: none; fill: var(--blue); stroke: none; }
.mark-tile path { fill: var(--blue); }
.mark-text { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; white-space: nowrap; }
.mark-text small { display: block; font-size: 0.8rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); line-height: 1.3; }

/* ---- letterhead (masthead) ------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--hair); transition: transform 260ms var(--ease); }
.masthead.tucked { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .masthead { transition: none; } .masthead.tucked { transform: none; } }
.masthead .wrap { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 4.5rem; }
.nav { display: flex; gap: clamp(0.8rem, 1.6vw, 2rem); margin-left: auto; flex-wrap: wrap; }
.nav a { position: relative; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.98rem; padding: 0.4rem 0; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 0.6rem; }
.client-link { text-decoration: none; font-weight: 500; font-size: 0.95rem; border: 1px solid var(--ink); border-radius: 3px; padding: 0.5rem 0.95rem; white-space: nowrap; transition: background 160ms, color 160ms; }
.client-link:hover { background: var(--ink); color: var(--paper); }
.theme { width: 2.4rem; height: 2.4rem; border: 1px solid var(--hair-2); border-radius: 3px; background: transparent; display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); transition: border-color 160ms, background 160ms; }
.theme:hover { border-color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .i-moon { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme .i-moon { display: block; }
}

/* ---- buttons ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; border: 1px solid var(--ink); border-radius: 3px; padding: 0.85rem 1.4rem; font: inherit; font-weight: 500; line-height: 1.3; color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; transition: background 180ms, color 180ms, border-color 180ms, transform 180ms var(--ease); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.btn-solid:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--on-blue); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 0.15rem; }
.arrow-link svg { width: 18px; height: 18px; transition: transform 200ms var(--ease); }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---- the opening field ------------------------------------------------- */
.field-wrap { background: radial-gradient(70% 90% at 92% 0%, #3d5eff 0%, rgba(61, 94, 255, 0) 60%), radial-gradient(60% 60% at 0% 110%, #1530b8 0%, rgba(21, 48, 184, 0) 60%), var(--blue);
  color: var(--on-blue); --ink: var(--on-blue); --ink-2: var(--on-blue-2); --hair: var(--on-blue-hair); --hair-2: rgba(255,255,255,0.5); --paper: var(--blue); --sel: rgba(255,255,255,0.25); position: relative; isolation: isolate; overflow: clip; }
.field-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 72px 72px, linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 72px 72px;
  mask-image: radial-gradient(70% 90% at 80% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(70% 90% at 80% 30%, #000 0%, transparent 70%); }
.field-wrap ::selection { background: rgba(255, 255, 255, 0.3); color: #fff; }
.field-wrap :focus-visible { outline-color: #fff; }
.opening { display: grid; grid-template-rows: auto 1fr auto; min-height: min(78vh, 780px); padding-block: clamp(1.2rem, 2.2vw, 1.6rem) 0; position: relative; }
.letterhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; font-size: 0.92rem; color: var(--on-blue-2); line-height: 1.45; }
.letterhead p { white-space: nowrap; }
.letterhead p + p { margin: 0; text-align: right; }
.opening-copy { padding-block: clamp(1.2rem, 3vh, 2.2rem) clamp(1.6rem, 3.5vh, 2.6rem); align-self: center; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; column-gap: clamp(1rem, 2vw, 2rem); align-items: start; }
.opening h1 { grid-column: 1 / 7; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 14ch; }
.opening .lede { grid-column: 1 / 7; margin-top: clamp(1.1rem, 2vw, 1.6rem); max-width: 46ch; font-size: clamp(1.02rem, 1.15vw, 1.12rem); line-height: 1.5; color: var(--on-blue-2); }
.opening .lede strong { color: var(--on-blue); font-weight: 500; }
.opening .lede p + p { margin-top: 0.7em; }
.opening-actions { grid-column: 1 / 7; display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.field-wrap .btn-solid { background: #fff; border-color: #fff; color: var(--blue); }
.field-wrap .btn-solid:hover { background: #e4e9fd; border-color: #e4e9fd; color: #1733c2; }
.field-wrap .btn-ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.field-wrap .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }

/* the desk: the chat becomes a task, the task a preview, the preview a release. Two cards on the field. */
.desk { grid-column: 7 / 13; grid-row: 1 / 4; align-self: center; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(0.8rem, 1.4vw, 1.2rem); align-items: start; margin-right: calc(-0.5 * var(--gutter)); }
.card { --paper: #fbfbfc; --paper-2: #f2f3f7; --ink: #0f1424; --ink-2: #4e5668; --ink-3: #7b8398; --hair: #dcdfe7; --hair-2: #c3c8d4; --accent: #1733c2; --sel: #d6dcfb;
  background: var(--paper); color: var(--ink); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 40px 70px -40px rgba(4, 10, 48, 0.7), 0 10px 22px -12px rgba(4, 10, 48, 0.35); padding: 0.9rem 1rem 1rem; font-size: 0.9rem; line-height: 1.4; display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
:root[data-theme="dark"] .card { --paper: #11151f; --paper-2: #181d2a; --ink: #eef0f6; --ink-2: #a9b0c4; --hair: #2a3042; --hair-2: #3a4160; --accent: #8fa4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card { --paper: #11151f; --paper-2: #181d2a; --ink: #eef0f6; --ink-2: #a9b0c4; --hair: #2a3042; --hair-2: #3a4160; --accent: #8fa4ff; } }
.card .btn { color: var(--ink); border-color: var(--ink); }
.card .btn-solid { background: var(--blue); border-color: var(--blue); color: #fff; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--hair); }
.card-title { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; letter-spacing: -0.01em; font-size: 0.95rem; }
.card-title svg { width: 18px; height: 18px; color: var(--accent); stroke-width: 1.5; }
.chip { font-size: 0.72rem; font-weight: 500; color: var(--ink-2); border: 1px solid var(--hair-2); border-radius: 3px; padding: 0.18rem 0.45rem; white-space: nowrap; line-height: 1.2; }
.chip-live { color: var(--accent); border-color: currentColor; }
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.msg { max-width: 90%; padding: 0.5rem 0.7rem 0.55rem; border-radius: 6px; font-size: 0.86rem; line-height: 1.4; }
.msg small { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 0.15rem; opacity: 0.75; }
.msg.you { margin-left: auto; background: var(--blue); color: #fff; border-bottom-right-radius: 2px; }
.msg.agent { background: var(--paper-2); border: 1px solid var(--hair); border-bottom-left-radius: 2px; }
.composer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border: 1px solid var(--hair-2); border-radius: 4px; padding: 0.5rem 0.7rem; color: var(--ink-3); font-size: 0.84rem; }
.composer svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.task-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin-top: -0.2rem; }
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.3rem; font-size: 0.7rem; line-height: 1.2; color: var(--ink-2); }
.rail li { position: relative; padding-top: 0.7rem; }
.rail li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--hair-2); border-radius: 2px; }
.rail li.done::before, .rail li.now::before { background: var(--blue); }
.rail li.now { color: var(--ink); font-weight: 600; }
.rail li.now::after { content: ""; position: absolute; left: 0; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--paper); }
.task-shot { margin: 0; position: relative; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.task-shot .wire { display: block; width: 100%; height: auto; stroke: none; fill: none; }
.task-shot figcaption { position: absolute; right: 6px; bottom: 5px; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.02em; color: var(--ink-3); }
.wire .w-bar { fill: var(--hair); }
.wire .w-dot { fill: var(--hair-2); }
.wire .w-side { fill: var(--paper); }
.wire .w-line { fill: var(--hair-2); }
.wire .w-head { fill: var(--ink-3); }
.wire .w-pill { fill: var(--blue); }
.wire .w-row { fill: var(--paper); stroke: var(--hair); stroke-width: 1; }
.wire .w-row-on { stroke: var(--blue); }
.wire .w-tick { fill: var(--hair); }
.wire .w-on { fill: var(--blue); }
.wire .w-tick-on { fill: var(--blue); opacity: 0.35; }
.task-note { color: var(--ink-2); font-size: 0.84rem; }
.task-actions { display: flex; gap: 0.5rem; }
.btn-mini { padding: 0.5rem 0.8rem; font-size: 0.84rem; cursor: default; flex: 1 1 0; }
.btn-mini:hover { background: transparent; color: var(--ink); }
.btn-mini.btn-solid:hover { background: var(--blue); color: #fff; }
.card .btn:active { transform: none; }
.clauses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--on-blue-hair); padding-block: 1.3rem clamp(1.6rem, 3vw, 2.4rem); position: relative; z-index: 1; }
.clauses li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.1rem 0; align-items: baseline; font-weight: 500; font-size: 1.05rem; line-height: 1.3; padding-right: 1rem; }
.clauses li + li { border-left: 1px solid var(--on-blue-hair); padding-left: clamp(1rem, 2vw, 1.6rem); }
.clauses .n { font-size: 0.85rem; font-weight: 500; color: var(--on-blue-2); grid-row: span 2; align-self: start; padding-top: 0.2rem; }
.clauses small { display: block; grid-column: 2; font-size: 0.9rem; font-weight: 400; color: var(--on-blue-2); margin-top: 0.2rem; }

@media (min-width: 901px) and (max-height: 780px) {
  .letterhead { display: none; }
  .opening { min-height: 0; padding-top: 1.2rem; }
  .opening-copy { padding-block: 0.6rem 1.6rem; }
  .opening h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); }
  .opening .lede { font-size: 1rem; margin-top: 1rem; max-width: 44ch; }
  .opening .lede p + p { margin-top: 0.5em; }
  .opening-actions { margin-top: 1.3rem; }
  .card { font-size: 0.86rem; }
}

/* entrance: the letter's lines rise in once */
.rise > * { animation: rise 760ms var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rule-draw { animation: draw 1100ms var(--ease) 420ms both; }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .rise > *, .rule-draw { animation: none; } }

/* ---- sections ---------------------------------------------------------- */
.section { padding-block: clamp(4rem, 9vh, 7.5rem); }
.section + .section { padding-top: 0; }
.section-head { border-top: 2px solid var(--ink); padding-top: 1.2rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem clamp(2rem, 4vw, 4rem); align-items: start; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.02; }
.section-head p { color: var(--ink-2); max-width: 44ch; font-size: 1.1rem; padding-top: 0.45rem; }
.section-head p a { color: var(--ink); }
.section-head .lede { color: var(--ink); max-width: 50ch; font-size: clamp(1.1rem, 1.35vw, 1.28rem); line-height: 1.5; }

/* ---- the table: work as exhibits ------------------------------------- */
.table { --paper: var(--table); --paper-2: var(--table-2); --ink: var(--table-ink); --ink-2: var(--table-ink-2); --hair: var(--table-hair); --hair-2: #3a4160; --accent: var(--table-accent);
  background: var(--paper); color: var(--ink); padding-block: clamp(4rem, 9vh, 7.5rem); position: relative; border-block: 1px solid var(--table-hair); }
.table .section-head { border-top-color: rgba(255, 255, 255, 0.5); }
/* why it works this way: five numbered reasons on the table */
.reasons { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; counter-reset: reason; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--hair); }
.reasons li { counter-increment: reason; grid-column: span 4; padding: 1.6rem 1rem 1.8rem 0; border-bottom: 1px solid var(--hair); }
.reasons li::before { content: counter(reason, decimal-leading-zero); display: block; font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 1.4rem; }
.reasons li:nth-child(n+4) { grid-column: span 6; }
.reasons h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.15; letter-spacing: -0.02em; max-width: 18ch; }
.reasons p { margin-top: 0.8rem; color: var(--ink-2); font-size: 1.02rem; max-width: 40ch; }

/* what you could ask for: requests in the client's words */
.asks { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 3vw, 3rem); }
.asks li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: start; }
.asks .who { font-size: 0.85rem; font-weight: 500; color: var(--accent); padding-top: 0.95rem; }
.asks p { position: relative; background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px 8px 8px 2px; padding: 0.85rem 1.1rem 0.9rem; font-size: clamp(1.02rem, 1.2vw, 1.12rem); line-height: 1.45; letter-spacing: -0.005em; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- steps ----------------------------------------------------------------- */
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem); border-top: 1px solid var(--hair); }
.steps li { counter-increment: step; padding: 1.4rem 1rem 1.6rem 0; position: relative; }
.steps li + li { border-left: 1px solid var(--hair); padding-left: clamp(1rem, 2vw, 1.6rem); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 0.9rem; font-weight: 500; color: var(--accent); margin-bottom: 1.6rem; }
.steps h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); line-height: 1.2; }
.steps p { margin-top: 0.7rem; color: var(--ink-2); font-size: 1rem; max-width: 30ch; }
.after-steps { margin-top: 2rem; }
/* six steps: three across, two rows */
.steps-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-6 li:nth-child(4) { border-left: 0; padding-left: 0; }
.steps-6 li:nth-child(n+4) { border-top: 1px solid var(--hair); }
.steps-6 p { max-width: 36ch; }

/* ---- the plan ---------------------------------------------------------------- */
.plan-terms { list-style: none; margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; padding: 1.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(1rem, 2vw, 2rem); border-top: 2px solid var(--ink); font-weight: 500; font-size: 1.05rem; }
.plan-terms-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-terms li { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; }
.plan-terms .n { font-size: 0.85rem; font-weight: 500; color: var(--accent); }

/* ---- clauses and the ledger ---------------------------------------------------- */
.terms { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.terms li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--hair); font-size: 1.08rem; line-height: 1.45; }
.terms li .n { font-size: 0.85rem; color: var(--accent); font-weight: 500; padding-top: 0.25rem; }
.terms li b { font-weight: 500; }
.ledger { margin-top: clamp(2rem, 4vw, 3rem); }
.ledger li { grid-template-columns: 3rem minmax(0, 4fr) minmax(0, 8fr); gap: 0.3rem clamp(1rem, 2vw, 2rem); align-items: start; }
.ledger li b { font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.4rem); letter-spacing: -0.015em; line-height: 1.2; }
.ledger li > span:last-child { color: var(--ink-2); font-size: 1.02rem; max-width: 56ch; }

/* ---- questions ----------------------------------------------------------- */
.faq-list { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--hair); max-width: 78ch; }
.faq-list details { border-bottom: 1px solid var(--hair); }
.faq-list summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 0; font-size: clamp(1.15rem, 1.4vw, 1.3rem); font-weight: 500; letter-spacing: -0.01em; transition: color 160ms; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .n { font-size: 0.85rem; color: var(--accent); }
.faq-list summary::after { content: ""; width: 16px; height: 16px; background: linear-gradient(var(--ink), var(--ink)) center / 16px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 16px no-repeat; transition: transform 240ms var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { padding: 0 0 1.3rem 4rem; max-width: 64ch; color: var(--ink-2); }
.faq-list details p a { color: var(--ink); }

/* ---- contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem clamp(2rem, 5vw, 5rem); margin-top: clamp(2rem, 4vw, 3rem); }
.field { display: grid; gap: 0.3rem; margin-top: 1.4rem; }
.field > span { font-size: 0.86rem; color: var(--ink-2); font-weight: 500; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink-3); border-radius: 0; padding: 0.6rem 0; width: 100%; transition: border-color 160ms, box-shadow 160ms; }
.field textarea { resize: vertical; min-height: 6.5rem; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--blue); box-shadow: 0 1px 0 0 var(--blue); }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--err); box-shadow: 0 1px 0 0 var(--err); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2rem; cursor: pointer; }
.field select option { color: #0f1424; background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(1.5rem, 3vw, 3rem); }
.hp { position: absolute; left: -200vw; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--ink); }
.form-hint { color: var(--ink-2); font-size: 0.9rem; max-width: 36ch; }
.form-hint a { color: var(--ink); }
.form-msg { margin-top: 1rem; min-height: 1.3em; color: var(--ink-2); max-width: 60ch; }
.form-msg.ok { color: var(--ok); font-weight: 500; }
.form-msg.err { color: var(--err); font-weight: 500; }
.direct { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.direct h3 { font-size: 1.3rem; }
.direct a.line { display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0; border-bottom: 1px solid var(--hair); text-decoration: none; font-weight: 500; transition: color 160ms; }
.direct a.line:hover { color: var(--accent); }
.direct a.line svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.direct dl { margin: 1.4rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.4rem; font-size: 0.98rem; }
.direct dt { color: var(--ink-2); }
.direct dd { margin: 0; }

/* ---- footer -------------------------------------------------------------- */
.foot { border-top: 2px solid var(--ink); margin-top: clamp(1rem, 4vh, 3rem); padding-block: 2.5rem 3rem; font-size: 0.95rem; color: var(--ink-2); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 7fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.foot .mark { align-self: start; }
.foot .colophon { grid-column: 1 / -1; color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 0.45rem; }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--hair-2); transition: border-color 160ms; }
.foot a:hover { border-bottom-color: var(--ink); }
.foot .note { grid-column: 1 / -1; margin-top: 0.5rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 1.2rem; }
.foot .top-link { display: inline-flex; align-items: center; gap: 0.35rem; border: 0; }
.foot .top-link svg { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.foot .top-link:hover svg { transform: translateY(-2px); }
.foot .foot-time { white-space: nowrap; }

/* ---- small pages ------------------------------------------------------------- */
.page { min-height: 70vh; padding-block: clamp(3.5rem, 9vh, 7rem); }
.page h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1; max-width: 18ch; }
.page .lede { margin-top: 1.4rem; max-width: 58ch; font-size: clamp(1.08rem, 1.35vw, 1.3rem); line-height: 1.5; color: var(--ink-2); }
.page .lede a { color: var(--ink); }
.page .terms { margin-top: 2rem; max-width: 70ch; }
.page .page-h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1rem; border-top: 2px solid var(--ink); max-width: 70ch; }
.page .page-lede { margin-top: 1rem; font-size: 1.05rem; max-width: 62ch; }
.page .steps { grid-template-columns: 1fr; max-width: 70ch; border-top: 0; margin-top: 1rem; }
.page .steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; border-top: 1px solid var(--hair); border-left: 0; padding: 1.1rem 0; }
.page .steps li::before { margin: 0; padding-top: 0.3rem; }
.page .steps p { grid-column: 2; max-width: 60ch; margin-top: 0.4rem; }
.page .steps h3 { grid-column: 2; }
.page-actions { margin-top: 2.5rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.legal .terms li { font-size: 1.02rem; }

/* ---- responsive -------------------------------------------------------------- */
@media (max-width: 1100px) {
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .steps-6 li:nth-child(4) { border-left: 1px solid var(--hair); padding-left: clamp(1rem, 2vw, 1.6rem); }
  .steps-6 li:nth-child(5) { border-left: 0; padding-left: 0; }
  .steps p { max-width: 40ch; }
  .opening-copy { display: block; }
  .opening .lede { max-width: 56ch; }
  .desk { margin: 2.5rem auto 0; max-width: 680px; }
}
@media (max-width: 900px) {
  .masthead .wrap { flex-wrap: wrap; row-gap: 0.5rem; padding-block: 0.7rem; min-height: 0; }
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
  .head-actions { margin-left: auto; }
  .letterhead p + p { text-align: left; }
  .opening-copy { display: block; }
  .opening .lede { margin-top: 1.4rem; max-width: 56ch; }
  .clauses { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .clauses li { padding-block: 0.6rem; }
  .clauses li + li { border-left: 0; padding-left: 0; }
  .clauses li:nth-child(2) { border-left: 1px solid var(--on-blue-hair); padding-left: 1.5rem; }
  .clauses li:nth-child(4) { border-left: 1px solid var(--on-blue-hair); padding-left: 1.5rem; }
  .clauses li:nth-child(n+3) { border-top: 1px solid var(--on-blue-hair); }
  .section-head { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger li { grid-template-columns: 3rem 1fr; }
  .ledger li > span:last-child { grid-column: 2; }
  .asks { grid-template-columns: 1fr; }
  .reasons li, .reasons li:nth-child(n+4) { grid-column: span 6; }
  .reasons li:nth-child(5) { grid-column: 1 / -1; }
  .plan-terms, .plan-terms-3 { grid-template-columns: 1fr; gap: 0.5rem 0; }
}
@media (max-width: 600px) {
  .masthead { position: static; }
  .masthead .wrap { gap: 0.6rem; }
  .mark-tile { width: 30px; height: 30px; }
  .mark-text { font-size: 1.02rem; }
  .mark-text small { display: none; }
  .client-link { padding: 0.4rem 0.7rem; font-size: 0.9rem; }
  .theme { width: 2.1rem; height: 2.1rem; }
  .nav { gap: 0.2rem 1rem; font-size: 0.92rem; }
  .nav a { font-size: 0.92rem; }
  .letterhead { display: none; }
  .opening { min-height: 0; padding-top: 2.2rem; }
  .opening-copy { padding-block: 0 1.5rem; display: block; }
  .opening h1 { font-size: 2.7rem; max-width: 11ch; }
  .opening .lede { font-size: 1.05rem; margin-top: 1.2rem; max-width: 100%; }
  .opening-actions { margin-top: 1.4rem; }
  .desk { margin: 2rem 0 1rem; max-width: none; grid-template-columns: 1fr; gap: 0.8rem; }
  .card { padding: 0.8rem 0.85rem 0.9rem; }
  .field-wrap::before { background-size: 48px 48px, 48px 48px; }
  .opening-actions .btn { flex: 1 1 auto; }
  .clauses { grid-template-columns: 1fr; padding-block: 0.4rem 1.6rem; }
  .clauses li { padding: 0.75rem 0; font-size: 1rem; }
  .clauses li:nth-child(2), .clauses li:nth-child(4) { border-left: 0; padding-left: 0; }
  .clauses li + li { border-top: 1px solid var(--on-blue-hair); }
  .section { padding-block: 3.5rem; }
  .asks li { grid-template-columns: 1fr; gap: 0.3rem; }
  .asks .who { padding-top: 0; }
  .reasons li, .reasons li:nth-child(n+4), .reasons li:nth-child(5) { grid-column: 1 / -1; padding: 1.3rem 0 1.5rem; }
  .reasons li::before { margin-bottom: 0.6rem; }
  .steps, .steps-6 { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps-6 li:nth-child(4) { border-left: 0; padding-left: 0; }
  .steps li + li { border-top: 1px solid var(--hair); }
  .steps li::before { margin-bottom: 0.6rem; }
  .steps p, .steps-6 p { max-width: 60ch; }
  .ledger li { gap: 0.2rem 0.8rem; }
  .faq-list summary { grid-template-columns: 2.4rem 1fr auto; }
  .faq-list details p { padding-left: 3.4rem; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .foot .wrap { grid-template-columns: 1fr; }
  .foot .note { flex-direction: column; gap: 0.6rem; }
  .page-actions .btn { width: 100%; }
}

/* audit fixes 2026-10-14 */
section[id], [id="main"] { scroll-margin-top: 5.5rem; }
@media (max-width: 600px) { .foot li a { display: inline-block; padding: 0.2rem 0; } .foot li + li { margin-top: 0.3rem; } }

/* ---- v7: the language switcher (a plain select, no flags) ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lang { display: inline-flex; position: relative; }
.lang select { appearance: none; -webkit-appearance: none; font: inherit; font-weight: 500; font-size: 0.9rem; color: var(--ink); background: transparent; border: 1px solid var(--hair-2); border-radius: 3px; height: 2.4rem; padding: 0 1.7rem 0 0.7rem; cursor: pointer; max-width: 9.5rem; transition: border-color 160ms; }
.lang select:hover { border-color: var(--ink); }
.lang::after { content: ""; position: absolute; right: 0.7rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.lang select option { color: #0f1424; background: #fff; }
@media (max-width: 600px) { .lang select { height: 2.1rem; font-size: 0.85rem; padding: 0 1.5rem 0 0.5rem; max-width: 7rem; } .lang::after { right: 0.55rem; } }

/* ---- v7: the desk is a scene: a request becomes a confirmed change in the client's system (scene.js) ---- */
.desk.demo { display: block; }
.scene { position: relative; }
.sc-desk { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(0.8rem, 1.4vw, 1.2rem); align-items: start; transform-origin: 50% 50%; will-change: transform, opacity; }
.scene .card, .scene .card * { transition: none !important; animation: none !important; }
.card.chat { position: relative; min-height: 22rem; }
.thread > li { will-change: transform, opacity; }
.msg.typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.7rem 0.8rem; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.msg.confirm { max-width: 100%; background: var(--paper); border: 1px solid var(--blue); border-bottom-left-radius: 6px; padding: 0.6rem 0.75rem 0.65rem; }
.msg.confirm small { color: var(--accent); opacity: 1; }
.msg.confirm b { display: block; font-size: 0.95rem; letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.msg.confirm .line { display: block; color: var(--ink-2); font-size: 0.82rem; }
.msg.confirm .line.caption { color: var(--ink); margin-bottom: 0.15rem; }
.confirm-actions { display: flex; gap: 0.4rem; margin-top: 0.55rem; align-items: center; }
.confirm-actions .btn-mini { flex: 0 1 auto; padding: 0.4rem 0.75rem; font-size: 0.8rem; transform-origin: 50% 50%; }
.confirm-actions .btn-mini.press { background: var(--blue-deep); border-color: var(--blue-deep); }
.confirm-actions .confirmed { display: none; font-size: 0.8rem; font-weight: 600; color: var(--accent); }
.confirm-actions .confirmed::before { content: ""; display: inline-block; width: 7px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 0 0.5rem 0 0.15rem; }
.is-confirmed .confirm-actions .btn-mini { display: none; }
.is-confirmed .confirm-actions .confirmed { display: inline-flex; align-items: center; }
.pointer { position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.1rem; fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; opacity: 0; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 3px rgba(4, 10, 48, 0.35)); }
.composer [data-el="composer"].typing { color: var(--ink); }
.composer [data-el="composer"].typing::after { content: ""; display: inline-block; width: 1px; height: 1em; background: var(--ink); vertical-align: -0.15em; margin-left: 1px; }
.card.system { gap: 0.6rem; }
.sys-tabs { display: flex; gap: 1rem; font-size: 0.8rem; font-weight: 500; color: var(--ink-3); border-bottom: 1px solid var(--hair); }
.sys-tabs span { padding: 0.1rem 0 0.5rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sys-tabs span.on { color: var(--ink); border-color: var(--blue); }
.sys-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; line-height: 1.3; }
.sys-table th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.68rem; letter-spacing: 0.02em; padding: 0 0.4rem 0.35rem 0.3rem; border-bottom: 1px solid var(--hair); }
.sys-table td { padding: 0.5rem 0.4rem 0.5rem 0.3rem; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; }
.sys-table td:first-child { color: var(--ink); font-weight: 500; }
.sys-table tr.hl td { background: var(--sel); }
.sys-table tr.hl td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.sys-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.3rem; }
.sys-week li { min-height: 5.6rem; border: 1px solid var(--hair); border-radius: 4px; padding: 0.3rem; font-size: 0.7rem; display: flex; flex-direction: column; gap: 0.3rem; }
.sys-week small { color: var(--ink-3); font-weight: 500; font-size: 0.66rem; }
.sys-week .tile { display: block; border-left: 2px solid var(--hair-2); padding: 0.2rem 0.3rem; color: var(--ink-2); line-height: 1.25; border-radius: 0 3px 3px 0; background: var(--paper-2); }
.sys-week .tile.hl { border-left-color: var(--blue); background: var(--sel); color: var(--ink); }
/* the ad: the scene fills the viewport; the type sits in the field */
.scene.ad { position: fixed; inset: 0; overflow: hidden; color: #fff; --pad: 56px; --top: 56px; --bottom: 56px;
  background: radial-gradient(70% 90% at 92% 0%, #3d5eff 0%, rgba(61, 94, 255, 0) 60%), radial-gradient(60% 60% at 0% 110%, #1530b8 0%, rgba(21, 48, 184, 0) 60%), #1f3fe6; }
.scene.ad .sc-desk { position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bottom); align-content: center; }
.sc-hook, .sc-payoff, .sc-cta { position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bottom); display: grid; place-content: center; text-align: center; will-change: transform, opacity; }
.sc-hook h1 { margin: 0; font-size: 4.4rem; line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; max-width: 12ch; }
.sc-payoff p { margin: 0; font-size: 2.6rem; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; max-width: 18ch; color: #fff; }
.sc-cta { top: 50%; bottom: var(--bottom); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 0.6rem; padding-top: 4.5rem; }
.sc-mark { display: inline-block; width: 3.2rem; height: 3.2rem; }
.sc-mark svg { width: 100%; height: 100%; display: block; }
.sc-mark path { fill: #fff; }
.sc-cta b { font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em; }
.sc-cta small { font-size: 1.15rem; color: #c9d1fb; }
.sc-caption { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(var(--bottom) * 0.55); margin: 0; text-align: center; font-size: 1.25rem; line-height: 1.3; color: #fff; font-weight: 500; }
.sc-corner { position: absolute; left: var(--pad); top: calc(var(--top) * 0.45); display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; opacity: 0; }
.sc-corner .sc-mark { width: 2rem; height: 2rem; }
.sc-corner span:last-child { font-weight: 400; color: #c9d1fb; }
/* layouts: v = 1080x1920 vertical (platform safe zones), s = square, w = 1920x1080, og = 1200x630 */
.sc-v { --pad: 80px; --top: 230px; --bottom: 300px; }
.sc-v .sc-desk { grid-template-columns: 1fr; gap: 1.2rem; }
.sc-v .card.chat { min-height: 15rem; }
.sc-v .sc-hook h1 { font-size: 4.2rem; max-width: 10ch; }
.sc-v .sc-caption { bottom: 190px; font-size: 1.5rem; }
.sc-s { --pad: 64px; --top: 110px; --bottom: 110px; }
.sc-w { --pad: 280px; --top: 90px; --bottom: 90px; }
.sc-w .sc-hook h1 { font-size: 5.4rem; }
.sc-og { --pad: 60px; --top: 96px; --bottom: 44px; }
.scene.banner { position: fixed; inset: 0; overflow: hidden; color: #fff;
  background: radial-gradient(70% 90% at 92% 0%, #3d5eff 0%, rgba(61, 94, 255, 0) 60%), radial-gradient(60% 60% at 0% 110%, #1530b8 0%, rgba(21, 48, 184, 0) 60%), #1f3fe6; }
.scene.banner .sc-desk { position: absolute; left: var(--pad); right: var(--pad); top: var(--top); bottom: var(--bottom); align-content: center; }
.scene.banner .sc-corner { opacity: 1; }
@media (max-width: 600px) { .sc-desk { grid-template-columns: 1fr; gap: 0.8rem; } .card.chat { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .scene .pointer { display: none; } }
:root[data-theme="dark"] .card { --sel: #243173; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card { --sel: #243173; } }

/* ---- "Tell us about your project" (project.html, project.js) ---- */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pc { max-width: 46rem; padding-top: clamp(1.4rem, 4vw, 3rem); padding-bottom: 2.5rem; }
.pc-head h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.08; }
.pc-head p { margin: 0.7rem 0 0; color: var(--ink-2); max-width: 40ch; }
.pc-gate { margin-top: 1.8rem; }
.pc-google { gap: 0.75rem; background: var(--paper); border-color: var(--hair-2); font-weight: 500; }
.pc-google:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-3); }
.pc-google svg { width: 20px; height: 20px; stroke: none; }
.pc-google:hover svg { transform: none; }
.pc-why { margin: 0.8rem 0 0; color: var(--ink-2); font-size: 0.95rem; max-width: 44ch; }
.pc-err { margin: 0.6rem 0 0; color: #c0392b; font-size: 0.95rem; min-height: 0; }
.pc-err:empty { display: none; }
.pc-chat { margin-top: 1.4rem; }
.pc-who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; margin: 0 0 0.8rem; font-size: 0.86rem; color: var(--ink-3); }
.pc-who-actions { display: inline-flex; gap: 1rem; }
.pc-link { font: inherit; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hair-2); text-underline-offset: 0.2em; }
.pc-link:hover { color: var(--ink); }
.pc-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.pc-msg { max-width: 88%; padding: 0.65rem 0.9rem; border-radius: 10px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pc-msg.bot { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--hair); border-bottom-left-radius: 3px; }
.pc-msg.me { align-self: flex-end; background: var(--blue); color: var(--on-blue); border-bottom-right-radius: 3px; }
.pc-msg.pic { padding: 0.3rem; background: var(--paper-2); border: 1px solid var(--hair); }
.pc-msg.pic img { display: block; max-width: min(15rem, 100%); max-height: 15rem; border-radius: 7px; }
.pc-msg .dots { display: inline-flex; gap: 4px; padding: 0.3rem 0.1rem; }
.pc-msg .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: pc-dot 1.1s infinite ease-in-out; }
.pc-msg .dots i:nth-child(2) { animation-delay: 0.15s; } .pc-msg .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes pc-dot { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pc-msg .dots i { animation: none; opacity: 0.6; } }
.pc-summary { margin-top: 1.2rem; border: 1px solid var(--hair-2); border-left: 3px solid var(--blue); border-radius: 6px; padding: 1rem 1.1rem 1.1rem; background: var(--paper); scroll-margin-top: 5rem; }
.pc-summary h2 { font-size: 1.15rem; }
.pc-summary ul { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.pc-summary li + li { margin-top: 0.35rem; }
.pc-hint { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--ink-2); }
.pc-phone { display: grid; gap: 0.3rem; margin-top: 0.9rem; font-size: 0.9rem; color: var(--ink-2); }
.pc-phone input { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--hair-2); border-radius: 4px; padding: 0.6rem 0.75rem; max-width: 20rem; }
.pc-confirm { margin-top: 1rem; width: 100%; }
@media (min-width: 560px) { .pc-confirm { width: auto; } }
.pc-composer { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: flex-end; gap: 0.5rem; margin-top: 1rem; padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--hair); }
.pc-composer textarea { flex: 1; min-width: 0; font: inherit; line-height: 1.4; color: var(--ink); background: var(--paper); border: 1px solid var(--hair-2); border-radius: 8px; padding: 0.65rem 0.8rem; resize: none; max-height: 160px; }
.pc-composer textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-composer textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.pc-photo, .pc-send { flex: none; width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; border-radius: 8px; cursor: pointer; }
.pc-photo { border: 1px solid var(--hair-2); color: var(--ink-2); position: relative; }
.pc-photo:hover { color: var(--ink); border-color: var(--ink-3); }
.pc-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.pc-photo.off { pointer-events: none; opacity: 0.5; }
.pc-photo[hidden] { display: none; }
.pc-send { border: 0; background: var(--blue); color: var(--on-blue); }
.pc-send:hover { background: var(--blue-deep); }
.pc-send[disabled] { opacity: 0.55; cursor: progress; }
.pc-photo svg, .pc-send svg { width: 20px; height: 20px; }
.pc-done { margin-top: 1.8rem; }
.pc-done h2 { font-size: 1.5rem; }
.pc-done p { margin: 0.7rem 0 0; color: var(--ink-2); max-width: 44ch; }
.pc-done .btn { margin-top: 0.8rem; }
.pc-privacy { margin: 1.4rem 0 0; font-size: 0.82rem; color: var(--ink-3); max-width: 60ch; }
/* ---- home page: the small chat input in the hero; the chat opens as a panel (.pc-card.pc-floating) ---- */
[data-pc] [hidden], .pc-card[hidden] { display: none !important; }
.pc-card { display: flex; flex-direction: column; gap: 0; height: clamp(26rem, 62vh, 34rem); min-height: 0; padding-bottom: 0.7rem; }
.pc-card .card-head h2.card-title { margin: 0; font-size: 0.95rem; }
.pc-card .pc-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0.8rem 0.1rem 0.6rem; }
.pc-card .pc-log { gap: 0.45rem; }
.pc-card .pc-msg { font-size: 0.88rem; padding: 0.5rem 0.7rem 0.55rem; border-radius: 8px; max-width: 92%; }
.pc-card .pc-msg.me { background: var(--blue); color: #fff; }
.pc-card .pc-gate { margin-top: 0.8rem; }
.pc-card .pc-why { font-size: 0.84rem; margin: 0 0 0.6rem; }
.pc-card .pc-google { width: 100%; padding: 0.7rem 1rem; background: var(--paper); color: var(--ink); border-color: var(--hair-2); }
.pc-card .pc-summary { margin-top: 0.8rem; padding: 0.8rem 0.85rem; scroll-margin-top: 0; }
.pc-card .pc-summary h3, .pc-card .pc-done h3 { font-size: 1rem; margin: 0; letter-spacing: -0.01em; }
.pc-card .pc-summary ul { font-size: 0.86rem; }
.pc-card .pc-hint, .pc-card .pc-phone { font-size: 0.82rem; }
.pc-card .pc-confirm { width: 100%; }
.pc-card .pc-done { padding: 0.6rem 0.2rem; }
.pc-card .pc-done p { font-size: 0.9rem; color: var(--ink-2); margin: 0.5rem 0 0; }
.pc-card .pc-err { font-size: 0.84rem; margin: 0.2rem 0 0.3rem; }
.pc-card .pc-composer { position: static; margin: 0; padding: 0.55rem 0 0; background: none; gap: 0.4rem; }
.pc-card .pc-composer textarea { font-size: 0.92rem; padding: 0.55rem 0.7rem; border-radius: 6px; background: var(--paper); }
.pc-card .pc-composer textarea:focus { outline: 2px solid var(--blue); }
.pc-card .pc-photo, .pc-card .pc-send { width: 2.45rem; height: 2.45rem; border-radius: 6px; }
.pc-card .pc-send { background: var(--blue); color: #fff; }
.pc-card .pc-who { font-size: 0.74rem; margin: 0.45rem 0 0; }
.pc-card .pc-privacy { font-size: 0.7rem; line-height: 1.35; margin: 0.45rem 0 0; color: var(--ink-3); }
.pc-card .pc-privacy a { color: inherit; }
.pc-x { margin-left: auto; width: 2.2rem; height: 2.2rem; display: inline-grid; place-items: center; border: 1px solid var(--hair-2); border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.pc-x svg { width: 16px; height: 16px; }
.pc-x[hidden] { display: none; }
/* the floating button once the hero is out of view */
.pc-fab { position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: calc(clamp(16px, 2.5vw, 28px) + env(safe-area-inset-bottom)); z-index: 40; width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(4, 10, 48, 0.6), 0 4px 10px -4px rgba(4, 10, 48, 0.35); transition: transform 200ms var(--ease), background 160ms; }
.pc-fab:hover { background: var(--blue-deep); transform: translateY(-2px); }
.pc-fab svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.7; }
.pc-fab[hidden] { display: none; }
/* the panel the floating button opens (the same card, moved to <body>) */
.pc-card.pc-floating { position: fixed; z-index: 50; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); width: min(25rem, calc(100vw - 32px)); height: min(38rem, calc(100vh - 32px)); animation: pc-pop 220ms var(--ease) both; }
@keyframes pc-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc-card.pc-floating { animation: none; } .pc-fab { transition: none; } }
@media (max-width: 600px) {
  .pc-card.pc-floating { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; padding: calc(0.8rem + env(safe-area-inset-top)) 1rem calc(0.8rem + env(safe-area-inset-bottom)); }
  html.pc-open { overflow: hidden; }
  .pc-card .pc-composer textarea { font-size: 16px; }
}
.hero-ask-wrap { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
.hero-ask { display: flex; align-items: center; gap: 0.4rem; width: min(100%, 31rem); background: #fff; border-radius: 6px; padding: 0.35rem 0.35rem 0.35rem 1.05rem; box-shadow: 0 22px 44px -22px rgba(4, 10, 48, 0.75); }
.hero-ask:focus-within { outline: 2px solid #fff; outline-offset: 3px; }
.hero-ask input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.05rem; color: #0f1424; padding: 0.65rem 0; }
.hero-ask input::placeholder { color: #4e5668; opacity: 1; }
.hero-ask input:focus { outline: none; }
.hero-ask button { flex: none; width: 2.95rem; height: 2.95rem; border: 0; border-radius: 5px; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background 160ms; }
.hero-ask button:hover { background: var(--blue-deep); }
.hero-ask button svg { width: 20px; height: 20px; }
.hero-how { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--on-blue-2); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 0.25em; }
.hero-how:hover { color: #fff; text-decoration-color: #fff; }
.hero-how svg { width: 16px; height: 16px; }
@media (max-width: 600px) { .hero-ask { width: 100%; } .hero-ask input { font-size: 16px; } }

/* the ways in without signing in (under "Continue with Google"): WhatsApp and a two-field form */
.pc-alt { margin-top: 1rem; }
.pc-or { display: flex; align-items: center; gap: 0.8rem; margin: 0 0 0.8rem; font-size: 0.86rem; color: var(--ink-2); }
.pc-or::before, .pc-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.pc-wa { width: 100%; gap: 0.6rem; border-color: var(--ink); font-weight: 500; }
.pc-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pc-wa:hover svg { transform: none; }
.pc-quick { margin-top: 1.1rem; display: grid; gap: 0.7rem; }
.pc-quick-p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.pc-f { display: grid; gap: 0.25rem; font-size: 0.84rem; font-weight: 500; color: var(--ink-2); }
.pc-f input { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--paper); border: 1px solid var(--hair-2); border-radius: 6px; padding: 0.6rem 0.75rem; width: 100%; }
.pc-f input:focus-visible { outline: 2px solid var(--blue); outline-offset: -1px; border-color: transparent; }
.pc-quick .btn { justify-self: start; }
.pc-quick .form-msg { margin: 0; min-height: 0; font-size: 0.92rem; }
.pc-quick .form-msg:empty { display: none; }
.pc-quick-hint { margin: 0; font-size: 0.8rem; color: var(--ink-3); }
.pc-quick-hint a { color: inherit; }
.pc-card .pc-wa { padding: 0.7rem 1rem; color: var(--ink); }
.pc-card .pc-quick .btn { width: 100%; padding: 0.7rem 1rem; }
.pc-card .pc-f input { font-size: 0.92rem; padding: 0.5rem 0.65rem; }
@media (max-width: 600px) { .pc-f input, .pc-card .pc-f input { font-size: 16px; } }
/* Instagram and Facebook in-app browsers: Google refuses sign-in there, so only WhatsApp and the form show */
html.inapp .pc-google, html.inapp .pc-why, html.inapp .pc-or, html.inapp .pc-privacy { display: none !important; }
html.inapp .pc-alt { margin-top: 0.4rem; }
