:root {
  --navy: #071E41;
  --dark: #041225;
  --red: #E1262F;
  --blue: #315C8C;
  --text: #152238;
  --muted: #5D6B7E;
  --soft: #F5F7FA;
  --border: #DDE3EA;
  --white: #FFFFFF;
  --shadow: 0 16px 36px rgba(7, 30, 65, 0.08);
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

:focus-visible {
  outline: 3px solid rgba(225, 38, 47, 0.42);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 4px;
  background: var(--dark);
  color: var(--white);
  padding: 0.65rem 0.9rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 40px, 860px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 227, 234, 0.72);
  background: var(--white);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(221, 227, 234, 0.44);
  box-shadow: 0 8px 22px rgba(7, 30, 65, 0.06);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  min-height: 104px;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
  color: var(--navy);
  text-decoration: none;
}

.site-header .brand {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  width: max-content;
  text-align: center;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.site-header .brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}

.site-header .brand small {
  display: none;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4.2rem);
  margin: 0;
}

.desktop-nav a {
  position: relative;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.desktop-nav a[aria-current="page"] {
  color: var(--navy);
}

.desktop-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.72rem;
  height: 2px;
  background: var(--red);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--navy);
  border-radius: 6px;
  background: var(--navy);
  color: var(--white);
  font-weight: 750;
  line-height: 1.15;
  padding: 0.82rem 1.05rem;
  text-align: center;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--white);
  color: var(--navy);
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 0.88rem;
  font-size: 0.9rem;
}

.mobile-nav {
  display: none;
  position: relative;
  margin-left: auto;
  justify-self: end;
}

.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.mobile-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  width: min(82vw, 280px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav nav a {
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.mobile-nav nav a[aria-current="page"] {
  color: var(--red);
}

.mobile-nav nav a + a {
  border-top: 1px solid var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 72px;
  background:
    linear-gradient(115deg, rgba(49, 92, 140, 0.08), rgba(255, 255, 255, 0) 44%),
    var(--white);
}

.hero-home {
  min-height: calc(100vh - 104px);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(245, 247, 250, 0.74) 58%, rgba(245, 247, 250, 0.44) 100%),
    url("assets/hero-smart-city.jpg") right center / cover no-repeat,
    var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  right: -18vw;
  bottom: -160px;
  width: 52vw;
  height: 330px;
  border-top: 1px solid rgba(49, 92, 140, 0.18);
  border-left: 1px solid rgba(49, 92, 140, 0.18);
  transform: skewX(-18deg);
}

.hero-home::after {
  opacity: 0.45;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: clamp(2.2rem, 6vw, 5.25rem);
}

.hero-home .hero-grid {
  grid-template-columns: minmax(0, 650px);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.45rem, 6vw, 4.25rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 4vw, 2.65rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.14rem;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-visual {
  min-height: 330px;
}

.hero-visual svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 34px rgba(7, 30, 65, 0.12));
}

.section {
  padding: 82px 0;
}

.section-muted {
  background: var(--soft);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
}

.section-copy {
  color: var(--muted);
}

.section-copy p {
  margin-bottom: 1.1rem;
}

.lead-copy {
  font-size: 1.04rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  padding: 0;
  margin: 1.35rem 0 0;
  list-style: none;
}

.feature-list {
  margin-top: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--red);
  transform: rotate(45deg);
}

