/* ============================================================
   ABit Systems — multi-page site
   Brand system: see .cursor/skills/abit-branding/SKILL.md
   2026 palette: Pulse, Ignite, Anchor Red. No secondary hue.
   Background fields use the mesh asset or the WebGL wave, not a CSS gradient.
   ============================================================ */

/* Latin subset, self-hosted. Inter is one variable file for 300–600. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/poppins-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/poppins-900.woff2') format('woff2');
}

:root {
  /* Brand — 2026 guidelines */
  --abit-pulse: #f6863c;
  --abit-ignite: #dc3a25;
  --abit-anchor: #7e1416;

  --font-display: 'Poppins', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  /* Neutrals — greys are UI, not brand */
  --ink: #000000;
  --body: #55504e;
  --paper: #ffffff;
  --paper-alt: #fbf7f5;
  --line: #e9e3e0;
  --night: #0a0908;
  --night-2: #16120f;
  --night-line: rgba(255, 255, 255, 0.13);
  --on-night: rgba(255, 255, 255, 0.78);
  --on-night-dim: rgba(255, 255, 255, 0.58);

  --shadow-sm: 0 1px 2px rgba(126, 20, 22, 0.06);
  --shadow-md: 0 6px 20px rgba(126, 20, 22, 0.09);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.16);

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  color: var(--body);
  background: var(--paper);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Inter Regular on dark surfaces. Headings keep their own weight. */
.wave-host p,
.wave-host li,
.wave-host .lede,
.band--night p,
.band--night li,
.site-footer p,
.site-footer li,
.site-footer a,
.contact-hero-card .n {
  font-weight: 400;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--abit-anchor); text-decoration: none; }
