/* ==========================================================================
   MATRAS Engineering Services Ltd. — website styles
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --orange: #FDA41D;
  --orange-deep: #E58A06;
  --orange-soft: #FFF1D9;
  --ink: #0D0D0F;
  --graphite: #1C1C21;
  --slate: #5C5C66;
  --cream: #FBF7EF;
  --paper: #FFFFFF;
  --line: #E9E4D8;
  --white-soft: rgba(255, 255, 255, .78);

  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(13, 13, 15, .06), 0 4px 14px rgba(13, 13, 15, .06);
  --shadow-md: 0 10px 30px rgba(13, 13, 15, .10);
  --shadow-lg: 0 30px 80px rgba(13, 13, 15, .22);

  --wrap: 1200px;
  --gutter: 16px;
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 96px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(253, 164, 29, .18); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--orange-deep); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; }
.lead, .hero-lead, .page-lead { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--orange); color: var(--ink); }

/* Cross-document view transitions — soft fade/slide between pages (Chromium) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .34s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Film grain — subtle animated texture over the whole page */
body::after {
  content: ""; position: fixed; inset: -60%; z-index: 9998; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: .045; animation: grain-shift .9s steps(4) infinite;
}
@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
}

/* Themed scrollbar */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #3A3A44; border-radius: 8px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--orange-deep); }

.container { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--orange); }
.eyebrow-dark { color: var(--ink); }
/* Eyebrow rule grows in as the block reveals */
.js .eyebrow::before { width: 0; transition: width .8s var(--ease) .3s; }
.js .eyebrow.is-visible::before, .js .is-visible .eyebrow::before { width: 28px; }
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.h2 span { color: var(--orange); }
/* Accent word: underline sweeps in on reveal */
.h2 span, .hero-title .accent, .page-title span {
  background-image: linear-gradient(var(--orange), var(--orange));
  background-repeat: no-repeat;
  background-position: 0 97%;
  background-size: 0% .07em;
  padding-bottom: .07em;
  transition: background-size .9s var(--ease) .45s;
}
.is-visible .h2 span, .h2.is-visible span, .hero-title.is-visible .accent, .page-title.is-visible span { background-size: 100% .07em; }
.h2-light { color: #fff; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--graphite); font-weight: 500; }
mark { background: linear-gradient(transparent 58%, var(--orange-soft) 58%); color: inherit; padding: 0 2px; }
strong { font-weight: 700; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
/* Magnetic CTA: snappier transform response while JS drives position */
.btn.is-magnetic { transition: transform .18s ease-out, background .25s, color .25s, box-shadow .25s, border-color .25s; will-change: transform; }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 10px 28px rgba(253, 164, 29, .35); }
.btn-primary:hover { background: #fff; color: var(--ink); box-shadow: 0 14px 34px rgba(253, 164, 29, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-block { width: 100%; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */ /* Develeped by :Spider (Panga-Limited) */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease), transform .42s var(--ease);
  background: transparent;
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.menu-open { transform: none; }
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(13, 13, 15, .06);
  height: 72px;
}
.nav-wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 82px; width: auto; transition: height .35s var(--ease); }
.site-header.is-scrolled .brand img { height: 62px; }
.site-header:not(.is-scrolled) .brand img { filter: invert(1) brightness(2); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--ink); position: relative; padding: 6px 0; }
.site-header:not(.is-scrolled) .nav-links a { color: #fff; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--orange-deep); }
.site-header:not(.is-scrolled) .nav-links a.is-active { color: var(--orange); }

/* Reading progress bar pinned to the header's bottom edge */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  will-change: transform;
}

.menu-toggle {
  display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 0;
  position: relative; border-radius: 12px;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s, background .3s;
}
.site-header:not(.is-scrolled) .menu-toggle span { background: #fff; }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-open .menu-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + 56px) 0 0;
}
.hero-media { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  transform: scale(1.08); animation: kenburns 22s var(--ease) forwards;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, .9) 0%, rgba(13, 13, 15, .68) 45%, rgba(13, 13, 15, .18) 100%),
    linear-gradient(0deg, rgba(13, 13, 15, .72) 0%, rgba(13, 13, 15, 0) 45%),
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
}
.hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange);
}
@keyframes kenburns { to { transform: scale(1); } }

