/* ==========================================================================
   CareHomeWiFi.com — design system
   1. Tokens   2. Base   3. Layout   4. Components   5. Page sections
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* colour — brief palette; --teal-ink is a darker step of teal used only
     where teal sits on light backgrounds as text, for WCAG AA contrast */
  --ivory: #F7F6F2;
  --white: #FFFFFF;
  --grey: #E8ECEB;
  --navy: #172B3A;
  --navy-2: #213A4C;
  --slate: #586B77;
  --teal: #467B78;
  --teal-ink: #3A6966;
  --line: rgba(23, 43, 58, .14);
  --line-strong: rgba(23, 43, 58, .9);
  --line-on-navy: rgba(247, 246, 242, .18);

  /* type */
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-base: 1.0625rem;/* 17 */
  --fs-lead: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h4: 1.125rem;
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.45rem);
  --fs-h2: clamp(1.65rem, 1.3rem + 1.4vw, 2.4rem);
  --fs-h1: clamp(2.05rem, 1.5rem + 2.3vw, 3.35rem);

  /* spacing */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --section: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --max: 1200px;

  /* borders & radius — deliberately restrained */
  --radius: 3px;
  --border: 1px solid var(--line);

  --shadow-menu: 0 18px 40px rgba(23, 43, 58, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ivory); color: var(--navy);
  font-family: var(--font-body); font-size: var(--fs-base); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; }
h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.18; }
h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.3; }
h4 { font-size: var(--fs-h4); font-weight: 650; line-height: 1.35; }
address { font-style: normal; }
strong, b { font-weight: 600; }
::selection { background: var(--teal); color: var(--white); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--navy); color: var(--white); padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }
.section--grey { background: var(--grey); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--tight { padding: calc(var(--section) * .6) 0; }
.section + .section:not([class*="section--"]) { padding-top: 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) clamp(2rem, 5vw, 5rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--top { align-items: start; }
.split--wide-text { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3, .split, .split--wide-text { grid-template-columns: 1fr; }
}

/* editorial section heading: label column + heading column */
.section-head { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-4) var(--s-6); margin-bottom: var(--s-7); align-items: baseline; }
.section-head .eyebrow { margin: 0; padding-top: .55em; }
.section-head h2 { max-width: 24ch; margin: 0; }
.section-head > p:not(.eyebrow) { grid-column: 2; max-width: 62ch; color: var(--slate); font-size: var(--fs-lead); margin: var(--s-3) 0 0; }
.section--navy .section-head > p:not(.eyebrow) { color: rgba(247, 246, 242, .78); }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head .eyebrow { padding-top: 0; }
  .section-head > p:not(.eyebrow) { grid-column: 1; }
}

/* ---------- 4. Components ---------- */

/* eyebrow / label */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: var(--s-4);
}
.section--navy .eyebrow { color: #8CC0BC; }
.lead { font-size: var(--fs-lead); color: var(--slate); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--slate); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius); border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 650; font-size: var(--fs-sm); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-ink); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--navy); color: var(--white); }
.btn--light { background: var(--ivory); color: var(--navy); }
.btn--light:hover { background: var(--white); }
.btn--small { min-height: 40px; padding: .5em 1.1em; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
@media (max-width: 600px) {
  .btn { white-space: normal; text-align: center; }
  .btn-row .btn { width: 100%; }
}

.text-link {
  font-family: var(--font-head); font-weight: 650; font-size: var(--fs-sm); color: var(--teal-ink);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link::after { content: " →"; }
.text-link:hover { color: var(--navy); }
.section--navy .text-link { color: #8CC0BC; }
.section--navy .text-link:hover { color: var(--white); }

/* lists */
.list-lined { list-style: none; border-top: var(--border); }
.list-lined li { padding: .8em 0 .8em 1.6em; border-bottom: var(--border); position: relative; }
.list-lined li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: .7em; height: 1px; background: var(--teal); }
.section--navy .list-lined, .section--navy .list-lined li { border-color: var(--line-on-navy); }
.list-lined--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); border-top: 0; }
.list-lined--cols li:nth-child(-n+2) { border-top: var(--border); }
@media (max-width: 640px) {
  .list-lined--cols { grid-template-columns: 1fr; }
  .list-lined--cols li:nth-child(2) { border-top: 0; }
}