a:hover { color: var(--abit-ignite); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .55em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-kerning: normal;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.narrow { max-width: 820px; }

:focus-visible { outline: 3px solid var(--abit-ignite); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -72px; z-index: 200;
  background: var(--night); color: #fff; padding: 12px 18px;
  border-radius: var(--radius); font-weight: 600; transition: top .15s ease;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .14em;
  font-size: .76rem; font-weight: 700; color: var(--abit-anchor);
  margin: 0 0 14px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 999px; background: var(--abit-ignite); flex: none; }
.wave-host .eyebrow,
.on-night .eyebrow,
.band--night .eyebrow {
  color: var(--abit-pulse);
  font-weight: 700;
}

.lede { font-size: 1.14rem; max-width: 62ch; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, transform .06s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--abit-ignite); color: #fff; }
.btn--primary:hover { background: var(--abit-anchor); color: #fff; }
.btn--sm.btn--primary { background: var(--abit-anchor); }
.btn--sm.btn--primary:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--abit-anchor); border-color: rgba(126, 20, 22, 0.4); }
.btn--ghost:hover { background: var(--abit-anchor); border-color: var(--abit-anchor); color: #fff; }
.btn--light { background: #fff; color: var(--abit-anchor); }
.btn--light:hover { background: var(--paper-alt); color: var(--abit-anchor); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn--outline-light:hover { background: #fff; color: var(--abit-anchor); border-color: #fff; }
.btn--sm { padding: 9px 16px; font-size: .875rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   Header
   ============================================================ */

.utility {
  background: #000; color: var(--on-night-dim);
  font-size: .82rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 40px; }
.utility a { color: var(--on-night); font-weight: 500; }
.utility a:hover { color: var(--abit-pulse); }
.utility-contacts { display: flex; gap: 22px; flex-wrap: wrap; }
.utility-where { display: flex; align-items: center; gap: 8px; }
.utility-where::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--abit-ignite); flex: none; }

.site-header { position: sticky; top: 0; z-index: 90; }
.header-main { background: rgba(10, 9, 8, 0.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--night-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 60px; width: auto; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255, 255, 255, 0.86); font-weight: 500; font-size: .95rem; transition: color .15s ease; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--abit-pulse); }
.nav .btn { color: #fff; }
.nav .btn--light { color: var(--abit-anchor); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Bands
   ============================================================ */

.band { padding: clamp(60px, 7vw, 104px) 0; position: relative; }
.band--alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.band--night { background: var(--night); color: var(--on-night); }
.band--night h2, .band--night h3, .band--night h4 { color: #fff; }
.band--tight { padding: clamp(44px, 5vw, 64px) 0; }

.sec-head { max-width: 760px; margin: 0 0 46px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-head p { font-size: 1.06rem; margin-bottom: 0; }
.band--night .sec-head p { color: var(--on-night); }

/* ============================================================
   Hero (home) + page headers — both sit over the animated wave
   ============================================================ */

.wave-host { position: relative; overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
#abit-wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
  background: #000 url("mesh.jpg") center / cover no-repeat;
}
.wave-host::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(6, 4, 4, 0.82) 0%, rgba(6, 4, 4, 0.58) 52%, rgba(6, 4, 4, 0.24) 100%);
}
.wave-host > .container { z-index: 2; }

.hero { padding: clamp(72px, 8vw, 118px) 0 clamp(52px, 6vw, 80px); }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lede { color: rgba(255, 255, 255, 0.88); margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 0; }

.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
  margin-bottom: clamp(40px, 5vw, 56px);
}
/* Mono white per the brand guide — the animated wave is a busy, mid-tone
   background, so the colour lockup would lose its gradient against it. */
.hero-mark { display: flex; justify-content: center; }
.hero-mark img {
  width: 100%; max-width: 380px; height: auto;
  filter: drop-shadow(0 10px 34px rgba(0, 0, 0, 0.45));
}

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--night-line);
  border: 1px solid var(--night-line); border-radius: var(--radius-lg); overflow: hidden;
}
.fact { background: rgba(255, 255, 255, 0.05); padding: 20px 22px; }
.fact dt { font-size: .73rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, 0.62); font-weight: 600; }
.fact dd { margin: 7px 0 0; color: #fff; font-weight: 600; font-size: 1.02rem; line-height: 1.4; }

.page-head { padding: clamp(46px, 5.5vw, 78px) 0 clamp(42px, 5vw, 66px); }
.page-head h1 { color: #fff; margin-bottom: .35em; }
.page-head .lede { color: rgba(255, 255, 255, 0.86); margin-bottom: 0; }
.crumbs { font-size: .84rem; color: rgba(255, 255, 255, 0.62); margin: 0 0 18px; }
.crumbs a { color: rgba(255, 255, 255, 0.82); }
.crumbs a:hover { color: var(--abit-pulse); }
.crumbs span { padding: 0 8px; }

/* ============================================================
   Grids & cards
   ============================================================ */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 28px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
a.card { color: var(--body); display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(220, 58, 37, 0.32); color: var(--body); }
.band--night .card { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.band--night a.card:hover { border-color: rgba(246, 134, 60, 0.45); color: var(--on-night); }

/* Gradient icon tile — the signature device */
.tile {
  width: 50px; height: 50px; border-radius: 13px;
  background: var(--abit-ignite); color: #fff;
  display: grid; place-items: center; margin-bottom: 20px;
}
.tile svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.card-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--abit-anchor); margin-top: 16px; white-space: nowrap; transition: gap .15s ease; }
.card-link svg { width: 18px; height: 18px; flex: none; }
a.card:hover .card-link { gap: 13px; }
.band--night .card-link { color: var(--abit-pulse); }

/* Numbered feature list */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.steps .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--abit-anchor); color: #fff; font-weight: 700; font-size: .95rem;
}
.steps h3 { margin-bottom: 4px; font-size: 1.08rem; }
.steps p { margin: 0; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--wide-left { grid-template-columns: 1.25fr 1fr; }
.split--wide-right { grid-template-columns: 1fr 1.25fr; }

/* Ticked list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 16px; height: 16px; border-radius: 50%; background: var(--abit-ignite);
}
.ticks li::after {
  content: ""; position: absolute; left: 5px; top: .72em;
  width: 6px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* Callout panel — framework/standard detail inside a service section */
.callout {
  margin-top: 38px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 32px; position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--abit-ignite); }
