/* ==========================================================================
   Correlect Engineering Pvt. Ltd. — stylesheet
   Typeface: Segoe UI across the whole site, per brand requirement.
   ========================================================================== */

:root {
  /* Brand — deep industrial navy with the gold from the CEPL mark. */
  --navy-900: #071626;
  --navy-800: #0b1f33;
  --navy-700: #123151;
  --navy-600: #1b4a7a;
  --blue-500: #1f7ac0;
  --blue-400: #3d9ae0;

  --gold-600: #b8912f;
  --gold-500: #d4af37;
  --gold-400: #e6c760;

  --green-500: #17a06a;
  --red-500:   #c9392b;

  --ink-900: #0e1a26;
  --ink-700: #34475a;
  --ink-500: #5d7183;
  --ink-300: #93a4b3;

  --surface:     #ffffff;
  --surface-alt: #f4f7fa;
  --surface-3:   #e8eef4;
  --line:        #dfe7ee;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(7, 22, 38, .06), 0 2px 8px rgba(7, 22, 38, .05);
  --shadow:    0 4px 14px rgba(7, 22, 38, .09), 0 12px 32px rgba(7, 22, 38, .07);
  --shadow-lg: 0 18px 48px rgba(7, 22, 38, .16);

  /* Signature gradients used for accents and section framing. */
  --grad-gold: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  --grad-navy: linear-gradient(140deg, var(--navy-800) 0%, var(--navy-700) 55%, var(--navy-600) 100%);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --header-h: 128px;

  --font: "Segoe UI", "Segoe UI Web (West European)", -apple-system,
          BlinkMacSystemFont, "Helvetica Neue", Tahoma, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------------------------------------------ Reset */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { color: var(--navy-600); }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--navy-800);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); }
h4 { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); }

p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }

:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff;
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--sm { width: 1em; height: 1em; }

/* ---------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.7em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  text-align: center;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
}
.btn--sm { padding: .6em 1.25em; font-size: .875rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(184, 145, 47, .34);
}
.btn--primary:hover {
  color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(184, 145, 47, .42);
}

.btn--ghost {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: #fff; transform: translateY(-2px);
}

.btn--outline {
  background: transparent; color: var(--navy-700); border-color: var(--line);
}
.btn--outline:hover {
  background: var(--navy-800); color: #fff; border-color: var(--navy-800);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------- Header */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-800);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(7, 22, 38, .35); }

/* Gold utility bar above the dark navigation. */
.topbar {
  background: var(--grad-gold);
  color: var(--navy-900);
  font-size: .85rem;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar__link {
  display: inline-flex; align-items: center; gap: .5em;
  color: var(--navy-900); font-weight: 600;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.topbar__link:hover { color: var(--navy-900); opacity: .68; }
.topbar__tagline {
  margin: 0; color: var(--navy-900);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  font-size: .74rem; opacity: .82;
}

/* Dark navigation bar, subtly lighter than the gold rule above it. */
.navbar {
  background: var(--navy-800);
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 86px;
}
/* The bar is dark now, so the gold mark needs no plate behind it. */
.brand { display: block; }
.brand img { width: clamp(160px, 18vw, 210px); height: auto; }

.nav__list {
  display: flex; align-items: center; gap: .35rem;
  list-style: none; margin: 0; padding: 0;
}
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .7rem .95rem;
  color: #d7e4ef;
  font-weight: 600; font-size: .9rem;
  letter-spacing: .03em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--gold-400); }

.nav__link.is-active::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}

.nav__caret {
  width: 7px; height: 7px; margin-left: .1em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.nav__expander { display: none; }

.nav__sub {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 232px; padding: .5rem;
  list-style: none; margin: 0;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(7, 22, 38, .45);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item.has-children:hover > .nav__sub,
.nav__item.has-children:focus-within > .nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sub li { margin: 0; }
.nav__sub a {
  display: block; padding: .6rem .85rem;
  color: #c3d4e2; font-size: .9rem; font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.nav__sub a:hover, .nav__sub a.is-active {
  background: rgba(255, 255, 255, .08); color: var(--gold-400);
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px; padding: 11px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--gold-400);
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.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); }

.nav-scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(7, 22, 38, .5);
  backdrop-filter: blur(2px);
}

/* -------------------------------------------------------------- Home hero */

.hero {
  position: relative;
  color: #fff;
  background: var(--navy-900);
  overflow: hidden;
}

.hero__slides { display: grid; }

/* All slides stack in one grid cell; only the active one is visible. */
.hero__slide { grid-area: 1 / 1; position: relative; }

/* ---- Artwork-led slides -------------------------------------------- */
/* The slide artwork is a finished banner carrying its own headline, so it is
   shown WHOLE at its natural aspect rather than cropped, with our caption in
   a band underneath. Nothing overlaps the artwork. */