.hero-inner { padding-bottom: 40px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7.2vw, 6.2rem);
  line-height: .98; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 26px;
}
.hero-title .accent { color: var(--orange); }
/* Per-line masked reveal: each line slides up out of an overflow mask */
.ht-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ht-line:last-child { padding-bottom: .16em; margin-bottom: -.16em; }
.ht-line > i { display: block; font-style: normal; }
/* Per-word masked stagger — JS assigns --wd per word */
.ht-line .w { display: inline-block; }
.js .ht-line .w { transform: translateY(115%); transition: transform .95s var(--ease) var(--wd, .15s); }
.js .hero-title.is-visible .ht-line .w { transform: none; }
.hero-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--white-soft); max-width: 640px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions--mt { margin-top: 34px; }
.eyebrow-light::before { background: var(--orange); }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats > div { padding: 26px 20px 30px 0; }
.hero-stats > div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); color: #fff; line-height: 1; }
.hero-stats dt { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .62); margin-bottom: 10px; font-weight: 600; }
.hero-stats dd { font-variant-numeric: tabular-nums; }

/* Vertical scroll cue on the hero's open edge */
.scroll-cue {
  position: absolute; right: clamp(20px, 3.5vw, 52px); bottom: 150px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.scroll-cue em {
  font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .32em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5); writing-mode: vertical-rl;
}
.scroll-cue i { width: 1px; height: 54px; background: rgba(255, 255, 255, .22); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--orange); animation: cue-drop 1.8s var(--ease) infinite;
}
@keyframes cue-drop { 0% { transform: translateY(-110%); } 100% { transform: translateY(280%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--orange); color: var(--ink); overflow: hidden; white-space: nowrap; padding: 18px 0; }
.marquee-track { display: inline-flex; align-items: center; gap: 28px; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-display); font-size: clamp(1rem, 1.8vw, 1.3rem); text-transform: uppercase; letter-spacing: .02em; }
.marquee-track i { width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); display: inline-block; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Page hero (subpage banner) ---------- */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate;
  padding: calc(var(--header-h) + clamp(4.5rem, 9vw, 7rem)) 0 clamp(3.5rem, 7vw, 5.5rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, .9) 0%, rgba(13, 13, 15, .72) 55%, rgba(13, 13, 15, .4) 100%),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
.page-hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--orange);
}
.page-title {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px;
}
.page-title span { color: var(--orange); }
.page-lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: rgba(255, 255, 255, .72); max-width: 620px; margin: 0; }

