/* ==========================================================================
   DMU Construction — Index page
   Design system + page-specific section architecture

   Sections mirror the live index page exactly:
   Header · Hero slideshow · Honest & Efficient Work · Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette, sampled from the DMU Construction logo */
  --dmu-navy:        #2A2F52;   /* logo wordmark — headings, dark surfaces */
  --dmu-navy-deep:   #1E2240;   /* deeper step for footer base */
  --dmu-red:         #A5302A;   /* logo roof + "CONSTRUCTION" — accent */
  --dmu-red-deep:    #8A2622;
  --dmu-red-light:   #EE908A;   /* same hue, lifted for legibility on navy */

  /* WhatsApp brand green — used only on WhatsApp controls */
  --dmu-whatsapp:      #1F8E4A;
  --dmu-whatsapp-deep: #17713A;

  /* Neutrals */
  --dmu-ink:         #1A1C2B;
  --dmu-body:        #565A6E;
  --dmu-muted:       #8C90A3;
  --dmu-paper:       #FFFFFF;
  --dmu-sand:        #F6F4F1;
  --dmu-line:        #E4E2DE;
  --dmu-line-dark:   rgba(255, 255, 255, .16);

  /* Typography */
  --font-display: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-ui:      'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --fs-h1:   clamp(2.75rem, 1.30rem + 6.20vw, 5.25rem);   /* 44 → 84 */
  --fs-h2:   clamp(2.00rem, 1.13rem + 3.72vw, 3.375rem);  /* 32 → 54 */
  --fs-lead: clamp(1.0625rem, 0.96rem + 0.46vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 40px);
  --sp-section: clamp(80px, 9vw, 150px);

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur-fast: .25s;
  --dur-base: .45s;
  --dur-slow: .9s;

  --util-h: 44px;
  --bar-h: 92px;
  --header-h: calc(var(--util-h) + var(--bar-h));
}

@media (max-width: 991px) {
  :root { --util-h: 40px; --bar-h: 74px; }
}
@media (max-width: 575px) {
  :root { --util-h: 0px; }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

/* Base page styles — shared by every page that loads this stylesheet */
body.index-page,
body.services-page,
body.projects-page,
body.contact-page {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: 1.78;
  color: var(--dmu-body);
  background: var(--dmu-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--dmu-navy);
  letter-spacing: -0.02em;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; font-weight: 300; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.025em; }

:focus-visible {
  outline: 2px solid var(--dmu-red);
  outline-offset: 3px;
}

.index-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 300;
  padding: 12px 20px;
  background: var(--dmu-navy);
  color: #fff;
  font-size: var(--fs-small);
  transition: top var(--dur-fast) var(--ease-out);
}
.index-skip:focus { top: 16px; }

/* Shared container */
.index-header__utility-inner,
.index-header__inner,
.index-hero__inner,
.index-hero__ui-inner,
.index-marks__inner,
.index-work__inner,
.index-services__inner,
.index-projects__inner,
.index-cta__inner,
.index-footer__ribbon-inner,
.index-footer__top-inner,
.index-footer__base-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   3. Motion utilities
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed { opacity: 1; transform: none; will-change: auto; }

/* --------------------------------------------------------------------------
   3b. Buttons & inline links
   -------------------------------------------------------------------------- */
.index-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.index-btn svg { width: 17px; height: 17px; flex: none; }
.index-btn:hover { transform: translateY(-2px); }

.index-btn--primary {
  background: var(--dmu-red);
  border-color: var(--dmu-red);
  color: #fff;
}
.index-btn--primary:hover { background: var(--dmu-red-deep); border-color: var(--dmu-red-deep); }

/* on photography / dark grounds */
.index-btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .42);
  color: #fff;
}
.index-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--dmu-navy); }

.index-btn--whatsapp {
  background: var(--dmu-whatsapp);
  border-color: var(--dmu-whatsapp);
  color: #fff;
}
.index-btn--whatsapp:hover { background: var(--dmu-whatsapp-deep); border-color: var(--dmu-whatsapp-deep); }

/* on the navy CTA card inside the services grid */
.index-btn--light {
  background: #fff;
  border-color: #fff;
  color: var(--dmu-navy);
}
.index-btn--light:hover { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }

