/* ==========================================================================
   TRENDY LUXE Construction, Oil & Gas Services
   Single-page site. Official corporate profile & refinery portfolio.
   ========================================================================== */

:root {
  /* Brand */
  --navy-900: #041729;
  --navy-800: #08213f;
  --navy-700: #0a2a50;
  --navy-600: #133a67;
  --navy-500: #1d4e85;
  --gold-600: #b8871c;
  --gold-500: #d3a029;
  --gold-400: #e8b93f;
  --drop-blue: #1f7fc4;

  /* Neutrals — these four flip with the theme */
  --ink: #10233a;      /* headings */
  --body: #4a5a6d;     /* body copy */
  --muted: #738698;    /* secondary copy */
  --line: #e2e8f0;     /* borders */

  /* Surfaces — these flip with the theme */
  --surface: #ffffff;      /* page + card background */
  --surface-alt: #f5f8fc;  /* alternating section background */
  --surface-sunk: #f5f8fc; /* inset wells (form, icon chips) */

  /* Accent for small labels and links sitting on a themed surface */
  --accent-ink: #0a2a50;

  /* Always literally white — for text and marks sitting on navy */
  --white: #ffffff;

  /* System */
  --shell: 1200px;
  --pad: clamp(20px, 5vw, 40px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(8, 33, 63, .06);
  --shadow-md: 0 14px 40px -18px rgba(8, 33, 63, .30);
  --shadow-lg: 0 30px 70px -30px rgba(8, 33, 63, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  color-scheme: light;
}

/* --------------------------------------------------------------------------
   Dark theme.
   Declared once, applied both by system preference (unless the visitor has
   explicitly chosen light) and by an explicit [data-theme="dark"] choice.
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf3f9;
    --body: #a4b6c9;
    --muted: #7c90a5;
    --line: #223144;

    --surface: #0c141e;
    --surface-alt: #101b28;
    --surface-sunk: #0a121b;

    --accent-ink: #93b8dd;

    --gold-600: #e0ab34;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
    --shadow-md: 0 14px 40px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .95);

    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #edf3f9;
  --body: #a4b6c9;
  --muted: #7c90a5;
  --line: #223144;

  --surface: #0c141e;
  --surface-alt: #101b28;
  --surface-sunk: #0a121b;

  --accent-ink: #93b8dd;

  --gold-600: #e0ab34;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-md: 0 14px 40px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .95);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--body);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--gold-500); color: var(--navy-900);
  padding: 10px 18px; border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- Layout ---------- */
.shell { width: min(var(--shell), 100% - var(--pad) * 2); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 118px) 0; position: relative; }
.section-tint { background: var(--surface-alt); }
.section-navy {
  background:
    radial-gradient(120% 90% at 12% 0%, var(--navy-600) 0%, transparent 60%),
    linear-gradient(165deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, .8);
}
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }

.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin-bottom: .35em; }
.section-sub { font-size: 17px; color: var(--muted); margin: 0; }
.section-head.on-dark .section-sub { color: rgba(255, 255, 255, .62); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); margin: 0 0 14px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.section-head .kicker::after { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.section-navy .kicker { color: var(--gold-400); }

.gold { color: var(--gold-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  padding: 15px 30px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold { background: var(--gold-500); color: var(--navy-900); box-shadow: 0 12px 30px -12px rgba(211, 160, 41, .85); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(211, 160, 41, .95); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); transform: translateY(-2px); }
.btn.full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; color: var(--accent-ink);
  text-decoration: none; border-bottom: 2px solid rgba(211, 160, 41, .45); padding-bottom: 3px;
  transition: gap .25s var(--ease), border-color .25s var(--ease);
}
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-500); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { gap: 16px; border-color: var(--gold-500); }

/* ---------- Header ---------- */
.scroll-progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400));
  z-index: 120; transition: width .1s linear;
}
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 110;
  padding: 16px 0;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
}
.site-header.is-stuck {
  background: rgba(8, 33, 63, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 34px -20px rgba(0, 0, 0, .9);
  padding: 9px 0;
}
.header-inner { display: flex; align-items: center; gap: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-mark-wrap {
  width: 44px; height: 44px; border-radius: 12px;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  padding: 5px; flex: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25), 0 0 0 1px rgba(211, 160, 41, .45);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand:hover .brand-mark-wrap {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(211, 160, 41, .4), 0 0 0 1.5px var(--gold-400);
}
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 800; font-size: 17.5px;
  letter-spacing: .06em; color: currentColor;
}
.brand-text em {
  font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 600;
}

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: rgba(255, 255, 255, .82); text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--white); }
.nav .nav-cta {
  margin-left: 10px; background: var(--gold-500); color: var(--navy-900); font-weight: 700;
  padding: 10px 20px;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--gold-400); color: var(--navy-900); }