.section-heading {
  width: min(100%, 780px);
  margin-bottom: 2.3rem;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.compact {
  width: min(100%, 720px);
}

.route-grid,
.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

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

.route-card,
.solution-card,
.industry-grid article,
.process-list li {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.route-card {
  display: block;
  min-height: 210px;
  padding: 1.25rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.route-card:hover,
.solution-card:hover {
  border-color: rgba(49, 92, 140, 0.44);
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateY(-2px);
}

.route-card span,
.process-list span {
  display: inline-flex;
  margin-bottom: 1.35rem;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 850;
}

.route-card p,
.solution-card p,
.industry-grid p,
.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.solution-card {
  min-height: 238px;
  padding: 1.35rem;
  box-shadow: 0 12px 28px rgba(7, 30, 65, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card-mark {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 1.15rem;
  border: 9px solid rgba(7, 30, 65, 0.12);
  border-left-color: var(--red);
  transform: rotate(45deg);
}

.note {
  margin: 1.25rem 0 0;
  border-left: 4px solid var(--red);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  padding: 1rem 1.1rem;
}

.dark-section {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.78);
}

.dark-section h2,
.dark-section h3 {
  color: var(--white);
}

.dark-section .eyebrow {
  color: #FF5D66;
}

.building-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(460px, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
}

.building-grid p:not(.eyebrow) {
  margin-bottom: 0;
}

.building-diagram {
  display: grid;
  gap: 0.85rem;
  min-height: 380px;
  border: 1px solid rgba(221, 227, 234, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.04);
  background-size: 36px 36px;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.software-layer,
.connectivity-layer,
.foundation-layer,
.diagram-node {
  display: grid;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0.75rem;
  text-align: center;
  font-weight: 750;
  line-height: 1.25;
}

.software-layer {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.diagram-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.diagram-node {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--white);
  color: var(--navy);
}

.connectivity-layer {
  position: relative;
  background: var(--blue);
  color: var(--white);
}

.connectivity-layer::before,
.connectivity-layer::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  height: 18px;
  background: rgba(255, 255, 255, 0.44);
  transform: translateX(-50%);
}

.connectivity-layer::before {
  top: -18px;
}

.connectivity-layer::after {
  bottom: -18px;
}

.endpoint-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.diagram-node.small {
  min-height: 64px;
  font-size: 0.9rem;
}

.foundation-layer {
  background: var(--red);
  color: var(--white);
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.industry-grid article {
  padding: 1.4rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.process-list-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-list li {
  min-height: 245px;
  padding: 1.25rem;
}

.contact-section {
  background: linear-gradient(135deg, var(--navy), var(--dark));
  color: rgba(255, 255, 255, 0.78);
}

.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 18, 37, 0.96) 0%, rgba(7, 30, 65, 0.9) 42%, rgba(7, 30, 65, 0.66) 100%),
    url("assets/contact-starry-ocean.jpg") right center / cover no-repeat,
    var(--dark);
}

.contact-hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -130px;
  width: 44vw;
  height: 220px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  transform: skewX(-16deg);
}

.contact-hero .container {
  position: relative;
  z-index: 1;
}

.contact-page-section {
  min-height: calc(100vh - 201px);
  display: grid;
  align-items: center;
}

.contact-section h1,
.contact-section h2 {
  color: var(--white);
}

.contact-section .eyebrow {
  color: #FF5D66;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.58fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-grid p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  gap: 1rem;
  margin: 0;
  font-style: normal;
}

.contact-panel div {
  display: grid;
  gap: 0.2rem;
  border-left: 4px solid var(--red);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem 1.1rem;
}

.contact-panel span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  font-weight: 750;
}

.contact-panel a,
.contact-panel strong {
  color: var(--white);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--white);
}

.footer-inner {
  display: flex;
  min-height: 124px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-brand img {
  width: 42px;
  height: 42px;
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: right;
}

.footer-meta p {
  margin: 0;
}

.page-hero {
  padding: 82px 0 66px;
  background: var(--soft);
}

.about-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 36%, rgba(245, 247, 250, 0.72) 62%, rgba(245, 247, 250, 0.42) 100%),
    url("assets/about-singapore-night.jpg") right center / cover no-repeat,
    var(--soft);
}

.about-hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -130px;
  width: 44vw;
  height: 260px;
  border-top: 1px solid rgba(49, 92, 140, 0.16);
  border-left: 1px solid rgba(49, 92, 140, 0.16);
  transform: skewX(-18deg);
}

.about-hero .container {
  position: relative;
  z-index: 1;
}

.solutions-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 36%, rgba(245, 247, 250, 0.72) 62%, rgba(245, 247, 250, 0.42) 100%),
    url("assets/solutions-energy-grid.jpg") right center / cover no-repeat,
    var(--soft);
}

.solutions-hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -130px;
  width: 42vw;
  height: 260px;
  border-top: 1px solid rgba(49, 92, 140, 0.16);
  border-left: 1px solid rgba(49, 92, 140, 0.16);
  transform: skewX(-18deg);
}

.solutions-hero .container {
  position: relative;
  z-index: 1;
}

