
:root {
  --black: #07090a;
  --ink: #141718;
  --ink-soft: #202425;
  --paper: #f1efe8;
  --paper-deep: #e5e2d9;
  --white: #ffffff;
  --muted: #aeb3b4;
  --yellow: #f2cf00;
  --orange: #e97132;
  --blue: #2e86de;
  --line-dark: rgba(7, 9, 10, 0.18);
  --line-light: rgba(255, 255, 255, 0.18);
  --page: min(1460px, 92vw);
  --text: min(680px, 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--paper);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

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

figure,
h1,
h2,
h3,
p,
blockquote,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--yellow);
  color: var(--black);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.site-header {
  --tmrf-header-height: 82px;
  --tmrf-admin-offset: 0px;
  position: sticky;
  z-index: 100;
  top: var(--tmrf-admin-offset);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--tmrf-header-height);
  padding: 0 4vw;
  border-bottom: 1px solid var(--line-light);
  background: rgba(7, 9, 10, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
}

.brand > span {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.brand small {
  margin-top: 6px;
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 42px);
}

.desktop-nav a {
  position: relative;
  padding: 30px 0 27px;
  color: #e0e2e2;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 48px;
  padding: 0 18px;
  background: var(--yellow);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease;
}

.header-cta:hover {
  background: var(--white);
}

.header-cta span,
.button span,
.inline-link span {
  transition: transform 180ms ease;
}

.header-cta:hover span,
.button:hover span,
.inline-link:hover span {
  transform: translateX(4px);
}

.mobile-nav {
  display: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: currentColor;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button-primary {
  background: var(--yellow);
  color: var(--black);
}

.button-primary:hover {
  background: var(--white);
}

.button-quiet {
  border-color: var(--line-light);
  background: transparent;
  color: var(--white);
}

.button-quiet:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
}

.button-dark {
  border: 0;
  background: var(--black);
  color: var(--white);
}

.button-dark:hover {
  background: #2a2e30;
}

.inline-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 2px solid currentColor;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Real-photo morphing reels */
.photo-reel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #191d1e;
  color: var(--white);
}

.reel-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.reel-slide {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 0 0 100%);
  transform: scale(1.055);
  filter: saturate(0.88) contrast(1.04) brightness(0.82);
  transition:
    clip-path 1150ms cubic-bezier(0.72, 0, 0.18, 1),
    transform 6200ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 900ms ease;
}

.reel-slide:nth-child(even) {
  clip-path: inset(0 100% 0 0);
}

.reel-slide.is-active {
  z-index: 2;
  clip-path: inset(0);
  transform: scale(1);
  filter: saturate(0.98) contrast(1.03) brightness(1);
}

.reel-slide img {
  height: 100%;
  object-fit: cover;
}

.reel-shade {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.04) 35%, rgba(7, 9, 10, 0.76) 100%);
}

.reel-footer {
  position: absolute;
  z-index: 5;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reel-footer > p {
  max-width: 70%;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.reel-controls {
  display: flex;
  gap: 5px;
}

.reel-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: rgba(7, 9, 10, 0.48);
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  transition: background 180ms ease, color 180ms ease;
}

.reel-controls button:hover {
  background: var(--yellow);
  color: var(--black);
}

.reel-progress {
  position: absolute;
  z-index: 6;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.reel-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--yellow);
  transform-origin: left;
  animation: reel-progress linear forwards;
}

@keyframes reel-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Home */
.home-hero {
  display: grid;
  grid-template-columns: minmax(460px, 0.9fr) 1.1fr;
  min-height: calc(100svh - 82px);
  background: var(--black);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(82px, 9vw, 155px) 4vw;
}

.home-hero h1,
.readable-intro h2,
.case-preview-heading h2,
.portfolio-reel-copy h2,
.delivery-heading h2,
.home-contact h2,
.service-hero h1,
.service-statement p,
.service-overview h2,
.capability-heading h2,
.integration-heading h2,
.service-case-heading h2,
.handover-copy h2,
.faq-heading h2,
.service-cta h2,
.case-index h1,
.case-index-intro h2,
.case-index-cta h2,
.case-detail h1,
.case-detail h2,
.case-outcome blockquote,
.next-case strong,
.contact-page h1,
.contact-page h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.home-hero h1 {
  max-width: 830px;
  margin: 28px 0 30px;
  font-size: clamp(4.4rem, 7.8vw, 9.4rem);
}

