/* =====================================================================
   Ríalec Electrical and Renewables
   "Engineered Energy" - editorial-industrial, navy-dominant, electric
   green accent. Clash Display + Satoshi (Fontshare). Vanilla CSS.
   ===================================================================== */

:root {
  /* ---- Brand palette (fixed) ---- */
  --navy: #061525;
  --deep-navy: #0B1F33;
  --green: #5EAD2F;
  --green-dark: #4E9226;
  --light-green: #EEF8E9;
  --white: #FFFFFF;
  --off-white: #F7F9FA;
  --text: #1F2D3A;
  --muted: #65717D;
  --border: #DDE3E8;

  /* ---- Derived dark-theme tints ---- */
  --navy-800: #081B2E;
  --navy-700: #0E2438;
  --navy-600: #133050;
  --ink-100: #d6e0ec;   /* light text on navy */
  --ink-200: #9fb0c4;   /* muted text on navy */
  --ink-300: #6f8197;   /* faint text on navy */
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --green-soft: rgba(94, 173, 47, 0.14);
  --green-line: rgba(94, 173, 47, 0.40);

  /* ---- Light-theme surfaces ---- */
  --paper: #FBFCFC;
  --paper-2: #EEF2F1;
  --card: #FFFFFF;
  --line: #E4E9EC;

  /* ---- Type ---- */
  --display: "Clash Display", "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* ---- Scale ---- */
  --container: 1240px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --header-h: 84px;
  --space: clamp(3.5rem, 8vw, 7rem);

  --shadow-sm: 0 1px 2px rgba(6, 21, 37, 0.06), 0 2px 6px rgba(6, 21, 37, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 21, 37, 0.10);
  --shadow-lg: 0 30px 60px -20px rgba(6, 21, 37, 0.35);
  --shadow-green: 0 12px 30px -8px rgba(94, 173, 47, 0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* whole-word wrapping: never hyphenate or split a word across lines */
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
  word-break: normal;
  text-wrap: pretty;
}

img, svg { max-width: 100%; height: auto; display: block; }
svg { stroke-linecap: round; stroke-linejoin: round; }

a { color: var(--green-dark); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

p { margin: 0 0 1rem; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
em { font-style: normal; color: var(--green-dark); }

::selection { background: var(--green); color: #fff; }

/* anchor targets clear the sticky header */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section { padding: var(--space) 0; position: relative; }

/* Section themes */
.bg-navy {
  background:
    radial-gradient(120% 90% at 85% -10%, var(--navy-600) 0%, transparent 55%),
    radial-gradient(90% 80% at -5% 110%, var(--navy-700) 0%, transparent 50%),
    var(--navy);
  color: var(--ink-200);
  position: relative;
}
.bg-navy::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}
.bg-navy > .container { position: relative; z-index: 1; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

.bg-off { background: var(--paper-2); }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--green); color: #fff;
  padding: 0.75rem 1rem; z-index: 1300;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typographic helpers ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-dark);
}
.kicker::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.bg-navy .kicker { color: #7fce4e; }
.bg-navy .kicker::before { background: var(--green); }

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.headline {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.bg-navy .lede { color: var(--ink-200); }
.big {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--navy);
  overflow-wrap: normal;
}
.accent {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: -0.01em;
}
.arrow-link svg { width: 20px; height: 20px; transition: transform .25s ease; }
.arrow-link:hover svg { transform: translateX(5px); }
.bg-navy .arrow-link { color: #7fce4e; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: 1rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 52px;
  transition: transform .18s ease, background-color .2s ease, color .2s ease,
              border-color .2s ease, box-shadow .25s ease;
}
.btn svg { width: 19px; height: 19px; flex: none; transition: transform .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green); color: #fff; box-shadow: var(--shadow-green); }
.btn--primary:hover { background: var(--green-dark); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--deep-navy); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent; color: var(--navy);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy); background: var(--white); box-shadow: var(--shadow-sm); }

.btn--ghost-light {
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-color: var(--hairline-strong);
}
.btn--ghost-light:hover { border-color: var(--green); background: rgba(94,173,47,0.12); }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy); background: var(--off-white); }

.btn--outline-light { background: transparent; color: #fff; border-color: var(--hairline-strong); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn--danger { background: #c0392b; color: #fff; }
.btn--danger:hover { background: #a93226; }

.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: 0.6rem 1rem; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, height .35s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 21, 37, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--hairline), 0 16px 40px -24px rgba(0,0,0,0.7);
  height: 72px;
}
.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 50px;
  width: auto;
  background: #fff;
  padding: 6px 12px;
  border-radius: 13px;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.55);
  transition: height .35s ease;
}
.site-header.is-scrolled .brand img { height: 44px; }