/* figures & photography */
.photo { margin: 0; position: relative; overflow: hidden; background: var(--grey); border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 16 / 9; }
.plan { margin: var(--s-6) 0 0; }
.plan__frame { display: block; background: #fff; border: var(--border); border-radius: var(--radius); padding: clamp(0.75rem, 2vw, 1.5rem); }
.plan__frame img { display: block; width: 100%; height: auto; }
.plan figcaption { font-size: var(--fs-xs); color: var(--slate); margin-top: var(--s-2); max-width: 70ch; }
.photo figcaption, .caption { font-size: var(--fs-xs); color: var(--slate); margin-top: var(--s-2); }

/* "confirm before publishing" marker */
mark.confirm {
  background: transparent; color: inherit; outline: 1.5px dashed var(--teal); outline-offset: 2px;
  border-radius: 2px; padding: 0 .15em; overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (max-width: 600px) { mark.confirm { outline-offset: 0; } }
mark.confirm::before {
  content: "Confirm"; font-family: var(--font-head); font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; background: var(--teal); color: var(--white); padding: .1em .45em; margin-right: .4em;
  border-radius: 2px; vertical-align: .15em;
}
.hide-confirm mark.confirm { outline: 0; padding: 0; }
.hide-confirm mark.confirm::before { display: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247, 246, 242, .97); border-bottom: var(--border); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(247, 246, 242, .9); backdrop-filter: blur(8px); } }
.site-header__row { height: var(--header-h); display: flex; align-items: center; gap: var(--s-5); }
.site-header__logo { flex: none; width: 220px; margin-left: -7px; }
.site-header__logo img { width: 100%; height: auto; max-height: 48px; object-fit: contain; object-position: left center; } /* fits wide or square logos */
.primary-nav { margin-left: auto; }
.primary-nav__list { list-style: none; display: flex; align-items: center; gap: .1rem; }
.primary-nav__item { position: relative; display: flex; align-items: center; }
.primary-nav__item > a {
  display: block; padding: .55rem .6rem; font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  text-decoration: none; color: var(--navy); border-radius: var(--radius); white-space: nowrap;
}
.primary-nav__item > a:hover { color: var(--teal-ink); }
.primary-nav__item > a[aria-current="page"] { color: var(--teal-ink); box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; }
.primary-nav__expand { border: 0; background: none; color: var(--navy); padding: .55rem .35rem .55rem 0; cursor: pointer; margin-left: -.35rem; }
.primary-nav__expand svg { transition: transform .2s; }
.primary-nav__expand[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 10px); left: -1rem; width: 380px; padding: var(--s-4);
  background: var(--white); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-menu);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.subnav.is-open, .has-children:hover .subnav, .has-children:focus-within .subnav { opacity: 1; visibility: visible; transform: none; }
.subnav ul { list-style: none; }
.subnav li a { display: block; padding: .7rem .75rem; border-radius: var(--radius); text-decoration: none; }
.subnav li a:hover { background: var(--ivory); }
.subnav li strong { display: block; font-family: var(--font-head); font-size: .9rem; color: var(--navy); }
.subnav li span { display: block; font-size: .82rem; color: var(--slate); line-height: 1.45; margin-top: .15rem; }
.subnav__overview { display: block; padding: .3rem .75rem .7rem; margin-bottom: .3rem; border-bottom: var(--border); font-family: var(--font-head); font-weight: 650; font-size: .82rem; color: var(--teal-ink); text-decoration: none; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-4); margin-left: var(--s-3); }
.site-header__phone { font-family: var(--font-head); font-weight: 650; font-size: .875rem; text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--teal-ink); }
.menu-toggle {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem; background: none;
  border: 1px solid var(--line-strong); border-radius: var(--radius); font-family: var(--font-head); font-weight: 650; font-size: .875rem; color: var(--navy); cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 16px; height: 10px; }