.hero-lead {
  max-width: 650px;
  color: #c9cccc;
  font-size: clamp(1.08rem, 1.45vw, 1.36rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-reel {
  min-height: 680px;
}

.capability-proof {
  display: grid;
  grid-template-columns: 0.75fr 1fr 1fr 1.35fr;
  align-items: stretch;
  background: var(--yellow);
  color: var(--black);
}

.capability-proof > * {
  display: flex;
  min-height: 148px;
  flex-direction: column;
  justify-content: center;
  padding: 28px 3.4vw;
  border-right: 1px solid rgba(7, 9, 10, 0.25);
}

.capability-proof > p:first-child,
.capability-proof span {
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.capability-proof strong {
  margin-top: 5px;
  font-size: clamp(2.2rem, 3.6vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.capability-proof .proof-note {
  border-right: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.home-electrical,
.wider-services {
  padding: clamp(90px, 10vw, 165px) 0;
  background: var(--paper);
  color: var(--black);
}

.readable-intro {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) 1.05fr;
  gap: clamp(45px, 8vw, 140px);
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(58px, 7vw, 105px);
}

.readable-intro .eyebrow {
  grid-column: 1 / -1;
  color: var(--black);
}

.readable-intro h2 {
  max-width: 780px;
  font-size: clamp(3.1rem, 5.5vw, 6.8rem);
}

.intro-copy {
  display: grid;
  gap: 30px;
  align-self: end;
  max-width: 640px;
}

.intro-copy > p {
  color: #434849;
  font-size: clamp(1.05rem, 1.35vw, 1.23rem);
  line-height: 1.68;
}

.intro-copy .inline-link {
  justify-self: start;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

.expertise-grid article {
  min-height: 250px;
  padding: 32px 34px 34px 0;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.expertise-grid article:nth-child(3n + 2),
.expertise-grid article:nth-child(3n + 3) {
  padding-left: 34px;
}

.expertise-grid article:nth-child(3n) {
  border-right: 0;
}

.expertise-grid h3 {
  margin-bottom: 22px;
  font-size: clamp(1.3rem, 1.8vw, 1.75rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.expertise-grid p {
  max-width: 390px;
  color: #555a5b;
  font-size: 0.96rem;
  line-height: 1.65;
}

.case-preview,
.service-case-studies {
  padding: clamp(90px, 10vw, 165px) 0;
  background: var(--black);
}

.case-preview-heading {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(58px, 7vw, 100px);
}

.case-preview-heading .eyebrow {
  margin-bottom: 28px;
}

.case-preview-heading h2 {
  font-size: clamp(3.2rem, 5.8vw, 7.2rem);
}

.case-preview-heading > p {
  max-width: 610px;
  padding-bottom: 8px;
  color: #afb4b5;
  font-size: 1.08rem;
  line-height: 1.7;
}

.case-card-grid,
.case-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: var(--page);
  margin: 0 auto;
}

.case-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 470px;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.case-card figure {
  overflow: hidden;
  background: #262a2b;
}

.case-card img {
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.case-card:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.03);
}

.case-card-copy {
  display: flex;
  flex-direction: column;
  padding: 34px;
}

.case-card-copy > p:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--yellow);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.case-card-copy h3,
.case-card-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
}

.case-card-copy > p:not(:first-child) {
  color: #b4b9ba;
  font-size: 0.9rem;
  line-height: 1.65;
}

.card-link {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--line-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-link i {
  font-size: 1rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.case-card:hover .card-link i {
  transform: translate(3px, -3px);
}

.case-preview > .button {
  margin: 44px 4vw 0;
}

@media (min-width: 1588px) {
  .case-preview > .button {
    margin-left: calc((100vw - 1460px) / 2);
  }
}

.portfolio-reel-section {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  min-height: 780px;
  background: var(--paper-deep);
  color: var(--black);
}

.portfolio-reel-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 135px) 4vw;
}

.portfolio-reel-copy .eyebrow {
  margin-bottom: 32px;
  color: var(--black);
}

.portfolio-reel-copy h2 {
  font-size: clamp(3rem, 5.2vw, 6.4rem);
}

.portfolio-reel-copy > p:last-child {
  max-width: 500px;
  margin-top: 32px;
  color: #54595a;
  font-size: 1rem;
  line-height: 1.7;
}

.portfolio-reel {
  min-height: 680px;
}

.services-intro {
  margin-bottom: clamp(58px, 7vw, 95px);
}

.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: var(--page);
  margin: 0 auto;
}

.utility-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  color: var(--white);
}

.utility-card > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1), filter 300ms ease;
}

.utility-card:hover > img {
  transform: scale(1.035);
  filter: saturate(0.95) contrast(1.05);
}

.utility-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 10, 0.08) 30%, rgba(7, 9, 10, 0.9) 100%);
}

.utility-card > div {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  left: 30px;
}

