/* ============================================================================
   Dan Oil & Petrochemicals Ltd. — site styles
   Organised by: tokens → base → a11y → layout primitives → header → hero →
   sections → components → footer → utility → responsive.
   Keep specificity flat; favour CSS custom properties for repeatable values.
   ============================================================================ */

/* ---- 01. Design tokens ---------------------------------------------------- */
:root {
  --navy:        #08111c;
  --navy-2:      #0b1b38;
  --navy-3:      #0d1625;
  --red:         #dc2626;
  --red-dark:    #b91c1c;
  --red-soft:    #f87171;
  --slate:       #475569;
  --slate-2:     #64748b;
  --line:        #e2e8f0;
  --line-soft:   #f1f5f9;
  --light:       #f8fafc;
  --white:       #ffffff;
  --ink:         #0f172a;
  --shadow-soft: 0 10px 30px rgba(15,23,42,.10);
  --shadow-hover:0 18px 38px rgba(15,23,42,.16);
  --shadow-lift: 0 24px 60px rgba(15,23,42,.10);
}

/* ---- 02. Base reset & typography ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Rubik, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }

/* ---- 03. Accessibility primitives ---------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .9rem 1.25rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid #fff; outline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 2px;
  border-radius: 2px;
}
.site-button:focus-visible,
.nav-links a:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

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

/* ---- 04. Buttons -------------------------------------------------------- */
/* Interaction model: a skewed colour panel slides in from the left on hover
   (red → navy on primary, navy → red on dark, glass → white on secondary).
   Click compresses the button briefly for tactile feedback. */
.site-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition:
    transform .25s cubic-bezier(.4, 0, .2, 1),
    box-shadow .25s ease,
    color .3s ease .05s,
    border-color .25s ease;
  will-change: transform;
}
.site-button > * {
  position: relative;
  transition: color .3s ease .05s;
}

/* The slide-in colour panel — z-index: -1 with isolation on parent keeps it
   behind text content (which is often a bare text node with no wrapper). */
.site-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -10%;
  width: 130%;
  height: 100%;
  transform: translateX(-105%) skewX(-14deg);
  transform-origin: top left;
  transition: transform .5s cubic-bezier(.7, 0, .15, 1);
  z-index: -1;
  pointer-events: none;
}
.site-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.site-button:hover::before {
  transform: translateX(0) skewX(-14deg);
}
.site-button:active {
  transform: translateY(0) scale(.97);
  transition-duration: .08s;
  box-shadow: 0 4px 10px rgba(15,23,42,.18);
}
.site-button:focus-visible {
  outline: 2px solid var(--red-soft);
  outline-offset: 3px;
}

