/* ==========================================================================
   UbuntuCare UI — one design system for the website and the app.
   Clinical, flat and industrial: white and ink, one signal colour (UbuntuCare
   blue), hairline rules, grey panels for grouping, 4px controls, 8px cards.
   No gradients, no glows, no shadows. Inter for text, IBM Plex Mono for labels.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f5;
  --bg-3: #ebebeb;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #666666;
  --ink-4: #8a8a8a;
  --line: #e3e3e3;
  --line-2: #cccccc;
  --field: #8a8a8a;

  --blue: #006fd9;
  --blue-hover: #0058ad;
  --blue-ink: #00498f;
  --blue-50: #edf5fe;
  --amber: #8f5200;
  --amber-50: #fff4e0;
  --red: #c0271c;
  --red-50: #fdeeed;

  --dark: #111111;
  --dark-2: #1a1a1a;
  --dark-line: #2e2e2e;
  --dark-ink: #ededed;
  --dark-ink-2: #a3a3a3;

  /* Compatibility aliases used across the app */
  --surface: var(--bg);
  --surface-2: var(--bg-2);
  --bg-soft: var(--bg-2);
  --bg-warm: var(--bg-2);
  --green: var(--ink);
  --green-50: var(--bg-3);
  --overlay: rgba(17, 17, 17, 0.56);

  --r-xs: 4px;
  --r: 8px;
  --r-lg: 8px;
  --r-xl: 12px;
  --pill: 999px;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1520px;
  --gutter: clamp(16px, 2.5vw, 40px);
  --pad: clamp(56px, 6.5vw, 104px);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23a3a3a3' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Light by default. Dark only when someone picks it (data-theme="dark", saved per device). */
:root[data-theme="dark"] {
  --bg: #111111; --bg-2: #1a1a1a; --bg-3: #242424;
  --ink: #f2f2f2; --ink-2: #c4c4c4; --ink-3: #a0a0a0; --ink-4: #7a7a7a;
  --line: #2a2a2a; --line-2: #3a3a3a; --field: #6e6e6e;
  --blue: #4a9dff; --blue-hover: #74b3ff; --blue-ink: #a9cfff; --blue-50: #10243b;
  --amber: #ffb547; --amber-50: #2d2210; --red: #ff7b72; --red-50: #3a1714;
  --overlay: rgba(0, 0, 0, 0.7);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11'%3E%3Cpath d='M5.5 0v11M0 5.5h11' stroke='%23555' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/InterVariable.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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/IBMPlexMono-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/IBMPlexMono-600.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.6; font-feature-settings: "cv11", "ss03"; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.1; }
h1 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); font-weight: 560; letter-spacing: -0.03em; line-height: 1.14; }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
::selection { background: var(--blue); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-xs); font-family: var(--mono); font-size: 0.75rem; }
.skip-link:focus { top: 12px; color: var(--bg); }

