/* ==========================================================================
   Agile ICT — friendly school website
   Palette: Agile orange + a "crayon box" of supporting colours
   ========================================================================== */

/* Fonts, served from this site (Baloo 2 + Nunito, SIL Open Font License). Variable fonts: one file covers every weight.
   The latin-ext files only download if a page uses those characters. */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/baloo2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #FF8121;
  --orange-deep: #E5650A;
  --orange-ink: #B84D00;      /* orange that passes contrast on cream for text */
  --orange-soft: #FFE6D2;

  --sky: #5ECBF3;
  --sky-soft: #DFF5FD;
  --teal: #5DCEB0;
  --teal-soft: #DDF5EE;
  --lime: #A8EA52;
  --lime-soft: #EEFAD9;
  --red: #FE2F0F;
  --red-soft: #FFE3DD;
  --blue: #4E66C8;
  --blue-soft: #E4E8F8;

  --ink: #212745;             /* Agile navy */
  --ink-soft: #565C7A;
  --cream: #FFF9F1;
  --paper: #FFFFFF;
  --line: #F0E4D6;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 6px 0 rgba(33, 39, 69, .08), 0 18px 40px -18px rgba(33, 39, 69, .25);
  --soft: 0 1px 2px rgba(33, 39, 69, .05), 0 10px 30px -12px rgba(33, 39, 69, .16);
  --soft-lift: 0 2px 4px rgba(33, 39, 69, .05), 0 22px 44px -16px rgba(33, 39, 69, .26);

  --font-head: "Baloo 2", "Comic Neue", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
address { font-style: normal; }
.emoji { font-style: normal; font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; line-height: 1; display: inline-block; }
:focus-visible { outline: 3px dashed var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime); color: var(--ink); }

/* Custom scrollbar: orange pill on a cream track */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 999px; border: 1px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-deep); }
::-webkit-scrollbar-corner { background: var(--cream); }
/* Firefox only supports colours (Chromium ignores the rules above if this is set, hence the @supports) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: var(--orange) var(--cream); }
}

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Hand-drawn underline for highlighted words in headings */
.scribble { position: relative; white-space: nowrap; z-index: 0; }
.scribble::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: .02em; height: .38em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 194-6' fill='none' stroke='%23FF8121' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.scribble--orange::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 194-6' fill='none' stroke='%23FF8121' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E"); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--orange-ink); background: var(--orange-soft);
  padding: .3em .95em; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow--light { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-shadow: rgba(33,39,69,.35);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; line-height: 1;
  padding: .95em 1.5em .85em; border-radius: 999px; border: 2px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(33, 39, 69, .45);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(33, 39, 69, .5); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 10px -6px rgba(33, 39, 69, .5); }