.nav-desktop { display: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.9rem;
  color: var(--ink-100);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.25rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: #fff; }

.header-cta { display: none; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 13px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  background: var(--navy-800);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  box-shadow: var(--shadow-lg);
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
  transform: translateY(-14px);
  opacity: 0; visibility: hidden;
  transition: transform .32s ease, opacity .25s ease, visibility .25s;
  z-index: 999;
}
.nav-mobile.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.nav-mobile a {
  display: block;
  padding: 1rem 0.25rem;
  color: var(--ink-100);
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--hairline);
}
.nav-mobile a[aria-current="page"] { color: #7fce4e; }
.nav-mobile .btn { margin-top: 1.25rem; text-align: center; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  background:
    radial-gradient(110% 80% at 80% 0%, var(--navy-600) 0%, transparent 55%),
    radial-gradient(80% 70% at 0% 100%, var(--navy-700) 0%, transparent 50%),
    var(--navy);
  overflow: hidden;
  isolation: isolate;
}
#energyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(70% 60% at 50% 40%, transparent 0%, rgba(6,21,37,0.55) 100%),
    linear-gradient(180deg, rgba(6,21,37,0.2), transparent 30%, rgba(6,21,37,0.65) 100%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; max-width: 1100px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-100);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--hairline-strong);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(94,173,47,0.7);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,173,47,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(94,173,47,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,173,47,0); }
}

.hero h1.display {
  color: #fff;
  margin: 1.5rem 0 0;
  max-width: 16ch;
}
.hero h1 .accent { color: #7fce4e; }
.hero h1 .accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.09em;
  background: linear-gradient(90deg, var(--green), transparent);
  border-radius: 2px;
}
.hero-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-100);
  max-width: 54ch;
}
.hero .btn-row { margin-top: 2.25rem; }

.hero-meta {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-meta .item {
  background: rgba(8, 22, 38, 0.55);
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(2px);
}
.hero-meta .label {
  display: flex; align-items: center; gap: 0.5rem;
  color: #fff; font-weight: 700; font-size: 0.98rem;
}
.hero-meta .label svg { width: 18px; height: 18px; color: var(--green); }
.hero-meta .desc { margin-top: 0.25rem; font-size: 0.85rem; color: var(--ink-300); }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 1.5rem; transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-300);
}
.scroll-cue .line {
  width: 1px; height: 38px;
  background: linear-gradient(var(--green), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 40%;
  background: #fff;
  animation: cueDrop 2.2s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(260%); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--navy-800);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 1.1rem 0;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.16);
  padding: 0 1.5rem;
  text-transform: uppercase;
}
.marquee__item .sep {
  display: inline-block;
  width: 9px; height: 9px;
  margin-left: 3rem;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Brand banner (client artwork) ---------- */
.brand-banner {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline);
  line-height: 0;
}
.brand-banner img { width: 100%; height: auto; display: block; }
.banner-band {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  padding-bottom: 0;
}

/* ---------- Statement ---------- */
.statement-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.statement-grid .big em { color: var(--green-dark); }

/* ---------- Section heading cluster ---------- */
.svc-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.svc-head .title-wrap { max-width: 38rem; }
.svc-head .headline { margin: 0.9rem 0 0; }
.svc-head .lede { align-self: end; }

/* ---------- Service rows (editorial) ---------- */
.svc-list { border-top: 1px solid var(--hairline); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0.5rem;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-100);
  transition: padding .3s ease;
  overflow: hidden;
}
.svc-row::before {
  content: "";
  position: absolute; left: -100%; top: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, rgba(94,173,47,0.10), transparent 60%);
  transition: left .4s ease;
  z-index: 0;
}
.svc-row > * { position: relative; z-index: 1; }
.svc-row .num {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--green);
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
}
.svc-row .body h3 {
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  margin: 0;
  transition: transform .3s ease;
}
.svc-row .body p {
  color: var(--ink-300);
  margin: 0.5rem 0 0;
  max-width: 60ch;
  font-size: 0.98rem;
}
.svc-row .go {
  width: 54px; height: 54px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-strong);
  display: grid;
  place-items: center;
  color: #fff;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.svc-row .go svg { width: 22px; height: 22px; }