/* Theme toggle */
.theme-toggle {
  flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  color: var(--white); display: grid; place-items: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.theme-toggle:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); transform: translateY(-2px); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  transition: opacity .3s var(--ease), transform .4s var(--ease);
}
/* Show the icon for the theme you would switch *to*. */
.theme-toggle .icon-moon { opacity: 1; transform: none; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 1; transform: none; }
}

.burger {
  display: none; width: 46px; height: 40px; border: 0; background: transparent;
  cursor: pointer; padding: 8px; flex-direction: column; justify-content: center; gap: 6px;
}
.burger span {
  display: block; height: 2px; width: 26px; background: var(--white); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 150px 0 40px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--navy-900); }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 66% 52%;
  transition: opacity .9s var(--ease);
}

/* The animated mesh gradient. It fades in over the photograph once the first
   frame has actually rendered, so a failed WebGL init just leaves the photo. */
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero.shader-on .hero-canvas { opacity: 1; }
.hero.shader-on .hero-media img { opacity: 0; }
/* The shader already darkens toward the floor, so the photo veil can ease off. */
.hero.shader-on .hero-veil { opacity: .6; }
.hero-veil { transition: opacity .9s var(--ease); }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(4, 23, 41, .93) 0%, rgba(6, 28, 50, .78) 42%, rgba(6, 28, 50, .28) 72%, rgba(6, 28, 50, .42) 100%),
    linear-gradient(to top, rgba(4, 23, 41, .96) 0%, rgba(4, 23, 41, 0) 45%);
}
.hero-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400);
  border: 1px solid rgba(232, 185, 63, .38); border-radius: 999px;
  padding: 7px 16px; margin: 0 0 24px; background: rgba(232, 185, 63, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eyebrow-spark {
  width: 15px; height: 15px; flex: none;
  fill: currentColor; stroke: none;
}
.hero-title {
  font-size: clamp(36px, 6.2vw, 70px); font-weight: 800; color: var(--white);
  letter-spacing: -.03em; line-height: 1.06; margin: 0 0 24px;
}
.hero-title .line { display: block; }
.hero-title .gold { color: var(--gold-400); }

/* Per-letter entrance. The letters only exist once the script has split the
   lines, so with no JS the headline simply renders as static text.
   Words are wrapped so a line can only break between words, never between
   two letters of the same word. */
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .ltr {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: letterIn .55s var(--ease) forwards;
  animation-delay: calc(var(--i) * 26ms + .15s);
  will-change: transform, opacity;
}
@keyframes letterIn {
  to { opacity: 1; transform: none; }
}
.hero-lede {
  font-size: clamp(16px, 1.5vw, 18.5px); color: rgba(255, 255, 255, .82);
  max-width: 58ch; margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Pillars */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(40px, 6vw, 72px);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md); overflow: hidden;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pillar { background: rgba(4, 23, 41, .58); padding: 24px 22px; transition: background-color .3s var(--ease); }
.pillar:hover { background: rgba(19, 58, 103, .72); }
.pillar svg {
  width: 30px; height: 30px; margin-bottom: 12px;
  fill: none; stroke: var(--gold-400); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h3 {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); margin: 0 0 6px;
}
.pillar p { font-size: 14px; color: rgba(255, 255, 255, .66); margin: 0; line-height: 1.5; }

/* ---------- Discipline strip ---------- */
.strip { background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08); }
.strip-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: clamp(14px, 4vw, 44px); padding: 20px 0;
}
.strip span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 1.6vw, 15px);
  letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
}
.strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.about-copy h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: .6em; }
.about-copy strong { color: var(--accent-ink); font-weight: 700; }