.callout h3 { margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout-list {
  list-style: none; padding: 0; margin: 20px 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px;
}
.callout-list li { position: relative; padding-left: 26px; font-size: .96rem; color: var(--ink); font-weight: 500; }
.callout-list li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--abit-ignite);
}

/* Partner band — logos are the supplied artwork, scaled only */
.partners {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 28px 40px;
}
.partners li {
  display: flex; align-items: center; justify-content: center;
  margin: 0; padding: 0; border: 0; background: transparent;
}
.partners img {
  display: block; width: auto; max-width: none; height: 52px;
  object-fit: contain; object-position: center;
}
.partners .logo--badge { height: 96px; }

/* Product / brand marks — supplied artwork, scaled only (never stretch) */
.product-mark {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  margin: 0 0 18px;
  object-fit: contain;
  object-position: left center;
}
.product-mark--icon {
  width: 72px;
  height: 72px;
  max-height: 72px;
}
.card .product-mark {
  max-height: 44px;
  margin-bottom: 14px;
}
.card .product-mark--icon {
  width: 56px;
  height: 56px;
  max-height: 56px;
}
.product-mark--badge {
  max-height: 80px;
}

/* Dual CTA */
.cta-split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cta {
  border-radius: var(--radius-lg); padding: 38px 36px;
  position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin-bottom: .4em; }
.cta p { margin-bottom: 22px; }
.cta::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--abit-ignite); }
.cta--night { background: var(--night-2); color: var(--on-night); }
.cta--night h2 { color: #fff; }
.cta--paper { background: var(--paper); border: 1px solid var(--line); }

/* ============================================================
   Contact
   ============================================================ */

.contact-hero-card {
  display: block; background: var(--night); border-radius: var(--radius-lg);
  padding: 30px 32px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-md);
}
.contact-hero-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--abit-ignite); }
.contact-hero-card:hover { color: #fff; }
.contact-hero-card .k { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); }
.contact-hero-card .v { display: block; font-size: clamp(1.9rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; color: var(--abit-pulse); margin: 9px 0 6px; line-height: 1.12; }
.contact-hero-card:hover .v { color: #fff; }
.contact-hero-card .n { display: block; font-size: .92rem; color: rgba(255, 255, 255, 0.7); }

.contact-list { list-style: none; margin: 20px 0 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list a { display: grid; grid-template-columns: 128px 1fr; gap: 16px; align-items: baseline; padding: 16px 24px; color: var(--ink); transition: background .15s ease; }
.contact-list a:hover { background: var(--paper-alt); color: var(--ink); }
.contact-list .k { font-size: .77rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--body); }
.contact-list .v { font-weight: 600; color: var(--abit-anchor); overflow-wrap: anywhere; }
.contact-list .v small { display: block; font-weight: 400; font-size: .85rem; color: var(--body); margin-top: 3px; overflow-wrap: normal; }

.enquiry { display: grid; gap: 16px; max-width: 720px; }
.enquiry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.enquiry label { display: grid; gap: 6px; font-weight: 500; color: var(--ink); font-size: .92rem; }
.enquiry input,
.enquiry select,
.enquiry textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; background: #fff; width: 100%;
}
.enquiry textarea { min-height: 140px; resize: vertical; }
.enquiry .fineprint { margin: 0; }

.hours-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.hours-card h3 { color: var(--abit-anchor); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.hours { margin: 0; padding: 0; display: grid; }
.hours > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { color: var(--ink); font-weight: 500; font-size: .95rem; }
.hours dd { margin: 0; text-align: right; font-size: .95rem; }
.afterhours { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.afterhours-terms { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0 0 12px; font-size: .95rem; }
.rate strong { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; color: var(--abit-anchor); }
.rate span { flex-basis: 100%; font-size: .82rem; }
.fineprint { margin: 0; font-size: .87rem; line-height: 1.55; }
.fineprint strong { color: var(--ink); }

/* ============================================================
   Legal / long-form copy
   ============================================================ */

.legal h2 {
  font-size: 1.3rem; margin-top: 2.2em; margin-bottom: .6em;
  padding-top: 1.4em; border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal ul { padding-left: 0; list-style: none; display: grid; gap: 10px; margin-bottom: 1.4em; }
.legal ul li { position: relative; padding-left: 26px; }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--abit-ignite);
}

/* ============================================================
   Team
   ============================================================ */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-grid--4 { grid-template-columns: repeat(4, 1fr); }
.dept { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 26px 24px; }
.dept::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--abit-ignite); }
.dept--wide { grid-column: span 2; }
.dept h3 { color: var(--abit-anchor); font-size: .92rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 13px; }
.dept ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px 18px; }
.dept--wide ul { grid-template-columns: repeat(2, 1fr); }
.dept li { color: var(--ink); font-size: .98rem; display: flex; align-items: center; gap: 9px; }
.tag { font-size: .67rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; color: var(--abit-anchor); background: rgba(220, 58, 37, 0.09); padding: 3px 9px; border-radius: 999px; }