.index-btn--outline {
  background: transparent;
  border-color: var(--dmu-line);
  color: var(--dmu-navy);
}
.index-btn--outline:hover { border-color: var(--dmu-navy); background: var(--dmu-navy); color: #fff; }

.index-btn--sm { padding: 12px 18px; font-size: 0.75rem; }

/* inline arrow link */
.index-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dmu-navy);
  transition: color var(--dur-base) var(--ease-out);
}
.index-link svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform var(--dur-base) var(--ease-out);
}
.index-link > span {
  background-image: linear-gradient(var(--dmu-red), var(--dmu-red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 3px;
  transition: background-size var(--dur-base) var(--ease-out);
}
.index-link:hover { color: var(--dmu-red); }
.index-link:hover svg { transform: translateX(5px); }
.index-link--alt > span { background-size: 0% 1px; }
.index-link--alt:hover > span { background-size: 100% 1px; }

/* --------------------------------------------------------------------------
   3c. Shared section heading
   -------------------------------------------------------------------------- */
.index-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  margin-bottom: clamp(36px, 5vw, 72px);
}
.index-section-head__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.index-section-head__title { max-width: 18ch; }
.index-section-head__link { flex: none; padding-bottom: 6px; }

/* Brand red on navy is ~1.9:1. The eyebrow is lifted to the same hue at
   ~5.5:1 so inverted heads meet AA like every other label on the site. */
.index-section-head--invert .index-section-head__eyebrow { color: var(--dmu-red-light); }
.index-section-head--invert .index-section-head__title { color: #fff; }
.index-section-head--invert .index-section-head__link { color: #fff; }
.index-section-head--invert .index-section-head__link:hover { color: var(--dmu-red); }

@media (max-width: 767px) {
  .index-section-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .index-section-head__title { max-width: 22ch; }
}

/* --------------------------------------------------------------------------
   4. HEADER — utility strip + brand bar (nav · contact actions)

   The bar carries three zones on one row: brand, the four primary pages, and
   a contact cluster that never leaves the bar. The cluster degrades by label
   rather than by removal — labelled buttons at ≥1200px, icon-only at
   992–1199px, and the same two icons beside the burger below that — so Call
   and WhatsApp stay one tap away at every width, including the small screens
   where the utility strip is gone.
   -------------------------------------------------------------------------- */
.index-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: transform var(--dur-base) var(--ease-out);
}
.index-header.is-hidden { transform: translateY(-100%); }

/* -- utility strip -- */
.index-header__utility {
  height: var(--util-h);
  background: var(--dmu-navy-deep);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  transition: height var(--dur-base) var(--ease-out);
}
.index-header__utility-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 3vw, 36px);
  height: var(--util-h);
}
.index-header.is-stuck .index-header__utility { height: 0; }

.index-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  transition: color var(--dur-base) var(--ease-out);
}
.index-header__contact:hover { color: #fff; }
.index-header__contact-icon { color: var(--dmu-red); flex: none; }
.index-header__contact-icon svg { width: 15px; height: 15px; }
.index-header__contact--email .index-header__contact-value { letter-spacing: 0.06em; }

/* the address anchors the left end; the two live channels close the row */
.index-header__contact--place { margin-right: auto; cursor: default; }
.index-header__contact--place:hover { color: rgba(255, 255, 255, .82); }

/* first thing to go when the strip gets tight, then the strip itself */
@media (max-width: 767px) { .index-header__contact--place { display: none; } }
@media (max-width: 575px) { .index-header__utility { display: none; } }

/* -- main bar -- */
/* No backdrop-filter here: it would become the containing block for the
   position:fixed mobile drawer, collapsing it to the height of the bar.
   The bar is opaque anyway, so the blur bought nothing. */
.index-header__bar {
  background: #fff;
  border-bottom: 1px solid var(--dmu-line);
  transition: box-shadow var(--dur-base) var(--ease-out);
}
.index-header.is-stuck .index-header__bar {
  box-shadow: 0 14px 40px -28px rgba(26, 28, 43, .8);
}

.index-header__inner {
  --action-h: 46px;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
  height: var(--bar-h);
  transition: height var(--dur-base) var(--ease-out);
}
.index-header.is-stuck .index-header__inner {
  height: calc(var(--bar-h) - 12px);
  --action-h: 42px;
}

.index-header__brand { flex: none; }
.index-header__brand img {
  width: auto;
  height: clamp(46px, 5vw, 66px);
  transition: height var(--dur-base) var(--ease-out);
}
.index-header.is-stuck .index-header__brand img { height: clamp(40px, 4.2vw, 54px); }

/* -- primary nav (desktop) -- */
.index-header__nav { order: 2; margin-left: auto; }

/* horizontal bar only while StellarNav is NOT in mobile mode */
.index-header__nav.stellarnav:not(.mobile) > ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
}