/* Primary — red default, slides to navy on hover. White text both states. */
.site-button-primary {
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
}
.site-button-primary::before { background: var(--navy-2); }
.site-button-primary:hover { border-color: var(--navy-2); color: #fff; }

/* Secondary — glass default, slides to white on hover. Text flips to dark. */
.site-button-secondary {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.site-button-secondary::before { background: #fff; }
.site-button-secondary:hover { border-color: #fff; color: var(--ink); }

/* Dark — deep navy default, slides to red on hover. Strong CTA flip. */
.site-button-dark {
  background: #020617;
  color: #fff;
  border: 1px solid #020617;
}
.site-button-dark::before { background: var(--red); }
.site-button-dark:hover { border-color: var(--red); color: #fff; }

/* Respect reduced-motion: skip slide, just colour change. */
@media (prefers-reduced-motion: reduce) {
  .site-button,
  .site-button::before,
  .site-button > * { transition-duration: 0s !important; }
  .site-button:hover { transform: none; }
}

/* ---- 05. Header ---------------------------------------------------------- */
/* Layout: the outer <header> is absolute-positioned over the hero so both
   rows visually overlay it. The topline scrolls away naturally with the page;
   only the nav bar locks to the top (via JS-applied .is-stuck) once the
   topline would have scrolled out of view. */
header.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 1000;
}
.header-topline {
  background: rgba(8,17,28,.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.header-topline-inner {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 0;
  font-size: .9rem;
  color: rgba(255,255,255,.82);
}
.header-meta-copy {
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .7rem;
}
.header-bar {
  position: relative;            /* containing block for the mobile drop-panel */
  background: rgba(8,17,28,.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header-bar.is-stuck {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(11,27,56,.78);
  box-shadow: 0 12px 40px rgba(2,6,23,.24);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}
.header-brand { display: flex; align-items: center; gap: .8rem; color: #fff; }
.header-brand img { width: 56px; height: auto; }
.header-brand-sub {
  font-size: .6rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 700;
  white-space: nowrap;
}
.nav-links {
  display: none;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  position: relative;
  display: block;
  padding: .95rem .9rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  transition: color .25s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
/* Active page indicator: a single solid 1px red line under the text. No
   gradient, no scale animation — just present. Hover only changes color so
   it's always clear which page is current vs which is being hovered. */
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .45rem;
  height: 1px;
  background: var(--red);
}
.nav-cta { margin-left: .5rem; }

/* Mobile-only "Contact Us" surfaced inside the drop panel. Hidden on desktop
   (the .nav-cta button in the bar serves the same purpose there). */
.nav-mobile-cta { display: none; }

/* Primary nav wrapper — flex so brand sits left, nav + CTA + toggle sit right. */
.header-nav { display: flex; align-items: center; }

/* Hamburger button — hidden on desktop, visible at <1024px (via section 21). */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem; height: 2.6rem;
  margin-left: .6rem;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .55rem;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.nav-toggle:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); }
.nav-toggle:focus-visible {
  outline: 2px solid var(--red-soft, #fca5a5);
  outline-offset: 2px;
}
/* The three lines built from one span + two pseudo-elements. Animates into
   an X when aria-expanded becomes true. */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .15s ease, top .25s ease, background .15s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* ---- 06. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: #fff;
  /* Give the hero real presence regardless of content amount. The clamp caps
     it on huge monitors so it never feels gratuitous; the 75vh floor on mobile
     keeps it imposing on phones too. */
  min-height: clamp(560px, 75vh, 760px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top left, rgba(239,68,68,.18), transparent 28%),
    radial-gradient(circle at right,    rgba(59,130,246,.16), transparent 30%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 3;                                  /* on top of .hero-media so grid extends across the image */
  pointer-events: none;
  opacity: .10;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 140px 140px;                /* wider cells — fewer lines */
}
.hero-media {
  display: none;
  position: absolute; inset: 0 0 0 auto;
  width: 50%;
  overflow: hidden;
}
.hero-media .overlay {
  position: absolute; inset: 0;
  /* Layered blend: a soft radial fade at the left edge plus a multi-stop
     horizontal gradient. Pushes the dark navy further into the photo so
     the reveal is gradual rather than a hard 50/50 split. */
  background:
    radial-gradient(ellipse 70% 120% at -10% 50%, rgba(2,6,23,.92), transparent 55%),
    linear-gradient(to left,
      rgba(2,6,23,0) 0%,
      rgba(2,6,23,.18) 25%,
      rgba(2,6,23,.55) 55%,
      rgba(2,6,23,.88) 80%,
      #020617 100%);
  z-index: 2;
}
.hero-media .hero-slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-media .hero-slide.is-active { opacity: .5; }

/* Vertical accent — soft glowing red column at the boundary between the
   copy half and the photo half. The column is a wide soft glow; the thin
   line inside breathes in opacity. Hidden on mobile (where .hero-media is
   also hidden, so the boundary doesn't exist). */
.hero-divider {
  display: none;
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 80px);
  width: 160px;
  z-index: 4;
  pointer-events: none;
  background: radial-gradient(ellipse 80px 90% at center,
    rgba(239,68,68,.18) 0%,
    rgba(239,68,68,.08) 35%,
    transparent 70%);
  animation: heroDividerBreath 5s ease-in-out infinite;
  will-change: opacity, transform;
}
.hero-divider-line {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(248,113,113,.65) 25%,
    rgba(248,113,113,.85) 50%,
    rgba(248,113,113,.65) 75%,
    transparent 100%);
  box-shadow:
    0 0 4px rgba(239,68,68,.6),
    0 0 12px rgba(239,68,68,.35);
  animation: heroDividerPulse 4.5s ease-in-out infinite;
  will-change: opacity;
}
@keyframes heroDividerBreath {
  0%, 100% { opacity: .9; transform: scaleY(1); }
  50%      { opacity: .55; transform: scaleY(1.015); }
}
@keyframes heroDividerPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .45; }
}

/* Animated red blobs — large soft accent shapes drifting in the hero.
   Animate only transform (compositor-accelerated). No filter/drop-shadow on
   the animated element — those force per-frame repaints and cause jank. */
.hero-blob {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}
.hero-blob-primary {
  left: -16rem;
  bottom: -8rem;
  width: 44rem;
  opacity: .42;
  animation: heroBlobDrift 16s ease-in-out infinite alternate;
}
.hero-blob-accent {
  right: 36%;
  top: 6rem;
  width: 12rem;
  opacity: .18;
  animation: heroBlobDriftReverse 20s ease-in-out infinite alternate;
}
@keyframes heroBlobDrift {
  from { transform: translate3d(0, 0, 0) rotate(-8deg) scale(1); }
  to   { transform: translate3d(2rem, -1.5rem, 0) rotate(6deg) scale(1.05); }
}
@keyframes heroBlobDriftReverse {
  from { transform: translate3d(0, 0, 0) rotate(4deg) scale(1); }
  to   { transform: translate3d(-2rem, 1rem, 0) rotate(-10deg) scale(.95); }
}

/* Curved bottom edge — softens the transition from hero into next section */
.hero-curve {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 80px;
  z-index: 4;
  display: block;
  pointer-events: none;
}

/* Reduce motion: stop the animations for users who request it */
@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-divider,
  .hero-divider-line { animation: none; }
}

.hero-fullbleed-shell {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4rem;
  padding: 10rem 0 8rem;
}
.hero-copy-side { width: 100%; }
.hero-copy-inner {
  max-width: 46rem;
  padding-left: clamp(2rem, 6vw, 8rem);
}
.hero-stats-shell { position: relative; z-index: 2; }

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  padding: .65rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red-soft);
  backdrop-filter: blur(8px);
}
.hero-pill-dot {
  width: .5rem; height: .5rem;
  border-radius: 999px;
  background: #ef4444;
}
.hero h1 { margin: 1rem 0 0; font-size: 3rem; line-height: 1.02; }
.hero p.lead { max-width: 39rem; font-size: 1.03rem; color: #cbd5e1; }
.hero-inner > div:first-child { max-width: 41rem; }

.trust-strip, .hero-actions, .hero-stats {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.trust-strip span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: .7rem 1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.hero-actions { margin-top: 2rem; }
.hero-actions .site-button {
  padding: 1rem 2rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Stats panel header ties the four numbers to the company narrative. The
   eyebrow + tagline mirrors the .eyebrow treatment used elsewhere, so the
   stats read as a labelled "Operating snapshot" rather than as a floating
   cluster of boxes. */
.hero-stats-header {
  margin-bottom: 1.25rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(248,113,113,.35);
  position: relative;
}
.hero-stats-header::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3.5rem;
  height: 2px;
  background: var(--red);
}
.hero-stats-tag {
  margin: .35rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
/* Stat tiles: minimal left-rail accent only — no box backgrounds or borders
   so the hero image behind shows through cleanly. Featured stat uses a
   thicker red rail for emphasis. */
.hero-stat {
  background: transparent;
  border: 0;
  border-left: 2px solid rgba(255,255,255,.20);
  padding: .35rem 0 .45rem 1.1rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color .25s ease;
}
.hero-stat.featured {
  border-left-color: var(--red);
  border-left-width: 3px;
  padding-left: 1rem;
}
.hero-stat:hover { border-left-color: var(--red-soft); }
.hero-stat strong { display: block; font-size: 2rem; color: #fff; }
.hero-stat span {
  display: block; margin-top: .5rem;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: #cbd5e1;
}

/* ---- 07. Section tones --------------------------------------------------- */
.section { padding: 5rem 0; }
.section-light  { background: var(--white); }
.section-soft   { background: var(--light); }
.section-dark   { background: var(--navy-3); color: #fff; }
.section-indigo { background: #312e81; color: #fff; position: relative; overflow: hidden; }

.eyebrow {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: 1rem;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow.center { justify-content: center; }
.eyebrow.light  { color: var(--red-soft); }
.eyebrow .line  { width: 2.5rem; height: 1px; background: currentColor; }

.section h2 { margin: 0; font-size: 2.3rem; line-height: 1.15; }
.section p  { color: var(--slate); }
.section-dark p,
.section-indigo p { color: #cbd5e1; }

/* ---- 08. Generic grid + card primitives ---------------------------------- */
.grid-2 { display: grid; gap: 3rem; }

.intro-image-wrap { position: relative; }
.intro-image {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line-soft);
  box-shadow: var(--shadow-lift);
}
.intro-image img {
  width: 100%; height: 100%; min-height: 560px;
  object-fit: cover;
}

.fact-card {
  position: absolute;
  right: 0; bottom: -2rem;
  display: none;
  max-width: 18rem;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
}
.fact-card p { margin: .2rem 0; font-size: .92rem; }
.fact-card .label,
.mini-label {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em;
  color: var(--red);
}

.highlight-grid, .cards-3, .cards-4,
.proof-grid, .projects-grid, .logos-grid {
  display: grid; gap: 1rem;
}
.highlight-item, .soft-card, .white-card,
.proof-card, .project-card, .logo-card {
  border: 1px solid var(--line);
  background: #fff;
}
.highlight-item {
  display: flex; gap: .75rem;
  padding: 1rem;
  background: var(--light);
}
.dot {
  margin-top: .35rem;
  width: .65rem; height: .65rem;
  background: var(--red);
  flex: 0 0 auto;
}

.soft-panel {
  margin-top: 2rem;
  display: grid; gap: 1rem;
  border: 1px solid var(--line);
  background: var(--light);
  padding: 1.5rem;
}

/* ---- 09. "How We Work" full-bleed split panel --------------------------- */
.how-wrap {
  display: grid; gap: 3rem;
  position: relative; z-index: 1;
}
.icon-list-item {
  display: flex; align-items: flex-start; gap: 1.25rem;
  margin-bottom: 3rem;
}
.icon-box {
  display: flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem;
  background: var(--red);
  flex: 0 0 auto;
}
.icon-box img { width: 3rem; height: 3rem; mix-blend-mode: luminosity; }

.how-section { padding: 0; }
.how-shell {
  display: grid; gap: 0; align-items: stretch;
  overflow: hidden;
}
.how-shell-fullbleed {
  width: 100vw;
  position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}
.how-content {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, #1b2f6b 0%, #142552 100%);
  padding: 4.2rem 3rem 4.2rem clamp(1.2rem, 4vw, 6rem);
}
.how-header { max-width: 38rem; }
.how-eyebrow { margin-bottom: 1rem; }
.how-title { font-size: clamp(2.2rem, 3vw, 3.2rem); color: #fff; }
.how-intro {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.02rem; line-height: 1.85;
  color: #dbe7ff !important;
}
.how-feature-list {
  display: grid; gap: 1rem;
  margin-top: 2rem;
  max-width: 39rem;
}
.how-feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem; align-items: flex-start;
  padding: 1.15rem 1.1rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.how-feature-item p {
  margin: .55rem 0 0;
  max-width: 32rem;
  color: #dbe7ff !important;
}
.how-feature-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.25;
}
.how-media {
  position: relative;
  min-height: 420px;
  background: #111827;
}

.how-media-image {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(20,37,82,.72) 0%,
      rgba(20,37,82,.34) 12%,
      rgba(17,24,39,.1) 34%,
      rgba(17,24,39,.06) 100%),
    url('../img/how-we-work.webp') center/cover no-repeat;
}
.how-media::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 140px;
  background: linear-gradient(90deg,
    rgba(20,37,82,1) 0%,
    rgba(20,37,82,.8) 32%,
    rgba(20,37,82,0) 100%);
  z-index: 1;
}

/* ---- 10. Proof / execution dark section --------------------------------- */
.proof-shell { display: grid; gap: 3rem; }
.ledger {
  margin-top: 2rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 1.5rem;
}
.ledger-grid { display: grid; gap: .75rem; }
.ledger-grid div { display: flex; gap: .75rem; }
.proof-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  padding: 1.5rem;
}
.proof-card h3 { margin: 0; font-size: 1.45rem; color: #fff; }

.meta-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.meta-chips span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: .6rem .8rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e2e8f0;
}

.execution-section {
  background: linear-gradient(135deg, #07111d 0%, #0d1625 100%);
}
.execution-intro {
  display: grid; gap: 1.5rem;
  align-items: end;
  margin-bottom: 2.8rem;
}
.execution-intro-copy {
  max-width: 42rem; margin: 0;
  color: #cbd5e1 !important;
}
.execution-grid { display: grid; gap: 1.2rem; }
.execution-anchor-card,
.execution-mini-card {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: 1.6rem;
}
.execution-anchor-card {
  position: relative;
  padding: 2rem 2rem 2.1rem;
  border-left: 4px solid var(--red);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  box-shadow: 0 24px 48px rgba(2,6,23,.28);
}
.execution-anchor-card::after {
  content: "";
  position: absolute; inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(248,113,113,.65), rgba(248,113,113,0));
}
.execution-mini-card { background: rgba(255,255,255,.035); }
.execution-anchor-card h3,
.execution-mini-card h3 {
  margin: .55rem 0 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}
.execution-anchor-card h3 { font-size: 1.72rem; max-width: 18ch; }
.execution-anchor-card p,
.execution-mini-card p {
  margin-top: 1rem;
  color: #cbd5e1 !important;
}
.execution-stack { display: grid; gap: 1.2rem; }
.execution-strip {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 1.85rem;
}
.execution-strip span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  padding: .75rem .95rem;
  font-size: .74rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #e2e8f0;
}

/* ---- 11. Services frame + supporting cards ------------------------------ */
.services-frame-intro {
  max-width: 52rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.services-frame-intro p {
  margin: 1.5rem auto 0;
  max-width: 46rem;
}
.services-primary-grid {
  display: grid; gap: 1rem;
  margin-bottom: 1.2rem;
}
.service-primary-card {
  padding: 1.9rem 1.65rem;
  border-top: 4px solid var(--red);
}
.service-primary-card h3 { margin: 0; font-size: 1.9rem; line-height: 1.15; }
.service-chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.service-chip-row span {
  display: inline-flex;
  padding: .5rem .7rem;
  border: 1px solid var(--line);
  background: var(--light);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: #334155;
}
.service-support-grid { margin-top: 1rem; }
.service-support-grid .service-card {
  background: #fbfcfe;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
}
.service-support-grid .service-card h3 {
  font-size: 1.38rem !important;
  line-height: 1.2;
}
.service-support-panel { margin-top: 1.65rem; }

/* ---- 12. Philosophy cards ----------------------------------------------- */
.philosophy-grid { display: grid; gap: 2.3rem; align-items: start; }
.philosophy-card-grid { display: grid; gap: 1rem; }
.philosophy-card {
  padding: 1.75rem;
  border-top: 3px solid rgba(220,38,38,.18);
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
  transition: .24s transform, .24s box-shadow, .24s border-color;
}
.philosophy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15,23,42,.1);
  border-color: rgba(220,38,38,.32);
}
.philosophy-card h3 { margin: 0; color: var(--ink); font-size: 1.2rem; }
.philosophy-card p { margin: .75rem 0 0; max-width: 24ch; }

/* ---- 13. Service / project / footprint cards ---------------------------- */
.service-card, .footprint-card,
.project-card, .logo-card, .leader-card {
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.service-card { transition: .3s; }
.service-card:hover,
.project-card:hover { transform: translateY(-3px); }

.service-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.service-head span {
  display: inline-flex;
  border: 1px solid #fee2e2;
  background: #fef2f2;
  padding: .55rem .8rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red-dark);
}
.service-head .bar {
  height: .25rem; width: 4rem;
  background: var(--red);
  transition: .3s;
}
.service-card:hover .bar { width: 6rem; }

.project-card img { width: 100%; height: 18rem; object-fit: cover; }
.project-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--slate);
}
.project-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .45rem 0;
}

/* ---- 14. Network/chip components ---------------------------------------- */
.network-box, .enquiry-box {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.chip-wrap { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--light);
  padding: .8rem 1rem;
  font-size: .95rem; font-weight: 600;
  color: #334155;
}

/* ---- 15. CTA + logos ---------------------------------------------------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band p { color: #fee2e2; }

.logo-card { background: var(--light); text-align: center; }
.logo-card img {
  max-height: 56px; width: auto; max-width: 100%;
  margin: 0 auto;
  filter: grayscale(1);
  transition: .3s;
}
.logo-card:hover img { filter: grayscale(0); }

/* ---- 16. Footer --------------------------------------------------------- */
/* Slim 4-column footer: brand+tagline+social / sitemap / what-we-do /
   contact details. Single CTA-free design — pages own their own CTAs. */
.site-footer {
  background: linear-gradient(180deg, #09101c 0%, #0b1320 100%);
  color: #fff;
}

/* .footer-grid is still used outside the footer (home page footprint
   section), so keep the base display rule generic. */
.footer-grid { display: grid; gap: 1.4rem; }

.footer-main.footer-slim {
  display: grid; gap: 2.5rem;
  padding: 3.5rem 0 2.5rem;
  align-items: start;
}

.footer-col p,
.footer-col li,
.footer-col a { color: #cbd5e1; }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }

.footer-col-title {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}

/* Brand column (col 1) — wider, contains logo, name, tagline, social */
.footer-brand-col { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-brand {
  display: flex; align-items: center; gap: .8rem;
  color: #fff;
  text-decoration: none;
}
.footer-brand img { width: 48px; height: 48px; }
.footer-brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
  color: #fff;
}
.footer-brand-sub {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.55);
  margin: .25rem 0 0;
}
.footer-tagline {
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 22rem;
}

/* Navigation columns */
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin: .55rem 0; }
.footer-links a { font-size: .95rem; }

/* Contact column with SVG icons */
.footer-contact-col { display: flex; flex-direction: column; }
.footer-contact-list {
  display: grid; gap: .85rem;
  margin: 0;
  font-style: normal; /* <address> element */
  color: #cbd5e1;
}
.footer-contact-list p {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  align-items: start;
  gap: .65rem;
  margin: 0;
  line-height: 1.55;
  font-size: .92rem;
}
.footer-contact-list a { color: #cbd5e1; }
.footer-contact-list a:hover { color: #fff; }
.footer-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--red-soft);
  margin-top: .15rem;
}
.footer-icon svg { width: 16px; height: 16px; display: block; }

/* Bottom strip — copyright on left, back-to-top on right */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.1rem 0;
  color: #94a3b8;
  font-size: .85rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-bottom-inner p { margin: 0; }
.footer-top-link {
  color: rgba(255,255,255,.6);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-top-link:hover { color: #fff; }

/* ---- 17. Page banner ---------------------------------------------------- */
.page-banner {
  position: relative;
  overflow: hidden;
  background: #020617;
  color: #fff;
  padding: 11rem 0 5rem;
}
.page-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top left, rgba(239,68,68,.2), transparent 28%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #111827 100%);
}
.page-banner::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .08;
  background-image:
    linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 72px 72px;
}
.page-banner-inner {
  position: relative; z-index: 1;
  max-width: 64rem; margin: 0 auto;
  text-align: center;
}
.crumbs {
  margin-top: 2rem;
  display: inline-flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: .75rem;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  padding: .85rem 1rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
  backdrop-filter: blur(8px);
}
.crumb-dot {
  width: .4rem; height: .4rem;
  border-radius: 999px;
  background: var(--red-soft);
}

/* ---- 17b. Contact page (full redesign) --------------------------------- */
/* Four acts: editorial hero, conversation channels, visit+map, slim form. */

/* ACT 1 — Editorial hero */
.contact-hero {
  position: relative;
  background: #020617;
  color: #fff;
  overflow: hidden;
  padding: 11rem 0 6rem;
}
.contact-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at top left, rgba(239,68,68,.18), transparent 28%),
    radial-gradient(circle at right,    rgba(59,130,246,.10), transparent 35%),
    linear-gradient(135deg, #020617 0%, #0b1320 45%, #0f172a 100%);
  z-index: 0;
}
.contact-hero::after {
  content: "";
  position: absolute; inset: 0;
  opacity: .08;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
  background-size: 140px 140px;
}
.contact-hero-blob {
  left: auto;
  right: -18rem;
  bottom: -10rem;
  width: 42rem;
  opacity: .28;
  z-index: 1;
}
.contact-hero-shell {
  position: relative;
  z-index: 2;
  display: grid; gap: 4rem;
}
.contact-hero-copy { max-width: 42rem; }
.contact-hero-copy h1 {
  margin: 1rem 0 1.25rem;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.contact-hero-copy .lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 38rem;
}
.contact-hero-actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 2.25rem;
}