.muted { color: var(--ink-3); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.78rem; }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.14rem); color: var(--ink-3); line-height: 1.65; }
.mono { font-family: var(--mono); }
.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); line-height: 1.2;
}
.kicker b, .eyebrow b { color: var(--ink); font-weight: 600; }
.text-blue, .dot { color: var(--blue); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.container.narrow { max-width: var(--container); }
.container.narrow > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.section, .section-sm { padding: 0; position: relative; }
.section > .container { padding-top: var(--pad); padding-bottom: var(--pad); }
.section-sm > .container { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
:is(.hero, .section, .section-sm) + :is(.section, .section-sm) { border-top: 1px solid var(--line); }
.bg-soft, .bg-warm { background: var(--bg-2); }
.bg-dark { background: var(--dark); color: var(--dark-ink); }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .lead, .bg-dark p { color: var(--dark-ink-2); }
@media (min-width: 1100px) {
  .container { max-width: min(var(--container), calc(100% - 48px)); }
  :is(.hero, .section, .section-sm) > .container { border-inline: 1px solid var(--line); position: relative; }
  .bg-dark > .container { border-color: var(--dark-line) !important; }
  :is(.hero, .section, .section-sm) + :is(.section, .section-sm) > .container::before,
  :is(.hero, .section, .section-sm) + :is(.section, .section-sm) > .container::after {
    content: ""; position: absolute; top: -6px; width: 11px; height: 11px; background: var(--plus) no-repeat; pointer-events: none;
  }
  :is(.hero, .section, .section-sm) + :is(.section, .section-sm) > .container::before { left: -6px; }
  :is(.hero, .section, .section-sm) + :is(.section, .section-sm) > .container::after { right: -6px; }
}
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.grid { display: grid; gap: var(--gap, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 72px); display: grid; gap: 18px; justify-items: start; }
.section-head.center { margin-left: auto; margin-right: auto; justify-items: center; }

/* Joined cells: a bordered grid of equal cells separated by hairlines */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.cells > * { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: -0 -1px -1px 0; }
.cells > a { color: var(--ink); }
.cells > a:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 960px) { .cells { --cols: 2 !important; } }
@media (max-width: 640px) { .cells { --cols: 1 !important; } }

/* ---------- buttons ---------- */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--h); padding: 0 18px;
  border-radius: var(--r-xs); border: 1px solid transparent; font-weight: 620; font-size: 0.94rem; letter-spacing: -0.005em; line-height: 1;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
}
.btn[disabled], .btn.is-loading { pointer-events: none; }
.btn[disabled] { background: var(--bg-3) !important; border-color: var(--bg-3) !important; color: var(--ink-4) !important; }
.btn.is-loading { opacity: 0.7; }
.btn .i { width: 18px; height: 18px; flex: none; }
.btn-primary, .btn-dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover, .btn-dark:hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.btn-signal { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-signal:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn-soft { background: var(--bg-2); color: var(--ink); border-color: var(--line-2); }
.btn-soft:hover { background: var(--bg-3); color: var(--ink); }
.btn-white { background: #fff; color: #111; border-color: #fff; }
.btn-white:hover { background: #e6e6e6; border-color: #e6e6e6; color: #111; }
.btn-outline-white { background: transparent; color: #fff; border-color: #5c5c5c; }
.btn-outline-white:hover { border-color: #fff; color: #fff; }
.btn-danger { background: var(--bg); color: var(--red); border-color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-text { background: none; border: 0; padding: 0 2px; min-height: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.btn-text:hover { color: var(--ink); text-decoration-color: var(--ink); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: 0.86rem; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: var(--h); padding: 0; }
.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field > label, .label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field > label .muted { font-weight: 450; }
.field .hint { font-size: 0.8rem; color: var(--ink-3); }
.field .error { font-size: 0.8rem; color: var(--red); }
.req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-xs); border: 1px solid var(--field);
  background: var(--bg); color: var(--ink); transition: border-color 120ms; appearance: none; font-size: 0.97rem;
}
.textarea { min-height: 108px; resize: vertical; line-height: 1.5; }
.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23444' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: 1px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--red); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .row-2, .row-3 { grid-template-columns: 1fr; } }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 48px; }
.input-wrap .input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px; color: var(--ink-3); cursor: pointer; border-radius: var(--r-xs); }
fieldset { border: 1px solid var(--line-2); border-radius: var(--r-xs); padding: 16px; margin: 0; }
legend { font-size: 0.875rem; font-weight: 600; padding: 0 6px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* choice chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px; border-radius: var(--r-xs);
  border: 1px solid var(--line-2); background: var(--bg); font-size: 0.9rem; font-weight: 560; color: var(--ink-2);
  transition: background 120ms, color 120ms, border-color 120ms;
}
.chip:hover span { border-color: var(--ink); color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* option rows (role picker, service picker) */
.options { display: grid; gap: 8px; }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option .option-body {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-xs); border: 1px solid var(--line-2);
  background: var(--bg); transition: border-color 120ms, background 120ms;
}
.option:hover .option-body { border-color: var(--ink); }
.option input:checked + .option-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--bg); }
.option input:focus-visible + .option-body { outline: 2px solid var(--ink); outline-offset: 2px; }
.option .option-icon { --kg-cut: var(--ink); width: 40px; height: 40px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.option .option-icon .kg { width: 26px; height: 26px; }
.option .option-icon .i { width: 20px; height: 20px; }
.option input:checked + .option-body .option-icon { --kg-cut: var(--blue); background: var(--blue); }
.option .option-title { font-weight: 640; }
.option .option-sub { font-size: 0.86rem; color: var(--ink-3); }

/* ---------- surfaces ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: clamp(18px, 2.2vw, 28px); }
.card-hover { transition: border-color 140ms; color: var(--ink); }
.card-hover:hover { border-color: var(--ink); color: var(--ink); }
.panel { background: var(--bg-2); border-radius: var(--r-xs); padding: 20px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* status tags */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 7px; border-radius: var(--r-xs);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--bg); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line-2); line-height: 1;
}
.badge .i { width: 12px; height: 12px; }
.badge-blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.badge-green, .badge-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge-amber { background: var(--amber-50); color: var(--amber); border-color: var(--amber); }
.badge-red { background: var(--red); color: #fff; border-color: var(--red); }
.badge-dot::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }

