:root,
[data-theme="light"] {
  --bg: #f6f7f9;
  --bg-elevated: #ffffff;
  --text: #1c2430;
  --text-soft: #3d4a5c;
  --text-muted: #667084;
  --heading: #10161f;
  --header-bg: rgba(255, 255, 255, 0.92);
  --legal-bg: #eef3f8;
  --legal-text: #0f2438;
  --line: rgba(16, 22, 31, 0.1);
  --panel: #ffffff;
  --input-bg: #ffffff;
  --nav-mobile-bg: #ffffff;
  --ink: #070b12;
  --navy: #0b1524;
  --steel: #e8eef4;
  --mist: #5b6573;
  --sand: #1c2430;
  --muted: #667084;
  --blue: #0c7db8;
  --blue-deep: #0a6a9c;
  --gold: #9a7840;
  --gold-soft: #8a6c38;
  --white: #ffffff;
  --overlay: rgba(7, 11, 18, 0.94);
  --shadow: 0 16px 40px rgba(16, 22, 31, 0.08);
  --radius: 18px;
  --header-h: 132px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #070b12;
  --bg-elevated: #101a2a;
  --text: #e8dfd0;
  --text-soft: #c9c2b6;
  --text-muted: #8d97a3;
  --heading: #f4efe6;
  --header-bg: rgba(7, 11, 18, 0.9);
  --legal-bg: #0e1c30;
  --legal-text: #ffffff;
  --line: rgba(232, 223, 208, 0.14);
  --panel: #101a2a;
  --input-bg: #0b1320;
  --nav-mobile-bg: #0e1724;
  --steel: #132033;
  --mist: #c9c2b6;
  --sand: #e8dfd0;
  --muted: #8d97a3;
  --blue: #1aa3e0;
  --blue-deep: #0c7db8;
  --gold: #c4a46a;
  --gold-soft: #d8c08a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--blue);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.wrap-wide {
  width: min(1360px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--heading);
}

.lede {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-soft);
  max-width: 40rem;
}

.muted {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.legal-bar {
  background: var(--legal-bg);
  border-bottom: 1px solid var(--line);
}

.legal-bar-inner {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.legal-name {
  min-width: 0;
  flex: 1 1 280px;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.5vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--legal-text);
}

.legal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(154, 120, 64, 0.4);
  background: rgba(154, 120, 64, 0.08);
  color: var(--gold-soft);
  padding: 5px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge b {
  color: var(--legal-text);
  font-weight: 500;
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 86px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 176px;
  height: 58px;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.brand-copy span {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--text-soft);
  font-size: 0.95rem;
  position: relative;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--heading);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--blue);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle,
.menu-toggle {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--heading);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.theme-toggle:hover,
.menu-toggle:hover {
  border-color: var(--blue);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  width: auto;
  min-width: 46px;
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--heading);
  background: transparent;
}

.btn-gold {
  background: var(--gold);
  color: #fff;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: min(38rem, calc(100vh - var(--header-h)));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media,
.band-media,
.card-media {
  position: absolute;
  inset: 0;
}

.hero-media img,
.band-media img,
.card-media img,
.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.band-media::after,
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, 0.32) 0%, rgba(7, 11, 18, 0.52) 42%, rgba(7, 11, 18, 0.92) 100%),
    linear-gradient(90deg, rgba(7, 11, 18, 0.58), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 0 48px;
  color: #f4efe6;
}

.hero h1,
.sector h3,
.world h2,
.service-card h3 {
  color: #f4efe6;
}

.hero .kicker,
.sector .kicker,
.world .kicker,
.service-card .kicker {
  color: #d8c08a;
}

.hero .kicker::before,
.sector .kicker::before,
.world .kicker::before,
.service-card .kicker::before {
  background: #d8c08a;
}

.hero .lede,
.hero-meta p,
.sector p,
.world .lede,
.service-card p {
  color: #d5cfc4;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  max-width: 16ch;
  margin: 14px 0 16px;
}

