.primary-nav > a.is-current,
.services-menu > summary.is-current {
  color: var(--white);
}

.services-menu > summary.is-current::after {
  transform: scaleX(1);
}

.services-popover a.is-current,
.mobile-services-links a.is-current {
  color: var(--blue-700);
  background: var(--blue-50);
}

.page-main {
  overflow: hidden;
}

.page-hero {
  position: relative;
  padding: clamp(90px, 10vw, 145px) 0;
  background: var(--white);
}

.page-hero::before {
  position: absolute;
  top: -260px;
  right: -220px;
  width: 620px;
  height: 620px;
  content: "";
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(37, 99, 235, 0.025),
    0 0 0 180px rgba(37, 99, 235, 0.018);
  pointer-events: none;
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(58px, 8vw, 112px);
}

.page-hero-copy {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(3rem, 5.4vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.page-hero-intro {
  max-width: 670px;
  margin: 30px 0 0;
  color: var(--slate-600);
  font-size: clamp(1.04rem, 1.35vw, 1.2rem);
  line-height: 1.75;
}

.page-section {
  padding: clamp(92px, 10vw, 138px) 0;
}

.page-section-soft {
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, 0.055), transparent 30%),
    var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.legal-hero {
  position: relative;
  padding: clamp(88px, 10vw, 132px) 0 clamp(72px, 8vw, 106px);
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.legal-hero::after {
  position: absolute;
  top: -260px;
  right: -180px;
  width: 570px;
  height: 570px;
  content: "";
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(37, 99, 235, 0.025),
    0 0 0 160px rgba(37, 99, 235, 0.018);
  pointer-events: none;
}

.legal-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.legal-hero-copy > p:not(.eyebrow):not(.legal-updated) {
  max-width: 680px;
  margin: 26px 0 0;
  color: var(--slate-600);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.72;
}

.legal-updated {
  margin: 24px 0 0;
  color: var(--slate-500);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-section {
  padding: clamp(80px, 10vw, 136px) 0;
  background: var(--white);
}

.legal-content {
  max-width: 900px;
}

.legal-summary {
  padding: clamp(28px, 4vw, 42px);
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: var(--radius-md);
}

.legal-summary h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
}

.legal-summary ul,
.legal-content section ul {
  margin: 20px 0 0;
  padding-left: 1.25rem;
}

.legal-summary li,
.legal-content section li {
  padding-left: 0.35rem;
  color: var(--slate-600);
  line-height: 1.72;
}

.legal-summary li + li,
.legal-content section li + li {
  margin-top: 8px;
}

.legal-content > section {
  margin-top: clamp(52px, 7vw, 72px);
}

.legal-content > section h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.legal-content > section p {
  margin: 18px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.legal-content a {
  color: var(--blue-700);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.32);
  text-underline-offset: 0.18em;
}

.legal-content a:hover {
  color: var(--blue-800);
  text-decoration-color: currentColor;
}

.legal-contact {
  padding: clamp(30px, 5vw, 48px);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.legal-contact .eyebrow {
  margin-bottom: 12px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.error-section {
  display: grid;
  min-height: clamp(560px, 72vh, 780px);
  align-items: center;
  padding: 80px 0;
  background:
    radial-gradient(circle at 78% 42%, rgba(37, 99, 235, 0.11), transparent 30%),
    var(--white);
}

.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(52px, 9vw, 120px);
}

.error-copy h1 {
  max-width: 700px;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.error-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--slate-600);
  font-size: 1.08rem;
  line-height: 1.75;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.error-code {
  color: transparent;
  font-size: clamp(9rem, 20vw, 18rem);
  font-weight: 800;
  letter-spacing: -0.1em;
  line-height: 0.8;
  text-align: center;
  -webkit-text-stroke: 2px rgba(37, 99, 235, 0.34);
  user-select: none;
}

.page-heading {
  max-width: 760px;
  margin-bottom: clamp(52px, 6vw, 76px);
}

.page-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.page-heading h2,
.story-grid h2,
.expertise-copy h2,
.contact-details h2,
.platform-copy h2,
.nabers-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.page-heading > p:last-child,
.story-copy p,
.expertise-copy > p,
.platform-copy > p,
.nabers-copy > p {
  color: var(--slate-600);
  font-size: 1.03rem;
  line-height: 1.75;
}

.page-heading > p:last-child {
  max-width: 660px;
  margin: 20px 0 0;
}

.page-heading.centered > p:last-child {
  margin-inline: auto;
}

.page-icon {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clean-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  color: var(--slate-700);
}

.clean-list svg {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-cta {
  padding: 30px 0 78px;
  background: var(--white);
}

.page-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: clamp(34px, 5vw, 56px) clamp(30px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--blue-700), var(--blue-600));
  border-radius: var(--radius-md);
  box-shadow: 0 24px 50px rgba(37, 99, 235, 0.22);
}

.page-cta h2 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
}

/* About */

.about-hero-illustration {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: end;
  justify-items: center;
}

.about-hero-illustration::before {
  position: absolute;
  right: 7%;
  bottom: 5%;
  left: 7%;
  height: 78%;
  content: "";
  background:
    radial-gradient(circle at 50% 55%, rgba(37, 99, 235, 0.14), transparent 67%),
    repeating-linear-gradient(135deg, transparent 0 11px, rgba(37, 99, 235, 0.035) 11px 13px);
  border-radius: 50%;
}

.about-hero-illustration picture {
  position: relative;
  z-index: 1;
  width: min(120%, 650px);
}

.about-hero-illustration img {
  width: 100%;
  height: auto;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(60px, 10vw, 150px);
}

.story-copy {
  max-width: 640px;
}

.story-copy p {
  margin: 0;
}

.story-copy p + p {
  margin-top: 24px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.approach-grid article {
  padding: 10px clamp(28px, 4vw, 62px);
  text-align: center;
  border-right: 1px solid var(--slate-200);
}

.approach-grid article:first-child {
  padding-left: 0;
}

.approach-grid article:last-child {
  padding-right: 0;
  border-right: 0;
}

.approach-grid svg {
  width: 62px;
  height: 62px;
  margin: 0 auto 24px;
}

.approach-grid h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.2rem;
}

.approach-grid p {
  max-width: 270px;
  margin: 12px auto 0;
  color: var(--slate-600);
  font-size: 0.92rem;
}

.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(60px, 9vw, 130px);
}

