/* ==========================================================================
   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); }

.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; }
  .head { transition: transform 260ms cubic-bezier(.2,.8,.2,1); }
  .head.head--away { transform: translateY(-100%); }
  .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; }
}