.index-header__nav.stellarnav > ul > li > a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3F4459;
  transition: color var(--dur-base) var(--ease-out);
}
.index-header__nav.stellarnav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--dmu-red);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--dur-base) var(--ease-out);
}
.index-header__nav.stellarnav > ul > li > a:hover,
.index-header__nav.stellarnav > ul > li > a.is-active { color: var(--dmu-navy); }
.index-header__nav.stellarnav > ul > li > a:hover::after,
.index-header__nav.stellarnav > ul > li > a.is-active::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* -- contact actions — Call · WhatsApp · quote -- */
.index-header__actions {
  order: 3;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.index-header__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--action-h);
  padding: 0 18px;
  border: 1px solid var(--dmu-line);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dmu-navy);
  transition: height var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.index-header__action svg { width: 18px; height: 18px; flex: none; }
.index-header__action:hover { transform: translateY(-2px); }

.index-header__action--call svg {
  color: var(--dmu-red);
  transition: color var(--dur-base) var(--ease-out);
}
.index-header__action--call:hover {
  background: var(--dmu-navy);
  border-color: var(--dmu-navy);
  color: #fff;
}
.index-header__action--call:hover svg { color: #fff; }

.index-header__action--whatsapp {
  background: var(--dmu-whatsapp);
  border-color: var(--dmu-whatsapp);
  color: #fff;
}
.index-header__action--whatsapp:hover {
  background: var(--dmu-whatsapp-deep);
  border-color: var(--dmu-whatsapp-deep);
}

.index-header__cta { flex: none; height: var(--action-h); padding: 0 22px; }

/* Below 1200px the two contact buttons drop their labels and go square; the
   accessible name lives on the anchor, so nothing is lost to a screen reader. */
@media (max-width: 1199px) {
  .index-header__action { width: var(--action-h); padding: 0; }
  .index-header__action-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* -- tablet / mobile — StellarNav takes over at 991px -- */
@media (max-width: 991px) {
  /* the drawer carries Contact Us and its own quote route */
  .index-header__cta { display: none; }
  /* burger last, so the row reads Call · WhatsApp · menu */
  .index-header__nav { order: 3; margin-left: 0; }
  .index-header__actions { order: 2; margin-left: auto; }
  .index-header__inner { --action-h: 44px; }
}
@media (max-width: 479px) {
  .index-header__inner { --action-h: 42px; gap: 12px; }
  .index-header__actions { gap: 8px; }
}

/* -- StellarNav overrides -- */
.index-header__nav.stellarnav,
.index-header__nav.stellarnav.dark,
.index-header__nav.stellarnav.light { background: transparent; }

.index-header__nav.stellarnav { position: relative; }
.index-header__nav.stellarnav > ul { background: transparent; text-align: left; }
.index-header__nav.stellarnav > ul > li { display: block; background: transparent; }

/* burger — mobile mode only (≤991px); desktop shows the full horizontal nav */
.index-header__nav.stellarnav.mobile .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--action-h);
  height: var(--action-h);
  padding: 0;
  border: 1px solid var(--dmu-line);
  border-radius: 2px;
  color: var(--dmu-navy);
  font-size: 0;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.index-header__nav.stellarnav.mobile .menu-toggle:hover,
.index-header__nav.stellarnav.mobile.active .menu-toggle {
  background: var(--dmu-navy);
  border-color: var(--dmu-navy);
  color: #fff;
}
.index-header__nav.stellarnav.mobile .menu-toggle span.bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 0;
}
/* matches StellarNav's own `.stellarnav.dark .menu-toggle span.bars span`
   specificity so the burger inherits the header colour instead of white */
.index-header__nav.stellarnav.mobile .menu-toggle span.bars span {
  background: currentColor;
  width: 20px;
  height: 2px;
  margin: 0 0 5px;
}
.index-header__nav.stellarnav.mobile .menu-toggle span.bars span:last-child { margin-bottom: 0; }

/* shrink the nav to its toggle so it sits flush at the right edge */
.index-header__nav.stellarnav.mobile { width: auto; }

/* Side drawer — StellarNav owns geometry and the .active toggle; skin only. */
.index-header__nav.stellarnav.mobile.right > ul {
  padding: 76px 0 32px;
  background: var(--dmu-navy);
  box-shadow: -30px 0 70px -30px rgba(0, 0, 0, .75);
  text-align: left;
}

/* Scrim — lives inside the nav's own stacking context, so it dims the page
   while the drawer stays above it. js/index.js closes the drawer on a tap. */
.index-header__nav.stellarnav.mobile.active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(20, 22, 38, .55);
}