.about-figure { position: relative; margin: 0; }
.about-figure img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.about-figure::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px;
  border: 2px solid var(--gold-500); border-radius: var(--r-lg); z-index: -1;
}
.about-figure figcaption {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  background: rgba(4, 23, 41, .82); backdrop-filter: blur(8px);
  color: var(--white); font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding: 12px 18px; border-radius: var(--r-sm);
  border-left: 3px solid var(--gold-500);
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 34px); }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(211, 160, 41, .45); }
.service-media { position: relative; overflow: hidden; }
.service-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.service:hover .service-media img { transform: scale(1.06); }
.service-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(4, 23, 41, .88) 0%, rgba(4, 23, 41, .1) 55%, transparent 100%);
}
.service-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gold-500); display: grid; place-items: center;
  box-shadow: 0 10px 24px -10px rgba(4, 23, 41, .8);
}
.service-badge svg { width: 26px; height: 26px; fill: none; stroke: var(--navy-900); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-title {
  position: absolute; left: 22px; bottom: 18px; z-index: 2; margin: 0;
  color: var(--white); font-size: clamp(21px, 2.4vw, 27px); font-weight: 800;
  letter-spacing: .01em;
}
.service-title::after {
  content: ""; display: block; width: 46px; height: 3px; background: var(--gold-500);
  border-radius: 2px; margin-top: 10px;
}
.service .check-list { padding: 26px clamp(20px, 3vw, 30px) 30px; }

/* Check lists */
.check-list li {
  position: relative; padding-left: 32px; margin-bottom: 13px;
  font-size: 15.8px; color: var(--body);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.8px solid var(--gold-500);
}
.check-list li::after {
  content: ""; position: absolute; left: 5.6px; top: 9.4px;
  width: 8px; height: 4.4px;
  border-left: 1.9px solid var(--gold-600); border-bottom: 1.9px solid var(--gold-600);
  transform: rotate(-45deg);
}
.check-list.tight li { font-size: 15.2px; margin-bottom: 10px; }

/* ---------- Expertise ---------- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.xp {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.xp:hover { transform: translateY(-4px); border-color: rgba(10, 42, 80, .3); box-shadow: var(--shadow-md); }
.xp-icon {
  flex: none; width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  display: grid; place-items: center;
  transition: background .35s var(--ease);
}
.xp:hover .xp-icon { background: linear-gradient(150deg, var(--gold-500), var(--gold-600)); }
.xp-icon svg { width: 25px; height: 25px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xp h3 { font-size: 16.5px; font-weight: 700; margin: 0; letter-spacing: -.01em; }

/* ---------- Company Work & Refinery Projects ---------- */
.work-filter-bar {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin: 0 auto 36px; max-width: 820px;
}
.filter-btn {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700;
  letter-spacing: .02em; padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .82); cursor: pointer;
  transition: all .25s var(--ease);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, .15); color: var(--white);
  border-color: rgba(255, 255, 255, .4); transform: translateY(-1px);
}
.filter-btn.is-active {
  background: var(--gold-500); color: var(--navy-900);
  border-color: var(--gold-400); font-weight: 800;
  box-shadow: 0 6px 20px rgba(211, 160, 41, .45);
}

.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 50px;
}
.work-card {
  position: relative; background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 160, 41, .55);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85);
}
.work-card.is-hidden { display: none !important; }

.work-card-media {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10.5;
  background: var(--navy-900); cursor: pointer;
}
.work-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s var(--ease);
}
.work-card:hover .work-card-media img { transform: scale(1.08); }

