/* design\components.css: the components of design\components.md, styled from system.css's tokens only. Loaded on every
   page after core.css. */

/* ---------- layout ---------- */
.wrap { box-sizing: border-box; width: 100%; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.part { position: relative; padding-block: var(--section-y); }
.part__head { max-width: 760px; }
.part__head--center { margin-inline: auto; text-align: center; }
.part__title { margin: 0; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance; }
.part__lead { margin: var(--space-3) 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-quiet); text-wrap: pretty; }
.part__head--center .part__lead { margin-inline: auto; max-width: 640px; }
h1, h2, h3 { font-family: var(--font-display); }
a { color: var(--c-brand); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; border-radius: 4px; }

/* the circuit ground: faint traces with soft nodes (the current site's circuit tile, redrawn) */
.traces { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%233B81B5' stroke-opacity='.2' stroke-width='1'%3E%3Cpath d='M0 44h66l22 22h64'/%3E%3Cpath d='M152 66v52l22 22h86'/%3E%3Cpath d='M34 260v-64l32-32h44'/%3E%3Cpath d='M196 0v32l-22 22'/%3E%3Cpath d='M110 164h44l22 22v74'/%3E%3C/g%3E%3Cg fill='%2302E4FF' fill-opacity='.42'%3E%3Ccircle cx='152' cy='66' r='2.6'/%3E%3Ccircle cx='110' cy='164' r='2.6'/%3E%3Ccircle cx='174' cy='54' r='2'/%3E%3C/g%3E%3C/svg%3E"); background-size: 260px 260px; }

/* a band's top edge: one trace line with a node, the spark running along it as the band scrolls in */
.trace-edge { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(2, 228, 255, .5) 12%, rgba(59, 129, 181, .35) 40%, rgba(59, 129, 181, .18) 100%); pointer-events: none; }
.trace-edge::before { content: ""; position: absolute; left: 12%; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--c-ink); box-shadow: 0 0 0 1.5px var(--c-brand), 0 0 14px rgba(2, 228, 255, .6); }
.trace-edge::after { content: ""; position: absolute; left: 12%; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 10px 3px rgba(2, 228, 255, .7); opacity: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .trace-edge::after { animation: spark-run linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
  }
}
@keyframes spark-run { 0% { left: 12%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 96%; opacity: 0; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; box-sizing: border-box; min-height: 48px; padding: .8em 1.4em; border: 0; border-radius: var(--radius-pill); font: 600 var(--fs-ui)/1.2 var(--font-ui); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-fast); }
.btn--main { background: var(--c-accent); color: var(--c-on-brand); box-shadow: 0 0 0 1px rgba(81, 217, 232, .4), 0 8px 26px rgba(2, 228, 255, .22); }
.btn--main:hover { background: var(--c-accent-hover); box-shadow: 0 0 0 1px rgba(2, 228, 255, .7), 0 10px 34px rgba(2, 228, 255, .38); transform: translateY(-1px); }
.btn--main:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--c-on-ink); box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--c-brand), 0 0 22px rgba(2, 228, 255, .25); }

