 :root {
  --navy: #07172f;
  --blue: #0f3a68;
  --steel: #5b6b80;
  --silver: #d8dee8;
  --light: #f5f7fb;
  --white: #ffffff;
  --accent: #36a3ff;
  --shadow: 0 24px 70px rgba(7, 23, 47, 0.14);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 420px;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(52px, 7vw, 96px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 80% 20%, rgba(54, 163, 255, 0.14), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f7fb 48%, #eaf0f7 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 900;
}

h1, h2, h3 {
  line-height: 1.08;
  margin: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.1rem, 4.8vw, 4.65rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.75rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  color: #40516b;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(7, 23, 47, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: var(--white);
  border-color: rgba(101, 117, 139, 0.25);
}

.hero-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  border: 1px solid rgba(101, 117, 139, 0.18);
}

.hero-card h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.hero-card ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-card li {
  padding: 14px 0 14px 32px;
  position: relative;
  border-top: 1px solid rgba(101, 117, 139, 0.16);
  font-weight: 800;
}

.hero-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(101, 117, 139, 0.18);
  border-top: 1px solid rgba(101, 117, 139, 0.18);
  border-bottom: 1px solid rgba(101, 117, 139, 0.18);
}

.trust-strip div {
  padding: 26px clamp(20px, 4vw, 42px);
  background: var(--white);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 1.05rem;
}

.trust-strip span {
  margin-top: 3px;
  color: var(--steel);
  font-size: 0.94rem;
}

.section {
  padding: clamp(56px, 6vw, 88px) clamp(18px, 4vw, 56px);
  background: #eef3f8;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow) {
  color: #526176;
  font-size: 1rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 210px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(101, 117, 139, 0.3);
  box-shadow: 0 18px 46px rgba(7, 23, 47, 0.1);
}

.card p {
  color: #526176;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector-card {
  min-height: 220px;
  overflow: hidden;
  padding: 0 0 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(101, 117, 139, 0.3);
  box-shadow: 0 18px 46px rgba(7, 23, 47, 0.1);
}

.sector-image {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-bottom: 20px;
  overflow: hidden;
  background: #dce5ef;
}

.sector-image::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 58px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86) url("../assets/logos/Logo_Light.png") center / contain no-repeat;
  box-shadow: 0 8px 20px rgba(7, 23, 47, 0.22);
}

.sector-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.sector-card h3,
.sector-card p {
  margin-left: 22px;
  margin-right: 22px;
}

.sector-card p {
  color: #526176;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(56px, 6vw, 88px) clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: var(--white);
}

.split-section .eyebrow {
  color: #93caff;
}

.section.dark .eyebrow {
  color: var(--blue);
}

.split-section p {
  color: #d7e0ed;
  font-size: 0.98rem;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list div {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-list span,
.timeline span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1a73c4;
  color: var(--white);
  font-weight: 900;
  margin-bottom: 14px;
}

.dark {
  background: #e3ebf4;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.industry-grid span {
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  font-weight: 850;
  border: 1px solid rgba(101, 117, 139, 0.16);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline div {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 52px rgba(7, 23, 47, 0.12);
  border: 1px solid rgba(101, 117, 139, 0.32);
}

.timeline p {
  color: #526176;
}

.component-strip {
  padding: clamp(48px, 5vw, 72px) 0;
  background: var(--white);
  overflow: hidden;
}

.component-heading {
  max-width: 820px;
  padding: 0 clamp(18px, 4vw, 56px);
  margin-bottom: 28px;
}

.component-heading p:not(.eyebrow) {
  color: #526176;
}

.component-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(101, 117, 139, 0.2);
  border-bottom: 1px solid rgba(101, 117, 139, 0.2);
  background: #eef3f8;
}

.component-marquee::before,
.component-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(42px, 8vw, 120px);
  pointer-events: none;
}

.component-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #eef3f8, rgba(238, 243, 248, 0));
}

.component-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #eef3f8, rgba(238, 243, 248, 0));
}

.component-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 20px 18px;
  animation: component-slide 28s linear infinite;
}

.component-marquee:hover .component-track {
  animation-play-state: paused;
}

.component-track span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid rgba(101, 117, 139, 0.26);
  box-shadow: 0 12px 30px rgba(7, 23, 47, 0.08);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

