
:root {
  --navy: #071523;
  --navy-light: #0d2238;
  --blue: #123a5b;
  --steel: #44616f;
  --sage: #697f6f;
  --clay: #9f5d42;
  --gold: #c69b54;
  --gold-light: #f5d590;
  --cream: #f7f1e7;
  --soft: #f8fafc;
  --muted: #617083;
  --text: #102033;
  --white: #ffffff;
  --border-light: #e5ebf2;
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 22px 70px rgba(7, 21, 35, 0.14);
  --shadow-hover: 0 26px 78px rgba(7, 21, 35, 0.20);
  --radius: 8px;
  --header-height: 86px;
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

.page-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #e8edf3;
}

body::-webkit-scrollbar-thumb {
  border: 3px solid #e8edf3;
  border-radius: 999px;
  background: var(--steel);
}

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

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

p,
li,
span,
a,
strong {
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 3px solid rgba(198, 155, 84, 0.65);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

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

button {
  cursor: pointer;
}
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background: rgba(7, 21, 35, 0.78);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.site-header.scrolled {
  background: rgba(7, 21, 35, 0.94);
  box-shadow: 0 12px 40px rgba(7, 21, 35, 0.28);
}

/* Static/CWP security hardening: progress uses data attributes instead of inline style. */
.scroll-progress { transition: transform .14s linear; }
.scroll-progress[data-progress="0"] { transform: scaleX(0) !important; }
.scroll-progress[data-progress="1"] { transform: scaleX(.05) !important; }
.scroll-progress[data-progress="2"] { transform: scaleX(.10) !important; }
.scroll-progress[data-progress="3"] { transform: scaleX(.15) !important; }
.scroll-progress[data-progress="4"] { transform: scaleX(.20) !important; }
.scroll-progress[data-progress="5"] { transform: scaleX(.25) !important; }
.scroll-progress[data-progress="6"] { transform: scaleX(.30) !important; }
.scroll-progress[data-progress="7"] { transform: scaleX(.35) !important; }
.scroll-progress[data-progress="8"] { transform: scaleX(.40) !important; }
.scroll-progress[data-progress="9"] { transform: scaleX(.45) !important; }
.scroll-progress[data-progress="10"] { transform: scaleX(.50) !important; }
.scroll-progress[data-progress="11"] { transform: scaleX(.55) !important; }
.scroll-progress[data-progress="12"] { transform: scaleX(.60) !important; }
.scroll-progress[data-progress="13"] { transform: scaleX(.65) !important; }
.scroll-progress[data-progress="14"] { transform: scaleX(.70) !important; }
.scroll-progress[data-progress="15"] { transform: scaleX(.75) !important; }
.scroll-progress[data-progress="16"] { transform: scaleX(.80) !important; }
.scroll-progress[data-progress="17"] { transform: scaleX(.85) !important; }
.scroll-progress[data-progress="18"] { transform: scaleX(.90) !important; }
.scroll-progress[data-progress="19"] { transform: scaleX(.95) !important; }
.scroll-progress[data-progress="20"] { transform: scaleX(1) !important; }

.reveal[data-reveal-delay="0"] { transition-delay: 0ms; }
.reveal[data-reveal-delay="1"] { transition-delay: 45ms; }
.reveal[data-reveal-delay="2"] { transition-delay: 90ms; }
.reveal[data-reveal-delay="3"] { transition-delay: 135ms; }
.reveal[data-reveal-delay="4"] { transition-delay: 180ms; }
.reveal[data-reveal-delay="5"] { transition-delay: 225ms; }

.office-map { border: 0; }

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--clay), var(--sage));
}

.nav {
  max-width: 1220px;
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-logo {
  flex: 0 0 auto;
  width: 86px;
  height: 54px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
  padding: 4px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.brand span {
  min-width: 0;
  line-height: 1.1;
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e5e7eb;
  font-size: 0.84rem;
  font-weight: 800;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 44px;
  padding: 12px 18px !important;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy) !important;
  box-shadow: 0 12px 34px rgba(198, 155, 84, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
  box-shadow: 0 16px 42px rgba(198, 155, 84, 0.28);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.hero {
  position: relative;
  min-height: 100svh;
  padding: 148px 22px 76px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 35, 0.95), rgba(7, 21, 35, 0.70), rgba(7, 21, 35, 0.22)),
    url("assets/image70.jpg") center / cover no-repeat;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 35, 0.08), rgba(7, 21, 35, 0.46)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 160px);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  color: var(--white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e9eef7;
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.35;
  backdrop-filter: blur(10px);
}