/* Breadcrumb trail inside page-hero */
.crumbs { margin-bottom: 22px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--orange); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--orange); }
.crumbs li[aria-current] { color: #fff; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 32px; padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.cta-inner .h2 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
.cta-band .h2 span { color: var(--ink); background-image: linear-gradient(var(--ink), var(--ink)); }
.cta-band .btn-primary { background: var(--ink); color: #fff; box-shadow: none; }
.cta-band .btn-primary:hover { background: #fff; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--mt { margin-top: clamp(3.5rem, 7vw, 6rem); }
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }
.section-head-center { text-align: center; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head-center .eyebrow::before { display: none; }
.section-note { max-width: 360px; color: var(--slate); margin: 0; font-size: .95rem; }

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-head .h2 { margin-bottom: 36px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); padding-top: 3px; }
.facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.about-body p { font-size: 1.03rem; color: #33333b; }
.about-body .lead { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; color: var(--ink); font-weight: 600; margin-bottom: 1.4em; padding-left: 22px; border-left: 4px solid var(--orange); }

/* ---------- Mission / Vision / Values ---------- */
.mission-section { background: var(--cream); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.mission-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; margin-bottom: clamp(4rem, 8vw, 6.5rem); }
.mission-photo { margin: 0; position: relative; }
.mission-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.mission-photo::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; width: 46%; height: 46%; border-radius: var(--radius-lg);
  background: var(--orange); z-index: -1;
}
.mission-photo { z-index: 0; }
.mission-copy .h2 { margin-bottom: 26px; }
.mission-copy p:not(.eyebrow) { color: #33333b; }
.mission-copy .lead { color: var(--ink); }

.vision {
  position: relative; background: var(--orange); color: var(--ink); border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem); overflow: hidden; margin-bottom: clamp(3.5rem, 7vw, 5rem);
}
.vision::before {
  content: "\201C"; position: absolute; right: 22px; top: -40px; font-family: var(--font-display);
  font-size: clamp(12rem, 24vw, 20rem); line-height: 1; color: rgba(13, 13, 15, .08); pointer-events: none;
}
.vision .eyebrow { color: var(--ink); }
.vision .eyebrow::before { background: var(--ink); }
.vision-text {
  font-family: var(--font-display); font-size: clamp(1.45rem, 3.2vw, 2.45rem); line-height: 1.25;
  letter-spacing: -.01em; max-width: 960px; margin: 0; text-transform: none; font-weight: 400;
}


.values-title { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); text-transform: uppercase; margin-bottom: 22px; color: var(--ink); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.value-icon {
  width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: var(--ink); color: var(--orange); margin-bottom: 22px;
}
.value-icon svg, .service-icon svg, .ci svg { width: 26px; height: 26px; }
.value h4 { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; margin-bottom: 10px; color: var(--ink); }
.value p { color: var(--slate); margin: 0; }

/* ---------- Services ---------- */
.services { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.services-bg {
  position: absolute; inset: 0; z-index: -2; background: url("../img/bg-services-960.webp") center / cover no-repeat;
  opacity: .14; filter: grayscale(1) contrast(1.1);
}
.services::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px),
    radial-gradient(900px 500px at 90% -10%, rgba(253, 164, 29, .22), transparent 60%),
    linear-gradient(180deg, var(--ink), #15151a);
  background-size: 72px 72px, 72px 72px, auto, auto;
}
.services .h2 { color: #fff; }
.services .eyebrow { color: var(--orange); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius-lg); overflow: hidden; }
.service {
  position: relative; background: var(--ink); padding: 40px 34px 38px; display: flex; flex-direction: column; gap: 14px;
  transition: background .4s var(--ease);
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--orange); transition: width .5s var(--ease);
}
.service:hover { background: #17171c; }
.service:hover::before { width: 100%; }
.service-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(253, 164, 29, .12); color: var(--orange); margin-bottom: 8px;
  transition: background .35s, color .35s, transform .35s var(--ease);
}
.service:hover .service-icon { background: var(--orange); color: var(--ink); transform: rotate(-6deg); }
.service h3 { font-family: var(--font-display); font-size: 1.12rem; text-transform: uppercase; line-height: 1.2; color: #fff; }
.service p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .95rem; }
/* Cursor-tracked spotlight glow (JS feeds --mx/--my) */
.service::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(253, 164, 29, .13), transparent 65%);
  transition: opacity .45s var(--ease);
}
.service:hover::after { opacity: 1; }