/* ---------- the header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); background: linear-gradient(180deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .78)); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgba(2, 228, 255, .12); }
.site-header__in { box-sizing: border-box; display: flex; align-items: center; gap: var(--space-4); height: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.site-header__logo { display: block; flex: none; line-height: 0; }
.site-header__logo img { display: block; height: 64px; width: auto; }
.site-header__nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav__link, .nav__group { display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px; border: 0; background: none; color: rgba(246, 251, 253, .9); font: 500 var(--fs-ui)/1 var(--font-ui); text-decoration: none; cursor: pointer; }
.nav__link:hover, .nav__group:hover, .nav__link[aria-current] { color: var(--c-brand); }
.nav__link[data-planned], .nav__subitem[data-planned], .site-footer a[data-planned] { cursor: default; }
.nav__caret { transition: transform var(--dur-fast) var(--ease-out); }
.nav__item--group { position: relative; }
.nav__sub { position: absolute; top: calc(100% + 14px); left: 50%; z-index: 2; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px; width: max-content; margin: 0; padding: 12px; list-style: none; background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); border-radius: var(--radius-m); box-shadow: var(--glow-soft), var(--shadow-l); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity var(--dur-fast), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-fast); }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item--group:hover .nav__sub, .nav__item--group:focus-within .nav__sub, .nav__group[aria-expanded="true"] + .nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.nav__group[aria-expanded="true"] .nav__caret, .nav__item--group:hover .nav__caret { transform: rotate(180deg); }
.nav__subitem { display: grid; gap: 3px; padding: 12px 14px; border-radius: var(--radius-s); color: var(--c-on-ink); text-decoration: none; }
.nav__subitem:hover { background: rgba(2, 228, 255, .08); }
.nav__subname { font: 600 var(--fs-ui)/1.25 var(--font-ui); }
.nav__subline { font-size: var(--fs-micro); line-height: 1.35; color: var(--c-quiet); }
.nav__foot { display: none; }
.site-header__phone { display: inline-flex; align-items: center; gap: 9px; flex: none; color: var(--c-on-ink); font: 600 var(--fs-ui)/1 var(--font-ui); text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--c-brand); }
.site-header__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 10px rgba(2, 228, 255, .9); }
.site-header__call { display: none; }
.site-header__cta { flex: none; min-height: 44px; padding-inline: 1.2em; }
.site-header__menu { display: none; }
body:not(.page-home) main { padding-top: var(--header-h); }

@media (max-width: 1180px) {
  .site-header__phone .site-header__num { display: none; }
  .site-header__phone .site-header__call { display: inline; }
}
@media (max-width: 1023px) {
  :root { --header-h: 68px; }
  .site-header__logo img { height: 52px; }
  .site-header__cta { display: none; }
  .site-header__phone { margin-left: auto; padding: 9px 14px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .45); }
  .site-header__menu { display: inline-grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(246, 251, 253, .06); color: var(--c-on-ink); cursor: pointer; }
  .site-header__bars, .site-header__bars::before, .site-header__bars::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast); }
  .site-header__bars { position: relative; }
  .site-header__bars::before, .site-header__bars::after { content: ""; position: absolute; left: 0; }
  .site-header__bars::before { top: -6px; }
  .site-header__bars::after { top: 6px; }
  .site-header[data-open] .site-header__bars { background: transparent; }
  .site-header[data-open] .site-header__bars::before { transform: translateY(6px) rotate(45deg); }
  .site-header[data-open] .site-header__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-header__nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; margin: 0; padding: var(--space-4) var(--gutter) var(--space-5); overflow-y: auto; background: var(--c-ink); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--dur-fast), transform var(--dur-med) var(--ease-out), visibility 0s linear var(--dur-fast); }
  .site-header[data-open] .site-header__nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-header[data-open] { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--c-line); }
  .nav__link, .nav__group { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1.12rem; }
  .nav__sub { position: static; display: none; width: auto; grid-template-columns: 1fr; padding: 0 0 12px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav__sub::before { content: none; }
  .nav__group[aria-expanded="true"] + .nav__sub { display: grid; transform: none; }
  .nav__item--group:hover .nav__sub { transform: none; }
  .nav__item--group:hover .nav__caret { transform: none; }
  .nav__group[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }
  .nav__subitem { padding: 10px 12px; }
  .nav__foot { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
  .nav__phone { color: var(--c-on-ink); font: 600 1.25rem/1 var(--font-ui); text-decoration: none; }
}

/* ---------- the stop icon ---------- */
.stop { position: absolute; z-index: 8; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(4, 10, 14, .62); color: var(--c-on-ink); box-shadow: inset 0 0 0 1px rgba(246, 251, 253, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; opacity: .78; transition: opacity var(--dur-fast), box-shadow var(--dur-fast); }
.stop:hover, .stop:focus-visible { opacity: 1; box-shadow: inset 0 0 0 1px var(--c-brand); }

/* ---------- glass cards (over footage and photos) ---------- */
.glass { box-sizing: border-box; position: relative; border-radius: var(--radius-m); background: var(--glass); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.35); backdrop-filter: blur(var(--glass-blur)) saturate(1.35); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 40px rgba(0, 0, 0, .45); color: var(--c-on-ink); }
.glass--live { box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px rgba(2, 228, 255, .55), 0 0 26px rgba(2, 228, 255, .28), 0 18px 40px rgba(0, 0, 0, .45); }

