/* Artisano site styles. Tokens live in tokens.css; page-only rules in pages/{key}.css. See docs/COMPONENTS.md.
   html.js is set by flag.js before first paint, so anything hidden for JS is never hidden without it. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-disp); font-weight: 600; letter-spacing: -.015em; color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.c { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 860px) { .c { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }

/* ---------- Buttons and text links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 16px/1 var(--f-body); padding: 15px 22px; text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, transform .12s; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-p { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn-p:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-s { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-s:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.tl { font-weight: 600; color: var(--link); text-decoration: none; padding-bottom: 3px; font-family: var(--f-body);
  /* Underline in the text colour; on hover an accent line draws over it from the left. */
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat, linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat;
  transition: background-size .3s cubic-bezier(.2, .7, .2, 1); }
.tl:hover, .tl:focus-visible { background-size: 100% 2px, 100% 1.5px; }
/* Primary button on navy bands: white fill, blue border, navy text; fills blue on hover. Fixed colours (not tokens)
   because the navy bands stay navy in dark mode too. */
.hero .btn-p, .cta .btn-p, .phero .btn-p { background: #ffffff; border-color: var(--blue); color: var(--navy); }
.hero .btn-p:hover, .cta .btn-p:hover, .phero .btn-p:hover { background: var(--blue); border-color: var(--blue); color: #ffffff; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; color: var(--hdr-fg); border-bottom: 1px solid var(--hdr-line);
  background: var(--hdr-bg); background: color-mix(in srgb, var(--hdr-bg) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.logo svg { width: 24px; height: auto; color: var(--accent-ink); }
.logo span { font: var(--f-logo); letter-spacing: -.01em; }
.nav { position: relative; display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn), .dd { font: 500 16px var(--f-body); color: var(--hdr-fg-2); background: none; border: 0; padding: 8px 12px; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid transparent; }
.nav > a:not(.btn):hover, .dd:hover, .dd[aria-expanded="true"] { color: var(--hdr-fg); }
.nav > a:not(.btn)[aria-current="page"], .dd.on { color: var(--hdr-fg); border-bottom-color: var(--accent); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.dd[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-1px); }
.navcta { margin-left: 10px; padding: 10px 15px; font-size: 14.5px; background: var(--nav-btn-bg); border-color: var(--nav-btn-bg); color: var(--nav-btn-fg); }
.navcta:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: var(--btn-fg); }
.burger { display: none; font: 600 15px var(--f-body); background: none; color: var(--hdr-fg); border: 2px solid currentColor; padding: 7px 12px; min-height: 44px; min-width: 44px; cursor: pointer; }

/* Dropdowns. Closed by default; JS opens them with .is-open. Without JS they open on hover and keyboard focus. */
.dd-w { position: static; }
.dd-w.rel { position: relative; }
.ddm { display: none; position: absolute; top: calc(100% + 11px); right: 0; width: min(780px, calc(100vw - 32px)); background: var(--mega-bg); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgb(11 31 61 / .4); padding: 10px; z-index: 40; }
.dd-w.is-open .ddm { display: block; }
@media (min-width: 1001px) {
  .dd-w.is-open .ddm { animation: dd-in .18s cubic-bezier(.2, .7, .2, 1); }
  /* Menu items in the middle of the bar, "Start a Project" on the right */
  .nav { flex: 1; }
  .nav > :first-child { margin-left: auto; }
  .navcta { margin-left: auto; }
  .dd-w:not(.rel) .ddm { left: 50%; right: auto; margin-left: calc(min(780px, 100vw - 32px) / -2); }
}
@keyframes dd-in { from { opacity: 0; transform: translateY(-6px); } }
html:not(.js) .dd-w:hover .ddm, html:not(.js) .dd-w:focus-within .ddm { display: block; }
.ddm.narrow { width: 300px; left: 0; right: auto; padding: 10px 10px 16px; }
.ddg { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.ddm ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ddm li a { display: grid; gap: 3px; padding: 14px 16px; text-decoration: none; border-left: 3px solid transparent; }
.ddm li a:hover, .ddm li a:focus-visible { background: var(--bg-2); border-left-color: var(--accent); }
.ddm li b { font: 700 17.5px var(--f-disp); color: var(--ink); }
.ddm li small { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.ddm .plain li a { padding: 10px 14px; }
.ddm.narrow .tl { display: inline-block; margin: 8px 14px 0; }
.promo { background: var(--add-bg); color: var(--add-fg); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.promo b { font: 700 21.5px/1.2 var(--f-disp); }
.promo p { color: var(--add-fg-2); font-size: 15.5px; flex: 1; }
.promo .tl { color: var(--add-fg); align-self: flex-start; }

@media (max-width: 1000px) {
  .js .burger { display: inline-flex; }
  .js .nav { display: none; }
  .hdr.is-open { max-height: 100vh; max-height: 100dvh; overflow-y: auto; background: var(--hdr-bg); }
  body.menu-open { overflow: hidden; }
  html:not(.js) .bar, .hdr.is-open .bar { flex-wrap: wrap; height: auto; min-height: 60px; padding-block: 10px; }
  html:not(.js) .nav, .hdr.is-open .nav { display: grid; width: 100%; order: 3; gap: 0; padding-top: 8px; }
  html:not(.js) .nav > a:not(.btn), html:not(.js) .dd, .hdr.is-open .nav > a:not(.btn), .hdr.is-open .dd { padding: 14px 0; border-bottom: 1px solid var(--hdr-line); justify-content: space-between; width: 100%; }
  .dd-w { width: 100%; }
  .navcta { margin: 16px 0 0; justify-self: start; }
  .ddm, .ddm.narrow { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 12px; }
  html:not(.js) .ddm { display: block; }
  .ddg { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(64px, 8vw, 112px); }
.alt { background: var(--bg-2); }
.sec + .sec:not(.alt):not(.proof) { border-top: 1px solid var(--line); }
.sec h2 { font-size: var(--h2); line-height: var(--h2-lh); margin-bottom: clamp(28px, 3.4vw, 48px); max-width: 22ch; }
.sh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sh h2 { margin-bottom: 0; }
.sh p { color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: start; }
.split h2 { margin-bottom: 0; }
.prose { display: grid; gap: 18px; max-width: 62ch; }
.prose p { font-size: 18px; color: var(--ink-2); }
.prose p:first-child { color: var(--ink); }
.prose a { color: var(--link); }
.fine { margin-top: 22px; color: var(--ink-2); font-size: 15.5px; max-width: 90ch; }
.soon { margin-top: 28px; color: var(--ink-2); font-size: 17px; }

/* Page hero (inner pages) */
.phero { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 64px); background: var(--navy-deep); color: #ffffff; }
.phero .c { display: grid; gap: 22px; justify-items: center; text-align: center; }
.phero h1 { font-size: var(--h1p); line-height: var(--h1-lh); max-width: 16ch; margin-inline: auto; color: #ffffff; }
.phero .lede { font-size: clamp(18px, .8vw + 12px, 21.5px); color: var(--on-navy-2); max-width: 52ch; margin-inline: auto; }

/* Call-to-action band */
.cta { padding-block: clamp(72px, 9vw, 128px); background: var(--navy-deep); color: #ffffff; }
.cta .c { display: grid; gap: 24px; justify-items: center; text-align: center; }
.cta h2 { font-size: var(--cta-h); line-height: var(--h2-lh); max-width: 18ch; color: #ffffff; }
.cta p { color: var(--on-navy-2); font-size: 18px; max-width: 48ch; }
.cta .btns { margin-top: 8px; align-items: center; justify-content: center; gap: 20px; }
.cta .tl { color: #ffffff; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .18); color: var(--on-navy-2); font-size: 15.5px; width: 100%; }

/* Process carousel: [data-proc] > .track > .pc, progress .pbar span */
.proc { position: relative; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.pc { position: relative; isolation: isolate; overflow: hidden; flex: 0 0 min(340px, 84%); scroll-snap-align: start; background: var(--bg-2); min-height: 320px; color: var(--ink); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.alt .pc { background: var(--bg); }
.pc h3 { font-size: var(--h3); line-height: 1.15; }
/* Full-card background picture (partials/process-carousel.php) under an overlay in the card colour: solid behind the
   title and text at the top, thinning toward the bottom so the picture shows through. */
.pc-bg { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; pointer-events: none; transition: transform .5s ease; }
.pc::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--pc-bg) 0%, color-mix(in srgb, var(--pc-bg) 96%, transparent) 46%, color-mix(in srgb, var(--pc-bg) 55%, transparent) 74%, color-mix(in srgb, var(--pc-bg) 25%, transparent) 100%); }
.pc { --pc-bg: var(--bg-2); }
.alt .pc { --pc-bg: var(--bg); }
.pc:hover .pc-bg { transform: scale(1.04); }
.pc .btn-s:not(:hover) { background: var(--card); }
.pc p { color: var(--ink-2); flex: 1; }
.pc .btn { align-self: flex-start; padding: 12px 16px; font-size: 15px; white-space: normal; text-align: left; line-height: 1.3; }
.pc .btn-s { border-color: var(--proc-navy); color: var(--proc-navy); }
.pc .btn-s:hover { background: var(--proc-navy); border-color: var(--proc-navy); color: var(--bg); }
/* Last card: the same outlined button, but in the link colour and underlined */
.pc .pc-contact { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.pc .pc-contact:hover { color: var(--bg); }
html:not(.js) [data-next] { display: none; }
.pbar { height: 3px; background: var(--line); margin-top: 20px; }
/* Faded edges with round white arrow buttons, navy arrow and outline (navy fill on hover) (site.js initCarousel shows them): the fade runs into the section background,
   the right one while more cards are hidden, the left one once scrolled. Bottom stops above the progress bar. */
.proc { --proc-bg: var(--bg); --proc-navy: var(--navy); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .proc { --proc-navy: #8fb8ff; } }
:root[data-theme="dark"] .proc { --proc-navy: #8fb8ff; }
.alt .proc { --proc-bg: var(--bg-2); }
.proc-edge { position: absolute; top: 0; bottom: 29px; width: clamp(120px, 18vw, 260px); display: flex; align-items: center; pointer-events: none; z-index: 2; }
.proc-edge[hidden] { display: none; }
.proc-edge-r { right: 0; justify-content: flex-end; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--proc-bg) 55%, transparent) 30%, color-mix(in srgb, var(--proc-bg) 92%, transparent) 65%, var(--proc-bg)); }
.proc-edge-l { left: 0; justify-content: flex-start; background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--proc-bg) 55%, transparent) 30%, color-mix(in srgb, var(--proc-bg) 92%, transparent) 65%, var(--proc-bg)); }
.proc-arrow { pointer-events: auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; background: var(--card); color: var(--proc-navy); border: 1.5px solid var(--proc-navy); box-shadow: 0 10px 26px -14px rgb(18 26 43 / .45); transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.proc-arrow svg { width: 22px; height: 22px; }
.proc-arrow:hover { background: var(--proc-navy); border-color: var(--proc-navy); color: var(--bg); transform: translateX(3px); }
.proc-edge-l .proc-arrow svg { transform: rotate(180deg); }
.proc-edge-l .proc-arrow:hover { transform: translateX(-3px); }
.proc-arrow:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pbar span { display: block; height: 100%; width: 25%; background: var(--proc-navy, var(--accent)); transition: width .2s; }

/* Price tiers (service pages) */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.tier { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tier:first-child { padding-left: 0; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier h3 { font-size: var(--h3); }
.tier .price { font: 600 36px/1 var(--f-disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.tier .price small { font: 500 16px var(--f-body); letter-spacing: 0; color: var(--ink-2); }
.tier p { color: var(--ink-2); }
.tier .care { font-size: 16px; flex: 1; }
.pager a { font: 600 23.5px var(--f-disp); color: var(--link); text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; }

/* FAQ, single column (details with a + marker) */
.faq1 details { border-top: 1px solid var(--line); }
.faq1 details:last-child { border-bottom: 1px solid var(--line); }
.faq1 summary, .fg2 summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font: 600 18px/1.4 var(--f-disp); color: var(--ink); }
.faq1 summary::-webkit-details-marker, .fg2 summary::-webkit-details-marker { display: none; }
.faq1 summary::after, .fg2 summary::after { content: "+"; color: var(--link); font-size: 21.5px; line-height: 1; }
.faq1 details[open] summary::after, .fg2 details[open] summary::after { content: "\2013"; }
.faq__a { overflow: hidden; }
/* Page FAQ section (partials/faq-section.php): heading centred on top, the question list centred below it,
   wide enough to fill the section but not edge to edge. */
.faqv { display: grid; justify-items: center; gap: clamp(28px, 3.4vw, 44px); }
.faqv-h { text-align: center; }
/* Underline as a bar under the heading box: text-decoration would not reach the word spans site.js adds
   (initHeadings), so it broke up while the words animated in. Navy; a light blue in dark mode, where navy would vanish. */
.faqv-h h2 { display: inline-block; position: relative; margin: 0 auto; padding-bottom: 12px; max-width: none; text-transform: uppercase; letter-spacing: .01em; }
.faqv-h h2::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--faq-line); }
.faqv { position: relative; --faq-line: var(--navy); }
.faqv .faq1 { position: relative; z-index: 1; width: min(100%, 880px); }
/* Rows: soft highlight on hover; the open one becomes a card with a navy bar on the left. The + sits in a round
   button and turns into a × when open. */
.faqv .faq1 details { position: relative; transition: background .2s ease, box-shadow .2s ease; }
.faqv .faq1 summary { align-items: center; padding: 20px; transition: color .2s ease; }
.faqv .faq1 .faq__a p { padding: 0 72px 20px 20px; }
.faqv .faq1 details:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.faqv .faq1 details[open] { background: var(--card); box-shadow: inset 3px 0 0 var(--faq-line), 0 18px 40px -28px rgb(18 26 43 / .35); }
.faqv .faq1 details[open] summary { color: var(--accent-ink); }
.faqv .faq1 summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line-strong); font-size: 20px; color: var(--link); transition: transform .25s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.faqv .faq1 summary:hover::after { border-color: var(--link); }
.faqv .faq1 details[open] summary::after { content: "+"; transform: rotate(45deg); background: var(--faq-line); border-color: var(--faq-line); color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .faqv { --faq-line: #8fb8ff; } }
:root[data-theme="dark"] .faqv { --faq-line: #8fb8ff; }

/* FAQ decoration: speech bubbles floating in the space beside the list (wide screens only) */
.faq-deco { position: absolute; inset: 0; pointer-events: none; }
.fqb { position: absolute; display: grid; place-items: center; border-radius: 22px 22px 22px 6px; animation: fqb-float 10s ease-in-out infinite; }
.fqb-q1 { left: 0; top: 18%; width: 92px; height: 80px; font: 600 46px/1 var(--f-disp); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.fqb-dots { left: 64px; top: 46%; display: flex; gap: 5px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 14px 30px -22px rgb(18 26 43 / .4); animation-delay: -3s; }
.fqb-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: bb-dot 1s ease-in-out infinite; }
.fqb-dots i:nth-child(2) { animation-delay: .15s; }
.fqb-dots i:nth-child(3) { animation-delay: .3s; }
.fqb-q2 { right: 8px; top: 12%; width: 64px; height: 56px; font: 600 30px/1 var(--f-disp); color: var(--ink-2); background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 6px 18px; animation-delay: -6s; }
.fqb-a { right: 0; top: 52%; width: 78px; height: 68px; color: #ffffff; background: var(--navy); border-radius: 22px 22px 6px 22px; box-shadow: 0 18px 36px -20px rgb(21 57 105 / .6); animation-delay: -1.5s; }
.fqb-a svg { width: 32px; height: auto; }
@keyframes fqb-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (max-width: 1180px) { .faq-deco { display: none; } }
.faq1 .faq__a p, .fg2 .faq__a p { color: var(--ink-2); padding-bottom: 18px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 26px; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: grid; gap: 6px; align-content: start; }
.field__label { font-weight: 600; font-size: 16px; }
.field__optional { font-weight: 400; color: var(--ink-2); }
.field__hint { font-size: 15.5px; color: var(--ink-2); }
.input { font: 18px var(--f-body); color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 0; padding: 13px 14px; width: 100%; }
.input:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 2px var(--link); }
textarea.input { min-height: 140px; resize: vertical; }
.input::placeholder { color: var(--ink-2); opacity: 1; }
.field__error { color: var(--error); font-size: 15.5px; font-weight: 600; }
.field__error:empty { display: none; }
.is-invalid .input { border-color: var(--error); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check__input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--btn-bg); flex: none; }
.check__label { font-size: 16px; color: var(--ink-2); }
.check__label a { color: var(--link); }
.consent { font-size: 15.5px; color: var(--ink-2); }
.send { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-summary { border: 2px solid var(--error); padding: 18px 20px; display: grid; gap: 8px; }
.error-summary h2 { font-size: 19px; margin: 0; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error); font-weight: 600; }
.alert { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-2); }
.alert .icon { width: 22px; height: 22px; flex: none; color: var(--accent-ink); margin-top: 2px; }
.alert--error { border-left-color: var(--error); }
.alert--error .icon { color: var(--error); }
.alert--success { border-left-color: var(--green); }
.alert--success .icon { color: var(--green); }
.alert__title { font-weight: 700; }

/* ---------- Footer ---------- */
.ftr { background: var(--ftr-bg); color: var(--ftr-fg-2); padding-top: 56px; }
.fg { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; }
.ftr .logo { color: var(--ftr-fg); }
.ftr .logo svg { color: #8fb8ff; }
.ftr p { margin-top: 14px; max-width: 30ch; font-size: 16px; }
.ftr h2 { font: 600 16px var(--f-body); letter-spacing: 0; color: var(--ftr-fg); margin-bottom: 12px; }
.ftr a:not(.logo) { display: block; color: var(--ftr-fg-2); text-decoration: none; padding: 4px 0; font-size: 16px; }
.ftr a:not(.logo):hover { color: var(--ftr-fg); }
.fg span { display: block; padding: 4px 0; font-size: 16px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ftr-line); font-size: 14.5px; }
.ftr .legal a { display: inline; padding: 0; font-size: 14.5px; }
/* Social icon links (Settings > Social links). Each icon is a 44px tap target; the name is for screen readers only. */
.ftr .ftr-social { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0 -10px; padding: 0; }
.ftr .ftr-social a:not(.logo) { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.ftr .ftr-social svg { width: 20px; height: 20px; }
.ftr .ftr-social a:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* ---------- Reveal on scroll (site.js initReveal) ----------
   html.reveal is set by JS, so nothing is hidden without JS or with reduced motion. Blocks fade in as they scroll into
   view (.is-visible); the pieces inside them (.rv-i) fade up one after another (--rd delay) once given .rv-in. */
html.reveal .sec > .c:not(.is-visible), html.reveal .cta > .c:not(.is-visible), html.reveal .ftr > .fg:not(.is-visible), html.reveal [data-reveal]:not(.is-visible) { opacity: 0; }
html.reveal .sec > .c, html.reveal .cta > .c, html.reveal .ftr > .fg, html.reveal [data-reveal] { transition: opacity .5s ease; }
html.reveal .rv-i { transition: opacity .6s ease var(--rd, 0s), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rd, 0s); }
html.reveal .rv-i:not(.rv-in) { opacity: 0; transform: translateY(22px); }

/* ---------- Heading entrances (site.js initHeadings / initTypewriter; only with JS and without reduced motion) ---------- */
/* Words fade in (0.6s) from the left, one after another. Replays each time the heading comes back into view. */
.hx .hw { display: inline-block; opacity: 0; transform: translateX(-14px); }
.hx.is-in .hw { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 60ms); }
/* Typewriter: letters appear one by one, each fading in over 0.6s, behind a caret that blinks a few times at the end. */
.tw .tw-c { opacity: 0; }
.tw .tw-c.on { opacity: 1; transition: opacity .6s ease; }
.tw .tw-c.cur { box-shadow: 3px 0 0 #8fb8ff; }
.tw .tw-c.cur.done { animation: tw-caret 1s steps(1) 3 forwards; }
@keyframes tw-caret { 0% { box-shadow: 3px 0 0 #8fb8ff; } 50%, 100% { box-shadow: 3px 0 0 transparent; } }

/* ---------- Brand motion behind navy bands (partials/brand-bg.php) ----------
   Faint "A" marks floating, or a sample chat on the closing band. Decoration only: the band's content
   sits above it, reduced motion leaves it still (rule below), and [data-anim].is-offscreen pauses it. */
[data-anim].is-offscreen *, [data-anim].is-offscreen *::before, [data-anim].is-offscreen *::after { animation-play-state: paused !important; }
.bbg-host { position: relative; overflow: hidden; isolation: isolate; }
.bbg-host > .c { position: relative; z-index: 1; }
.bbg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bbg-a { position: absolute; display: block; height: auto; color: #ffffff; }
.bbg-a1 { width: clamp(240px, 32vw, 500px); right: -5%; top: 12%; opacity: .06; animation: bbg-float 16s ease-in-out infinite; }
.bbg-a2 { width: clamp(110px, 11vw, 180px); left: 3%; bottom: -36px; opacity: .045; animation: bbg-float 20s ease-in-out -7s infinite reverse; }
@keyframes bbg-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-28px) rotate(-5deg); }
}
/* Closing band: a short sample chat either side of the text. Bubbles come in one after another, a typing indicator
   shows before our reply, then the chat fades and starts again (12s). Still frame (reduced motion): every bubble
   shown, no typing dots. Hidden where the sides are too narrow to hold it. */
.bbg-chat { display: flex; align-items: center; justify-content: space-between; padding-inline: clamp(16px, 3.5vw, 56px); }
.bch { display: grid; gap: 10px; width: min(250px, 22vw); animation: bbg-bob 9s ease-in-out infinite; }
.bch-l { justify-items: start; margin-top: -40px; }
.bch-r { justify-items: end; margin-top: 90px; animation-delay: -4s; }
.bb { margin: 0; padding: 11px 15px; font: 500 15px/1.4 var(--f-body); color: #dfe8f7; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .13); border-radius: 16px 16px 16px 4px; max-width: 100%; animation: bb-in 12s ease both infinite; }
.bb-in:nth-child(2) { animation-delay: 1.2s; }
.bb-out { display: flex; gap: 8px; align-items: flex-start; color: #ffffff; background: var(--blue); border-color: transparent; border-radius: 16px 16px 4px 16px; animation-delay: 4.4s; }
.bb-a { flex: none; width: 15px; height: auto; margin-top: 3px; color: #ffffff; }
.bb-typing { display: flex; gap: 4px; padding: 13px 15px; opacity: 0; animation: bb-typing 12s ease infinite 2.6s; }
.bb-typing i { width: 6px; height: 6px; border-radius: 50%; background: #c9d6ee; animation: bb-dot 1s ease-in-out infinite; }
.bb-typing i:nth-child(2) { animation-delay: .15s; }
.bb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bb-in { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 5%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes bb-typing { 0% { opacity: 0; } 3%, 13% { opacity: 1; } 15%, 100% { opacity: 0; } }
@keyframes bb-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
@keyframes bbg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 1180px) { .bbg-chat { display: none; } }
@media (prefers-reduced-motion: reduce) { .bb-typing { display: none; } }

/* White sections: a faint dot grid fading in from the top-right and bottom-left corners, so wide white areas
   have some texture. Follows the ink colour, so it works in dark mode too. */
.sec:not(.alt):not(.proof) { position: relative; isolation: isolate; }
.sec:not(.alt):not(.proof)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 18%, transparent) 1.1px, transparent 1.7px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 38% 55% at 100% 0%, #000, transparent 72%), radial-gradient(ellipse 30% 45% at 0% 100%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 38% 55% at 100% 0%, #000, transparent 72%), radial-gradient(ellipse 30% 45% at 0% 100%, #000, transparent 72%); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split, .sh { grid-template-columns: minmax(0, 1fr); }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  .tier, .tier:first-child { padding-left: 0; padding-right: 0; }
  .tier + .tier { border-left: 0; border-top: 1px solid var(--line); }
  .fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .f2, .fg { grid-template-columns: minmax(0, 1fr); }
}
/* Touch targets: footer links and text links get a 44px tap area (the extra area is invisible). */
@media (max-width: 1000px), (pointer: coarse) {
  .ftr a:not(.logo) { padding: 10px 0; }
  .ftr .legal a { display: inline-block; padding: 12px 0; }
  .tl, .pager a { position: relative; }
  .tl::after, .pager a::after { content: ""; position: absolute; inset: -10px -6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .track { scroll-behavior: auto; }
}