.hero-kicker span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.hero h1 {
  max-width: 980px;
  margin: 24px 0;
  font-size: 5.1rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 780px;
  color: #d7dee8;
  font-size: 1.18rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 760px;
}

.hero-quick-actions a {
  min-height: 38px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-quick-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
}
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: center;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
  box-shadow: 0 18px 40px rgba(198, 155, 84, 0.24);
}

.secondary {
  border: 1px solid rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.tertiary {
  border-color: rgba(198, 155, 84, 0.60);
  background: rgba(198, 155, 84, 0.12);
  color: var(--white);
}

.tertiary:hover {
  background: rgba(198, 155, 84, 0.20);
}

.dark {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(7, 21, 35, 0.18);
}

.dark:hover {
  background: #102b45;
}

.outline {
  border-color: rgba(7, 21, 35, 0.18);
  background: transparent;
  color: var(--navy);
}

.outline:hover {
  border-color: rgba(198, 155, 84, 0.55);
  background: rgba(198, 155, 84, 0.10);
}

.text-btn {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 40px;
  margin-top: auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 58, 91, 0.08);
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.text-btn:hover {
  transform: translateY(-2px);
  background: var(--navy);
  color: var(--white);
}
.hero-stats {
  max-width: 900px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div {
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.hero-stats span {
  color: #cbd5e1;
}
.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: 98px 22px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section h2 {
  margin: 8px 0 18px;
  font-size: 3.15rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.section h3 {
  line-height: 1.18;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 22px;
}

.glass-card,
.mission-card,
.service-card,
.process-grid div,
.feature-list div,
.operation-card {
  padding: 32px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.mission-card {
  background: linear-gradient(145deg, var(--navy-light), #0b3151);
  color: var(--white);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(198, 155, 84, 0.16);
  color: var(--gold);
}

.glass-card p,
.mission-card p,
.service-card p,
.split-feature p,
.project-card p,
.contact p,
.location p,
.process-grid p,
.professional-operations p,
.operation-card p {
  color: var(--muted);
  line-height: 1.72;
}

.mission-card p {
  color: #d7dee8;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--clay), transparent);
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(198, 155, 84, 0.45);
  box-shadow: var(--shadow-hover);
}

.service-card span,
.process-grid span,
.operation-card span {
  color: var(--gold);
  font-weight: 900;
}

.service-card h3 {
  font-size: 1.35rem;
}

.service-card p {
  flex: 1;
}
.split-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 46px;
  align-items: center;
}

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

.feature-list div {
  background: var(--soft);
  box-shadow: none;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.feature-list div:hover {
  transform: translateY(-4px);
  border-color: rgba(105, 127, 111, 0.45);
  background: #ffffff;
}

.feature-list strong {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 1.55rem;
}

.feature-list span {
  color: #15263a;
  font-weight: 800;
}
.professional-operations {
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.professional-operations > .section-heading,
.operations-grid {
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

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

.operation-card {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f9fbfd 58%, #f6efe3 100%);
  box-shadow: 0 20px 58px rgba(7, 21, 35, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.operation-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--clay));
}

.operation-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(198, 155, 84, 0.14);
  color: var(--clay);
  font-size: 0.95rem;
}

.operation-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.operation-card:hover {
  transform: translateY(-6px);
  border-color: rgba(198, 155, 84, 0.45);
  box-shadow: var(--shadow-hover);
}

.operation-card.wide {
  grid-column: span 2;
}
.showcase {
  max-width: none;
  background: var(--cream);
}

.showcase > .section-heading,
.project-toolbar,
.project-grid,
.experience-gallery,
.project-list {
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

.project-toolbar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn,
.mini-action {
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid rgba(7, 21, 35, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: #2d3a4b;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(7, 21, 35, 0.06);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover,
.mini-action:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 155, 84, 0.46);
}

.filter-btn.active,
.filter-btn[aria-pressed="true"] {
  border-color: transparent;
  background: var(--navy);
  color: var(--white);
}

.project-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(7, 21, 35, 0.08);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-card .project-media {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(180deg, #eef2f5, #f7f8fa);
  border-bottom: 1px solid rgba(18, 58, 91, 0.08);
}

.project-card .project-media img,
.project-card > img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3, 22, 38, 0.12);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card .project-media img:first-child {
  grid-column: 1 / -1;
  height: 360px;
}

.project-card .project-media.three-up,
.project-card .project-media.four-up,
.project-card .project-media.six-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card .project-media.three-up img,
.project-card .project-media.four-up img,
.project-card .project-media.six-up img {
  height: 155px;
}

.project-card .project-media.three-up img:first-child,
.project-card .project-media.four-up img:first-child,
.project-card .project-media.six-up img:first-child {
  height: 330px;
}

.project-card .project-media.six-up img:nth-child(3) {
  object-position: center 68%;
}

.project-card > img {
  height: 360px;
  object-position: center;
}

.project-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.06) contrast(1.02);
}

.project-card > div:not(.project-media) {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.project-card p {
  flex: 1;
}

.project-view {
  min-height: 42px;
  margin-top: 10px;
  padding: 11px 17px;
  border: 1px solid rgba(18, 58, 91, 0.16);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.project-view:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.project-view.light {
  width: fit-content;
  margin-top: 18px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.project-view.light:hover {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.22);
}

.project-list {
  display: none;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 24px;
  padding: 0 0 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--steel) rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
}

.project-list span {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 13px 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--white);
  color: #344256;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(7, 21, 35, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.project-list span:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 155, 84, 0.45);
  color: var(--navy);
}

.experience-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.experience-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.experience-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  z-index: -2;
}

.experience-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 35, 0.12), rgba(7, 21, 35, 0.88));
  z-index: -1;
}

.experience-card div {
  min-height: 360px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
}

.experience-card span {
  width: fit-content;
  margin-bottom: 10px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(198, 155, 84, 0.92);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.experience-card p {
  margin: 0;
  color: #e2e8f0;
  line-height: 1.65;
}

.experience-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-grid div {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.process-grid div::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold), var(--sage), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.process-grid div:hover {
  transform: translateY(-8px);
  background: var(--white);
  box-shadow: 0 26px 70px rgba(7, 21, 35, 0.14);
}

.process-grid div:hover::before {
  transform: scaleX(1);
}

.process-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.local-expertise {
  max-width: none;
  background: linear-gradient(180deg, #ffffff, #f7f1e7);
}

.local-expertise > .section-heading,
.expertise-grid,
.faq-list {
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

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

.expertise-card,
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 54px rgba(7, 21, 35, 0.10);
}

.expertise-card {
  padding: 30px;
}

.expertise-card span {
  color: var(--gold);
  font-weight: 900;
}

.expertise-card h3 {
  margin: 12px 0 10px;
  color: var(--navy);
}

.expertise-card p,
.faq-item p {
  color: var(--muted);
  line-height: 1.72;
}

.faq-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0 24px;
}

.faq-item summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  color: var(--navy);
  cursor: pointer;
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 0 22px;
}
.quote {
  max-width: none;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.quote > .section-heading,
.quote-layout {
  max-width: 1220px;
  margin-right: auto;
  margin-left: auto;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.quote-builder,
.quote-summary {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-builder {
  padding: 32px;
  display: grid;
  gap: 22px;
}

.quote-step {
  display: grid;
  gap: 12px;
}

.quote-label,
.quote-builder label {
  color: #1d2d42;
  font-size: 0.9rem;
  font-weight: 900;
}

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

.quote-choice {
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid rgba(7, 21, 35, 0.14);
  border-radius: var(--radius);
  background: #f8fafc;
  color: #233247;
  font-weight: 900;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quote-choice:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 155, 84, 0.45);
}

.quote-choice.active,
.quote-choice[aria-pressed="true"] {
  border-color: transparent;
  background: var(--navy);
  color: var(--white);
}

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

.quote-builder label {
  display: grid;
  gap: 8px;
}

.quote-builder input,
.quote-builder select,
.quote-builder textarea {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  font-size: 0.95rem;
}

.quote-builder input,
.quote-builder select {
  min-height: 48px;
  padding: 0 14px;
}

.quote-builder textarea {
  min-height: 122px;
  padding: 13px 14px;
  resize: vertical;
}

.quote-builder input:focus,
.quote-builder select:focus,
.quote-builder textarea:focus {
  outline: 3px solid rgba(198, 155, 84, 0.28);
  border-color: rgba(198, 155, 84, 0.68);
  background: var(--white);
}

.quote-actions,
.location-actions,
.contact-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-summary {
  padding: 32px;
  background: linear-gradient(145deg, var(--navy), #123a5b);
  color: var(--white);
}

.quote-summary h3 {
  margin-top: 8px;
  font-size: 1.7rem;
}

.quote-summary ul {
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 14px;
  list-style: none;
}

.quote-summary li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #d7dee8;
}

.quote-summary strong {
  color: var(--white);
}

.summary-note {
  color: #d7dee8;
  line-height: 1.7;
}

.quote-summary .mini-action {
  margin-top: 12px;
  background: var(--gold);
  color: var(--navy);
}
.location {
  max-width: none;
  background: var(--white);
}

.location-card {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.map-panel {
  min-height: 430px;
  overflow: hidden;
  border: 8px solid var(--white);
  border-radius: var(--radius);
  background: #e5e7eb;
  box-shadow: var(--shadow);
}

.location-actions {
  margin-top: 24px;
}

.map-panel iframe {
  width: 100%;
  height: 430px;
  display: block;
  border: 0;
}
.contact {
  max-width: none;
  padding-top: 96px;
  padding-bottom: 96px;
  background: linear-gradient(135deg, var(--navy), #102b45);
}

.contact-card {
  max-width: 1220px;
  margin: 0 auto;
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-details {
  padding: 30px;
  border-radius: var(--radius);
  background: var(--cream);
}

.contact-details a {
  color: #0c4a6e;
  font-weight: 900;
}

.contact-actions {
  margin-top: 22px;
}

.contact-actions .btn {
  flex: 1 1 150px;
}
.footer {
  padding: 28px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  background: #050d16;
  color: #cbd5e1;
}

.footer a {
  color: var(--gold);
  font-weight: 900;
}
.floating-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 8px;
}

.floating-actions a {
  min-width: 86px;
  min-height: 40px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 21, 35, 0.92);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(7, 21, 35, 0.24);
  backdrop-filter: blur(14px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.floating-actions a:hover {
  transform: translateY(-2px);
  background: var(--blue);
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding: 20px;
  display: grid;
  place-items: center;
  background: rgba(3, 12, 22, 0.88);
  backdrop-filter: blur(8px);
}

.project-modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: calc(100svh - 40px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.65fr);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.48);
}

.modal-gallery {
  position: relative;
  min-height: 650px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #071523;
}

.modal-stage {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: calc(100svh - 170px);
  object-fit: contain;
  background: #071523;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(7, 21, 35, 0.68);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  backdrop-filter: blur(10px);
  z-index: 3;
}

.modal-nav:hover {
  background: rgba(198, 155, 84, 0.92);
  color: var(--navy);
}

.modal-prev { left: 18px; }
.modal-next { right: 18px; }

.modal-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(7, 21, 35, 0.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  z-index: 3;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px;
  overflow-x: auto;
  background: #0b1c2c;
  scrollbar-width: thin;
}

.modal-thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  background: transparent;
  opacity: 0.62;
}

.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumb.active,
.modal-thumb:hover {
  border-color: var(--gold);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7, 21, 35, 0.14);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(7, 21, 35, 0.16);
}

.modal-content {
  padding: 54px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}

.modal-content h2 {
  margin: 8px 0 14px;
  font-size: 2.35rem;
  line-height: 1.08;
}

.modal-description {
  color: var(--muted);
  line-height: 1.75;
}

.modal-actions {
  margin-top: 24px;
}

@media (max-width: 1120px) {
  .nav-links {
    gap: 10px;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: 4.1rem;
  }

  .section h2 {
    font-size: 2.65rem;
  }

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

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .nav {
    padding: 10px 16px;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    right: 16px;
    left: 16px;
    max-height: calc(100svh - var(--header-height) - 28px);
    display: grid;
    gap: 8px;
    padding: 16px;
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(7, 21, 35, 0.98);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

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

  .nav-links a {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 4px;
  }

  .brand-logo {
    width: 70px;
    height: 44px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
    align-items: end;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(7, 21, 35, 0.72), rgba(7, 21, 35, 0.92)),
      url("assets/image70.jpg") center / cover no-repeat;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-text {
    font-size: 1.05rem;
  }

  .section {
    padding: 74px 18px;
  }

  .hero-stats,
  .intro-grid,
  .service-grid,
  .expertise-grid,
  .project-grid,
  .split-feature,
  .feature-list,
  .location-card,
  .contact-card,
  .experience-gallery,
  .quote-layout,
  .project-modal-panel {
    grid-template-columns: 1fr;
  }

  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .choice-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .operation-card.wide {
    grid-column: span 1;
  }

  .project-card.featured {
    grid-row: auto;
  }

  .project-card > img {
    height: 320px;
  }

  .project-card .project-media.three-up {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .project-card .project-media.three-up img {
    height: 190px;
  }

  .project-card .project-media.three-up img:first-child {
    height: 320px;
  }

  .project-card .project-media.four-up,
  .project-card .project-media.six-up {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .project-card .project-media.four-up img,
  .project-card .project-media.six-up img {
    height: 190px;
  }

  .project-card .project-media.four-up img:first-child,
  .project-card .project-media.six-up img:first-child {
    height: 320px;
  }

  .experience-card,
  .experience-card div {
    min-height: 310px;
  }

  .contact-card {
    padding: 28px;
  }

  .map-panel,
  .map-panel iframe {
    min-height: 340px;
    height: 340px;
  }

  .modal-gallery {
    min-height: 390px;
  }

  .modal-stage {
    min-height: 310px;
  }

  .modal-image {
    max-height: 310px;
  }

  .modal-content {
    padding: 28px 22px;
  }

  .floating-actions {
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .floating-actions a {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .brand strong {
    max-width: 150px;
    white-space: normal;
  }

  .hero {
    padding: 112px 16px 54px;
  }

  .hero-kicker {
    align-items: flex-start;
    border-radius: var(--radius);
  }

  .hero h1 {
    font-size: 2.35rem;
    line-height: 1.08;
  }

  .hero-actions,
  .hero-actions .btn,
  .quote-actions .btn,
  .location-actions .btn,
  .modal-actions .btn {
    width: 100%;
  }

  .hero-quick-actions a,
  .filter-btn,
  .mini-action {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero-stats {
    margin-top: 34px;
  }

  .hero-stats div,
  .glass-card,
  .mission-card,
  .service-card,
  .expertise-card,
  .faq-item,
  .process-grid div,
  .feature-list div,
  .operation-card,
  .contact-details,
  .quote-builder,
  .quote-summary {
    padding: 22px;
  }

  .section h2 {
    font-size: 2rem;
  }

  .operations-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured img,
  .project-card img {
    height: 250px;
  }

  .project-card .project-media.three-up {
    gap: 12px;
    padding: 12px;
  }

  .project-card .project-media.three-up img {
    height: 250px;
  }

  .project-card .project-media.four-up,
  .project-card .project-media.six-up {
    gap: 12px;
    padding: 12px;
  }

  .project-card .project-media.four-up img,
  .project-card .project-media.six-up img {
    height: 250px;
  }

  .footer {
    display: grid;
  }

  .modal-content {
    padding: 32px 24px;
  }

  .modal-content h2 {
    font-size: 1.8rem;
  }

  .floating-actions {
    gap: 6px;
  }

  .floating-actions a {
    padding: 9px 8px;
    font-size: 0.72rem;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Production-safe project gallery + space-efficient project cards */
.project-grid {
  align-items: start;
  grid-auto-flow: row;
}

.project-card {
  min-width: 0;
}

.project-card .project-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.project-card .project-media img,
.project-card > img {
  height: 112px;
  min-width: 0;
  border-radius: 10px;
}

.project-card .project-media img:first-child {
  grid-column: 1 / -1;
  height: 285px;
}

/* Keep the card compact; every image remains available in the modal gallery. */
.project-card .project-media img:nth-child(n + 4) {
  display: none;
}

.project-card > img {
  height: 285px;
  display: block;
  object-fit: cover;
}

.project-card > div:not(.project-media) {
  padding: 20px 22px 22px;
}

.project-card h3 {
  margin-top: 0;
}

.project-card p {
  margin-bottom: 8px;
}

.project-view {
  margin-top: 6px;
}

.project-modal {
  padding: 14px;
}

.project-modal-panel {
  width: min(1120px, 100%);
  max-height: calc(100svh - 28px);
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, .7fr);
}

.modal-gallery {
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.modal-stage {
  min-height: 0;
  height: min(68svh, 610px);
}

.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.modal-thumbs {
  min-height: 76px;
  padding: 9px 12px;
}

.modal-thumb {
  flex-basis: 76px;
  width: 76px;
  height: 54px;
}

@media (max-width: 900px) {
  .project-card .project-media img:first-child {
    height: 300px;
  }

  .project-card .project-media img {
    height: 105px;
  }

  .project-modal-panel {
    max-height: calc(100svh - 20px);
  }

  .modal-stage {
    height: min(55svh, 500px);
  }
}

@media (max-width: 560px) {
  .project-grid {
    gap: 16px;
  }

  .project-card .project-media {
    padding: 8px;
    gap: 7px;
  }

  .project-card .project-media img:first-child {
    height: 245px;
  }

  .project-card .project-media img {
    height: 86px;
  }

  .project-card > img {
    height: 245px;
  }

  .project-card > div:not(.project-media) {
    padding: 18px;
  }

  .project-modal {
    padding: 7px;
  }

  .project-modal-panel {
    max-height: calc(100svh - 14px);
    border-radius: 16px;
  }

  .modal-stage {
    height: min(48svh, 390px);
  }

  .modal-thumbs {
    padding: 7px 9px;
  }

  .modal-thumb {
    flex-basis: 68px;
    width: 68px;
    height: 48px;
  }
}


/* FINAL PRODUCTION GALLERY FIX - 2026-08-27 */
.project-card .project-media,
.project-card .project-media.three-up,
.project-card .project-media.four-up,
.project-card .project-media.six-up {
  overflow: hidden;
  align-content: start;
}

.project-card .project-media img:nth-child(n + 2) {
  display: none;
}

.project-card .project-media img:first-child,
.project-card > img {
  grid-column: 1 / -1;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.project-card .project-media img:first-child {
  height: 300px;
}

.project-card > div:not(.project-media) {
  padding: 20px 22px 22px;
}

.project-card p {
  margin: 8px 0 14px;
}

/* Compact project grid: card height follows its content rather than the tallest card. */
.project-grid {
  align-items: start;
  grid-auto-rows: max-content;
}

.project-modal {
  padding: 18px;
  overflow: auto;
}

.project-modal-panel {
  width: min(1080px, 100%);
  height: min(720px, calc(100svh - 36px));
  max-height: calc(100svh - 36px);
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr);
  overflow: hidden;
}

.modal-gallery {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) auto;
}

.modal-stage {
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  overflow: hidden;
  background: #071523;
}

.modal-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: contain;
  transition: opacity .18s ease, transform .18s ease;
}

.modal-image.is-changing {
  animation: projectPhotoChange .22s ease;
}

@keyframes projectPhotoChange {
  from { opacity: .35; transform: translateX(14px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.modal-nav {
  width: 46px;
  height: 46px;
  cursor: pointer;
}

.modal-nav[hidden],
.modal-counter[hidden] {
  display: none !important;
}

.modal-thumbs {
  min-height: 74px;
  max-height: 92px;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
}

.modal-thumb {
  flex: 0 0 82px;
  width: 82px;
  height: 58px;
  cursor: pointer;
}

.modal-content {
  min-width: 0;
  padding: 48px 34px;
  overflow-y: auto;
}

.modal-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.modal-description {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .project-modal-panel {
    width: min(680px, 100%);
    height: auto;
    max-height: calc(100svh - 24px);
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-gallery {
    height: 52svh;
    min-height: 330px;
    max-height: 500px;
  }

  .modal-content {
    padding: 28px 24px 30px;
  }
}

@media (max-width: 560px) {
  .project-card .project-media img:first-child,
  .project-card > img {
    height: 230px;
  }

  .project-modal {
    padding: 7px;
  }

  .project-modal-panel {
    max-height: calc(100svh - 14px);
    border-radius: 16px;
  }

  .modal-gallery {
    height: 43svh;
    min-height: 270px;
  }

  .modal-thumb {
    flex-basis: 68px;
    width: 68px;
    height: 48px;
  }

  .modal-content {
    padding: 24px 20px 26px;
  }
}

/* CARD GALLERY THUMBNAIL STRIP — keeps every existing photo/order unchanged */
.project-card .project-media {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 10px;
  padding: 0 10px 10px;
  background: #071523;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.project-card .project-media img:first-child {
  flex: 0 0 calc(100% + 0px);
  width: 100%;
  height: 300px;
  min-width: 100%;
  margin: 0 -10px 0;
  object-fit: cover;
  border-radius: 0;
  order: 1;
}

.project-card .project-media img:nth-child(n + 2) {
  display: block;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  order: 2;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.project-card .project-media img:nth-child(n + 2):hover {
  transform: translateY(-2px);
  border-color: #d9aa55;
}

/* Give the thumbnail row its own full-width line while keeping it horizontally scrollable. */
.project-card .project-media::after {
  content: "";
  flex: 0 0 0;
  width: 0;
  height: 0;
}

@media (max-width: 900px) {
  .project-card .project-media img:first-child {
    height: 270px;
  }
}

@media (max-width: 560px) {
  .project-card .project-media {
    gap: 8px;
    padding: 0 8px 8px;
  }

  .project-card .project-media img:first-child {
    height: 230px;
    margin-left: -8px;
    margin-right: -8px;
    min-width: calc(100% + 0px);
  }

  .project-card .project-media img:nth-child(n + 2) {
    flex-basis: 78px;
    width: 78px;
    min-width: 78px;
    height: 54px;
  }
}

/* FINAL CARD THUMB STRIP: only changes presentation; existing image files and order stay intact. */
.project-card .project-media {
  display: block;
  position: relative;
  padding: 0;
  background: #071523;
  overflow: hidden;
}

.project-card .project-media > img:first-child {
  display: block;
  width: 100%;
  min-width: 0;
  height: 300px;
  margin: 0;
  object-fit: cover;
  border-radius: 0;
}

.project-card .project-media .project-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  padding: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #071523;
}

.project-card .project-media .project-thumbs::-webkit-scrollbar {
  display: none;
}

.project-card .project-media .project-thumbs img {
  display: block !important;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 9px;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  opacity: .92;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}

.project-card .project-media .project-thumbs img:first-child,
.project-card .project-media .project-thumbs img.active {
  border-color: #d9aa55;
  opacity: 1;
}

.project-card .project-media .project-thumbs img:hover {
  transform: translateY(-2px);
  border-color: #d9aa55;
  opacity: 1;
}

@media (max-width: 900px) {
  .project-card .project-media > img:first-child {
    height: 270px;
  }
}

@media (max-width: 560px) {
  .project-card .project-media > img:first-child {
    height: 230px;
  }

  .project-card .project-media .project-thumbs {
    gap: 8px;
    padding: 8px;
  }

  .project-card .project-media .project-thumbs img {
    flex-basis: 78px;
    width: 78px;
    min-width: 78px;
    height: 54px;
  }
}

/* FINAL GALLERY SPACING FIX — 2026-08-27
   Only fixes the thumbnail strip sizing. Existing images, order and project layout remain unchanged. */
.project-card .project-media .project-thumbs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 84px !important;
  min-height: 84px !important;
  max-height: 84px !important;
  box-sizing: border-box !important;
  padding: 10px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: #071523 !important;
}

.project-card .project-media .project-thumbs img,
.project-card .project-media .project-thumbs img:first-child,
.project-card .project-media .project-thumbs img.active {
  display: block !important;
  position: static !important;
  flex: 0 0 92px !important;
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: auto !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
}

@media (max-width: 900px) {
  .project-card .project-media .project-thumbs {
    height: 84px !important;
    min-height: 84px !important;
    max-height: 84px !important;
  }
}

@media (max-width: 560px) {
  .project-card .project-media .project-thumbs {
    gap: 8px !important;
    height: 70px !important;
    min-height: 70px !important;
    max-height: 70px !important;
    padding: 8px !important;
  }

  .project-card .project-media .project-thumbs img,
  .project-card .project-media .project-thumbs img:first-child,
  .project-card .project-media .project-thumbs img.active {
    flex-basis: 78px !important;
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }
}


/* HIBR project video: adds one compact media tile beside the existing photo thumbnails. */
.hibir-video-trigger {
  position: relative;
  display: none;
  flex: 0 0 92px;
  width: 92px;
  min-width: 92px;
  height: 64px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: #0d2238;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.hibir-video-trigger.is-ready {
  display: block;
}
.hibir-video-trigger:hover,
.hibir-video-trigger:focus-visible {
  transform: translateY(-2px);
  border-color: #d9aa55;
}
.hibir-video-thumb {
  position: absolute;
  inset: 0;
  display: block;
}
.hibir-video-thumb img {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
  opacity: .75 !important;
  filter: saturate(.9) contrast(1.03) !important;
  transform: none !important;
}
.hibir-video-trigger:hover .hibir-video-thumb img,
.hibir-video-trigger:focus-visible .hibir-video-thumb img {
  opacity: .95 !important;
}
.hibir-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(7,21,35,.78);
  color: #fff;
  font-size: .78rem;
  line-height: 1;
  padding-left: 1px;
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}
.hibir-video-label {
  position: absolute;
  right: 6px;
  bottom: 5px;
  left: 6px;
  padding: 3px 5px;
  border-radius: 5px;
  background: rgba(7,21,35,.78);
  color: #fff;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
}

/* HIBR video popup. */
.hibir-video-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(3,12,22,.9);
  backdrop-filter: blur(10px);
}
.hibir-video-modal[hidden] {
  display: none !important;
}
.hibir-video-modal-backdrop {
  position: absolute;
  inset: 0;
}
.hibir-video-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100svh - 36px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: #071523;
  box-shadow: 0 35px 110px rgba(0,0,0,.5);
}
.hibir-video-modal-header {
  padding: 20px 68px 16px 22px;
  color: #fff;
}
.hibir-video-modal-header .eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
}
.hibir-video-modal-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
}
.hibir-video-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.hibir-video-close:hover,
.hibir-video-close:focus-visible {
  background: var(--gold-light);
}
.hibir-video-frame {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 22px 22px;
}
.hibir-video-player {
  display: block;
  width: min(100%, 620px);
  max-height: calc(100svh - 150px);
  border-radius: 14px;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
@media (max-width: 560px) {
  .hibir-video-trigger {
    flex-basis: 78px;
    width: 78px;
    min-width: 78px;
    height: 54px;
  }
  .hibir-video-play {
    width: 27px;
    height: 27px;
    font-size: .72rem;
  }
  .hibir-video-label {
    display: none;
  }
  .hibir-video-modal {
    padding: 8px;
  }
  .hibir-video-modal-panel {
    max-height: calc(100svh - 16px);
    border-radius: 16px;
  }
  .hibir-video-modal-header {
    padding: 18px 56px 13px 16px;
  }
  .hibir-video-frame {
    padding: 0 12px 12px;
  }
  .hibir-video-player {
    width: 100%;
    max-height: calc(100svh - 145px);
    border-radius: 12px;
  }
}