/* a framed stage for footage and photos */
.stage { position: relative; overflow: hidden; border-radius: var(--radius-l); background: var(--c-navy); box-shadow: var(--glow-soft), var(--shadow-l); isolation: isolate; }
.stage > video, .stage > .stage__media > video, .stage__media > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; }
.stage__media { position: absolute; inset: 0; overflow: hidden; }

/* ---------- the form box ---------- */
.formbox { position: relative; box-sizing: border-box; border-radius: var(--radius-l); padding: clamp(18px, 2.2vw, 26px); background: var(--glass-strong); -webkit-backdrop-filter: blur(20px) saturate(1.3); backdrop-filter: blur(20px) saturate(1.3); box-shadow: var(--glow), var(--shadow-l); scroll-margin-top: calc(var(--header-h) + 16px); }
.formbox__form { position: relative; margin: 0; }
.formbox__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.formbox__q { float: left; box-sizing: border-box; width: 100%; margin: 0 0 14px; padding: 0 64px 0 0; font: 700 1.08rem/1.25 var(--font-display); letter-spacing: -.01em; color: var(--c-on-ink); }
.formbox__q + * { clear: both; }
.formbox__marks { position: absolute; top: 7px; right: 0; display: flex; gap: 6px; }
.formbox__mark { width: 22px; height: 4px; border-radius: 4px; background: rgba(246, 251, 253, .18); }
.formbox__mark[aria-current="step"], .formbox__mark[data-kit-past] { background: var(--c-brand); box-shadow: 0 0 8px rgba(2, 228, 255, .7); }
.formbox__next { display: none; }
.formbox__step:focus-within .formbox__next:focus-visible { display: inline-flex; margin-top: 12px; }
.formbox__echo { margin: -4px 0 14px; font-size: var(--fs-small); color: var(--c-quiet); }
.formbox__echo b { color: var(--c-brand); font-weight: 600; }
.formbox__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formbox__fields .field--wide { grid-column: 1 / -1; }
.formbox__actions { display: flex; align-items: center; gap: var(--space-3); margin-top: 16px; }
.formbox__actions .btn { flex: 1; }
.formbox__back { flex: none; padding: 12px 6px; border: 0; background: none; color: var(--c-quiet); font: 500 var(--fs-small)/1 var(--font-ui); cursor: pointer; }
.formbox__back:hover { color: var(--c-on-ink); }
.formbox__note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: var(--fs-small); color: var(--c-quiet); }
.formbox__note::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 8px rgba(2, 228, 255, .8); }
.formbox__form[data-kit-sending] .btn { opacity: .7; }

/* the choice tiles: each choice shown by its own small picture, drawn in the site's interface */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; min-height: 78px; padding: 10px 14px 10px 10px; border-radius: var(--radius-m); background: rgba(11, 23, 38, .82); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .4); color: var(--c-on-ink); cursor: pointer; transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-fast), transform var(--dur-fast) var(--ease-out); }
.tile:hover { box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .7); background: rgba(16, 32, 52, .9); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:has(input:focus-visible) { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.tile[data-kit-on] { background: rgba(2, 228, 255, .1); box-shadow: inset 0 0 0 1.5px var(--c-brand), 0 0 22px rgba(2, 228, 255, .3); transform: scale(1.015); }
.tile__pic { display: block; width: 76px; height: 54px; border-radius: 10px; background: var(--c-ink-soft); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .35); overflow: hidden; }
.tile__pic svg { display: block; width: 100%; height: 100%; }
.tile__pic .lit { transition: fill var(--dur-med), stroke var(--dur-med), opacity var(--dur-med); }
.tile:not([data-kit-on]):not(:hover) .tile__pic .lit { opacity: .55; }
.tile__label { font: 600 .95rem/1.25 var(--font-ui); }
.tp-frame { fill: var(--c-navy); stroke: rgba(59, 129, 181, .75); stroke-width: 1; }
.tp-ring { fill: none; stroke: var(--c-quiet); stroke-width: 1.2; }
.tp-dim { fill: rgba(169, 180, 186, .42); }
.tp-cell { fill: rgba(59, 129, 181, .28); }
.tp-lit { fill: var(--c-brand); }
.tp-ink { fill: var(--c-ink); }
.tp-wave { fill: none; stroke: var(--c-brand); stroke-width: 1.6; stroke-linecap: round; }
.tp-check { fill: none; stroke: var(--c-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tp-trace { fill: none; stroke: rgba(59, 129, 181, .85); stroke-width: 1.4; }
.tp-node { fill: var(--c-ink); stroke: var(--c-brand); stroke-width: 1.3; }
.tp-spark { fill: var(--c-brand); filter: drop-shadow(0 0 3px rgba(2, 228, 255, .9)); }
.field { display: grid; gap: 6px; }
.field__label { font: 500 var(--fs-small)/1.2 var(--font-ui); color: var(--c-quiet); }
.field__input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 0; border-radius: var(--radius-s); background: rgba(4, 10, 14, .85); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .55); color: var(--c-on-ink); font: 400 1rem/1.2 var(--font-text); transition: box-shadow var(--dur-fast); }
.field__input::placeholder { color: rgba(169, 180, 186, .6); }
.field__input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--c-brand), 0 0 16px rgba(2, 228, 255, .2); }
.field[data-kit-invalid] .field__input { box-shadow: inset 0 0 0 1.5px var(--c-alert); }
.field__error, .tiles .field__error { grid-column: 1 / -1; margin: 0; font-size: var(--fs-micro); line-height: 1.35; color: var(--c-alert-text); }