.hero h1 em {
  font-style: normal;
  color: #4ec3f0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero .btn-ghost {
  border-color: rgba(244, 239, 230, 0.35);
  color: #f4efe6;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
}

.hero-meta p {
  margin: 8px 0 0;
}

.section {
  padding: 80px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
}

.section-head h2,
.display-lg {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.stat {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
  letter-spacing: -0.03em;
  color: var(--heading);
}

.stat span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 220px;
  box-shadow: var(--shadow);
}

.pillar .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.pillar h3 {
  font-size: 1.3rem;
  margin: 16px 0 10px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 300px 300px;
  gap: 16px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 260px;
  color: #f4efe6;
}

.service-card.feature {
  grid-row: 1 / span 2;
}

.service-card .card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.service-card h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  margin-bottom: 8px;
}

.service-card p {
  margin: 0;
  max-width: 36ch;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card img {
  transition: transform 0.8s var(--ease);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split-media {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.sectors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.sector {
  position: relative;
  min-height: 460px;
  border-radius: 24px;
  overflow: hidden;
}

.sector .copy {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
}

.sector h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  margin: 8px 0 10px;
}

.world {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
}

.world .copy {
  position: relative;
  z-index: 2;
  padding: 56px 44px;
  max-width: 38rem;
}

.cta-band {
  background:
    radial-gradient(circle at 20% 20%, rgba(12, 125, 184, 0.12), transparent 35%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.footer-legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  max-width: 18ch;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery img,
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery figure {
  margin: 0;
  height: 220px;
  border-radius: 16px;
  overflow: hidden;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.service-block,
#sectors,
#engineering,
#projects,
#manpower,
#supply,
#ict,
#enquiry {
  scroll-margin-top: 148px;
}

.service-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.service-block.reverse {
  direction: rtl;
}

.service-block.reverse > * {
  direction: ltr;
}

.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 210px 210px;
  gap: 12px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.mosaic .span {
  grid-row: 1 / span 2;
}

.plaque {
  border: 1px solid rgba(154, 120, 64, 0.35);
  background:
    linear-gradient(180deg, rgba(154, 120, 64, 0.08), transparent 50%),
    var(--panel);
  border-radius: 24px;
  padding: 32px;
}

.plaque dt {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plaque dd {
  margin: 6px 0 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
}

.contact-card,
.form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.map {
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  width: 100%;
  height: 240px;
  filter: grayscale(0.15) contrast(1.02);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s var(--ease) forwards;
}

.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.16s; }
.d3 { animation-delay: 0.24s; }
.d4 { animation-delay: 0.32s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  background: var(--bg-elevated);
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}

.facts {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 28px 0 0;
}

.facts li {
  list-style: none;
  padding-left: 22px;
  position: relative;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.address {
  font-style: normal;
  line-height: 1.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    background: var(--nav-mobile-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .hero-meta,
  .stats,
  .pillars,
  .services-grid,
  .split,
  .sectors,
  .footer-grid,
  .service-block,
  .service-block.reverse,
  .contact-grid,
  .gallery,
  .two-col {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .mosaic {
    grid-template-rows: none;
  }

  .service-card.feature,
  .mosaic .span {
    grid-row: auto;
  }

  .cta-band,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta,
  .stats .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .world .copy,
  .cta-band {
    padding: 28px 22px;
  }

  .split-media,
  .sector {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 142px;
    height: 48px;
  }

  .brand-copy {
    display: none;
  }

  .legal-name {
    flex-basis: 100%;
    letter-spacing: 0.04em;
  }

  .legal-meta {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .badge {
    white-space: normal;
  }

  .hero h1 {
    font-size: 1.85rem;
    max-width: none;
  }

  .page-hero h1 {
    font-size: 1.7rem;
    max-width: none;
  }

  .hero {
    min-height: 34rem;
  }

  .gallery,
  .mosaic {
    grid-template-columns: 1fr 1fr;
  }
}