.menu-toggle__icon i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .2s; }
.menu-toggle__icon i:first-child { top: 1px; }
.menu-toggle__icon i:last-child { bottom: 1px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu { border-top: var(--border); background: var(--ivory); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: var(--s-4) 0 var(--s-6); }
.mobile-menu__list { list-style: none; }
.mobile-menu__list > li { border-bottom: var(--border); }
.mobile-menu__list a { display: block; padding: .85rem 0; font-family: var(--font-head); font-weight: 650; font-size: 1.05rem; text-decoration: none; }
.mobile-menu__list a[aria-current="page"] { color: var(--teal-ink); }
.mobile-menu__sub { list-style: none; padding: 0 0 .6rem 1rem; border-left: 2px solid var(--grey); margin-bottom: .6rem; }
.mobile-menu__sub a { padding: .45rem 0; font-weight: 500; font-size: .95rem; color: var(--slate); }
.mobile-menu__contact { display: grid; gap: var(--s-3); margin-top: var(--s-5); }
.mobile-menu__line { font-family: var(--font-head); font-weight: 600; text-decoration: none; text-align: center; padding: .4rem; }

@media (max-width: 1180px) {
  .site-header__phone { display: none; }
}
@media (max-width: 1060px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
}
@media (max-width: 520px) {
  :root { --header-h: 64px; }
  .site-header__logo { width: 176px; }
  .site-header__actions .btn { display: none; }
}

/* breadcrumbs */
.breadcrumbs { padding-top: var(--s-5); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; font-size: var(--fs-xs); color: var(--slate); }
.breadcrumbs li + li::before { content: "/"; margin-right: .3rem; color: #A3AFB6; }
.breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--navy); }

/* numbered process */
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.process li { counter-increment: step; position: relative; padding: var(--s-6) var(--s-4) 0 0; border-top: 1px solid var(--line-strong); }
.process li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: -.85rem; left: 0;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--teal-ink);
  background: var(--ivory); padding-right: .6rem;
}
.section--white .process li::before { background: var(--white); }
.section--grey .process li::before { background: var(--grey); }
.process h3 { font-size: var(--fs-h4); margin-bottom: .4em; }
.process p { font-size: var(--fs-sm); color: var(--slate); }
.process--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .process, .process--4 { grid-template-columns: 1fr; }
  .process li { border-top: 0; border-left: 1px solid var(--line-strong); padding: 0 0 var(--s-5) var(--s-5); }
  .process li::before { position: static; display: block; padding: 0; margin-bottom: .3rem; background: none !important; }
}

/* fact list (definition grid) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: var(--border); margin: 0; }
.facts div { padding: .9rem 1rem .9rem 0; border-bottom: var(--border); }
.facts dt { font-size: var(--fs-xs); color: var(--slate); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.facts dd { margin: .2rem 0 0; font-family: var(--font-head); font-weight: 650; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .facts, .facts--3 { grid-template-columns: 1fr 1fr; } }

/* testimonial */
.quote { margin: 0; padding-left: var(--s-5); border-left: 2px solid var(--teal); }
.quote p { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.5; color: var(--navy); }
.quote footer { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--slate); }
.quote footer strong { color: var(--navy); display: block; }

/* FAQ */
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-family: var(--font-head); font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--teal-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 2.5rem 1.25rem 0; color: var(--slate); max-width: 70ch; }

/* call-to-action band */
.cta-band { background: var(--navy); color: var(--ivory); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.cta-band h2 { color: var(--white); margin-bottom: .3em; max-width: 26ch; }
.cta-band p { color: rgba(247, 246, 242, .78); max-width: 56ch; }
.cta-band__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); flex: none; }
.cta-band__phone { font-family: var(--font-head); font-weight: 600; font-size: var(--fs-sm); color: rgba(247, 246, 242, .85); text-decoration: none; }
.cta-band__phone:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 760px) { .cta-band__inner { flex-direction: column; align-items: flex-start; } }