@keyframes component-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .component-track {
    width: auto;
    flex-wrap: wrap;
    animation: none;
  }
}

.cta {
  margin: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 56px);
  padding: clamp(30px, 5vw, 52px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--navy), #123d6d);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.cta p {
  color: #d7e0ed;
}

.cta .eyebrow {
  color: #93caff;
}

.cta .button.primary {
  background: var(--white);
  color: var(--navy);
  width: 112px;
  height: 112px;
  min-height: 112px;
  padding: 0;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
}

.contact-form,
.contact-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--light);
  border: 1px solid rgba(101, 117, 139, 0.16);
}

.contact-form {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(101, 117, 139, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
}

textarea {
  resize: vertical;
}

.form-note,
.small {
  color: var(--steel);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: var(--navy);
  color: #d7e0ed;
}

.site-footer img {
  width: 126px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 980px) {
  .hero,
  .split-section,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .cards,
  .sector-grid,
  .industry-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 640px) {
  .trust-strip,
  .cards,
  .sector-grid,
  .industry-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 40px;
  }

  h1 {
    font-size: 2.05rem;
  }
}


/* Cookie notice */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(101, 117, 139, 0.22);
  box-shadow: 0 24px 70px rgba(7, 23, 47, 0.22);
  backdrop-filter: blur(16px);
}

.cookie-banner.show {
  display: grid;
}

.cookie-banner h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.cookie-banner p {
  margin: 0;
  color: #526176;
  max-width: 820px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-body {
  background: #f4f7fb;
}

.admin-shell {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 52px);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.admin-header img {
  width: 220px;
  height: auto;
}

.admin-panel {
  background: #ffffff;
  border: 1px solid rgba(101, 117, 139, 0.16);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(7, 23, 47, 0.08);
  margin-bottom: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}

.metric-card {
  padding: 20px;
  border-radius: 20px;
  background: #f5f7fb;
  border: 1px solid rgba(101, 117, 139, 0.14);
}

.metric-card span {
  display: block;
  color: var(--steel);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.metric-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(101, 117, 139, 0.14);
}

.admin-table th {
  color: var(--steel);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e6;
  color: #614000;
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}


.page-hero {
  padding: clamp(52px, 6vw, 86px) clamp(18px, 4vw, 56px);
  background:
    radial-gradient(circle at 80% 20%, rgba(54, 163, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: -0.045em;
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #526176;
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.check-grid span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 15px 18px 15px 42px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(101, 117, 139, 0.16);
  font-weight: 850;
  position: relative;
}

.check-grid span::before {
  content: "✓";
  position: absolute;
  left: 20px;
  color: #0f3a68;
  font-weight: 900;
}

.legal-copy {
  max-width: 920px;
}

.legal-copy h2 {
  font-size: 1.3rem;
  margin-top: 28px;
  margin-bottom: 10px;
}

.legal-copy p {
  color: #526176;
}

.checkbox-label {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 700;
}

.checkbox-label input {
  width: auto;
  margin-top: 6px;
}

.checkbox-label a,
.legal-copy a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-field {
  min-height: 65px;
}

.form-status {
  margin: 0;
  font-weight: 700;
}

.form-status:empty {
  display: none;
}

.form-status.error {
  color: #b42318;
}

.form-status.success {
  color: #157f3d;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 0.92rem;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.legal-copy ul {
  padding-left: 22px;
  color: #526176;
}

.legal-copy li {
  margin-bottom: 6px;
}

.legal-updated {
  color: var(--steel);
  font-size: 0.92rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 12px 0 20px;
}

.legal-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--silver);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--light);
  color: var(--navy);
}

.legal-table td {
  color: #526176;
}