.index-header__nav.stellarnav.mobile > ul > li { border-bottom: 1px solid var(--dmu-line-dark); }
.index-header__nav.stellarnav.mobile > ul > li:last-child { border-bottom: 0; }
.index-header__nav.stellarnav.mobile > ul > li > a {
  display: block;
  padding: 15px 24px;
  color: rgba(255, 255, 255, .82);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.index-header__nav.stellarnav.mobile > ul > li > a::after { display: none; }
.index-header__nav.stellarnav.mobile > ul > li > a:hover { color: #fff; }
.index-header__nav.stellarnav.mobile > ul > li > a.is-active {
  color: #fff;
  box-shadow: inset 3px 0 0 var(--dmu-red);
}

/* Call / WhatsApp and the address block are drawer-only: the bar carries its
   own contact cluster and the utility strip repeats the same details. */
.index-header__nav.stellarnav:not(.mobile) .index-header__nav-cta,
.index-header__nav.stellarnav:not(.mobile) .index-header__nav-note { display: none; }

.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-cta { border-bottom: 0; }
.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-cta > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 18px 20px 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--dmu-line-dark);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-cta > a svg { width: 17px; height: 17px; flex: none; }
.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-cta--whatsapp > a {
  margin-top: 10px;
  background: var(--dmu-whatsapp);
  border-color: var(--dmu-whatsapp);
}

.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-note {
  border-bottom: 0;
  padding: 24px 24px 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
}
.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-note a {
  display: block;
  padding: 0;
  border-bottom: 0;
  color: #fff;
}
.index-header__nav.stellarnav.mobile > ul > li.index-header__nav-note span { display: block; }

.index-header__nav.stellarnav.mobile .close-menu {
  position: absolute;
  top: 20px;
  right: 14px;
  padding: 10px 12px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, .6);
}
.index-header__nav.stellarnav.mobile .close-menu .icon-close { margin-right: 8px; }

/* page scroll is locked while the drawer is open — see js/index.js */
body.index-nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   5. HERO — three-slide showcase
   -------------------------------------------------------------------------- */
.index-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--dmu-navy);
  isolation: isolate;
  overflow: hidden;
}

.index-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.index-hero__slide { overflow: hidden; }

.index-hero__media { position: absolute; inset: 0; }
.index-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  transition: transform 7s linear;
}
/* Ken Burns settles only on the active slide */
.swiper-slide-active .index-hero__media img { transform: scale(1); }

.index-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 28, 43, .72) 0%, rgba(26, 28, 43, .18) 38%, rgba(26, 28, 43, .86) 100%),
    linear-gradient(90deg, rgba(26, 28, 43, .74) 0%, rgba(26, 28, 43, 0) 66%);
}

.index-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(120px, 15vw, 190px);
  pointer-events: none;
}
.index-hero__content a,
.index-hero__content button { pointer-events: auto; }

.index-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #fff;
}
.index-hero__eyebrow::before {
  content: "";
  width: clamp(32px, 5vw, 64px);
  height: 3px;
  background: var(--dmu-red);
  flex: none;
}

.index-hero__heading {
  max-width: 14ch;
  color: #fff;
  text-shadow: 0 2px 40px rgba(15, 16, 26, .35);
}
/* The mask is padded and pulled back by the same amount: at line-height 1.06
   the ascenders and descenders sit outside the line box, and `overflow:hidden`
   would otherwise slice the tops and tails off the headline. */
.index-hero__line {
  display: block;
  overflow: hidden;
  padding-block: 0.14em;
  margin-block: -0.14em;
}
.index-hero__line > span {
  display: block;
  transform: translate3d(0, 130%, 0);
  transition: transform 1.05s var(--ease-out);
}
.index-hero.is-ready .index-hero__line > span { transform: none; }
.index-hero.is-ready .index-hero__line:nth-child(2) > span { transition-delay: .12s; }

.index-hero__lead,
.index-hero__actions {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.index-hero.is-ready .index-hero__lead { opacity: 1; transform: none; transition-delay: .42s; }
.index-hero.is-ready .index-hero__actions { opacity: 1; transform: none; transition-delay: .56s; }

.index-hero__lead {
  max-width: 52ch;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
  text-shadow: 0 2px 30px rgba(15, 16, 26, .45);
}

.index-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.4vw, 42px);
}

@media (max-width: 575px) {
  .index-hero__actions { gap: 10px; }
  .index-hero__actions .index-btn { flex: 1 1 100%; }
}

/* -- slider UI -- */
.index-hero__ui {
  position: absolute;
  left: 0;
  right: 0;
  /* clears the messaging strip, which is pulled up over the foot of the hero */
  bottom: clamp(40px, 8vw, 120px);
  z-index: 4;
}
.index-hero__ui-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.index-hero__count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  color: #fff;
}
.index-hero__count-current { font-size: 1.375rem; }
.index-hero__count-sep {
  width: 26px;
  height: 1px;
  background: rgba(255, 255, 255, .5);
  transform: translateY(-6px);
}
.index-hero__count-total { font-size: 0.9375rem; color: rgba(255, 255, 255, .6); }

.index-hero__progress {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, .24);
  overflow: hidden;
}
.index-hero__progress > span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--dmu-red);
  transform: scaleX(0);
  transform-origin: left center;
}
.index-hero__progress > span.is-running {
  transition: transform var(--hero-delay, 6s) linear;
  transform: scaleX(1);
}