/* glyph tiles */
.kg { width: 60%; height: 60%; display: block; overflow: visible; }
.kg .f { fill: currentColor; }
.kg .s { fill: none; stroke: currentColor; stroke-width: 2.5px; stroke-linejoin: round; stroke-linecap: round; }
.kg .c { fill: var(--kg-cut, var(--ink)); }
.kg .cs { fill: none; stroke: var(--kg-cut, var(--ink)); stroke-width: 2.5px; stroke-linecap: round; stroke-linejoin: round; }
.tile { --s: 40px; --kg-cut: var(--ink); width: var(--s); height: var(--s); border-radius: var(--r); background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.tile-sm { --s: 30px; border-radius: 6px; }
.tile-lg { --s: 56px; }
.tile-xl { --s: 80px; }
.tile-blue { --kg-cut: var(--blue); background: var(--blue); }
.tile-soft { --kg-cut: var(--bg); background: var(--bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.tile-grid { --kg-cut: var(--bg); background-color: var(--bg); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2);
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px), linear-gradient(var(--line) 1px, transparent 1px); background-size: 25% 25%; background-position: -1px -1px; }

/* people: photo, or a neutral portrait placeholder — never coloured initials */
.avatar {
  --s: 44px; --kg-cut: var(--bg-3); width: var(--s); height: var(--s); border-radius: var(--r); flex: none; display: grid; place-items: end center;
  overflow: hidden; background: var(--bg-3); color: var(--ink-4); box-shadow: inset 0 0 0 1px var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .kg { width: 88%; height: 88%; }
.avatar-lg { --s: 72px; }
.avatar-xl { --s: 104px; border-radius: var(--r-xl); }
.avatar-sm { --s: 32px; border-radius: 6px; }

.stars { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 0.9rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.stars .i { width: 15px; height: 15px; color: var(--ink); }
.stars .muted { font-family: var(--mono); font-size: 0.75rem; font-weight: 500; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-xs); background: var(--bg-2); color: var(--ink-2); font-size: 0.92rem; align-items: flex-start; box-shadow: inset 3px 0 0 var(--blue); }
.notice .i { width: 20px; height: 20px; color: var(--ink); flex: none; margin-top: 1px; }
.notice strong { color: var(--ink); }
.notice-amber { box-shadow: inset 3px 0 0 var(--amber); background: var(--amber-50); }
.notice-amber .i { color: var(--amber); }
.notice-red { box-shadow: inset 3px 0 0 var(--red); background: var(--red-50); }
.notice-red .i { color: var(--red); }
.notice-green { box-shadow: inset 3px 0 0 var(--ink); }

.progress { height: 4px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--ink); transition: width 500ms var(--ease); }
.segbar { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 3px; }
.segbar i { height: 6px; background: var(--line-2); }
.segbar i.on { background: var(--ink); }
.bg-dark .segbar i, .panel-dark .segbar i { background: var(--dark-line); }
.bg-dark .segbar i.on, .panel-dark .segbar i.on { background: #fff; }

/* ---------- site header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo .wordmark, .wordmark { height: 18px; width: auto; display: block; }
.wordmark .dot { fill: var(--blue); }
.site-footer .logo, .site-footer .logo:hover { color: #fff; }
.site-footer .logo .wordmark { height: 20px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--ink-2); font-weight: 560; font-size: 0.94rem; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .site-nav, .header-actions .hide-sm { display: none; }
  .menu-btn { display: inline-flex; }
}
.mobile-menu { position: fixed; inset: 64px 0 0; background: var(--bg); z-index: 39; padding: 8px var(--gutter) 40px; display: none; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { padding: 16px 0; font-size: 1.1rem; font-weight: 620; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- hero ---------- */
.hero > .container { padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(40px, 5vw, 80px); }
.display { font-size: clamp(2.3rem, 4.4vw, 3.6rem); font-weight: 520; letter-spacing: -0.04em; line-height: 1.06; }
.hero-center { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero-center .lead { max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero h1 { margin: 20px 0 24px; }
.hero .lead { max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.hero-center .hero-actions { justify-content: center; margin-top: 4px; }
.hero-media .photo { width: 100%; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 4.2; max-height: 620px; background: var(--bg-3); }
.hero-media .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { max-width: 560px; } }
.float-card { display: none; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.trust-row .i { width: 16px; height: 16px; color: var(--ink); }

/* service tiles (app-grid) */
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); width: 100%; max-width: 920px; margin: clamp(40px, 5vw, 64px) auto 0; }
.service-grid a { display: grid; justify-items: center; gap: 12px; color: var(--ink-2); font-size: 0.9rem; font-weight: 580; text-align: center; }
.service-grid a .tile { --s: 84px; transition: background 140ms; }
.service-grid a:hover { color: var(--ink); }
.service-grid a:hover .tile { --kg-cut: var(--blue); background: var(--blue); }
@media (max-width: 760px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .service-grid a .tile { --s: 72px; } }

/* ---------- content blocks ---------- */
.feature { display: grid; gap: 12px; align-content: start; }
.feature .ico { --kg-cut: var(--ink); width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; background: var(--ink); color: #fff; }
.feature .ico .kg { width: 28px; height: 28px; }
.feature .ico .i { width: 22px; height: 22px; }
.feature h3 { margin-top: 4px; }
.feature p { color: var(--ink-2); font-size: 0.97rem; }
.step-num { font-family: var(--mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); }
.step-num::before { content: "STEP "; color: var(--ink-3); font-weight: 500; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split .photo { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4.4; background: var(--bg-3); }
.split .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse .photo { order: -1; } }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 14px; align-items: baseline; color: var(--ink-2); padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--ink); transform: translateY(-2px); }
.bg-dark .ticks, .bg-dark .ticks li { border-color: var(--dark-line); }
.bg-dark .ticks li::before { background: var(--blue); }

.band { background: var(--dark); color: #fff; border-radius: var(--r); padding: clamp(32px, 5vw, 64px); }
.band h2, .band h3 { color: #fff; }
.band p { color: var(--dark-ink-2); }
.band-dark { background: var(--dark); }

.lang-marquee { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lang-marquee .track { display: contents; }
.lang-marquee .track + .track { display: none; }
.lang-marquee .badge { height: 30px; padding: 0 12px; font-size: 0.72rem; }

.quote { font-size: clamp(1.3rem, 2.2vw, 1.8rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 480; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 560; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 1.2rem; line-height: 1; color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 72ch; }

.table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); font-weight: 500; background: var(--bg-2); }
.table td:first-child { font-weight: 600; color: var(--ink); }

.prose { color: var(--ink-2); font-size: 1rem; max-width: 76ch; }
.prose h2 { font-size: 1.4rem; margin: 44px 0 12px; letter-spacing: -0.025em; }
.prose h3 { font-size: 1.08rem; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--dark-ink); padding: clamp(56px, 7vw, 88px) 0 28px; }
.site-footer .logo { color: #fff; }
.site-footer p { color: var(--dark-ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark-ink-2); margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--dark-ink); font-size: 0.93rem; }
.footer-grid a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dark-ink-2); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-bottom a { color: var(--dark-ink); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- overlays ---------- */
.toast-stack { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-radius: var(--r-xs); background: var(--ink); color: var(--bg); font-size: 0.92rem; animation: fadeUp 200ms var(--ease); }
.toast .i { width: 18px; height: 18px; flex: none; }
.toast.error { background: var(--red); color: #fff; }

.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fadeIn 140ms ease; }
.modal { background: var(--bg); border-radius: var(--r); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--line-2); animation: fadeUp 180ms var(--ease); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; gap: 12px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.12rem; letter-spacing: -0.02em; }
.modal-body { padding: 20px 24px 24px; }
.modal-foot { padding: 16px 24px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; border-top: 1px solid var(--line); background: var(--bg-2); }
@media (max-width: 640px) {
  .modal-backdrop { place-items: end stretch; padding: 0; }
  .modal { border-radius: var(--r) var(--r) 0 0; width: 100%; max-height: 92vh; animation: sheetUp 220ms var(--ease); border-bottom: 0; }
}
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } }
@keyframes sheetUp { from { transform: translateY(100%); } }