/* ---------- Leadership / Team ---------- */
.leadership { background: var(--paper); }
.leader { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; margin-bottom: 0; }
.leader-card {
  position: relative; background: var(--orange); border-radius: var(--radius-lg); overflow: hidden;
  min-height: 520px; display: flex; flex-direction: column; justify-content: flex-end;
}
.leader-card img { position: absolute; inset: 0 0 auto 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.leader-name {
  position: relative; background: var(--ink); color: #fff; padding: 26px 26px 28px; margin: 0 12px 12px; border-radius: 16px;
}
.leader-name h2 { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); text-transform: uppercase; color: var(--orange); }
.leader-name p { margin: 8px 0 0; color: rgba(255, 255, 255, .8); font-size: .92rem; }
.leader-bio .h2 { margin-bottom: 26px; }
.leader-bio p { color: #33333b; }
.leader-bio .lead { color: var(--ink); }

.key-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person-key {
  display: flex; flex-direction: column; background: var(--cream); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.person-key:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.person-key img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 15%; }
.person-key > div { padding: 22px 24px 26px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.person { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.person:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.person img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 12%; background: var(--cream); filter: saturate(.88); transition: filter .5s var(--ease); }
.person:hover img, .person-key:hover img { filter: saturate(1.05); }
.person-key img { transition: filter .5s var(--ease); filter: saturate(.88); }
.person h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; color: var(--ink); padding: 18px 18px 0; line-height: 1.3; }
.person .role { margin: 6px 18px 0; color: var(--orange-deep); font-weight: 700; font-size: .9rem; }
.person .exp { margin: 4px 18px 20px; color: var(--slate); font-size: .86rem; }
.person-key h3 { font-family: var(--font-display); font-size: 1.05rem; text-transform: uppercase; padding: 0; color: var(--ink); }
.person-key .role { margin: 8px 0 0; padding: 0; }
.person-key .exp { margin: 4px 0 0; padding: 0; }

/* ---------- Projects / Portfolio ---------- */
.projects { background: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; transition: background .25s, color .25s, border-color .25s;
}
.tab b { font-weight: 700; opacity: .6; margin-left: 4px; }
.tab:hover { background: var(--orange-soft); border-color: var(--orange-deep); }
.tab.is-active { background: var(--ink); color: #fff; }
.tab.is-active b { color: var(--orange); opacity: 1; }

.portfolio { counter-reset: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.portfolio li {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; background: #fff;
  border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease), opacity .35s, display .35s;
}
.portfolio li:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.portfolio li[hidden] { display: none; }
.portfolio .n {
  font-family: var(--font-display); font-size: 1.05rem; color: var(--orange-deep); line-height: 1.5;
  border-right: 2px solid var(--orange); padding-right: 12px; text-align: left;
}
.portfolio p { margin: 0; font-size: .95rem; color: #33333b; line-height: 1.6; }

/* ---------- Gallery ---------- */
.gallery { background: var(--ink); color: #fff; }
.gallery .h2 { color: #fff; }
.gallery .eyebrow { color: var(--orange); }
.gallery .section-note { color: rgba(255, 255, 255, .6); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery-item {
  position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: #1c1c21;
  grid-column: span 1; isolation: isolate; text-align: left; color: #fff;
  transition: transform .35s var(--ease); will-change: transform;
}
.gallery-item.gi-wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; }
.gallery-item::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 13, 15, .9) 0%, rgba(13, 13, 15, 0) 55%);
  opacity: .9; transition: opacity .4s; pointer-events: none;
}
.gi-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 22px 20px; z-index: 1; display: grid; gap: 4px; transform: translateY(4px); transition: transform .45s var(--ease); }
.gi-cap strong { font-size: 1.02rem; color: #fff; font-weight: 700; line-height: 1.3; }
.gi-cap small { color: var(--orange); font-size: .84rem; font-weight: 600; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gi-cap { transform: none; }
.gallery-item::before {
  content: "+"; position: absolute; right: 16px; top: 14px; z-index: 1; width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--ink); display: grid; place-items: center; font-size: 1.5rem; line-height: 1;
  font-weight: 700; opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s var(--ease);
}
.gallery-item:hover::before { opacity: 1; transform: scale(1); }

/* ---------- Clients ---------- */
.clients { background: var(--paper); }
/* Logo marquee: infinite scroll, pauses on hover */
.client-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.client-track { display: flex; gap: 16px; width: max-content; animation: client-scroll 36s linear infinite; }
.client-marquee:hover .client-track, .client-marquee:focus-within .client-track { animation-play-state: paused; }
.client-track li {
  flex: 0 0 auto; width: 212px; height: 132px; display: grid; place-items: center; padding: 22px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s;
}
.client-track li:hover { border-color: var(--orange); }
.client-track img {
  max-height: 66px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1) contrast(1.05); opacity: .72; transition: filter .45s, opacity .45s;
}
.client-track li:hover img { filter: none; opacity: 1; }
@keyframes client-scroll { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------- Clientele (about page) ---------- */
.clientele { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.clientele::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 0% 0%, rgba(253, 164, 29, .16), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}
.clientele-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.clientele-head { position: sticky; top: calc(var(--header-h) + 24px); }
.clientele-head .h2 { margin-bottom: 22px; }
.clientele-lead { color: rgba(255, 255, 255, .7); font-size: 1.02rem; margin-bottom: 34px; text-wrap: pretty; }
.clientele-stats { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .16); }
.clientele-stats > div { padding: 20px 12px 0 0; }
.clientele-stats > div + div { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .16); }
.clientele-stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.clientele-stats dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; margin-bottom: 10px; }
.client-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.client-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.client-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--orange); transition: width .5s var(--ease);
}
.client-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.client-card:hover::after { width: 100%; }
.client-logo { height: 150px; display: grid; place-items: center; padding: 26px 30px; }
.client-logo img { max-width: 100%; max-height: 88px; width: auto; object-fit: contain; transition: transform .45s var(--ease); }
.client-card:hover .client-logo img { transform: scale(1.05); }
.client-info { margin-top: auto; padding: 16px 22px 18px; border-top: 1px solid var(--line); }
.client-info h3 { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.client-info p { margin: 4px 0 0; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(.4); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .032) 1px, transparent 1px),
    linear-gradient(120deg, rgba(13, 13, 15, .96) 40%, rgba(13, 13, 15, .82));
  background-size: 72px 72px, 72px 72px, auto;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact .h2 { margin-bottom: 18px; }