@media (max-width: 640px) {
  .footer-meta {
    justify-items: start;
    text-align: left;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline links in body copy */
.text-link,
.section-link a,
.card h3 a,
.contact-card a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.split-section .text-link {
  color: #93caff;
  font-weight: 700;
  white-space: nowrap;
}

.section-link {
  margin: 24px 0 0;
  font-weight: 800;
}

.page-hero .hero-actions {
  margin-top: 24px;
}

/* Areas covered - light variant of the split section */
.split-section.areas,
.split-section.light {
  align-items: center;
  background: var(--white);
  color: var(--navy);
}

.split-section.areas p,
.split-section.light p {
  color: #526176;
}

.split-section.areas .eyebrow,
.split-section.light .eyebrow {
  color: var(--blue);
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--light);
  border: 1px solid rgba(101, 117, 139, 0.16);
  font-weight: 800;
}

.area-list li:last-child {
  background: var(--navy);
  color: var(--white);
}

/* FAQ accordion */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-list details {
  border-radius: 16px;
  background: var(--white);
  border: 1px solid rgba(101, 117, 139, 0.16);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  color: var(--blue);
  font-size: 1.4rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 18px;
  color: #526176;
}

/* Contact page */
.optional {
  color: var(--steel);
  font-weight: 600;
}

.contact-card h2 {
  font-size: 1.08rem;
}

.contact-card h2 + .contact-list,
.contact-card h3 + .contact-list {
  margin-top: 8px;
}

.contact-list {
  padding-left: 20px;
  color: #526176;
}

.contact-list li {
  margin-bottom: 4px;
}

@media (max-width: 980px) {
  .split-section.areas,
  .split-section.light {
    grid-template-columns: 1fr;
  }
}

/* Consultancy page */
.cards.cards-two {
  grid-template-columns: repeat(2, 1fr);
}

.card-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #526176;
}

.card-list li {
  margin-bottom: 6px;
}

select {
  width: 100%;
  border: 1px solid rgba(101, 117, 139, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  color: var(--navy);
  background: var(--white);
}

@media (max-width: 760px) {
  .cards.cards-two {
    grid-template-columns: 1fr;
  }
}

/* Enquiries admin */
.admin-signin {
  max-width: 560px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.admin-toolbar h1 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-filter {
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  font-weight: 700;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 900px;
  font-size: 0.92rem;
}

.admin-table td {
  vertical-align: top;
}

.admin-table tr.is-new td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.admin-table summary {
  cursor: pointer;
  max-width: 320px;
}

.admin-message {
  margin-top: 8px;
  max-width: 420px;
  white-space: pre-wrap;
  color: #526176;
}

.admin-table select {
  min-width: 110px;
  padding: 8px 10px;
}

.admin-delete {
  color: #b42318;
}

/* Admin: tabs, controls, charts and dialog */
.admin-body h1,
.admin-body h2 {
  margin: 0;
}

.admin-body h2 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.admin-toolbar h2 {
  margin-bottom: 0;
}

.admin-toolbar-top {
  margin-bottom: 18px;
}

.admin-toolbar-top p {
  margin: 0;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.admin-filter select {
  width: auto;
  min-width: 170px;
  padding: 8px 12px;
}

.admin-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(101, 117, 139, 0.2);
  overflow-x: auto;
}

.admin-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--steel);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.admin-tabs a:hover {
  color: var(--navy);
}

.admin-tabs a.active {
  color: var(--navy);
  border-bottom-color: var(--accent);
}

.tab-badge,
.pill {
  display: inline-block;
  min-width: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
}

.pill {
  margin-left: 8px;
  background: #e6f2ff;
  color: var(--blue);
}

.button-small {
  min-height: 0;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.button-danger {
  background: var(--white);
  color: #b42318;
  border: 1px solid rgba(180, 35, 24, 0.35);
}

.button-danger:hover {
  background: #fef3f2;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-columns .admin-panel {
  margin-bottom: 0;
}

.admin-tab > .admin-columns {
  margin-bottom: 20px;
}

.admin-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.admin-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(101, 117, 139, 0.14);
}

.admin-table-compact {
  min-width: 640px;
}

.admin-table tr.is-clickable {
  cursor: pointer;
}

.admin-table tr.is-clickable:hover td,
.admin-table tr.is-clickable:focus td {
  background: #f5f9ff;
}

.admin-table tr.session-start td {
  border-top: 2px solid var(--silver);
}

.admin-table code {
  font-size: 0.85rem;
}

/* Bar lists: single hue, value as text */
.bar-list + .bar-list {
  margin-top: 18px;
}

.bar-row {
  margin-bottom: 10px;
}

.bar-text {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--navy);
}

.bar-value {
  flex: none;
  color: #526176;
  font-weight: 700;
}