.hero--slider .hero__art {
  display: block;
  width: 100%; height: auto;
  background: var(--navy-900);
}

.hero--slider .hero__inner {
  max-width: none;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0 clamp(1.5rem, 3vw, 2rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.hero--slider .hero__copy { min-width: 0; flex: 1 1 460px; }

/* The eyebrow is an inline pill, so it must not stretch in a flex column. */
.hero--slider .hero__eyebrow { margin-bottom: .6rem; }
.hero--slider .hero__title {
  margin-bottom: .3em;
  font-size: clamp(1.3rem, 1.05rem + 1.05vw, 1.85rem);
}
.hero--slider .hero__text {
  margin-bottom: 0;
  max-width: 62ch;
  font-size: clamp(.93rem, .9rem + .16vw, 1rem);
}
.hero--slider .hero__actions { flex: 0 0 auto; }

/* Light outline button for use on the dark caption band. */
.btn--outline-light {
  background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45);
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff;
  transform: translateY(-2px);
}

/* ---- Single static slide (no artwork banner): classic overlay hero -- */
.hero:not(.hero--slider) .hero__slide {
  display: grid; align-items: center;
  min-height: clamp(520px, 78vh, 760px);
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.hero:not(.hero--slider) .hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 18s ease-in-out infinite alternate;
}
.hero:not(.hero--slider) .hero__slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg,
              rgba(7, 22, 38, .93) 0%,
              rgba(11, 31, 51, .84) 45%,
              rgba(11, 31, 51, .55) 100%);
}
.hero:not(.hero--slider) .hero__inner { max-width: 760px; }

.hero__inner { position: relative; z-index: 2; }

@keyframes heroZoom { to { transform: scale(1); } }

/* ---- Slider mode ------------------------------------------------- */
/* Without JS every slide is visible and stacks vertically, so the content
   is never hidden. The `is-enhanced` class (added by JS) switches to the
   overlapping, one-at-a-time presentation. */
.hero--slider:not(.is-enhanced) .hero__slides { display: block; }

.hero--slider.is-enhanced .hero__slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--ease), visibility .8s;
}
.hero--slider.is-enhanced .hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* The artwork is shown whole, so it is not panned — only the caption moves. */

/* Content lifts in behind the image. */
.hero--slider.is-enhanced .hero__slide.is-active .hero__eyebrow,
.hero--slider.is-enhanced .hero__slide.is-active .hero__title,
.hero--slider.is-enhanced .hero__slide.is-active .hero__text,
.hero--slider.is-enhanced .hero__slide.is-active .hero__actions {
  animation: heroRise .8s var(--ease) backwards;
}
.hero--slider.is-enhanced .hero__slide.is-active .hero__eyebrow { animation-delay: .10s; }
.hero--slider.is-enhanced .hero__slide.is-active .hero__title   { animation-delay: .20s; }
.hero--slider.is-enhanced .hero__slide.is-active .hero__text    { animation-delay: .30s; }
.hero--slider.is-enhanced .hero__slide.is-active .hero__actions { animation-delay: .40s; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

/* Arrows */
/* Arrows sit vertically centred on the artwork. The banner is ~3.1:1 and
   spans the full viewport width, so half its height is ~16vw. */
.hero--slider .hero__nav { top: 16vw; }

.hero__nav {
  position: absolute; top: 50%; z-index: 5;
  display: none; place-items: center;
  width: 48px; height: 48px; padding: 12px;
  color: #fff;
  background: rgba(7, 22, 38, .55);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .22s var(--ease), border-color .22s var(--ease),
              transform .22s var(--ease);
}
.hero--slider.is-enhanced .hero__nav { display: grid; }
.hero__nav:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
}
.hero__nav--prev { left: clamp(.5rem, 2vw, 1.75rem); }
.hero__nav--next { right: clamp(.5rem, 2vw, 1.75rem); }
.hero__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.hero__nav--next:hover { transform: translateY(-50%) translateX(3px); }
.hero__nav svg { width: 100%; height: 100%; }

/* Dots with an autoplay progress fill */
.hero__dots {
  position: absolute; z-index: 5;
  left: 50%; bottom: clamp(1.1rem, 3vw, 2rem);
  display: none; gap: .6rem;
  transform: translateX(-50%);
}
.hero--slider.is-enhanced .hero__dots { display: flex; }

/* On artwork-led slides the dots sit in the dark caption band, where they
   stay legible against the light artwork above. */
.hero--slider .hero__dots { bottom: clamp(.6rem, 1.4vw, 1rem); }