.svc-row:hover::before { left: 0; }
.svc-row:hover { padding-left: 1.5rem; }
.svc-row:hover .body h3 { transform: translateX(4px); }
.svc-row:hover .go { background: var(--green); border-color: var(--green); transform: rotate(-45deg); }

/* ---------- Disciplines ---------- */
.disciplines {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.discipline {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.discipline::after {
  content: "";
  position: absolute; right: -30%; top: -40%;
  width: 70%; height: 90%;
  border-radius: 50%;
  opacity: 0.10;
  filter: blur(8px);
  transition: opacity .3s ease;
}
.discipline.elec::after { background: var(--navy); }
.discipline.renew::after { background: var(--green); }
.discipline:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.discipline:hover::after { opacity: 0.18; }
.discipline .d-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: #fff;
}
.discipline.elec .d-icon { background: linear-gradient(150deg, var(--deep-navy), var(--navy)); }
.discipline.renew .d-icon { background: linear-gradient(150deg, var(--green), var(--green-dark)); }
.discipline .d-icon svg { width: 28px; height: 28px; }
.discipline h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 0.6rem; }
.discipline p { color: var(--muted); }
.discipline .tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin-top: 1.5rem;
}
.discipline .tags span {
  font-size: 0.8rem; font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.discipline.renew .tags span { background: var(--light-green); color: var(--green-dark); border-color: #cfe8bf; }

/* ---------- Process ---------- */
.process {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.process .step {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.process .step .n {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--green-dark);
  background: var(--light-green);
  border: 1px solid #cfe8bf;
}
.process .step .n::before { content: counter(step, decimal-leading-zero); }
.process .step h3 { font-size: 1.2rem; margin: 0.15rem 0 0.4rem; }
.process .step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cdd6de; }
.card:hover::before { transform: scaleX(1); }

/* Case cards */
.case-card .tagline {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 0.5rem;
}
.case-card h2, .case-card h3 { font-size: 1.5rem; margin: 0 0 0.5rem; }
.case-card dl { margin: 1.25rem 0 0; }
.case-card dt {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-top: 1rem;
}
.case-card dd { margin: 0.2rem 0 0; color: var(--text); }
.badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--light-green);
  color: var(--green-dark);
  font-size: 0.8rem; font-weight: 700;
  border: 1px solid #cfe8bf;
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-out infinite;
}

/* ---------- Gallery tiles ---------- */
.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--paper-2), var(--card));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(6,21,37,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.6;
  pointer-events: none;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile .ic {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--light-green);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px #cfe8bf;
}
.tile .ic svg { width: 26px; height: 26px; }
.tile strong { color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.tile span { font-size: 0.85rem; }

.tile.on-dark {
  border-color: var(--hairline);
  background: rgba(255,255,255,0.03);
  color: var(--ink-300);
}
.tile.on-dark::after { background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px); }
.tile.on-dark .ic { background: rgba(94,173,47,0.16); color: #7fce4e; box-shadow: inset 0 0 0 1px var(--green-line); }
.tile.on-dark strong { color: #fff; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  text-align: center;
  padding: clamp(2.75rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(100% 120% at 80% 0%, var(--navy-600) 0%, transparent 55%),
    radial-gradient(90% 110% at 0% 100%, rgba(94,173,47,0.20) 0%, transparent 55%),
    var(--navy);
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cta h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; margin-inline: auto; }
.cta p { color: var(--ink-200); max-width: 50ch; margin: 1rem auto 0; }
.cta .btn-row { justify-content: center; margin-top: 2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(90% 120% at 85% 0%, var(--navy-600) 0%, transparent 50%),
    radial-gradient(70% 90% at 0% 100%, var(--navy-700) 0%, transparent 50%),
    var(--navy);
  color: var(--ink-200);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.page-hero .display { color: #fff; margin: 1.25rem 0 1rem; max-width: 20ch; }
.page-hero p { color: var(--ink-200); max-width: 62ch; font-size: 1.1rem; }

/* ---------- Service detail (services.html) ---------- */
.svc-detail {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.svc-detail:last-of-type { border-bottom: none; }
.svc-detail .d-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: #fff;
  margin-bottom: 1.25rem;
  background: linear-gradient(150deg, var(--green), var(--green-dark));
}
.svc-detail .d-icon svg { width: 28px; height: 28px; }
.svc-detail h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.6rem; }
.svc-detail > div > p { color: var(--muted); max-width: 52ch; margin-bottom: 1.5rem; }
.svc-detail .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.svc-detail .panel h3 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.ticks { list-style: none; }
.ticks li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text);
}
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.15em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--light-green);
  border: 1px solid #cfe8bf;
}
.ticks li::after {
  content: "";
  position: absolute; left: 6px; top: 0.42em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--green-dark);
  border-bottom: 2px solid var(--green-dark);
  transform: rotate(-45deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-line .ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--light-green);
  color: var(--green-dark);
  box-shadow: inset 0 0 0 1px #cfe8bf;
}
.contact-line .ic svg { width: 22px; height: 22px; }
.contact-line .t { min-width: 0; }
.contact-line .t strong { display: block; color: var(--navy); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-line .t a, .contact-line .t span { color: var(--muted); overflow-wrap: break-word; word-break: normal; }
.contact-line .t a:hover { color: var(--green-dark); }

.info-note {
  margin-top: 1.5rem;
  background: var(--light-green);
  border: 1px solid #cfe8bf;
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.92rem;
  color: var(--green-dark);
}

.social-row { display: flex; gap: 0.65rem; }
.social-row a {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  display: grid; place-items: center;
  color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-row a:hover { background: var(--green); border-color: var(--green); transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; }

/* Form card */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.field .req { color: var(--green-dark); }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192,57,43,0.10);
}
.field-error { color: #c0392b; font-size: 0.84rem; min-height: 1.1em; margin: 0; }
.checkbox { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); }
.checkbox label { font-weight: 500; font-size: 0.92rem; color: var(--text); }
.char-count { font-size: 0.78rem; color: var(--muted); text-align: right; }

