/* Moody Street Digital, Lamplit navy: warm paper pages, a navy evening frame (header, hero, Waltham section, footer),
   marigold for lamplight. Young Serif for headings, Libre Franklin for everything else. */
:root {
  --bg: #F5F1EA;
  --surface: #FFFDF9;
  --band: #ECE6DC;
  --accent-soft: #E7ECF4;
  --neutral: #EEE9E0;
  --night: #13213B;
  --night-deep: #0F1B31;
  --night-raised: #1B2C4E;
  --night-soft: #243A62;
  --street: #0F1B31;
  --primary: #1F3A6B;
  --primary-press: #172F58;
  --sign: #1F3A6B; /* the street-sign logo, the same navy on every background */
  --marigold: #F2A93B;
  --marigold-press: #E39A2B;
  --ink: #141C2B;
  --text-2: #4C5566;
  --muted: #5F6878;
  --on-dark: #D5DCEA;
  --on-dark-2: #C4CCDD;
  --on-dark-3: #A3AEC4;
  --border: #E2DCD2;
  --border-strong: #CFC7BA;
  --border-dark: #2A3F66;
  --danger: #B42318;
  --danger-soft: #FEF3F2;
  --shadow-card: 0 10px 30px rgba(19, 33, 59, 0.07);
  --shadow-raised: 0 28px 60px rgba(19, 33, 59, 0.2);
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: 80px;
  --street-h: clamp(170px, 19vw, 360px);
  --radius: 5px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--marigold); }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--marigold); color: var(--night); padding: 10px 14px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1.2 var(--font-body);
  padding: 15px 24px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn .ic { display: none; }
.btn-primary { background: var(--primary); color: #FFFFFF; }
.btn-primary:hover { background: var(--primary-press); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-sm { font-size: 15px; padding: 11px 18px; }
/* on navy, the main button is lamplight */
.on-dark .btn-primary { background: var(--marigold); color: var(--night); }
.on-dark .btn-primary:hover { background: var(--marigold-press); }
.text-link {
  font-weight: 500; color: inherit;
  text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--night);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(15, 27, 49, 0.18); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; flex: none; color: var(--sign); text-decoration: none; border-radius: 6px; }
/* street-sign logo: the sign is drawn at 341.2 x 64, so width follows height */
.logo-sign { --logo-h: 40px; display: block; height: var(--logo-h); width: calc(var(--logo-h) * 5.3313); }
.site-footer .logo-sign { --logo-h: 36px; }
.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; align-items: center; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 16px; color: var(--on-dark-2); white-space: nowrap; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--marigold); text-decoration-thickness: 2px; text-underline-offset: 8px; }

/* ---------- evening scenes (home hero, About banner) ---------- */
/* The sky is measured up from the street, so the warm glow always sits behind the rooftops. */
.dusk {
  position: relative; isolation: isolate; overflow-x: clip;
  background: linear-gradient(to top,
    #EDBB8A 0,
    #C9A596 calc(var(--street-h) * 0.3),
    #8C9CC0 calc(var(--street-h) * 0.72),
    #5872A3 calc(var(--street-h) * var(--sky-4, 1.2)),
    #2E4674 calc(var(--street-h) * var(--sky-5, 1.75)),
    #1A2A4A calc(var(--street-h) * var(--sky-6, 2.4)),
    var(--night) 100%);
  color: #FFFFFF;
}
.dusk::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 70%;
  background: url(images/stars.svg) 0 0 / 1600px 900px repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent);
  mask-image: linear-gradient(to bottom, #000 25%, transparent);
  opacity: 0.75; pointer-events: none;
}
.street { height: var(--street-h); pointer-events: none; }
.street img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
/* a band that continues the dark street under the page's first cards */
.straddle { --split: 96px; background: linear-gradient(to bottom, var(--street) var(--split), transparent var(--split)); }