.expertise-grid > * {
  min-width: 0;
}

.engineering-illustration {
  width: 100%;
  color: #8ba8d5;
}

.engineering-illustration .structure {
  fill: rgba(239, 246, 255, 0.72);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.engineering-illustration .guide {
  fill: none;
  stroke: rgba(37, 99, 235, 0.2);
  stroke-width: 1;
  stroke-dasharray: 5 7;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin-inline: auto;
  border-top: 1px solid var(--slate-200);
  border-left: 1px solid var(--slate-200);
}

.difference-grid article {
  display: grid;
  min-height: 220px;
  grid-template-columns: 54px 1fr;
  gap: 24px;
  padding: clamp(30px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.55);
  border-right: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.difference-grid h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.13rem;
  line-height: 1.35;
}

.difference-grid p {
  margin: 12px 0 0;
  color: var(--slate-600);
  font-size: 0.9rem;
}

/* Contact */

.contact-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
}

.contact-hero-copy {
  max-width: 700px;
}

.contact-hero h1 {
  max-width: 760px;
}

.brisbane-line-art {
  position: absolute;
  right: max(20px, calc((100vw - var(--container)) / 2));
  bottom: -4px;
  width: min(56vw, 800px);
  color: rgba(37, 99, 235, 0.13);
  pointer-events: none;
}

.brisbane-line-art path,
.brisbane-line-art rect,
.brisbane-line-art line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(500px, 1.22fr);
  align-items: start;
  gap: clamp(70px, 10vw, 140px);
}

.contact-details {
  padding-top: 62px;
}

.contact-methods {
  display: grid;
  gap: 34px;
  margin-top: 52px;
}

.contact-method {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 20px;
}

.contact-method svg {
  width: 38px;
  height: 38px;
}

