:root {
  --teal: #079996;
  --teal-dark: #04716f;
  --charcoal: #162125;
  --ink: #243238;
  --muted: #66767a;
  --paper: #ffffff;
  --soft: #f3f7f6;
  --line: #dce7e5;
  --gold: #b88a34;
  --green: #3b7d5a;
  --shadow: 0 22px 54px rgba(11, 35, 39, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  padding: 18px 28px;
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(15, 31, 35, 0.08);
  padding-block: 10px;
  backdrop-filter: blur(14px);
}

.nav-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  min-width: 0;
}

.site-header.is-scrolled .brand {
  color: var(--charcoal);
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  padding: 4px;
}

.brand span {
  display: grid;
  gap: 0;
  line-height: 1.25;
}

.brand strong {
  font-size: 18px;
  font-weight: 800;
}

.brand small {
  font-size: 13px;
  opacity: 0.82;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 700;
  padding: 10px 13px;
  border-radius: 8px;
  transition: background 160ms ease, color 160ms ease;
}

.site-header.is-scrolled .nav-links a {
  color: var(--ink);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a:focus-visible,
.site-header.is-scrolled .nav-links a[aria-current="page"] {
  background: var(--soft);
  color: var(--teal-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  place-items: center;
  cursor: pointer;
}

.site-header.is-scrolled .nav-toggle {
  color: var(--charcoal);
  border-color: var(--line);
  background: #fff;
}

.nav-toggle svg,
.btn svg,
.service-icon svg,
.lightbox-close svg,
.lightbox-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  min-height: 88svh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--charcoal);
  padding: 126px 28px 78px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 18, 21, 0) 0%, rgba(6, 24, 28, 0.1) 42%, rgba(6, 31, 35, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.18) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 88px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--teal));
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--charcoal);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 6200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(7, 28, 31, 0.46);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(7, 153, 150, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-arrow-prev {
  left: 24px;
}

.hero-arrow-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.hero-dots button.is-active {
  width: 52px;
  background: var(--gold);
}

.hero-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  max-width: 710px;
  justify-self: center;
  transform: translateX(235px);
  position: relative;
  z-index: 2;
  animation: hero-rise 700ms ease both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.hero .eyebrow {
  color: #e7c980;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
}

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

h1 {
  margin-bottom: 22px;
  font-size: 62px;
  line-height: 1.08;
  font-weight: 900;
}

.hero h1 {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 0;
  color: var(--charcoal);
  font-size: 38px;
  line-height: 1.25;
  font-weight: 900;
}

h3 {
  color: var(--charcoal);
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
}

.hero-lead {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.hero-origin {
  max-width: 680px;
  margin-bottom: 16px;
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--gold);
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 750;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.46);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-proof span {
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(4, 42, 43, 0.34);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

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

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateX(235px) translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateX(235px) translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  line-height: 1.2;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 121, 119, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(10px);
}

.btn-dark {
  align-self: start;
  background: var(--charcoal);
  color: #fff;
}

.section,
.projects-section,
.intro-band,
.numbers-band,
.site-footer {
  padding-inline: 28px;
}

.section {
  padding-block: 92px;
}

.section-inner {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.intro-band {
  background: var(--paper);
  padding-block: 56px;
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.office-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 48px;
  align-items: start;
}

.intro-copy {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 18px;
}

.intro-copy p {
  margin-bottom: 0;
}

.section-heading {
  max-width: 530px;
}

.section-heading.compact {
  margin-bottom: 34px;
}

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

.service-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 33, 37, 0.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: #e9f5f4;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.projects-section {
  padding-block: 92px;
  background: var(--soft);
}

.project-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.switch-btn {
  min-height: 42px;
  padding: 8px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.switch-btn.is-active {
  background: var(--charcoal);
  color: #fff;
}

.project-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  align-items: stretch;
}

.project-panel[hidden] {
  display: none;
}

.project-copy,
.feature-list {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.project-copy {
  padding: 34px;
}

.project-copy h3 {
  margin-bottom: 16px;
  font-size: 30px;
}

.project-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.project-facts span {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.project-facts strong {
  color: var(--charcoal);
  font-size: 13px;
}

.project-more {
  margin-top: 22px;
}

.feature-list {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-list span {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
  color: var(--ink);
  font-weight: 750;
}

.numbers-band {
  padding-block: 50px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 113, 111, 0.94), rgba(22, 33, 37, 0.96)),
    url("assets/hero-abha-infrastructure.png");
  background-size: cover;
  background-position: center 70%;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.number-item {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.number-item strong {
  font-size: 34px;
  line-height: 1.15;
  color: #fff;
}

.number-item span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.office-section {
  background:
    linear-gradient(135deg, rgba(7, 153, 150, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(184, 138, 52, 0.08), transparent 34%),
    #fff;
}

.office-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.office-copy,
.office-details {
  display: grid;
  gap: 22px;
}

.office-copy > p:not(.eyebrow) {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 650;
}

.office-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-action {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(7, 153, 150, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(11, 35, 39, 0.08);
  color: var(--charcoal);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  border-color: rgba(7, 153, 150, 0.48);
  box-shadow: 0 20px 42px rgba(7, 113, 111, 0.14);
  transform: translateY(-2px);
}

.contact-action svg,
.floating-action svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-action span {
  display: grid;
  gap: 2px;
}

.contact-action em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.contact-action strong {
  font-size: 17px;
  line-height: 1.25;
}

.contact-action-whatsapp {
  border-color: rgba(37, 211, 102, 0.34);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.16), rgba(255, 255, 255, 0.86));
}

.office-address-card,
.office-contact-panel,
.office-map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.office-address-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.office-address-card h3 {
  margin: 0;
  font-size: 24px;
}

.office-address {
  display: grid;
  gap: 10px;
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
}

.office-address span {
  position: relative;
  padding-inline-start: 20px;
}

.office-address span::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.office-address-en {
  direction: ltr;
  text-align: left;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}

.office-address-en span {
  padding-inline: 18px 0;
}

.office-address-en span::before {
  left: 0;
  right: auto;
  background: var(--teal);
}

.office-contact-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-list > a,
.contact-list > span {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
  color: var(--muted);
  font-weight: 750;
}

.contact-list > a {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.contact-list > a:hover,
.contact-list > a:focus-visible {
  border-color: rgba(7, 153, 150, 0.42);
  box-shadow: 0 12px 28px rgba(7, 113, 111, 0.1);
  transform: translateY(-2px);
}

.contact-list strong {
  color: var(--charcoal);
  font-size: 13px;
}

.contact-list em {
  font-style: normal;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-strip span {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(7, 153, 150, 0.18);
  border-radius: 999px;
  background: var(--soft);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
}

.office-map-card {
  overflow: hidden;
  box-shadow: none;
}

.office-map-card iframe {
  width: 100%;
  min-height: 310px;
  display: block;
  border: 0;
  background: var(--soft);
}

.office-map-card .btn {
  margin: 14px;
}

.floating-actions {
  position: fixed;
  inset: auto 22px 22px auto;
  z-index: 30;
  display: grid;
  gap: 10px;
}

.floating-action {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: #fff;
  background: rgba(22, 33, 37, 0.88);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.floating-action:hover,
.floating-action:focus-visible {
  background: var(--teal);
  transform: translateY(-2px);
}

.floating-action-whatsapp {
  background: #178d4c;
}

.floating-action-top[hidden] {
  display: none;
}

.site-footer {
  padding-block: 28px;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-weight: 700;
}

.site-footer a {
  color: #fff;
}

.page-hero {
  min-height: 68svh;
  display: grid;
  align-items: end;
  padding: 150px 28px 74px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 27, 31, 0.22), rgba(13, 27, 31, 0.62) 42%, rgba(7, 28, 31, 0.9)),
    url("assets/projects/prince-sultan/prince-sultan-01.jpg");
  background-position: center;
  background-size: cover;
}

.page-hero-inner {
  max-width: 760px;
  margin-inline: auto 0;
}

.page-hero h1 {
  margin-bottom: 18px;
}

.page-hero p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.projects-archive {
  background: #fff;
}

.projects-browser {
  background: #fff;
}

.projects-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.projects-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  max-height: calc(100svh - 116px);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 33, 37, 0.08);
  overflow: hidden;
}

.projects-sidebar-title {
  margin: 0;
  padding: 10px 12px 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.projects-list {
  min-height: 0;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 2px 2px 6px;
  scrollbar-color: rgba(7, 153, 150, 0.48) transparent;
  scrollbar-width: thin;
}

.projects-list::-webkit-scrollbar {
  width: 8px;
}

.projects-list::-webkit-scrollbar-track {
  background: transparent;
}

.projects-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(7, 153, 150, 0.42);
}

.project-nav-sublist {
  display: grid;
  gap: 7px;
  margin-inline-start: 10px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--line);
}

.project-nav-sublist[hidden] {
  display: none;
}

.project-nav-link {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 92px;
  align-content: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbfa);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, color 160ms ease;
}

.project-group-toggle {
  padding-inline-end: 42px;
}

.project-group-toggle::after {
  content: "";
  position: absolute;
  inset-inline-end: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  opacity: 0.72;
  transform: translateY(-62%) rotate(45deg);
  transition: transform 160ms ease;
}

.project-group-toggle[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(225deg);
}

.project-nav-link:hover,
.project-nav-link:focus-visible {
  border-color: rgba(7, 153, 150, 0.42);
  transform: translateY(-2px);
}

.project-nav-link.is-active {
  border-color: var(--charcoal);
  color: #fff;
  background: linear-gradient(150deg, var(--teal-dark), var(--charcoal));
}

.project-nav-link.is-parent-active {
  border-color: rgba(7, 153, 150, 0.42);
  background: #eef8f7;
}

.project-nav-link.is-nested {
  min-height: 76px;
  padding: 11px 12px;
  background: #fff;
}

.project-nav-link.is-nested.is-active {
  border-color: var(--charcoal);
  background: linear-gradient(150deg, var(--teal-dark), var(--charcoal));
}

.project-nav-link.is-nested strong {
  font-size: 15px;
}

.project-nav-link small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.project-nav-link.is-active small {
  color: #e7c980;
}

.project-nav-link strong {
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 900;
}

.project-nav-link.is-active strong {
  color: #fff;
}

.project-nav-link span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.project-nav-link.is-active span {
  color: rgba(255, 255, 255, 0.78);
}

.projects-content {
  min-width: 0;
}

.projects-browser .project-detail {
  padding: 0;
  background: transparent;
  scroll-margin-top: 110px;
}

.projects-browser .project-detail + .project-detail {
  border-top: 0;
}

.project-detail[hidden] {
  display: none;
}

.grouped-projects-block {
  margin-top: 58px;
}

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

.private-plans-grid .archive-card {
  min-height: 330px;
}

.private-plans-grid .archive-card-body strong {
  font-size: 20px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.archive-card {
  min-height: 390px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(22, 33, 37, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.archive-card:hover,
.archive-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.archive-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.archive-card-body {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.archive-card-body small {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
}

.archive-card-body strong {
  color: var(--charcoal);
  font-size: 22px;
  line-height: 1.35;
  font-weight: 900;
}

.archive-card-body em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.project-detail {
  padding-block: 92px;
  padding-inline: 28px;
  background: var(--soft);
}

.project-detail + .project-detail {
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: stretch;
}

.detail-main,
.detail-aside {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-main {
  padding: 34px;
}

.detail-main h2 {
  margin-bottom: 18px;
}

.detail-main p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.detail-aside {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.detail-aside span {
  display: grid;
  align-content: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 750;
  background: linear-gradient(180deg, #fff, #f8fbfa);
}

.detail-aside strong {
  color: var(--charcoal);
  font-size: 14px;
}

.component-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: 30px;
  align-items: start;
  margin-top: 58px;
}

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

.component-grid article {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(150deg, var(--teal-dark), var(--charcoal));
}

.component-grid strong {
  font-size: 28px;
  line-height: 1.2;
}

.component-grid span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 750;
}

.gallery-block {
  margin-top: 64px;
}

.gallery-carousel {
  position: relative;
  overflow: hidden;
  padding-inline: 58px;
}

.project-gallery {
  --gallery-gap: 14px;
  display: flex;
  gap: var(--gallery-gap);
  direction: ltr;
  transition: transform 420ms ease;
  will-change: transform;
}

.gallery-item {
  flex: 0 0 calc((100% - (var(--gallery-gap) * 2)) / 3);
  min-height: 285px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--charcoal);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  opacity: 0.9;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  color: #fff;
  background: rgba(22, 33, 37, 0.72);
  box-shadow: 0 14px 28px rgba(10, 22, 24, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-50%) scale(1.04);
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-arrow-prev {
  inset-inline-start: 0;
}

.gallery-arrow-next {
  inset-inline-end: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(10, 18, 20, 0.88);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1120px, calc(100vw - 168px));
  max-height: 84svh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-stage {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.lightbox-stage figcaption {
  max-width: min(720px, calc(100vw - 40px));
  min-height: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  inset-inline-start: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 41;
  width: 54px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-arrow:hover,
.lightbox-arrow:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-50%) scale(1.04);
}

.lightbox-arrow-prev {
  left: 24px;
}

.lightbox-arrow-next {
  right: 24px;
}

@media (max-width: 1040px) {
  .hero-content {
    transform: none;
    margin-inline: 0;
    justify-self: end;
    animation-name: hero-rise-mobile;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  .service-grid,
  .numbers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-panel,
  .intro-grid,
  .office-grid,
  .office-layout,
  .detail-grid,
  .component-layout {
    grid-template-columns: 1fr;
  }

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

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .projects-sidebar-title {
    padding-bottom: 0;
  }

  .projects-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 340px;
    overflow-y: auto;
    padding: 2px;
  }

  .project-nav-sublist {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-inline-start: 0;
    padding-inline-start: 0;
    border-inline-start: 0;
  }

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

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

  .gallery-item {
    flex-basis: calc((100% - var(--gallery-gap)) / 2);
  }
}

@keyframes hero-rise-mobile {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

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

  .brand strong {
    font-size: 16px;
  }

  .brand small {
    font-size: 12px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    inset: calc(100% + 8px) 16px auto;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .site-header.is-scrolled .nav-links a {
    color: var(--ink);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible,
  .site-header.is-scrolled .nav-links a:hover,
  .site-header.is-scrolled .nav-links a:focus-visible,
  .nav-links a[aria-current="page"],
  .site-header.is-scrolled .nav-links a[aria-current="page"] {
    background: var(--soft);
    color: var(--teal-dark);
  }

  .hero {
    min-height: 86svh;
    padding: 112px 18px 54px;
  }

  .hero-arrow {
    top: 66px;
    width: 42px;
    height: 42px;
    transform: none;
    background: rgba(7, 28, 31, 0.54);
  }

  .hero-arrow:hover,
  .hero-arrow:focus-visible {
    transform: scale(1.04);
  }

  .hero-arrow-prev {
    left: 16px;
  }

  .hero-arrow-next {
    right: 16px;
  }

  .hero-arrow svg {
    width: 22px;
    height: 22px;
  }

  .hero-dots {
    bottom: 20px;
  }

  .hero-dots button {
    width: 28px;
  }

  .hero-dots button.is-active {
    width: 44px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  h3,
  .project-copy h3 {
    font-size: 23px;
  }

  .hero-lead,
  .intro-copy,
  .office-address {
    font-size: 16px;
  }

  .hero-origin {
    padding-inline-start: 12px;
    font-size: 15px;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof span {
    min-width: calc(50% - 4px);
    padding: 10px 11px;
    font-size: 12px;
  }

  .hero-proof strong {
    font-size: 15px;
  }

  .section,
  .projects-section {
    padding: 64px 18px;
  }

  .page-hero {
    min-height: 62svh;
    padding: 120px 18px 54px;
    background-position: center;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 17px;
  }

  .intro-band,
  .numbers-band,
  .site-footer {
    padding-inline: 18px;
  }

  .service-grid,
  .feature-list,
  .project-facts,
  .numbers-grid,
  .archive-grid,
  .component-grid,
  .office-quick-actions,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .office-address-card,
  .office-contact-panel {
    padding: 16px;
  }

  .office-map-card iframe {
    min-height: 260px;
  }

  .floating-actions {
    inset: auto 14px 14px auto;
    gap: 8px;
  }

  .floating-action {
    width: 46px;
    height: 46px;
  }

  .project-detail {
    padding: 64px 18px;
  }

  .projects-sidebar {
    padding: 8px;
  }

  .projects-list {
    grid-template-columns: 1fr;
    max-height: 360px;
    overflow-y: auto;
  }

  .project-nav-sublist,
  .private-plans-grid {
    grid-template-columns: 1fr;
  }

  .project-nav-sublist {
    margin-inline-start: 8px;
    padding-inline-start: 8px;
    border-inline-start: 2px solid var(--line);
  }

  .project-nav-link {
    min-height: auto;
  }

  .detail-main {
    padding: 24px;
  }

  .archive-card,
  .gallery-item {
    min-height: auto;
  }

  .gallery-carousel {
    padding-inline: 44px;
  }

  .gallery-item {
    flex-basis: 100%;
  }

  .gallery-arrow {
    width: 38px;
    height: 54px;
  }

  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-width: calc(100vw - 36px);
    max-height: 78svh;
  }

  .lightbox-arrow {
    width: 42px;
    height: 54px;
    background: rgba(22, 33, 37, 0.68);
  }

  .lightbox-arrow-prev {
    left: 10px;
  }

  .lightbox-arrow-next {
    right: 10px;
  }

  .project-copy {
    padding: 24px;
  }

  .project-switch {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .switch-btn {
    padding-inline: 10px;
  }

  .office-grid .btn {
    width: 100%;
  }

  .footer-inner {
    display: grid;
  }
}

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