/* ---------- services named inside a part, lit as its picture reaches them ---------- */
.svcs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.svc { display: block; padding: 14px 16px; border-radius: var(--radius-m); background: rgba(11, 23, 38, .94); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .3); color: var(--c-on-ink); text-decoration: none; transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med); }
.svc b { display: block; font: 700 1rem/1.3 var(--font-display); }
.svc span { display: block; margin-top: 3px; font-size: var(--fs-small); line-height: 1.4; color: var(--c-quiet); }
.svc[data-lit] { background: rgba(2, 228, 255, .08); box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .75), 0 0 24px rgba(2, 228, 255, .18); }
.svc[data-lit] b { color: var(--c-brand); }
.svcs--two { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .svcs--two { grid-template-columns: 1fr; } }
/* the form box on a phone (moved from home.css in Part 2, unchanged, so every page's form box shares it) */
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 10px; text-align: left; }
  .tile__pic { width: 100%; height: 48px; }
  .tile__label { font-size: .875rem; }
  .formbox__fields { grid-template-columns: 1fr; }
}

/* ---------- bands ---------- */
.band--grad { background: var(--grad-band); }
.band--navy { background: var(--c-navy); }
.band--soft { background: var(--c-ink-soft); }
.band--light { background: var(--c-paper); color: var(--c-navy); }
.band--light .part__lead { color: var(--c-quiet-on-paper); }
.band--light a { color: var(--c-brand-text); }

/* ---------- the FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: var(--space-5); }
.faq details { border-radius: var(--radius-m); background: var(--c-white); box-shadow: 0 1px 0 rgba(11, 23, 38, .06), inset 0 0 0 1px rgba(11, 23, 38, .1); transition: box-shadow var(--dur-med); }
.faq details[open] { box-shadow: inset 0 0 0 1.5px rgba(10, 110, 133, .55), 0 12px 30px rgba(11, 23, 38, .08); }
.faq summary { position: relative; display: block; padding: 20px 56px 20px 22px; font: 700 1.06rem/1.35 var(--font-display); color: var(--c-navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--c-brand-text); border-bottom: 2px solid var(--c-brand-text); transform: rotate(45deg); transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(4px) rotate(225deg); }
.faq__a { margin: 0; padding: 0 22px 22px; color: var(--c-text-on-paper); line-height: 1.65; }

/* ---------- the footer ---------- */
.site-footer { position: relative; display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(130px, 1fr)) minmax(220px, 1.2fr); gap: var(--space-5) var(--space-4); box-sizing: border-box; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding: var(--space-6) var(--gutter) var(--space-5); color: var(--c-quiet); font-size: var(--fs-small); }
.site-footer::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: linear-gradient(90deg, rgba(2, 228, 255, .45), rgba(59, 129, 181, .2) 50%, transparent); }
.site-footer__logo img { display: block; width: auto; height: 160px; }
.site-footer__line { max-width: 280px; margin: var(--space-3) 0 0; line-height: 1.5; }
.site-footer__title { margin: 0 0 14px; color: var(--c-on-ink); font: 700 var(--fs-ui)/1 var(--font-display); }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--c-quiet); text-decoration: none; }
.site-footer a:hover { color: var(--c-brand); }
.site-footer__contact { display: grid; align-content: start; gap: 10px; }
.site-footer__contact a:first-child { color: var(--c-on-ink); font: 700 1.15rem/1.2 var(--font-display); }
.site-footer__contact address { font-style: normal; line-height: 1.5; }
.site-footer__legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--c-line); }
.site-footer__legal p { margin: 0; }
.site-footer__legal ul { display: flex; gap: var(--space-4); }
@media (max-width: 1023px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
  .site-footer__logo img { height: 120px; }
}
@media (max-width: 520px) {
  .site-footer { grid-template-columns: 1fr 1fr; padding-bottom: calc(var(--space-5) + 64px); }
  .site-footer__col:last-of-type { grid-column: 1 / -1; }
}