.contact-method small {
  display: block;
  margin-bottom: 3px;
  color: var(--slate-500);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-method a,
.contact-method strong {
  color: var(--navy-950);
  font-size: 1.05rem;
  font-weight: 650;
}

.contact-method a:hover {
  color: var(--blue-700);
}

.contact-form-card {
  padding: clamp(32px, 5vw, 58px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  margin: 0 0 36px;
  color: var(--navy-950);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.04em;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px 22px;
}

.form-field {
  display: grid;
  gap: 9px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--slate-700);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  color: var(--navy-900);
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 150px;
  padding: 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form .button {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 5px;
  border: 0;
  cursor: pointer;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.58;
}

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

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

.turnstile-field > p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.82rem;
}

.form-status {
  grid-column: 1 / -1;
  margin: -6px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.form-status:focus {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.form-status-error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.form-status a {
  color: inherit;
  font-weight: 700;
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 18px 0 4px;
}

.form-success[hidden] {
  display: none;
}

.form-success .page-icon {
  width: 52px;
  height: 52px;
  padding: 12px;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 50%;
}

.form-success h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.form-success p {
  max-width: 43ch;
  margin: 0;
  color: var(--slate-600);
  line-height: 1.7;
}

.form-success .button {
  margin-top: 6px;
  border: 1px solid var(--slate-300);
  cursor: pointer;
}

.form-note {
  grid-column: 1 / -1;
  margin: -9px 0 0;
  color: var(--slate-500);
  font-size: 0.76rem;
  text-align: center;
}

.form-note a {
  color: var(--blue-700);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.assurance-strip {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: var(--blue-50);
}

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.assurance-grid div {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border-right: 1px solid var(--blue-100);
  color: var(--navy-900);
  font-weight: 650;
}

.assurance-grid div:last-child {
  border-right: 0;
}

.assurance-grid svg {
  width: 35px;
  height: 35px;
}

/* Energy Monitoring Systems */

.service-page-hero {
  background:
    radial-gradient(circle at 76% 24%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, var(--blue-50), var(--white));
}

.service-page-hero h1 {
  font-size: clamp(3rem, 5.2vw, 5rem);
}

.ems-hero-visual {
  position: relative;
}

.ems-system-illustration {
  width: 100%;
  color: var(--blue-600);
}

.ems-system-illustration .outline {
  fill: rgba(255, 255, 255, 0.75);
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ems-system-illustration .soft-fill {
  fill: rgba(219, 234, 254, 0.75);
  stroke: currentColor;
  stroke-width: 1.5;
}

.ems-system-illustration .connection {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
}

.insight-section {
  padding: 72px 0 82px;
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.insight-heading {
  margin: 0 0 56px;
  color: var(--navy-950);
  font-size: clamp(2rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
  text-align: center;
}

.insight-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.insight-steps::before {
  position: absolute;
  top: 34px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  content: "";
  background: var(--blue-100);
}

.insight-steps li {
  position: relative;
  text-align: center;
}

.insight-steps svg {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 50%;
}

.insight-steps strong {
  color: var(--navy-950);
  font-size: 1rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(370px, 0.95fr);
  align-items: center;
  gap: clamp(64px, 9vw, 130px);
}

.dashboard-preview {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.preview-topbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid var(--slate-200);
}

.preview-topbar strong {
  font-size: 0.87rem;
}

.preview-topbar span {
  padding: 5px 9px;
  color: #15803d;
  background: #f0fdf4;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.5fr);
  gap: 16px;
  padding: 22px;
}

.preview-chart,
.preview-stat {
  padding: 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.preview-chart small,
.preview-stat small {
  color: var(--slate-500);
  font-size: 0.72rem;
}

.preview-chart strong,
.preview-stat strong {
  display: block;
  margin-top: 4px;
  color: var(--navy-950);
  font-size: 1.35rem;
}

.preview-chart svg {
  width: 100%;
  height: auto;
  margin-top: 24px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-stats {
  display: grid;
  gap: 16px;
}

.preview-stat i {
  display: block;
  width: 60%;
  height: 4px;
  margin-top: 22px;
  background: var(--blue-600);
  border-radius: 999px;
}

.platform-copy .clean-list {
  gap: 14px;
}

.application-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.application-card {
  grid-column: span 2;
  min-height: 230px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.application-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.application-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.application-card h3 {
  margin: 24px 0 0;
  color: var(--navy-950);
  font-size: 1.08rem;
  line-height: 1.35;
}

.application-card p {
  margin: 11px 0 0;
  color: var(--slate-600);
  font-size: 0.88rem;
  line-height: 1.65;
}

.nabers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(70px, 11vw, 160px);
}

.nabers-aligned-mark {
  display: grid;
  min-height: 310px;
  align-content: center;
  padding: 46px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.nabers-aligned-mark > span {
  color: var(--slate-500);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aligned-segments {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin: 30px 0;
}

.aligned-segments i {
  height: 16px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  border-radius: 4px;
}

.aligned-segments i:nth-last-child(-n + 2) {
  opacity: 0.22;
}

.nabers-aligned-mark strong {
  color: var(--navy-950);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
}

@media (max-width: 1080px) {
  .page-hero-grid,
  .expertise-grid,
  .platform-grid,
  .nabers-grid {
    grid-template-columns: 1fr;
  }

  .page-hero-copy,
  .expertise-copy,
  .platform-copy,
  .nabers-copy {
    max-width: 720px;
  }

  .about-hero-illustration {
    width: min(100%, 680px);
    min-height: 480px;
    margin-inline: auto;
  }

  .engineering-illustration,
  .dashboard-preview,
  .nabers-aligned-mark {
    width: min(100%, 720px);
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: minmax(260px, 0.72fr) minmax(430px, 1.28fr);
    gap: 50px;
  }

  .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .application-card,
  .application-card:nth-child(4) {
    grid-column: auto;
  }

  .application-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .page-hero {
    padding: 82px 0;
  }

  .page-hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .contact-details {
    max-width: 560px;
    padding-top: 0;
  }

  .contact-hero {
    min-height: 560px;
  }

  .brisbane-line-art {
    right: -80px;
    width: 88vw;
  }

  .approach-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .approach-grid article,
  .approach-grid article:first-child,
  .approach-grid article:last-child {
    padding: 0;
    border-right: 0;
  }

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

  .difference-grid article {
    min-height: 0;
  }

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

  .assurance-grid div {
    min-height: 88px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid var(--blue-100);
  }

  .assurance-grid div:last-child {
    border-bottom: 0;
  }

  .insight-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 26px;
  }

  .insight-steps::before {
    display: none;
  }

  .page-cta-panel {
    grid-template-columns: 1fr;
  }

  .page-cta-panel .button {
    justify-self: start;
  }

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

  .error-code {
    order: -1;
    font-size: clamp(8rem, 42vw, 14rem);
    text-align: left;
  }
}

@media (max-width: 620px) {
  .page-hero {
    padding: 68px 0;
  }

  .page-hero h1,
  .service-page-hero h1 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

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

  .page-section {
    padding: 80px 0;
  }

  .page-heading {
    margin-bottom: 44px;
  }

  .about-hero-illustration {
    min-height: 340px;
  }

  .engineering-illustration {
    min-width: 0;
    transform: none;
  }

  .difference-grid article {
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 28px 22px;
  }

  .contact-hero {
    min-height: 520px;
  }

  .brisbane-line-art {
    right: -220px;
    width: 760px;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-field-wide,
  .contact-form .button,
  .form-status,
  .form-note {
    grid-column: auto;
  }

  .insight-section {
    padding: 64px 0;
  }

  .preview-body {
    grid-template-columns: 1fr;
  }

  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .application-card,
  .application-card:last-child {
    width: auto;
    grid-column: auto;
  }

  .application-card {
    min-height: 0;
    padding: 28px;
  }

  .nabers-aligned-mark {
    min-height: 250px;
    padding: 30px;
  }

  .page-cta {
    padding-bottom: 58px;
  }

  .page-cta-panel {
    padding: 32px 26px;
  }

  .page-cta-panel .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-card {
    transition: none;
  }
}

/* Remaining service pages */

.service-family-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(37, 99, 235, 0.12), transparent 34%),
    linear-gradient(180deg, var(--blue-50), var(--white));
}

.service-family-hero .page-hero-grid {
  min-height: 450px;
}

.service-hero-art {
  width: 100%;
  color: var(--blue-600);
}

.service-hero-art .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-hero-art .soft {
  fill: rgba(219, 234, 254, 0.72);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-hero-art .dash {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}

.service-hero-art .muted {
  fill: none;
  stroke: rgba(37, 99, 235, 0.22);
  stroke-width: 1.3;
}

.service-intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(60px, 9vw, 130px);
}

.service-intro-grid h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.service-intro-grid-balanced {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(60px, 7vw, 110px);
}

.service-intro-grid .service-intro-statement {
  font-size: clamp(2.25rem, 3.2vw, 3.25rem);
  line-height: 1.08;
}

.service-intro-statement span {
  display: block;
  white-space: nowrap;
}

.service-intro-copy {
  max-width: 680px;
}

.service-intro-copy > p {
  margin: 0;
  color: var(--slate-600);
  font-size: 1.03rem;
  line-height: 1.75;
}

.service-intro-copy > p + p {
  margin-top: 22px;
}

.service-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-feature-card {
  min-height: 280px;
  padding: clamp(30px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-feature-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-feature-card h3 {
  margin: 26px 0 0;
  color: var(--navy-950);
  font-size: 1.2rem;
  line-height: 1.35;
}

.service-feature-card p {
  margin: 13px 0 0;
  color: var(--slate-600);
  font-size: 0.91rem;
  line-height: 1.7;
}

.service-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(68px, 10vw, 145px);
}

.service-split-copy h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2.25rem, 4vw, 3.75rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.service-split-copy > p:not(.eyebrow) {
  margin: 22px 0 0;
  color: var(--slate-600);
  font-size: 1.03rem;
  line-height: 1.75;
}

.service-visual-card {
  min-height: 360px;
  padding: clamp(30px, 5vw, 52px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.service-visual-card > svg {
  width: 100%;
  height: auto;
}

.service-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-process::before {
  position: absolute;
  top: 24px;
  right: 10%;
  left: 10%;
  height: 1px;
  content: "";
  background: var(--blue-100);
}

.service-process li {
  position: relative;
  padding-top: 74px;
  text-align: center;
}

.service-process .step-dot {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--blue-700);
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.service-process h3 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.02rem;
}

.service-process p {
  margin: 10px auto 0;
  color: var(--slate-600);
  font-size: 0.85rem;
  line-height: 1.6;
}

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

.source-flow article {
  position: relative;
  padding: 32px 24px;
  text-align: center;
}

.source-flow article:not(:last-child)::after {
  position: absolute;
  top: 56px;
  right: -18px;
  width: 36px;
  height: 1px;
  content: "";
  background: var(--blue-100);
}

.source-flow svg {
  width: 54px;
  height: 54px;
  margin-inline: auto;
}

.source-flow h3 {
  margin: 22px 0 0;
  color: var(--navy-950);
  font-size: 1.02rem;
}

.source-flow p {
  margin: 10px 0 0;
  color: var(--slate-600);
  font-size: 0.85rem;
  line-height: 1.6;
}

.statement-panel {
  max-width: 980px;
  margin-inline: auto;
  padding: clamp(40px, 7vw, 78px);
  text-align: center;
  background: var(--navy-950);
  border-radius: var(--radius-md);
}

.statement-panel .eyebrow {
  color: #93c5fd;
}

.statement-panel h2 {
  max-width: 750px;
  margin: 0 auto;
  color: var(--white);
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.statement-panel p {
  max-width: 650px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.73);
  line-height: 1.75;
}

.modular-stack {
  display: grid;
  gap: 14px;
}

.modular-layer {
  display: grid;
  min-height: 74px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  color: var(--navy-950);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.modular-layer svg {
  width: 38px;
  height: 38px;
}

.modular-layer strong {
  font-size: 0.95rem;
}

.efficiency-dashboard {
  display: grid;
  gap: 16px;
}

.efficiency-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.efficiency-status div {
  padding: 18px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.efficiency-status small {
  display: block;
  color: var(--slate-500);
  font-size: 0.7rem;
}

.efficiency-status strong {
  display: block;
  margin-top: 5px;
  color: var(--navy-950);
  font-size: 1.15rem;
}

.efficiency-chart {
  padding: 22px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.efficiency-chart svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meter-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.meter-device {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 24px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.meter-device svg {
  width: 82px;
  height: 82px;
}

.meter-device span {
  color: var(--navy-950);
  font-size: 0.86rem;
  font-weight: 750;
}

.meter-equals {
  color: var(--blue-600);
  font-size: 2rem;
  font-weight: 700;
}

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

.simple-audience-grid article {
  min-height: 170px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
}

.simple-audience-grid span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
}

.simple-audience-grid h3 {
  margin: 20px 0 0;
  color: var(--navy-950);
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .service-split {
    grid-template-columns: 1fr;
  }

  .service-split-copy,
  .service-visual-card {
    width: min(100%, 740px);
  }

  .service-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-feature-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }

  .simple-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .service-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-intro-statement span {
    white-space: normal;
  }

  .service-process,
  .source-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 24px;
  }

  .service-process::before,
  .source-flow article::after {
    display: none;
  }
}

@media (max-width: 620px) {
  .service-family-hero .page-hero-grid {
    min-height: 0;
  }

  .legal-summary {
    padding: 24px;
  }

  .legal-content > section {
    margin-top: 48px;
  }

  .error-section {
    min-height: 0;
    padding: 64px 0 78px;
  }

  .error-actions .button {
    width: 100%;
  }

  .service-feature-grid,
  .service-process,
  .source-flow,
  .simple-audience-grid {
    grid-template-columns: 1fr;
  }

  .service-feature-card,
  .service-feature-card:last-child:nth-child(odd) {
    width: auto;
    min-height: 0;
    grid-column: auto;
  }

  .service-visual-card {
    min-height: 0;
    padding: 26px;
  }

  .service-process li {
    padding-top: 62px;
  }

  .source-flow article {
    padding: 20px;
  }

  .efficiency-status {
    grid-template-columns: 1fr;
  }

  .meter-compare {
    grid-template-columns: 1fr;
  }

  .meter-equals {
    transform: rotate(90deg);
    text-align: center;
  }
}
