:root {
  --blue: #01224f;
  --blue-2: #001936;
  --red: #dc0000;
  --paper: #f6f6f7;
  --ink: #101624;
  --muted: #667083;
  --line: rgba(1, 34, 79, 0.14);
  --white: #ffffff;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(246, 246, 247, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img {
  position: relative;
  top: 50%;
  left: 50%;
  width: 430px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.brand {
  display: block;
  width: 188px;
  height: 48px;
  overflow: hidden;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transition: width 180ms ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--blue);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 86px) clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, var(--paper) 0 56%, rgba(1, 34, 79, 0.04) 56% 100%);
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  color: var(--blue);
  font-size: clamp(2.5rem, 6vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  color: var(--blue);
  font-size: 1.2rem;
  line-height: 1.1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin-bottom: 30px;
  color: #3c4657;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button.primary {
  color: var(--white);
  background: var(--red);
}

.button.secondary {
  color: var(--blue);
  border: 1px solid var(--blue);
}

.hero-media {
  position: relative;
  align-self: center;
  min-height: 520px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-mark {
  position: absolute;
  right: -7vw;
  bottom: -36px;
  color: rgba(220, 0, 0, 0.92);
  font-size: clamp(6rem, 14vw, 16rem);
  font-weight: 950;
  line-height: 0.8;
}

.section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(32px, 5vw, 58px);
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.6fr);
  gap: 28px;
  max-width: none;
  align-items: end;
}

.section-heading.split p:not(.eyebrow) {
  color: #d9e2ef;
}

.intro-band {
  color: var(--white);
  background: var(--blue);
}

.intro-band h2,
.intro-band .eyebrow {
  color: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.intro-grid > p {
  max-width: 620px;
  color: #d9e2ef;
  font-size: 1.15rem;
}

.metrics {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}

.metrics div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--blue);
}

.metrics strong {
  color: var(--red);
  font-size: 3rem;
  line-height: 0.9;
}

.metrics span {
  align-self: center;
  font-weight: 800;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.service-grid article {
  min-height: 260px;
  padding: 28px;
  background: var(--white);
}

.service-grid span {
  display: block;
  margin-bottom: 52px;
  color: var(--red);
  font-weight: 950;
}

.service-grid p,
.timeline p,
.project-empty p {
  color: var(--muted);
}

.projects {
  color: var(--white);
  background: var(--blue-2);
}

.projects h2,
.projects .eyebrow {
  color: var(--white);
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.filter.active,
.filter:hover {
  background: var(--red);
  border-color: var(--red);
}

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

.portfolio-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 190px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--white);
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.portfolio-callout strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
}

.portfolio-callout small {
  display: block;
  max-width: 640px;
  color: #d9e2ef;
  font-size: 1rem;
}

.portfolio-callout b {
  color: var(--red);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.8;
}

.project-empty {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(300px, 0.45fr);
  gap: 28px;
  align-items: center;
  min-height: 320px;
  padding: clamp(24px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.project-card {
  display: block;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-card div {
  padding: 20px;
}

.project-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
}

.project-empty h3 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.project-schema {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.project-schema div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--blue);
}

.project-schema span:first-child {
  color: #aebbd0;
}

.project-schema span:last-child {
  font-weight: 850;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  margin: 0;
  list-style: none;
  background: var(--line);
}

.timeline li {
  min-height: 230px;
  padding: 26px;
  background: var(--paper);
}

.timeline span {
  display: block;
  margin-bottom: 52px;
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 950;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue);
}

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

.contact-links {
  justify-content: flex-end;
}

.contact-links a {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-links a:hover {
  background: var(--red);
  border-color: var(--red);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 120px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #d9e2ef;
  background: var(--blue-2);
}

.footer-brand img {
  position: relative;
  top: 50%;
  left: 50%;
  width: 380px;
  max-width: none;
  transform: translate(-50%, -50%);
}

.footer-brand {
  display: block;
  flex: 0 0 auto;
  width: 170px;
  height: 48px;
  overflow: hidden;
}

.page-hero {
  padding: clamp(64px, 10vw, 130px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue);
}

.page-hero h1,
.page-hero .eyebrow {
  color: var(--white);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: #d9e2ef;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.portfolio-page {
  background: var(--paper);
}

.portfolio-page .filter {
  color: var(--blue);
  border-color: var(--line);
}

.portfolio-page .filter.active,
.portfolio-page .filter:hover {
  color: var(--white);
}

.project-detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(42px, 7vw, 82px) clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--blue);
}