.hero__dot {
  position: relative;
  width: 34px; height: 5px; padding: 0;
  background: rgba(255, 255, 255, .32);
  border: 0; border-radius: 999px;
  cursor: pointer; overflow: hidden;
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.hero__dot:hover { background: rgba(255, 255, 255, .55); }
.hero__dot.is-active { width: 54px; background: rgba(255, 255, 255, .3); }

.hero__dot-fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0; background: var(--gold-500); border-radius: 999px;
}
.hero__dot.is-active .hero__dot-fill { width: 100%; }
/* The fill animates only while autoplay is actually running. */
.hero--slider.is-playing .hero__dot.is-active .hero__dot-fill {
  animation: dotFill var(--slide-ms, 6500ms) linear forwards;
}
@keyframes dotFill { from { width: 0; } to { width: 100%; } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  margin-bottom: 1.25rem; padding: .45em 1.1em;
  background: rgba(212, 175, 55, .14);
  border: 1px solid rgba(212, 175, 55, .38);
  border-radius: 999px;
  color: var(--gold-400);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero__title { color: #fff; margin-bottom: .5em; }
.hero__title em { font-style: normal; color: var(--gold-400); }
.hero__text {
  max-width: 60ch; margin-bottom: 2rem;
  color: #d3e0ec; font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* --------------------------------------------------------------- Sections */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--surface-alt); }
.section--navy { background: var(--navy-800); color: #c9d8e6; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: flex; align-items: center; gap: .5em;
  margin-bottom: .75rem;
  color: var(--gold-600);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.section-head--center .eyebrow { justify-content: center; }
.section--navy .eyebrow { color: var(--gold-400); }

.section-head p { margin-bottom: 0; color: var(--ink-500); font-size: 1.05rem; }
.section--navy .section-head p { color: #a9c0d3; }

/* ------------------------------------------------------------------ Stats */

.stats {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { padding: clamp(1.5rem, 3vw, 2.25rem) 1rem; text-align: center; background: #fff; }
.stat__value {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  font-weight: 700; line-height: 1;
  color: var(--navy-700);
  letter-spacing: -.03em;
}
.stat__label {
  margin: .6rem 0 0; font-size: .86rem; color: var(--ink-500);
  letter-spacing: .02em;
}

/* --------------------------------------------------------------- Services */

.grid { display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }

.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.card__title { margin-bottom: .55rem; font-size: 1.12rem; }
.card__text { margin-bottom: 1rem; color: var(--ink-500); font-size: .94rem; }
.card__link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--gold-600); font-weight: 600; font-size: .9rem;
}
.card__link:hover { color: var(--navy-700); gap: .75em; }
.card__link .icon { transition: transform .25s var(--ease); }

.card__icon {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(31, 122, 192, .14));
  border-radius: 16px;
  color: var(--gold-600);
}
.card__icon .icon { width: 26px; height: 26px; }

/* --------------------------------------------------- Service detail block */

.service-block {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.service-block:last-child { border-bottom: 0; }
.service-block:nth-child(even) .service-block__media { order: -1; }

.service-block__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.service-block__media img { width: 100%; height: 100%; object-fit: cover; }

.service-block__lead {
  font-size: 1.08rem; color: var(--navy-700); font-weight: 500;
}

.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 1.9rem; margin-bottom: .55em;
  font-size: .95rem;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 18px; height: 18px;
  background: rgba(23, 160, 106, .13);
  border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: .72em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}

.subgroup { margin-top: 2rem; }
.subgroup h4 {
  padding-bottom: .5rem; margin-bottom: .8rem;
  border-bottom: 2px solid var(--gold-500);
  display: inline-block;
}

/* --------------------------------------------------------------- Accordion */

.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }

.acc__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.15rem clamp(1rem, 2.5vw, 1.6rem);
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1rem;
  color: var(--navy-800); text-align: left;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.acc__trigger:hover { background: var(--surface-alt); }
.acc__trigger[aria-expanded="true"] { color: var(--gold-600); }

.acc__sign { position: relative; width: 18px; height: 18px; flex: none; }
.acc__sign::before, .acc__sign::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .28s var(--ease);
}
.acc__sign::after { transform: rotate(90deg); }
.acc__trigger[aria-expanded="true"] .acc__sign::after { transform: rotate(0); }

.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  margin: 0; padding: 0 clamp(1rem, 2.5vw, 1.6rem) 1.35rem;
  color: var(--ink-500); font-size: .96rem;
}

/* -------------------------------------------------------------- Projects */

.project-card {
  display: flex; flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.project-card__logo {
  display: grid; place-items: center;
  height: 74px; margin-bottom: 1.1rem; padding: .5rem;
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
}
.project-card__logo img { max-height: 58px; width: auto; object-fit: contain; }

.project-card__client {
  display: inline-block; margin-bottom: .6rem; padding: .25em .8em;
  background: rgba(31, 122, 192, .1);
  border-radius: 999px;
  color: var(--navy-600);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.project-card__title { margin-bottom: .5rem; font-size: 1.02rem; line-height: 1.4; }
.project-card__scope { margin: 0; color: var(--ink-500); font-size: .9rem; }

/* ---------------------------------------------------------- Client strip */

.marquee {
  position: relative;
  overflow: hidden;
  padding: .5rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; gap: 1.25rem; width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee__item {
  display: grid; place-items: center;
  width: 168px; height: 104px; padding: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  flex: none;
}
.marquee__item img {
  max-height: 100%; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.marquee__item:hover img { filter: none; opacity: 1; }

/* ----------------------------------------------------------- Testimonials */

.quote-card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.15rem);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}
.quote-card__mark { color: var(--gold-400); width: 30px; height: 30px; margin-bottom: 1rem; }
.quote-card__text { flex: 1; margin-bottom: 1.35rem; color: #d5e2ee; font-size: 1rem; }
.quote-card__name { margin: 0; color: #fff; font-weight: 600; }
.quote-card__role { margin: 0; color: var(--gold-400); font-size: .85rem; }

/* ------------------------------------------------------------- Page hero */

.page-hero {
  position: relative;
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.75rem, 7vw, 4.5rem);
  background: var(--hero-img) center/cover no-repeat, var(--navy-900);
  color: #fff;
  isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(7, 22, 38, .93), rgba(11, 31, 51, .72));
}
.page-hero__inner { position: relative; }
.page-hero__title { color: #fff; margin-bottom: .35em; }
.page-hero__sub { margin: 0; max-width: 62ch; color: #cadaea; font-size: 1.08rem; }

.crumbs { margin-bottom: 1.1rem; font-size: .85rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.crumbs li { margin: 0; color: #9fb8cd; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #63809a; }
.crumbs a { color: var(--gold-400); }
.crumbs a:hover { color: #fff; }

/* -------------------------------------------------------------- CTA band */

.cta-band {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
}
.cta-band__title { color: #fff; margin-bottom: .35em; }
.cta-band__text { margin: 0; color: #c6d7e6; max-width: 58ch; }
.cta-band__actions { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------- Forms */

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, 1fr); }
.field--full { grid-column: 1 / -1; }

.field label {
  display: block; margin-bottom: .45rem;
  color: var(--navy-800); font-weight: 600; font-size: .88rem;
}
.field .req { color: var(--red-500); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit; font-size: .95rem; color: var(--ink-900);
  background: var(--surface-alt);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .2s var(--ease), background-color .2s var(--ease),
              box-shadow .2s var(--ease);
}
.field textarea { min-height: 148px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(31, 122, 192, .13);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--red-500); }

.field__error { display: block; margin-top: .35rem; color: var(--red-500); font-size: .82rem; }

.field--file input[type="file"] {
  padding: .65rem; background: var(--surface-alt); cursor: pointer;
}
.field__hint { display: block; margin-top: .4rem; color: var(--ink-300); font-size: .8rem; }

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

.alert {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.15rem; margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  border-left: 4px solid;
  font-size: .95rem;
}
.alert--ok  { background: rgba(23, 160, 106, .1);  border-color: var(--green-500); color: #0d6b47; }
.alert--err { background: rgba(201, 57, 43, .09); border-color: var(--red-500);   color: #8f2418; }
.alert p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------- Contact details */

.info-card {
  display: flex; gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.6rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: linear-gradient(135deg, rgba(212, 175, 55, .18), rgba(31, 122, 192, .14));
  border-radius: 12px; color: var(--gold-600);
}
.info-card h3 { margin-bottom: .3rem; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); }
.info-card p  { margin: 0; color: var(--navy-800); font-weight: 500; font-size: .96rem; }
.info-card a  { color: var(--navy-800); }
.info-card a:hover { color: var(--gold-600); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  line-height: 0;
}
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* ---------------------------------------------------------------- Gallery */

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(4, 1fr); }
.gallery figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4 / 3;
  background: var(--surface-3);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.6rem .9rem .8rem;
  background: linear-gradient(transparent, rgba(7, 22, 38, .88));
  color: #fff; font-size: .84rem; font-weight: 500;
}

/* ----------------------------------------------------------------- Footer */

.site-footer { background: var(--navy-900); color: #9fb4c7; font-size: .94rem; }

.footer__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: 1.6fr 1fr 1.3fr 1.5fr;
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
/* Gold-on-transparent reads cleanly against the navy footer — no plate needed. */
.footer__logo { width: 210px; height: auto; margin-bottom: 1.15rem; }
.footer__blurb { margin: 0; font-size: .92rem; line-height: 1.75; }

.footer__heading {
  margin-bottom: 1.15rem;
  color: #fff; font-size: .84rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
}
.footer__links, .footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .6em; }

/* Icon + label, aligned to match the "Get in Touch" column. */
.footer__links a {
  display: flex; align-items: flex-start; gap: .75rem;
  color: #9fb4c7;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.footer__links a .icon {
  width: 1.05em; height: 1.05em;
  margin-top: .3em;              /* optical alignment with the first text line */
  color: var(--gold-500);
  transition: transform .2s var(--ease);
}
.footer__links a:hover { color: var(--gold-400); transform: translateX(4px); }
.footer__links a:hover .icon { transform: scale(1.12); }

.footer__contact li { display: flex; gap: .75rem; margin-bottom: 1rem; align-items: flex-start; }
.footer__contact .icon { color: var(--gold-500); margin-top: .2em; }
.footer__contact a { color: #9fb4c7; }
.footer__contact a:hover { color: var(--gold-400); }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.25rem 0; font-size: .85rem;
}
.footer__bar p { margin: 0; }

.footer__bar-right { display: inline-flex; align-items: center; gap: .9rem; }

/* Discreet staff link to the admin dashboard. */
.footer__admin {
  display: grid; place-items: center;
  width: 30px; height: 30px; padding: 6px;
  color: #7f9db8;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  transition: color .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.footer__admin:hover {
  color: var(--navy-900);
  background: var(--gold-500);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.footer__admin svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- To top */

.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 80;
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 12px;
  color: var(--navy-900);
  background: var(--gold-500);
  border: 0; border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.to-top:hover { transform: translateY(-4px); }

/* ------------------------------------------------------- Reveal on scroll */

/* Content is visible by default so it never depends on JavaScript. The
   `js-reveal` class is added by main.js only once it can guarantee the
   elements will be revealed again. */
.reveal { opacity: 1; transform: none; }

.js-reveal .reveal { opacity: 0; transform: translateY(26px); }
.js-reveal .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ------------------------------------------------------------ Error page */

.error-page { text-align: center; padding: clamp(4rem, 12vw, 8rem) 0; }
.error-page__code {
  font-size: clamp(5rem, 18vw, 11rem); font-weight: 700; line-height: .9;
  color: transparent;
  background: linear-gradient(135deg, var(--gold-500), var(--navy-600));
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: .2em;
}

/* ==========================================================================
   Visual polish layer
   Depth, texture and stronger hierarchy on top of the base layout.
   ========================================================================== */

/* ---- Section framing ------------------------------------------------ */

/* A soft radial wash keeps large light sections from reading as flat white. */
.section { position: relative; }

.section--alt {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(31, 122, 192, .07) 0%, transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(212, 175, 55, .07) 0%, transparent 55%),
    var(--surface-alt);
}

/* Hairline rules that fade out at the edges, framing alternating bands. */
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}
.section--alt::before { top: 0; }
.section--alt::after  { bottom: 0; }

/* The navy band gets depth plus a subtle engineered grid texture. */
.section--navy {
  background:
    radial-gradient(90% 70% at 15% 0%, rgba(31, 122, 192, .30) 0%, transparent 55%),
    radial-gradient(70% 60% at 100% 100%, rgba(212, 175, 55, .14) 0%, transparent 55%),
    var(--navy-800);
}
.section--navy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 75%);
}
.section--navy > * { position: relative; z-index: 1; }

/* ---- Headings ------------------------------------------------------- */

/* Gold rule under section headings — including the bare `.eyebrow + h2`
   pairs used in two-column blocks that have no .section-head wrapper. */
.section-head--center h2::after {
  content: ""; display: block;
  width: 62px; height: 3px; margin: .75rem auto 0;
  background: var(--grad-gold); border-radius: 3px;
}
.section-head:not(.section-head--center) h2::after,
.eyebrow + h2::after {
  content: ""; display: block;
  width: 54px; height: 3px; margin-top: .7rem;
  background: var(--grad-gold); border-radius: 3px;
}
.section--navy .section-head h2::after { opacity: .95; }

/* ---- Statistics ----------------------------------------------------- */

/* The stats panel is a divider between the hero and the page body, so it
   needs far less vertical air than a full content section. */
.section--stats { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }

/* Was a thin outlined strip; now a solid navy panel that anchors the page. */
.stats {
  gap: 0;
  background: var(--grad-navy);
  border: 0;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 100% at 0% 0%, rgba(212, 175, 55, .18), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(61, 154, 224, .20), transparent 60%);
}
.stat {
  position: relative; z-index: 1;
  background: transparent;
  padding-block: clamp(1.75rem, 3.4vw, 2.6rem);
}
/* Divider lines between cells, suppressed at the row edges. */
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: rgba(255, 255, 255, .16);
}
.stat__value {
  background: linear-gradient(180deg, #fff 35%, var(--gold-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat__label { color: #a8c0d4; }

/* ---- Cards ---------------------------------------------------------- */

.card { position: relative; }

/* Gold bar wipes across the top edge on hover. */
.card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
  z-index: 2;
}
.card:hover::after { transform: scaleX(1); }
.card:hover { box-shadow: var(--shadow-lg); }

/* Image cards get a gradient veil so overlaid text stays readable. */
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 22, 38, .35));
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover .card__media::after { opacity: 1; }

.card__icon {
  position: relative;
  background: var(--grad-navy);
  color: var(--gold-400);
  box-shadow: 0 6px 16px rgba(11, 31, 51, .22);
}

/* ---- Project cards -------------------------------------------------- */

.project-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fff, #fbfdff);
}
.project-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s var(--ease);
}
.project-card:hover::before { transform: scaleY(1); }
.project-card:hover { box-shadow: var(--shadow-lg); }
.project-card__logo {
  height: 58px;
  background: linear-gradient(180deg, #fff, var(--surface-alt));
  border: 1px solid var(--line);
  transition: border-color .3s var(--ease);
}
.project-card__logo img { max-height: 42px; }
.project-card:hover .project-card__logo { border-color: rgba(212, 175, 55, .5); }

/* ---- Testimonials --------------------------------------------------- */

.quote-card {
  position: relative;
  background: rgba(255, 255, 255, .06);
  backdrop-filter: blur(2px);
  transition: transform .3s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease);
}
.quote-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(212, 175, 55, .45);
}
/* Oversized decorative quote mark. */
.quote-card::before {
  content: "\201C";
  position: absolute; top: -.15em; right: .3em;
  font-size: 6rem; line-height: 1;
  color: rgba(212, 175, 55, .16);
  pointer-events: none;
}