/* enquiry form */
.enquiry { background: var(--white); border: var(--border); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.enquiry__fields { display: grid; gap: var(--s-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: grid; gap: .35rem; align-content: start; }
.field[hidden] { display: none; }
.field label { font-family: var(--font-head); font-weight: 650; font-size: .875rem; }
.field .req { font-weight: 500; color: var(--slate); font-size: .8rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--ivory); border: 1px solid #C5CED2; border-radius: var(--radius);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); background: var(--white); }
.field.is-invalid input { border-color: #A1453A; }
.field__error { color: #A1453A; font-size: .82rem; }
.enquiry__trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.enquiry__more { border-top: var(--border); border-bottom: var(--border); padding: .2rem 0; }
.enquiry__more summary { cursor: pointer; padding: .7rem 0; font-family: var(--font-head); font-weight: 650; font-size: .9rem; color: var(--teal-ink); }
.enquiry__more summary span { color: var(--slate); font-weight: 500; }
.enquiry__more[open] { padding-bottom: var(--s-4); }
.enquiry__more .field-row + .field-row { margin-top: var(--s-4); }
.enquiry__footer { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-5); flex-wrap: wrap; }
.enquiry__note { font-size: .82rem; color: var(--slate); margin: 0; max-width: 40ch; }
.enquiry__status { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: #A1453A; }
.enquiry__status:empty { display: none; }
.enquiry__done { padding: var(--s-4) 0; }
.enquiry__done h3 { margin-bottom: .4em; }
.enquiry.is-sent .enquiry__fields, .enquiry.is-sent .enquiry__footer, .enquiry.is-sent .enquiry__status { display: none; }
.enquiry button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* contact panel */
.contact-list { list-style: none; border-top: 1px solid var(--line-strong); }
.contact-list li { padding: 1rem 0; border-bottom: var(--border); display: grid; gap: .15rem; }
.contact-list span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--slate); }
.contact-list a, .contact-list address { font-family: var(--font-head); font-weight: 650; font-size: 1.1rem; text-decoration: none; }
.contact-list a:hover { color: var(--teal-ink); }

/* footer */
.site-footer { background: var(--navy); color: rgba(247, 246, 242, .78); padding: var(--s-8) 0 var(--s-5); font-size: var(--fs-sm); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.site-footer__brand img { width: 230px; height: auto; max-height: 64px; object-fit: contain; object-position: left center; margin: 0 0 var(--s-4) -8px; }
.site-footer__brand p { max-width: 36ch; }
.site-footer__parent a { color: var(--white); border-bottom: 1px solid var(--line-on-navy); }
.site-footer__family { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin-top: .6rem; font-size: var(--fs-sm, .875rem); }
.site-footer__family a { color: var(--white); border-bottom: 1px solid var(--line-on-navy); }
.site-footer__heading { font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: var(--s-4); }
.site-footer__col ul { list-style: none; display: grid; gap: .55rem; }
.site-footer__legal { display: flex; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-on-navy); font-size: var(--fs-xs); }
.site-footer__legal ul { list-style: none; display: flex; gap: var(--s-5); }
.site-footer mark.confirm { outline-color: #8CC0BC; }
@media (max-width: 980px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }

/* long-form content (insights, privacy, project write-ups) */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--teal-ink); }
.prose blockquote { margin: 1.5em 0; padding-left: var(--s-5); border-left: 2px solid var(--teal); color: var(--slate); }

/* subtle entrance — only when JS is running and motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- 5. Page sections ---------- */

/* home hero */
.home-hero { padding: clamp(2rem, 1rem + 4vw, 4.5rem) 0 var(--s-7); }
.home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.home-hero h1 { max-width: 17ch; }
.home-hero .lead { margin-top: var(--s-4); }
.home-hero__media { position: relative; }
.home-hero__media .photo { aspect-ratio: 5 / 4; max-height: 540px; }
@media (max-width: 860px) {
  .home-hero__grid { grid-template-columns: 1fr; }
}

/* page hero (inner pages) */
.page-hero { padding: var(--s-6) 0 var(--section); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.page-hero h1 { max-width: 20ch; }
.page-hero--text .page-hero__grid { grid-template-columns: minmax(0, 1fr); }
.page-hero--text h1 { max-width: 24ch; }
.page-hero .photo { aspect-ratio: 4 / 3; }
@media (max-width: 860px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* care technology */
.tech-systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-on-navy); }
.tech-systems li { list-style: none; padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--line-on-navy); }
.tech-systems li:not(:nth-child(3n+1)) { padding-left: var(--s-5); border-left: 1px solid var(--line-on-navy); }
.tech-systems h3 { font-size: var(--fs-h4); margin-bottom: .3em; }
.tech-systems p { font-size: var(--fs-sm); color: rgba(247, 246, 242, .75); }
.section--white .tech-systems, .section--white .tech-systems li { border-color: var(--line); }
.section--white .tech-systems p { color: var(--slate); }
@media (max-width: 860px) {
  .tech-systems { grid-template-columns: 1fr; }
  .tech-systems li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
}
.note { font-size: var(--fs-sm); color: rgba(247, 246, 242, .65); margin-top: var(--s-5); max-width: 70ch; }
.section--white .note, .section--grey .note { color: var(--slate); }

/* service overview rows */
.service-rows { list-style: none; border-top: 1px solid var(--line-strong); }
.service-rows li { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: var(--s-5); align-items: start; padding: var(--s-6) 0; border-bottom: var(--border); }
.service-rows h3 { margin: 0; }
.service-rows p { color: var(--slate); margin: 0; max-width: 60ch; }
@media (max-width: 860px) { .service-rows li { grid-template-columns: 1fr; gap: var(--s-3); } }