/* Right-side promise card — premium stat block */
.contact-hero-promise {
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.25rem 2rem;
  display: grid; gap: 1.4rem;
}
.contact-promise-row p { margin: 0; }
.contact-promise-figure {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  font-feature-settings: "tnum";
}
.contact-promise-unit {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--red-soft);
  letter-spacing: 0;
}
.contact-promise-figure-sm {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.contact-promise-wat {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--red-soft);
  margin-left: .25rem;
}
.contact-promise-label {
  margin-top: .5rem !important;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #94a3b8;
}
.contact-promise-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(248,113,113,.4), rgba(255,255,255,0));
}
.contact-promise-quote {
  font-size: 1.02rem;
  line-height: 1.55;
  color: #e2e8f0;
  font-style: italic;
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}
.contact-hero-crumbs {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin: 3rem 0 0;
  margin-left: max(1rem, calc((100% - 1180px) / 2 + 1rem));
}

/* ACT 2 — Conversation channels */
.contact-channels-section { padding: 6rem 0; }
.contact-channels-grid {
  display: grid; gap: 1.25rem;
  margin-top: 3rem;
}
.contact-channel-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow-soft);
  transition: .3s transform, .3s box-shadow, .3s border-color;
  position: relative;
  overflow: hidden;
}
.contact-channel-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.contact-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(15,23,42,.12);
  border-color: rgba(220,38,38,.3);
}
.contact-channel-card:hover::before { transform: scaleX(1); }
.contact-channel-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--red);
  margin-bottom: .5rem;
}
.contact-channel-icon img {
  width: 2rem; height: 2rem;
  filter: brightness(0) invert(1);  /* white SVGs against red bg */
}
.contact-channel-card h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.25;
}
.contact-channel-card p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
  flex: 1;
}
.contact-channel-link {
  display: inline-flex;
  align-items: center; gap: .4rem;
  margin-top: 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap .2s ease;
}
.contact-channel-link:hover { gap: .7rem; color: var(--red-dark); }