/* ---- Check lists ---------------------------------------------------- */

.check-list li {
  padding: .5rem .75rem .5rem 2.4rem;
  border-radius: var(--radius-sm);
  transition: background-color .25s var(--ease);
}
.check-list li::before { left: .7rem; top: .95em; }
.check-list li::after  { left: 1.15rem; top: 1.22em; }
.check-list li:hover { background: rgba(31, 122, 192, .06); }
.check-list li::before {
  background: rgba(23, 160, 106, .16);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.check-list li:hover::before { background: rgba(23, 160, 106, .3); transform: scale(1.12); }

/* ---- About section -------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

/* Layered image composition -------------------------------------- */

.about__visual {
  position: relative;
  /* Room for the inset photo (left/bottom) and the offset gold frame (right). */
  padding: clamp(.5rem, 2vw, 1rem) clamp(1rem, 2.5vw, 1.75rem)
           clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
}

.about__frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-3);
}
.about__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Second image overlaps the first's bottom-left corner. */
.about__frame--inset {
  position: absolute;
  left: 0; bottom: clamp(1rem, 3vw, 2rem);
  width: 44%;
  border: 5px solid var(--surface-alt);
  box-shadow: var(--shadow-lg);
}

/* Gold "established" badge, straddling the top-right corner of the photo. */
.about__badge {
  position: absolute; z-index: 2;
  top: clamp(-1.25rem, -2vw, -1rem); right: clamp(-1.25rem, -2vw, -1rem);
  display: grid; place-content: center; text-align: center;
  width: clamp(88px, 11vw, 116px); aspect-ratio: 1;
  border-radius: 50%;
  background: var(--grad-gold);
  color: var(--navy-900);
  border: 4px solid var(--surface-alt);
  box-shadow: 0 10px 26px rgba(184, 145, 47, .42);
}
.about__badge-num {
  display: block; font-size: clamp(1.15rem, .95rem + .7vw, 1.5rem);
  font-weight: 700; line-height: 1;
}
.about__badge-txt {
  display: block; margin-top: .2rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  opacity: .8;
}

