/* Algoriit — site layer on top of base.css.
   Direction: "The product performs" · type General Sans · palette Graphite and orange. */

:root {
  --bg: #18191b;
  --surface: #222427;
  --surface-2: #2b2d31;
  --ink: #eff0f1;
  --muted: #9c9ea3;
  --accent: #ff4a1f;
  --accent-press: #e63d14;
  --accent-ink: #18191b;
  --field: #eff0f1;
  --field-ink: #18191b;
  --field-muted: #50535a;
  --field-surface: #e1e3e5;
  --green: #0f3b2d;
  --green-deep: #0a2c21;
  --green-ink: #eaf2ed;
  --green-muted: #b4c8bd;
  --stone: #d8d4cc;
  --stone-ink: #18191b;
  --stone-muted: #4a4740;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-text: "Onest", system-ui, sans-serif;

  --step-display: clamp(1.875rem, 0.2rem + 7.2vw, 8.5rem);
  --step-head: clamp(1.75rem, 1rem + 2.8vw, 3.25rem);
  --step-statement: clamp(1.375rem, 1rem + 1.1vw, 2rem);
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --section: clamp(7.5rem, 13vw, 15rem);
  --radius: 0px;
}

body { font-weight: 400; overflow-x: hidden; }
p { max-width: 56ch; }
strong, b { font-weight: 600; }
h2, h3 { font-weight: 600; }
h3 { font-family: var(--font-text); }
.head { font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; }

.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.button { font-weight: 500; font-size: var(--step-body); min-height: 3rem; gap: 0.5rem; }
.button-sm { min-height: 2.75rem; padding: 0 1.1rem; }
.button-ink { background: var(--accent-ink); color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-press); }
  .button-ink:hover { background: #000; }
}
.link-plain { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .link-plain:hover { text-decoration-color: currentColor; } }