.bar-track {
  height: 8px;
  border-radius: 4px;
  background: #eef2f7;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #2f7fc8;
}

/* Column chart */
.chart svg {
  display: block;
  max-width: 100%;
}

.chart-bar {
  fill: #2f7fc8;
}

.chart-grid {
  stroke: #e3e8ef;
  stroke-width: 1;
}

.chart-baseline {
  stroke: #c5cedb;
  stroke-width: 1;
}

.chart-axis {
  fill: #65758b;
  font-size: 11px;
}

.chart-hit {
  fill: transparent;
  outline: none;
}

.chart-hit.hover {
  fill: rgba(47, 127, 200, 0.08);
}

.chart-tooltip {
  position: absolute;
  z-index: 20;
  display: grid;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.85rem;
  pointer-events: none;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-table {
  margin-top: 12px;
}

.chart-table summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
}

.admin-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  padding: 24px;
  border: 0;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop {
  background: rgba(7, 23, 47, 0.45);
}

@media (max-width: 860px) {
  .admin-columns {
    grid-template-columns: 1fr;
  }
}

.tab-badge[hidden] {
  display: none;
}

.bar-heading {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bar-list + .bar-heading {
  margin-top: 18px;
}

@media (max-width: 760px) {
  .admin-body .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-body .metric-card strong {
    font-size: 1.35rem;
  }
}

/* Admin: compact header bar with logo, tabs and sign out on one row */
.admin-body .admin-shell {
  padding-top: 0;
}

.admin-body .admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 28px;
  margin: 0 calc(-1 * clamp(20px, 4vw, 52px)) 24px;
  padding: 10px clamp(20px, 4vw, 52px) 0;
  background: var(--white);
  border-bottom: 1px solid rgba(101, 117, 139, 0.2);
}

.admin-body .admin-header img {
  width: 132px;
  margin-bottom: 10px;
}

.admin-body .admin-header .admin-tabs {
  flex: 1;
  align-self: flex-end;
  margin: 0;
  border-bottom: 0;
  overflow-y: hidden;
}

.admin-body .admin-header .admin-tabs[hidden] {
  display: none;
}

.admin-body .admin-tabs a {
  padding: 12px 16px 14px;
  margin-bottom: 0;
}

.admin-body .admin-header .admin-actions {
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .admin-body .admin-header {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 12px;
  }

  .admin-body .admin-header img {
    width: 112px;
    margin: 0;
  }

  .admin-body .admin-header .admin-actions {
    margin: 0 0 0 auto;
  }

  .admin-body .admin-header .admin-tabs {
    order: 3;
    flex-basis: 100%;
  }
}

