/* ==========================================================================
   Inspire Engineering Solutions
   Brand colours from the build plan: navy #0A2036, blue #155CA9, green #75E7BA.
   Green is reserved for the primary action. The logo file is never recoloured:
   every logo effect is drawn around or over it (ring, shine, plate).
   ========================================================================== */

@font-face {
  font-family: "IES Sans";
  src: local("Calibri"), url("../fonts/carlito-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IES Sans";
  src: local("Calibri Bold"), local("Calibri-Bold"), url("../fonts/carlito-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #0A2036;
  --blue: #155CA9;
  --green: #75E7BA;
  --green-hover: #9BF0CF;
  --air: #EEF4FA;
  --line: #D3DEEA;
  --steel: #50627A;
  --white: #fff;
  --error: #B3261E;
  /* sampled from the logo artwork, used only for effects around the logo */
  --logo-blue: #115289;
  --logo-green: #0DA750;
  --header-h: 76px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "IES Sans", Calibri, Carlito, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
}
img, svg, picture, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: var(--blue); }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .bluestar :focus-visible, .site-footer :focus-visible { outline-color: var(--green); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 4px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 28px;
  font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.1;
  text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 1.0625rem; }
.btn-primary { background: var(--green); color: var(--navy); }
.btn-primary:hover { background: var(--green-hover); }
/* a draught of air crosses the primary button on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s var(--ease-in-out); }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-line { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-line:hover { background: var(--blue); color: #fff; }
.btn-text { background: none; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; padding: 0 6px; }
.btn-text:hover { color: var(--navy); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Page-load intro: logo inside a turning gear ring ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; background: #fff;
  animation: intro-out .65s var(--ease-in-out) 1.2s forwards;
}
.intro-mark { position: relative; width: 250px; height: 250px; display: grid; place-items: center; }
.intro-mark img { width: 148px; animation: intro-logo .7s var(--ease) both; }
.intro-ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; animation: spin 2.4s linear infinite; }
.ring-band, .ring-teeth { stroke: url(#ies-ring); }
.ring-band { stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring-draw 1s var(--ease-in-out) forwards; }
.ring-teeth { stroke-width: 11; stroke-dasharray: 4 4; opacity: 0; animation: fade-in .5s .35s forwards; }
@keyframes intro-out { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes intro-logo { from { opacity: 0; transform: scale(.82); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Logo effects (artwork itself is untouched) ---------- */
.logo { position: relative; display: inline-block; line-height: 0; }
.logo img { height: 56px; width: auto; transition: transform .5s var(--ease), filter .5s; }
/* a band of light travels across the logo's own shape */
.logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("../img/logo-mask.png") center / 100% 100% no-repeat;
  mask: url("../img/logo-mask.png") center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 44%, rgba(255, 255, 255, .78) 50%, transparent 56%) no-repeat;
  background-size: 300% 100%;
  background-position: 150% 0;
  animation: sheen 7s var(--ease-in-out) 2.2s infinite;
}
.brand:hover .logo img { transform: scale(1.05); filter: drop-shadow(0 5px 10px rgba(17, 82, 137, .28)); }
.brand:hover .logo::after { animation: sheen-once .9s var(--ease-in-out); }
@keyframes sheen { 0% { background-position: 150% 0; } 16%, 100% { background-position: -50% 0; } }
@keyframes sheen-once { from { background-position: 150% 0; } to { background-position: -50% 0; } }