/* ACT 3 — Visit + map split */
.contact-visit-section { padding: 5rem 0; }
.contact-visit-grid {
  display: grid; gap: 2rem;
  align-items: stretch;
}
.contact-map-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px rgba(15,23,42,.10);
  min-height: 460px;
  background: #020617;
}
.contact-map-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
.contact-visit-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.contact-visit-card h2 {
  margin: .85rem 0 .85rem;
  font-size: 2rem;
  line-height: 1.15;
}
.contact-visit-lead {
  margin: 0 0 1.75rem;
  color: var(--slate);
  line-height: 1.6;
}
.contact-visit-details {
  display: grid; gap: 1.1rem;
  margin: 0;
}
.contact-visit-details > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.contact-visit-details > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.contact-visit-details dt {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  margin: .2rem 0 0;
}
.contact-visit-details dd {
  margin: 0;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--ink);
}
.contact-visit-details dd a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.contact-visit-details dd a:hover { border-color: var(--red); }

/* ACT 4 — Slim form */
.contact-form-section { padding: 5rem 0 7rem; }
.contact-form-container {
  max-width: 44rem;
  margin: 0 auto;
}
.contact-form-intro { text-align: center; margin-bottom: 2.5rem; }
.contact-form-intro h2 {
  font-size: 2rem;
  margin: .5rem 0;
}
.contact-form-intro p {
  color: var(--slate);
  margin: 0;
}
.contact-form-slim {
  background: var(--light);
  border: 1px solid var(--line);
  padding: 2.5rem;
  display: grid; gap: 1.25rem;
}
.contact-form-row {
  display: grid; gap: 1.25rem;
}
.contact-form-field label {
  display: block;
  margin-bottom: .45rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #475569;
}
.contact-form-field input,
.contact-form-field textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: .9rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form-field input:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,.12);
}
.contact-form-slim button[type="submit"] {
  justify-self: start;
  margin-top: .5rem;
}