.person { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.person::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--abit-ignite); z-index: 1; }
.person-photo {
  aspect-ratio: 1; background: var(--paper-alt); color: var(--abit-anchor);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border-bottom: 1px solid var(--line);
}
.person-photo svg { width: 56px; height: 56px; }
.person-photo--img { display: block; padding: 0; }
.person-photo--img img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.person-portrait { width: 100%; height: auto; display: block; }
.person-photo span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.person-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 22px 22px 24px; }
.person-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.person-role { margin: 0; color: var(--abit-anchor); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.person-body .card-link { margin-top: auto; }

.staff-dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; color: var(--ink); overflow: auto; }
.staff-dialog::backdrop { background: rgba(0, 0, 0, 0.55); }
.staff-dialog-panel { position: relative; }
.staff-dialog .person-photo { aspect-ratio: 16 / 9; }
.staff-dialog-body { padding: 26px 28px 30px; }
.staff-dialog-body h2 { font-size: 1.6rem; margin-bottom: 8px; }
.staff-dialog-body .person-role { margin-bottom: 14px; }
.staff-dialog-body p:last-child { margin-bottom: 0; }
.staff-dialog-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.staff-dialog-close svg { width: 18px; height: 18px; }
.staff-dialog-close:hover { color: var(--abit-ignite); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer { background: var(--night); color: var(--on-night-dim); position: relative; padding: 60px 0 0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--abit-ignite); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { height: 78px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--night-line); color: var(--on-night); transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.socials a:hover { background: var(--abit-ignite); border-color: var(--abit-ignite); color: #fff; }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--on-night); font-size: .94rem; }
.footer-links a:hover { color: var(--abit-pulse); }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: .94rem; }
.footer-contact a { color: var(--on-night); }
.footer-contact a:hover { color: var(--abit-pulse); }
.footer-contact .k { display: block; font-size: .73rem; text-transform: uppercase; letter-spacing: .11em; color: var(--on-night-dim); margin-bottom: 2px; }
.footer-bottom {
  margin-top: 52px; border-top: 1px solid var(--night-line); padding: 22px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem;
}
.footer-bottom a { color: var(--on-night-dim); }
.footer-bottom a:hover { color: var(--abit-pulse); }

/* ============================================================
   Back to top
   ============================================================ */

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  height: 48px; min-width: 48px; padding: 0 14px;
  border-radius: 999px; border: 0;
  background: var(--abit-ignite); color: #fff;
  display: inline-flex; flex-direction: row-reverse;
  align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, filter .15s ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--abit-anchor); transform: translateY(-2px); }