/* ---------- Site header & navigation ---------- */
:root {
  --header-height: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-height);
  padding: 0 clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(101, 117, 139, 0.14);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(7, 23, 47, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 48px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: #26364f;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover,
.has-menu.open > .nav-link {
  background: #f1f5fa;
  color: var(--navy);
}

.nav-link[aria-current="page"],
.nav-link.active {
  color: var(--blue);
}

.nav-link[aria-current="page"]::after,
.nav-link.active::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 3px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-caret {
  transition: transform 0.2s ease;
}

.has-menu.open .nav-caret {
  transform: rotate(180deg);
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -8px;
  width: 340px;
  padding: 8px;
  border: 1px solid rgba(101, 117, 139, 0.14);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(7, 23, 47, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* Bridges the gap so the menu stays open while the pointer moves down into it */
.nav-menu::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
}

@media (hover: hover) and (min-width: 981px) {
  .has-menu:hover > .nav-link {
    background: #f1f5fa;
    color: var(--navy);
  }

  .has-menu:hover .nav-caret {
    transform: rotate(180deg);
  }

  .has-menu:hover .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

.has-menu.open .nav-menu,
.has-menu:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-menu-link {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--navy);
  text-decoration: none;
}

.nav-menu-link strong {
  font-size: 0.95rem;
}

.nav-menu-link span {
  color: var(--steel);
  font-size: 0.85rem;
  font-weight: 500;
}

.nav-menu-link:hover {
  background: #f1f5fa;
}

.nav-menu-link[aria-current="page"] {
  background: #eaf3fd;
}

.nav-menu-link[aria-current="page"] strong {
  color: var(--blue);
}

.site-nav .nav-cta {
  margin-left: 10px;
  color: var(--white);
}

.nav-link:focus-visible,
.nav-menu-link:focus-visible,
.nav-toggle:focus-visible,
.site-nav .nav-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 980px) {
  :root {
    --header-height: 64px;
  }

  /* Solid background: a blurred header would trap the fixed menu inside its own height */
  .site-header {
    background: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .brand img {
    height: 40px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 11px 10px;
    border: 0;
    border-radius: 12px;
    background: none;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform 0.2s ease, opacity 0.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);
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 8px clamp(16px, 4vw, 56px) calc(20px + env(safe-area-inset-bottom));
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(101, 117, 139, 0.14);
    border-radius: 0;
    font-size: 1.1rem;
  }

  .nav-link:hover {
    background: none;
  }

  .nav-link[aria-current="page"]::after,
  .nav-link.active::after {
    top: 50%;
    right: 4px;
    bottom: auto;
    left: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: translateY(-50%);
  }

  /* In the mobile menu the services are always listed under a small heading */
  .nav-menu-toggle {
    padding: 18px 4px 6px;
    border-bottom: 0;
    color: var(--steel);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: default;
  }

  .nav-menu-toggle.active {
    color: var(--steel);
  }

  .nav-menu-toggle.active::after,
  .nav-caret {
    display: none;
  }

  .nav-menu {
    position: static;
    width: auto;
    padding: 0 0 10px;
    border: 0;
    border-bottom: 1px solid rgba(101, 117, 139, 0.14);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu::before {
    display: none;
  }

  .nav-menu-link {
    padding: 12px 4px;
  }

  .site-nav .nav-cta {
    width: 100%;
    min-height: 52px;
    margin: 0;
    font-size: 1rem;
  }

  body.nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .nav-menu,
  .nav-caret,
  .site-nav,
  .nav-toggle span {
    transition: none;
  }
}

/* ---------- Mobile comfort ---------- */
/* 16px stops iPhones zooming in when a form field is tapped */
input,
select,
textarea {
  font-size: 16px;
}

/* Comfortable tap targets for the footer links */
.footer-links a,
.footer-link-button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 0;
}

@media (max-width: 640px) {
  .footer-links {
    gap: 2px 20px;
  }

  .footer-links a,
  .footer-link-button {
    min-height: 40px;
  }
}

/* ---------- Homepage hero slideshow ---------- */
.hero.hero-slideshow {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, calc(100svh - var(--header-height)), 800px);
  padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 56px) clamp(36px, 5vw, 64px);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-slides,
.hero-slide,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity var(--slide-fade, 1400ms) ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  will-change: transform;
}

/* Slow "Ken Burns" zoom and drift; kept running while the slide fades out */
.hero-slide.active img,
.hero-slide.prev img {
  animation: hero-zoom calc(var(--slide-duration, 6500ms) + var(--slide-fade, 1400ms)) ease-out forwards;
}

@keyframes hero-zoom {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.07) translate(calc(var(--kb-x, 0) / 2), calc(var(--kb-y, 0) / 2));
  }
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 23, 47, 0.94) 0%, rgba(7, 23, 47, 0.82) 38%, rgba(7, 23, 47, 0.35) 72%, rgba(7, 23, 47, 0.15) 100%),
    linear-gradient(0deg, rgba(7, 23, 47, 0.55) 0%, transparent 40%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-slideshow .eyebrow {
  color: #93caff;
}

.hero-slideshow h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  text-wrap: balance;
}

.hero-captions {
  display: grid;
  min-height: 4.4em;
  margin: 22px 0 26px;
}

.hero-caption {
  grid-area: 1 / 1;
  margin: 0;
  color: #d7e0ed;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-caption.active {
  opacity: 1;
  transform: none;
  transition-delay: 0.35s;
}

.hero-caption strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.78em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-slideshow .hero-actions {
  margin-top: 0;
}

.hero-slideshow .button.primary {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-slideshow .button.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-slideshow .button.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(32px, 5vw, 56px);
}

.hero-dots {
  display: flex;
  gap: 6px;
}