.utility-card p {
  margin-bottom: 16px;
  color: #d1d4d4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-card h3 {
  margin-bottom: 32px;
  font-size: clamp(3.6rem, 5vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.utility-card > div > span {
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-story {
  padding: clamp(90px, 10vw, 165px) 0;
  background: var(--ink);
}

.delivery-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 6vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(58px, 7vw, 100px);
}

.delivery-heading .eyebrow {
  align-self: start;
}

.delivery-heading h2 {
  max-width: 930px;
  font-size: clamp(3.2rem, 5.8vw, 7rem);
}

.delivery-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: 2px solid var(--yellow);
}

.delivery-flow article {
  min-height: 255px;
  padding: 30px 30px 34px 0;
  border-right: 1px solid var(--line-light);
}

.delivery-flow article + article {
  padding-left: 30px;
}

.delivery-flow article:last-child {
  border-right: 0;
}

.delivery-flow h3 {
  margin-bottom: 24px;
  font-size: 1.18rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.delivery-flow p {
  color: #aab0b1;
  font-size: 0.93rem;
  line-height: 1.65;
}

.home-contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8vw;
  padding: clamp(90px, 10vw, 165px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--yellow);
  color: var(--black);
}

.home-contact .eyebrow {
  margin-bottom: 30px;
  color: var(--black);
}

.home-contact h2 {
  max-width: 950px;
  font-size: clamp(3.4rem, 6.3vw, 7.5rem);
}

.home-contact .button {
  margin-top: 42px;
}

.home-contact-details {
  align-self: end;
  border-top: 2px solid var(--black);
}

.home-contact-details article,
.home-contact-details address {
  padding: 24px 0;
  border-bottom: 1px solid rgba(7, 9, 10, 0.3);
}

.home-contact-details article > p,
.home-contact-details address {
  font-size: 1.05rem;
  font-weight: 850;
}

.home-contact-details a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 650;
}

.home-contact-details a:hover {
  text-decoration: underline;
}

.home-contact-details address {
  font-style: normal;
  line-height: 1.55;
}

/* Shared footer */
.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.8fr;
  gap: 6vw;
  align-items: start;
  padding: 58px 4vw;
  border-top: 1px solid var(--line-light);
  background: var(--black);
}

.footer-brand {
  display: flex;
  gap: 22px;
  align-items: center;
}

.footer-brand .brand img {
  width: 60px;
  height: 60px;
}

.footer-brand > p {
  max-width: 430px;
  color: #aeb3b4;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  line-height: 1.55;
  text-transform: uppercase;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 9px;
}

.site-footer nav a,
.footer-contact a {
  width: max-content;
  max-width: 100%;
  color: #c8cbcc;
  font-size: 0.78rem;
  font-weight: 750;
}

.site-footer nav a:hover,
.footer-contact a:hover {
  color: var(--yellow);
}

.footer-contact small {
  margin-top: 20px;
  color: #717778;
  font-size: 0.68rem;
}

/* Detailed service pages */
.service-page {
  --service-accent: var(--yellow);
  background: var(--paper);
  color: var(--black);
}

.service-hero {
  display: grid;
  grid-template-columns: minmax(450px, 0.82fr) 1.18fr;
  min-height: calc(100svh - 82px);
  background: var(--black);
  color: var(--paper);
}

.service-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(78px, 8vw, 145px) 4vw;
}

.service-hero-copy .eyebrow {
  color: var(--service-accent);
}

.service-hero h1 {
  margin: 26px 0 30px;
  font-size: clamp(5rem, 9vw, 11rem);
}

.service-hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: #c4c8c9;
  font-size: clamp(1.08rem, 1.45vw, 1.34rem);
  line-height: 1.65;
}

.service-button {
  background: var(--service-accent);
  color: var(--black);
}

.service-button:hover {
  background: var(--white);
}

.service-reel {
  min-height: 680px;
}

.service-statement {
  padding: clamp(45px, 6vw, 86px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--service-accent);
  color: var(--black);
}

.service-statement p {
  max-width: 1350px;
  font-size: clamp(2.6rem, 5.6vw, 6.6rem);
}

.service-overview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9vw;
  align-items: start;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 165px) 0;
}

.service-overview .eyebrow,
.capability-heading .eyebrow,
.integration-heading .eyebrow,
.service-case-heading .eyebrow,
.handover-copy .eyebrow,
.faq-heading .eyebrow {
  margin-bottom: 30px;
  color: currentColor;
}

.service-overview h2,
.capability-heading h2,
.integration-heading h2,
.service-case-heading h2,
.handover-copy h2,
.faq-heading h2 {
  font-size: clamp(3rem, 5.3vw, 6.4rem);
}

.service-overview-copy {
  max-width: 690px;
  padding-top: 48px;
}

.service-overview-copy p {
  color: #3f4445;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}

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

.capability-section {
  padding: clamp(90px, 10vw, 165px) 0;
  background: var(--black);
  color: var(--paper);
}

.capability-heading {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 7vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(55px, 7vw, 95px);
}

.capability-heading .eyebrow {
  grid-column: 1 / -1;
  color: var(--service-accent);
}

.capability-heading > p:last-child {
  max-width: 550px;
  padding-bottom: 5px;
  color: #a9aeaf;
  line-height: 1.7;
}

.service-capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: var(--page);
  margin: 0 auto;
  border-top: 2px solid var(--service-accent);
}