/* ---------- hero ---------- */
.hero { padding-top: 64px; }
.hero-main { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 {
  margin: 0;
  font: 400 clamp(2.6rem, 1.4rem + 3.6vw, 4.1rem)/1.04 var(--font-display);
  letter-spacing: -0.01em; color: #FFFFFF;
}
.hero .lead { margin: 24px 0 0; max-width: 30em; text-wrap: pretty; font-size: 19px; line-height: 1.55; color: var(--on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.hero-actions .text-link { font-size: 16px; color: #FFFFFF; }
.local-note { margin: 26px 0 0; font-size: 15px; color: #FFFFFF; }
.local-note .sep { margin: 0 10px; color: var(--marigold); }
.hero .street { margin-top: clamp(28px, 4.5vw, 64px); }

/* dashboard preview: drawn at 720 x 440 and scaled to its column */
.dash-frame { position: relative; width: 100%; max-width: 684px; aspect-ratio: 720 / 440; justify-self: end; --dash-scale: 0.95; }
.dash {
  position: absolute; left: 0; top: 0; width: 720px; height: 440px;
  transform-origin: 0 0; transform: scale(var(--dash-scale));
  display: flex; padding: 6px 6px 6px 0; border-radius: 12px;
  background: var(--night-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px rgba(6, 12, 26, 0.45);
  font-family: var(--font-body); color: var(--ink); line-height: 1.2;
}
.d-side { width: 150px; flex: none; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 12px 18px; }
.d-brand { padding-left: 8px; color: var(--sign); }
.d-brand svg { display: block; width: 110px; height: calc(110px / 5.3313); }
.d-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; }
.d-nav span { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; font-size: 11px; font-weight: 500; color: var(--on-dark-2); }
.d-nav span.on { background: var(--night-soft); color: #FFFFFF; font-weight: 600; }
.d-nav .ic { width: 14px; height: 14px; }
.d-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 8px; background: var(--bg); }
.d-head { display: flex; justify-content: space-between; align-items: flex-start; }
.d-kicker { font-size: 10px; color: var(--muted); }
.d-greet { margin: 4px 0; font: 400 21px/1.2 var(--font-display); color: var(--ink); }
.d-sub { font-size: 10.5px; color: var(--text-2); }
.d-meta { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.d-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.d-avatar .ic { width: 13px; height: 13px; }
.d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.d-stat { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.d-stat-head { display: flex; align-items: center; gap: 7px; font-size: 9.5px; font-weight: 500; color: var(--text-2); }
.d-chip { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.d-chip .ic { width: 11px; height: 11px; }
.d-stat-foot { display: flex; justify-content: space-between; align-items: flex-end; }
.d-val { font: 700 20px/1.15 var(--font-body); color: var(--ink); font-variant-numeric: tabular-nums; }
.d-trend { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 9.5px; font-weight: 600; color: var(--primary); }
.d-trend .ic { width: 10px; height: 10px; }
.d-spark { width: 52px; height: 20px; display: block; }
.d-act { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); }
.d-act-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.d-range { display: flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; font-size: 9.5px; font-weight: 500; color: var(--text-2); }
.d-range .ic { width: 10px; height: 10px; }
.d-chart { flex: 1; min-height: 0; width: 100%; display: block; }

/* services: three plain cards parked across the street's edge */
.services-band { --split: 84px; padding-bottom: 112px; scroll-margin-top: calc(var(--header-h) + 16px); }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 12px; }
.svc {
  padding: 26px 28px 28px;
  border: 1px solid var(--border); border-top: 3px solid var(--marigold); border-radius: 6px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 18px 40px rgba(15, 27, 49, 0.14);
}
.svc h3 { margin: 0; font: 400 22px/1.25 var(--font-display); }
.svc p { margin: 8px 0 0; text-wrap: pretty; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* ---------- shared section scaffolding ---------- */
.section { padding-block: 112px; scroll-margin-top: 72px; }
.section-white { background: var(--surface); }
.section-night { position: relative; isolation: isolate; overflow: clip; background: var(--night); color: #FFFFFF; }
.section-night::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 55%;
  background: url(images/stars.svg) -700px -120px / 1600px 900px repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent);
  mask-image: linear-gradient(to bottom, #000 10%, transparent);
  opacity: 0.5; pointer-events: none;
}
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec-head h2 { margin: 0; font: 400 clamp(1.95rem, 1.3rem + 2.1vw, 2.7rem)/1.15 var(--font-display); letter-spacing: -0.005em; color: var(--ink); text-wrap: balance; }
.sec-head .lead { margin: 0; max-width: 42em; text-wrap: pretty; font-size: 17.5px; line-height: 1.6; color: var(--text-2); }
.section-night .sec-head h2 { color: #FFFFFF; }
.section-night .sec-head .lead { color: var(--on-dark-2); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 52px 0 0; padding: 0; list-style: none; }

/* plain items under a thin lamplight rule, like a shop's menu board */
.item { padding-top: 16px; border-top: 3px solid var(--marigold); }
.item h3 { margin: 0 0 8px; font: 400 22px/1.25 var(--font-display); color: var(--ink); }
.item p { margin: 0; text-wrap: pretty; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.item-dark h3 { color: #FFFFFF; }
.item-dark p { color: var(--on-dark-2); }

.step { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border-strong); }
.step-num { font: 400 34px/1 var(--font-display); color: var(--primary); }
.step h3 { margin: 0 0 8px; font: 400 23px/1.25 var(--font-display); color: var(--ink); }
.step p { margin: 0; text-wrap: pretty; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }

/* how it works: the team's workflow infographic, with its text held in view while the tall image scrolls */
.behind { display: grid; grid-template-columns: minmax(0, 520px) clamp(360px, 36vw, 480px); justify-content: center; gap: clamp(40px, 6vw, 96px); align-items: start; margin-top: 64px; padding: 48px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.behind-text { position: sticky; top: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.behind-text h3 { margin: 0; font: 400 clamp(1.55rem, 1.25rem + 1vw, 1.95rem)/1.2 var(--font-display); color: var(--ink); text-wrap: balance; }
.behind-text p { margin: 0; text-wrap: pretty; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.behind-text .text-link { margin-top: 4px; color: var(--primary); }
.behind-figure { margin: 0; }
.behind-figure img { display: block; width: 100%; height: auto; }

/* Waltham businesses */
.rest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 72px; align-items: center; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; margin: 44px 0 0; padding: 0; list-style: none; }
.rest-cta { margin-top: 44px; }
.inbox { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(4, 9, 20, 0.4); }
.inbox-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.inbox-title { margin: 0; font: 400 21px/1.2 var(--font-display); }
.inbox-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--primary); font: 600 12px/1.2 var(--font-body); white-space: nowrap; }
.badge-gray { background: var(--neutral); color: var(--text-2); }
.inbox ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.inbox li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 7px; background: var(--bg); }
.chip-sm { width: 36px; height: 36px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--primary); }
.chip-sm .ic { width: 18px; height: 18px; }
.row-text { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.row-detail { font-size: 13px; line-height: 1.4; color: var(--text-2); }
.row-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; font-size: 12px; color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 72px; align-items: start; }
.points { display: flex; flex-direction: column; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.points li { display: flex; align-items: center; gap: 14px; font-size: 17px; color: var(--ink); }
.points li::before, .q-list li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 2px; background: var(--marigold); }
.q-card { display: flex; flex-direction: column; gap: 24px; padding: 36px; border: 1px solid var(--border); border-top: 3px solid var(--marigold); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-card); }
.q-card h3 { margin: 12px 0 0; font: 400 26px/1.2 var(--font-display); color: var(--ink); }
.q-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.q-list li { display: flex; align-items: baseline; gap: 12px; font-size: 16px; color: var(--ink); }
.q-list li::before { transform: translateY(-2px); }
.q-note { margin: 0; font-size: 14px; color: var(--text-2); }
.q-card .btn { width: 100%; }
.q-foot { margin: -10px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
.q-or { display: flex; align-items: center; gap: 14px; margin: -6px 0; font-size: 13px; color: var(--muted); }
.q-or::before, .q-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- message pop-up (built by site.js) ---------- */
html:has(.msg-dialog[open]) { overflow: hidden; scrollbar-gutter: stable; }
.msg-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-raised);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.msg-dialog::backdrop { background: rgba(15, 27, 49, 0.6); }
.msg-dialog [hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .msg-dialog[open] { animation: msg-in 0.2s ease-out; }
  .msg-dialog[open]::backdrop { animation: msg-fade 0.2s ease-out; }
}
@keyframes msg-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes msg-fade { from { opacity: 0; } }
.msg-inner { position: relative; padding: 36px; }
.msg-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.msg-close:hover { background: var(--neutral); color: var(--ink); }
.msg-close .ic { width: 20px; height: 20px; }
.msg-title { margin: 0; padding-right: 44px; font: 400 27px/1.2 var(--font-display); color: var(--ink); }
.msg-title:focus { outline: none; }
.msg-intro { margin: 8px 0 0; max-width: 30em; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.msg-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.msg-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; margin: 0; padding: 12px 14px;
  font: 400 16px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--danger); }
.field input:user-invalid:focus-visible, .field textarea:user-invalid:focus-visible { box-shadow: 0 0 0 3px var(--danger-soft); }
.msg-status {
  display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px;
  border-radius: var(--radius); background: var(--accent-soft);
  font-size: 14px; line-height: 1.5; color: var(--ink);
}
.msg-status .ic { width: 18px; height: 18px; margin-top: 1px; color: var(--primary); }
.msg-status a { color: var(--primary); font-weight: 500; overflow-wrap: anywhere; }
.msg-status.is-error { background: var(--danger-soft); }
.msg-status.is-error .ic { color: var(--danger); }
.msg-form .btn { width: 100%; }
.msg-form .btn[disabled] { opacity: 0.7; cursor: progress; }
.msg-alt { margin: -4px 0 0; font-size: 13px; text-align: center; color: var(--muted); }
.msg-alt a { color: var(--text-2); overflow-wrap: anywhere; }
.msg-alt a:hover { color: var(--primary); }
.msg-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px 0 4px; text-align: center; }
.msg-done .chip { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--primary); }
.msg-done .chip .ic { width: 28px; height: 28px; }
.msg-done .msg-title { margin-top: 6px; padding-right: 0; }
.msg-done p { margin: 0; max-width: 26em; font-size: 15px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.msg-done .btn { margin-top: 12px; min-width: 160px; }

/* ---------- inner pages (About) ---------- */
body.inner { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.inner > main { flex: 1 0 auto; }
.page-hero { --sky-4: 1.06; --sky-5: 1.36; --sky-6: 1.62; padding-top: 96px; }
.page-hero h1 { margin: 0; max-width: 16em; font: 400 clamp(2.3rem, 1.5rem + 3vw, 3.6rem)/1.06 var(--font-display); color: #FFFFFF; text-wrap: balance; }
.page-hero .street { margin-top: clamp(24px, 3vw, 40px); }
.about-body { --split: 120px; padding-bottom: 112px; }
.about-body .wrap { padding-top: 12px; }
.mission { max-width: 880px; padding: 40px 44px; border: 1px solid var(--border); border-top: 3px solid var(--marigold); border-radius: 8px; background: var(--surface); box-shadow: 0 18px 40px rgba(15, 27, 49, 0.14); }
.mission-label { margin: 0; font: 400 20px/1.2 var(--font-display); color: var(--primary); }
.mission-text { margin: 14px 0 0; font: 400 clamp(1.15rem, 0.98rem + 0.9vw, 1.6rem)/1.5 var(--font-display); color: var(--ink); text-wrap: pretty; }
.about-soon { margin: 36px 0 0; font-size: 15px; color: var(--text-2); }

/* footer */
.site-footer { padding-block: 56px 40px; background: var(--night-deep); color: var(--on-dark-2); }
.site-footer .logo { color: var(--sign); }
.foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; }
.foot-brand p { max-width: 340px; margin: 16px 0 0; font-size: 15px; color: var(--on-dark-2); }
.foot-cols { display: flex; gap: 96px; }
.foot-h { margin: 0 0 12px; font: 400 17px/1.2 var(--font-display); color: #FFFFFF; }
.foot-cols ul { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.foot-cols a { font-size: 15px; color: var(--on-dark-2); text-decoration: none; transition: color 0.15s ease; }
.foot-cols a:hover { color: #FFFFFF; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-dark); font-size: 13px; color: var(--on-dark-3); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav-right { gap: 30px; }
  .nav-links { gap: 26px; }
}
@media (max-width: 1000px) {
  .primary-nav { display: none; }
}
@media (max-width: 1080px) {
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .dash-frame { justify-self: stretch; max-width: 720px; --dash-scale: 0.9; }
  .rest-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .inbox { max-width: 560px; }
  .br-wide { display: none; }
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .logo-sign { --logo-h: 36px; }
  .site-footer .logo-sign { --logo-h: 32px; }
  .hero { padding-top: 36px; }
  .services, .cards3 { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cards3 { gap: 28px; margin-top: 36px; }
  .services-band { --split: 76px; padding-bottom: 64px; }
  .behind { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 44px; padding: 32px; }
  .behind-text { position: static; }
  .behind-figure { width: 100%; max-width: 520px; }
  .section { padding-block: 64px; }
  .features { margin-top: 32px; }
  .rest-cta { margin-top: 32px; }
  .page-hero { padding-top: 60px; }
  .about-body { --split: 96px; padding-bottom: 72px; }
}
@media (max-width: 640px) {
  :root { --street-h: 190px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .dash-frame { --dash-scale: 0.5; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn, .rest-cta { width: 100%; }
  .q-card { padding: 24px; }
  .foot-cols { gap: 56px; }
  .mission { padding: 28px 24px; }
}
@media (max-width: 560px) {
  .behind { gap: 24px; padding: 24px 16px 16px; }
  .behind-text { padding-inline: 8px; }
  .msg-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
  .msg-inner { padding: 28px 20px 24px; }
  .msg-close { top: 12px; right: 12px; }
  .msg-title { font-size: 24px; }
  .msg-form { margin-top: 24px; gap: 16px; }
  .msg-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 380px) {
  .logo-sign { --logo-h: 32px; }
  .btn-sm { padding: 10px 14px; }
}
@media (max-width: 340px) {
  .nav { gap: 12px; }
  .logo-sign { --logo-h: 30px; }
  .btn-sm { font-size: 14px; padding: 9px 12px; }
}