/* ---------- the exit popup ---------- */
.exit { box-sizing: border-box; width: min(860px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--c-on-ink); overflow: visible; }
.exit::backdrop { background: rgba(0, 4, 8, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-kit-modal] { overflow: hidden; }
.exit__in { position: relative; display: grid; grid-template-columns: 0.95fr 1.05fr; overflow: hidden; border-radius: var(--radius-l); background: var(--c-navy); box-shadow: var(--glow), var(--shadow-l); }
.exit[data-kit-on] .exit__in { animation: exit-in var(--dur-med) var(--ease-out) both; }
@keyframes exit-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.exit__pic { position: relative; min-height: 360px; background: var(--grad-band); overflow: hidden; }
.exit__body { padding: clamp(24px, 3.2vw, 40px); }
.exit__title { margin: 0; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 800; line-height: 1.1; letter-spacing: var(--track-tight); }
.exit__lead { margin: 12px 0 20px; color: var(--c-quiet); line-height: 1.55; }
.exit__form { display: grid; gap: 12px; }
.exit__send { margin-top: 6px; }
.exit__close { position: absolute; top: 12px; right: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(4, 10, 14, .7); color: var(--c-on-ink); box-shadow: inset 0 0 0 1px rgba(246, 251, 253, .2); cursor: pointer; }
.exit__close:hover { box-shadow: inset 0 0 0 1px var(--c-brand); }
.report { position: absolute; box-sizing: border-box; border-radius: 12px; background: var(--c-paper); color: var(--c-navy); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.report--back { left: 20%; top: 12%; width: 62%; height: 70%; transform: rotate(-7deg); background: var(--c-paper-alt); }
.report--front { left: 12%; top: 18%; width: 72%; padding: 20px 20px 18px; transform: rotate(2deg); }
.report__title { margin: 0; font: 800 1.02rem/1.2 var(--font-display); letter-spacing: -.01em; }
.report__for { margin: 4px 0 14px; font-size: var(--fs-micro); color: var(--c-quiet-on-paper); }
.report__rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.report__row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; background: var(--c-white); box-shadow: inset 0 0 0 1px rgba(11, 23, 38, .08); font: 600 .84rem/1.2 var(--font-ui); }
.report__mark { flex: none; width: 16px; height: 16px; border-radius: 50%; }
.report__row--good .report__mark { background: var(--c-brand-text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3 7 10.7l4.6-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.report__row--fix .report__mark { background: var(--c-fix) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.5v4.4M8 11.2v.3' fill='none' stroke='%23fff' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.report__next { display: flex; justify-content: space-between; margin: 14px 0 0; padding-top: 10px; border-top: 1px solid rgba(11, 23, 38, .12); font: 700 .84rem/1.2 var(--font-ui); color: var(--c-brand-text); }
@media (max-width: 760px) {
  .exit__in { grid-template-columns: 1fr; }
  .exit__pic { display: none; }
}

/* ---------- the call bar on the phone ---------- */
.callbar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 55; display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: var(--radius-pill); background: rgba(4, 10, 14, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--glow-soft), var(--shadow-m); transform: translateY(140%); transition: transform var(--dur-med) var(--ease-out); }
.callbar[data-kit-on] { transform: none; }
.callbar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: var(--radius-pill); font: 600 .92rem/1 var(--font-ui); text-decoration: none; white-space: nowrap; }
.callbar__call { color: var(--c-on-ink); box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .5); }
.callbar__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 8px rgba(2, 228, 255, .9); }
.callbar__cta { background: var(--c-accent); color: var(--c-on-brand); }
@media (min-width: 900px) { .callbar { display: none; } }
@media (max-width: 560px) { .callbar__num { display: none; } .callbar a { padding: 0 14px; } }