.service-capability-grid article {
  min-height: 390px;
  padding: 38px 45px 42px 0;
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.service-capability-grid article:nth-child(even) {
  padding-right: 0;
  padding-left: 45px;
  border-right: 0;
}

.service-capability-grid h3 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 2.3vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.service-capability-grid article > p {
  max-width: 610px;
  color: #acb1b2;
  line-height: 1.65;
}

.service-capability-grid ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.service-capability-grid li {
  position: relative;
  padding: 12px 0 12px 16px;
  border-bottom: 1px solid var(--line-light);
  color: #d1d4d5;
  font-size: 0.86rem;
  line-height: 1.45;
}

.service-capability-grid li::before {
  position: absolute;
  top: 19px;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--service-accent);
  content: "";
}

.integration-section {
  padding: clamp(90px, 10vw, 165px) 0;
  background: var(--paper-deep);
}

.integration-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 8vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(55px, 7vw, 95px);
}

.integration-heading .eyebrow {
  align-self: start;
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--page);
  margin: 0 auto;
  border-top: 2px solid var(--black);
}

.integration-grid article {
  min-height: 270px;
  padding: 32px 34px 38px 0;
  border-right: 1px solid var(--line-dark);
}

.integration-grid article + article {
  padding-left: 34px;
}

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

.integration-grid h3 {
  margin-bottom: 22px;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.integration-grid p {
  color: #555a5b;
  font-size: 0.94rem;
  line-height: 1.7;
}

.service-case-heading {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 7vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto clamp(55px, 7vw, 95px);
}

.service-case-heading .eyebrow {
  grid-column: 1 / -1;
  color: var(--yellow);
}

.service-case-heading .inline-link {
  justify-self: start;
  margin-bottom: 8px;
}

.case-card-grid.compact {
  grid-template-columns: repeat(4, 1fr);
}

.case-card-grid.compact .case-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
}

.case-card-grid.compact .case-card figure {
  height: 300px;
}

.case-card-grid.compact .case-card-copy {
  flex: 1;
  padding: 24px;
}

.case-card-grid.compact .case-card-copy h3 {
  font-size: 1.75rem;
}

.handover-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 760px;
  background: var(--paper);
}

.handover-image {
  min-height: 620px;
  overflow: hidden;
}

.handover-image img {
  height: 100%;
  object-fit: cover;
}

.handover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(65px, 8vw, 125px);
}

.handover-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 30px;
  color: #505657;
  line-height: 1.7;
}

.handover-copy ul {
  margin-top: 32px;
  border-top: 2px solid var(--black);
  list-style: none;
}

.handover-copy li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9rem;
  font-weight: 750;
}

.faq-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 165px) 0;
}

.faq-list {
  border-top: 2px solid var(--black);
}

.faq-list details {
  border-bottom: 1px solid var(--line-dark);
}

.faq-list summary {
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 850;
  list-style: none;
}

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

.faq-list summary span {
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 500;
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details > p {
  max-width: 700px;
  padding: 0 54px 28px 0;
  color: #505657;
  line-height: 1.72;
}

.service-cta {
  padding: clamp(80px, 9vw, 145px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--service-accent, var(--yellow));
  color: var(--black);
}

.service-cta > p {
  margin-bottom: 26px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.service-cta h2 {
  font-size: clamp(3.7rem, 7vw, 8.2rem);
}

.service-cta > div {
  display: flex;
  gap: 38px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 2px solid var(--black);
}

.service-cta a {
  font-size: 0.9rem;
  font-weight: 850;
}

/* Case studies */
.case-index,
.case-detail {
  background: var(--paper);
  color: var(--black);
}

.case-index-hero,
.case-detail-hero {
  display: grid;
  grid-template-columns: minmax(470px, 0.85fr) 1.15fr;
  min-height: calc(100svh - 82px);
  background: var(--black);
  color: var(--paper);
}

.case-index-hero > div:first-child,
.case-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(75px, 8vw, 145px) 4vw;
}

.case-index h1,
.case-detail h1 {
  margin: 28px 0 30px;
  font-size: clamp(4.6rem, 8.4vw, 10rem);
}

.case-index-hero > div:first-child > p:last-child,
.case-summary {
  max-width: 660px;
  color: #c1c5c6;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.68;
}

.case-index-reel,
.case-detail-reel {
  min-height: 690px;
}

.case-index-intro {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 8vw;
  align-items: end;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 155px) 0;
}

.case-index-intro .eyebrow {
  grid-column: 1 / -1;
  color: var(--black);
}

.case-index-intro h2 {
  font-size: clamp(3.2rem, 5.7vw, 6.9rem);
}

.case-index-intro > p:last-child {
  color: #4e5354;
  font-size: 1.08rem;
  line-height: 1.7;
}

.case-index-grid {
  padding-bottom: clamp(90px, 10vw, 155px);
}

.case-index-grid .case-card {
  background: var(--white);
  color: var(--black);
}

.case-index-grid .case-card-copy > p:first-child {
  color: #626869;
}

.case-index-grid .case-card-copy > p:not(:first-child) {
  color: #555a5b;
}

.case-index-grid .case-card-copy ul {
  margin: 26px 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.case-index-grid .case-card-copy li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.76rem;
  font-weight: 750;
}