.index-hero__nav { display: flex; gap: 10px; flex: none; }
.index-hero__btn {
  display: grid;
  place-items: center;
  width: clamp(44px, 4vw, 54px);
  height: clamp(44px, 4vw, 54px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.index-hero__btn svg { width: 18px; height: 18px; }
.index-hero__btn:hover {
  background: var(--dmu-red);
  border-color: var(--dmu-red);
  color: #fff;
}

@media (max-width: 767px) {
  .index-hero__ui-inner { gap: 14px; }
  .index-hero__count-sep { width: 16px; }
}
@media (max-width: 480px) {
  .index-hero__count { display: none; }
}

/* --------------------------------------------------------------------------
   5b. KEY MESSAGING STRIP — four grounded statements, straddling the hero
   -------------------------------------------------------------------------- */
.index-marks {
  position: relative;
  z-index: 5;
  margin-top: clamp(-90px, -7vw, -40px);
  padding-inline: 0;
}
.index-marks__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dmu-paper);
  box-shadow: 0 30px 70px -45px rgba(26, 28, 43, .55);
  padding-block: clamp(30px, 3.4vw, 48px);
  gap: 0;
}
.index-marks__item {
  padding-inline: clamp(18px, 2.2vw, 34px);
  border-left: 1px solid var(--dmu-line);
}
.index-marks__item:first-child { border-left: 0; padding-left: 0; }
.index-marks__item:last-child { padding-right: 0; }

.index-marks__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--dmu-red);
}
.index-marks__icon svg { width: 28px; height: 28px; }

.index-marks__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.98rem + 0.36vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--dmu-navy);
}
.index-marks__text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--dmu-body);
}

@media (max-width: 991px) {
  .index-marks { margin-top: 0; }
  .index-marks__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 4vw, 40px) 0;
    box-shadow: none;
    border-bottom: 1px solid var(--dmu-line);
  }
  .index-marks__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .index-marks__item:nth-child(even) { padding-right: 0; }
}
@media (max-width: 575px) {
  .index-marks__inner { grid-template-columns: 1fr; }
  .index-marks__item { border-left: 0; padding-inline: 0; }
  .index-marks__icon { margin-bottom: 12px; }
}

/* --------------------------------------------------------------------------
   6. HONEST & EFFICIENT WORK — editorial statement band
   -------------------------------------------------------------------------- */
.index-work {
  position: relative;
  padding-block: var(--sp-section);
  background: var(--dmu-sand);
  overflow: hidden;
}

/* faint brand monogram, purely decorative — sits behind the stacked column */
.index-work__watermark {
  position: absolute;
  top: 50%;
  right: clamp(-40px, -2vw, 0px);
  width: clamp(240px, 34vw, 520px);
  transform: translateY(-50%);
  opacity: .04;
  pointer-events: none;
}
.index-work__watermark img { width: 100%; height: auto; }

/* architectural blueprint rule pattern, fading in from the top left */
.index-work__grid {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: min(62%, 820px);
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--dmu-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--dmu-line) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,.9), transparent 68%);
          mask-image: linear-gradient(135deg, rgba(0,0,0,.9), transparent 68%);
}

/* single vertical column — eyebrow, heading, rule, copy, actions */
.index-work__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(var(--container) - clamp(0px, 14vw, 300px));
}

.index-work__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}

.index-work__heading {
  margin: 0;
  max-width: 18ch;
  color: var(--dmu-navy);
}

.index-work__rule {
  display: block;
  width: clamp(64px, 8vw, 110px);
  height: 3px;
  margin-top: clamp(24px, 3vw, 36px);
  background: var(--dmu-red);
  transform-origin: left center;
}

.index-work__text {
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  font-size: var(--fs-lead);
  line-height: 1.72;
  color: var(--dmu-body);
  max-width: 62ch;
}

/* opening statement carries a little more weight than the follow-up */
.index-work__text--lead {
  margin-top: clamp(32px, 4vw, 52px);
  color: var(--dmu-ink);
  padding-left: clamp(18px, 2vw, 26px);
  border-left: 2px solid var(--dmu-line);
}

.index-work__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 52px);
}

@media (max-width: 991px) {
  .index-work__inner { max-width: none; }
  .index-work__grid { width: 100%; }
  /* the mark would sit directly behind body copy once the column is full width */
  .index-work__watermark { display: none; }
}

@media (max-width: 575px) {
  .index-work__heading { max-width: none; }
  .index-work__text { max-width: none; }
  .index-work__text--lead {
    padding-left: 16px;
    border-left-width: 2px;
  }
  /* stacked, but still left-aligned so each underline hugs its own label */
  .index-work__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --------------------------------------------------------------------------
   6b. SERVICES OVERVIEW
   -------------------------------------------------------------------------- */
.index-services { padding-block: var(--sp-section); background: var(--dmu-paper); }

.index-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}