/* Honeypot: visually + accessibly hidden, but real <input> so bots fill it. */
.contact-form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
}

/* Submit status message — inline below the button. */
.contact-form-status {
  margin: .25rem 0 0;
  min-height: 1.2em;
  font-size: .92rem;
  line-height: 1.5;
}
.contact-form-status[data-state="ok"]  { color: #16a34a; }
.contact-form-status[data-state="err"] { color: var(--red-dark); }

/* Disabled submit state */
.contact-form-slim button[type="submit"][disabled] {
  opacity: .65;
  cursor: not-allowed;
}

/* Desktop layout adjustments */
@media (min-width: 1024px) {
  .contact-hero-shell {
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr);
    gap: 4.5rem;
    align-items: end;
  }
  .contact-channels-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
  .contact-visit-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 2.5rem;
  }
  .contact-map-frame { min-height: 540px; }
  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1023px) {
  .contact-hero { padding: 8rem 0 4rem; }
  .contact-hero-shell { grid-template-columns: 1fr; }
  .contact-hero-crumbs { margin-left: 1rem; }
  .contact-map-frame { min-height: 340px; }
  .contact-form-slim { padding: 1.75rem; }
}

/* ---- 18. Contact form (legacy — used elsewhere) ------------------------- */
.contact-grid { display: grid; gap: 3rem; }
.form-wrap {
  border: 1px solid var(--line);
  background: var(--light);
  padding: 1.5rem;
}
label {
  display: block;
  margin-bottom: .5rem;
  font-size: .92rem; font-weight: 600;
  color: #1e293b;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 1rem;
  color: var(--ink);
  outline: none;
  transition: .2s;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--ink);
}
.map-wrap { position: relative; }
.map-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(15,23,42,.2);
  pointer-events: none;
  transition: opacity .5s;
}
.map-wrap:hover::before { opacity: 0; }
iframe { border: 0; width: 100%; height: 24rem; }