.case-index-grid .card-link {
  border-color: var(--line-dark);
}

.case-index-cta {
  padding: clamp(85px, 9vw, 145px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--ink);
  color: var(--white);
}

.case-index-cta .eyebrow {
  margin-bottom: 28px;
}

.case-index-cta h2 {
  max-width: 1100px;
  font-size: clamp(3.4rem, 6.5vw, 7.8rem);
}

.case-index-cta .button {
  margin-top: 42px;
}

.back-link {
  align-self: flex-start;
  margin-bottom: 60px;
  color: #aab0b1;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--yellow);
}

.case-detail h1 {
  margin-bottom: 14px;
}

.case-location {
  margin-bottom: 30px;
  color: var(--yellow);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--yellow);
}

.case-facts p {
  display: flex;
  min-height: 125px;
  align-items: center;
  padding: 24px 4vw;
  border-right: 1px solid rgba(7, 9, 10, 0.28);
  font-size: clamp(1.05rem, 1.55vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.case-facts p:last-child {
  border-right: 0;
}

.case-narrative {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 165px) 0;
}

.case-narrative-heading {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7vw;
  align-items: end;
  margin-bottom: clamp(55px, 7vw, 95px);
}

.case-narrative-heading .eyebrow {
  align-self: start;
  color: var(--black);
}

.case-narrative h2,
.case-delivered h2 {
  font-size: clamp(3.2rem, 5.7vw, 6.8rem);
}

.case-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--black);
}

.case-story-grid article {
  min-height: 310px;
  padding: 34px 55px 38px 0;
  border-right: 1px solid var(--line-dark);
}

.case-story-grid article + article {
  padding-right: 0;
  padding-left: 55px;
  border-right: 0;
}

.case-story-grid h3 {
  margin-bottom: 26px;
  font-size: 1.3rem;
  font-weight: 900;
}

.case-story-grid p {
  color: #4e5455;
  font-size: 1rem;
  line-height: 1.75;
}

.case-delivered {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9vw;
  padding: clamp(90px, 10vw, 165px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--ink);
  color: var(--white);
}

.case-delivered .eyebrow {
  margin-bottom: 28px;
}

.case-delivered ul {
  align-self: center;
  border-top: 2px solid var(--yellow);
  list-style: none;
}

.case-delivered li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line-light);
  color: #d0d4d4;
  font-size: 0.94rem;
  font-weight: 750;
}

.case-outcome {
  padding: clamp(80px, 9vw, 140px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--yellow);
}

.case-outcome .eyebrow {
  margin-bottom: 34px;
  color: var(--black);
}

.case-outcome blockquote {
  max-width: 1260px;
  font-size: clamp(2.7rem, 5.2vw, 6.2rem);
}

.next-case {
  padding: clamp(75px, 8vw, 125px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--paper-deep);
}

.next-case > p {
  margin-bottom: 32px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.next-case > a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding-top: 26px;
  border-top: 2px solid var(--black);
}

.next-case span {
  grid-column: 1 / -1;
  color: #5f6565;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-case strong {
  font-size: clamp(3.2rem, 6.3vw, 7.3rem);
}

.next-case i {
  padding-bottom: 10px;
  font-size: 2rem;
  font-style: normal;
  transition: transform 180ms ease;
}

.next-case a:hover i {
  transform: translateX(8px);
}

.case-cta {
  --service-accent: var(--yellow);
}

/* Contact */
.contact-page {
  background: var(--paper);
  color: var(--black);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(470px, 0.86fr) 1.14fr;
  min-height: calc(100svh - 82px);
  background: var(--yellow);
}

.contact-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(75px, 8vw, 145px) 4vw;
}

.contact-hero-copy .eyebrow {
  color: var(--black);
}

.contact-page h1 {
  margin: 28px 0 30px;
  font-size: clamp(5rem, 8.7vw, 10.5rem);
}

.contact-hero-copy > p:last-child {
  max-width: 640px;
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  line-height: 1.68;
}

.contact-reel {
  min-height: 680px;
}

.contact-body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8vw;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(90px, 10vw, 165px) 0;
}

.contact-form-heading .eyebrow {
  margin-bottom: 28px;
  color: var(--black);
}

.contact-form-heading h2 {
  font-size: clamp(3.2rem, 5.5vw, 6.7rem);
}

.contact-form-heading > p:last-child {
  max-width: 520px;
  margin-top: 28px;
  color: #515657;
  line-height: 1.68;
}

.contact-form {
  border-top: 2px solid var(--black);
  padding-top: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

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

.contact-form label > span {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(7, 9, 10, 0.32);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--black);
}

.contact-form input,
.contact-form select {
  min-height: 54px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 180px;
  padding: 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 2px var(--yellow);
}

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

.contact-form .button {
  margin-top: 26px;
  cursor: pointer;
}

.form-note {
  margin-top: 14px;
  color: #6a7070;
  font-size: 0.76rem;
}