.index-service { display: flex; }

.index-service__link {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: var(--dmu-sand);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.index-service__link:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 60px -40px rgba(26, 28, 43, .7);
}

.index-service__media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--dmu-navy);
}
.index-service__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.index-service__link:hover .index-service__media img { transform: scale(1.06); }

.index-service__body {
  display: block;
  position: relative;
  padding: clamp(20px, 2.2vw, 28px);
  padding-bottom: clamp(48px, 4vw, 58px);
  flex: 1;
}

.index-service__index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--dmu-red);
}

.index-service__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.02rem + 0.46vw, 1.375rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--dmu-navy);
}

.index-service__text {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.62;
  color: var(--dmu-body);
}

.index-service__more {
  position: absolute;
  left: clamp(20px, 2.2vw, 28px);
  bottom: clamp(18px, 1.9vw, 24px);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--dmu-navy);
  transition: transform var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
}
.index-service__more svg { width: 18px; height: 18px; }
.index-service__link:hover .index-service__more { transform: translateX(6px); color: var(--dmu-red); }

/* navy enquiry tile that closes the grid */
.index-service--cta .index-service__cta-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  background: var(--dmu-navy);
}
.index-service__cta-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.02rem + 0.46vw, 1.375rem);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: -0.015em;
  color: #fff;
}
.index-service__cta-text {
  margin-bottom: clamp(20px, 2.2vw, 28px);
  font-size: 0.9375rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, .72);
}
.index-service__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.index-service__cta-actions .index-btn { padding: 13px 18px; font-size: 0.75rem; }

@media (max-width: 1199px) {
  .index-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .index-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .index-services__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   6c. PROJECT HIGHLIGHTS
   -------------------------------------------------------------------------- */
.index-projects {
  padding-block: var(--sp-section);
  background: var(--dmu-navy);
}

/* 3 columns. The feature tile is 2×2, and the five remaining cards fill the
   four cells it leaves — 4 + 5 = 9, so the grid closes with no empty cell. */
.index-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
.index-project { display: flex; }
.index-project--feature { grid-column: span 2; grid-row: span 2; }

.index-project__link {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--dmu-navy-deep);
}

.index-project__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* the feature is sized by the two rows it spans, not by a ratio */
.index-project--feature .index-project__link { height: 100%; }
.index-project--feature .index-project__media { aspect-ratio: auto; height: 100%; }
.index-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.index-project__link:hover .index-project__media img { transform: scale(1.06); }

.index-project__body {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: clamp(20px, 2.2vw, 30px);
  background: linear-gradient(180deg, rgba(26, 28, 43, 0) 0%, rgba(26, 28, 43, .88) 72%);
}

.index-project__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 11px;
  background: var(--dmu-red);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.index-project__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.96rem + 0.46vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}

/* Two columns: the 2×2 feature would leave an orphan, so every card
   becomes equal and six items fill three clean rows. */
@media (max-width: 991px) {
  .index-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-project--feature { grid-column: span 1; grid-row: span 1; }
  .index-project--feature .index-project__media { aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 575px) {
  .index-projects__grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   6d. ENQUIRY CTA
   -------------------------------------------------------------------------- */
.index-cta { padding-block: var(--sp-section); background: var(--dmu-sand); }

.index-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
}

.index-cta__eyebrow {
  margin: 0 0 16px;
  font-family: var(--font-ui);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dmu-red);
}
.index-cta__title { max-width: 16ch; }
.index-cta__text {
  max-width: 50ch;
  margin-top: clamp(18px, 2.2vw, 26px);
  font-size: var(--fs-lead);
  line-height: 1.7;
  color: var(--dmu-body);
}
.index-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.2vw, 38px);
}

.index-cta__details {
  display: grid;
  gap: clamp(20px, 2.4vw, 30px);
  padding: clamp(26px, 3vw, 38px);
  background: var(--dmu-paper);
  border-top: 3px solid var(--dmu-red);
}
.index-cta__detail-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dmu-muted);
}
.index-cta__detail-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--dmu-navy);
}
a.index-cta__detail-value {
  background-image: linear-gradient(var(--dmu-red), var(--dmu-red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur-base) var(--ease-out);
}
a.index-cta__detail-value:hover { background-size: 100% 2px; }

@media (max-width: 991px) {
  .index-cta__inner { grid-template-columns: 1fr; }
  .index-cta__title { max-width: 20ch; }
}
@media (max-width: 575px) {
  .index-cta__actions .index-btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   7. FOOTER
   Three stacked bands, darkest → navy → darkest:
     a. ribbon  — phone number + WhatsApp CTA        (navy-deep, red top rule)
     b. body    — brand · services · explore · contact (navy, four columns)
     c. base    — copyright + legal links            (navy-deep)
   One markup block, shared by all four pages.
   -------------------------------------------------------------------------- */
.index-footer {
  background: var(--dmu-navy);
  color: rgba(255, 255, 255, .68);
}

/* -- 7a. contact ribbon -- */
.index-footer__ribbon {
  border-top: 3px solid var(--dmu-red);
  background: var(--dmu-navy-deep);
}

.index-footer__ribbon-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(34px, 3.6vw, 52px);
}

.index-footer__eyebrow {
  display: block;
  margin-bottom: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dmu-red-light);
}