.work-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 36%, rgba(245, 247, 250, 0.72) 62%, rgba(245, 247, 250, 0.42) 100%),
    url("assets/work-orbital-flow.jpg") right center / cover no-repeat,
    var(--soft);
}

.work-hero::after {
  content: "";
  position: absolute;
  right: -10vw;
  bottom: -130px;
  width: 42vw;
  height: 260px;
  border-top: 1px solid rgba(49, 92, 140, 0.16);
  border-left: 1px solid rgba(49, 92, 140, 0.16);
  transform: skewX(-18deg);
}

.work-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.1rem;
}

.page-hero-grid h1 {
  max-width: 640px;
}

.privacy-content {
  display: grid;
  gap: 2rem;
}

.privacy-content section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
}

.privacy-content h2 {
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.privacy-content p {
  color: var(--muted);
}

.updated {
  color: var(--text);
  font-weight: 750;
}

@media (max-width: 1120px) {
  .desktop-nav {
    display: none;
  }

  .header-inner {
    display: flex;
    min-height: 76px;
  }

  .site-header .brand {
    display: inline-flex;
    justify-items: initial;
    text-align: left;
  }

  .site-header .brand small {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .hero-grid,
  .building-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-home .hero-grid {
    grid-template-columns: minmax(0, 680px);
  }

  .hero-visual {
    min-height: 0;
  }

  .route-grid,
  .solution-grid,
  .industry-grid,
  .process-list,
  .process-list-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 66px;
    gap: 0.75rem;
  }

  .brand {
    gap: 0.62rem;
    max-width: calc(100% - 56px);
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    display: block;
    max-width: 185px;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand small,
  .site-header .brand small {
    display: none;
  }

  .mobile-nav nav {
    right: -2px;
    width: min(88vw, 292px);
  }

  .hero,
  .section,
  .page-hero {
    padding: 54px 0;
  }

  .hero-home {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 52%, rgba(245, 247, 250, 0.62) 100%),
      url("assets/hero-smart-city.jpg") 58% center / cover no-repeat,
      var(--white);
  }

  .about-hero {
    background:
      linear-gradient(180deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 58%, rgba(245, 247, 250, 0.68) 100%),
      url("assets/about-singapore-night.jpg") 64% center / cover no-repeat,
      var(--soft);
  }

  .solutions-hero {
    background:
      linear-gradient(180deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 58%, rgba(245, 247, 250, 0.68) 100%),
      url("assets/solutions-energy-grid.jpg") 66% center / cover no-repeat,
      var(--soft);
  }

  .work-hero {
    background:
      linear-gradient(180deg, rgba(245, 247, 250, 0.98) 0%, rgba(245, 247, 250, 0.93) 58%, rgba(245, 247, 250, 0.68) 100%),
      url("assets/work-orbital-flow.jpg") 64% center / cover no-repeat,
      var(--soft);
  }

  .contact-hero {
    background:
      linear-gradient(180deg, rgba(4, 18, 37, 0.97) 0%, rgba(7, 30, 65, 0.9) 60%, rgba(7, 30, 65, 0.72) 100%),
      url("assets/contact-starry-ocean.jpg") 64% center / cover no-repeat,
      var(--dark);
  }

  .hero-grid {
    gap: 2rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.35rem, 12vw, 2.75rem);
  }

  h2 {
    font-size: clamp(1.8rem, 9vw, 2.15rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    margin-inline: -8px;
  }

  .two-column,
  .route-grid,
  .solution-grid,
  .industry-grid,
  .process-list,
  .process-list-wide,
  .diagram-row,
  .endpoint-row {
    grid-template-columns: 1fr;
  }

  .route-card,
  .solution-card,
  .process-list li {
    min-height: auto;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .building-diagram {
    min-height: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-page-section {
    min-height: auto;
  }

  .contact-section h1 {
    font-size: clamp(2.25rem, 11vw, 2.8rem);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.4rem 0;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 390px) {
  .container,
  .narrow {
    width: min(100% - 24px, var(--container));
  }

  .brand strong {
    max-width: 150px;
  }

  .mobile-nav summary {
    width: 42px;
    height: 42px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .software-layer,
  .connectivity-layer,
  .foundation-layer,
  .diagram-node {
    min-height: 54px;
    padding: 0.65rem;
    font-size: 0.92rem;
  }
}

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