/* ---- 19. Logo carousel (industry relationships) ------------------------- */
.clients-world-section { position: relative; overflow: hidden; }
.clients-world-section .container { position: relative; z-index: 1; }

.logo-carousel {
  overflow: hidden;
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
}
.logo-carousel::before,
.logo-carousel::after {
  content: "";
  position: absolute; top: 0; bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel::before { left: 0;  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }
.logo-carousel::after  { right: 0; background: linear-gradient(270deg, #fff 0%, rgba(255,255,255,0) 100%); }
.logo-carousel-track {
  display: flex; gap: .9rem;
  width: max-content;
  animation: logoMarquee 26s linear infinite;
  align-items: stretch;
}
.logo-carousel:hover .logo-carousel-track { animation-play-state: paused; }
.logo-carousel .logo-card {
  flex: 0 0 220px;
  padding: 0; min-height: 0;
  box-shadow: none;
  background: transparent;
  border: none;
}
.logo-card-inner {
  height: 62px;
  display: flex; align-items: center; justify-content: center;
  padding: .35rem .8rem;
  border: none; background: transparent; box-shadow: none;
}
.logo-carousel .logo-card img {
  max-height: 32px;
  width: auto; max-width: 100%;
  margin: 0 auto;
  filter: grayscale(1);
  transition: .3s;
}
.logo-carousel .logo-card:hover img { filter: grayscale(0); }

@keyframes logoMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-50% - .45rem)); }
}