/* Decorative gold outline, offset down-right so it reads as a frame behind
   the photo rather than being hidden by it. */
.about__visual::before {
  content: ""; position: absolute; z-index: 0;
  left: clamp(3.5rem, 9vw, 6rem);
  right: clamp(-.5rem, -1vw, -.25rem);
  top: clamp(2.5rem, 6vw, 4rem);
  bottom: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid rgba(212, 175, 55, .5);
  border-radius: var(--radius-lg);
  pointer-events: none;
}
/* Photos sit above the outline; the inset one above them both. */
.about__frame { position: relative; z-index: 1; }
.about__frame--inset { z-index: 2; }

/* Narrative ------------------------------------------------------- */

.about__lead {
  font-size: clamp(1rem, .97rem + .16vw, 1.06rem);
  color: var(--ink-700);
}

/* Pull-quote treatment for the closing line. */
.about__closing {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.25rem;
  border-left: 3px solid var(--gold-500);
  color: var(--navy-700);
  font-weight: 600;
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  line-height: 1.6;
}

.about__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Offerings ------------------------------------------------------- */

.about__offerings {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.about__offerings-head { margin-bottom: 1.5rem; }
.about__offerings-head h3 { margin-bottom: .25rem; }
.about__offerings-head p { margin: 0; color: var(--ink-500); }

.offer-grid {
  display: grid; gap: .7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; margin: 0; padding: 0;
}
.offer {
  display: flex; align-items: flex-start; gap: .7rem;
  margin: 0; padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .93rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              border-color .25s var(--ease);
}
.offer:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(212, 175, 55, .5);
}
.offer__tick {
  display: grid; place-items: center;
  width: 22px; height: 22px; flex: none; margin-top: .1em;
  background: rgba(23, 160, 106, .14);
  border-radius: 50%;
  color: var(--green-500);
}
.offer__tick .icon { width: 13px; height: 13px; }