/* white plate with a slowly turning blue and green rim, for dark backgrounds */
.logo-plate {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-block; padding: 14px 20px; border-radius: 10px; line-height: 0;
}
.logo-plate::before {
  content: ""; position: absolute; inset: -75%; z-index: -2;
  background: conic-gradient(var(--logo-blue), var(--logo-green), var(--logo-blue), var(--logo-green), var(--logo-blue));
  animation: spin 9s linear infinite;
}
.logo-plate::after { content: ""; position: absolute; inset: 3px; z-index: -1; background: #fff; border-radius: 7px; }
.logo-plate .logo img { height: 62px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(10, 32, 54, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-name { font-weight: 700; font-size: 1.125rem; line-height: 1.08; max-width: 9.5em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a:not(.btn) {
  position: relative; color: var(--navy); font-weight: 700; font-size: 1.0625rem; text-decoration: none; padding: 8px 0;
}
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav > a:not(.btn):hover::after, .site-nav > a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  min-height: min(840px, calc(100svh - var(--header-h)));
  background: var(--navy); color: #fff;
}
.hero-photo { position: absolute; inset: 0; z-index: -3; }
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
  animation: hero-drift 26s ease-in-out infinite alternate;
}
@keyframes hero-drift { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, var(--navy) 0%, rgba(10, 32, 54, .93) 28%, rgba(10, 32, 54, .5) 62%, rgba(10, 32, 54, .18) 100%),
    linear-gradient(0deg, rgba(10, 32, 54, .75), transparent 42%);
}
.hero-fan {
  position: absolute; left: -190px; bottom: -230px; z-index: -1;
  width: 620px; height: 620px; max-width: none;
  fill: none; stroke: rgba(160, 205, 250, .2); stroke-width: .7;
}
.fan-blades path { fill: rgba(160, 205, 250, .07); }
.fan-hub { fill: var(--navy); }
.airflow { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero-inner { padding-block: clamp(64px, 11vh, 120px) clamp(96px, 14vh, 150px); }
.hero-title {
  font-size: clamp(3.1rem, 8.4vw, 6.9rem); line-height: .93; letter-spacing: -.028em; font-weight: 700;
  margin-bottom: .32em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero-title .line > span { display: block; animation: rise 1s var(--ease) 1.35s both; }
.hero-title .line:nth-child(2) > span { animation-delay: 1.47s; }
.hero-lead { max-width: 33em; font-size: clamp(1.1875rem, 1.6vw, 1.375rem); color: #D6E4F3; animation: settle .9s var(--ease) 1.75s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; animation: settle .9s var(--ease) 1.9s both; }
@keyframes rise { from { transform: translateY(108%); } }
@keyframes settle { from { opacity: 0; transform: translateY(16px); } }

.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.hero-caption { margin-left: auto; font-size: .9375rem; color: rgba(214, 228, 243, .8); }
.airflow-control {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 5px 5px 16px;
  background: rgba(10, 32, 54, .72); border: 1px solid rgba(160, 205, 250, .35); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.airflow-label { font-size: .9375rem; color: #D6E4F3; margin-right: 8px; }
.airflow-control button {
  font: inherit; font-size: .9375rem; font-weight: 700; color: #D6E4F3;
  background: none; border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; cursor: pointer;
  transition: background-color .25s, color .25s;
}
.airflow-control button:hover { color: #fff; }
.airflow-control button[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.018em; margin-bottom: 16px; }
.section-head p { color: var(--steel); font-size: 1.25rem; max-width: 36em; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Equipment ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  font: inherit; font-weight: 700; font-size: 1.0625rem; color: var(--navy);
  min-height: 46px; padding: 0 20px; background: #fff; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 4px;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--navy); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.equip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.equip {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease);
}
.equip:hover { border-color: var(--blue); transform: translateY(-4px); }
.equip-media { position: relative; overflow: hidden; aspect-ratio: 690 / 400; background: var(--navy); }
.equip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.equip:hover .equip-media img { transform: scale(1.06); }

/* louvre blades open to show each photograph */
.louvre { position: absolute; inset: 0; display: flex; flex-direction: column; pointer-events: none; }
.louvre span {
  flex: 1; margin-bottom: -1px; background: var(--navy);
  box-shadow: inset 0 -1px 0 rgba(160, 205, 250, .22);
  transform-origin: top;
  transition: transform .75s var(--ease-in-out);
  transition-delay: calc(var(--i) * 60ms);
}
.equip.is-in .louvre span { transform: scaleY(0); }
.equip.is-snapping .louvre span { transition: none; }

.equip-icon {
  position: absolute; left: 16px; bottom: 16px; width: 54px; height: 54px; padding: 6px;
  background: rgba(10, 32, 54, .84); border-radius: 50%;
}
.equip-icon svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.equip-icon svg > circle:first-child { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.equip-icon .solid { fill: #fff; stroke: none; }
.icon-fan .spin { animation: spin 2.6s linear infinite; }
.equip:hover .icon-fan .spin { animation-duration: .9s; }
.icon-flow .pipe { opacity: .35; }
.icon-flow .pulse { stroke: #9CCBFF; stroke-width: 2.2; stroke-dasharray: 9 59; animation: flow-68 1.9s linear infinite; }
.icon-air .wave { stroke-dasharray: 7 5; animation: flow-12 .9s linear infinite; }
.icon-air .w2 { animation-delay: -.3s; opacity: .75; }
.icon-air .w3 { animation-delay: -.6s; opacity: .5; }
.icon-cassette .throw { stroke-width: 2; stroke-dasharray: 3 3; animation: flow-6 .7s linear infinite; }
@keyframes flow-68 { to { stroke-dashoffset: -68; } }
@keyframes flow-12 { to { stroke-dashoffset: -12; } }
@keyframes flow-6 { to { stroke-dashoffset: -6; } }

.equip-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 26px 28px 28px; }
.equip-cat { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.equip h3 { font-size: 1.75rem; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 10px; }
.equip-ask { margin-top: 8px; color: var(--steel); }
.equip-ask strong { color: var(--navy); }
.equip .btn { margin-top: auto; }
.equip-ask + .btn { margin-top: 22px; }
.equip-body > p:last-of-type { margin-bottom: 22px; }
.equip-note { margin-top: 26px; color: var(--steel); }

/* ---------- Approach: a duct run with air moving through it ---------- */
.approach { background: var(--air); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-item h3, .step-item p { padding-right: 44px; }
.step-item h3 { font-size: 1.5rem; line-height: 1.12; margin-bottom: 10px; }
.step-item p { color: var(--steel); }
.duct { position: relative; height: 46px; display: flex; align-items: center; margin-bottom: 26px; }
.duct-run {
  position: absolute; left: 0; right: 0; top: 50%; height: 16px; margin-top: -8px;
  border-block: 2px solid var(--navy);
  background: linear-gradient(90deg, var(--blue) 0 14px, transparent 14px) 0 50% / 40px 4px repeat-x;
  animation: duct-x 1.2s linear infinite;
  transform-origin: left;
}
.duct-node {
  position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 1.25rem;
  box-shadow: 0 0 0 6px var(--air);
}
.js .duct-run { transform: scaleX(0); transition: transform 1s var(--ease-in-out); transition-delay: calc(var(--n, 0) * .45s); }
.js .duct-node { transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(var(--n, 0) * .45s); }
.js .steps.is-in .duct-run { transform: none; }
.js .steps.is-in .duct-node { transform: none; }
.step-item:nth-child(2) { --n: 1; }
.step-item:nth-child(3) { --n: 2; }
@keyframes duct-x { to { background-position-x: 40px; } }
@keyframes duct-y { to { background-position-y: 40px; } }

/* ---------- Blue Star ---------- */
.bluestar { position: relative; isolation: isolate; overflow: hidden; background: var(--blue); color: #fff; }
.bluestar-inner { max-width: var(--wrap); }
.bluestar h2 { max-width: 14em; }
.bluestar p { max-width: 34em; font-size: 1.3125rem; color: #E3EEFA; }
.bluestar-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
/* a ceiling diffuser throwing air outwards, ring by ring */
.diffuser {
  position: absolute; z-index: -1; right: -70px; top: 50%; width: 560px; height: 560px; max-width: none;
  transform: translateY(-50%) rotate(8deg);
  fill: none; stroke: #fff; stroke-width: 1.5;
}
.diffuser path { opacity: .16; }
.diffuser rect { opacity: .1; animation: throw 3.6s ease-in-out infinite; }
.diffuser rect:nth-of-type(4) { animation-delay: 0s; }
.diffuser rect:nth-of-type(3) { animation-delay: .45s; }
.diffuser rect:nth-of-type(2) { animation-delay: .9s; }
.diffuser rect:nth-of-type(1) { animation-delay: 1.35s; }
@keyframes throw { 0%, 55%, 100% { opacity: .1; } 20% { opacity: .5; } }

/* ---------- Enquiry ---------- */
.enquiry-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.enquiry-intro { position: sticky; top: calc(var(--header-h) + 36px); }
.enquiry-intro > p { color: var(--steel); font-size: 1.25rem; }
.example { margin-top: 30px; padding: 18px 22px; border-left: 4px solid var(--blue); background: var(--air); }
.example-title { font-weight: 700; margin-bottom: 4px; }
.contact-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.contact-list a { font-weight: 700; }
.contact-list span { display: block; font-size: 1rem; color: var(--steel); }

.form-card { background: var(--air); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3.2vw, 38px); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px !important; margin-bottom: 26px !important; background: #fff; border: 1.5px solid var(--line) !important; border-radius: 6px; }
.mode-option { position: relative; cursor: pointer; }
.mode-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode-option span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 6px 12px; border-radius: 4px; font-weight: 700; font-size: 1.0625rem; line-height: 1.15;
  transition: background-color .25s, color .25s;
}
.mode-option input:checked + span { background: var(--navy); color: #fff; }
.mode-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }

.progress { margin-bottom: 24px; }
.progress-duct { height: 14px; border-block: 2px solid var(--navy); }
.progress-duct i {
  display: block; height: 100%; width: 25%;
  background: linear-gradient(90deg, var(--blue) 0 14px, rgba(21, 92, 169, .35) 14px) 0 50% / 28px 100% repeat-x;
  animation: duct-28 1s linear infinite;
  transition: width .6s var(--ease-in-out);
}
@keyframes duct-28 { to { background-position-x: 28px; } }
.progress-text { margin-top: 8px; font-size: 1rem; color: var(--steel); }

.form-step { margin-bottom: 26px !important; }
.form-step legend { padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.3125rem; }
.form[data-mode="guided"] .form-step:not(.is-current) { display: none; }
.form[data-mode="guided"] .form-step.is-current { animation: step-in .45s var(--ease) both; }
.form[data-mode="guided"][data-dir="back"] .form-step.is-current { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-28px); } }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 1.0625rem; margin-bottom: 6px; }
.req { font-weight: 400; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 11px 14px;
  font: inherit; color: var(--navy); background: #fff;
  border: 1.5px solid #9DB0C5; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21, 92, 169, .25); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin-top: 6px; font-size: 1rem; color: var(--error); }
.hint { margin: -6px 0 18px; font-size: 1rem; color: var(--steel); }
.hint.is-error { color: var(--error); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 18px; font-size: 1.0625rem; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--blue); }
.check.is-error span { color: var(--error); }

.form-status { margin-bottom: 20px; padding: 16px 18px; border-left: 4px solid var(--error); background: #FCEDEB; }
.form-status p + p { margin-top: 6px; }
.form-status strong { display: block; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-actions .btn-text { margin-left: auto; }

.form-success { text-align: center; padding: 26px 8px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 2rem; margin-bottom: 10px; }
.form-success p { color: var(--steel); max-width: 30em; margin-inline: auto; }
.form-success .form-actions { justify-content: center; margin-top: 26px; }
.form-success .form-actions .btn-text { margin-left: 0; }
.tick { width: 76px; height: 76px; margin: 0 auto 18px; fill: none; stroke: var(--blue); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.tick circle { stroke-dasharray: 183; stroke-dashoffset: 183; animation: ring-draw .7s var(--ease-in-out) forwards; }
.tick path { stroke-dasharray: 42; stroke-dashoffset: 42; animation: ring-draw .45s var(--ease-in-out) .55s forwards; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D8E8; padding-top: 64px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand p { margin-top: 16px; font-weight: 700; color: #fff; line-height: 1.3; }
.footer-nav { display: grid; gap: 10px; align-content: start; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.footer-legal { margin-top: 48px; padding-block: 22px; border-top: 1px solid rgba(201, 216, 232, .22); font-size: 1rem; }

/* ---------- Mobile enquiry bar ---------- */
.mobile-bar { display: none; }

/* ---------- Simple document pages (privacy, 404) ---------- */
.doc { padding-block: clamp(56px, 8vw, 104px); }
.doc-inner { max-width: 44rem; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; letter-spacing: -.018em; margin-bottom: 20px; }
.doc h2 { font-size: 1.5rem; margin: 34px 0 8px; }
.doc p, .doc li { color: #2C4259; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc .btn { margin-top: 28px; }
.note { margin: 0 0 28px; padding: 14px 18px; border-left: 4px solid var(--blue); background: var(--air); }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 900px) {
  .enquiry-grid { grid-template-columns: 1fr; }
  .enquiry-intro { position: static; }
  .diffuser { opacity: .55; right: -260px; }
}

@media (max-width: 760px) {
  :root { --header-h: 66px; }
  body { font-size: 1.125rem; }
  .logo img { height: 42px; }
  .brand-name { font-size: 1rem; }

  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--navy);
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), background-color .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -8px; }
  .nav-toggle-bars::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }

  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(10, 32, 54, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
  }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav > a:not(.btn)::after { display: none; }
  .js .site-nav .btn { margin-top: 16px; }
  html:not(.js) .site-nav { gap: 14px; }
  html:not(.js) .site-nav > a:not(.btn) { display: none; }

  .hero { min-height: min(720px, calc(100svh - var(--header-h))); }
  .hero-photo img { object-position: 78% center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(10, 32, 54, .9) 0%, rgba(10, 32, 54, .62) 100%),
      linear-gradient(0deg, var(--navy) 0%, transparent 55%);
  }
  .hero-fan { width: 420px; height: 420px; left: -170px; bottom: -180px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-caption { display: none; }

  .equip-grid { grid-template-columns: 1fr; gap: 22px; }
  .equip-body { padding: 22px 22px 24px; }
  .equip .btn { align-self: stretch; }

  .steps { grid-template-columns: 1fr; }
  .step-item { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 34px; }
  .step-item:last-child { padding-bottom: 0; }
  .step-item h3, .step-item p { padding-right: 0; grid-column: 2; }
  .step-item h3 { align-self: center; min-height: 46px; display: flex; align-items: center; margin-bottom: 4px; }
  .duct { grid-row: 1 / span 2; height: auto; margin: 0; align-items: flex-start; }
  .duct-run {
    left: 50%; right: auto; top: 0; bottom: -34px; width: 16px; height: auto; margin: 0 0 0 -8px;
    border-block: 0; border-inline: 2px solid var(--navy);
    background: linear-gradient(180deg, var(--blue) 0 14px, transparent 14px) 50% 0 / 4px 40px repeat-y;
    animation-name: duct-y; transform-origin: top;
  }
  .js .duct-run { transform: scaleY(0); }
  .step-item:last-child .duct-run { display: none; }

  .diffuser { width: 420px; height: 420px; right: -250px; }
  .bluestar-actions .btn { flex: 1 1 100%; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .mode { grid-template-columns: 1fr; }
  .form-actions .btn-primary, .form-actions .btn-line { flex: 1 1 auto; }
  .form-actions .btn-text { margin-left: 0; flex: 1 1 100%; min-height: 44px; }

  .site-footer { padding-bottom: 86px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(10, 32, 54, .12);
    transform: translateY(110%); transition: transform .45s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 50px; }
  .mobile-bar .btn-primary { flex: 1; }
  .btn-whatsapp { border-color: var(--navy); color: var(--navy); background: #fff; padding: 0 18px; }
}

@media (max-width: 400px) {
  .brand-name { display: none; }
  .airflow-label { display: none; }
  .airflow-control { padding-left: 5px; }
}

/* ==========================================================================
   Reduced motion: everything is shown in its finished state, nothing moves
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro, .louvre { display: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .js .reveal, .js .duct-run, .js .duct-node { opacity: 1; transform: none; }
  .diffuser rect { opacity: .22; }
}

@media print {
  .intro, .site-header, .mobile-bar, .airflow, .hero-fan, .airflow-control { display: none !important; }
}
