:root {
  --paper: #f4f8fa;
  --white: #ffffff;
  --ink: #132b3b;
  --muted: #465d6b;
  --line: #d2e2e9;
  --deep-ocean: #10465d;
  --accent: #006789;
  --accent-light: #99def5;
  --accent-hover: #004e6d;
  --section-space: clamp(4rem, 7.5vw, 6.75rem);
  --grid-gap: clamp(1.15rem, 2.2vw, 1.75rem);
  --card-space: clamp(1.35rem, 2.5vw, 2rem);
  --header-height: 75px;
  --shell-max: 1216px;
  --shell-gutter: 24px;
  --shell-edge: max(var(--shell-gutter), calc((100% - var(--shell-max)) / 2));
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: calc(var(--header-height) + 1.25rem); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #00769a; outline-offset: 4px; }
h1, h2, h3, p { margin: 0 0 1rem; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5vw, 4.65rem); }
h2 { font-size: clamp(1.9rem, 3.15vw, 3rem); }
h3 { font-size: 1.12rem; line-height: 1.35; }
p { color: var(--muted); max-width: 62ch; }
em { font-style: normal; }
.shell { width: calc(100% - 2 * var(--shell-edge)); margin-inline: auto; }
.section { padding-block: var(--section-space); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5.25rem); align-items: center; }
.eyebrow { color: #095b77; font-size: .73rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.skip { position: fixed; z-index: 9; left: .6rem; top: .6rem; background: var(--white); padding: .45rem .7rem; transform: translateY(-180%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  color: var(--ink);
}
.site-header.is-scrolled { box-shadow: 0 2px 16px #132b3b16; }
.site-header .brand img { filter: brightness(0); }
.home .site-header { margin-bottom: calc(-1 * var(--header-height)); }
.home .site-header:not(.is-scrolled) { background: transparent; color: var(--white); }
.home .site-header:not(.is-scrolled) .brand img { filter: none; }
.header-row { display: grid; grid-template-columns: minmax(0, 1.12fr) auto minmax(0, .88fr); align-items: center; gap: 1.25rem; min-height: var(--header-height); }
.brand { display: inline-block; width: 132px; }
.brand img { width: 100%; height: auto; }
.header-row nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.6rem); }
.header-row nav > a:not(.button) { padding-block: .65rem; font-size: .88rem; font-weight: 550; }
.header-row nav > a:is([aria-current], .nav-current, :hover) { color: #095b77; }
.home .site-header:not(.is-scrolled) nav > a:is([aria-current], :hover):not(.button) { color: var(--accent-light); }
.button, .download-tile {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  color: #fff;
  background: var(--accent);
  font-weight: 740;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 3px;
  cursor: pointer;
}
.button:hover, .download-tile:hover, .header-row nav > a.button:hover { background: var(--accent-hover); color: #fff; }
.button-small { font-size: .82rem; }
.desktop-contact { justify-self: end; }
.mobile-contact { display: none; }
.menu-toggle { justify-self: end; padding: .45rem .6rem; background: transparent; border: 1px solid currentColor; border-radius: 3px; color: inherit; }

.hero {
  --hero-download-width: clamp(200px, 22vw, 300px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #172a37 url("hero-editorial.jpg") center / cover no-repeat;
  color: var(--white);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 0;
  inset-inline-end: var(--shell-edge);
  width: var(--hero-download-width);
  background: rgb(211 232 247 / 15%);
  box-shadow: 0 0 0 100vmax rgb(6 18 28 / 43%);
  pointer-events: none;
}
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; min-height: 100svh; padding-block: clamp(150px, 20vh, 230px) clamp(2rem, 5vh, 4rem); gap: 3rem; }
.hero-copy { max-width: 780px; margin-block-start: clamp(5rem, 12vh, 7rem); text-shadow: 0 2px 12px #101d2899; }
.hero-copy .button { text-shadow: none; }
.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-copy h1 > span { display: block; text-wrap: balance; }
.hero-title-offset { padding-inline-start: clamp(2rem, 7vw, 6.5rem); }
.hero-copy em { color: var(--accent-light); }
.hero-copy p:not(.eyebrow) { max-width: 44ch; color: #f0f6f9; }
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr) var(--hero-download-width); align-items: end; gap: 1.5rem; }
.hero-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.hero-links a { display: flex; align-items: center; gap: .35rem; font-size: .86rem; padding: .55rem .15rem .4rem 0; border-top: 1px solid #ffffff55; }
.hero-links a:hover { color: var(--accent-light); border-color: var(--accent-light); }
.hero-links svg { flex: none; width: .8rem; height: .8rem; color: var(--accent-light); }
.download-tile { min-height: 66px; font-size: .95rem; line-height: 1.23; }
.download-tile svg { flex: none; width: 24px; height: 24px; }
.section > .download-tile { justify-self: start; }

.section-head { display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: end; margin-bottom: clamp(1.75rem, 3.2vw, 2.6rem); }
.section-head h2 { margin-bottom: 0; }
.text-link { display: inline-block; font-size: .9rem; font-weight: 720; text-decoration: underline; text-underline-offset: .28em; }
.text-link:hover { text-decoration-thickness: 2px; }
.featured, .people, .values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.feature, .person { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: var(--card-space); }
.feature { display: block; }
.feature:nth-child(2) { background: #e0f0f7; }
.feature:nth-child(3) { background: var(--deep-ocean); color: var(--white); }
.feature:nth-child(3) p { color: #deedf4; }
.feature:hover { box-shadow: inset 0 0 0 1px #498ca7; }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.7rem; font-size: .82rem; }
.feature p, .person p { font-size: .92rem; margin: 0; }
.band { background: #eaf2f6; }
.pattern, .site-footer { position: relative; isolation: isolate; }
.pattern::after, .site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("contour-pattern.svg") right center / min(560px, 74vw) auto no-repeat;
  opacity: .17;
  pointer-events: none;
}
.editorial-image { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; background: #cad6dc; }
.intro-copy { margin: 0; }
.process { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--grid-gap); padding: 0; margin: 2.1rem 0 0; border-top: 1px solid #b6d0de; }
.process li { padding: 1.35rem 0 0; }
.process p { font-size: .88rem; margin-bottom: 0; }

.contact, .site-footer { background: var(--ink); color: var(--white); }
.contact .eyebrow { color: var(--accent-light); }
.contact p, .site-footer p { color: #dcebf3; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
label { display: grid; gap: .5rem; font-size: .86rem; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 46px; padding: .6rem .75rem; color: var(--ink); border: 1px solid #a9c1ce; border-radius: 3px; background: var(--white); }
textarea { resize: vertical; }

.inner-hero { background: #e8f3f8; padding-block: clamp(3rem, 6vw, 5rem); }
.inner-hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.2rem); }
.inner-hero em { color: #065d7d; }
.inner-hero p { margin-bottom: 0; }
.inner-hero .eyebrow { margin-bottom: .8rem; }
.people, .values { margin-top: 2rem; }
.monogram { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1rem; background: #dceff8; border-radius: 50%; color: #105572; font-size: .82rem; font-weight: 750; }
.values article { padding-top: 1.15rem; border-top: 1px solid #ffffff50; }
.values p { font-size: .91rem; margin-bottom: 0; }
/* Shared footer */
.site-footer::after { opacity: .42; }
.site-footer { padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid #ffffff29; }
.footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.75rem, 5vw, 4rem);
}
.footer-brand .brand { display: inline-block; }
.footer-brand p { margin: .75rem 0 0; font-size: .9rem; }
.footer-row h2 {
  margin-bottom: .9rem;
  color: var(--accent-light);
  font: 700 .78rem/1.4 system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links ul { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-block; padding-block: .22rem; }
.footer-contact address { color: #dcebf3; font-style: normal; }
.footer-contact a { display: block; width: fit-content; margin-top: .65rem; color: var(--white); overflow-wrap: anywhere; }
.footer-row a:hover { text-decoration: underline; text-underline-offset: .3em; }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-block: 1rem;
  border-top: 1px solid #ffffff29;
  color: #dcebf3;
}
.footer-base small { font-size: .82rem; }

@media (max-width: 760px) {
  :root { --header-height: 64px; --shell-gutter: 16px; }
  .header-row { grid-template-columns: 1fr auto; min-height: var(--header-height); gap: .4rem; }
  .brand { width: 114px; }
  .header-row nav { grid-column: 1 / -1; flex-wrap: wrap; gap: .3rem 1.2rem; padding-bottom: .65rem; }
  .menu-toggle:not([hidden]) + nav {
    position: absolute;
    inset: 100% 0 auto;
    padding: .75rem 20px 1rem;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 14px #132b3b1a;
  }
  .home .site-header:not(.is-scrolled) .menu-toggle + nav > a:is([aria-current], :hover):not(.button) { color: #095b77; }
  .desktop-contact { display: none; }
  .mobile-contact { display: inline-flex; }
  .hero { --hero-download-width: min(220px, 58vw); background-position: left center; }
  .hero-inner { padding-block: calc(var(--header-height) + 3rem) 1.75rem; gap: 2.5rem; }
  .hero-copy { margin-block-start: clamp(3.25rem, 8vh, 4rem); }
  .hero-title-offset { padding-inline-start: clamp(.8rem, 4vw, 2rem); }
  .hero-bottom, .split { grid-template-columns: 1fr; }
  .hero-bottom { gap: 1.25rem; }
  .hero-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-bottom .download-tile { justify-self: end; width: var(--hero-download-width); }
  .section-head { display: block; }
  .section-head .text-link { margin-top: .8rem; }
  .featured, .people, .values, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { border: 0; gap: 1.25rem; }
  .process li { border-top: 1px solid #b6d0de; }
  .footer-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .featured, .people, .footer-row { grid-template-columns: 1fr; }
}

/* Shared paths into services and enquiries */
.hero-actions, .next-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; }
.hero-actions { margin-top: 1.65rem; }
.hero-actions .text-link { color: var(--white); }
.feature-top > span:first-child { font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.next-section { padding-top: 0; }
.next-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #e1f0f7;
  border: 1px solid #c9e0eb;
  border-radius: 6px;
}
.next-panel h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
.next-panel p:last-child { margin-bottom: 0; }

/* Services directory */
.services-hero .editorial-image { aspect-ratio: 16 / 10; }
.service-directory { padding-bottom: var(--section-space); }
.service-group { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.service-group + .service-group { padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.group-heading { margin-bottom: 1.6rem; }
.group-heading h2 { margin-bottom: .4rem; font-size: clamp(1.75rem, 3.2vw, 2.7rem); }
.group-heading p { margin-bottom: 0; }
.division-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.division-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.division-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #cad6dc;
}
.division-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--card-space);
}
.division-card:target { border-color: #127da1; box-shadow: 0 0 0 2px #127da145; }
.division-card h3 { margin-bottom: .7rem; }
.division-card p { font-size: .9rem; }
.division-card .text-link { margin-top: auto; align-self: start; }

/* About page */
.company-intro { align-items: start; }
.mission-grid { align-items: stretch; gap: var(--grid-gap); }
.mission-grid article { padding: var(--card-space); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.mission-grid article p:last-child { margin-bottom: 0; }
.person { border-top: 3px solid #4496b2; }

/* Enquiry form */
.enquiry-section { background: #e8f3f8; }
.enquiry-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.enquiry-intro { padding-top: .65rem; }
.direct-contact { display: grid; gap: .25rem; margin-top: 1.5rem; font-size: .88rem; }
.direct-contact > span { color: var(--muted); }
.enquiry-card { min-width: 0; padding: clamp(1.3rem, 3.5vw, 2.4rem); border: 1px solid #c9dfe9; border-radius: 6px; background: var(--white); }
.enquiry-card form { display: grid; gap: 1.3rem; }
.enquiry-card-heading { padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.enquiry-card-heading h3 { font-size: 1.22rem; margin-bottom: .25rem; }
.enquiry-card-heading p { font-size: .87rem; margin-bottom: 0; }
.enquiry-card button { justify-self: start; }
.service-field { min-width: 0; }
.service-field label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 550; }
.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  display: block;
  min-width: 0;
  min-height: 50px;
  padding: .65rem 2.65rem .6rem .8rem;
  border-color: #a7c3d1;
  border-radius: 5px;
  background: #eff7fb;
  text-overflow: ellipsis;
  cursor: pointer;
}
.select-wrap select:hover { border-color: #3185a5; }
.select-chevron { position: absolute; top: 50%; right: .8rem; width: 19px; height: 19px; transform: translateY(-50%); color: #145772; pointer-events: none; }
@supports (appearance: base-select) and selector(::picker(select)) {
  .select-wrap select, .select-wrap select::picker(select) { appearance: base-select; }
  .select-wrap select::picker-icon { display: none; }
  .select-wrap select::picker(select) { max-height: min(340px, 55vh); border: 1px solid #a7c3d1; border-radius: 6px; background: var(--white); color: var(--ink); padding: .35rem; box-shadow: 0 10px 25px #132b3b22; }
  .select-wrap optgroup { border-top: 1px solid var(--line); margin-top: .2rem; padding-top: .2rem; }
  .select-wrap optgroup > legend { padding: .25rem .45rem; color: #095b77; font-size: .76rem; font-weight: 750; }
  .select-wrap option { padding: .45rem; border-radius: 3px; overflow-wrap: anywhere; }
  .select-wrap option:hover, .select-wrap option:checked { background: #e1f0f7; }
}

@media (max-width: 760px) {
  .enquiry-layout { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .division-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .division-grid, .form-row { grid-template-columns: 1fr; }
  .select-wrap select { font-size: .92rem; }
}

/* Service detail pages */
.detail-hero h1 { font-size: clamp(2.05rem, 4vw, 3.6rem); overflow-wrap: anywhere; }
.detail-hero p { margin-bottom: 1.3rem; }
.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}
.detail-capabilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding: 0;
  list-style: none;
}
.detail-capabilities { margin: 1.65rem 0 0; }
.detail-capabilities li {
  padding: clamp(1rem, 2.2vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.detail-capabilities h3 { margin-bottom: .55rem; }
.detail-capabilities p { margin: 0; font-size: .92rem; }
.detail-list { display: grid; gap: .55rem; padding-inline-start: 1.2rem; margin-bottom: 0; }
.detail-list li::marker { color: #146d8c; }
.detail-brief { padding: var(--card-space); border: 1px solid var(--line); border-radius: 6px; background: #e8f3f8; }
.detail-brief h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); }
.detail-brief .text-link { margin-top: 1.35rem; }
.related-section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.related-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.related-service-card {
  display: grid;
  grid-template-columns: minmax(0, .57fr) minmax(0, 1fr);
  min-height: 11.5rem;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.related-service-card:hover { border-color: var(--accent); }
.related-service-media { position: relative; background: #cad6dc; }
.related-service-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-service-copy {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.related-service-copy h3 { margin-bottom: .45rem; overflow-wrap: anywhere; }
.related-service-copy p { margin-bottom: .95rem; font-size: .9rem; }
.related-service-action {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 720;
}
.related-service-action svg { width: 1rem; height: 1rem; }
.related-service-card:hover .related-service-action { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 880px) {
  .detail-body, .related-services { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .detail-capabilities, .related-service-card { grid-template-columns: 1fr; }
  .related-service-media { aspect-ratio: 2 / 1; }
}

/* Feedback and preferences */
.footer-privacy { padding: .4rem 0; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: .82rem; }
.footer-privacy:hover { text-decoration: underline; }
.cookie-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 32px #132b3b26;
}
.cookie-notice { width: 100%; padding: 1rem 1.2rem; pointer-events: auto; }
.cookie-notice h2 { font: 700 1rem/1.35 system-ui, sans-serif; letter-spacing: 0; margin-bottom: .25rem; }
.cookie-notice p { margin-bottom: 0; font-size: .85rem; }
.cookie-notice button { flex: none; }
/* Branded page transition */
.page-loader {
  position: fixed;
  z-index: 20;
  inset: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1.5rem;
  background: radial-gradient(ellipse at 75% 88%, #12445c 0%, #102f43 35%, #0a1d2b 76%);
  color: var(--white);
  pointer-events: none;
}
.page-loader::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: clamp(.8rem, 2.5vw, 2.5rem);
  border: 1px solid rgb(153 222 245 / 17%);
}
.page-loader::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("contour-pattern.svg") right bottom / min(69rem, 110vw) auto no-repeat;
  opacity: .5;
}
.page-loader-content {
  display: grid;
  justify-items: center;
  width: min(100%, 16rem);
  text-align: center;
}
.page-loader-brand {
  width: min(100%, 16rem);
  height: auto;
  margin-bottom: 1.55rem;
}
.page-loader-wave {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 1.5rem;
}
.page-loader-wave span {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--accent-light);
}
.page-loader-label {
  margin-top: 1rem;
  color: #c4dce9;
  font-size: .69rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}
@media (prefers-reduced-motion: no-preference) {
  .page-loader-content { animation: loader-arrive .55s cubic-bezier(.22, 1, .36, 1) both; }
  .page-loader-wave span { animation: loader-wave .95s ease-in-out infinite; }
  .page-loader-wave span:nth-child(2) { animation-delay: .12s; }
  .page-loader-wave span:nth-child(3) { animation-delay: .24s; }
  .page-loader.is-finishing { animation: loader-exit .22s ease-in .06s both; }
}
@keyframes loader-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loader-wave {
  0%, 60%, 100% { transform: translateY(0); opacity: .6; }
  30% { transform: translateY(-.45rem); opacity: 1; }
}
@keyframes loader-exit { to { opacity: 0; } }

.spinner { display: inline-block; flex: none; width: 1rem; height: 1rem; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .site-header { transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
  .spinner { animation: spin .75s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.field-error { color: #a12b25; font-size: .82rem; font-weight: 550; }
[aria-invalid="true"] { border-color: #a12b25; }
.enquiry-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.enquiry-toast {
  --toast-accent: #8a4b08;
  position: fixed;
  z-index: 10;
  inset: calc(var(--header-height) + .8rem) var(--shell-gutter) auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: .5rem;
  max-width: 24rem;
  margin-inline-start: auto;
  padding: .85rem .65rem .85rem 1rem;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--toast-accent);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 32px #132b3b26;
}
.enquiry-toast[data-state="success"] { --toast-accent: #216548; }
.enquiry-toast strong { color: var(--toast-accent); }
.enquiry-toast p { margin: .15rem 0 0; font-size: .87rem; }
.enquiry-toast button {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.enquiry-toast button:hover { background: var(--paper); }
.enquiry-card button:disabled { opacity: .7; cursor: wait; }
@media (max-width: 420px) {
  .cookie-notice { align-items: start; flex-direction: column; gap: .7rem; }
}
.input-field { display: grid; align-content: start; gap: .5rem; min-width: 0; }

.floating-tools {
  position: fixed;
  z-index: 8;
  right: max(1rem, env(safe-area-inset-right));
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: 430px;
  margin-left: auto;
  display: grid;
  justify-items: end;
  gap: .75rem;
  pointer-events: none;
}
.back-to-top {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ffffff52;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 5px 18px #132b3b30;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--accent-hover); }
.back-to-top svg { width: 1.25rem; height: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .back-to-top:not([hidden]) { animation: show-back-to-top .18s ease-out both; }
}
@keyframes show-back-to-top {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