/* ---------- the thank-you, legal and 404 pages ---------- */
.thanks { box-sizing: border-box; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--space-6); max-width: calc(var(--max-w) + 2 * var(--gutter)); min-height: calc(100vh - var(--header-h) - 120px); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.thanks__headline { margin: 0; font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); letter-spacing: var(--track-tight); text-wrap: balance; }
.thanks__body { margin: var(--space-4) 0 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-quiet); }
.thanks__body a { color: var(--c-brand); font-weight: 600; }
.thanks__goal { margin: var(--space-4) 0 0; padding: 14px 18px; border-radius: var(--radius-m); background: rgba(2, 228, 255, .07); box-shadow: inset 0 0 0 1px rgba(2, 228, 255, .35); }
.thanks__goal b { color: var(--c-brand); }
.thanks__next { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.slot { position: relative; padding: 26px; border-radius: var(--radius-l); background: var(--c-navy); box-shadow: var(--glow), var(--shadow-l); }
.slot__pic { height: 230px; margin: -26px -26px 22px; border-radius: var(--radius-l) var(--radius-l) 0 0; overflow: hidden; }
.slot__pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 34% 22%; }
.slot__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font: 700 1.05rem/1.2 var(--font-display); }
.slot__head span { font: 500 var(--fs-small)/1 var(--font-ui); color: var(--c-quiet); }
.steps { position: relative; display: grid; gap: 22px; margin: 0; padding: 0 0 0 30px; list-style: none; }
.steps::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--c-brand), rgba(59, 129, 181, .35)); }
.steps__item { position: relative; }
.steps__node { position: absolute; left: -28px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-ink); box-shadow: 0 0 0 1.5px var(--c-brand), 0 0 10px rgba(2, 228, 255, .5); }
.steps__item--now .steps__node { background: var(--c-paper); box-shadow: 0 0 12px 4px rgba(2, 228, 255, .8); }
.steps__item p { margin: 0; }
.steps__item b { display: block; font: 700 1.02rem/1.3 var(--font-display); }
.steps__item p span { display: block; margin-top: 3px; font-size: var(--fs-small); color: var(--c-quiet); }
@media (max-width: 860px) { .thanks { grid-template-columns: 1fr; gap: var(--space-5); } }
.legal { color: var(--c-on-ink); overflow-wrap: break-word; } /* a web address written out in a policy breaks at the phone's edge */
.legal h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--track-tight); }
.not-found h1 { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); }

/* The questions on the silver band (moved from home.css in Part 2, unchanged, so every page's FAQ shares them). */
.faq-part__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-part .faq { margin-top: 0; }
@media (max-width: 900px) { .faq-part__grid { grid-template-columns: 1fr; } .faq-part .faq { margin-top: var(--space-2); } }

/* The close: footage in a stage with one settled glass card, the words and the form box (moved from home.css in
   Part 2, unchanged, so every page's close shares it; each page gives its own clip, its crop and its card). */