@media (max-width: 960px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { order: -1; padding-bottom: clamp(2rem, 8vw, 3rem); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }
  .about__frame--inset { width: 52%; }

  /* Tuck the badge fully inside the photo so it is not clipped by the
     section edge at narrow widths. */
  .about__badge {
    width: 76px;
    top: auto; bottom: clamp(3rem, 12vw, 4.5rem);
    right: clamp(.25rem, 2vw, .75rem);
  }
}

/* ---- Grid orphans --------------------------------------------------- */

/* With 7 services in a 3-column grid the last row holds a single card, which
   reads as a mistake. Centre a trailing orphan instead of left-aligning it. */
@media (min-width: 961px) {
  .grid--3 > :last-child:nth-child(3n + 1) { grid-column: 2; }
}

/* ---- Service card media --------------------------------------------- */

/* A slim gold corner accent gives the image cards a branded frame. */
.card__media { position: relative; }
.card__media::before {
  content: ""; position: absolute; z-index: 2;
  left: .75rem; top: .75rem;
  width: 26px; height: 26px;
  border-left: 2px solid var(--gold-500);
  border-top: 2px solid var(--gold-500);
  opacity: 0; transform: translate(-6px, -6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.card:hover .card__media::before { opacity: 1; transform: none; }

/* ---- Buttons -------------------------------------------------------- */

/* Sheen sweep on the primary button. */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease);
}
.btn--primary:hover::after { left: 115%; }
.btn > * { position: relative; z-index: 1; }