.to-top svg { width: 20px; height: 20px; flex: none; transition: transform .18s ease; }
.to-top:hover svg { transform: translateY(-2px); }

/* Chat launcher sits in the corner the back-to-top button used.
   Lift the back-to-top control clear of it. */
body.has-site-chat .to-top { bottom: 84px; }

/* ============================================================
   Site chat (Copilot Studio iframe in our panel)
   ============================================================ */

.site-chat {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.site-chat__launch,
.site-chat__panel,
.site-chat__close { pointer-events: auto; }

.site-chat__launch {
  height: 48px; padding: 0 18px; border: 0; border-radius: var(--radius);
  background: var(--abit-anchor); color: #fff;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  box-shadow: var(--shadow-lg);
}
.site-chat__launch:hover { background: #000; color: #fff; }
.site-chat__launch svg { width: 18px; height: 18px; flex: none; }

.site-chat__panel {
  width: min(400px, calc(100vw - 48px));
  height: min(640px, calc(100dvh - 120px));
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.site-chat__panel[hidden] { display: none !important; }

.site-chat__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; background: var(--night); flex: none;
}
.site-chat__title { margin: 0; color: #fff; font-size: .95rem; font-weight: 600; }
.site-chat__close {
  width: 36px; height: 36px; border: 0; border-radius: var(--radius);
  background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer;
}
.site-chat__close:hover { background: rgba(255, 255, 255, 0.12); }
.site-chat__close svg { width: 18px; height: 18px; }

.site-chat__frame { flex: 1; min-height: 0; background: var(--paper-alt); }
.site-chat__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Label unfurls on hover — hover-capable pointers only, so it does not
   stick open after a tap on touch devices. */
.to-top__label {
  max-width: 0; margin-right: 0; overflow: hidden; white-space: nowrap;
  font-weight: 600; font-size: .9rem; opacity: 0;
  transition: max-width .22s ease, opacity .16s ease, margin-right .22s ease;
}
@media (hover: hover) {
  .to-top:hover .to-top__label,
  .to-top:focus-visible .to-top__label { max-width: 140px; margin-right: 9px; opacity: 1; }
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .cta-split { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .dept--wide { grid-column: span 2; }
}

@media (max-width: 860px) {
  /* Once the mark can no longer sit beside the headline it is dropped
     rather than stacked — it is decorative and the header carries the logo. */
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-mark { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--night); border-bottom: 1px solid var(--night-line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity .16s ease, transform .16s ease; box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--night-line); font-size: 1rem; }
  .nav a:last-child { border-bottom: 0; }
  .nav .btn { margin-top: 12px; align-self: flex-start; }
  .header-main { position: relative; }
  .utility .container { justify-content: center; }
  .utility-where { display: none; }
}

@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .dept--wide { grid-column: auto; }
  .dept--wide ul { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: 24px 22px; }
  .callout-list { grid-template-columns: 1fr; }
  .enquiry-row { grid-template-columns: 1fr; }
  .contact-list a { grid-template-columns: 1fr; gap: 3px; padding: 15px 18px; }
  .hours > div { flex-direction: column; gap: 2px; }
  .hours dd { text-align: left; font-weight: 600; color: var(--ink); }
  .partners { gap: 22px 28px; }
  .partners img { height: 44px; }
  .partners .logo--badge { height: 84px; }
  .brand img { height: 52px; }
  .footer-brand img { height: 66px; }
  .to-top { right: 16px; bottom: 16px; height: 44px; min-width: 44px; padding: 0 12px; }
  body.has-site-chat .to-top { bottom: 72px; }
  .site-chat { right: 16px; bottom: 16px; }
  .site-chat__launch { height: 44px; padding: 0 14px; }
  .site-chat.is-open .site-chat__panel {
    position: fixed; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100dvh; border-radius: 0;
  }
  .utility-contacts { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