/* insights list */
.article-list { list-style: none; border-top: 1px solid var(--line-strong); }
.article-list li { border-bottom: var(--border); }
.article-list a { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5) 0; text-decoration: none; }
.article-list a:hover h3 { color: var(--teal-ink); }
.article-list .meta { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); padding-top: .35rem; }
.article-list h3 { margin: 0 0 .3em; transition: color .2s; }
.article-list p { color: var(--slate); margin: 0; font-size: var(--fs-sm); }
@media (max-width: 640px) { .article-list a { grid-template-columns: 1fr; gap: .3rem; } }

/* article / project layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: var(--s-5); }
.aside-box { background: var(--white); border: var(--border); border-radius: var(--radius); padding: var(--s-5); font-size: var(--fs-sm); }
.aside-box h2 { font-size: var(--fs-h4); }
.aside-box .btn { margin-top: var(--s-4); width: 100%; }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } .article-aside { position: static; } }

/* logos */
.logo-row { display: flex; gap: var(--s-7); align-items: center; flex-wrap: wrap; list-style: none; }
.logo-row img { height: 56px; width: auto; mix-blend-mode: multiply; filter: grayscale(1); opacity: .85; }

/* ==========================================================================
   6. Interactive components
   All motion is gated behind prefers-reduced-motion: no-preference, and
   every component is fully readable without JavaScript.
   ========================================================================== */