/* ---- 20. Overview premium section --------------------------------------- */
.overview-premium-section { padding-top: 6rem; padding-bottom: 6rem; }
.overview-premium-grid { display: grid; gap: 3rem; align-items: start; }
.overview-media-stack { position: relative; }
.overview-image-frame {
  position: relative;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 28px 70px rgba(15,23,42,.12);
}
.overview-image-frame img {
  width: 100%; height: 100%; min-height: 640px;
  object-fit: cover;
}
.overview-image-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.04), rgba(15,23,42,.18));
}
.overview-facts-panel {
  position: absolute;
  right: -1.25rem; bottom: -1.5rem;
  max-width: 20rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15,23,42,.14);
}
.overview-facts-list { display: grid; gap: .85rem; margin-top: 1rem; }
.overview-facts-list p { margin: 0; color: #334155; line-height: 1.65; }
.overview-copy-panel h2 {
  font-size: 3.15rem; line-height: 1.08;
  max-width: 46rem;
}
.overview-copy-panel p {
  font-size: 1.03rem; line-height: 1.9;
  color: var(--slate);
}
.overview-lead { margin-top: 1.75rem; }
.overview-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 2.2rem;
}
.overview-stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem; align-items: start;
  border: 1px solid var(--line);
  background: var(--light);
  padding: 1.35rem 1.25rem;
  transition: .28s transform, .28s box-shadow, .28s border-color;
}
.overview-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
  border-color: #cbd5e1;
}
.overview-stat-marker {
  width: .85rem; height: .85rem;
  background: var(--red);
  display: inline-block;
  margin-top: .35rem;
}
.overview-stat-card h3 {
  margin: 0;
  font-size: 1.18rem; line-height: 1.35;
  color: var(--ink);
}
.overview-stat-card p {
  margin: .5rem 0 0;
  font-size: .96rem; line-height: 1.75;
  color: var(--slate);
}
.overview-actions { margin-top: 2rem; }