.work-badge {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-900); background: var(--gold-400);
  padding: 4px 11px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); z-index: 2;
}
.work-zoom-btn {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(4, 23, 41, .75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: scale(.85);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
  z-index: 2;
}
.work-card:hover .work-zoom-btn { opacity: 1; transform: scale(1); }
.work-zoom-btn:hover { background: var(--gold-500); color: var(--navy-900); }
.work-zoom-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.work-card-body {
  padding: 22px 20px 20px; display: flex; flex-direction: column; flex: 1;
}
.work-card-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.work-card-title {
  font-size: 17px; font-weight: 700; line-height: 1.35;
  color: var(--white); margin: 0;
}
.work-tag {
  flex: none; font-family: var(--font-display); font-size: 11px;
  font-weight: 600; color: var(--gold-400);
  background: rgba(211, 160, 41, .14); border: 1px solid rgba(211, 160, 41, .35);
  border-radius: 6px; padding: 3px 8px; white-space: nowrap;
}
.work-card-desc {
  font-size: 13.8px; line-height: 1.55; color: rgba(255, 255, 255, .74);
  margin: 0 0 18px; flex: 1;
}
.work-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.work-scope {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: rgba(255, 255, 255, .62);
}
.work-scope svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-400); stroke-width: 1.8; }
.work-link-btn {
  background: transparent; border: none; color: var(--gold-400);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 4px 0; display: inline-flex; align-items: center; gap: 4px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.work-link-btn:hover { color: var(--white); transform: translateX(3px); }

/* Sector cards */
.sectors-wrap {
  margin-top: 10px; padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.sectors-heading {
  font-size: 18px; font-weight: 700; color: var(--white);
  margin-bottom: 22px; text-align: center; letter-spacing: .02em;
}
.project-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.project {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--navy-800); box-shadow: var(--shadow-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.project:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .8); }
.project img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover img { transform: scale(1.09); }
.project-label {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 16px 12px 18px;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-800));
  border-top: 2px solid var(--gold-500);
}
.project-label svg { width: 24px; height: 24px; fill: none; stroke: var(--gold-400); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.project-label span {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 700; line-height: 1.35;
  color: var(--white);
}

/* ---------- Lightbox Modal ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute; inset: 0;
  background: rgba(4, 18, 32, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.lightbox-dialog {
  position: relative; z-index: 10;
  width: 100%; max-width: 960px; max-height: 90vh;
  overflow-y: auto; background: var(--navy-800);
  border: 1px solid rgba(211, 160, 41, .4);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95);
  display: flex; flex-direction: column;
  transform: scale(.95); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox-dialog { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(4, 23, 41, .85); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox-close:hover { background: var(--gold-500); color: var(--navy-900); transform: rotate(90deg); }
.lightbox-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.lightbox-content { display: flex; flex-direction: column; }
.lightbox-media-wrap {
  position: relative; background: #000; max-height: 520px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.lightbox-media-wrap img { width: 100%; max-height: 520px; object-fit: contain; display: block; }
.lightbox-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(4, 23, 41, .82); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .25); color: var(--white);
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s; z-index: 10;
}
.lightbox-nav-btn:hover { background: var(--gold-500); color: var(--navy-900); }
.lightbox-nav-btn.prev { left: 16px; }
.lightbox-nav-btn.next { right: 16px; }
.lightbox-nav-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.lightbox-info { padding: 28px clamp(20px, 3.5vw, 38px); background: var(--navy-800); }
.lightbox-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lightbox-badge {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900);
  background: var(--gold-400); padding: 4px 12px; border-radius: 999px;
}
.lightbox-counter { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); }
.lightbox-title { font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; color: var(--white); margin: 0 0 10px; }
.lightbox-desc { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin: 0 0 24px; }
.lightbox-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
}
.lightbox-meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400);
}
.meta-value { font-size: 13.5px; font-weight: 600; color: var(--white); }

/* ---------- Purpose ---------- */
.purpose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
.purpose {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.purpose::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--gold-500), var(--navy-700));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.purpose:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.purpose:hover::before { transform: scaleX(1); }
.purpose-icon {
  width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  margin-bottom: 22px; box-shadow: 0 14px 30px -14px rgba(8, 33, 63, .6);
}
.purpose-icon.navy { background: linear-gradient(150deg, var(--navy-600), var(--navy-900)); }
.purpose-icon.gold { background: linear-gradient(150deg, var(--gold-400), var(--gold-600)); }
.purpose-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--white); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.purpose h3 { font-size: 21px; font-weight: 800; margin-bottom: .55em; }
.purpose p { margin: 0; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 26px); }
.why { text-align: center; padding: 8px; }
.why-icon {
  width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-alt); border: 2px solid var(--line);
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.why:hover .why-icon { background: var(--navy-700); border-color: var(--navy-700); transform: translateY(-6px); }
.why-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .35s var(--ease); }
.why:hover .why-icon svg { stroke: var(--gold-400); }
.why h3 {
  font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: .6em;
}
.why p { font-size: 14.6px; margin: 0; line-height: 1.6; }