.close { background: radial-gradient(900px 500px at 20% 60%, rgba(36, 91, 128, .35), transparent 70%), var(--c-ink); }
.close__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.close__clip { aspect-ratio: 3 / 2; }
.close__clip video { object-position: 50% 25%; }
.close__card { position: absolute; left: 50%; bottom: 7%; z-index: 2; display: flex; align-items: center; gap: 14px; width: min(340px, 74%); padding: 14px 16px; box-sizing: border-box; background: var(--glass-strong); transform: translateX(-50%); }
.close__card p { margin: 0; }
.close__card b { display: block; font: 700 1.05rem/1.2 var(--font-display); }
.close__card p span { display: block; margin-top: 3px; font-size: var(--fs-small); color: var(--c-quiet); }
.close__cal { display: grid; flex: none; width: 56px; overflow: hidden; border-radius: 10px; background: var(--c-paper); color: var(--c-navy); text-align: center; }
.close__cal span { padding: 4px 0; background: var(--c-brand); font: 700 var(--fs-micro)/1 var(--font-ui); text-transform: uppercase; color: var(--c-ink); }
.close__cal b { padding: 7px 0; font: 800 1rem/1 var(--font-display); }
.close__stop { top: 14px; right: 14px; }
.close__title { font-size: var(--fs-h1); }
.close__form { margin-top: var(--space-4); }
.close__call { margin: 18px 0 0; color: var(--c-quiet); }
.close__call a { color: var(--c-on-ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(2, 228, 255, .6); }
@media (max-width: 1023px) { .close__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .close__card { width: 86%; padding: 10px 12px; } .close__card b { font-size: .95rem; } }
/* Part 2: a close card's icon in place of the calendar (a call, a check, a payment). */
.close__icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c-brand); color: var(--c-ink); box-shadow: 0 0 18px rgba(2, 228, 255, .55); }
.close__icon svg { width: 22px; height: 22px; }
.close__icon--pay { background: var(--c-good); box-shadow: 0 0 18px rgba(52, 199, 123, .45); }

/* Part 2: the before-and-after switch (two radios; the part shows each side with :has([value="after"]:checked)). */
.switch { position: relative; z-index: 6; display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 300px; box-sizing: border-box; padding: 4px; border-radius: var(--radius-pill); background: var(--glass-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(59, 129, 181, .5), var(--shadow-m); isolation: isolate; }
.switch__opt { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; padding: 0 18px; border-radius: var(--radius-pill); font: 600 var(--fs-ui)/1 var(--font-ui); color: var(--c-quiet); white-space: nowrap; cursor: pointer; transition: color var(--dur-med) var(--ease-out); }
.switch__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.switch__opt:has(input:checked) { color: var(--c-on-brand); }
.switch__opt:has(input:focus-visible) { outline: 2px solid var(--c-brand); outline-offset: 3px; }
.switch__opt:not(:has(input:checked)):hover { color: var(--c-on-ink); }
.switch__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-pill); background: var(--c-accent); box-shadow: 0 0 18px rgba(2, 228, 255, .45); transition: transform var(--dur-med) var(--ease-out), background-color var(--dur-med); }
.switch:has([value="before"]:checked) .switch__thumb { background: var(--c-paper); box-shadow: none; }
.switch:has([value="after"]:checked) .switch__thumb { transform: translateX(100%); }

/* Part 2: the Contact page's full form (the business name, the best time to call as three tiles, a message). */
.field--times { min-width: 0; margin: 0; padding: 0; border: 0; }
.field--times .field__label { padding: 0; margin-bottom: 6px; }
.tiles--three { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile--small { grid-template-columns: 1fr; justify-items: center; gap: 6px; min-height: 0; padding: 10px 8px; text-align: center; }
.tile--small .tile__pic { width: 64px; height: 40px; }
.field__opt { color: rgba(169, 180, 186, .75); }
.field__input--area { min-height: 92px; resize: vertical; line-height: 1.45; }

/* F2 (16 Nov): the blog. The post cards (the Blog page's list, and "More from the blog" under each post); a post's own
   page (its title, date and picture on the ink, the picture reaching down onto the silver reading band, James's text on
   the band); and the blog's call to action (the form's first step on the gradient band). */
.post-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.post-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-l); background: var(--c-navy); color: var(--c-on-ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-m); transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.post-card:hover { box-shadow: var(--glow), var(--shadow-l); transform: translateY(-3px); }
.post-card:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 4px; }
.post-card__pic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-navy-2); }
.post-card__pic img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); transition: transform var(--dur-med) var(--ease-out); }
.post-card:hover .post-card__pic img { transform: scale(1.03); }
.post-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: clamp(18px, 2vw, 26px) clamp(18px, 2.2vw, 28px) clamp(22px, 2.4vw, 30px); }
.post-card__meta { font-size: var(--fs-micro); line-height: 1.3; color: var(--c-quiet); }
.post-card__title { margin: 0; font: 800 clamp(1.3rem, 1.02rem + 1vw, 1.8rem)/var(--lh-snug) var(--font-display); letter-spacing: var(--track-tight); text-wrap: balance; }
.post-cards--three .post-card__title { font-size: var(--fs-h3); }
.post-card__line { font-size: var(--fs-small); line-height: 1.55; color: rgba(246, 251, 253, .84); text-wrap: pretty; }
.post-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font: 600 var(--fs-ui)/1.2 var(--font-ui); color: var(--c-brand); }
.post-card__more svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.post-card:hover .post-card__more svg { transform: translateX(3px); }
@media (min-width: 761px) and (max-width: 1000px) {
  .post-cards--three { grid-template-columns: minmax(0, 1fr); }
  .post-cards--three .post-card { flex-direction: row; }
  .post-cards--three .post-card__pic { flex: 0 0 40%; aspect-ratio: auto; min-height: 210px; }
}
@media (max-width: 760px) { .post-cards, .post-cards--three { grid-template-columns: minmax(0, 1fr); } }