/* Each dot is a progress bar for its slide; the button itself is a comfortable tap target */
.hero-dot {
  position: relative;
  width: 44px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-dot::before,
.hero-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
}

.hero-dot::before {
  background: rgba(255, 255, 255, 0.3);
}

.hero-dot::after {
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.active::after {
  animation: hero-progress var(--slide-duration, 6500ms) linear forwards;
}

@keyframes hero-progress {
  to {
    transform: scaleX(1);
  }
}

.hero-slideshow.paused .hero-dot.active::after,
.hero-slideshow.paused .hero-slide img {
  animation-play-state: paused;
}

.hero-pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.hero-pause .icon-play,
.hero-slideshow.paused .hero-pause .icon-pause {
  display: none;
}

.hero-slideshow.paused .hero-pause .icon-play {
  display: block;
}

.hero-dot:focus-visible,
.hero-pause:focus-visible,
.hero-slideshow .button:focus-visible {
  outline: 2px solid #93caff;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero.hero-slideshow {
    align-items: flex-end;
    min-height: calc(100svh - var(--header-height));
    max-height: 760px;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(7, 23, 47, 0.96) 0%, rgba(7, 23, 47, 0.85) 50%, rgba(7, 23, 47, 0.4) 100%);
  }

  .hero-slideshow h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .hero-captions {
    min-height: 5.6em;
  }

  .hero-slideshow .hero-actions .button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active img,
  .hero-slide.prev img,
  .hero-dot.active::after {
    animation: none;
  }

  .hero-slide img {
    transform: none;
  }

  .hero-dot.active::after {
    transform: scaleX(1);
  }

  .hero-caption,
  .hero-slide {
    transition-duration: 0.01ms;
  }
}

/* Contact form: let the columns shrink below the dropdown's longest option on small phones */
.contact-grid > * {
  min-width: 0;
}

.contact-form select {
  max-width: 100%;
}

@media (max-width: 380px) {
  .contact-form,
  .contact-card {
    padding: 18px;
  }
}

/* Long email addresses wrap instead of pushing the page wider */
.contact-card a,
.legal-copy a {
  overflow-wrap: anywhere;
}

/* LinkedIn link in the footer */
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-weight: 600;
}
.site-footer a.footer-social { text-decoration: none; }
.site-footer a.footer-social:hover span,
.site-footer a.footer-social:focus-visible span { text-decoration: underline; text-underline-offset: 3px; }
.footer-social svg { flex: none; }

/* ---------- News page ---------- */
.news-list {
  display: grid;
  gap: 28px;
  max-width: 1080px;
  margin: 0 auto;
}
.news-post {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid rgba(101, 117, 139, 0.3);
  box-shadow: 0 18px 46px rgba(7, 23, 47, 0.08);
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
}
.news-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
}
.news-body > :first-child { margin-top: 0; }
.news-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  margin: 4px 0 14px;
}
.news-body p { color: #3c4a5e; }
.news-meta {
  font-size: 0.9rem;
  color: var(--steel) !important;
  margin-bottom: 0;
}
.news-links a { font-weight: 600; }
@media (max-width: 760px) {
  .news-post { grid-template-columns: 1fr; }
}
.news-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news-body .news-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--blue);
}

/* ---------- Articles / guides ---------- */
.article-meta {
  font-size: 0.95rem;
  opacity: 0.8;
}
.article-body {
  max-width: 760px;
  margin: 0 auto;
}
.article-body > :first-child { margin-top: 0; }
.article-body h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin: 2.2em 0 0.6em;
}
.article-body p,
.article-body li {
  color: #3c4a5e;
  line-height: 1.7;
}
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: 0.6em; }
.article-body a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body .news-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-weight: 600;
}
.article-figure {
  margin: 1.4em 0 1.8em;
}
.article-figure img {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  border: 1px solid rgba(101, 117, 139, 0.3);
}
.article-figure figcaption {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 0.92rem;
  color: var(--steel);
  text-align: center;
}
.article-note {
  margin-top: 2.4em;
  font-size: 0.88rem;
  color: var(--steel) !important;
}
.news-body h2 a.news-title-link {
  color: inherit;
  text-decoration: none;
}
.news-body h2 a.news-title-link:hover,
.news-body h2 a.news-title-link:focus-visible { text-decoration: underline; }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