/* ---------- micro-interactions ---------- */
.btn:active { transform: translateY(1px); }
.btn--primary:focus-visible, .btn--secondary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.section--navy .btn:focus-visible, .cta-band .btn:focus-visible { outline-color: #8CC0BC; }
.text-link::after { display: inline-block; transition: transform .2s var(--ease); }
.text-link:hover::after, .text-link:focus-visible::after { transform: translateX(3px); }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal-img img { opacity: 0; transform: scale(1.035); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
  .js .reveal-img.is-visible img { opacity: 1; transform: none; }
}

/* ---------- visitor routes ---------- */
.routes { display: grid; grid-template-columns: 96px minmax(0, 1fr); background: var(--white); border: var(--border); border-radius: var(--radius); }
.routes__label { margin: 0; padding: 1.55rem 0 0 1.25rem; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.routes__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: .9rem; row-gap: .2rem;
  height: 100%; padding: 1.4rem 1.25rem; border-left: var(--border); text-decoration: none; transition: background-color .2s;
}
.route__num { grid-row: 1 / 3; font-family: var(--font-head); font-weight: 700; font-size: .75rem; color: var(--teal-ink); padding-top: .2rem; }
.route__title { font-family: var(--font-head); font-weight: 650; font-size: 1.05rem; line-height: 1.3; color: var(--navy); transition: color .2s; }
.route__text { grid-column: 2; font-size: var(--fs-sm); color: var(--slate); line-height: 1.5; }
.route__arrow { grid-row: 1 / 3; grid-column: 3; align-self: center; color: var(--teal-ink); font-size: 1.15rem; transition: transform .2s var(--ease); }
.route:hover, .route:focus-visible { background: var(--ivory); }
.route:hover .route__title { color: var(--teal-ink); }
.route:hover .route__arrow, .route:focus-visible .route__arrow { transform: translateX(4px); }
.route:focus-visible { outline-offset: -2px; }
@media (max-width: 900px) {
  .routes { grid-template-columns: 1fr; }
  .routes__label { padding: 1rem 1.25rem 0; }
  .routes__list { grid-template-columns: 1fr; }
  .route { border-left: 0; border-top: var(--border); }
  .routes__list li:first-child .route { border-top: 0; }
}

/* ---------- network explorer ---------- */
.nx { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.nx__stage { position: relative; display: grid; gap: 2.4rem; padding: .25rem 0; }
.nx__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.nx__layer { position: relative; z-index: 1; display: flex; justify-content: center; gap: .75rem; }
.nx__layer--systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nx__node {
  display: grid; gap: .15rem; min-width: 210px; padding: .7rem .95rem; text-align: left; cursor: pointer;
  font: inherit; color: var(--white); background: var(--navy-2); border: 1px solid rgba(247, 246, 242, .3); border-radius: var(--radius);
  transition: background-color .25s, border-color .25s, opacity .25s, box-shadow .25s;
}
.nx__layer--systems .nx__node { min-width: 0; }
.nx__node--optional { background: var(--navy); border-style: dashed; }
.nx__tag { font-family: var(--font-head); font-weight: 700; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #8CC0BC; }
.nx__name { font-family: var(--font-head); font-weight: 650; font-size: .94rem; line-height: 1.3; }
.nx__node:hover { border-color: rgba(247, 246, 242, .7); }
.nx__node:focus-visible { outline: 2px solid #8CC0BC; outline-offset: 3px; }
.nx.has-selection .nx__node { opacity: .5; }
.nx.has-selection .nx__node.is-path { opacity: 1; border-color: #8CC0BC; }
.nx__node[aria-pressed="true"] { opacity: 1 !important; background: var(--teal); border-color: var(--teal) !important; box-shadow: 0 0 0 3px rgba(140, 192, 188, .25); }
.nx__node[aria-pressed="true"] .nx__tag { color: rgba(255, 255, 255, .85); }

.nx__link { fill: none; stroke: rgba(247, 246, 242, .3); stroke-width: 1.5; transition: stroke .3s, stroke-width .3s, opacity .3s; }
.nx__link--dashed { stroke-dasharray: 5 5; }
.nx.has-selection .nx__link { opacity: .45; }
.nx__link.is-on { stroke: #8CC0BC; stroke-width: 2.5; opacity: 1 !important; }
@media (prefers-reduced-motion: no-preference) {
  .nx__link.is-drawing { transition: stroke-dashoffset .55s var(--ease), stroke .3s; }
}

.nx__panel {
  position: sticky; top: calc(var(--header-h) + 24px);
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border: 1px solid var(--line-on-navy); border-radius: var(--radius);
  background: rgba(247, 246, 242, .04); color: rgba(247, 246, 242, .82); font-size: var(--fs-sm); line-height: 1.6;
}
.nx__detail + .nx__detail { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line-on-navy); }
.js .nx__detail:not(.is-active) { display: none; }
.js .nx__detail + .nx__detail { margin-top: 0; padding-top: 0; border-top: 0; }
.nx__detail:focus { outline: none; }
.nx__kicker { font-family: var(--font-head); font-weight: 700; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8CC0BC; margin-bottom: .5rem; }
.nx__detail h3 { color: var(--white); font-size: var(--fs-h3); margin-bottom: .4rem; }
.nx__summary { color: rgba(247, 246, 242, .92); }
.nx__detail h4 { color: var(--white); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 1.25rem 0 .5rem; }
.nx__detail ul { list-style: none; display: grid; gap: .5rem; }
.nx__detail li { position: relative; padding-left: 1.1rem; }
.nx__detail li::before { content: ""; position: absolute; left: 0; top: .72em; width: .55rem; height: 1px; background: #8CC0BC; }
.nx__note { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line-on-navy); font-size: .8rem; color: rgba(247, 246, 242, .65); }
@media (prefers-reduced-motion: no-preference) {
  .js .nx__detail.is-active { animation: fadeUp .35s var(--ease); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .nx { grid-template-columns: 1fr; }
  .nx__panel { position: static; }
}
@media (max-width: 600px) {
  .nx__stage { gap: 1.6rem; }
  .nx__layer { gap: .5rem; }
  .nx__layer--wan { display: grid; grid-template-columns: 1fr 1fr; }
  .nx__layer--systems { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .nx__node { min-width: 0; padding: .6rem .7rem; }
  .nx__layer--edge .nx__node, .nx__layer--core .nx__node, .nx__layer--segments .nx__node { width: 78%; }
  .nx__name { font-size: .86rem; }
}

.tech-footnote {
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-6); flex-wrap: wrap;
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line-on-navy);
  font-size: var(--fs-sm); color: rgba(247, 246, 242, .75);
}
.tech-footnote p { max-width: 78ch; margin: 0; }
.tech-footnote strong { color: var(--white); }

/* ---------- delivery timeline ---------- */
.tl__track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tl__rail { position: absolute; left: 10%; right: 10%; top: 10px; height: 2px; background: #CFD7D8; }
.tl__fill { display: block; height: 100%; width: var(--progress, 0%); background: var(--teal); }
@media (prefers-reduced-motion: no-preference) { .tl__fill { transition: width .55s var(--ease); } }
.tl__tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 0 .25rem .9rem; font: inherit; color: var(--slate); background: none; border: 0; cursor: pointer;
}
.tl__dot {
  position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ivory); border: 2px solid #B9C4C6; transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.tl__num { font-family: var(--font-head); font-weight: 700; font-size: .7rem; color: var(--slate); }
.tl__name { font-family: var(--font-head); font-weight: 650; font-size: 1rem; color: var(--navy); transition: color .2s; }
.tl__tab::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: 0; height: 2px; background: transparent; transition: background-color .2s; }
.tl__tab:hover .tl__name { color: var(--teal-ink); }
.tl__tab:hover .tl__dot { border-color: var(--teal); }
.tl__tab.is-done .tl__dot { background: var(--teal); border-color: var(--teal); }
.tl__tab[aria-selected="true"] .tl__dot { border-color: var(--teal); background: var(--white); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 11px var(--teal); }
.tl__tab[aria-selected="true"] .tl__name { color: var(--teal-ink); }
.tl__tab[aria-selected="true"]::after { background: var(--teal); }
.tl__tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius); }

.tl__panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: var(--s-4); padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  background: var(--white); border: var(--border); border-top: 2px solid var(--teal); border-radius: var(--radius);
}
.tl__panel + .tl__panel { margin-top: var(--s-5); }
.js .tl__panel:not(.is-active) { display: none; }
.tl__panel:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.tl__stage { font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: .4rem; }
.tl__intro h3 { font-size: var(--fs-h2); margin-bottom: .35rem; }
.tl__intro > p:not(.tl__stage):not(.tl__who) { color: var(--slate); }
.tl__who { margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--border); font-size: var(--fs-sm); color: var(--slate); }
.tl__who strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: .8rem; }
.tl__panel h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: .6rem; }
.tl__panel .list-lined li { font-size: var(--fs-sm); padding-top: .6rem; padding-bottom: .6rem; }
.tl__panel .list-lined li::before { top: 1.25em; }
@media (prefers-reduced-motion: no-preference) {
  .js .tl__panel.is-active { animation: fadeUp .35s var(--ease); }
}
@media (max-width: 900px) {
  .tl__panel { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Names don't fit five across on a phone: show the stage number, keep the
     name for screen readers; the open panel shows the stage name as a heading. */
  .tl__tab { padding-left: 0; padding-right: 0; }
  .tl__num { font-size: .85rem; color: var(--navy); }
  .tl__tab[aria-selected="true"] .tl__num { color: var(--teal-ink); }
  .tl__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- project showcase ---------- */
.showcase__filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: var(--s-6); }
.showcase__filters[hidden] { display: none; }
.chip {
  min-height: 40px; padding: .45rem 1rem; font-family: var(--font-head); font-weight: 650; font-size: .85rem;
  color: var(--navy); background: transparent; border: 1px solid #B9C4C6; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--navy); background: var(--white); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.showcase__count { margin: 0 0 0 auto; font-size: var(--fs-sm); color: var(--slate); }
.showcase__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.showcase__item[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .showcase__item.is-entering { animation: fadeUp .4s var(--ease); } }
.showcase__empty { padding: var(--s-6); border: 1px dashed #B9C4C6; border-radius: var(--radius); text-align: center; color: var(--slate); }
.case { display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s; }
.case:hover { border-color: #9AA9AF; }
.case__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--grey); }
.case__media img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .case__media img { transition: transform .8s var(--ease); }
  .case:hover .case__media img { transform: scale(1.03); }
}
.case__body { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.case__meta { margin: 0; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-ink); }
.case__title { margin: 0; font-size: var(--fs-h3); }
.case__title a { text-decoration: none; }
.case__title a:hover { color: var(--teal-ink); }
.case__summary { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.case__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: .25rem 0; border-top: var(--border); border-bottom: var(--border); }
.case__facts div { padding: .75rem .75rem .75rem 0; }
.case__facts div + div { padding-left: .75rem; border-left: var(--border); }
.case__facts dt { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.case__facts dd { margin: .2rem 0 0; font-family: var(--font-head); font-weight: 650; font-size: .9rem; line-height: 1.35; }
.case__outcome { margin: 0; padding-left: .9rem; border-left: 2px solid var(--teal); font-size: var(--fs-sm); }
.case__outcome strong { display: block; font-family: var(--font-head); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); }
.case .text-link { align-self: flex-start; margin-top: auto; }
@media (max-width: 860px) { .showcase__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .case__facts { grid-template-columns: 1fr; }
  .case__facts div + div { padding-left: 0; border-left: 0; border-top: var(--border); }
  .showcase__count { margin-left: 0; width: 100%; }
}

/* ---------- form states ---------- */
.field.is-valid input {
  border-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23467B78' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 16px; padding-right: 2.5rem;
}
.field.is-invalid input { border-color: #A1453A; background-color: #FBF5F4; }
.field.is-invalid label { color: #8E3A30; }
.enquiry__errors { margin-bottom: var(--s-4); padding: var(--s-4) var(--s-5); border: 1px solid #A1453A; border-left-width: 4px; border-radius: var(--radius); background: #FBF5F4; font-size: var(--fs-sm); }
.enquiry__errors[hidden] { display: none; }
.enquiry__errors:focus { outline: 2px solid #A1453A; outline-offset: 2px; }
.enquiry__errors h3 { font-size: 1rem; color: #8E3A30; margin-bottom: .3rem; }
.enquiry__errors ul { padding-left: 1.1rem; }
.enquiry__errors a { color: #8E3A30; }
.enquiry__done h3 { display: flex; align-items: center; gap: .7rem; }
.enquiry__done h3::before {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (prefers-reduced-motion: no-preference) { .enquiry__done:not([hidden]) { animation: fadeUp .45s var(--ease); } }
.enquiry button[type="submit"] { min-width: 160px; }

/* ---------- expandable details ---------- */
.faq details > div { overflow: hidden; }

/* ==========================================================================
   7. Editorial refinement (homepage)
   ========================================================================== */
.home-hero__more { margin-top: var(--s-5); }
.home-hero .caption { margin-top: var(--s-2); }

/* who we help */
.audiences { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.audience { display: flex; flex-direction: column; gap: .55rem; }
.audience .photo { margin-bottom: var(--s-3); }
.audience__who { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.audience h3 { margin: 0; }
.audience p:not(.audience__who) { margin: 0; color: var(--slate); font-size: var(--fs-sm); }
.audience .text-link { align-self: flex-start; margin-top: auto; padding-top: var(--s-3); border: 0; }
@media (max-width: 860px) { .audiences { grid-template-columns: 1fr; gap: var(--s-7); } }

/* links that close a section */
.section-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: var(--s-6); }

/* compact timeline: one short panel per stage */
.tl--compact .tl__panel { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin-left: auto; margin-right: auto; }
.tl--compact .tl__intro h3 { font-size: var(--fs-h3); }
.tl__outputs { margin-top: var(--s-4); padding-top: var(--s-3); border-top: var(--border); font-size: var(--fs-sm); color: var(--slate); }
.tl__outputs strong { display: block; font-family: var(--font-head); font-size: .8rem; color: var(--navy); }

/* compact explorer: summary + link to the engineering detail */
.nx__more { display: inline-block; margin-top: var(--s-4); color: #8CC0BC; }
.nx__more:hover { color: var(--white); }
.nx--compact .nx__panel { min-height: 0; }

/* new-build "what we design in" list on navy */
.design-in li { color: rgba(247, 246, 242, .9); }

/* supporting case study on service pages */
.evidence { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); background: var(--white); border: var(--border); border-radius: var(--radius); overflow: hidden; }
.evidence__media { display: block; min-height: 100%; background: var(--grey); }
.evidence__media img { width: 100%; height: 100%; object-fit: cover; }
.evidence__body { display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); }
.evidence__body .eyebrow { margin: 0; }
.evidence__body h2 { margin: 0; font-size: var(--fs-h3); }
.evidence__note { margin: 0; color: var(--slate); font-size: var(--fs-sm); max-width: 60ch; }
.evidence .text-link { align-self: flex-start; }
@media (max-width: 760px) { .evidence { grid-template-columns: 1fr; } .evidence__media { aspect-ratio: 3 / 2; } }

/* analytics consent banner */
.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 200; max-width: 640px; margin-left: auto;
  display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--white); color: var(--navy);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-menu); font-size: var(--fs-sm); line-height: 1.55;
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; }
.consent__text a { color: var(--teal-ink); }
.consent__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 600px) { .consent__actions .btn { flex: 1; width: auto; } }
.site-footer__link { padding: 0; font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.site-footer__link:hover { color: var(--white); text-decoration: underline; }
.note a { color: var(--teal-ink); }

/* "In short" direct answer at the top of Insights articles */
.answer { margin: 0 0 var(--s-6); padding: var(--s-4) var(--s-5); background: var(--white); border: var(--border); border-left: 3px solid var(--teal); border-radius: var(--radius); }
.answer__label { margin: 0 0 .3rem; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--teal-ink); }
.answer p:last-child { margin: 0; color: var(--navy); }