.skeleton { background: var(--bg-2); border-radius: var(--r-xs); }

.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.i { width: 20px; height: 20px; flex: none; }
.inline-i { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.cluster > .i { width: 18px; height: 18px; color: var(--ink-3); }
@media (max-width: 640px) {
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- photography ---------- */
.photo { border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 21 / 9; }
@media (max-width: 760px) { .photo-wide { aspect-ratio: 4 / 3; } }
.caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* numbered columns, text only */
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.steps-row > div { border-top: 1px solid var(--ink); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.steps-row p { color: var(--ink-3); }
@media (max-width: 760px) { .steps-row { grid-template-columns: 1fr; } }

/* simple two-column rows */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px); border-top: 1px solid var(--line); }
.rows > * { display: grid; grid-template-columns: minmax(140px, 0.8fr) 1.2fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.rows > * span { color: var(--ink-3); }
.rows > a:hover { color: var(--ink); }
.rows > a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.rows strong { font-weight: 560; }
@media (max-width: 760px) { .rows { grid-template-columns: 1fr; } .rows > * { grid-template-columns: 1fr; gap: 4px; } }

.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.figures > div { border-top: 1px solid var(--line-2); padding-top: 20px; display: grid; gap: 8px; }
.figures .num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 460; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.figures p { color: var(--ink-3); font-size: 0.95rem; }
@media (max-width: 760px) { .figures { grid-template-columns: 1fr; } }