/* ---------- top ---------- */
.topbar { height: 6px; background: var(--accent); }
.site-head { display: flex; align-items: center; gap: 2rem; min-height: 5rem; }
.wordmark { display: block; text-decoration: none; margin-right: auto; line-height: 0; }
.wordmark svg { height: clamp(1.75rem, 1.5rem + 0.5vw, 2.125rem); width: auto; overflow: visible; }
.site-nav { display: flex; gap: 1.75rem; font-size: var(--step-body); }
.site-nav a { text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { text-decoration-color: var(--accent); }

/* menu button for tablets and phones: a native <details>, so it opens without JavaScript */
.menu { display: none; position: relative; }
.menu-btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 1rem; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 40%, transparent); font-weight: 500; user-select: none; }
.menu-btn::-webkit-details-marker { display: none; }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-icon { position: relative; width: 16px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu[open] .menu-btn { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60; width: min(21rem, calc(100vw - 2 * var(--margin))); background: var(--surface-2); padding: 0.5rem 0.75rem 0.85rem; display: grid; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.menu-link { display: block; padding: 0.85rem 0.25rem; text-decoration: none; font-size: 1.125rem; font-weight: 500; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.menu-link[aria-current="page"] { color: var(--accent); }
.menu-link[aria-current="page"]::after { content: " · you are here"; color: var(--muted); font-size: 0.85rem; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .menu-link:hover { color: var(--accent); } }
.menu-panel .button { margin-top: 0.85rem; }
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) { .head-cta { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: calc(var(--gutter) * 2); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; padding-top: clamp(1.5rem, 4vh, 3rem); padding-bottom: 4rem; }

.hero-title { grid-column: 1 / -1; }
.hero { position: relative; }
.hero-arrow { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; display: none; }
.hero-arrow.is-placed { display: block; }
.hero-arrow path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .hero-arrow-line { animation: arrow-draw 900ms var(--ease-in-out) 1300ms forwards; }
  .js .hero-arrow-head { animation: arrow-draw 260ms var(--ease-out) 2150ms forwards; }
}
@keyframes arrow-draw { to { stroke-dashoffset: 0; } }
.hero-copy { padding-top: 0.25rem; }
.hero-title { font-size: var(--step-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.hero-eyebrow { display: block; margin-bottom: 1.25rem; font-family: var(--font-text); font-size: var(--step-small); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.4; white-space: normal; color: var(--ink); }
.hero-sub { margin-top: 0; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.hero-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* ---------- interface fragments (product conventions live inside [data-ui]) ---------- */
.ui {
  --u-frame: #e9eaec; --u-sheet: #ffffff; --u-raised: #f4f5f6; --u-border: #e3e4e6; --u-rule: #eeeff0;
  --u-text: #18191b; --u-muted: #5d6066; --u-accent: #d93a12;
  --chart-1: #d93a12; --chart-muted: #c9ccd0; --grid: #eceef0; --axis-ink: #5d6066; --ink: #18191b; --surface: #fff; --rule: #e3e4e6; --raised: #f4f5f6;
  font-family: var(--font-text); font-size: 14px; line-height: 1.4; color: var(--u-text);
  font-variant-numeric: tabular-nums;
}
.ui .num { text-align: right; font-variant-numeric: tabular-nums; }
.ui-bar { display: flex; align-items: center; gap: 1.25rem; height: 48px; padding: 0 12px 0 16px; background: var(--u-frame); border-radius: 12px 12px 0 0; }
.ui-brand { font-weight: 700; letter-spacing: -0.01em; }
.ui-tab { color: var(--u-muted); height: 100%; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.ui-tab.is-active { color: var(--u-text); border-bottom-color: var(--u-accent); font-weight: 500; }
.ui-spacer { flex: 1; }
.ui-btn { height: 32px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid #cfd2d6; background: #fff; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; } /* taste-skill-ignore: inside a data-ui fragment */
.ui-btn:active { transform: scale(0.96); }
.ui-btn-primary { background: var(--u-text); color: #fff; border-color: var(--u-text); }
.ui-btn-accent { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #ff4a1f; color: #18191b; border-color: #ff4a1f; font-weight: 600; }
.ui-btn-accent:disabled { opacity: 0.55; cursor: default; }
@media (hover: hover) and (pointer: fine) { .ui-btn-accent:hover:not(:disabled) { background: #e63d14; border-color: #e63d14; } }
.ghost { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0; transform: translate(var(--gx, 0), var(--gy, 0)); transition: transform 950ms var(--ease-in-out), opacity 220ms ease; }
.ghost.is-on { opacity: 1; }
.ghost svg { transition: transform 140ms var(--ease-out); transform-origin: 4px 2px; }
.ghost.is-press svg { transform: scale(0.8); }
.nudge { position: absolute; z-index: 6; left: 0; top: 0; width: 230px; margin: 0; background: #18191b; color: #fff; font-size: 13px; line-height: 1.35; padding: 9px 12px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.25); } /* taste-skill-ignore: inside a data-ui fragment, a floating hint */
.nudge::after { content: ""; position: absolute; right: 22px; top: 100%; border: 7px solid transparent; border-top-color: #18191b; }
.nudge:not([hidden]) { animation: nudge-in 320ms var(--ease-out); }
@keyframes nudge-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) { .step-btn.is-hint { animation: hint 1.4s ease-out infinite; border-color: #ff4a1f; } }
.step-btn.is-hint { border-color: #ff4a1f; }
@keyframes hint { 0% { box-shadow: 0 0 0 0 rgba(255,74,31,0.55); } 100% { box-shadow: 0 0 0 9px rgba(255,74,31,0); } } /* taste-skill-ignore: a pulse on a live control inside data-ui */
@media (hover: hover) and (pointer: fine) { .ui-btn-primary:hover { background: #34363a; } }
.ui-btn-block { width: 100%; height: 36px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.pill-ok { background: #dcf5e4; color: #0d3b1d; }
.pill-warn { background: #fff0e0; color: #8a3a06; }
.pill-neutral { background: #eceef0; color: #3a3d42; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-ok { background: #1f8a4c; }
.dot-warn { background: #d97706; }
.block-head { font-size: 13px; font-weight: 600; color: var(--u-text); margin-bottom: 8px; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ui-table th { text-align: left; font-weight: 500; color: var(--u-muted); padding: 0 0 6px; }
.ui-table th.num { text-align: right; }
.ui-table td { padding: 7px 0; border-top: 1px solid var(--u-rule); vertical-align: middle; }
.ui-table td + td, .ui-table th + th { padding-left: 10px; }
.ui-table tr.is-selected td { background: #fff3ee; }
.ui-line { font-size: 13px; color: var(--u-text); max-width: none; }
.code { font-weight: 600; letter-spacing: 0.02em; }

/* the hero agent */
.hero-demo { align-self: start; min-width: 0; }
.agent { position: relative; }
.live-note { margin-top: 14px; font-size: var(--step-small); max-width: 64ch; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.live-note strong { font-weight: 600; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); align-self: center; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: live 1.6s ease-in-out infinite; } }
@keyframes live { 50% { transform: scale(0.6); opacity: 0.5; } }
.agent-sheet { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 16px; padding: 16px; background: var(--u-sheet); border: 1px solid var(--u-border); border-top: 0; border-radius: 0 0 12px 12px; } /* taste-skill-ignore: inside a data-ui fragment */
.msg { background: #e9f6ee; border-radius: 10px 10px 10px 2px; padding: 12px 14px; }
.msg-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--u-muted); margin-bottom: 4px; }
.msg-head strong { color: var(--u-text); font-size: 13px; }
.msg-body { font-size: 14px; line-height: 1.45; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; align-items: center; padding: 8px 8px; border-radius: 8px; font-weight: 500; color: var(--u-muted); transition: background-color 240ms ease, color 240ms ease; }
.step-note { grid-column: 2; font-size: 12px; font-weight: 400; color: var(--u-muted); }
.step .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cfd2d6; position: relative; transition: background-color 200ms ease, border-color 200ms ease; }
.step.is-done { color: var(--u-text); }
.step.is-done .tick { background: #1f8a4c; border-color: #1f8a4c; }
.step.is-done .tick::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.step.is-working { background: var(--u-raised); color: var(--u-text); }
.step.is-working .tick { border-color: var(--u-accent); border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.agent-right { display: grid; gap: 10px; align-content: start; }
.block { background: var(--u-raised); border-radius: 10px; padding: 12px 14px; transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); }
.block.is-pending { opacity: 0.35; transform: translateY(6px); }
.block-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.block-row .block-head { margin-bottom: 2px; }
.invoice td { border-top-color: #e6e7e9; }
.invoice .qty { white-space: nowrap; }
.invoice .qty span { display: inline-block; min-width: 2ch; text-align: center; font-weight: 600; }
.step-btn { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1px solid #cfd2d6; font-size: 14px; line-height: 1; margin: 0 4px; transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease; } /* taste-skill-ignore: inside a data-ui fragment */
.step-btn:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .step-btn:hover { border-color: var(--u-text); } }
.invoice .sub td { color: var(--u-muted); }
.invoice .total td { font-weight: 600; font-size: 14px; }
.flash { animation: flash 700ms var(--ease-out); }
@keyframes flash { from { background: #ffe1d6; } to { background: transparent; } }
.ui-foot { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* cropped fragments in the services list */
.panel { background: var(--surface); padding: 22px; overflow: hidden; position: relative; }
.ui-crop { background: var(--u-sheet); border-radius: 10px; padding: 14px 16px; }
.ui-rows { display: grid; }
.ui-r { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; }
.ui-r + .ui-r { border-top: 1px solid var(--u-rule); } /* taste-skill-ignore: inside a data-ui fragment */
.ui-r.is-hover { background: var(--u-raised); border-top-color: transparent; }
.ui-r.is-hover + .ui-r { border-top-color: transparent; }
.ui-r-main { flex: 1; font-weight: 500; min-width: 0; }
.ui-r-meta { color: var(--u-muted); font-size: 13px; }
.ui-meter-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ui-meter-head span { font-size: 12px; color: var(--u-muted); }
.ui-meter { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.ui-meter .bar { height: 6px; background: #eceef0; border-radius: 3px; overflow: hidden; }
.ui-meter .bar i { display: block; height: 100%; background: var(--u-accent); border-radius: 3px; }
.ui-meter .num { min-width: 92px; }
.ui-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ui-check li { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.ui-check .pill { justify-self: start; }
.ui-phone { background: #2a2c30; color: #f1f2f3; padding: 12px; display: grid; gap: 8px; }
.note { background: #3a3d42; border-radius: 12px; padding: 10px 12px; }
.note p { font-size: 13px; line-height: 1.4; max-width: none; }
.note-head { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 2px; }
.note-head span { color: #b3b6bb; }
.note-dim { opacity: 0.7; }
.panel-photo { padding: 0; min-height: 220px; display: grid; }
.panel-photo img { grid-area: 1 / 1; height: 100%; object-position: 60% 40%; }
.ui-float { position: relative; z-index: 1; grid-area: 1 / 1; align-self: end; justify-self: end; margin: 14px; width: 220px; background: #fff; border-radius: 10px; padding: 8px 10px 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.28); } /* taste-skill-ignore: inside a data-ui fragment */
.ui-float .ui-r { padding: 4px 0; }
.panel-tall { min-height: 300px; }
.panel-tall img { object-position: 30% 40%; }
.ui-float.ui-phone { background: #2a2c30; width: 280px; padding: 10px; }

/* ---------- intro ---------- */
.intro-field { background: var(--field); color: var(--field-ink); --ink: var(--field-ink); --muted: var(--field-muted); }
.band { margin: 0; }
.band video { width: 100%; aspect-ratio: 21 / 8; height: auto; object-fit: cover; background: #2b2d31; }
.band figcaption { padding-top: 0.75rem; font-size: var(--step-small); color: var(--muted); }
.intro { padding-top: calc(var(--section) * 0.45); padding-bottom: calc(var(--section) * 0.6); }
.intro-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(var(--gutter) * 2); margin-top: 4.5rem; align-items: start; }
.intro-lead { margin-top: 2.25rem; font-size: var(--step-lead); line-height: 1.3; max-width: 50ch; }
.intro-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem var(--gutter); }
.intro-cols p { font-size: var(--step-body); line-height: 1.5; }
.intro-cols strong { color: var(--ink); font-weight: 600; }
.intro-media { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); margin-top: 5rem; align-items: end; }
.fig figcaption { margin-top: 0.75rem; font-size: var(--step-small); color: var(--muted); max-width: 52ch; }
.fig-video video { aspect-ratio: 16 / 9; height: auto; background: var(--surface); }
.fig .crop { overflow: hidden; background: var(--surface); }
.fig-sky .crop { aspect-ratio: 4 / 3; }
.fig-sky img { object-position: 55% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .drift { animation: drift 28s var(--ease-soft) infinite alternate; transform-origin: 60% 55%; }
}
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateX(-2%); } }

/* ---------- services ---------- */
.features { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gutter); padding-top: var(--section); }
.features-side { align-self: stretch; display: grid; align-content: start; gap: 1.75rem; justify-items: start; padding-right: 2rem; }
.svc-index { position: sticky; top: 2rem; }
.features-intro { max-width: 34ch; }
.svc-index { list-style: none; padding: 0; margin: 0.5rem 0 0.5rem; display: grid; gap: 0.15rem; }
.svc-index a { display: grid; grid-template-columns: 8px 1fr; gap: 12px; align-items: baseline; padding: 0.3rem 0; text-decoration: none; color: var(--muted); font-size: var(--step-body); transition: color var(--t-hover) ease; }
.svc-index a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: translateY(-2px); transition: background-color var(--t-hover) ease, transform var(--t-ui) var(--ease-out); }
.svc-index a.is-active { color: var(--ink); }
.svc-index a.is-active::before { background: var(--accent); transform: translateY(-2px) scale(1.25); }
@media (hover: hover) and (pointer: fine) { .svc-index a:hover { color: var(--ink); } }
.module { scroll-margin-top: 3rem; }
.modules { display: grid; gap: clamp(4rem, 7vw, 6.5rem); }
.module { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: start; }
.module-text h3 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.module-text p { font-size: var(--step-body); }
.module-text p.muted { margin-top: 0.6rem; }

/* ---------- showcase ---------- */
.showcase-field { margin-top: var(--section); padding-block: calc(var(--section) * 0.6); background: var(--accent); color: var(--accent-ink); --muted: var(--accent-ink); }
.showcase-field :focus-visible { outline-color: var(--accent-ink); }
.showcase-field ::selection { background: var(--accent-ink); color: var(--accent); }
.showcase-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: end; margin-bottom: 2.5rem; }
.showcase-head p { max-width: 52ch; }
.demo { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); background: #fff; border-radius: 14px; overflow: hidden; }
.demo-main { padding: 24px; min-width: 0; }
.demo-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; flex-wrap: wrap; }
.demo-kpi { font-size: 15px; color: var(--u-muted); max-width: none; }
.demo-kpi span { font-size: 28px; font-weight: 600; color: var(--u-text); margin-right: 4px; letter-spacing: -0.01em; }
.legend { display: flex; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--u-muted); flex-wrap: wrap; }
.lg { display: inline-block; width: 16px; height: 0; margin-right: 6px; vertical-align: middle; }
.lg-line { border-top: 2px solid var(--chart-1); }
.lg-ref { border-top: 2px dashed #6b6e74; }
.chart { margin-top: 12px; min-height: 280px; }
.demo-out { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.demo-out div { background: var(--u-raised); border-radius: 10px; padding: 10px 12px; }
.demo-out span { display: block; font-size: 12px; color: var(--u-muted); }
.demo-out strong { display: block; font-size: 17px; font-weight: 600; margin-top: 2px; }
.demo-out .is-bad strong { color: #b42318; }
.demo-controls { background: #f2f3f4; padding: 16px 20px 20px; display: grid; align-content: start; }
.ctl { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; min-height: 52px; border-bottom: 1px solid #e3e4e6; font-size: 14px; } /* taste-skill-ignore: inside a data-ui fragment */
.ctl-name { font-weight: 500; }
.ctl input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; accent-color: var(--u-accent); margin: 0 0 10px; }
.ctl output { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--u-muted); }
.ctl select { height: 32px; border: 1px solid #cfd2d6; border-radius: 8px; padding: 0 8px; background: #fff; font-size: 13px; }
.ctl-stack { grid-template-columns: 1fr; padding: 8px 0 12px; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #e3e5e7; border-radius: 9px; padding: 3px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; font-size: 13px; padding: 6px 4px; border-radius: 7px; color: var(--u-muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; white-space: nowrap; }
.seg input:checked + span { background: #fff; color: var(--u-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,0.12); } /* taste-skill-ignore: inside a data-ui fragment */
.seg input:focus-visible + span { outline: 2px solid var(--u-accent); outline-offset: 1px; }
.switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: #c3c6ca; border-radius: 10px; transition: background-color var(--t-hover) ease; }
.switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform var(--t-ui) var(--ease-out); }
.switch input:checked + i, .switch.on i { background: var(--u-accent); }
.switch input:checked + i::after, .switch.on i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--u-accent); outline-offset: 2px; }
.demo-link { margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--u-text); text-underline-offset: 0.2em; }
.demo-hint { margin-top: 1rem; font-size: var(--step-small); }

/* ---------- who we serve (light field) ---------- */
.field { background: var(--field); color: var(--field-ink); --muted: var(--field-muted); }
.field ::selection { background: var(--accent); color: var(--accent-ink); }
.serve { padding-block: calc(var(--section) * 0.7); }
.serve-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.serve-head p { font-size: var(--step-body); color: var(--field-ink); }
.serve-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); margin-top: 4rem; }
.serve-a { grid-column: 1 / span 7; grid-row: span 2; }
.serve-a .crop { aspect-ratio: 4 / 3.4; }
.serve-b { grid-column: 8 / span 5; }
.serve-c { grid-column: 8 / span 5; }
.serve-b .crop, .serve-c .crop { aspect-ratio: 16 / 9; }
.serve-d { grid-column: 1 / -1; margin-top: 1rem; }
.serve-d .crop { aspect-ratio: 21 / 7; }
.serve .fig img { transition: transform 1200ms var(--ease-soft); }
.serve .fig figcaption { font-size: var(--step-body); color: var(--field-muted); margin-top: 1rem; }
.serve .fig figcaption strong { color: var(--field-ink); }
@media (hover: hover) and (pointer: fine) { .serve .fig:hover img { transform: scale(1.03); } }

/* ---------- approach (pinned) ---------- */
.approach-field { background: var(--green); color: var(--green-ink); --ink: var(--green-ink); --muted: var(--green-muted); padding-block: calc(var(--section) * 0.7) calc(var(--section) * 0.4); }
.approach-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gutter) * 2); align-items: end; }
.approach-intro-text { display: grid; gap: 1.5rem; align-self: start; }
.approach-intro-text p { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
.approach-photo .crop { aspect-ratio: 3 / 2; }
.approach-photo figcaption { color: var(--green-muted); }
.approach { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gutter) * 2); padding-top: 2rem; }
.approach-text .head { margin-bottom: 1rem; }
.stmt { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 1rem; color: var(--muted); transition: color 300ms ease; }
.stmt:first-of-type { min-height: 60vh; }
.stmt.is-active { color: var(--ink); }
.stmt-big { font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; max-width: 22ch; }
.stmt p:not(.stmt-big) { max-width: 40ch; font-size: var(--step-body); }
.approach-stage { position: sticky; top: 14vh; align-self: start; height: 72vh; display: flex; align-items: center; }
.stage-ui { position: relative; width: 100%; max-width: 620px; min-height: 440px; background: var(--green-deep); border-radius: 14px; padding: 28px; display: grid; }
.stage-ui .stage-state { grid-area: 1 / 1; background: #fff; border-radius: 10px; padding: 20px 22px; align-self: center; opacity: 0; transform: translateY(14px) scale(0.985); transition: opacity 360ms var(--ease-out), transform 520ms var(--ease-out); pointer-events: none; }
.stage-ui .stage-state.is-active { opacity: 1; transform: none; pointer-events: auto; }
.flow, .rules, .log { list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--u-rule); font-size: 14px; } /* taste-skill-ignore: inside a data-ui fragment */
.flow li .num { color: var(--u-muted); white-space: nowrap; }
.flow li.is-hot { color: #a1300c; font-weight: 500; }
.flow li.is-hot .num { color: #a1300c; }
.stage-foot { margin-top: 14px; font-size: 14px; font-weight: 600; }
.rules li { display: grid; grid-template-columns: 1fr 16px 1.3fr 36px; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--u-rule); font-size: 13px; } /* taste-skill-ignore: inside a data-ui fragment */
.rules li > span:first-child { font-weight: 500; }
.rules .arrow { color: var(--u-muted); }
.rules li.is-off { color: var(--u-muted); }
.stage-kpi { font-size: 15px; color: var(--u-muted); }
.stage-kpi strong { font-size: 36px; color: var(--u-text); letter-spacing: -0.02em; margin-right: 6px; }
.stage-bar { height: 8px; background: #eceef0; border-radius: 4px; margin: 12px 0 18px; overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--u-accent); }
.log li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--u-rule); font-size: 13px; } /* taste-skill-ignore: inside a data-ui fragment */

/* ---------- about ---------- */
.about-field { background: var(--stone); color: var(--stone-ink); --ink: var(--stone-ink); --muted: var(--stone-muted); padding-block: calc(var(--section) * 0.7); }
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: calc(var(--gutter) * 2); align-items: start; }
.principles-photo .crop { aspect-ratio: 16 / 9; }
.principles-photo { margin-bottom: 1rem; }
.letter { background: #ffffff; color: var(--field-ink); padding: clamp(1.75rem, 4vw, 3.75rem); }
.letter-title { font-family: var(--font-text); font-size: var(--step-lead); letter-spacing: -0.01em; margin-bottom: 1.75rem; }
.letter p { font-size: var(--step-body); line-height: 1.6; max-width: 58ch; }
.letter p + p { margin-top: 1.1em; }
.mark { background: #ffd9cc; padding: 0 0.15em; }
.sign { font-size: var(--step-lead); font-weight: 500; font-style: italic; margin-top: 2rem !important; }
.sign-role { font-size: var(--step-small); color: var(--field-muted); margin-top: 0.25rem !important; }
.tear { background: #eeeeee; margin: 2.25rem calc(clamp(1.75rem, 4vw, 3.75rem) * -1) calc(clamp(1.75rem, 4vw, 3.75rem) * -1); padding: 1.5rem clamp(1.75rem, 4vw, 3.75rem); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--step-body); font-weight: 500; }
.tear span { color: var(--field-muted); font-weight: 400; font-size: var(--step-body); }
.principles { display: grid; gap: 1.5rem; padding-top: 0.5rem; }
.principles-title { font-size: var(--step-lead); letter-spacing: -0.01em; }
.principles p { font-size: var(--step-body); }
.principles strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--surface); padding-block: calc(var(--section) * 0.65); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: calc(var(--gutter) * 2); align-items: start; }
.faq-title { font-size: var(--step-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; margin-bottom: 2.5rem; }
.qs { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.q { display: grid; grid-template-columns: 8px 1fr; gap: 14px; align-items: baseline; width: 100%; text-align: left; font-size: var(--step-body); line-height: 1.35; padding: 0.55rem 0; color: var(--muted); transition: color var(--t-hover) ease; }
.q::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: translateY(-2px); transition: background-color var(--t-hover) ease; }
.q[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.q[aria-selected="true"]::before { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .q:hover { color: var(--ink); } }
.a { padding: 0.25rem 0 1rem 22px; }
.a p { font-size: var(--step-body); }
.faq-pane { position: sticky; top: 120px; padding-top: calc(var(--step-head) + 2.5rem); }
.faq-answer { font-size: var(--step-lead); line-height: 1.35; max-width: 40ch; transition: opacity 150ms ease; }
.faq-answer.is-swap { opacity: 0; }
@media (min-width: 900px) { .js .a { display: none; } }

/* ---------- CTA tiles ---------- */
.cta { padding-top: var(--section); overflow: hidden; }
.cta-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr); gap: 10px; margin-inline: -4vw; }
.tile { min-height: 380px; position: relative; overflow: hidden; }
.tile-photo img { position: absolute; inset: 0; object-position: 50% 50%; }
.tile-flat { background: var(--surface-2); }
.tile-accent { background: var(--accent); color: var(--accent-ink); padding: clamp(1.75rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.tile-accent h2 { font-size: var(--step-head); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.02; }
.tile-accent p { max-width: 46ch; font-size: var(--step-body); }
.inline-field { display: flex; max-width: 520px; margin-top: 0.75rem; background: var(--field); }
.inline-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 1rem; min-height: 3.25rem; font-size: var(--step-body); color: var(--field-ink); }
.inline-field input::placeholder { color: #6b6e74; }
.inline-field input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: -2px; }
.inline-field .button { min-height: 3.25rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 6vw, 6rem); align-items: stretch; }
.contact-title { font-family: var(--font-text); font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; }
.big-field { display: flex; align-items: center; margin-top: 2rem; background: var(--field); max-width: 760px; }
.big-field input { flex: 1; min-width: 0; height: 4rem; border: 0; background: transparent; padding: 0 1.25rem; font-size: var(--step-body); color: var(--field-ink); }
.big-field input::placeholder { color: #6b6e74; }
.big-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.big-field input:focus-visible { outline: 0; }
.go { width: 3rem; height: 3rem; margin-right: 0.5rem; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.go:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .go:hover { background: var(--accent-press); } .go:hover svg { transform: translateX(2px); } }
.go svg { transition: transform var(--t-hover) var(--ease-out); }
.contact-note { margin-top: 1rem; font-size: var(--step-small); color: var(--muted); }
.contact-side { display: grid; }
.contact-photo { margin: 0; height: 100%; }
.contact-photo .crop { height: 100%; min-height: 18rem; }
.contact-photo img { object-position: 40% 60%; }
.contact-rows { display: grid; gap: 1rem; margin: 2.5rem 0 0; }
.contact-rows div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; font-size: var(--step-body); }
.contact-rows dt { color: var(--muted); }
.contact-rows dd { margin: 0; }

/* ---------- footer tiles ---------- */
.site-foot { padding: 0 10px 10px; }
.foot-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ft { background: var(--surface); padding: 22px; min-height: 220px; text-decoration: none; }
.ft-statement { grid-column: span 6; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.ft-big { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; letter-spacing: -0.01em; }
.ft-legal { font-size: var(--step-small); color: var(--muted); }
.ft-nav { grid-column: span 6; display: grid; align-content: start; gap: 0.35rem; font-size: var(--step-body); }
.ft-nav a { justify-self: start; }
.ft-word { grid-column: span 8; min-height: 320px; background: var(--ink); color: var(--bg); display: grid; place-items: center; overflow: hidden; }
.ft-word svg { width: min(80%, 56rem); height: auto; }
.ft-go { grid-column: span 4; min-height: 320px; background: var(--accent); color: var(--accent-ink); display: flex; flex-direction: column; justify-content: space-between; transition: background-color var(--t-hover) ease; }
.ft-go span { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.01em; }
.ft-go svg { align-self: flex-end; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ft-go:hover { background: var(--accent-press); } .ft-go:hover svg { transform: translate(6px, -6px); } }
.ft-go:active svg { transform: translate(3px, -3px) scale(0.96); }

/* ---------- entrances (content stays visible without JavaScript) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { transition-delay: calc(var(--d, 0) * 80ms); }
}

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .hero-sub { max-width: 40ch; }
  .agent { max-width: 760px; }
  .features { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .features-side { position: static; padding-right: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); align-items: end; }
  .features-side .head { grid-column: 1; }
  .features-side .features-intro { grid-column: 2; grid-row: 1; }
  .features-side .button { grid-column: 2; }
  .svc-index { display: none; }
  .module { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .approach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about { grid-template-columns: 1fr; row-gap: 4rem; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
  .principles-title { grid-column: 1 / -1; }
  .contact { grid-template-columns: 1fr; row-gap: 3rem; }
  .contact-photo .crop { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .ft-statement { grid-column: span 12; }
  .ft-nav { grid-column: span 12; }
  .ft-word { grid-column: span 12; }
  .ft-go { grid-column: span 12; min-height: 220px; }
}
@media (max-width: 900px) {
  .intro-body { grid-template-columns: 1fr; row-gap: 3rem; }
  .band video { aspect-ratio: 16 / 9; }
  .serve-head, .showcase-head { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .serve-a, .serve-b, .serve-c, .serve-d { grid-column: 1 / -1; grid-row: auto; }
  .serve-d .crop { aspect-ratio: 16 / 9; }
  .approach-intro { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .serve-a .crop { aspect-ratio: 4 / 3; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-pane { display: none; }
  .js .a[hidden] { display: none; }
  .demo-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row { grid-template-columns: 1fr 1fr; margin-inline: 0; padding-inline: var(--margin); gap: 8px; }
  .tile-accent { grid-column: 1 / -1; grid-row: 1; }
  .tile-photo, .tile-flat { min-height: 140px; }
  .tile { min-height: 140px; }
  .tile-accent { min-height: 300px; }
  /* the approach: each state sits under its own statement, nothing pinned over text */
  .approach { grid-template-columns: 1fr; }
  .approach-stage { display: none; }
  .stmt, .stmt:first-of-type { min-height: 0; padding-block: 2.5rem; color: var(--ink); }
  .stmt .stage-state { position: static; opacity: 1; transform: none; pointer-events: auto; margin-top: 1rem; background: #fff; border-radius: 10px; padding: 16px 18px; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-head { min-height: 4rem; gap: 1rem; }
  .hero { padding-top: 1.5rem; row-gap: 1.25rem; }
  .hero-demo { margin-top: 1.5rem; }
  .hero-sub { margin-top: 1.5rem; font-size: var(--step-body); }
  .hero-actions { margin-top: 1.75rem; }
  .agent-sheet { grid-template-columns: 1fr; padding: 12px; }
  .ui-bar { gap: 0.9rem; }
  .ui-bar .ui-tab:not(.is-active) { display: none; }
  .intro-cols { grid-template-columns: 1fr; row-gap: 2rem; }
  .intro-media { grid-template-columns: 1fr; row-gap: 2.5rem; }
  .fig-sky .crop { aspect-ratio: 4 / 3; }
  .features-side { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .features-side .features-intro, .features-side .button { grid-column: 1; grid-row: auto; }
  .module { grid-template-columns: 1fr; gap: 1rem; }
  .panel { padding: 14px; }
  .demo-main { padding: 16px; }
  .chart { min-height: 220px; }
  .ctl { min-height: 52px; }
  .ft-statement, .ft-nav { grid-column: span 12; min-height: 0; }
  .ft-word { min-height: 160px; order: -2; }
  .ft-go { order: -1; }
  .ft-nav { grid-template-columns: 1fr 1fr; }
  .contact-rows div { grid-template-columns: 1fr; gap: 0.25rem; }
  .principles { grid-template-columns: 1fr; }
  .rules li { grid-template-columns: 1fr 36px; }
  .rules li .arrow { display: none; }
  .rules li > span:nth-child(3) { grid-column: 1; color: var(--u-muted); }
  .rules li .switch { grid-column: 2; grid-row: 1 / span 2; }
  .log li { grid-template-columns: 52px 1fr; }
  .log li .muted { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .step.is-working .tick { animation: none; }
  .stage-state, .block, .faq-answer { transition: none; }
}

/* ---------- launch additions: responsive pictures, two-row contact field, honeypot, form states ---------- */
picture { display: contents; }
.band img { width: 100%; aspect-ratio: 21 / 8; height: auto; object-fit: cover; background: #2b2d31; }
@media (max-width: 900px) { .band img { aspect-ratio: 16 / 9; } }
.big-field { flex-wrap: wrap; }
.big-field .bf-msg { flex: 1 0 100%; border-bottom: 1px solid color-mix(in srgb, var(--field-ink) 14%, transparent); }
.big-field .bf-email { height: 3.5rem; font-size: var(--step-small); }
.big-field .go { margin-block: 0.25rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
form[aria-busy="true"] button[type="submit"] { opacity: 0.6; pointer-events: none; }
.form-msg { margin-top: 0.75rem; font-size: var(--step-small); font-weight: 600; }
.form-msg.is-error { color: #ff9a8a; }

/* ---------- cookie consent: pinned to the bottom, never blocks the page; both choices carry equal weight ---------- */
.consent { position: fixed; z-index: 1000; left: var(--margin); right: var(--margin); bottom: var(--margin); max-width: 44rem; margin-inline: auto; padding: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; background: var(--surface-2); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: var(--radius); animation: consent-in var(--t-ui) var(--ease-out); }
.consent-text { flex: 1 1 20rem; margin: 0; font-size: var(--step-small); line-height: 1.5; }
.consent-actions { display: flex; gap: 0.75rem; flex: 0 0 auto; }
.consent-button { background: var(--ink); color: var(--bg); min-width: 6rem; font-size: var(--step-small); cursor: pointer; }
.consent-settings { padding: 0; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; }
@keyframes consent-in { from { opacity: 0; transform: translateY(0.75rem); } }
@media (max-width: 480px) { .consent-actions { flex: 1 1 100%; } .consent-button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
