/* ==========================================================================
   ADA Web Division — site styles
   Brand tokens match www.andreasdigitalagency.com (app/globals.css).
   One file, no build step, no web fonts.
   ========================================================================== */

:root {
  --blue: #0754a6;
  --blue-dark: #063b76;
  --navy: #081b33;
  --navy-2: #0d2747;
  --ink: #172033;
  --muted: #54637a;
  --light: #f5f8fc;
  --line: #dce5ef;
  --white: #ffffff;
  --red: #e3212d;
  --red-dark: #c91823;
  --maroon: #7a2545;
  --teal: #234a5c;
  --olive: #6b7420;
  --slate: #474c57;
  --ok: #0b6b3a;

  --max: 1280px;
  --gutter: 20px;
  --font: Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

h1, h2, h3, h4 { margin: 0; color: var(--navy); font-weight: 400; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }

.wrap { width: min(calc(100% - (var(--gutter) * 2)), var(--max)); margin-inline: auto; }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */

.display {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.052em;
}
.h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; }
.h4 { font-size: 1.05rem; line-height: 1.3; font-weight: 700; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }

.label { display: block; margin-bottom: 14px; font-size: .95rem; color: var(--ink); }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue);
}
.tag--red { color: var(--red); }

/* ---------- buttons and links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 20px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  font: 700 .86rem/1.1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn--blue { background: var(--blue); border-color: var(--blue); }
.btn--blue:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn--line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--line:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.on-dark .btn--line { color: #fff; border-color: rgba(255,255,255,.55); }
.on-dark .btn--line:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.more { font-weight: 700; font-size: .92rem; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.more::after { content: " \2192"; }
.on-dark .more { color: #fff; }

/* ---------- header ---------- */