.direct-contact {
  display: grid;
  grid-template-columns: 1fr 1fr 0.85fr;
  padding: clamp(70px, 8vw, 120px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--ink);
  color: var(--white);
}

.direct-contact article {
  min-height: 250px;
  padding: 0 36px;
  border-right: 1px solid var(--line-light);
}

.direct-contact article:first-child {
  padding-left: 0;
}

.direct-contact article:last-child {
  border-right: 0;
}

.direct-contact article > span {
  display: block;
  margin-bottom: 58px;
  color: var(--yellow);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.direct-contact h2 {
  margin-bottom: 22px;
  font-size: clamp(2.4rem, 3.8vw, 4.6rem);
}

.direct-contact a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-top: 6px;
  overflow-wrap: anywhere;
  color: #d0d4d5;
  font-size: 0.9rem;
  font-weight: 750;
}

.direct-contact a:hover {
  color: var(--yellow);
}

.direct-contact address {
  font-style: normal;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.65;
}

/* Tablet */
@media (max-width: 1180px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .mobile-nav {
    position: relative;
    display: block;
  }

  .mobile-nav summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0 12px 20px;
    color: var(--yellow);
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    list-style: none;
    text-transform: uppercase;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary i,
  .mobile-nav summary i::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    content: "";
    transition: transform 180ms ease;
  }

  .mobile-nav summary i::after {
    transform: translateY(6px);
  }

  .mobile-nav[open] summary i {
    transform: rotate(45deg) translateY(3px);
  }

  .mobile-nav[open] summary i::after {
    transform: rotate(-90deg);
  }

  .mobile-nav nav {
    position: absolute;
    top: 48px;
    right: -4vw;
    display: grid;
    width: min(420px, 88vw);
    padding: 16px 4vw 24px;
    border-bottom: 4px solid var(--yellow);
    background: var(--ink);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
  }

  .mobile-nav nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
    font-size: 0.86rem;
    font-weight: 800;
  }

  .home-hero,
  .service-hero,
  .case-index-hero,
  .case-detail-hero,
  .contact-hero {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .capability-proof {
    grid-template-columns: 0.8fr 1fr 1fr;
  }

  .capability-proof .proof-note {
    grid-column: 1 / -1;
    min-height: 0;
    border-top: 1px solid rgba(7, 9, 10, 0.25);
  }

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

  .expertise-grid article:nth-child(n) {
    padding-right: 32px;
    padding-left: 0;
    border-right: 1px solid var(--line-dark);
  }

  .expertise-grid article:nth-child(even) {
    padding-right: 0;
    padding-left: 32px;
    border-right: 0;
  }

  .case-card {
    grid-template-columns: 1fr;
  }

  .case-card figure {
    min-height: 310px;
  }

  .case-card-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .utility-card {
    min-height: 520px;
  }

  .delivery-flow {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-flow article:nth-child(2) {
    border-right: 0;
  }

  .delivery-flow article:nth-child(3) {
    padding-left: 0;
    border-top: 1px solid var(--line-light);
  }

  .delivery-flow article:nth-child(4) {
    border-top: 1px solid var(--line-light);
  }

  .service-capability-grid ul {
    grid-template-columns: 1fr;
  }
}

/* Phones and small tablets */
@media (max-width: 780px) {
  :root {
    --page: calc(100vw - 40px);
  }

  html {
    scroll-padding-top: 70px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    min-height: 70px;
    padding: 0 20px;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .mobile-nav nav {
    right: -20px;
    width: 100vw;
    padding: 16px 20px 24px;
  }

  .home-hero,
  .service-hero,
  .case-index-hero,
  .case-detail-hero,
  .contact-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .home-hero-copy,
  .service-hero-copy,
  .case-index-hero > div:first-child,
  .case-detail-copy,
  .contact-hero-copy {
    min-height: 0;
    padding: 76px 20px 62px;
  }

  .home-hero h1,
  .service-hero h1,
  .case-index h1,
  .case-detail h1,
  .contact-page h1 {
    margin: 22px 0 25px;
    font-size: clamp(3.45rem, 16.5vw, 5.4rem);
    line-height: 0.95;
  }

  .hero-lead,
  .service-hero-copy > p:not(.eyebrow),
  .case-index-hero > div:first-child > p:last-child,
  .case-summary,
  .contact-hero-copy > p:last-child {
    font-size: 1.05rem;
    line-height: 1.63;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

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

  .hero-reel,
  .service-reel,
  .case-index-reel,
  .case-detail-reel,
  .contact-reel {
    min-height: 520px;
  }

  .reel-footer {
    right: 16px;
    bottom: 18px;
    left: 16px;
  }

  .reel-footer > p {
    max-width: 62%;
    font-size: 0.62rem;
  }

  .reel-controls button {
    width: 44px;
    height: 44px;
  }

  .capability-proof {
    grid-template-columns: 1fr 1fr;
  }

  .capability-proof > * {
    min-height: 126px;
    padding: 22px 20px;
  }

  .capability-proof > p:first-child,
  .capability-proof .proof-note {
    grid-column: 1 / -1;
    min-height: 0;
    border-right: 0;
  }

  .capability-proof > p:first-child {
    padding-bottom: 0;
  }

  .capability-proof > div:nth-of-type(2) {
    border-right: 0;
  }

  .capability-proof strong {
    font-size: clamp(2.1rem, 10.5vw, 3.3rem);
  }

  .home-electrical,
  .wider-services,
  .case-preview,
  .service-case-studies,
  .delivery-story {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .readable-intro,
  .case-preview-heading,
  .delivery-heading,
  .service-overview,
  .capability-heading,
  .integration-heading,
  .service-case-heading,
  .faq-section,
  .case-index-intro,
  .case-narrative-heading,
  .contact-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .readable-intro .eyebrow,
  .capability-heading .eyebrow,
  .service-case-heading .eyebrow,
  .case-index-intro .eyebrow {
    grid-column: auto;
  }

  .readable-intro,
  .case-preview-heading,
  .delivery-heading,
  .service-overview,
  .capability-heading,
  .integration-heading,
  .service-case-heading,
  .case-index-intro,
  .case-narrative-heading {
    margin-bottom: 52px;
  }

  .readable-intro h2,
  .case-preview-heading h2,
  .portfolio-reel-copy h2,
  .delivery-heading h2,
  .home-contact h2,
  .service-overview h2,
  .capability-heading h2,
  .integration-heading h2,
  .service-case-heading h2,
  .handover-copy h2,
  .faq-heading h2,
  .case-index-intro h2,
  .case-index-cta h2,
  .case-narrative h2,
  .case-delivered h2,
  .contact-page h2 {
    font-size: clamp(2.8rem, 13.5vw, 4.6rem);
    line-height: 0.98;
  }

  .intro-copy > p,
  .case-preview-heading > p,
  .service-overview-copy p,
  .case-index-intro > p:last-child {
    font-size: 1rem;
    line-height: 1.68;
  }

  .expertise-grid,
  .service-capability-grid,
  .integration-grid,
  .delivery-flow {
    grid-template-columns: 1fr;
  }

  .expertise-grid article:nth-child(n),
  .service-capability-grid article:nth-child(n),
  .integration-grid article:nth-child(n),
  .delivery-flow article:nth-child(n) {
    min-height: 0;
    padding: 28px 0 32px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .service-capability-grid article:nth-child(n),
  .delivery-flow article:nth-child(n) {
    border-color: var(--line-light);
  }

  .expertise-grid p,
  .integration-grid p,
  .delivery-flow p {
    max-width: 640px;
  }

  .case-card-grid,
  .case-index-grid,
  .case-card-grid.compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .case-card,
  .case-card-grid.compact .case-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .case-card figure,
  .case-card-grid.compact .case-card figure {
    height: 330px;
    min-height: 330px;
  }

  .case-card-copy {
    min-height: 360px;
    padding: 26px 24px;
  }

  .case-card-copy h3,
  .case-card-copy h2,
  .case-card-grid.compact .case-card-copy h3 {
    font-size: 2rem;
  }

  .case-preview > .button {
    width: calc(100vw - 40px);
    margin: 30px 20px 0;
  }

  .portfolio-reel-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .portfolio-reel-copy {
    padding: 76px 20px 54px;
  }

  .portfolio-reel {
    min-height: 520px;
  }

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

  .utility-card {
    min-height: 455px;
  }

  .utility-card > div {
    right: 22px;
    bottom: 24px;
    left: 22px;
  }

  .utility-card h3 {
    font-size: 4.2rem;
  }

  .delivery-flow {
    border-top-color: var(--yellow);
  }

  .home-contact {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 84px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 44px 20px;
  }

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

  .service-statement {
    padding: 42px 20px;
  }

  .service-statement p,
  .case-outcome blockquote {
    font-size: clamp(2.45rem, 12vw, 4rem);
    line-height: 0.98;
  }

  .service-overview,
  .faq-section,
  .case-index-intro,
  .case-narrative,
  .contact-body {
    padding-top: 84px;
    padding-bottom: 84px;
  }

  .service-overview-copy {
    padding-top: 0;
  }

  .capability-section,
  .integration-section {
    padding: 84px 0;
  }

  .service-capability-grid ul {
    margin-top: 24px;
  }

  .integration-grid {
    border-top-color: var(--black);
  }

  .handover-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .handover-image {
    min-height: 500px;
  }

  .handover-copy {
    padding: 76px 20px;
  }

  .faq-section {
    gap: 46px;
  }

  .faq-list summary {
    min-height: 74px;
    font-size: 0.96rem;
    line-height: 1.4;
  }

  .faq-list details > p {
    padding-right: 0;
  }

  .service-cta,
  .case-index-cta,
  .case-delivered,
  .case-outcome,
  .next-case {
    padding: 78px 20px;
  }

  .service-cta h2 {
    font-size: clamp(3.4rem, 15vw, 5.2rem);
  }

  .service-cta > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .case-index-grid {
    padding-bottom: 84px;
  }

  .case-facts {
    grid-template-columns: 1fr;
  }

  .case-facts p {
    min-height: 0;
    padding: 22px 20px;
    border-right: 0;
    border-bottom: 1px solid rgba(7, 9, 10, 0.28);
    font-size: 1.08rem;
  }

  .back-link {
    margin-bottom: 42px;
  }

  .case-story-grid {
    grid-template-columns: 1fr;
  }

  .case-story-grid article,
  .case-story-grid article + article {
    min-height: 0;
    padding: 30px 0 36px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .case-delivered {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .next-case > a {
    grid-template-columns: 1fr auto;
  }

  .next-case strong {
    font-size: clamp(2.8rem, 13vw, 4.5rem);
  }

  .contact-body {
    gap: 52px;
  }

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

  .form-wide {
    grid-column: auto;
  }

  .contact-form .button {
    width: 100%;
  }

  .direct-contact {
    grid-template-columns: 1fr;
    padding: 60px 20px;
  }

  .direct-contact article,
  .direct-contact article:first-child {
    min-height: 0;
    padding: 30px 0 38px;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .direct-contact article > span {
    margin-bottom: 25px;
  }
}

@media (max-width: 390px) {
  .home-hero h1,
  .service-hero h1,
  .case-index h1,
  .case-detail h1,
  .contact-page h1 {
    font-size: 3.15rem;
  }

  .button {
    gap: 18px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 0.66rem;
  }

  .reel-footer > p {
    display: none;
  }

  .reel-footer {
    justify-content: flex-end;
  }

  .case-card figure,
  .case-card-grid.compact .case-card figure {
    height: 285px;
    min-height: 285px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* WordPress integration */
.desktop-nav > ul {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 2.2vw, 42px);
  list-style: none;
}

.desktop-nav .current-menu-item > a::after,
.desktop-nav .current_page_item > a::after {
  transform: scaleX(1);
}

.mobile-nav-panel {
  display: contents;
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav-panel nav > ul {
  display: grid;
}

.mobile-contact-link {
  display: none;
}

.admin-bar .site-header {
  --tmrf-admin-offset: 32px;
}

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

.form-notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border-left: 4px solid var(--black);
  background: rgba(7, 9, 10, 0.07);
  color: var(--black);
  font-weight: 750;
}

.form-notice.success {
  border-left-color: #2b7a46;
}

.form-notice.error {
  border-left-color: #b53830;
}

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

.content-shell {
  min-height: 70svh;
  padding: clamp(80px, 10vw, 150px) max(4vw, calc((100vw - 1460px) / 2));
  background: var(--paper);
  color: var(--black);
}

.content-hero {
  max-width: 1000px;
  margin-bottom: 55px;
}

.content-hero .eyebrow {
  color: var(--black);
}

.content-hero h1 {
  margin-top: 26px;
  font-size: clamp(3.5rem, 7vw, 8rem);
}

.entry-content {
  max-width: 820px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.entry-content > * + * {
  margin-top: 1.5em;
}

.entry-content a {
  border-bottom: 2px solid var(--black);
}

.reel-data {
  display: none;
}

@media (max-width: 1180px) {
  body.tmrf-menu-open {
    overflow: hidden;
  }

  .site-header {
    z-index: 1000;
  }

  .mobile-nav summary {
    position: relative;
    z-index: 1003;
    min-width: 84px;
    min-height: 48px;
    justify-content: flex-end;
  }

  .mobile-nav[open]::before {
    position: fixed;
    z-index: 1001;
    top: calc(var(--tmrf-header-height) + var(--tmrf-admin-offset));
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.58);
    content: "";
    backdrop-filter: blur(4px);
  }

  .mobile-nav-panel {
    position: fixed;
    z-index: 1002;
    top: calc(var(--tmrf-header-height) + var(--tmrf-admin-offset));
    right: 0;
    display: grid;
    width: min(520px, 100vw);
    max-height: calc(100vh - var(--tmrf-header-height) - var(--tmrf-admin-offset));
    max-height: calc(100dvh - var(--tmrf-header-height) - var(--tmrf-admin-offset));
    padding: 18px max(28px, 4vw) 30px;
    overflow-y: auto;
    border-bottom: 4px solid var(--yellow);
    background: var(--ink);
    box-shadow: -24px 28px 60px rgba(0, 0, 0, 0.5);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav .mobile-nav-panel nav {
    position: static;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .mobile-nav .mobile-nav-panel nav a,
  .mobile-contact-link {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
    color: var(--white);
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .mobile-contact-link {
    color: var(--yellow);
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    --tmrf-admin-offset: 46px;
  }
}

@media (max-width: 780px) {
  .site-header {
    --tmrf-header-height: 70px;
  }

  .mobile-nav-panel {
    width: 100vw;
    padding: 14px 20px 26px;
  }
}