.project-detail-hero img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
}

.project-detail-hero h1,
.project-detail-hero .eyebrow {
  color: var(--white);
}

.project-detail-hero p:not(.eyebrow) {
  color: #d9e2ef;
  font-size: 1.1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.project-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border-radius: var(--radius);
}

.project-facts div {
  padding: 20px;
  background: var(--white);
}

.project-facts span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-facts strong {
  color: var(--blue);
  font-size: 1.2rem;
}

.project-story p:not(.eyebrow) {
  max-width: 780px;
  color: #3c4657;
  font-size: 1.12rem;
}

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

.photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.model-section {
  color: var(--white);
  background: var(--blue-2);
}

.model-section h2,
.model-section .eyebrow {
  color: var(--white);
}

.model-section .section-heading.split p:not(.eyebrow) {
  color: #d9e2ef;
}

.ifc-viewer {
  display: grid;
  place-items: center;
  min-height: 460px;
  padding: 28px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(220, 0, 0, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.12), transparent 38%),
    var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.ifc-canvas-wrap {
  position: relative;
  width: 100%;
  height: min(72vh, 680px);
  min-height: 460px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.ifc-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  max-width: min(520px, calc(100% - 32px));
  padding: 10px 12px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.86rem;
  font-weight: 800;
}

.viewer-status[data-type="success"] {
  border-color: rgba(126, 223, 168, 0.7);
}

.viewer-status[data-type="warning"],
.viewer-status[data-type="error"] {
  border-color: rgba(220, 0, 0, 0.85);
}

.ifc-viewer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 4rem);
  line-height: 1;
}

.ifc-viewer span {
  display: block;
  margin-bottom: 22px;
  color: #d9e2ef;
}

.ifc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ifc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.ifc-stats div {
  min-height: 96px;
  padding: 16px;
  background: var(--blue);
}

.ifc-stats span {
  display: block;
  margin-bottom: 8px;
  color: #aebbd0;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.ifc-stats strong {
  display: block;
  color: var(--white);
  font-size: clamp(0.92rem, 1.2vw, 1.1rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.scope-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.scope-list span {
  padding: 12px 14px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 850;
}

.viewer-window {
  background: var(--blue-2);
}

.viewer-page {
  min-height: 100vh;
}

.standalone-model {
  min-height: 100vh;
  padding-top: clamp(28px, 4vw, 52px);
}

.standalone-model h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4rem);
}

.standalone-model .ifc-canvas-wrap {
  height: calc(100vh - 220px);
  min-height: 420px;
}

@media (max-width: 980px) {
  .hero,
  .intro-grid,
  .contact,
  .project-empty,
  .project-detail-hero,
  .detail-grid,
  .section-heading.split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background: var(--paper);
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .service-grid,
  .timeline,
  .project-list,
  .photo-grid,
  .ifc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-links {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 68px;
  }

  .brand img {
    width: 350px;
  }

  .brand {
    width: 148px;
    height: 42px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--blue);
    border-radius: var(--radius);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    color: var(--white);
    padding: 14px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-actions,
  .contact-links {
    flex-direction: column;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .service-grid,
  .timeline,
  .project-list,
  .photo-grid,
  .ifc-stats {
    grid-template-columns: 1fr;
  }

  .portfolio-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-detail-hero img {
    min-height: 280px;
  }

  .ifc-canvas-wrap {
    height: 58vh;
    min-height: 340px;
  }

  .metrics div {
    grid-template-columns: 68px 1fr;
    padding: 20px;
  }

  .hero-mark {
    right: -12px;
    bottom: -8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