.form-status {
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--light-green); color: var(--green-dark); border: 1px solid #cfe8bf; }
.form-status.is-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy-800);
  color: var(--ink-200);
  padding: var(--space) 0 2rem;
}
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--green-dark) 55%, var(--green));
}
.footer-top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--hairline);
}
.footer-brand img {
  height: 64px;
  width: auto;
  background: #fff;
  padding: 9px 14px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
}
.footer-brand p { color: var(--ink-300); max-width: 34ch; margin-bottom: 1.25rem; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a { color: var(--ink-200); font-size: 0.96rem; }
.footer-col a:hover { color: #7fce4e; }
.footer-contact a { display: block; color: #fff; font-weight: 600; margin-bottom: 0.6rem; overflow-wrap: break-word; }
.footer-contact a:hover { color: #7fce4e; }
.footer-bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem;
  justify-content: space-between;
  font-size: 0.85rem; color: var(--ink-300);
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* =====================================================================
   OUR WORK (work gallery + preview cards + lightbox)
   ===================================================================== */
.grid-3 { grid-template-columns: 1fr; }
.work-card { display: flex; flex-direction: column; align-items: flex-start; }
.work-card h3 { margin: 0.25rem 0 0.4rem; font-size: 1.3rem; }
.work-card p { color: var(--muted); margin: 0; }
.work-card .arrow-link { margin-top: 1.1rem; }
.work-card:hover .arrow-link svg { transform: translateX(5px); }

.work-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--paper-2);
  cursor: zoom-in;
  animation: shotIn .5s both;
}
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.shot::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,21,37,0.4), transparent 45%);
  opacity: 0; transition: opacity .3s ease;
}
.shot:hover img { transform: scale(1.06); }
.shot:hover::after { opacity: 1; }
@keyframes shotIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.work-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  text-align: center;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
}
.bg-off .work-empty { background: var(--white); }
.work-empty .ic {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--light-green); color: var(--green-dark);
  box-shadow: inset 0 0 0 1px #cfe8bf;
}
.work-empty .ic svg { width: 26px; height: 26px; }
.work-empty strong { font-family: var(--display); color: var(--navy); font-size: 1.05rem; }

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  background: rgba(6,21,37,0.92);
  backdrop-filter: blur(6px);
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); cursor: zoom-out; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1.25rem;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: rgba(255,255,255,0.08); color: #fff;
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover { background: var(--green); border-color: var(--green); }