/* ---------- HSE ---------- */
.hse-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.hse-visual { display: grid; place-items: center; }
.hse-visual svg { width: 100%; max-width: 280px; height: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.hse-copy h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; }
.hse-copy p { color: rgba(255, 255, 255, .76); max-width: 62ch; }
.hse-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hse-tags li {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  color: var(--white); background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: 9px 18px;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.offices { display: grid; gap: 22px; }
.office {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.office:hover { box-shadow: var(--shadow-md); border-color: rgba(211, 160, 41, .45); }
.office > header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.office .flag {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-800); display: grid; place-items: center;
  border: 2px solid var(--gold-500);
}
.office .flag svg { width: 23px; height: 23px; fill: none; stroke: var(--gold-400); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.office h3 { font-size: 20px; font-weight: 800; letter-spacing: .02em; margin: 0; text-transform: uppercase; }
.office dl > div {
  display: grid; grid-template-columns: 130px 1fr; gap: 14px;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.office dt {
  font-family: var(--font-display); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); padding-top: 3px;
}
.office dd { font-size: 15.6px; }
.office a { color: var(--accent-ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.office a:hover { color: var(--gold-600); border-color: var(--gold-500); }

.contact-form {
  background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 40px);
}
.contact-form h3 { font-size: 21px; font-weight: 800; margin-bottom: 1.1em; }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px;
}
.field label .opt { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--surface-sunk); color: var(--ink);
  font-size: 15.5px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(211, 160, 41, .16);
}
.field.has-error input, .field.has-error textarea { border-color: #d0483c; }
.err { display: block; min-height: 0; color: #d0483c; font-size: 13px; margin-top: 6px; }
.form-note { margin: 16px 0 0; font-size: 14.5px; text-align: center; min-height: 1.2em; }
.form-note.ok { color: #1c7a4a; font-weight: 600; }
.form-note.bad { color: #d0483c; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(170deg, var(--navy-800), var(--navy-900));
  color: rgba(255, 255, 255, .68); padding: clamp(52px, 6vw, 76px) 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px); padding-bottom: 48px;
}
.footer-brand .brand { color: var(--white); margin-bottom: 18px; }
.footer-tag {
  font-family: var(--font-display); font-size: 15px; font-style: italic;
  color: rgba(255, 255, 255, .6); max-width: 34ch; margin: 0;
  border-left: 3px solid var(--gold-500); padding-left: 16px;
}
.footer-col h4 {
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px;
}
.footer-col a, .footer-col p { display: block; font-size: 14.8px; margin: 0 0 10px; text-decoration: none; color: rgba(255, 255, 255, .68); }
.footer-col a { transition: color .2s var(--ease), transform .2s var(--ease); }
.footer-col a:hover { color: var(--gold-400); transform: translateX(3px); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 26px;
}
.footer-bottom p { margin: 0; font-size: 13.6px; color: rgba(255, 255, 255, .52); }
.footer-disciplines { letter-spacing: .16em; text-transform: uppercase; font-size: 12.4px !important; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold-500); color: var(--navy-900);
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(211, 160, 41, .9);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold-400); }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .75s var(--ease) var(--d, 0s), transform .75s var(--ease) var(--d, 0s);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 74px; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 auto; top: 0; z-index: -1;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(6, 28, 50, .98);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    padding: 92px 20px 26px;
    transform: translateY(-102%); transition: transform .45s var(--ease);
    box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9);
    max-height: 100svh; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 16px; border-radius: var(--r-sm); }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.is-active { background: rgba(255, 255, 255, .08); }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; }

  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; margin-inline: auto; }
  .about-figure::before { inset: 18px -18px -18px 18px; }
  .service-grid { grid-template-columns: 1fr; }
  .purpose-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hse-grid { grid-template-columns: 1fr; text-align: center; }
  .hse-visual svg { max-width: 210px; }
  .hse-copy .kicker { justify-content: center; }
  .hse-copy p { margin-inline: auto; }
  .hse-tags { justify-content: center; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 118px; min-height: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .pillars { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .office dl > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand-text strong { font-size: 16px; }
  .brand-mark-wrap { width: 38px; height: 38px; }
  .work-filter-bar { gap: 6px; }
  .filter-btn { font-size: 12px; padding: 8px 14px; }
  .lightbox-meta-grid { grid-template-columns: 1fr; }
  .lightbox-dialog { max-height: 94vh; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (max-width: 900px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 400px) {
  .project-grid, .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .to-top, .scroll-progress, .hero-actions, .contact-form { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .section-navy, .site-footer { background: #fff !important; color: #000 !important; }
  .section-navy h2, .section-navy h3, .site-footer * { color: #000 !important; }
}