/* ---- 21. Responsive ----------------------------------------------------- */
@media (min-width: 1024px) {
  .header-topline-inner { display: flex; }
  .nav-links { display: flex; }
  .hero-media { display: block; }
  .hero-divider { display: block; }

  /* Push the hero photo + red divider glow down so the topline never sits
     over them; the nav bar still overlays the top portion of the photo for
     the glass effect. ~6rem clears the topline + ~half the nav bar. The
     hero's dark navy gradient (.hero::before) still extends to viewport top,
     so the topline keeps its glass-on-navy look. */
  .hero-media,
  .hero-divider { top: 6rem; }

  /* Hero height on desktop. 90vh is the sweet spot — substantial presence
     on first load without occupying the entire viewport. Capped at 1000px so
     on a 1440p+ monitor it doesn't sprawl. Tune the 90vh value first if you
     want it taller/shorter; the cap is a guardrail. */
  .hero { min-height: min(85vh, 960px); }
  .hero-fullbleed-shell {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
    align-items: end;
    padding: 13rem 0 11rem;
  }
  .hero-stats-shell { grid-column: 2; }

  .grid-2 { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .fact-card { display: block; }

  .proof-shell { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .cards-3     { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-4     { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos-grid     { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .footer-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: end; }
  .footer-main.footer-slim {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, .8fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
  .footer-bottom-inner {
    flex-direction: row;
    align-items: center;
  }

  .contact-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }

  .how-content { padding: 4.2rem 3.2rem 4.2rem clamp(2rem, 6vw, 8rem); }
  .how-media   { min-height: 640px; }

  .execution-intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .execution-grid  { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .8fr); }

  .services-primary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .philosophy-grid       { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .philosophy-card-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .footer-enquiry-band { grid-template-columns: minmax(0, .95fr) minmax(0, 1fr) auto; align-items: center; }

  .overview-premium-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

@media (max-width: 1023px) {
  .header-main { padding: 1rem 0; }

  /* Hamburger button visible on mobile/tablet. */
  .nav-toggle { display: inline-flex; }

  /* On mobile, the Contact Us CTA in the bar is hidden — it reappears as
     the last (highlighted) item inside the hamburger panel. */
  .nav-cta { display: none !important; }

  /* Highlighted CTA inside the drop panel. */
  .nav-mobile-cta {
    display: block;
    margin: .5rem 1rem .25rem;
    padding: .95rem 1rem;
    background: var(--red, #ef4444);
    color: #fff !important;
    border-radius: .55rem;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 0 !important;
  }
  .nav-mobile-cta:hover { filter: brightness(1.08); }

  /* Nav links collapse into a drop panel below the header-bar, revealed when
     .site-header.is-open is set by the hamburger toggle. */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 27, 56, .96);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 24px 48px rgba(2,6,23,.4);
    padding: .5rem 0;
    z-index: 1001;
  }
  .site-header.is-open .nav-links { display: flex; }
  .nav-links a {
    display: block;
    padding: 1rem 1.4rem;
    font-size: .95rem;
    letter-spacing: .12em;
    color: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(255,255,255,.05);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active { color: #fff; }
  /* Drop in a left accent stripe for the active item instead of the desktop
     underline-after rule, which doesn't read well in a stacked menu. */
  .nav-links a.active::after { display: none; }
  .nav-links a.active {
    box-shadow: inset 3px 0 0 var(--red, #ef4444);
  }

  .hero h1 { font-size: 2.4rem; }
  .section h2 { font-size: 2rem; }
  .hero-copy-inner { padding-left: 1rem; max-width: none; }

  .how-shell,
  .how-shell-fullbleed {
    grid-template-columns: 1fr;
    width: 100%;
    left: auto; right: auto;
    margin-left: 0; margin-right: 0;
  }
  .how-content { padding: 2.4rem 1.4rem; }
  .how-media { min-height: 360px; }
  .how-media::before {
    width: 100%; height: 88px;
    inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(31,47,119,0) 0%, rgba(31,47,119,1) 100%);
  }

  .footer-top-actions { grid-template-columns: 1fr; }
  .soft-panel,
  .service-support-panel { grid-template-columns: 1fr !important; }

  .overview-facts-panel {
    position: relative;
    right: auto; bottom: auto;
    max-width: none;
    margin-top: 1rem;
  }
  .overview-copy-panel h2 { font-size: 2.35rem; }
  .overview-stat-grid { grid-template-columns: 1fr; }

  .logo-carousel .logo-card { flex: 0 0 170px; }
  .logo-carousel::before,
  .logo-carousel::after { width: 30px; }
  .logo-card-inner { height: 58px; padding: .3rem .5rem; }
  .logo-carousel .logo-card img { max-height: 28px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; line-height: 1.1; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-fullbleed-shell { padding: 8rem 0 5rem; gap: 2rem; }
  .page-banner { padding: 8rem 0 3rem; }
  .page-banner h1 { font-size: 2.2rem !important; }
  .section { padding: 3rem 0; }
  .footer-top { padding: 2.5rem 0; }
  .footer-top-title { font-size: 2rem; }
}