/* ---- Mobile carousel (below 600 px) ---- */
@media (max-width: 599px) {
  .work-section .container { overflow: visible; }

  .work-grid {
    /* Switch from grid to horizontal snap scroll */
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding-bottom: 0.5rem;
    /* Bleed out to the container edges so cards reach the screen margin */
    margin-left: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    margin-right: calc(-1 * clamp(1.25rem, 4vw, 2.5rem));
    /* Left padding creates the inset gap before the first card;
       right padding lets the last card clear the screen edge */
    padding-left: calc(clamp(1.25rem, 4vw, 2.5rem) + 0.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
    /* scroll-padding keeps snap targets aligned with the visual inset */
    scroll-padding-left: calc(clamp(1.25rem, 4vw, 2.5rem) + 0.5rem);
    /* Prevent grid from overriding template columns */
    grid-template-columns: none;
  }
  .work-grid::-webkit-scrollbar { display: none; }

  /* Each shot snaps individually and is 78 vw wide so the next card peeks */
  .work-grid .shot {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Empty state: keep it full-width */
  .work-grid.is-empty {
    display: grid;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  /* Dot indicator strip */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 0.9rem;
  }
  .carousel-dots .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--line);
    border: none; padding: 0;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    flex: none;
  }
  .carousel-dots .dot.is-active {
    background: var(--green);
    transform: scale(1.35);
  }
}

/* Dots are hidden on desktop (JS only inserts them inside .work-section) */
@media (min-width: 600px) {
  .carousel-dots { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================================
   ADMIN PANEL
   ===================================================================== */
.admin-body { background: var(--paper-2); min-height: 100vh; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(90% 70% at 80% 0%, var(--navy-600) 0%, transparent 55%),
    var(--navy);
}
.admin-login .login-card {
  width: 100%; max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}
.admin-login .login-card img { height: 104px; width: auto; margin: 0 auto 1.25rem; }
.admin-login .login-card h1 { font-size: 1.5rem; }
.admin-login .login-card .form { text-align: left; }

.admin-shell { display: none; }
.admin-shell.is-active { display: block; }

.admin-topbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 10;
  border-bottom: 1px solid var(--hairline);
}
.admin-topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.admin-topbar img { height: 42px; background: #fff; padding: 5px 9px; border-radius: 10px; }

.admin-main { padding: clamp(2rem, 4vw, 3rem) 0 4rem; }
.admin-main > .container > h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1.75rem; }

.stats-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-bottom: 2.5rem; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--green), var(--green-dark));
}
.stat-card .label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.stat-card .value { font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--navy); line-height: 1.1; margin-top: 0.4rem; }

.admin-toolbar {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.admin-toolbar h2 { margin: 0; font-size: 1.5rem; }

.enquiry-list { display: grid; gap: 1rem; }
.enquiry-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.enquiry-card.is-unread { border-left-color: var(--green); }
.enquiry-card .ehead {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: baseline; justify-content: space-between;
  margin-bottom: 1rem;
}
.enquiry-card .ename { font-size: 1.2rem; font-weight: 700; color: var(--navy); margin: 0; font-family: var(--display); }
.enquiry-card .edate { font-size: 0.85rem; color: var(--muted); }
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem; border-radius: 999px;
}
.status-pill.unread { background: var(--light-green); color: var(--green-dark); }
.status-pill.read { background: #eef1f4; color: var(--muted); }

.enquiry-meta { display: grid; gap: 0.6rem 1.5rem; grid-template-columns: 1fr; margin: 1rem 0; font-size: 0.95rem; }
.enquiry-meta div span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--muted); }
.enquiry-meta div a { color: var(--green-dark); overflow-wrap: break-word; }
.enquiry-message {
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.enquiry-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.state-box {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 1.5rem; text-align: center; color: var(--muted);
}
.state-box .icon-badge { margin: 0 auto 1rem; }
.icon-badge {
  width: 56px; height: 56px; border-radius: 14px;
  display: inline-grid; place-items: center;
  background: var(--light-green); color: var(--green-dark);
  box-shadow: inset 0 0 0 1px #cfe8bf;
}
.icon { width: 24px; height: 24px; }
.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6,21,37,0.6);
  backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
  padding: 1.5rem; z-index: 100;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.modal h3 { margin-top: 0; }
.modal p { color: var(--muted); }
.modal .btn-row { justify-content: flex-end; margin-top: 1.5rem; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (min-width: 600px) {
  .hero-meta { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .enquiry-meta { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 960px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .statement-grid { grid-template-columns: 0.5fr 1.5fr; gap: 3rem; }
  .svc-head { grid-template-columns: 1.3fr 1fr; align-items: end; }
  .disciplines { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .svc-detail { grid-template-columns: 1fr 1fr; }
  .svc-detail.reverse > div:first-child { order: 2; }
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; }
  .footer-top { grid-template-columns: 1.8fr 1fr 1fr 1.3fr; }
}

@media (min-width: 1100px) {
  .hero h1.display { font-size: clamp(3.5rem, 5.2vw, 5.25rem); }
}