.util { background: var(--navy); color: #fff; font-size: .78rem; }
.util .wrap { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.util a { color: #fff; opacity: .85; text-decoration: none; }
.util a:hover { opacity: 1; text-decoration: underline; }
.util-links { display: flex; gap: 20px; white-space: nowrap; }

.head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.head .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 84px; height: auto; }
.brand strong { display: block; font-size: .98rem; line-height: 1.15; }
.brand span span { display: block; font-size: .74rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--navy); font-size: .88rem; font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.nav .btn { color: #fff; padding: 12px 18px; border-bottom: 1px solid var(--red); }
.nav .btn:hover { border-bottom-color: var(--red-dark); }

.menu-btn { display: none; background: none; border: 1px solid var(--navy); color: var(--navy); min-height: 44px; padding: 8px 14px; font: 700 .86rem var(--font); cursor: pointer; }

@media (max-width: 1080px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .head .wrap { flex-wrap: wrap; padding-block: 10px; }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
  .util-links .hide-s { display: none; }
}
@media (max-width: 560px) {
  .brand img { width: 64px; }
  .util .util-note { display: none; }
  .util .wrap { justify-content: flex-end; }
}

/* ---------- hero ---------- */

.hero { background: var(--navy); color: #fff; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.82); }
.hero .wrap { padding-block: clamp(48px, 7vw, 96px); }

.hero-home .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-home .lead { margin-top: 26px; }

.where { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 20px; display: block; }

.crumbs { font-size: .82rem; margin-bottom: 22px; color: rgba(255,255,255,.7); }
.crumbs a { color: rgba(255,255,255,.85); }
.crumbs span[aria-hidden] { margin: 0 6px; }

.hero-page h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.048em; max-width: 20ch; }
.hero-page .lead { margin-top: 22px; }

/* problem index: the home-page panel */
.pindex { background: #fff; color: var(--ink); }
.pindex h2 { font-size: 1rem; font-weight: 700; letter-spacing: 0; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pindex ul { list-style: none; margin: 0; padding: 0; }
.pindex li { margin: 0; border-bottom: 1px solid var(--line); }
.pindex li:last-child { border-bottom: 0; }
.pindex a {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 15px 22px; color: var(--navy); text-decoration: none; font-size: 1rem; line-height: 1.3;
}
.pindex a::after { content: "\2192"; color: var(--blue); font-weight: 700; }
.pindex a:hover { background: var(--light); color: var(--blue-dark); }

@media (max-width: 900px) {
  .hero-home .wrap { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- sections ---------- */

.sec { padding-block: clamp(56px, 8vw, 104px); }
.sec--light { background: var(--light); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--navy h2, .sec--navy h3 { color: #fff; }
.sec--navy p, .sec--navy .steps p { color: rgba(255,255,255,.8); }
.sec--navy .label { color: rgba(255,255,255,.7); }
.sec--navy a, .sec--navy .more { color: #fff; }
.sec--tight { padding-block: clamp(36px, 5vw, 64px); }
.sec-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 820px; }
.sec-head p { margin-top: 18px; color: var(--muted); max-width: 64ch; }
.sec--navy .sec-head p { color: rgba(255,255,255,.8); }
.sec-head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px; max-width: none; flex-wrap: wrap; }

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.facts > div { padding: 34px 26px 36px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -.04em; color: var(--blue); }
.facts strong { display: block; margin-top: 14px; font-weight: 400; font-size: 1.02rem; color: var(--navy); }
.facts span { display: block; margin-top: 8px; font-size: .86rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div { border-left: 0; border-top: 1px solid var(--line); padding: 24px 16px 24px 0; }
  .facts > div:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div:nth-child(2) { border-top: 1px solid var(--line); }
}

/* cards */
.card { background: #fff; border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card .more { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { border-color: var(--blue); }
.card--link:hover h3 { color: var(--blue); }

/* homepage "How can we help your business?" */
.sec--help { background: #f3f7fc; }
.help-head { max-width: 720px; margin: 0 auto clamp(32px, 4.5vw, 52px); text-align: center; }
.help-eyebrow { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.help-head p { margin: 18px auto 0; color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.help-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.help-card {
  display: flex; flex-direction: column; height: 100%; padding: 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(8,27,51,.04), 0 8px 22px rgba(8,27,51,.06);
  color: var(--navy); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.help-card:hover, .help-card:focus-visible { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 2px 4px rgba(8,27,51,.06), 0 18px 38px rgba(8,27,51,.13); color: var(--navy); }
.help-card__icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border-radius: 12px; background: #eaf2fc; color: var(--blue); }
.help-card__title { margin: 0; font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--navy); }
.help-card__sub { margin: 8px 0 0; font-size: 1rem; font-weight: 700; color: var(--blue); }
.help-card__desc { margin: 10px 0 0; font-size: .97rem; line-height: 1.5; color: var(--muted); }
.help-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; font-weight: 700; font-size: .95rem; color: var(--blue); }
.help-card__cta svg { transition: transform .2s ease; }
.help-card:hover .help-card__cta svg, .help-card:focus-visible .help-card__cta svg { transform: translate(2px, -2px); }
.help-more { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; }
.help-more .more { font-size: 1rem; }
@media (max-width: 819px) { .help-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) {
  .help-card, .help-card__cta svg { transition: none; }
  .help-card:hover, .help-card:focus-visible, .help-card:hover .help-card__cta svg, .help-card:focus-visible .help-card__cta svg { transform: none; }
}

.shot { border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); }
.shot-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.shot-body h3 { margin: 8px 0 10px; }
.shot-body p { color: var(--muted); font-size: .96rem; }
.shot-links { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 18px; }

/* colour tiles (echo the main site's division tiles) */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 22px; color: #fff; text-decoration: none; background: var(--blue); }
.tile strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.tile span { display: block; font-size: .9rem; opacity: .9; margin-top: 10px; }
.tile em { font-style: normal; font-size: .84rem; font-weight: 700; margin-top: 22px; }
.tile em::after { content: " \2192"; }
.tile:hover { color: #fff; filter: brightness(1.12); }
.tile--navy { background: #14365f; } .tile--maroon { background: var(--maroon); } .tile--teal { background: var(--teal); } .tile--olive { background: var(--olive); } .tile--slate { background: var(--slate); }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* rows: a ruled list of links with a detail column */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.rows li { margin: 0; border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) 170px; gap: 20px; align-items: baseline; padding: 20px 0; text-decoration: none; color: var(--ink); }
.rows a strong { font-size: 1.2rem; font-weight: 400; color: var(--navy); letter-spacing: -.02em; }
.rows a span { color: var(--muted); font-size: .96rem; }
.rows a em { font-style: normal; font-weight: 700; font-size: .9rem; color: var(--blue); white-space: nowrap; text-align: right; }
.rows a:hover strong { color: var(--blue); text-decoration: underline; }
@media (max-width: 760px) { .rows a { grid-template-columns: 1fr; gap: 6px; } .rows a em { text-align: left; } }

/* steps: a real sequence */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--navy); }
.steps li { counter-increment: s; margin: 0; padding: 24px 22px 8px 0; }
.steps li::before { content: counter(s); display: block; font-size: 2.2rem; line-height: 1; letter-spacing: -.04em; color: var(--blue); margin-bottom: 14px; }
.steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.steps p { font-size: .94rem; color: var(--muted); }
.sec--navy .steps { border-top-color: rgba(255,255,255,.4); }
.sec--navy .steps li::before { color: #8fbdf2; }
.steps--v { grid-template-columns: 1fr; }
.steps--v li { display: grid; grid-template-columns: 64px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps--v li::before { grid-row: span 2; }
.steps--v h3, .steps--v p { grid-column: 2; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* check list */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.sec--navy .ticks li::before, .on-dark .ticks li::before { border-color: #8fbdf2; }

.signs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.signs li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* answer box */
.answer { border-left: 4px solid var(--blue); background: var(--light); padding: 22px 24px; margin: 0 0 32px; }
.answer p { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--navy); }
.answer .tag { margin-bottom: 8px; }

.note { border: 1px solid var(--line); background: #fff; padding: 18px 20px; font-size: .94rem; color: var(--muted); }
.note strong { color: var(--navy); }

/* prose (guides, legal, long copy) */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.035em; line-height: 1.12; margin: 1.9em 0 .6em; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 1.6em 0 .5em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: #2a3547; }
.prose a { text-decoration: underline; }
.prose table { margin: 1.2em 0 1.6em; }
.byline { font-size: .88rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sources { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; }
.sources ol { padding-left: 1.3em; }
.toc { border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 32px; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { margin: 0; }

/* tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; padding: 14px 16px; font-size: .86rem; color: var(--muted); caption-side: bottom; border-top: 1px solid var(--line); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .8rem; letter-spacing: .03em; white-space: nowrap; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--navy); }
td.num, th.num { white-space: nowrap; }

/* pricing */
.plan { border: 1px solid var(--line); background: #fff; padding: 28px 26px; display: flex; flex-direction: column; }
.plan--main { border: 2px solid var(--blue); }
.plan h3 { font-size: 1.45rem; letter-spacing: -.03em; margin: 6px 0 6px; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.price { font-size: 2.3rem; line-height: 1; letter-spacing: -.045em; color: var(--navy); margin: 18px 0 4px; }
.price small { font-size: .9rem; letter-spacing: 0; color: var(--muted); }
.plan .ticks { margin-top: 18px; font-size: .95rem; }
.plan .btn { margin-top: auto; align-self: flex-start; }

/* faq */
.faq { border-top: 1px solid var(--navy); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-size: 1.12rem; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.5rem; color: var(--blue); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 40px 22px 0; color: #2a3547; }
.faq details > div > :last-child { margin-bottom: 0; }

/* person */
.person { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: start; }
.person img { width: 200px; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 560px) { .person { grid-template-columns: 1fr; } }

.figure img { width: 100%; }
.figure figcaption { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* contact band */
.cta { background: var(--blue); color: #fff; }
.cta .wrap { padding-block: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.88); margin-top: 16px; max-width: 52ch; }
.ways { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); }
.ways li { margin: 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.ways a { display: grid; grid-template-columns: 110px 1fr auto; gap: 14px; align-items: baseline; padding: 17px 0; color: #fff; text-decoration: none; }
.ways a span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.ways a strong { font-size: 1.12rem; font-weight: 400; overflow-wrap: anywhere; }
.ways a::after { content: "\2192"; font-weight: 700; }
.ways a:hover strong { text-decoration: underline; }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .ways a { grid-template-columns: 1fr auto; } .ways a span { grid-column: 1 / -1; } }

/* forms */
.form { border: 1px solid var(--line); background: #fff; padding: clamp(20px, 3vw, 34px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid #9fb0c4; background: #fff; color: var(--ink);
  font: 1rem/1.4 var(--font); border-radius: 0;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(7,84,166,.35); border-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin-top: 18px; }
.consent input { margin-top: 5px; width: 18px; height: 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; margin-top: 16px; padding: 12px 16px; background: #fdecee; border-left: 4px solid var(--red); color: #8a0f18; font-size: .95rem; }
.form-ok { display: none; border: 1px solid var(--line); border-left: 4px solid var(--ok); background: #fff; padding: 28px; }
.form-ok.open { display: block; }
@media (max-width: 680px) { .fields { grid-template-columns: 1fr; } }

.contact-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--navy); }
.contact-list li { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 12px; }
.contact-list span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.contact-list a { font-size: 1.1rem; overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--navy); color: rgba(255,255,255,.82); font-size: .92rem; }
.foot .wrap { padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 36px; }
.foot h2 { color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 12px; position: relative; }
.foot h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: #2f7fe0; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; }
.foot a { color: rgba(255,255,255,.86); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-decoration-thickness: 1px; }
.foot a:hover { color: #fff; text-decoration-color: #fff; }
.foot-logo { width: 190px; margin-bottom: 22px; }
.foot dl { margin: 0; }
.foot dt { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 14px; }
.foot dd { margin: 3px 0 0; color: #fff; }
.foot-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: rgba(255,255,255,.7); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* mobile contact bar */
.bar { display: none; }
@media (max-width: 760px) {
  .bar { display: grid; grid-template-columns: 1fr 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 1px solid rgba(255,255,255,.2); }
  .bar a { display: flex; align-items: center; justify-content: center; min-height: 52px; color: #fff; font-weight: 700; font-size: .88rem; text-decoration: none; border-left: 1px solid rgba(255,255,255,.2); }
  .bar a:first-child { border-left: 0; }
  .bar a:last-child { background: var(--red); }
  body { padding-bottom: 52px; }
}

/* utilities */
.mt0 { margin-top: 0; } .mt1 { margin-top: 12px; } .mt2 { margin-top: 24px; } .mt3 { margin-top: 40px; }
.center { text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  .util, .head, .bar, .cta, .foot { display: none; }
  .hero { background: #fff; color: #000; } .hero h1 { color: #000; } .hero .lead { color: #333; }
}

/* spacing after in-column headings */
.h2 + .ticks, .h2 + .signs, .h2 + .steps, .h2 + .tbl-wrap, .h2 + p, .h2 + .grid { margin-top: 22px; }
.h3 + .ticks, .h3 + .signs, .h3 + .steps, .h3 + .tbl-wrap { margin-top: 14px; }
.h3 + p { margin-top: 10px; }
.split > *, .grid > *, .cta .wrap > * { min-width: 0; }
.sec--navy .card h3 { color: var(--navy); }
.sec--navy .card p { color: var(--muted); }
.sec--navy .card a { color: var(--blue); }

/* article with a contact box beside it */
.with-aside { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.aside { position: sticky; top: 100px; border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 24px; background: #fff; }
.aside h2 { margin-bottom: 10px; }
.aside p:last-child { margin-bottom: 0; }
@media (max-width: 1000px) { .with-aside { grid-template-columns: minmax(0, 1fr); } .aside { position: static; } }
.with-aside > * { min-width: 0; }

/* ==========================================================================
   Motion. Same interaction system as www.andreasdigitalagency.com:
   crisp edges, restrained movement, hover depth, a slow-moving hero.
   Everything here switches off under prefers-reduced-motion.
   ========================================================================== */

.head { background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav a { transition: border-color 180ms ease, color 180ms ease; }

/* hero: photo slides that fade and drift, text that rises in */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: var(--navy); }
.hero-bg span { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.03); animation: heroFade 15s infinite, heroDrift 15s infinite; }
.hero-bg span:nth-child(1) { background-image: url(/assets/img/hero-code.webp); animation-delay: 0s; }
.hero-bg span:nth-child(2) { background-image: url(/assets/img/hero-developer.webp); animation-delay: 5s; }
.hero-bg span:nth-child(3) { background-image: url(/assets/img/hero-team.webp); animation-delay: 10s; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,27,51,.94) 0%, rgba(8,27,51,.86) 48%, rgba(8,27,51,.66) 100%); }

@keyframes heroFade { 0% { opacity: 0; } 5% { opacity: 1; } 33.3% { opacity: 1; } 39% { opacity: 0; } 100% { opacity: 0; } }
@keyframes heroDrift { 0% { transform: scale(1.03); } 39% { transform: scale(1.09); } 100% { transform: scale(1.09); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.hero .wrap > *, .hero-home .wrap > div > * { animation: rise 620ms cubic-bezier(.2,.8,.2,1) both; }
.hero-home .wrap > div { animation: none; }
.hero .wrap > :nth-child(1), .hero-home .wrap > div > :nth-child(1) { animation-delay: 40ms; }
.hero .wrap > :nth-child(2), .hero-home .wrap > div > :nth-child(2) { animation-delay: 140ms; }
.hero .wrap > :nth-child(3), .hero-home .wrap > div > :nth-child(3) { animation-delay: 240ms; }
.hero .wrap > :nth-child(4), .hero-home .wrap > div > :nth-child(4) { animation-delay: 340ms; }
.hero-home .wrap > .pindex { animation-delay: 420ms; }

/* hover depth on cards, tiles and buttons */
.card, .shot, .plan, .tile, .aside, .pindex a, .rows a {
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms cubic-bezier(.2,.8,.2,1), border-color 220ms ease, background-color 220ms ease, filter 220ms ease;
}
.card--link:hover, .shot:hover, .plan:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(8,27,51,.11); }
.shot { overflow: hidden; }
.shot img { transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: scale(1.015); }
.rows a:hover { transform: translateX(6px); }
.btn { transition: transform 180ms cubic-bezier(.2,.8,.2,1), box-shadow 180ms cubic-bezier(.2,.8,.2,1), background-color 180ms ease, border-color 180ms ease, color 180ms ease; }
.btn:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,27,51,.12); }
.more { transition: color 160ms ease; }
.more::after { display: inline-block; transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
a:hover > .more::after, .more:hover::after { transform: translateX(4px); }
.faq summary::after { transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] > div { animation: rise 320ms cubic-bezier(.2,.8,.2,1) both; }

/* reveal on scroll: classes are added by ada.js, so nothing is hidden without it */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 620ms cubic-bezier(.2,.8,.2,1), transform 620ms cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

.person img { object-position: top center; }

@media (prefers-reduced-motion: reduce) {
  .hero-bg span { animation: none; transform: none; }
  .hero-bg span:nth-child(1) { opacity: 1; }
  .hero .wrap > *, .hero-home .wrap > div > *, .faq details[open] > div { animation: none; }
  .card, .shot, .plan, .tile, .aside, .btn, .shot img, .rows a, .pindex a, .more::after, .faq summary::after { transition: none; }
  .card--link:hover, .shot:hover, .plan:hover, .tile:hover, .btn:hover:not([disabled]), .shot:hover img, .rows a:hover { transform: none; box-shadow: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print { .reveal { opacity: 1 !important; transform: none !important; } .hero-bg { display: none; } }

/* ---------- header tools and search ---------- */
.head-tools { display: flex; align-items: center; gap: 10px; order: 3; }
.head .nav { order: 2; margin-left: auto; }
.search-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); color: var(--navy); font-size: .88rem; font-weight: 700; text-decoration: none; background: #fff; transition: border-color 180ms ease, color 180ms ease; }
.search-btn:hover, .search-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.searchbar { border-top: 1px solid var(--line); background: #fff; }
.searchbar[hidden] { display: none; }
.searchbar .wrap, .head .searchbar .wrap { min-height: 0; display: flex; gap: 10px; padding-block: 14px; flex-wrap: nowrap; }
.searchbar input, .search-form input { flex: 1; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid #9fb0c4; font: 1rem/1.4 var(--font); color: var(--ink); border-radius: 0; background: #fff; }
.searchbar input:focus, .search-form input:focus { outline: 3px solid rgba(7,84,166,.35); border-color: var(--blue); }
@media (max-width: 1180px) {
  .js .menu-btn { display: inline-flex; align-items: center; }
  .head > .wrap { flex-wrap: wrap; padding-block: 10px; }
  .head-tools { order: 2; margin-left: auto; }
  .head .nav { order: 3; margin-left: 0; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 10px; }
  .js .nav { display: none; }
  .js .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 14px; }
}
@media (max-width: 560px) { .search-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .search-btn { padding: 8px 11px; } }

/* search page */
.search-form { display: flex; gap: 10px; max-width: 760px; }
.results { list-style: none; margin: 28px 0 0; padding: 0; max-width: 860px; border-top: 1px solid var(--navy); }
.results li { margin: 0; border-bottom: 1px solid var(--line); }
.results a { display: block; padding: 20px 0; text-decoration: none; color: var(--ink); transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.results a:hover { transform: translateX(6px); }
.results strong { display: block; font-size: 1.25rem; font-weight: 400; letter-spacing: -.02em; color: var(--navy); }
.results a:hover strong { color: var(--blue); text-decoration: underline; }
.results span { display: block; margin-top: 6px; color: var(--muted); font-size: .96rem; }
.results em { display: block; margin-top: 6px; font-style: normal; font-size: .8rem; color: var(--blue); }
.results mark { background: #fff1a8; color: inherit; padding: 0 2px; }
.search-count { margin-top: 22px; color: var(--muted); font-size: .92rem; }

/* news */
.news-card time, .news-meta { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.news-card .tag { margin-bottom: 6px; }
@media (max-width: 1180px) { .brand { flex: 1 1 0; min-width: 0; } .head-tools { margin-left: 0; flex: 0 0 auto; } }
@media (max-width: 900px) { .hero-bg::after { background: rgba(8,27,51,.9); } }
@media (max-width: 420px) { .brand strong { font-size: .9rem; white-space: nowrap; } .brand span span { display: none; } .brand img { width: 56px; } }

/* ==========================================================================
   Phones. Type follows the Material Design scale for handsets:
   body 16px, secondary text 14px, labels 12px, headings 22 to 32px.
   Tested at 320, 360 (for example vivo Y03), 375, 390 and 414 pixels wide.
   ========================================================================== */

h1, h2, h3, h4, .results strong { overflow-wrap: anywhere; }
.tag { font-size: .75rem; }
.foot dt { font-size: .75rem; }

@media (hover: none) {
  .card--link:hover, .shot:hover, .plan:hover, .tile:hover, .btn:hover:not([disabled]), .rows a:hover, .results a:hover, .shot:hover img { transform: none; box-shadow: none; }
  .card--link:active, .shot:active, .tile:active, .btn:active:not([disabled]), .pindex a:active, .rows a:active { transform: scale(.985); }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }
  body { font-size: 1rem; line-height: 1.55; }

  /* type scale */
  .display { font-size: clamp(1.75rem, 8.4vw, 2.25rem); line-height: 1.04; letter-spacing: -.04em; }
  .hero-page h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); line-height: 1.08; letter-spacing: -.035em; max-width: none; }
  .h2 { font-size: clamp(1.4rem, 6.2vw, 1.65rem); line-height: 1.12; letter-spacing: -.03em; }
  .h3 { font-size: 1.12rem; line-height: 1.25; letter-spacing: -.01em; }
  .h4 { font-size: 1rem; }
  .lead { font-size: 1rem; line-height: 1.55; }
  .where { font-size: .72rem; margin-bottom: 14px; }
  .crumbs { font-size: .78rem; margin-bottom: 14px; }
  .label { font-size: .86rem; margin-bottom: 8px; }
  .prose h2 { font-size: 1.3rem; }
  .prose h3 { font-size: 1.08rem; }
  .answer p { font-size: 1rem; }
  .answer { padding: 16px 18px; margin-bottom: 24px; }
  .card p, .shot-body p, .steps p, .plan .for, .plan .ticks, .rows a span, .results span, .note, .facts span { font-size: .9rem; }
  .faq summary { font-size: 1rem; padding: 16px 36px 16px 0; }
  .faq summary::after { top: 13px; }
  .price { font-size: 1.8rem; }
  .plan h3 { font-size: 1.25rem; }
  .btn { font-size: .88rem; }

  /* spacing */
  .sec { padding-block: 44px; }
  .sec--tight { padding-block: 32px; }
  .sec-head { margin-bottom: 22px; }
  .sec-head p { margin-top: 12px; }
  .hero .wrap { padding-block: 34px 38px; }
  .hero-home .lead { margin-top: 16px; }
  .btn-row { margin-top: 20px; gap: 10px; }
  .btn-row .btn { flex: 1 1 auto; }
  .card, .plan { padding: 20px; }
  .shot-body { padding: 16px 18px 18px; }
  .grid { gap: 14px; }

  /* problem list in the hero */
  .pindex h2 { font-size: .95rem; padding: 14px 16px; }
  .pindex a { font-size: .95rem; padding: 13px 16px; }

  /* facts: two by two */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div, .facts > div:first-child { border: 0; border-top: 1px solid var(--line); padding: 18px 12px 18px 0; }
  .facts > div:nth-child(-n+2) { border-top: 0; }
  .facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
  .facts b { font-size: 1.45rem; letter-spacing: -.03em; }
  .facts strong { margin-top: 8px; font-size: .92rem; font-weight: 700; }
  .facts span { margin-top: 4px; font-size: .8rem; }

  /* service rows: name and price on one line, detail underneath */
  .rows a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 15px 0; align-items: baseline; }
  .rows a strong { font-size: 1.05rem; grid-column: 1; grid-row: 1; }
  .rows a em { grid-column: 2; grid-row: 1; text-align: right; font-size: .82rem; }
  .rows a span { grid-column: 1 / -1; grid-row: 2; }

  /* steps: number beside the text */
  .steps, .steps--v { grid-template-columns: 1fr; }
  .steps li, .steps--v li { display: grid; grid-template-columns: 38px 1fr; column-gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .sec--navy .steps li { border-bottom-color: rgba(255,255,255,.16); }
  .steps li::before { grid-row: span 2; font-size: 1.5rem; margin: 0; padding-top: 1px; }
  .steps h3, .steps p { grid-column: 2; }
  .steps h3 { font-size: 1rem; margin-bottom: 4px; }
  .steps p { margin: 0; }

  /* tiles */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tile { min-height: 132px; padding: 14px; }
  .tile strong { font-size: 1rem; }
  .tile span { font-size: .8rem; margin-top: 6px; }
  .tile em { font-size: .76rem; margin-top: 12px; }

  /* person: small photo beside the name */
  .person { grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
  .person img { width: 92px; }

  /* links that stand alone need room for a thumb */
  .more { display: inline-block; padding-block: 9px; font-size: .9rem; }
  .card .more { padding-bottom: 0; }
  .sec-head--split { align-items: start; gap: 4px; }
  .contact-list li { grid-template-columns: 96px 1fr; padding: 6px 0; align-items: center; }
  .contact-list a { display: inline-block; padding-block: 10px; font-size: 1rem; }
  .contact-list span { padding-top: 0; }

  /* side-scrolling card strips */
  .swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
  .swipe > .shot { flex-basis: 86%; }

  /* tables become labelled cards */
  .tbl-wrap { overflow: visible; border: 0; background: transparent; }
  table.stack, table.stack tbody, table.stack tr, table.stack th, table.stack td, table.stack caption { display: block; }
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { background: #fff; border: 1px solid var(--line); margin-bottom: 10px; padding: 4px 14px 8px; }
  table.stack tbody th { padding: 10px 0 8px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  table.stack td { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
  table.stack td:last-child, table.stack tbody tr:last-child td:last-child { border-bottom: 0; }
  table.stack tbody tr:last-child td { border-bottom: 1px solid var(--line); }
  table.stack td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  table.stack td[data-label=""] { display: block; }
  table.stack td[data-label=""]::before { content: none; }
  table.stack td:empty { display: none; }
  table.stack caption { padding: 4px 0 0; border: 0; font-size: .8rem; caption-side: bottom; }
  .prose table.stack { margin: 1em 0 1.3em; }

  /* contact band */
  .cta .wrap { padding-block: 40px; gap: 22px; }
  .ways a { padding: 13px 0; }
  .ways a strong { font-size: 1rem; }

  /* footer: two columns of links */
  .foot .wrap { padding-block: 40px 24px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .foot-logo { width: 150px; margin-bottom: 14px; }
  .foot h2 { margin-bottom: 8px; }
  .foot li { margin: 0; }
  .foot li a { display: block; padding: 8px 0; font-size: .9rem; }
  .foot dd a { display: inline-block; padding-block: 6px; }
  .foot-base { margin-top: 30px; flex-direction: column; gap: 10px; }

  /* header */
  .util .wrap { min-height: 36px; }
  .head > .wrap { min-height: 60px; padding-block: 8px; }
  .nav.open { max-height: calc(100vh - 150px); overflow-y: auto; }
  /* hide on scroll via sticky offset (a transform would become the containing block of the fixed drawer and cause sideways overflow) */
  .head { transition: top 260ms cubic-bezier(.2,.8,.2,1); }
  .head.head--away { top: -140px; }
  .bar { padding-bottom: env(safe-area-inset-bottom, 0px); }

  /* forms */
  .form { padding: 18px 16px; }
  .fields { gap: 14px; }
  .search-form { flex-wrap: nowrap; }
  .with-aside { gap: 28px; }
  .figure figcaption { font-size: .8rem; }
}

@media (max-width: 340px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex-basis: 100%; }
  .swipe > * { flex-basis: 88%; }
}

@media (prefers-reduced-motion: reduce) { .head { transition: none; } }
@media (max-width: 760px) {
  table.stack { display: flex; flex-direction: column; }
  table.stack caption { order: 2; }
  table.stack tbody { order: 1; }
  .shot-links { gap: 4px 14px; padding-top: 4px; }
  .shot-links .more { font-size: .86rem; }
  .tile em { font-size: .74rem; }
  .plan .btn { align-self: stretch; }
}
@media (max-width: 760px) {
  .swipe > .shot { flex-basis: 88%; }
  .shot-links { gap: 0 10px; }
  .shot-links .more { font-size: .84rem; padding-block: 7px; }
}
td, th, .prose p, .prose li, .card p { overflow-wrap: anywhere; }
@media (max-width: 760px) { .tile em, .where { font-size: .75rem; } }

/* Phones: the hero photos sit in a banner at the top of the hero, shown whole
   (3:2, no cropping) from sharper phone-size files, instead of being stretched
   behind the full height of the hero. */
@media (max-width: 760px) {
  .hero-home .hero-bg { inset: 0 0 auto 0; height: 66.667vw; }
  .hero-home .hero-bg span:nth-child(1) { background-image: url(/assets/img/hero-code-m.webp); }
  .hero-home .hero-bg span:nth-child(2) { background-image: url(/assets/img/hero-developer-m.webp); }
  .hero-home .hero-bg span:nth-child(3) { background-image: url(/assets/img/hero-team-m.webp); }
  .hero-home .hero-bg::after { background: linear-gradient(180deg, rgba(8,27,51,.18) 0%, rgba(8,27,51,.12) 55%, rgba(8,27,51,.75) 86%, #081b33 100%); }
  .hero-home .wrap { padding-top: calc(66.667vw + 6px); }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .hero-home .hero-bg span { transform: none; animation-name: heroFade, heroDriftSmall; }
}
@keyframes heroDriftSmall { 0% { transform: scale(1); } 39% { transform: scale(1.04); } 100% { transform: scale(1.04); } }
.hero-bg { overflow: hidden; }
@media (max-width: 760px) { .hero-home .hero-bg::after { bottom: -1px; } }

/* Open menu on phones and tablets: smaller, tighter links */
@media (max-width: 1180px) {
  .nav a { font-size: .9rem; padding: 11px 0; }
  .nav .btn { font-size: .86rem; min-height: 44px; padding: 11px 16px; margin-top: 12px; }
  .menu-btn, .search-btn { font-size: .84rem; }
}

/* ---------- footer: the same list of ADA websites on every ADA site ---------- */
.foot-family { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
.foot-family strong { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-right: 6px; }
.foot-family span[aria-current] { color: #fff; font-weight: 700; }
.foot-family + .foot-base { margin-top: 20px; }
@media (max-width: 760px) {
  .foot-family { margin-top: 28px; gap: 2px 18px; }
  .foot-family strong { flex-basis: 100%; margin-bottom: 4px; }
  .foot-family a, .foot-family span[aria-current] { display: inline-block; padding: 7px 0; font-size: .9rem; }
}

/* ---------- page not found ---------- */
.nf .wrap { position: relative; min-height: min(64vh, 600px); display: grid; align-content: center; }
.nf-num { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--max)) / 2)); top: 50%; transform: translateY(-50%); margin: 0; font: 700 clamp(9rem, 27vw, 23rem)/.78 Arial, Helvetica, sans-serif; letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 2px rgba(143,189,242,.3); pointer-events: none; user-select: none; }
.nf-num b { font: inherit; -webkit-text-stroke-color: rgba(227,33,45,.75); }
.nf h1 { max-width: 16ch; }
.nf .lead { max-width: 46ch; }
.nf-search { display: flex; gap: 10px; margin-top: 28px; max-width: 560px; }
.nf-search input { flex: 1; min-width: 0; min-height: 48px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.96); color: #172033; font: 1rem/1.4 Arial, Helvetica, sans-serif; border-radius: 0; }
.nf-search input:focus { outline: 3px solid rgba(143,189,242,.7); outline-offset: 0; }
.nf-search .btn { flex: 0 0 auto; }
.nf-url { margin: 18px 0 0; font-size: .86rem; color: rgba(255,255,255,.68); overflow-wrap: anywhere; }
.nf-url code { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 2px 7px; font-size: .92em; }
.nf-url[hidden] { display: none; }
.nf-steps { list-style: none; margin: 0; padding: 0; counter-reset: nf; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--navy); }
.nf-steps li { counter-increment: nf; margin: 0; padding: 22px 24px 6px 0; }
.nf-steps li::before { content: counter(nf, decimal-leading-zero); display: block; font-size: 1.7rem; line-height: 1; color: var(--blue); margin-bottom: 12px; }
.nf-steps h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.nf-steps p { font-size: .95rem; color: var(--muted); }
@media (max-width: 1000px) { .nf-num { font-size: clamp(8rem, 30vw, 15rem); opacity: .75; } }
@media (max-width: 760px) {
  .nf .wrap { min-height: 0; padding-top: 92px; }
  .nf-num { top: 14px; right: var(--gutter); transform: none; font-size: 6.2rem; line-height: .8; opacity: .9; }
  .nf h1 { max-width: none; }
  .nf-search { margin-top: 20px; }
  .nf-search .btn { padding-inline: 16px; }
  .nf-steps { grid-template-columns: 1fr; }
  .nf-steps li { display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .nf-steps li::before { grid-row: span 2; font-size: 1.25rem; margin: 0; padding-top: 2px; }
  .nf-steps h3, .nf-steps p { grid-column: 2; }
  .nf-steps h3 { font-size: 1rem; margin-bottom: 4px; }
  .nf-steps p { margin: 0; font-size: .95rem; color: #3b4657; }
  .nf-url { font-size: .8rem; }
}


/* ADA Web Division: desktop + iPhone website showcase hero (existing brand palette). */
.ada-hero-devices{position:relative;overflow:hidden;background:radial-gradient(circle at 78% 43%,rgba(7,84,166,.40),transparent 44%),linear-gradient(115deg,var(--navy) 10%,var(--navy-2) 72%,#092a50 100%)}
.ada-hero-devices .ada-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr);align-items:center;gap:clamp(22px,3vw,48px);min-height:590px;padding-block:66px}
.ada-hero-devices .ada-hero-copy{min-width:0;position:relative;z-index:3}
.ada-hero-devices h1{font-size:clamp(2.25rem,3.6vw,3.3rem);line-height:1.08;letter-spacing:-.05em}
.ada-hero-devices .lead{max-width:55ch}
.ada-device-stage{position:relative;justify-self:end;align-self:center;width:100%;min-width:0;isolation:isolate}
.ada-device-stage::before{content:"";position:absolute;inset:4% -2% 0 2%;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(22,112,221,.30),transparent 72%)}
.ada-device-stage img{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(0 6px 8px rgba(0,8,24,.38)) drop-shadow(0 28px 30px rgba(0,8,24,.5))}
@media(max-width:1100px){.ada-hero-devices .ada-hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}}
@media(max-width:900px){.ada-hero-devices .ada-hero-grid{grid-template-columns:1fr;min-height:0;padding-block:50px;gap:22px}.ada-device-stage{justify-self:center;width:min(100%,720px);margin-inline:auto}.ada-hero-devices h1{font-size:clamp(2.25rem,6vw,3.3rem);max-width:800px}}
@media(max-width:600px){.ada-hero-devices .ada-hero-grid{gap:12px}.ada-hero-devices h1{font-size:clamp(2.25rem,9vw,3.5rem)}.ada-device-stage{width:calc(100% + 24px);margin-inline:-12px}}

/* ==========================================================================
   Homepage portfolio, mobile drawer and phone refinements
   ========================================================================== */

/* ---------- homepage portfolio: "Real work. Real businesses." ---------- */
.sec--work { background: #f3f7fc; border-top: 1px solid #e1e9f3; }
.work-head { max-width: 720px; margin: 0 auto clamp(32px, 4.5vw, 52px); text-align: center; }
.work-eyebrow { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.work-head p { margin: 18px auto 0; color: var(--muted); max-width: 52ch; font-size: 1.05rem; }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.work-card {
  display: flex; flex-direction: column; height: 100%;
  color: var(--navy); text-decoration: none; border-radius: 16px; outline-offset: 6px;
}
.work-card__media { display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 3 / 2; padding: 0 2%; }
.work-card__media img {
  display: block; width: auto; height: auto; max-width: 100%; max-height: 100%;
  filter: drop-shadow(0 2px 3px rgba(8,27,51,.14)) drop-shadow(0 16px 22px rgba(8,27,51,.16));
  transition: transform .26s ease, filter .26s ease;
}
.work-card:hover .work-card__media img, .work-card:focus-visible .work-card__media img {
  transform: translateY(-6px);
  filter: drop-shadow(0 3px 4px rgba(8,27,51,.14)) drop-shadow(0 22px 28px rgba(8,27,51,.2));
}
.work-card:focus-visible { outline: 3px solid var(--blue); }
.work-card__body { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; padding: 22px 8px 0; }
.work-card__cat { font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); }
.work-card__title { margin: 8px 0 0; font-size: 1.4rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--navy); }
.work-card__sum { margin: 6px 0 0; font-size: .97rem; line-height: 1.5; color: var(--muted); }
.work-card__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .95rem; color: var(--blue); }
.work-card__cta svg { transition: transform .22s ease; }
.work-card:hover .work-card__cta svg, .work-card:focus-visible .work-card__cta svg { transform: translate(2px, -2px); }
.work-more { margin: clamp(28px, 4vw, 40px) 0 0; text-align: center; }
.work-more .more { font-size: 1rem; }
@media (max-width: 819px) { .work-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 40px; } .work-card__media { aspect-ratio: auto; padding: 0; } .work-card__media img { width: 100%; } }
@media (hover: none) {
  .work-card:hover .work-card__media img, .work-card:hover .work-card__cta svg { transform: none; }
  .work-card:active .work-card__media img { transform: scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  .work-card, .work-card__media img, .work-card__cta svg { transition: none; }
  .work-card:hover, .work-card:focus-visible, .work-card:hover .work-card__media img, .work-card:focus-visible .work-card__media img,
  .work-card:hover .work-card__cta svg, .work-card:focus-visible .work-card__cta svg { transform: none; }
}

/* ---------- mobile drawer navigation (the menu collapses at 1180px) ---------- */
.nav-top, .nav-backdrop { display: none; }
@media (max-width: 1180px) {
  /* A header with backdrop-filter becomes the containing block for fixed children, which would trap the drawer
     inside the header bar. Keep the frosted look on a pseudo-element behind the content instead. */
  .head { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); pointer-events: none; }
}
@media (max-width: 1180px) {
  .js .menu-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; background: #fff; }
  .js .menu-btn:hover { border-color: var(--blue); color: var(--blue); }
  .js .head .nav {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 300;
    width: min(86vw, 380px); max-height: none; margin: 0; padding: 0 22px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: -20px 0 48px rgba(8,27,51,.25);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(104%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  }
  .js .head .nav.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
  .js .nav-top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .nav-top__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
  .nav-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; border: 0; border-radius: 50%; background: #eaf2fc; color: var(--navy); cursor: pointer; }
  .nav-close:hover { background: #dbe8f8; color: var(--blue); }
  .js .head .nav a:not(.btn) { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .js .head .nav a:not(.btn)::after { content: "\203A"; color: var(--muted); font-size: 1.4rem; line-height: 1; }
  .js .head .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .js .head .nav .btn { margin-top: 24px; min-height: 54px; font-size: 1rem; }
  .js .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 290; background: rgba(8,27,51,.55); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
  html.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .28s ease; }
  html.nav-open, html.nav-open body { overflow: hidden; }
  html.nav-open .head { z-index: 400; transform: none !important; transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .head .nav, .js .head .nav.open, .js .nav-backdrop, html.nav-open .nav-backdrop { transition: none; }
}

/* ---------- forms: clearer invalid state ---------- */
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.form-error { font-size: 1rem; line-height: 1.45; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
  .consent { gap: 12px; }
  .field input, .field select, .field textarea { scroll-margin-top: 110px; }
}
@media (max-width: 600px) {
  /* hero: tighter, buttons stacked and full width */
  .ada-hero-devices .ada-hero-grid { padding-block: 34px 26px; gap: 8px; }
  .ada-hero-devices .lead { font-size: 1.05rem; }
  .ada-hero-devices .btn-row { flex-direction: column; gap: 10px; margin-top: 22px; }
  .ada-hero-devices .btn-row .btn { width: 100%; min-height: 52px; font-size: .95rem; }
  .ada-hero-devices .btn-row + p { margin-top: 18px; }
  .ada-hero-devices h1 { letter-spacing: -.04em; }

  /* sections: calmer spacing */
  .sec--help, .sec--work, .sec--closing { padding-block: 44px; }
  .help-head, .work-head { margin-bottom: 26px; }
  .help-head p, .work-head p { margin-top: 14px; font-size: 1rem; }
  .help-grid, .work-grid { gap: 14px; }

  /* "How can we help": icon on the left, text beside it, whole card tappable */
  .help-card { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; align-content: start; padding: 20px 18px; }
  .help-card__icon { grid-row: 1 / span 4; margin: 0; }
  .help-card__title, .help-card__sub, .help-card__desc, .help-card__cta { grid-column: 2; }
  .help-card__title { margin-top: 2px; font-size: 1.4rem; }
  .help-card__cta { justify-self: start; margin-top: 0; padding-top: 14px; }

  /* portfolio: large screenshots, compact text */
  .work-card__body { padding: 18px 8px 0; }
  .work-card__title { font-size: 1.35rem; }
  .work-card__cta { padding-top: 16px; }

  /* closing call to action */
  .sec--closing .btn-row { flex-direction: column; gap: 10px; margin-top: 22px; }
  .sec--closing .btn-row .btn { width: 100%; min-height: 52px; font-size: .95rem; }

  /* forms */
  .form .btn-row .btn { width: 100%; min-height: 52px; font-size: 1rem; }
}

/* Touch targets: footer and top-bar links on phones (>=44px hit area, layout otherwise unchanged) */
@media (max-width: 760px) {
  .foot-grid li a, .foot-grid dd a, .foot-grid dt a { display: inline-block; padding: 12px 0; }
  .foot-family a, .foot-family span[aria-current] { padding: 13px 0; }
  .util-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .head .brand { min-height: 44px; }
}

/* ===== Homepage closing contact section ===== */
.lets { position: relative; overflow: hidden; color: #fff; background: radial-gradient(900px 420px at 88% -10%, rgba(255,255,255,.14), transparent 60%), radial-gradient(700px 380px at -5% 110%, rgba(8,27,51,.45), transparent 62%), linear-gradient(135deg, #0754a6 0%, #063b76 100%); }
.lets__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.lets__eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: rgba(255,255,255,.82); margin-bottom: 14px; }
.lets h2 { color: #fff; max-width: 16ch; }
.lets__lead { margin-top: 18px; max-width: 46ch; font-size: 1.1rem; color: rgba(255,255,255,.92); }
.lets__note { margin-top: 22px; max-width: 46ch; padding-left: 16px; border-left: 3px solid rgba(255,255,255,.5); color: rgba(255,255,255,.88); }
.lets__card { background: #fff; color: var(--navy); border-radius: 16px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 18px 44px rgba(3,18,38,.32); }
.lets__card h3 { margin: 0; font-size: 1.4rem; line-height: 1.25; color: var(--navy); }
.lets__card > p { margin-top: 8px; color: var(--muted); }
.lets__card .lets__primary { display: flex; width: 100%; justify-content: center; margin-top: 22px; min-height: 54px; }
.lets__ways { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lets__ways li { margin: 0; }
.lets__ways a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); text-decoration: none; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.lets__ways a::after { content: "\2197"; color: var(--blue); font-weight: 700; flex: none; }
.lets__ways a:hover { border-color: var(--blue); box-shadow: 0 6px 16px rgba(7,84,166,.14); transform: translateY(-1px); }
.lets__k { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); flex: none; }
.lets__v { margin-left: auto; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.lets__alt { margin-top: 16px; font-size: .92rem; color: var(--muted); }
.lets__alt a { color: var(--blue); font-weight: 600; }
.lets a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
.lets__primary:focus-visible { outline-color: var(--navy); }
@media (max-width: 900px) { .lets__grid { grid-template-columns: 1fr; } .lets h2 { max-width: none; } }
@media (max-width: 600px) {
  .lets__grid { padding-block: 40px; gap: 26px; }
  .lets__lead { font-size: 1rem; }
  .lets__card { padding: 22px 18px; }
  .lets__ways a { min-height: 54px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 16px; }
  .lets__k { grid-column: 1; }
  .lets__v { grid-column: 1; margin-left: 0; text-align: left; overflow-wrap: anywhere; }
  .lets__ways a::after { grid-column: 2; grid-row: 1 / span 2; }
}
@media (prefers-reduced-motion: reduce) { .lets__ways a { transition: none; } .lets__ways a:hover { transform: none; } }

/* ===== Footer: clearer hierarchy ===== */
.foot .wrap { padding-block: 56px 24px; }
.foot-grid { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.foot a { text-decoration: none; color: rgba(255,255,255,.84); transition: color .15s ease; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; border-radius: 2px; text-decoration: underline; }
.foot h2 { margin-bottom: 14px; padding-bottom: 10px; font-size: .78rem; }
.foot li { margin-bottom: 7px; }
.foot-brand p { max-width: 34ch; margin: 0 0 16px; }
.foot-contact { display: grid; gap: 10px; }
.foot-contact li { margin: 0; display: grid; gap: 1px; }
.foot-contact span { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.foot-contact a, .foot-contact b { color: #fff; font-weight: 500; }
.foot-base { margin-top: 36px; padding-top: 18px; gap: 10px 24px; align-items: center; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.foot-legal a { color: rgba(255,255,255,.78); }
.foot-family { margin-top: 36px; padding-top: 18px; }
.foot-family a { color: rgba(255,255,255,.78); }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } .foot-brand p { max-width: 60ch; } .foot-contact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .foot .wrap { padding-block: 34px 20px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; }
  .foot-contact { grid-template-columns: 1fr; gap: 6px; }
  .foot-contact a { display: inline-block; padding-block: 12px; }
  .foot-grid li a { padding: 12px 0; font-size: .9rem; line-height: 1.3; }
  .foot-grid li { margin: 0; }
  .foot-legal { gap: 0 18px; }
  .foot-legal a, .foot-family a { display: inline-block; padding: 12px 0; }
  .foot-base { margin-top: 18px; }
}
@media (max-width: 480px) { .foot-grid > nav:nth-of-type(1), .foot-grid > nav:nth-of-type(2) { grid-column: auto; } }

/* ===== Customer-focused pages: shared pieces ===== */
.hero-eyebrow { display: block; margin-bottom: 14px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.82); }
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.svc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.sec--light .svc { background: #fff; }
.svc h3 { margin: 0 0 8px; color: var(--navy); }
.svc h3 a { color: inherit; text-decoration: none; }
.svc h3 a:hover { color: var(--blue); text-decoration: underline; }
.svc p { margin: 0; }
.svc .svc__for { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.sec--tight { padding-bottom: 0; }
.solution__strong { margin: 14px 0 12px; font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.split--solution .btn { max-width: 100%; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; gap: 12px; } .svc { padding: 18px; } .split--solution .btn { width: 100%; } }
.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.plans4 .plan { display: flex; flex-direction: column; }
.plans4 .plan .btn { margin-top: auto; }
.plans4 .h5 { margin: 14px 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) { .plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans4 { grid-template-columns: 1fr; } .plans4 .plan .btn { width: 100%; } }
.plans4 .plan .btn { width: 100%; justify-content: center; text-align: center; }

/* =====================================================================
   ADA visual system: hero ambience, illustrations, diagrams, video
   ===================================================================== */
:root { --navy-2: #0d2a4d; --glow: rgba(47,127,224,.35); --lift: 0 14px 34px rgba(8,27,51,.14); }

/* Hero: layered gradient, soft glow and a faint dot grid on every inner page */
.hero-page { position: relative; isolation: isolate; background: linear-gradient(135deg, #081b33 0%, #0b2547 55%, #0a3a73 100%); }
.hero-page::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(620px 360px at 85% 10%, var(--glow), transparent 65%), radial-gradient(520px 320px at 5% 110%, rgba(7,84,166,.45), transparent 62%); }
.hero-page::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-page--visual .hero-copy { padding-block: 8px; }
.hero-page--visual h1 { max-width: 16ch; }
.hero-visual { min-width: 0; }
.hero-art { display: block; width: 100%; height: auto; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 26px 34px rgba(0,0,0,.4)); }
.hero-shot { max-width: 560px; margin-inline: auto; }
.hero-shot .bwin img { display: block; width: 100%; height: auto; }
.hero-shot__cap { margin: 12px 0 0; font-size: .85rem; color: rgba(255,255,255,.8); }
.hero-ill { max-width: 560px; margin-inline: auto; }
.hero-ill .vfig { margin: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-page--visual h1 { max-width: none; } .hero-visual { order: 2; } }

/* Figures and labels */
.vfig { margin: 0; }
.vfig figcaption, .vid figcaption { margin-top: 12px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.on-dark .vfig figcaption { color: rgba(255,255,255,.78); }
.vtag { display: inline-block; padding: 2px 8px; margin-right: 4px; border-radius: 999px; background: #eaf2fc; color: var(--blue-dark); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.on-dark .vtag, .sec--navy .vtag { background: rgba(255,255,255,.14); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #eaf2fc; color: var(--blue); flex: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.ico svg { width: 24px; height: 24px; }

/* Browser and phone frames */
.bwin { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(8,27,51,.18); text-align: left; }
.bwin__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9eff7; border-bottom: 1px solid var(--line); }
.bwin__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c3cfdf; }
.bwin__bar span { margin-left: 10px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 999px; background: #fff; color: var(--muted); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bwin__body { background: #fff; }
.sk { display: block; height: 8px; margin: 7px 0; border-radius: 4px; background: #dfe7f2; }
.sk--nav { display: inline-block; width: 10%; margin: 0 0 0 14px; }
.wf { padding: 14px; background: #fff; }
.wf__nav { display: flex; align-items: center; margin-bottom: 14px; }
.wf__nav b { width: 22px; height: 22px; border-radius: 6px; background: var(--blue); }
.wf__hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: center; padding: 16px; border-radius: 10px; background: linear-gradient(135deg, #eaf2fc, #dbe8f8); }
.wf__hero .sk { background: #b9cde8; }
.wf__img { height: 78px; border-radius: 8px; background: linear-gradient(135deg, #0754a6, #2f7fe0); }
.wf__btn { display: inline-block; width: 70px; height: 20px; margin-top: 8px; border-radius: 5px; background: var(--blue); }
.wf__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.wf__cards > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.wf__hero--stack { grid-template-columns: 1fr; }
.wf__cards--stack { grid-template-columns: 1fr; }
.pwin { width: 150px; flex: none; border: 6px solid #0b2547; border-radius: 26px; background: #fff; overflow: hidden; box-shadow: 0 18px 36px rgba(8,27,51,.28); }
.pwin__notch { width: 44px; height: 6px; margin: 6px auto 0; border-radius: 4px; background: #0b2547; }
.pwin .wf { padding: 10px; }
.rp { display: flex; align-items: flex-end; gap: 18px; justify-content: center; }
.rp .bwin { flex: 1 1 auto; max-width: 440px; }

/* Before / after */
.ba { position: relative; --pos: 50%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(8,27,51,.16); aspect-ratio: 16 / 10; user-select: none; }
.ba__layer { position: absolute; inset: 0; }
.ba__after { z-index: 1; clip-path: inset(0 0 0 var(--pos)); }
.ba__mock { position: absolute; inset: 0; padding: 14px; }
.ba__label { position: absolute; top: 10px; left: 10px; z-index: 3; padding: 3px 10px; border-radius: 999px; background: rgba(8,27,51,.85); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ba__label--r { left: auto; right: 10px; background: var(--blue); }
.ba__ctl { position: absolute; inset: 0; z-index: 4; margin: 0; }
.ba__ctl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__handle { position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(8,27,51,.25); pointer-events: none; }
.ba__handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(8,27,51,.3); }
.ba:focus-within .ba__handle::after { outline: 3px solid var(--red); outline-offset: 2px; }
.ba:not(.ba--live) { aspect-ratio: auto; display: grid; gap: 12px; padding: 12px; }
.ba:not(.ba--live) .ba__layer { position: relative; inset: auto; clip-path: none; min-height: 220px; }
.ba:not(.ba--live) .ba__ctl, .ba:not(.ba--live) .ba__handle { display: none; }
.ba__mock--old { background: #f1ede0; font-family: Georgia, serif; }
.o-bar { height: 28px; background: #7a1f1f; margin-bottom: 8px; }
.o-row { display: flex; gap: 6px; margin-bottom: 10px; }
.o-row i { flex: 1; height: 14px; background: #b8a77a; }
.o-body { display: grid; grid-template-columns: 1fr 70px; gap: 10px; }
.o-col i { display: block; height: 6px; margin: 7px 0; background: #8c8672; }
.o-side u { display: block; height: 34px; margin-bottom: 8px; background: #d7c790; }
.ba__mock--new { background: #fff; }

/* Google result illustration */
.serp { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 40px rgba(8,27,51,.14); }
.serp__bar { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.serp__bar .ico { width: 24px; height: 24px; background: none; border-radius: 0; }
.serp__bar .ico svg { width: 18px; height: 18px; }
.serp__res { display: grid; gap: 4px; margin: 18px 4px; }
.serp__co { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: #202124; }
.serp__co b { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); }
.serp__co small { color: #4d5156; font-size: .78rem; }
.serp__title { color: #1a0dab; font-size: 1.18rem; line-height: 1.3; }
.serp__desc { color: #4d5156; font-size: .9rem; line-height: 1.5; }
.serp__meta { color: #1a0dab; font-size: .84rem; }
.serp__key { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: .84rem; color: var(--muted); }
.serp__key b { display: inline-block; min-width: 96px; color: var(--navy); }

/* Flow diagrams */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; counter-reset: flow; }
.flow li { position: relative; padding: 20px 18px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.flow li:hover { transform: translateY(-4px); box-shadow: var(--lift); border-color: var(--blue); }
.flow li::after { content: ""; position: absolute; top: 38px; right: -17px; width: 18px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 4px, transparent 4px 7px); }
.flow li:last-child::after { display: none; }
.flow h3 { margin: 12px 0 6px; font-size: 1.05rem; color: var(--navy); }
.flow p { margin: 0; font-size: .92rem; color: var(--muted); }
.sec--navy .flow li { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.sec--navy .flow h3 { color: #fff; }
.sec--navy .flow p { color: rgba(255,255,255,.78); }
.sec--navy .flow .ico { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow li::after { top: auto; bottom: -17px; right: auto; left: 38px; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, var(--blue) 0 4px, transparent 4px 7px); } }

/* Care dashboard, app and store illustrations */
.dash { padding: 16px; background: #f6f9fd; }
.dash__top, .app__top, .shop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.dash__top .sk, .app__top .sk { margin: 0; height: 12px; }
.dash__pill { padding: 4px 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.dash__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dash__cell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dash__cell b { display: block; font-size: .86rem; color: var(--navy); }
.dash__cell span { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; }
.dash__cell u { width: 10px; height: 10px; border-radius: 50%; background: #2e9e6b; }
.dash__cell .ico { width: 34px; height: 34px; border-radius: 9px; }
.dash__cell .ico svg { width: 18px; height: 18px; }
.dash__chart { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.dash__chart i { flex: 1; background: linear-gradient(180deg, #2f7fe0, #0754a6); border-radius: 4px 4px 0 0; }
.dash__chart i:nth-child(1) { height: 55%; } .dash__chart i:nth-child(2) { height: 70%; } .dash__chart i:nth-child(3) { height: 48%; }
.dash__chart i:nth-child(4) { height: 82%; } .dash__chart i:nth-child(5) { height: 64%; } .dash__chart i:nth-child(6) { height: 90%; } .dash__chart i:nth-child(7) { height: 72%; }
.app { display: grid; grid-template-columns: 130px 1fr; min-height: 260px; background: #f6f9fd; }
.app__side { display: grid; align-content: start; gap: 4px; padding: 12px 8px; background: #0b2547; color: rgba(255,255,255,.8); font-size: .78rem; }
.app__side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.app__side span.on { background: rgba(255,255,255,.14); color: #fff; }
.app__side .ico { width: 18px; height: 18px; background: none; border-radius: 0; color: inherit; }
.app__side .ico svg { width: 16px; height: 16px; }
.app__main { padding: 14px; min-width: 0; }
.app__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.app__form label { display: grid; gap: 4px; }
.app__form label.wide { grid-column: 1 / -1; }
.app__form label .sk { margin: 0; height: 7px; }
.app__form b { display: block; height: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.app__form b.tall { height: 42px; }
.app__table { display: grid; gap: 6px; }
.app__table > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.app__table .sk { display: inline-block; margin: 0 10px 0 0; }
.app__table u { width: 44px; height: 14px; border-radius: 7px; background: #cfe3fa; }
.shop { padding: 14px; }
.shop__cart { color: var(--blue); }
.shop__cart .ico { width: 30px; height: 30px; border-radius: 8px; }
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shop__item { padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.shop__img { height: 74px; margin-bottom: 4px; border-radius: 8px; background: linear-gradient(135deg, #dbe8f8, #b9cde8); }
.shop__btn { display: block; margin-top: 8px; padding: 5px; border-radius: 6px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; text-align: center; }
@media (max-width: 520px) { .app { grid-template-columns: 1fr; } .app__side { display: none; } .dash__grid { grid-template-columns: 1fr; } .shop__grid { grid-template-columns: repeat(2, 1fr); } .shop__item:nth-child(3) { display: none; } .rp .pwin { width: 110px; } }

/* Video */
.vid { margin: 0; }
.vid video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #081b33; box-shadow: var(--lift); }
.vid video:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* Section transitions: a soft fade between plain and tinted bands */
.sec--light { background: linear-gradient(180deg, #f3f7fc 0%, #f3f7fc 88%, #eef3fa 100%); }
.sec--navy { background: linear-gradient(135deg, #081b33 0%, #0a2344 60%, #0b2f5c 100%); }

/* Catalogue */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.filter:not(.filter--live) { display: none; }
.filter button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font: 600 .9rem var(--font); cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.filter button:hover { border-color: var(--blue); transform: translateY(-1px); }
.filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; margin-bottom: 24px; }
.cat-head .ico { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, #eaf2fc, #d6e6fa); grid-row: span 2; }
.cat-head .ico svg { width: 28px; height: 28px; }
.cat-head h2 { margin: 0; }
.cat-head p { margin: 0; color: var(--muted); max-width: 62ch; }
.sec--navy .cat-head p { color: rgba(255,255,255,.8); }
.cat-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.cat-split > * { min-width: 0; }
.cat-split .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.svc { position: relative; display: flex; flex-direction: column; gap: 6px; border-radius: 16px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.svc .ico { margin-bottom: 8px; }
.svc:hover, .svc:focus-within { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--lift); }
.svc:hover .ico, .svc:focus-within .ico { background: var(--blue); color: #fff; }
.svc h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.svc h3 a:focus-visible::after { outline: 3px solid var(--red); outline-offset: 2px; }
.svc__go { margin-top: auto; padding-top: 10px; font-weight: 600; color: var(--blue); font-size: .92rem; }
.svc__go::after { content: " \2192"; display: inline-block; transition: transform .2s ease; }
.svc:hover .svc__go::after { transform: translateX(4px); }
.cat-video { margin-top: 0; }
@media (max-width: 980px) { .cat-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cat-head { grid-template-columns: 1fr; } .cat-head .ico { grid-row: auto; } .cat-split .svc-grid { grid-template-columns: 1fr; } .filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .filter button { white-space: nowrap; } }

/* Visual feature split (text beside an illustration) */
.vsplit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.vsplit > * { min-width: 0; }
.vsplit--flip > :first-child { order: 2; }
@media (max-width: 900px) { .vsplit { grid-template-columns: 1fr; } .vsplit--flip > :first-child { order: 0; } }

/* Motion preferences: keep layout, drop movement */
@media (prefers-reduced-motion: reduce) {
  .svc, .flow li, .filter button, .ico, .svc__go::after { transition: none; }
  .svc:hover, .svc:focus-within, .flow li:hover, .filter button:hover { transform: none; }
  .svc:hover .svc__go::after { transform: none; }
}

/* Compact catalogue cards: icon beside the text, side illustration stays in view */
.cat-split .svc, .sec .svc-grid .svc { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-content: start; padding: 18px; }
.svc .ico { grid-row: 1 / span 4; margin: 0; }
.svc > h3, .svc > p, .svc > .svc__go { grid-column: 2; margin: 0; }
.svc > p { font-size: .94rem; line-height: 1.5; }
.svc .svc__go { padding-top: 6px; }
.cat-side { position: sticky; top: 96px; }
@media (max-width: 980px) { .cat-side { position: static; } }
@media (max-width: 600px) { .cat-split .svc, .sec .svc-grid .svc { padding: 16px; } }

/* External references and "ADA services" panels (clearly separate things) */
.xref::after { content: "\2197"; display: inline-block; margin-left: 3px; font-size: .85em; text-decoration: none; }
.reading { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-left: 4px solid #8a9bb3; border-radius: 12px; background: #fff; }
.reading h2 { margin: 0 0 6px; font-size: 1.15rem; }
.reading ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.reading li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.reading li:first-child { border-top: 0; }
.reading__pub { color: var(--muted); font-size: .84rem; }
.helps { margin-top: 28px; padding: 22px 24px; border-radius: 12px; background: #eaf2fc; border-left: 4px solid var(--blue); }
.helps h2 { margin: 0 0 6px; font-size: 1.15rem; }
.helps ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.helps a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); transition: border-color .2s ease, transform .2s ease; }
.helps a span { color: var(--muted); font-size: .92rem; }
.helps a:hover { border-color: var(--blue); transform: translateY(-2px); }
.prose .vfig { margin: 26px 0; }
.prose .flow { margin: 22px 0; }
@media (prefers-reduced-motion: reduce) { .helps a { transition: none; } .helps a:hover { transform: none; } }

/* Web address diagram */
.urlbar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: clamp(.95rem, 3.4vw, 1.25rem); color: var(--muted); overflow-wrap: anywhere; box-shadow: 0 10px 26px rgba(8,27,51,.1); }
.urlbar .ico { width: 30px; height: 30px; border-radius: 50%; background: #eaf2fc; }
.urlbar .ico svg { width: 16px; height: 16px; }
.urlbar em { font-style: normal; font-weight: 700; color: var(--blue); }
.urlparts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.urlparts li { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: grid; gap: 2px; align-content: start; }
.urlparts b { color: var(--blue); font-size: .92rem; overflow-wrap: anywhere; }
.urlparts span { font-weight: 700; color: var(--navy); font-size: .9rem; }
.urlparts small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
@media (max-width: 700px) { .urlparts { grid-template-columns: 1fr 1fr; } }

/* Learning Centre hub */
.lc-tools { display: grid; gap: 14px; margin-bottom: 26px; }
.lc-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 16px; min-height: 52px; border: 1px solid #9fb0c4; border-radius: 999px; background: #fff; }
.lc-search:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; border-color: var(--blue); }
.lc-search .ico { width: 24px; height: 24px; background: none; color: var(--blue); }
.lc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 1rem var(--font); min-height: 48px; }
.lc-tools .filter { margin: 0; }
.lc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lc-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.lc-card:hover, .lc-card:focus-within { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--lift); }
.lc-card h3 { margin: 4px 0 6px; font-size: 1.12rem; line-height: 1.3; }
.lc-card h3 a { color: var(--navy); text-decoration: none; }
.lc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.lc-card h3 a:focus-visible::after { outline: 3px solid var(--red); outline-offset: 2px; }
.lc-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.lc-meta { font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); }
.lc-empty { margin-top: 18px; color: var(--muted); }
@media (max-width: 760px) { .lc-grid { grid-template-columns: 1fr; } .lc-card { padding: 16px; } }
@media (prefers-reduced-motion: reduce) { .lc-card { transition: none; } .lc-card:hover, .lc-card:focus-within { transform: none; } }
[hidden] { display: none !important; }

/* Table row headers: never break a word mid-way */
.tbl-wrap tbody th[scope="row"] { overflow-wrap: normal; word-break: keep-all; min-width: 6.5rem; }

/* Code examples in learning articles */
pre.code { margin: 0; padding: 18px 20px; background: var(--navy); color: #dbe7f7; border-radius: 10px; overflow-x: auto; font: .88rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre.code code { white-space: pre; }

/* Flow inside a hero visual: two by two */
.hero-ill .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-ill .flow li::after, .hero-ill .flow li::before { display: none; }

/* Source-attributed definitions (build/definitions.py) */
.defs { margin-top: 36px; }
.defs h2 { margin-bottom: 6px; }
.defs__list { display: grid; gap: 16px; margin-top: 16px; }
.defn { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 12px; background: #fff; }
.defn h3 { margin: 0 0 8px; font-size: 1.12rem; }
.defn p { margin: 8px 0 0; }
.defn__text { font-size: 1.02rem; }
.defn__src, .defn__link { font-size: .92rem; color: var(--muted); }
.defn__link a { overflow-wrap: anywhere; }
.defn__ex { font-size: .95rem; }
.defn__svc { font-size: .92rem; padding-top: 8px; border-top: 1px solid var(--line); }

/* Consultation booking */
.book-days, .book-times { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; padding: 10px 14px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip--more { border-style: dashed; color: var(--blue); }
.book-chosen { font-weight: 700; }
.book-manage { max-width: 760px; }
.book .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book [hidden], .book-manage [hidden] { display: none !important; }

/* Hero: layered project mockups (Our Work) */
.mstack { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 16 / 11; }
.mstack__img { position: absolute; display: block; height: auto; filter: drop-shadow(0 18px 26px rgba(0,0,0,.45)); transition: transform .3s ease; }
.mstack__l { width: 56%; left: 0; top: 4%; }
.mstack__r { width: 56%; right: 0; top: 0; }
.mstack__c { width: 66%; left: 17%; bottom: 0; }
.mstack:hover .mstack__l { transform: translate(-6px, -4px); }
.mstack:hover .mstack__r { transform: translate(6px, -4px); }
.mstack:hover .mstack__c { transform: translateY(-6px); }

/* Hero: interface-style panel (About, Contact) */
.hpanel { max-width: 520px; margin-inline: auto; padding: 0 0 18px; border-radius: 16px; background: rgba(255,255,255,.96); color: var(--navy);
  box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 26px 44px rgba(0,0,0,.35); overflow: hidden; }
.hpanel__bar { display: flex; gap: 6px; padding: 12px 16px; background: #e8eff8; border-bottom: 1px solid var(--line); }
.hpanel__bar i { width: 10px; height: 10px; border-radius: 50%; background: #b9c8dc; }
.hpanel__title { margin: 16px 20px 6px; font-size: 1.05rem; color: var(--navy); }
.hpanel__list { list-style: none; margin: 0; padding: 0 12px; }
.hpanel__list li, .hpanel__list a { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 10px; color: var(--navy); text-decoration: none; }
.hpanel__list li > div, .hpanel__list a > div { display: flex; flex-direction: column; min-width: 0; }
.hpanel__list strong { font-size: .98rem; }
.hpanel__list span:not(.ico) { font-size: .86rem; color: var(--muted); }
.hpanel__list .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #e8f0fb; color: var(--blue); }
.hpanel__list .ico svg { width: 20px; height: 20px; }
.hpanel__list a { transition: background .2s ease, transform .2s ease; }
.hpanel__list a:hover { background: #f1f6fd; transform: translateX(3px); }
.hpanel__list a:focus-visible { outline: 3px solid var(--blue); outline-offset: -2px; }
.hpanel__foot { margin: 8px 20px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .mstack__img, .hpanel__list a { transition: none; } .mstack:hover .mstack__img, .hpanel__list a:hover { transform: none; } }

/* CTA band: navy-to-blue gradient, faint technical grid and a slow glow (CSS only) */
.cta { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #0754a6 0%, #0a4a96 45%, #0b2f5f 100%); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 90%); mask-image: linear-gradient(90deg, transparent 10%, #000 90%); }
.cta::after { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 68%); animation: ctaGlow 9s ease-in-out infinite alternate; }
@keyframes ctaGlow { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
@media (prefers-reduced-motion: reduce) { .cta::after { animation: none; } }

/* Our Work: real screenshots in browser frames */
.bwin { margin: 0; background: #fff; border: 1px solid rgba(8,27,51,.18); border-radius: 10px; overflow: hidden; box-shadow: 0 22px 44px rgba(3,12,26,.4); }
.bwin__bar, .pf__shot .bwin__bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #e9eef5; border-bottom: 1px solid #d3dbe7; }
.bwin__bar i { width: 8px; height: 8px; border-radius: 50%; background: #b9c4d4; flex: none; }
.bwin__bar span { margin-left: 8px; font-size: .68rem; color: #4b5b72; background: #fff; border-radius: 4px; padding: 2px 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bwin img { display: block; width: 100%; height: auto; }
.bstack { position: relative; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 16 / 12; }
.bstack .bwin { position: absolute; transition: transform .3s ease; }
.bwin--l { width: 58%; left: 0; top: 2%; }
.bwin--r { width: 58%; right: 0; top: 0; }
.bwin--c { width: 68%; left: 16%; bottom: 0; z-index: 2; }
.bstack:hover .bwin--l { transform: translate(-6px,-4px); }
.bstack:hover .bwin--r { transform: translate(6px,-4px); }
.bstack:hover .bwin--c { transform: translateY(-6px); }
.pfs { display: grid; gap: 44px; }
.pf { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.pf--flip .pf__shot { order: 2; }
.pf__shot { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 44px rgba(8,27,51,.14); transition: transform .3s ease, box-shadow .3s ease; }
.pf__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.pf__shot:hover, .pf__shot:focus-visible { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(8,27,51,.2); }
.pf__body p { color: var(--muted); }
.pf__body .h2 { margin: 8px 0 12px; }
.pf__body .shot-links { align-items: center; padding-top: 14px; }
.tag--own { color: var(--blue); }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; } .pf--flip .pf__shot { order: 0; } .pfs { gap: 36px; } }
@media (prefers-reduced-motion: reduce) { .bstack .bwin, .pf__shot { transition: none; } .bstack:hover .bwin, .pf__shot:hover { transform: none; } }

/* Concept cards */
.ccs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.cc { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.cc:hover, .cc:focus-within { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(8,27,51,.14); }
.cc__shot { position: relative; display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.cc__shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .4s ease; }
.cc:hover .cc__shot img { transform: scale(1.03); }
.cc__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--navy, #081b33); color: #fff; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.cc__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.cc__body h3 { margin: 0 0 2px; }
.cc__kind { color: var(--blue); font-size: .82rem; font-weight: 600; margin: 0 0 8px; }
.cc__body p { color: var(--muted); font-size: .94rem; }
.cc__body .more { margin-top: auto; padding-top: 8px; }
@media (prefers-reduced-motion: reduce) { .cc, .cc__shot img { transition: none; } .cc:hover, .cc:hover .cc__shot img { transform: none; } }
.pf ~ .h3 { margin-top: 48px; }

/* Our Work: phone layout (separate composition, not a squeezed desktop) */
.swipehint { display: none; }
@media (max-width: 700px) {
  /* hero collage becomes a swipe strip of screens */
  .bstack { display: flex; gap: 12px; aspect-ratio: auto; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bstack::-webkit-scrollbar { display: none; }
  .bstack .bwin { position: static; flex: 0 0 78%; width: auto; scroll-snap-align: center; box-shadow: 0 10px 24px rgba(3,12,26,.35); transform: none !important; }
  .bstack .bwin--c { order: -1; }
  .bstack .bwin img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

  /* client work: one full-screen card at a time */
  .swipehint { display: block; margin: 0 0 10px; font-size: .8rem; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
  .pfs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pfs::-webkit-scrollbar { display: none; }
  .pf, .pf--flip { position: relative; display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(8,27,51,.12); }
  .pfs .pf { flex: 0 0 86%; scroll-snap-align: center; }
  .pf__shot, .pf--flip .pf__shot { order: 0; border: 0; border-radius: 0; box-shadow: none; }
  .pf__shot .bwin__bar { display: none; }
  .pf__shot img { aspect-ratio: 16 / 10; object-position: left top; }
  .pf__body { padding: 16px 18px 20px; }
  .pf__body .h2 { font-size: 1.35rem; margin: 6px 0 8px; }
  .pf__body p { font-size: .92rem; }
  .pf__body .shot-links { flex-direction: column; align-items: stretch; gap: 10px; }
  .pf__body .btn { width: 100%; text-align: center; min-height: 48px; }
  .pf__body .more { text-align: center; padding: 10px 0; min-height: 44px; }

  /* concepts: compact two-column tiles */
  .ccs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cc { position: relative; border-radius: 14px; }
  .cc__shot img { aspect-ratio: 16 / 10; object-position: left top; }
  .cc__badge { top: 8px; left: 8px; font-size: .62rem; padding: 3px 8px; }
  .cc__body { padding: 10px 12px 14px; }
  .cc__body h3 { font-size: 1rem; }
  .cc__body .cc__kind { font-size: .74rem; line-height: 1.3; margin: 0 0 4px; }
  .cc__body p:not(.cc__kind) { display: none; }
  .cc__body .more { font-size: .84rem; min-height: 44px; display: inline-flex; align-items: center; }
  .ccs .cc:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- finishing layer: hero frames, motion and touch comfort ---------- */
.bwin--hero { max-width: 560px; margin-inline: auto; }
.bwin--card { display: block; width: 100%; margin: 0; box-shadow: 0 14px 34px rgba(8,27,51,.16); }
.bwin--card img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work-card__media { display: block; padding: 0; aspect-ratio: auto; }
.figure--phone img { max-width: 260px; margin-inline: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(8,27,51,.18); }
.figure--phone figcaption { text-align: center; }

.ada-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1001; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--blue), var(--red)); will-change: transform; }
header.is-scrolled, .site-header.is-scrolled { box-shadow: 0 8px 26px rgba(8,27,51,.14); }

.btn { transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background-color .18s, color .18s, border-color .18s; }
.btn:active:not([disabled]) { transform: scale(.97); }
.crumbs a, .rows a, .tile, .pindex a { transition: color .18s, background-color .18s, transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s; }
.grid > .reveal:nth-child(2), .ccs > .reveal:nth-child(2), .tiles > .reveal:nth-child(2) { --d: 70ms; }
.grid > .reveal:nth-child(3), .ccs > .reveal:nth-child(3), .tiles > .reveal:nth-child(3) { --d: 140ms; }
.grid > .reveal:nth-child(4), .ccs > .reveal:nth-child(4), .tiles > .reveal:nth-child(4) { --d: 210ms; }
.grid > .reveal:nth-child(n+5), .ccs > .reveal:nth-child(n+5) { --d: 260ms; }

@keyframes ada-fade { from { opacity: .35; } to { opacity: 1; } }
@keyframes ada-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ada-pop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  main { animation: ada-fade .3s ease-out both; }
  .hero-visual > * { animation: ada-pop .7s .15s cubic-bezier(.2,.8,.2,1) both; }
  .hero-visual > .hpanel, .hero-visual > .bwin--hero { animation: ada-pop .7s .15s cubic-bezier(.2,.8,.2,1) both, ada-float 8s 1s ease-in-out infinite; }
  .hero-visual:hover > .hpanel, .hero-visual:hover > .bwin--hero { animation-play-state: running, paused; }
  .hpanel__list li { animation: ada-pop .55s cubic-bezier(.2,.8,.2,1) both; }
  .hpanel__list li:nth-child(1) { animation-delay: .35s; } .hpanel__list li:nth-child(2) { animation-delay: .45s; }
  .hpanel__list li:nth-child(3) { animation-delay: .55s; } .hpanel__list li:nth-child(4) { animation-delay: .65s; } .hpanel__list li:nth-child(5) { animation-delay: .75s; }
  .work-card:hover .bwin--card, .pf__shot:hover .bwin { transform: translateY(-4px); }
  .work-card .bwin--card { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
  footer { content-visibility: auto; contain-intrinsic-size: auto 520px; }
}
@media (prefers-reduced-motion: reduce) { .ada-progress { display: none; } }

/* touch comfort */
@media (max-width: 700px) {
  .more, .xref, .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .xref { padding-block: 6px; }
  .rows a, .pindex a, .tile { min-height: 48px; }
  .cc__badge { font-size: .72rem; }
  .vtag { font-size: .75rem; }
  .hero-visual > .hpanel { margin-top: 8px; }
}

/* Services catalogue on phones: one swipe strip per category instead of a 19,000px column */
@media (max-width: 700px) {
  .cat-split > div { min-width: 0; }
  .svc-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc { position: relative; flex: 0 0 76%; scroll-snap-align: start; padding: 18px; display: flex; flex-direction: column; }
  .svc h3 a::after { content: ""; position: absolute; inset: 0; }
  .svc p { font-size: .92rem; }
  .svc .svc__go { margin-top: auto; padding-top: 12px; }
}

/* folded reference sections */
.fold { margin-top: 6px; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--blue); font-weight: 700; transition: background-color .18s, box-shadow .18s; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -4px; transition: transform .2s ease; flex: none; }
.fold[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
.fold > summary:hover { background: #f3f7fc; }
.fold[open] > summary { margin-bottom: 20px; }
@media (min-width: 900px) {
  .fold > summary { display: none; }
  .fold::details-content { content-visibility: visible; display: block; }
}
@media (max-width: 700px) { .cat-split > div + div { display: none; } }

/* Shorter pages on phones: price cards swipe, guide list is a compact index, stacked tables are tighter */
@media (max-width: 700px) {
  .grid:has(> .plan) { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 2px 16px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid:has(> .plan)::-webkit-scrollbar { display: none; }
  .grid:has(> .plan) > .plan { position: relative; flex: 0 0 82%; scroll-snap-align: start; }
  .lc-grid { grid-template-columns: 1fr; gap: 10px; }
  .lc-card { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 14px; align-items: center; }
  .lc-card > p, .lc-card h3 + p { display: none; }
  .lc-card h3 { margin: 0 0 2px; font-size: 1.02rem; }
  table.stack tr { margin-bottom: 8px; padding: 2px 12px 4px; }
  table.stack tbody th { padding: 8px 0 6px; }
  table.stack td { padding: 5px 0; font-size: .86rem; }
}

/* Phones: category tabs scroll sideways */
@media (max-width:700px){
  .filter--live{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;scrollbar-width:none;margin-inline:-16px;padding:2px 16px 6px}
  .filter--live li{flex:0 0 auto}
}

/* Phones: compact page rhythm so every page fits in fewer screens */
@media (max-width:700px){
  .sec{padding-block:34px}
  .sec--tight{padding-block:24px 0}
  .hero-page{padding-block:22px 26px}
  .hero-page .lead{margin-top:12px;font-size:.98rem;line-height:1.5}
  .hero-page--visual .hero-visual:not(:has(.bstack)){display:none}
  .hero-page .crumbs{margin-bottom:10px}
  .h2{font-size:1.42rem;line-height:1.2}
  .sec .lead,.sec p.mt2{margin-top:8px}
  .vsplit{gap:14px}
  .rows a{padding:14px 0;gap:3px}
  .rows a p,.rows a span+span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .steps,.steps ol{gap:10px}
  .steps li{padding:14px 16px}
}

/* Phones: card grids become swipe rows, decorative diagrams step aside */
@media (max-width:700px){
  .grid:not(.swipe):has(> .card){display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-16px;padding:2px 16px 14px;scrollbar-width:none}
  .grid:not(.swipe):has(> .card) > .card{position:relative;flex:0 0 78%;scroll-snap-align:start}
  .vfig:not(:has(img)){display:none}
  .flow{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-16px;padding:2px 16px 10px;scrollbar-width:none}
  .flow > *{flex:0 0 62%;scroll-snap-align:start}
  .ticks li{padding-block:4px}
  .ticks{gap:4px}
}

/* Phones: slightly smaller reading size and tighter lists */
@media (max-width:700px){
  main p,main li{font-size:.95rem;line-height:1.5}
  main .ticks li{padding-block:2px}
  .note,.callout{padding:14px 16px}
  .card{padding:16px}
  .sec-head{margin-bottom:14px}
  .btns,.cta-row{gap:10px}
}

/* contextual learning links */
a.term{text-decoration:underline dotted;text-underline-offset:3px}

.hero .lead a{color:#fff;text-decoration:underline;text-underline-offset:3px}