.post-top { --post-paper: clamp(80px, 12vw, 190px); padding-top: clamp(28px, 4.4vw, 60px); background: linear-gradient(180deg, var(--c-ink) calc(100% - var(--post-paper)), var(--c-paper) calc(100% - var(--post-paper))); }
.post-top__in { max-width: calc(1040px + 2 * var(--gutter)); }
.post-top__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 600 var(--fs-ui)/1 var(--font-ui); color: var(--c-brand); text-decoration: none; }
.post-top__back svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.post-top__back:hover svg { transform: translateX(-3px); }
.post-top__title { max-width: 880px; margin: 10px 0 0; font: 800 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-tight); text-wrap: balance; }
.post-top__meta { margin: 16px 0 0; font-size: var(--fs-small); color: var(--c-quiet); }
.post-top__pic { position: relative; aspect-ratio: 16 / 9; margin: clamp(26px, 3.4vw, 44px) 0 0; overflow: hidden; border-radius: var(--radius-l); background: var(--c-navy); box-shadow: var(--glow-soft), var(--shadow-l); }
.post-top__pic img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.post { padding-top: clamp(40px, 5vw, 72px); }
.post__body { max-width: 720px; margin-inline: auto; font-size: clamp(1.04rem, .98rem + .28vw, 1.17rem); line-height: 1.75; color: var(--c-text-on-paper); }
.post__body > :first-child { margin-top: 0; }
.post__body p { margin: 0 0 1.1em; }
.post__body h2 { margin: 1.8em 0 .5em; font: 800 clamp(1.3rem, 1.12rem + .7vw, 1.65rem)/1.25 var(--font-display); letter-spacing: -.015em; color: var(--c-navy); text-wrap: balance; }
.post__body strong { font-weight: 700; color: var(--c-navy); }
.post__body ul { margin: 0 0 1.2em; padding-left: 1.25em; }
.post__body li { margin: .5em 0; padding-left: .2em; }
.post__body li::marker { color: var(--c-brand-text); }
.post__body .post__last { margin: 2em 0 0; padding: 18px 22px; border-radius: 0 var(--radius-m) var(--radius-m) 0; background: var(--c-white); box-shadow: inset 3px 0 0 var(--c-brand-text), 0 1px 0 rgba(11, 23, 38, .06); font-size: 1.08em; line-height: 1.55; }
.post-more__head { margin-bottom: clamp(24px, 3vw, 40px); }

.post-cta__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.post-cta__title { font-size: var(--fs-h1); }
.post-cta__lead { color: rgba(246, 251, 253, .86); }
@media (max-width: 1023px) { .post-cta__grid { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__pic img, .post-card__more svg, .post-top__back svg { transition: none; }
  .switch__thumb, .switch__opt { transition: none; }
  .btn, .tile, .nav__sub, .callbar, .site-header__nav { transition: none; }
  .exit[data-kit-on] .exit__in { animation: none; }
}