.btn i { font-size: 1.15em; }
/* Line icons (arrows, menu caret, close, download): inline SVGs that take the text colour */
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.125em; }
.icon--solid { fill: currentColor; stroke: none; } /* filled logos, e.g. Facebook */
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--orange { --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: 0 8px 22px -8px rgba(255, 129, 33, .7); }
.btn--orange:hover { box-shadow: 0 14px 28px -10px rgba(255, 129, 33, .75); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--ink); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: rgba(33, 39, 69, .18); box-shadow: none; }
.btn--ghost:hover { box-shadow: none; background: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: #fff; box-shadow: none; }
.btn--ghost-light:hover { background: rgba(255,255,255,.15); box-shadow: none; }
.btn--small { font-size: 1rem; padding: .7em 1.15em .6em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Help bar ---------- */
.helpbar { background: var(--ink); color: #fff; font-size: .92rem; font-weight: 700; }
.helpbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.helpbar__hello { display: inline-flex; align-items: center; gap: 6px; }
.helpbar__hello i { color: var(--lime); font-size: 1.15em; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 80%; }
.helpbar__links { display: flex; gap: 6px; flex-wrap: wrap; }
.helpbar__links a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; }
.helpbar__links a:hover { background: rgba(255,255,255,.14); }
.helpbar__links i { color: var(--orange); }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 249, 241, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(33,39,69,.3); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; }
.brand img { height: 48px; width: auto; transition: transform .3s; }
@media (max-width: 520px) { .brand img { height: 34px; } } /* wide logo: leave room for the Menu button */
@media (max-width: 360px) { .brand img { height: 26px; } } /* smallest phones */
.brand:hover img { transform: scale(1.05) rotate(-2deg); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; color: var(--ink); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; transition: background .15s;
}
.nav-link:hover { background: var(--orange-soft); color: var(--ink); }
.nav-link[aria-current="page"] { background: var(--orange); color: #fff; }
.site-nav > .btn { margin-left: 8px; }

/* ----- Solutions mega menu ----- */
.nav-item { display: flex; align-items: center; }
/* "Solutions" + its arrow behave as one pill */
.mega-trigger { display: inline-flex; align-items: center; border-radius: 999px; transition: background .15s; }
.mega-trigger .nav-link { padding-right: 2px; background: transparent; color: inherit; }
.mega-trigger:hover, .has-mega.is-open .mega-trigger { background: var(--orange-soft); }
.mega-trigger:has([aria-current="page"]), .has-mega.is-open .mega-trigger:has([aria-current="page"]) { background: var(--orange); color: #fff; }
.mega-trigger .nav-link[aria-current="page"] { background: transparent; color: #fff; }
.mega-toggle { display: grid; place-items: center; width: 28px; height: 28px; margin-right: 6px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.mega-toggle .icon { transition: transform .2s; }
.has-mega.is-open .mega-toggle .icon { transform: rotate(180deg); }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(33, 39, 69, .4);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__inner { display: grid; grid-template-columns: 1fr 250px; gap: 28px; padding: 26px 0 30px; }
.mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 26px; }
.mega__heading { font-family: var(--font-head); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.mega__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mega__col a { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; margin-left: -10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s; }
.mega__col a:hover { background: var(--orange-soft); color: var(--ink); }
.mega__col a[aria-current="page"] { background: var(--orange-soft); box-shadow: inset 3px 0 0 var(--orange); }
.mega__col a .emoji { font-size: 1.3rem; margin-top: 2px; }
.mega__col a span { display: grid; font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.2; }
.mega__col a small { font-family: var(--font-body); font-weight: 600; font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.mega__feature { background: var(--orange); color: #fff; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; align-self: start; }
.mega__feature p { margin: 0; font-weight: 600; font-size: .95rem; }
.mega__feature-emoji { font-size: 2rem; width: 54px; height: 54px; background: #fff; border-radius: 50%; display: grid; place-items: center; }
.mega__feature .mega__feature-title { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.mega__feature .btn { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: none; margin-top: 4px; }
.mega__all { color: #fff; font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; }
.mega__all:hover { color: #fff; text-decoration: underline; }

.nav-toggle { display: none; align-items: center; gap: 10px; background: var(--orange); border: 0; border-radius: 999px; padding: 10px 18px 10px 14px; font: 700 1rem var(--font-head); color: #fff; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(255, 129, 33, .7); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 20px; height: 3px; border-radius: 3px; background: #fff; position: relative; transition: transform .2s, background .2s; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) { /* nav collapses to the Menu button (wide logo needs the room) */
  .helpbar__hello { display: none; }
  .helpbar__inner { justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 6px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border: 0; border-radius: var(--radius); padding: 14px;
    box-shadow: var(--soft-lift);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav { max-height: calc(100vh - 150px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-link { font-size: 1.2rem; padding: 10px 16px; }
  .site-nav > .btn { margin: 8px 0 0; }
  /* Mega menu folds out inside the mobile menu */
  .nav-item { flex-wrap: wrap; }
  .mega-trigger { flex: 1; color: var(--ink); }
  .mega-trigger .nav-link { flex: 1; padding-right: 16px; }
  .mega-toggle { width: 40px; height: 40px; margin-right: 4px; }
  .mega { position: static; display: none; flex-basis: 100%; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: transparent; }
  .has-mega.is-open .mega { display: block; }
  .mega__inner { grid-template-columns: 1fr; padding: 6px 0 10px; width: 100%; }
  .mega__cols { grid-template-columns: 1fr; gap: 14px; padding-left: 16px; }
  .mega__col a { padding: 6px 10px; }
  .mega__feature { display: none; }
}
@media (max-width: 520px) {
  .helpbar__links a { padding: 4px 8px; font-size: .85rem; }
  .helpbar__links a:nth-child(3) { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 70px) 0; }
.section--white { background: #fff; }
.section--sky { background: var(--sky-soft); }
.section--lime { background: var(--lime-soft); }
.section--blue { background: var(--blue-soft); }
.section__head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section__head p { font-size: 1.15rem; color: var(--ink-soft); }
.section__head--left { margin-left: 0; text-align: left; }

/* Wavy edges between sections */
.wave { display: block; width: 100%; height: clamp(30px, 5vw, 70px); }
.wave--white { fill: #fff; }
.wave--sky { fill: var(--sky-soft); }
.wave--lime { fill: var(--lime-soft); }
.wave--blue { fill: var(--blue-soft); }
.wave--cream { fill: var(--cream); }
.wave--orange { fill: var(--orange); }
.hero--bold + .wave-wrap { margin-top: -1px; } /* hide sub-pixel seam */
.wave-wrap { line-height: 0; }
.wave-wrap--flip { transform: scaleY(-1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 34ch; margin-bottom: 1.6em; }
.hero__ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; font-weight: 700; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; }
.hero__ticks i { color: var(--teal); font-size: 1.35rem; }
/* Bold homepage hero: orange stage, rotating line, job feed, wavy bottom edge */
.hero--bold { background: var(--orange); color: #fff; padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 110px); isolation: isolate; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: -1; animation: blob 12s ease-in-out infinite; }
.hero__glow--1 { width: 560px; height: 560px; background: #FFB36B; opacity: .7; top: -200px; right: -140px; }
.hero__glow--2 { width: 420px; height: 420px; background: #E5560A; opacity: .5; top: -240px; left: -160px; animation-delay: -5s; }
.hero--bold .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: stretch; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; color: #fff; background: var(--ink); border: 1px solid var(--ink); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero--bold h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .3em; color: #fff; }
.hero__pop { color: var(--ink); display: inline-block; position: relative; }
.hero__pop { z-index: 0; }
.hero__pop::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -.04em; height: .32em; z-index: -1; transform-origin: left;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14c40-9 90-12 194-6' fill='none' stroke='white' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  animation: underline-in 1s .4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes underline-in { from { transform: scaleX(0); } }
.hero__rotator { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--font-head); margin-bottom: 18px; color: #fff; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.2em; color: var(--ink); }
.rotator__word { grid-area: 1 / 1; white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s; }
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-110%); opacity: 0; }
.hero--bold .hero__lead { color: var(--ink); font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 48ch; margin-bottom: 30px; }
.btn--big { font-size: 1.15rem; padding: 1.05em 1.7em .95em; }
.hero--bold .btn--ghost-light { border-color: #fff; }
.btn--navy { --btn-bg: var(--ink); --btn-fg: #fff; box-shadow: 0 10px 24px -10px rgba(33, 39, 69, .7); }
.btn--navy:hover { box-shadow: 0 16px 30px -12px rgba(33, 39, 69, .75); }
.hero__proof { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 700; font-size: .95rem; color: var(--ink); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }

/* Hero health-check card */
.hc-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 22px; max-width: 560px; box-shadow: 0 24px 50px -24px rgba(33, 39, 69, .55); }
.hc-card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--orange-soft); display: grid; place-items: center; font-size: 1.8rem; }
.hc-card__body { min-width: 0; }
.hc-card__title { margin: 0; font: 800 1.35rem/1.15 var(--font-head); }
.hc-card__text { margin: 4px 0 10px; color: var(--ink-soft); font-size: .98rem; }
.hc-card__ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: .92rem; }
.hc-card__ticks li { display: inline-flex; align-items: center; gap: 6px; }
.hc-card__ticks li::before { content: "✓"; color: #18735C; font-weight: 800; }
.hc-card__btn { grid-column: 1 / -1; justify-self: stretch; margin-top: 12px; }

/* Job feed */
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); position: relative; flex: none; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(2.4); opacity: 0; } }
.jobs { position: relative; display: flex; flex-direction: column; } /* stretches to the copy column's height */
.jobs__label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.jobs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: max-content; gap: 12px; flex: 1 1 auto; height: 0; min-height: 0; overflow: hidden;
  padding: 6px 12px; margin: -6px -12px; /* room for the card shadows, so the clip doesn't slice them off */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 36px)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade, 36px)), transparent); }
.job { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(33,39,69,.08), 0 6px 14px -8px rgba(33,39,69,.35); }
.job__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; }
.job strong { display: block; font-family: var(--font-head); font-size: 1.08rem; line-height: 1.2; }
.job small { color: var(--ink-soft); font-weight: 600; font-size: .86rem; }
.job__done { font-weight: 800; font-size: .82rem; color: #18735C; background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.job.is-new { animation: job-in .7s ease both; }
.job.is-new .job__done { animation: pop .5s .8s both; }
@keyframes job-in { from { opacity: 0; } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.15); } }

@media (max-width: 960px) {
  .hero--bold .hero__grid { grid-template-columns: 1fr; }
  .jobs__list { flex: none; height: 248px; }
}
@media (max-width: 520px) {
  .hero__glow--1 { width: 300px; height: 300px; top: -140px; right: -150px; }
  .job { grid-template-columns: auto 1fr; }
  .job__done { display: none; }
  .btn--big { width: 100%; }
}

.page-hero { padding: clamp(48px, 7vw, 90px) 0 clamp(30px, 5vw, 50px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.page-hero p.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 46ch; }
/* Inner-page header visual: floating sticker tiles */
.hero-tiles { position: relative; justify-self: center; width: min(360px, 100%); aspect-ratio: 6 / 5; }
.hero-tile { position: absolute; display: grid; place-items: center; border-radius: 28%; box-shadow: 0 24px 40px -18px rgba(33, 39, 69, .45); animation: tile-float 6s ease-in-out infinite; }
.hero-tile .emoji { line-height: 1; }
.pig { display: inline-block; width: 1.25em; height: 1em; vertical-align: -.15em; } /* gold piggy bank symbol, drawn in support.html */
.hero-tile .pig { width: 1.1em; height: .9em; }
.hero-tile--a { width: 46%; aspect-ratio: 1; left: 6%; top: 8%; --r: -8deg; font-size: clamp(3.4rem, 6vw, 4.6rem); }
.hero-tile--b { width: 32%; aspect-ratio: 1; right: 6%; top: 0; --r: 10deg; font-size: clamp(2.4rem, 4vw, 3.2rem); animation-delay: -2s; }
.hero-tile--c { width: 36%; aspect-ratio: 1; right: 14%; bottom: 6%; --r: -4deg; font-size: clamp(2.6rem, 4.5vw, 3.6rem); animation-delay: -4s; }
.hero-tiles__chip { position: absolute; left: 0; bottom: 12%; display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 16px; font: 700 .98rem var(--font-head); box-shadow: var(--soft-lift); transform: rotate(-3deg); }
@keyframes tile-float { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(var(--r)) translateY(-10px); } }

@keyframes blob { 50% { border-radius: 55% 45% 42% 58% / 45% 58% 42% 55%; } }

/* Floating decorative doodles */
.doodle { position: absolute; pointer-events: none; z-index: 0; }
.doodle--star { width: 34px; fill: var(--lime); animation: float 6s ease-in-out infinite; }
.doodle--dot { width: 18px; height: 18px; border-radius: 50%; animation: float 7s ease-in-out infinite; }
.doodle--ring { width: 40px; height: 40px; border-radius: 50%; border: 5px solid var(--sky); animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }

@media (max-width: 860px) {
  .hero__grid, .page-hero__grid { grid-template-columns: 1fr; }
  .hero-tiles { display: none; } /* phones have the floating health-check button instead */
}

/* Colour helpers for icon bubbles */
.bg-orange { background: var(--orange-soft); color: var(--orange-ink); }
.bg-sky { background: var(--sky-soft); color: #127BA3; }
.bg-teal { background: var(--teal-soft); color: #18735C; }
.bg-lime { background: var(--lime-soft); color: #4C7F0E; }
.bg-red { background: var(--red-soft); color: #C2240A; }
.bg-blue { background: var(--blue-soft); color: #3A50AE; }
.fill-orange { background: var(--orange); color: #fff; }
.fill-orange i { color: #fff; }
.fill-sky { background: var(--sky); }
.fill-teal { background: var(--teal); }
.fill-lime { background: var(--lime); }
.fill-red { background: var(--red); color: #fff; }
.fill-blue { background: var(--blue); color: #fff; }

/* ---------- 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); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); padding: 28px; position: relative;
  box-shadow: var(--soft); overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--soft-lift); }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.card:hover::after { transform: scaleX(1); }
.card h3 { margin-top: 4px; }
.card p:last-child { margin-bottom: 0; }
.card:hover .card__icon .emoji { animation: wiggle .8s ease; }
@keyframes wiggle { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } }
.card__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 2.1rem; margin-bottom: 16px; }
.card__icon--logo { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.card__icon--logo svg { width: 34px; height: 34px; display: block; }
.card--tilt-l { transform: rotate(-1.2deg); }
.card--tilt-r { transform: rotate(1.2deg); }
.card--tilt-l:hover, .card--tilt-r:hover { transform: rotate(0) translateY(-4px); }

/* Big service cards (home) */
.service-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; padding: 0; }
.service-card__top { padding: 30px 28px 70px; position: relative; color: var(--ink); }
.service-card__top i { font-size: 4.2rem; position: relative; top: 12px; } /* tucks the bottom of the icon behind the curved white edge */
.service-card__body { background: #fff; padding: 0 28px 28px; margin-top: -40px; position: relative; flex: 1; display: flex; flex-direction: column; }
.service-card__body::before { content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20c50-20 100-20 150 0s100 20 150 0 75-15 100-5v25H0z' fill='white'/%3E%3C/svg%3E") no-repeat bottom / 100% 100%; }
.service-card__body p { color: var(--ink-soft); }
.service-card .link-arrow { margin-top: auto; }
.service-card:hover { color: var(--ink); }
.link-arrow { font-family: var(--font-head); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; color: var(--orange); text-decoration: none; }
.link-arrow .icon { transition: transform .15s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 46px; left: 16%; right: 16%; height: 6px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 26px); opacity: .25; border-radius: 3px;
}
.step { text-align: center; position: relative; z-index: 1; }
.step__num {
  width: 92px; height: 92px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  font: 800 2.6rem/1 var(--font-head); color: #fff; box-shadow: 0 0 0 10px rgba(255, 255, 255, .9), 0 16px 30px -12px rgba(33, 39, 69, .35);
}
.step p { color: var(--ink-soft); max-width: 30ch; margin-inline: auto; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }

/* ---------- Testimonials ---------- */
.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; }
.note {
  position: relative; padding: 30px 22px 20px; border-radius: 6px 6px 18px 6px; min-height: 170px;
  box-shadow: 0 14px 22px -14px rgba(33,39,69,.45); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .2s ease;
}
.note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 80px; height: 24px; margin-left: -40px; background: rgba(255,255,255,.65); border: 1px solid rgba(33,39,69,.08); transform: rotate(-3deg); }
.note blockquote { margin: 0 0 14px; font: 700 1.3rem/1.25 var(--font-head); }
.note blockquote::before { content: "\201C"; }
.note blockquote::after { content: "\201D"; }
.note cite { font-style: normal; font-weight: 700; font-size: .92rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.note:nth-child(6n+1) { background: #fff; transform: rotate(-2deg); }
.note:nth-child(6n+2) { background: var(--sky-soft); transform: rotate(1.5deg); }
.note:nth-child(6n+3) { background: var(--red-soft); transform: rotate(-1deg); }
.note:nth-child(6n+4) { background: var(--teal-soft); transform: rotate(2deg); }
.note:nth-child(6n+5) { background: var(--orange-soft); transform: rotate(-1.5deg); }
.note:nth-child(6n+6) { background: var(--blue-soft); transform: rotate(1deg); }
.note:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.notes--more .note.is-hidden { display: none; }

/* ---------- Where we work (homepage) ---------- */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
.places__label { grid-column: 1 / -1; margin: 12px 0 -4px; font-family: var(--font-head, inherit); font-weight: 800; font-size: 1.05rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.places__label:first-child { margin-top: 0; }
.places__group { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--soft); }
.places__group h3 { font-size: 1.15rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.places__group h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.places__group ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places__group li { background: var(--orange-soft); color: var(--ink); font-weight: 700; font-size: .92rem; padding: 5px 12px; border-radius: 999px; }
.places__cta { margin-top: 24px; color: var(--ink-soft); font-weight: 600; }
.places__cta a { font-weight: 800; }
@media (max-width: 980px) { .places { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .places { grid-template-columns: 1fr; } }

/* ---------- Support options comparison table ---------- */

.plans__table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--soft); table-layout: fixed; }
.plans__table th, .plans__table td { padding: 16px 14px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.plans__table tbody th { text-align: left; font-weight: 700; color: var(--ink); width: 35%; padding-left: 24px; }
.plans__table tfoot td { border-bottom: 0; padding: 20px 14px 24px; }
.plans__corner { border-bottom: 1px solid var(--line); width: 35%; } /* sets the column widths: 35% labels, then 65%/3 per option */
.plans__plan { position: relative; padding-top: 28px !important; }
.plans__plan .emoji { display: block; font-size: 1.8rem; margin-bottom: 6px; }
.plans__plan-pig { display: block; width: 36px; height: 29px; margin: 0 auto 6px; } /* same height as the emoji in the other two headings */
.plans__plan strong { display: block; font: 800 1.15rem/1.2 var(--font-head); color: var(--ink); }
.plans__plan small { display: block; margin-top: 4px; color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.plans__badge { position: absolute; top: -33px; z-index: 1; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font: 800 .78rem var(--font-head); letter-spacing: .04em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.plans__table .is-featured { background: var(--orange-soft); }
.plans { padding: 36px 0 0; } /* room for the recommended column to stand proud of the table */
/* Desktop: white card behind, a raised orange panel for the recommended column, then the table on top */
.plans__wrap { position: relative; }
.plans__wrap::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--soft); }
.plans__highlight { position: absolute; top: -22px; bottom: -22px; left: calc(35% + 65% / 3); width: calc(65% / 3); background: var(--orange-soft); border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(255,129,33,.45), 0 4px 12px rgba(33,39,69,.08); }
/* Hovering anywhere on the recommended column draws an orange border round the whole panel,
   like the line that draws along the bottom of other cards */
.plans__draw { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.plans__draw path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .4s ease; }
.plans__wrap:has(.is-featured:hover) .plans__draw path, .plans__highlight:hover .plans__draw path { stroke-dashoffset: 0; }
.plans__wrap table { position: relative; background: transparent; box-shadow: none; }
.plans__wrap table .is-featured { background: transparent; }
.plans__yes, .plans__no, .plans__bank { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; }
.plans__yes { background: var(--teal-soft); color: #18735C; }
.plans__no { background: #F1F1F4; color: #9A9DB0; }
.plans__bank { background: none; border-radius: 0; width: auto; height: auto; line-height: 0; }
.plans__bank svg { width: 32px; height: 26px; display: block; } /* gold piggy bank, drawn in support.html */
.plans__na { display: inline-grid; place-items: center; min-width: 44px; height: 30px; padding: 0 10px; border-radius: 999px; background: #F1F1F4; color: #6E7189; font: 800 .8rem var(--font-head); letter-spacing: .04em; }
.plans [data-tip] { position: relative; cursor: help; }
/* Tooltips in the comparison table (N/A, Unlimited), on hover or tap/keyboard focus */
.plans [data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translate(-50%, 4px); width: max-content; max-width: 260px; white-space: nowrap;
  background: var(--ink); color: #fff; font: 600 .82rem/1.35 var(--font-body); letter-spacing: 0; padding: 7px 11px; border-radius: 10px; box-shadow: var(--soft);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 5; }
.plans [data-tip]::before { content: ""; position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); border-bottom: 0;
  opacity: 0; transition: opacity .15s ease; z-index: 5; }
.plans [data-tip]:hover::after, .plans [data-tip]:focus-visible::after, .plans [data-tip]:focus::after { opacity: 1; transform: translate(-50%, 0); }
.plans [data-tip]:hover::before, .plans [data-tip]:focus-visible::before, .plans [data-tip]:focus::before { opacity: 1; }
.plans__text { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); }
.plans__yes + .plans__text { margin-top: 4px; }
.plans__note { text-align: center; color: var(--ink-soft); font-size: .95rem; margin: 44px auto 0; position: relative; /* clears the recommended panel that sticks out below the table */ max-width: 60ch; }
@media (max-width: 760px) {
  /* Phones: each feature becomes a heading row, with the three options side by side underneath */
  .plans__table, .plans__table thead, .plans__table tbody, .plans__table tfoot { display: block; }
  .plans__table tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .plans__corner { display: none; }
  .plans { padding-top: 14px; }
  .plans__highlight { display: none; }
  .plans__note { margin-top: 18px; }
  .plans__wrap table .is-featured { background: var(--orange-soft); }
  .plans__table th, .plans__table td { padding: 12px 6px; }
  .plans__table tbody th { grid-column: 1 / -1; width: auto; text-align: center; padding: 14px 10px 4px; border-bottom: 0; background: var(--cream); font-size: .92rem; }
  .plans__plan { padding-top: 26px !important; }
  .plans__plan strong { font-size: .95rem; }
  .plans__plan small { font-size: .74rem; }
  .plans__badge { font-size: .62rem; padding: 3px 8px; }
  .plans__text { font-size: .8rem; }
  .plans__table tfoot .btn { padding-inline: 10px; font-size: .78rem; }
  /* Tooltips: wrap onto two lines, and open inwards from the outer columns so they stay on screen */
  .plans [data-tip]::after { white-space: normal; max-width: 170px; text-align: center; }
  .plans tbody td:nth-child(2) [data-tip]::after { left: -8px; transform: translate(0, 4px); text-align: left; }
  .plans tbody td:nth-child(2) [data-tip]:is(:hover, :focus, :focus-visible)::after { transform: translate(0, 0); }
  .plans tbody td:last-child [data-tip]::after { left: auto; right: -8px; transform: translate(0, 4px); text-align: right; }
  .plans tbody td:last-child [data-tip]:is(:hover, :focus, :focus-visible)::after { transform: translate(0, 0); }
}

/* ---------- Leased line vs FTTP comparison (Internet page) ---------- */
.compare { padding-top: 36px; } /* room for the recommended column to stand proud of the table */
.compare__table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--soft); table-layout: fixed; }
.compare__table th, .compare__table td { padding: 16px 18px; text-align: center; vertical-align: middle; border-bottom: 1px solid var(--line); }
.compare__table tbody tr:last-child th, .compare__table tbody tr:last-child td { border-bottom: 0; }
.compare__corner { width: 30%; }
.compare__table tbody th { text-align: left; font-weight: 700; color: var(--ink); padding-left: 24px; }
.compare__table thead th { position: relative; padding-top: 26px; }
.compare__table thead strong { display: block; font: 800 1.2rem/1.2 var(--font-head); color: var(--ink); }
.compare__table thead small { display: block; margin-top: 4px; color: var(--ink-soft); font-weight: 600; font-size: .85rem; }
.compare__table .is-featured { background: var(--orange-soft); }
.compare__note { margin-top: 48px; } /* clears the recommended panel below the table */
.compare__note h3 { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) {
  /* Phones: each row label becomes a heading, with the two options side by side underneath */
  .compare__table, .compare__table thead, .compare__table tbody { display: block; }
  .compare__table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare__corner { display: none; }
  .compare__table th, .compare__table td { padding: 12px 8px; }
  .compare__table tbody th { grid-column: 1 / -1; text-align: center; padding: 14px 10px 4px; border-bottom: 0; background: var(--cream); }
  .compare__table thead strong { font-size: 1rem; }
  .compare__table .plans__text { font-size: .82rem; }
  .compare__note { margin-top: 24px; }
}

/* ---------- Certification badge (About) ---------- */
.cert-badge { display: grid; justify-items: center; gap: 14px; text-align: center; }
.cert-badge img { width: 150px; height: auto; }

/* ---------- DfE digital standards page ---------- */
.standard__num { font: 800 .78rem var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: #C2540A; margin: 0 0 4px; } /* darker orange so the small label stays readable */
.standards-list { columns: 2; column-gap: 28px; margin: 0; }
.standards-list li { break-inside: avoid; }
@media (max-width: 640px) { .standards-list { columns: 1; } }

/* ---------- Leasing page ---------- */
.lease-list { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.lease-list a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: var(--soft); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.lease-list a:hover { transform: translateY(-2px); color: var(--orange); }
.lease-steps { margin: 14px 0 22px; padding-left: 1.3em; display: grid; gap: 12px; color: var(--ink-soft); }
.lease-steps strong { color: var(--ink); }

/* ---------- Leasing inflation calculator ---------- */
.calc { display: grid; gap: 22px; }
.calc__inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: start; }
.calc__inputs .field { min-width: 0; }
.calc__inputs label, .calc__term legend { white-space: nowrap; }
.calc__inputs input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.calc__inputs input::-webkit-outer-spin-button, .calc__inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__term { border: 0; padding: 0; margin: 0; }
.calc__term legend { display: block; padding: 0; margin-bottom: 6px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.calc__seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; border: 2.5px solid #D5D9E6; background: #fff; }
.calc__seg label { flex: 1; position: relative; margin: 0; }
.calc__seg input { position: absolute; opacity: 0; }
.calc__seg span { display: block; padding: 6px; border-radius: 10px; text-align: center; font-weight: 700; color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s; }
.calc__seg input:checked + span { background: var(--orange); color: #fff; }
.calc__seg input:focus-visible + span { outline: 3px dashed var(--orange); outline-offset: 2px; }
.calc__hint { margin: -8px 0 0; font-size: .85rem; color: var(--ink-soft); }
.calc__summary { margin: 0; font-size: 1.08rem; color: var(--ink); }
.calc__results { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.calc__table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.calc__table th, .calc__table td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.calc__table thead th { font: 700 .85rem var(--font-head); color: var(--ink-soft); }
.calc__table tbody th, .calc__table tfoot th { text-align: left; font-weight: 700; color: var(--ink); }
.calc__table tfoot td, .calc__table tfoot th { font-weight: 800; color: var(--ink); border-bottom: 0; }
.calc__table .is-featured { background: var(--orange-soft); }
.calc__note { margin: 0; font-size: .9rem; }
.calc__table td small { display: block; font-size: .75rem; font-weight: 600; color: var(--ink-soft); }
.calc__table thead .calc__group { text-align: center; color: var(--ink); border-bottom: 0; padding-bottom: 2px; }
.calc__table thead tr:first-child .is-featured { border-radius: 12px 12px 0 0; }
.calc-chart__title { margin: 0 0 10px; font: 700 .85rem var(--font-head); color: var(--ink-soft); }
.calc-chart__plot { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-bottom: 4px; border-bottom: 2px solid var(--line); }
.calc-chart__year { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.calc-chart__bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.calc-chart__bar { width: 38%; max-width: 30px; border-radius: 8px 8px 0 0; transition: height .3s ease; }
.calc-chart__bar--buy, .calc-chart__swatch--buy { background: #B9BDD0; }
.calc-chart__bar--lease, .calc-chart__swatch--lease { background: var(--orange); }
.calc-chart__label { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.calc-chart__key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.calc-chart__key > span { display: inline-flex; align-items: center; gap: 6px; }
.calc-chart__swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 900px) { .calc__results { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .calc__inputs { grid-template-columns: 1fr; } .calc__table th, .calc__table td { padding: 8px 5px; font-size: .8rem; } .calc__table thead th { font-size: .72rem; } }

/* ---------- Long-form text (privacy notice) ---------- */
.legal { max-width: 820px; margin: 0 auto 40px; }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 1.6em 0 .5em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.15rem; margin: 1.2em 0 .35em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.3em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }

/* ---------- Partners ---------- */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.partners a { background: #fff; border-radius: 18px; padding: 14px 20px; display: grid; place-items: center; width: 170px; height: 96px; border: 2px solid var(--line); transition: transform .2s, border-color .2s; }
.partners a:hover { transform: translateY(-3px) rotate(-1deg); border-color: var(--orange); }
.partners img { width: 100%; height: 60px; object-fit: contain; filter: grayscale(.2); } /* fixed box, so the space is reserved before the logo loads */

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split--wide-left { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.ticklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.ticklist li { position: relative; padding-left: 40px; font-weight: 600; } /* block, not flex, so links inside flow with the text */
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.panel { background: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); box-shadow: var(--soft-lift); position: relative; }

/* Fun stat bubbles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 26px 14px; border-radius: var(--radius); box-shadow: var(--soft); color: #fff; text-shadow: 0 1px 2px rgba(33, 39, 69, .25); }
.stat strong { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); margin-bottom: 6px; }
.stat span { font-weight: 700; font-size: .98rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Piggy bank (support) ---------- */
.bank { text-align: center; }
.bank__jar { position: relative; width: min(320px, 80%); margin: 0 auto 22px; }
.bank__coins { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.coin { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font: 800 1rem var(--font-head); box-shadow: inset 0 -4px 0 rgba(33, 39, 69, .15), 0 4px 10px -4px rgba(33, 39, 69, .35); }
.coin--spent { background: #fff; opacity: .55; }
.bank-demo { display: grid; gap: 14px; }
.bank-demo__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.bank-demo button { font: 700 1rem var(--font-head); }
.bank-demo__msg { min-height: 1.6em; font-weight: 700; color: var(--ink-soft); }

/* ---------- Solutions grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.chip {
  font: 700 1rem var(--font-head); padding: 9px 18px 7px; border-radius: 999px; border: 0;
  background: #fff; box-shadow: var(--soft); color: var(--ink); cursor: pointer; transition: background .15s, transform .15s;
}
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.solution { display: flex; flex-direction: column; }
.solution.is-hidden { display: none; }
.solution .tag { align-self: flex-start; margin-top: auto; padding-top: 12px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }

/* ---------- Network diagram ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.chain .card { text-align: center; }
.chain .card__icon { margin-inline: auto; }
.chain::before { content: ""; position: absolute; left: 10%; right: 10%; top: 60px; height: 6px; background: var(--orange); border-radius: 3px; z-index: 0; }
.chain > * { position: relative; z-index: 1; }
@media (max-width: 960px) { .chain { grid-template-columns: repeat(2, 1fr); } .chain::before { display: none; } }
@media (max-width: 520px) { .chain { grid-template-columns: 1fr; } }

/* ---------- Team strip ---------- */
.team-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.team-row span { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; font-size: 2.2rem; box-shadow: 0 10px 20px -8px rgba(33, 39, 69, .35); background: var(--orange); color: #fff; }
.team-row span:not(.fill-orange)[class] { color: var(--ink); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-notice { margin: 14px 0 18px; padding: 16px 18px; border-left: 5px solid var(--sky); border-radius: 14px; background: var(--sky-soft); color: var(--ink); font-size: .95rem; }
.form-notice p { margin: 0; }
.form-notice__title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 2px !important; }
.helpdesk-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 10px; margin-top: 12px; }
.helpdesk-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transition: box-shadow .15s, transform .15s; }
.helpdesk-link:hover, .helpdesk-link:focus-visible { box-shadow: 0 6px 16px rgba(33,39,69,.12); transform: translateY(-1px); }
.helpdesk-link .emoji { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 1.1rem; }
.helpdesk-link span { min-width: 0; overflow-wrap: break-word; line-height: 1.3; }
.helpdesk-link small { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.gate { border: 0; padding: 0; margin: 4px 0 18px; }
.gate legend { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.gate__intro { margin: 4px 0 16px; }
.gate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.gate-card { position: relative; display: flex; }
.gate-card input { position: absolute; opacity: 0; }
.gate-card__box { flex: 1; display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); border: 2.5px solid #D5D9E6; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gate-card__box:hover { border-color: var(--orange); transform: translateY(-2px); }
.gate-card__box .emoji { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 1.35rem; }
.gate-card__box strong { display: block; font-family: var(--font-head); font-size: 1.1rem; line-height: 1.25; }
.gate-card__box small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .9rem; line-height: 1.4; }
.gate-card input:checked + .gate-card__box { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 6px 14px -6px rgba(255, 129, 33, .6); }
.gate-card input:focus-visible + .gate-card__box { outline: 3px dashed var(--orange); outline-offset: 3px; }
.gate__other { margin-top: 12px !important; font-size: .95rem; }
.panel.is-gated form[data-mail-form] { display: none; }
.quote-form { max-width: 820px; margin: 0 auto; }
.quote-form .form { margin-top: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-head); font-weight: 700; margin-bottom: 6px; font-size: 1.05rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 13px 16px; border-radius: 14px; border: 2.5px solid #D5D9E6; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.choice-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice-group legend { font-family: var(--font-head); font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; font-size: .95rem; white-space: nowrap; border-radius: 999px; border: 2.5px solid #D5D9E6; background: #fff; font-weight: 700; cursor: pointer; transition: all .15s; }
.choice input:checked + span { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: 0 6px 14px -6px rgba(255, 129, 33, .7); }
.choice input:focus-visible + span { outline: 3px dashed var(--orange); outline-offset: 3px; }
.form__note { font-size: .92rem; color: var(--ink-soft); }
.form__success { display: none; background: var(--teal-soft); border: 3px solid var(--teal); border-radius: var(--radius); padding: 18px 20px; font-weight: 700; }
.form__success.is-visible { display: block; }
.form__error { display: none; background: var(--red-soft); border: 3px solid var(--red); border-radius: var(--radius); padding: 18px 20px; font-weight: 700; margin: 0; }
.form__error.is-visible { display: block; }
/* School type-to-search */
.school-field__box { position: relative; }
.field__hint { display: block; margin-top: 6px; font-size: .85rem; color: var(--ink-soft); }
.field__credit { display: block; font-size: .75rem; opacity: .8; }
.field__credit a { color: inherit; }
.school-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border-radius: 16px; box-shadow: var(--soft-lift); max-height: 340px; overflow-y: auto; }
.school-opt { display: grid; gap: 1px; padding: 9px 12px; border-radius: 10px; cursor: pointer; }
.school-opt strong { font-family: var(--font-head); font-weight: 700; line-height: 1.2; }
.school-opt small { color: var(--ink-soft); font-size: .82rem; }
.school-opt:hover, .school-opt[aria-selected="true"] { background: var(--orange-soft); }
.school-opt--other { font-weight: 700; font-size: .92rem; color: var(--ink-soft); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* spam trap, hidden from people */
.form [type="submit"]:disabled { opacity: .7; cursor: progress; transform: none; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list i { font-size: 1.6rem; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; flex: none; }
.contact-list strong { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.contact-list a { font-weight: 700; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--soft); line-height: 0; }
.map iframe { width: 100%; height: 320px; border: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; width: 100%; max-width: 820px; margin: 0 auto; } /* full width even with every answer closed */
.faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--soft); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font: 700 1.2rem var(--font-head); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-soft); }

/* ---------- Floating health check button ---------- */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; align-items: center;
  background: var(--orange); color: #fff; border-radius: 999px;
  box-shadow: 0 18px 40px -12px rgba(33, 39, 69, .45), 0 8px 20px -8px rgba(255, 129, 33, .6);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, opacity .4s ease, visibility .4s;
  opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; /* fades in once the header button is out of view */
}
.float-cta.is-shown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.float-cta.is-shown:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -12px rgba(33, 39, 69, .5), 0 10px 24px -8px rgba(255, 129, 33, .65); }
.float-cta.is-hidden { opacity: 0; visibility: hidden; transform: translateY(20px); pointer-events: none; }
.float-cta__link { display: flex; align-items: center; gap: 12px; padding: 10px 6px 10px 12px; color: #fff; text-decoration: none; }
.float-cta__link:hover { color: #fff; }
.float-cta__emoji { font-size: 1.7rem; width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 50%; flex: none; }
.float-cta:hover .float-cta__emoji { animation: wiggle .8s ease; }
.float-cta__text { display: grid; line-height: 1.15; }
.float-cta__text strong { font-family: var(--font-head); font-size: 1.08rem; font-weight: 800; }
.float-cta__text small { font-size: .82rem; font-weight: 700; opacity: .92; }
.float-cta__close {
  align-self: center; margin: 0 10px 0 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; flex: none;
  background: rgba(255, 255, 255, .25); color: #fff; font: 700 1.2rem/1 var(--font-body); cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.float-cta__close:hover { background: rgba(255, 255, 255, .45); }

@media (max-width: 620px) {
  .float-cta { left: 12px; right: 12px; bottom: 12px; }
  .float-cta__link { flex: 1; padding: 8px 4px 8px 8px; gap: 10px; }
  .float-cta__emoji { width: 40px; height: 40px; font-size: 1.45rem; }
  .float-cta__text strong { font-size: 1rem; }
  .float-cta__text small { display: none; }
}

/* ---------- Solution pages ---------- */
.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); }
.related-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.related-card:hover { color: var(--ink); }
.related-card p { color: var(--ink-soft); }
.related-card .link-arrow { margin-top: auto; padding-top: 6px; }
.stretched::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.solution .link-arrow { margin-top: 4px; }
.solution:hover .link-arrow .icon { transform: translateX(4px); }

/* ---------- Parliamentary Review reader (full-screen pop-up, opened from the About page) ---------- */
.reader { position: fixed; inset: 0; z-index: 200; background: rgba(33, 39, 69, .96); display: flex; flex-direction: column; color: #fff; }
.reader[hidden] { display: none; }
.reader__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; }
.reader__title { margin: 0; font: 700 1rem var(--font-head); display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader__count { font: 700 1rem var(--font-head); font-variant-numeric: tabular-nums; text-align: center; }
.reader__actions { display: flex; gap: 8px; justify-content: flex-end; }
.reader__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding-bottom: env(safe-area-inset-bottom, 0px); }
.reader__book-wrap { display: flex; align-items: center; justify-content: center; }
.reader__page { background: #fff; }
.reader__page canvas { display: block; width: 100%; height: 100%; }
.reader__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 56px; height: 56px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.4rem; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); transition: transform .15s, opacity .15s; }
.reader__arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); }
.reader__arrow:disabled { opacity: .25; cursor: default; }
.reader__arrow--prev { left: 20px; }
.reader__arrow--next { right: 20px; }
.reader__status { display: none; position: absolute; inset: 0; margin: 0; align-items: center; justify-content: center; gap: 10px; font: 700 1.1rem var(--font-head); text-align: center; padding: 20px; }
.reader__status a { color: var(--orange); }
.reader.is-loading .reader__status--loading, .reader.is-failed .reader__status--failed { display: flex; }
.reader.is-loading .reader__arrow, .reader.is-failed .reader__arrow, .reader.is-loading [data-zoom], .reader.is-failed [data-zoom] { display: none; }
@media (max-width: 700px) {
  .reader__bar { grid-template-columns: 1fr auto; }
  .reader__title, .reader__download { display: none; }
  .reader__count { text-align: left; }
  .reader__arrow { top: auto; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: none; width: 48px; height: 48px; }
  .reader__arrow:hover:not(:disabled) { transform: scale(1.08); }
  .reader__stage { padding-bottom: 76px; }
}

/* Flipbook zoom view */
.zoom { position: fixed; inset: 0; z-index: 210; background: rgba(33, 39, 69, .94); display: flex; flex-direction: column; }
.zoom[hidden] { display: none; }
.zoom__bar { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; color: #fff; }
.zoom__level { font: 700 1rem var(--font-head); min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }
.zoom__close { position: absolute; right: 16px; }
.zoom__bar .btn:disabled { opacity: .4; cursor: default; transform: none; }
.zoom__scroll { flex: 1; overflow: auto; cursor: grab; overscroll-behavior: contain; }
.zoom__scroll.is-dragging { cursor: grabbing; user-select: none; }
.zoom__pages { display: flex; width: max-content; min-width: 100%; min-height: 100%; align-items: center; justify-content: center; padding: 20px; }
.zoom__pages canvas { display: block; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
@media (max-width: 620px) { .zoom__close { position: static; } }

/* ---------- Footer ---------- */
/* The footer wave overlaps the last section, so give it room and no cream gap */
main > section:last-of-type { padding-bottom: clamp(100px, 11vw, 140px); }
.site-footer { background: var(--ink); color: #E6E8F0; position: relative; margin-top: 0; padding: 30px 0 110px; } /* bottom room so the floating button never covers the footer */
.site-footer__wave { position: absolute; left: 0; right: 0; top: -59px; width: 100%; height: 60px; fill: var(--ink); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; }
.site-footer h3 { color: var(--orange); font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.site-footer address { margin-bottom: 12px; }
.site-footer .muted { color: #AEB3CC; }
.site-footer__logo { height: 90px; width: auto; margin-bottom: 16px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .92rem; color: #AEB3CC; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a, .site-footer__bottom .link-button { text-decoration: underline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; }
.link-button:hover { color: var(--lime); } /* links in the small print need more than colour to stand out */
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.3,1.2); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ---------- Hero illustration animation ---------- */
.anim-bob { animation: bob 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-bob--slow { animation-duration: 6s; }
.anim-drift { animation: drift 18s linear infinite; }
.anim-pulse { animation: pulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.anim-spin { animation: spin 20s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes drift { from { transform: translateX(-30px); } 50% { transform: translateX(30px); } to { transform: translateX(-30px); } }
@keyframes pulse { 0% { opacity: 1; } 70%, 100% { opacity: .15; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Cookie banner (assets/js/consent.js) ---------- */
.cookie-banner { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 440px; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 20px 50px -14px rgba(33, 39, 69, .45), 0 4px 12px rgba(33, 39, 69, .1); padding: 20px 22px; display: grid; gap: 10px; font-size: .95rem; animation: cookie-in .35s ease both; }
.cookie-banner p { margin: 0; }
.cookie-banner__title { font: 800 1.1rem var(--font-head); }
.cookie-banner__actions { display: flex; gap: 10px; margin-top: 4px; }
.cookie-banner__actions .btn { flex: 1; justify-content: center; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } }
@media (max-width: 520px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; } .has-cookie-banner .float-cta { display: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.gate__other .link-button { color: var(--orange-ink); text-decoration: underline; font-weight: 700; }
.gate__other .link-button:hover { color: var(--ink); }