.index-footer__ribbon-title {
  max-width: 18ch;
  font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #fff;
}

.index-footer__ribbon-text {
  max-width: 42ch;
  margin-top: 12px;
  font-size: var(--fs-small);
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
}

.index-footer__ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

/* the phone number reads as type, not as a second button */
.index-footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.index-footer__phone-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--dmu-red);
  color: #fff;
  transition: background-color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.index-footer__phone-icon svg { width: 20px; height: 20px; }
.index-footer__phone-text { display: grid; gap: 3px; }
.index-footer__phone-label {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.index-footer__phone-value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.625rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #fff;
}
.index-footer__phone:hover .index-footer__phone-icon {
  background: var(--dmu-red-deep);
  transform: translateY(-2px);
}
.index-footer__phone:hover .index-footer__phone-value { color: var(--dmu-red-light); }

/* -- 7b. body -- */
.index-footer__top-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .7fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  padding-block: clamp(48px, 5.5vw, 78px);
}

.index-footer__brand {
  display: inline-block;
  padding: 12px 16px;
  background: #fff;
  border-radius: 4px;
}
.index-footer__brand img { width: auto; height: clamp(44px, 4.5vw, 58px); }

.index-footer__blurb {
  max-width: 38ch;
  margin-top: clamp(18px, 2vw, 24px);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .6);
}

/* three factual pills, lifted from the messaging strip on Home */
.index-footer__marks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(18px, 2vw, 24px);
}
.index-footer__marks li {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  font-size: 0.75rem;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, .7);
}

.index-footer__heading {
  margin: 0 0 clamp(16px, 1.8vw, 22px);
  font-family: var(--font-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.index-footer__list { display: grid; gap: 11px; }
.index-footer__list li { font-size: 0.9375rem; line-height: 1.6; }
.index-footer__list a {
  display: inline-block;
  color: rgba(255, 255, 255, .66);
  transition: color var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.index-footer__list a:hover { color: #fff; transform: translateX(4px); }

/* contact rows — icon in a tinted square, label over value */
.index-footer__contacts { display: grid; gap: clamp(16px, 1.8vw, 20px); }

.index-footer__contact { display: flex; gap: 13px; }

.index-footer__contact-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: rgba(255, 255, 255, .05);
  color: var(--dmu-red-light);
}
.index-footer__contact-icon svg { width: 17px; height: 17px; }
.index-footer__contact-icon--whatsapp { color: #6FD39A; }

.index-footer__contact-body { display: grid; gap: 3px; min-width: 0; }

.index-footer__contact-label {
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

.index-footer__contact-value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #fff;
  overflow-wrap: anywhere;
}

/* red underline wipes in on hover — same gesture as the contact links elsewhere */
.index-footer__contact-link {
  background-image: linear-gradient(var(--dmu-red), var(--dmu-red));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur-base) var(--ease-out);
}
.index-footer__contact-link:hover { background-size: 100% 2px; }

/* -- 7c. base bar -- */
.index-footer__base {
  border-top: 1px solid var(--dmu-line-dark);
  background: var(--dmu-navy-deep);
}
.index-footer__base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px clamp(16px, 2.5vw, 32px);
  padding-block: 20px;
}
.index-footer__copy {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .5);
}
.index-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px clamp(14px, 1.8vw, 24px);
}
.index-footer__legal a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, .5);
  transition: color var(--dur-base) var(--ease-out);
}
.index-footer__legal a:hover { color: #fff; }

/* -- 7d. footer breakpoints -- */
@media (max-width: 1199px) {
  .index-footer__top-inner {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) minmax(0, .7fr);
  }
  .index-footer__col--contact { grid-column: 1 / -1; }
  .index-footer__contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px clamp(24px, 4vw, 48px);
  }
}