/* ---- CTA band ------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--grad-navy);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 120% at 88% 50%, rgba(212, 175, 55, .28), transparent 60%),
    radial-gradient(45% 100% at 0% 0%, rgba(61, 154, 224, .22), transparent 60%);
}
.cta-band__inner { position: relative; z-index: 1; }

/* ---- Gallery -------------------------------------------------------- */

.gallery figure {
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.gallery figure:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

/* ---- Page hero ------------------------------------------------------ */

/* Lift the scrim so the banner photograph is actually visible behind the
   heading, and angle it so the text side stays dark enough for contrast. */
.page-hero::after {
  background: linear-gradient(100deg,
              rgba(6, 16, 28, .92) 0%,
              rgba(8, 22, 38, .82) 42%,
              rgba(9, 24, 41, .55) 72%,
              rgba(9, 24, 41, .38) 100%);
}

/* Same engineered grid texture as the navy band, for continuity. Sits above
   the scrim (z-index -1) but below the content, which is z-index 0/auto. */
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(75% 70% at 30% 50%, #000, transparent 78%);
          mask-image: radial-gradient(75% 70% at 30% 50%, #000, transparent 78%);
}
.page-hero__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }

/* Gold rule under the page title, matching section headings. */
.page-hero__title::after {
  content: ""; display: block;
  width: 64px; height: 3px; margin-top: .55rem;
  background: var(--grad-gold); border-radius: 3px;
}

/* ---- Service blocks ------------------------------------------------- */

.service-block__media { position: relative; }
.service-block__media::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  pointer-events: none;
}

/* ---- Client marquee ------------------------------------------------- */

.marquee__item {
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
}
.marquee__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 175, 55, .45);
}

/* ---- Info cards (contact) ------------------------------------------- */

.info-card { position: relative; overflow: hidden; }
.info-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.info-card:hover::before { transform: scaleY(1); }
.info-card__icon { background: var(--grad-navy); color: var(--gold-400); }

/* ---- Accordion ------------------------------------------------------ */

.accordion { overflow: hidden; box-shadow: var(--shadow-sm); }
.acc__trigger[aria-expanded="true"] {
  background: linear-gradient(90deg, rgba(212, 175, 55, .1), transparent);
}

/* ---- Footer --------------------------------------------------------- */

.site-footer {
  position: relative;
  background:
    radial-gradient(80% 60% at 12% 0%, rgba(31, 122, 192, .16), transparent 55%),
    radial-gradient(60% 50% at 95% 100%, rgba(212, 175, 55, .10), transparent 55%),
    var(--navy-900);
}
/* Gold hairline across the very top of the footer. */
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-500) 70%, transparent);
}
.footer__heading { position: relative; padding-bottom: .6rem; }
.footer__heading::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 2px; background: var(--gold-500); border-radius: 2px;
}