.contact-lead { color: rgba(255, 255, 255, .72); font-size: 1.05rem; margin-bottom: 36px; max-width: 460px; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.ci {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(253, 164, 29, .14); color: var(--orange);
}
.contact-list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.contact-list span { color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.5; }
.contact-list a { border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s, color .2s; }
.contact-list a:hover { color: var(--orange); border-color: var(--orange); }

.map-wrap {
  margin-top: 36px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-md);
}
.map-wrap iframe {
  display: block; width: 100%; height: 260px; border: 0;
  filter: grayscale(.45) contrast(1.04); transition: filter .5s var(--ease);
}
.map-wrap:hover iframe, .map-wrap:focus-within iframe { filter: none; }

.contact-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-lg); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--cream);
  border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(253, 164, 29, .2); }
.field.is-invalid input { border-color: #D64545; }
.form-error { color: #B42318; font-weight: 600; margin: 0; font-size: .92rem; }
.form-note { margin: 0; font-size: .85rem; color: var(--slate); text-align: center; }
.form-note.is-ok { color: #157347; font-weight: 600; }
.contact-form .btn-primary { margin-top: 4px; }

/* ---------- News ---------- */
.news { background: var(--cream); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-grid:empty { display: none; }
.news-grid:not(:empty) + .news-empty { display: none; }
.news-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.news-media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.05); }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.news-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; color: var(--slate); }
.news-meta span { padding: 4px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.news-body h2 { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; color: var(--ink); }
.news-body p:not(.news-meta) { margin: 0; color: #33333b; font-size: .95rem; }
.news-empty {
  max-width: 640px; margin-inline: auto; text-align: center; background: #fff; border: 1px dashed #D9D2C2;
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
}
.news-empty-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--orange); }
.news-empty-icon svg { width: 28px; height: 28px; }
.news-empty-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.news-empty p { color: var(--slate); margin: 0 auto 28px; max-width: 480px; }
.news-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { background: var(--cream); }
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, box-shadow .3s;
}
.faq-list details[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--orange-soft); transition: background .3s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--ink);
  transform: translate(-50%, -50%); transition: transform .35s var(--ease), background .3s;
}
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after { width: 2px; height: 12px; }
details[open] .faq-icon { background: var(--orange); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-body { padding: 0 24px; }
.faq-body p { margin: 0; padding-bottom: 22px; color: #33333b; max-width: 720px; }
details[open] .faq-body { animation: faq-in .4s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq-body a { color: var(--orange-deep); font-weight: 600; border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.site-footer { background: #08080A; color: rgba(255, 255, 255, .7); padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-logo { height: 64px; width: auto; filter: invert(1) brightness(2); margin-bottom: 20px; }
.footer-about { max-width: 340px; margin: 0; color: rgba(255, 255, 255, .6); }
.site-footer h2 { font-family: var(--font-display); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); margin-bottom: 18px; font-weight: 400; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #fff; transition: color .2s; }
.site-footer a:hover { color: var(--orange); }
/* Oversized brand watermark filling the footer */
.footer-mark {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(4.5rem, 17.5vw, 16rem); line-height: .8; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
  padding: 10px 0 34px; user-select: none; letter-spacing: .01em;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 24px 0 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: .85rem; color: rgba(255, 255, 255, .5);
}
.to-top { color: var(--orange) !important; font-weight: 700; }

/* Floating back-to-top button */
.to-top-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14);
  background: var(--ink); color: var(--orange); box-shadow: var(--shadow-md);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background .25s, color .25s;
}
.to-top-btn.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top-btn:hover { background: var(--orange); color: var(--ink); }
.to-top-btn svg { width: 22px; height: 22px; }
/* Scroll progress ring around the button */
.to-top-btn .ring {
  position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px);
  transform: rotate(-90deg); pointer-events: none;
}
.to-top-btn .ring circle {
  fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 97.4; stroke-dashoffset: 97.4;
}
.to-top-btn:hover .ring circle { stroke: var(--ink); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8, 8, 10, .96); display: grid; grid-template-rows: 1fr auto; place-items: center;
  padding: 64px 70px 28px; animation: fadeIn .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 16px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: min(1200px, 100%); max-height: calc(100svh - 170px); object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transition: opacity .25s var(--ease); }
.lightbox img.swapping { opacity: 0; }
.lb-count {
  position: absolute; top: 24px; left: 28px; font-family: var(--font-display);
  font-size: .82rem; letter-spacing: .22em; color: rgba(255, 255, 255, .65); font-variant-numeric: tabular-nums;
}
.lb-count b { color: var(--orange); font-weight: 500; }
.lightbox figcaption { color: #fff; text-align: center; display: grid; gap: 4px; }
.lightbox figcaption strong { font-family: var(--font-display); font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; color: var(--orange); }
.lightbox figcaption span { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  transition: background .25s, color .25s;
}
.lb-close:hover, .lb-nav:hover { background: var(--orange); color: var(--ink); }
.lb-close { top: 18px; right: 18px; font-size: 2rem; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
body.lb-open, body.wall-open { overflow: hidden; }

/* ---------- All project pictures (photo wall; lightbox opens above it) ---------- */
.photo-wall {
  position: fixed; inset: 0; z-index: 150; background: #08080A;
  overflow-y: auto; overscroll-behavior: contain; padding-bottom: 64px; animation: fadeIn .3s var(--ease);
}
.photo-wall[hidden] { display: none; }
.pw-head {
  position: sticky; top: 0; z-index: 2; margin-bottom: 28px;
  background: #08080A; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.pw-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0 14px; }
.pw-head .eyebrow { margin-bottom: 6px; }
.js .photo-wall .eyebrow::before { width: 28px; }
.pw-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2.2rem); text-transform: uppercase; color: #fff; }
.pw-count { margin-left: 10px; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; color: var(--orange); vertical-align: middle; white-space: nowrap; }
.pw-close {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff;
  font-size: 2rem; line-height: 1; transition: background .25s, color .25s;
}
.pw-close:hover { background: var(--orange); color: var(--ink); }
/* Project shortcuts: one scrollable row */
.pw-nav { overflow-x: auto; scrollbar-width: none; padding-bottom: 16px; }
.pw-nav::-webkit-scrollbar { display: none; }
.pw-nav ul { display: flex; gap: 8px; width: max-content; }
.pw-nav a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .85); font-size: .84rem; font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.pw-nav a b { color: var(--orange); font-weight: 700; }
.pw-nav a:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.pw-nav a:hover b { color: var(--ink); }
.photo-wall { scroll-behavior: smooth; }
/* One block per project */
.pw-project { padding: 8px 0 44px; scroll-margin-top: 170px; }
.pw-project + .pw-project { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 36px; }
.pw-project-head { margin-bottom: 18px; }
.pw-project-head h3 { font-family: var(--font-display); font-size: clamp(1.1rem, 2vw, 1.45rem); text-transform: uppercase; color: #fff; line-height: 1.2; margin: 10px 0 6px; }
.pw-project-head p { margin: 0; color: rgba(255, 255, 255, .6); font-size: .92rem; }
.pw-kind { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pw-kind-completed { background: var(--orange); color: var(--ink); }
.pw-kind-consultancy { background: rgba(255, 255, 255, .12); color: #fff; }
.pw-kind-roadworks { background: transparent; color: var(--orange); border: 1px solid var(--orange); }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pw-item {
  position: relative; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: #1c1c21; cursor: zoom-in;
}
.pw-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.pw-item:hover img { transform: scale(1.05); }
.pw-tag {
  position: absolute; left: 10px; top: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(13, 13, 15, .78); color: #fff; padding: 4px 8px; border-radius: 6px;
}

/* ---------- Reveal on scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Image clip-reveal: photos wipe in from the top edge as their card reveals */
.js .clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.05s var(--ease) .12s; }
.js .is-visible .clip { clip-path: inset(0 0 0 0); }

/* Blur-up loading: large photos sharpen in as they decode */
.js .blur-load { filter: blur(14px); transform: scale(1.05); transition: filter .6s var(--ease), transform .6s var(--ease); }
.js .blur-load.is-loaded { filter: blur(0); transform: none; }

/* Team cards open the photo viewer */
.person, .person-key { cursor: zoom-in; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .client-track li { width: 190px; height: 120px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .85rem; }
}

@media (max-width: 940px) {
  :root { --header-h: 72px; }
  .menu-toggle { display: block; }
  .brand img { height: 54px; }
  .site-header.is-scrolled .brand img { height: 46px; }
  .scroll-cue { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px var(--gutter) 28px; box-shadow: 0 30px 60px rgba(13, 13, 15, .18);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease), opacity .3s;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; font-size: 1.1rem; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .nav-links a::after { display: none; }
  /* backdrop-filter creates a containing block for fixed children, so drop it on small screens */
  .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-header.menu-open { background: #fff; height: var(--header-h); }
  .site-header.menu-open .brand img { filter: none; }

  .about-grid, .mission-grid, .leader, .contact-grid, .clientele-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .clientele-head { position: static; }
  .mission-photo img { aspect-ratio: 16 / 11; }
  .leader-card { min-height: 460px; }
  .values { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .key-people { grid-template-columns: 1fr; }
  .portfolio { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: .98rem; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-title { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-stats > div { padding: 20px 12px 22px 0; }
  .hero-stats > div + div { padding-left: 16px; }
  .hero-stats > div:nth-child(3) { padding-left: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service { padding: 30px 24px; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .person h3 { font-size: .94rem; padding: 14px 14px 0; }
  .person .role { margin: 4px 14px 0; font-size: .84rem; }
  .person .exp { margin: 2px 14px 16px; font-size: .8rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
  .gallery-item.gi-wide { grid-column: span 2; }
  .gi-cap { padding: 16px 14px; }
  .gi-cap strong { font-size: .92rem; }
  .gi-cap small { font-size: .78rem; }
  .client-track li { width: 168px; height: 108px; padding: 16px 18px; }
  .client-track img { max-height: 56px; }
  .field-row { grid-template-columns: 1fr; }
  .client-cards { gap: 10px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-empty-actions .btn { width: 100%; }
  .client-logo { height: 110px; padding: 18px; }
  .client-logo img { max-height: 64px; }
  .client-info { padding: 12px 14px 14px; }
  .client-info h3 { font-size: .84rem; }
  .client-info p { font-size: .66rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .lightbox { padding: 60px 12px 20px; }
  .pw-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pw-head-inner { padding: 14px 0 10px; }
  .pw-count { display: block; margin: 4px 0 0; }
  .pw-project { scroll-margin-top: 190px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: 16px; }
  .lb-next { right: 16px; }
  .lightbox figure { padding-bottom: 60px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .vision::before { font-size: 9rem; }
  .btn { white-space: normal; }
  .section-head-split .tabs { width: 100%; }
  .tab { font-size: .86rem; padding: 12px 18px; } /* ~44px tap target */
  .leader-card { min-height: 400px; }
  .map-wrap iframe { height: 300px; }
  .marquee-track { animation-duration: 26s; }
  .to-top-btn { right: 14px; bottom: 14px; width: 46px; height: 46px; }
}

/* ---------- Preloader (home only, once per session) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: grid; place-items: center;
}
.preloader::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--orange); transform-origin: left; animation: pre-bar 1s var(--ease) forwards;
}
@keyframes pre-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pre-logo { width: min(180px, 40vw); filter: invert(1) brightness(2); animation: pre-logo .8s var(--ease) .1s both; }
@keyframes pre-logo { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.preloader.done { transform: translateY(-100%); transition: transform .7s var(--ease); }

/* ---------- Touch devices: neutralize hover-only effects (stuck hover, cursor spotlight) ---------- */
@media (hover: none), (pointer: coarse) {
  .person:hover, .person-key:hover, .value:hover,
  .portfolio li:hover, .client-card:hover, .news-card:hover { transform: none; }
  .service:hover::after { opacity: 0; }
  .gallery-item::before { display: none; }
  .gallery-item:hover img { transform: none; }
  .gallery-item:hover .gi-cap { transform: translateY(4px); }
  .btn:hover { transform: none; }
  .btn:hover .btn-arrow { transform: none; }
}

/* ---------- Custom cursor (fine pointers only, JS-driven) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0;
}
.cursor-dot { width: 6px; height: 6px; background: var(--orange); }
.cursor-ring {
  width: 34px; height: 34px; border: 1.5px solid rgba(253, 164, 29, .65);
  transition: width .25s var(--ease), height .25s var(--ease), border-color .25s, opacity .3s;
}
body.has-cursor .cursor-dot, body.has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 54px; height: 54px; border-color: var(--orange); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .scroll-progress, .to-top-btn, .preloader, .scroll-cue, .marquee,
  .client-marquee, .hero-actions, .lightbox, .photo-wall, #open-all-photos, .cursor-dot, .cursor-ring,
  body::after, .hero-media, .crumbs, .footer-mark { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-hero, .services, .gallery, .contact, .cta-band, .vision,
  .site-footer, .mission-section, .projects, .faq, .clients, .clientele { background: #fff !important; color: #000 !important; }
  .hero { min-height: auto; padding: 16mm 0 8mm; }
  .hero::before, .hero::after, .page-hero::before, .page-hero::after, .services::before, .contact::before, .vision::before { display: none !important; }
  .section { padding: 8mm 0; }
  .hero-title, .page-title, .h2, .service h3, .service p, .services .h2, .gallery .h2,
  .site-footer h2, .eyebrow, .page-lead, .hero-lead, .contact-lead, .lead,
  .contact-list span, .contact-list strong, .footer-about, .vision-text { color: #000 !important; }
  .eyebrow::before { width: 28px !important; }
  .service, .person, .person-key, .value, .portfolio li, .faq-list details, .client-card {
    break-inside: avoid; box-shadow: none !important;
  }
  .js .reveal, .js .clip, .js .ht-line .w, .js .blur-load {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  }
  a[href^="mailto"]::after { content: " <" attr(href) ">"; font-weight: 400; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  body::after { animation: none; }
  .js .clip { clip-path: none; }
}