@media (max-width: 991px) {
  .index-footer__ribbon-inner { grid-template-columns: 1fr; }
  .index-footer__ribbon-title { max-width: 24ch; }
  .index-footer__top-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-footer__col--brand { grid-column: 1 / -1; }
  .index-footer__base-inner { justify-content: center; text-align: center; }
  .index-footer__legal { justify-content: center; width: 100%; }
}

@media (max-width: 575px) {
  .index-footer__ribbon-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .index-footer__ribbon-actions .index-btn { width: 100%; }
  .index-footer__top-inner { grid-template-columns: 1fr; gap: 34px; }
  .index-footer__contacts { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   7b. MOBILE QUICK-CONTACT BAR
   -------------------------------------------------------------------------- */
.index-quickbar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, .14);
  background: var(--dmu-navy);
}
.index-quickbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 60px;
  padding: 8px 6px;
  font-family: var(--font-ui);
  /* fluid so the longest label ("ENQUIRE NOW") never wraps in a 3-up bar at 320px */
  font-size: clamp(0.5625rem, 2.6vw, 0.6875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  color: #fff;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.index-quickbar__item:first-child { border-left: 0; }
.index-quickbar__item svg { width: 19px; height: 19px; }
.index-quickbar__item--whatsapp { background: var(--dmu-whatsapp); border-left-color: var(--dmu-whatsapp); }
.index-quickbar__item--quote { background: var(--dmu-red); border-left-color: var(--dmu-red); }

@media (max-width: 767px) {
  .index-quickbar { display: flex; }
  /* clear the bar so it never covers the copyright line */
  body.index-page { padding-bottom: 60px; }
  .index-totop { bottom: calc(60px + 14px); }
}

/* --------------------------------------------------------------------------
   8. Back to top
   -------------------------------------------------------------------------- */
.index-totop {
  position: fixed;
  right: clamp(16px, 2vw, 32px);
  bottom: clamp(16px, 2vw, 32px);
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--dmu-navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
.index-totop svg { width: 18px; height: 18px; }
.index-totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.index-totop:hover { background: var(--dmu-red); }

/* --------------------------------------------------------------------------
   9. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .index-hero__line > span { transform: none !important; transition: none !important; }
  .index-hero__media img { transform: none !important; transition: none !important; }
  .index-hero__progress > span { transition: none !important; }

  /* hero copy below the headline is opacity-0 until `.is-ready`; force it on */
  .index-hero__lead,
  .index-hero__actions { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* no lift or zoom on hover */
  .index-btn:hover,
  .index-service__link:hover { transform: none !important; }
  .index-service__link:hover .index-service__media img,
  .index-project__link:hover .index-project__media img { transform: none !important; }
  .index-link:hover svg,
  .index-service__link:hover .index-service__more { transform: none !important; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE REFINEMENTS — laptop tier + small-screen hardening

   The page was already fluid (clamp() type/space) and collapsed its grids at
   991/767/575. These rules add the missing laptop step (1200–1400px), where
   the 1320px container has no breathing room against the viewport edge, and
   harden the few places that still overflowed below 400px.
   -------------------------------------------------------------------------- */

/* -- laptop: the container hits the viewport edge before the gutter grows -- */
@media (max-width: 1400px) {
  :root { --container: 1180px; }
}

/* -- laptop: four service tiles get cramped before the 1199px drop to three -- */
@media (max-width: 1320px) {
  .index-services__grid { gap: clamp(14px, 1.4vw, 20px); }
  .index-marks__inner { gap: clamp(16px, 1.6vw, 24px); }
}

/* -- tablet portrait: give stacked sections a tighter rhythm -- */
@media (max-width: 991px) {
  :root { --sp-section: clamp(64px, 8vw, 104px); }
}

/* -- small phones: stop long unbroken strings (emails, URLs) overflowing -- */
@media (max-width: 479px) {
  :root { --sp-section: clamp(56px, 12vw, 80px); }

  .index-footer__contact-body,
  .index-cta__detail-value,
  .index-footer__contact-value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* the hero headline's 14ch cap is too wide once the type bottoms out */
  .index-hero__heading { max-width: 100%; }
  .index-hero__eyebrow { letter-spacing: 0.24em; gap: 10px; }

  /* full-bleed buttons everywhere a row of them would otherwise split badly */
  .index-work__actions .index-btn,
  .index-footer__ribbon-actions .index-btn { width: 100%; justify-content: center; }
}

/* -- landscape phones: a 100vh hero leaves no room for content -- */
@media (max-height: 520px) and (orientation: landscape) {
  .index-hero__content {
    min-height: auto;
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 96px;
  }
  .index-hero__ui { bottom: 24px; }
}

/* -- touch devices: hover lifts stick on tap, so drop them -- */
@media (hover: none) {
  .index-header__action:hover,
  .index-project__link:hover .index-project__media img,
  .index-service__link:hover .index-service__more { transform: none; }
}