/* ---- Back-to-top ---------------------------------------------------- */

.to-top { background: var(--grad-gold); box-shadow: 0 8px 22px rgba(184, 145, 47, .4); }
.to-top:hover { box-shadow: 0 14px 30px rgba(184, 145, 47, .5); }

/* ---- Selection ------------------------------------------------------ */

::selection { background: rgba(212, 175, 55, .3); color: var(--navy-900); }

/* ============================== Responsive ============================== */

@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 112px; }

  .nav-toggle { display: block; }

  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: 95;
    width: min(340px, 86vw);
    padding: 5.5rem 1.25rem 2rem;
    background: var(--navy-900);
    box-shadow: -8px 0 40px rgba(7, 22, 38, .5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .32s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { transform: none; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav__item { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav__item--cta { border-bottom: 0; margin-top: 1.15rem; }
  .nav__item--cta .btn { width: 100%; justify-content: center; }

  .nav__link { padding: .95rem .4rem; font-size: .95rem; }
  .nav__link.is-active::after { display: none; }
  .nav__caret { display: none; }

  .nav__item.has-children { position: relative; }
  .nav__expander {
    display: block; position: absolute; top: .55rem; right: 0;
    width: 40px; height: 40px;
    background: none; border: 0; cursor: pointer;
  }
  .nav__expander::before, .nav__expander::after {
    content: ""; position: absolute; left: 50%; top: 50%;
    width: 12px; height: 2px; margin: -1px 0 0 -6px;
    background: var(--gold-400); border-radius: 2px;
    transition: transform .25s var(--ease);
  }
  .nav__expander::after { transform: rotate(90deg); }
  .nav__expander[aria-expanded="true"]::after { transform: rotate(0); }

  .nav__sub {
    position: static; min-width: 0;
    padding: 0 0 .6rem .75rem;
    border: 0; border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
    display: none;
  }
  .nav__sub.is-open { display: block; }

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

  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block__media { order: 0; }
  .service-block__media { aspect-ratio: 16 / 9; }

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

  /* In a 2-up grid the 3rd cell starts a new row, so its vertical rule would
     float mid-panel. Give it a horizontal rule across the row instead; the
     4th cell keeps the vertical divider from the base rule. */
  .stat:nth-child(3)::before {
    left: 15%; right: -85%; top: 0; bottom: auto;
    width: auto; height: 1px;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 104px; }

  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__tagline { display: none; }
  .topbar__contact { gap: .5rem; justify-content: center; font-size: .8rem; }

  /* --- Touch targets ---------------------------------------------------
     Links and buttons need a comfortable tap area on touch devices. These
     rules pad the small inline links up towards the ~44px guideline without
     changing how they look. */
  .topbar__link { padding: .6rem .5rem; }

  .footer__links a,
  .footer__contact a { padding-block: .45rem; }

  .card__link,
  .crumbs a { padding-block: .5rem; }

  /* The slider dots are deliberately thin. The bar itself uses
     overflow:hidden for the progress fill, so the enlarged hit area has to
     live on the parent rather than on the dot. */
  .hero__dots { gap: 0; }
  .hero__dot {
    height: 5px;
    /* Transparent padding grows the tap target without changing the visual. */
    box-sizing: content-box;
    padding: 16px 8px;
    background-clip: content-box;
    overflow: visible;
  }
  .hero__dot-fill { inset: 16px auto 16px 8px; }

  /* File input and inline mailto links sat at ~21px — too small to hit. */
  .field--file input[type="file"] { padding: .85rem .75rem; }
  .info-card a, .msg-body a { display: inline-block; padding-block: .4rem; }

  .navbar__inner { min-height: 70px; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar-inner { justify-content: center; text-align: center; }

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

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__actions .btn { flex: 1 1 auto; justify-content: center; }

  .map-frame iframe { height: 320px; }
}

@media (max-width: 540px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }

  /* Stacked stats need horizontal rules, not vertical ones. */
  .stat + .stat::before {
    left: 18%; right: 18%; top: 0; bottom: auto;
    width: auto; height: 1px;
  }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .marquee__item { width: 136px; height: 88px; }

  /* Arrows would sit on top of the copy at this width — swiping and the
     dots cover navigation instead. */
  .hero--slider.is-enhanced .hero__nav { display: none; }
  .hero__dots { bottom: 1rem; }
  .hero__dot { width: 26px; }
  .hero__dot.is-active { width: 42px; }

  /* Admin lock in the footer bar. */
  .footer__admin { width: 40px; height: 40px; padding: 9px; }
}

/* ------------------------------------------------------------ Preferences */

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

@media print {
  .site-header, .site-footer, .to-top, .cta-band, .nav-scrim { display: none !important; }
  body { color: #000; }
}
