:root {
  --navy: #0d2a66;
  --navy-deep: #081b46;
  --navy-soft: #324d82;
  --orange: #f26b22;
  --orange-deep: #e35914;
  --paper: #f3f2ef;
  --white: #ffffff;
  --line: rgba(13, 42, 102, 0.1);
  --shadow: 0 22px 48px rgba(8, 27, 70, 0.12);
  --shadow-strong: 0 26px 60px rgba(8, 27, 70, 0.18);
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--navy);
}

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

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

button,
a,
.service-box,
.project-card,
.tile,
.wide-callout,
.stat-box,
.cta {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    opacity 220ms ease;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-frame {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 242, 239, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13, 42, 102, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 88px;
}

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

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

.brand-logo {
  width: 54px;
  height: 54px;
  padding: 8px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(13, 42, 102, 0.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-text span,
.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--orange);
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--navy-soft);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px);
}

.cta-light {
  background: var(--white);
  border-color: rgba(13, 42, 102, 0.1);
}

.cta-accent {
  background: var(--orange);
  color: var(--white);
}

.cta-accent:hover,
.cta-accent:focus-visible {
  background: var(--orange-deep);
  box-shadow: 0 16px 30px rgba(242, 107, 34, 0.28);
}

.cta-dark {
  background: var(--navy);
  color: var(--white);
}

.cta-dark:hover,
.cta-dark:focus-visible {
  background: var(--navy-deep);
  box-shadow: 0 18px 34px rgba(8, 27, 70, 0.24);
}

.cta.small {
  min-height: 42px;
  padding: 0 20px;
}

.hero-panel {
  position: relative;
  padding: 0 0 44px;
  background:
    linear-gradient(rgba(13, 42, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 42, 102, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 40px 40px, 40px 40px, auto;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  min-height: 680px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(64%, 760px);
  padding: 92px 0 84px;
}

.hero-copy h1,
.section-head h2,
.feature-copy h3,
.wide-copy h3,
.contact-panel h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero-copy h1 {
  max-width: 7.2ch;
  font-size: clamp(4.4rem, 9vw, 8rem);
  line-height: 0.88;
}

.hero-summary {
  max-width: 35rem;
  margin: 28px 0 0;
  color: var(--navy-soft);
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 74px;
  bottom: 42px;
  width: min(46%, 520px);
  z-index: 1;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 27, 70, 0.2), rgba(8, 27, 70, 0)),
    linear-gradient(135deg, rgba(242, 107, 34, 0.16), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: 82px 0;
}

.section-head {
  position: relative;
  margin-bottom: 30px;
}

.ghost-title {
  position: absolute;
  top: -28px;
  left: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  color: rgba(13, 42, 102, 0.06);
  pointer-events: none;
}

.ghost-light {
  color: rgba(255, 255, 255, 0.07);
}

.section-head h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.section-services {
  background: #f7f7f4;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-box {
  min-height: 238px;
  padding: 28px 24px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid var(--orange);
  background: var(--white);
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-box small,
.project-copy small,
.feature-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #96a2ba;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.service-box h3,
.project-copy h3,
.tile-text h3 {
  margin: 0 0 14px;
}

.service-box p,
.feature-copy p,
.project-copy p,
.tile-text p,
.wide-copy p {
  color: var(--navy-soft);
  line-height: 1.72;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 0;
  margin-top: 44px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 247, 243, 0.98));
}

.feature-copy h3,
.wide-copy h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.94;
  max-width: 10ch;
}

.section-projects {
  background: var(--navy);
  color: var(--white);
}

.section-projects .section-head h2,
.section-projects .project-copy h3 {
  color: var(--white);
}

.kicker-light,
.section-projects .project-copy p,
.section-projects .project-copy small,
.wide-copy p,
.footer-bottom-inner {
  color: rgba(255, 255, 255, 0.78);
}

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

.project-card {
  background: rgba(255, 255, 255, 0.04);
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.18);
}

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

.project-copy {
  padding: 20px 22px 26px;
}

.section-featured {
  background: #fbfaf7;
}

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

.tile {
  min-height: 220px;
  background: var(--white);
  overflow: hidden;
}

.tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.tile-photo-short {
  min-height: 260px;
}

.tile-photo-short img {
  height: 260px;
}

.tile-blueprint {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    var(--navy);
  background-size: 28px 28px, 28px 28px, auto;
  color: var(--white);
}

.tile-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 22px;
}

.tile-inner span,
.tile-inner strong {
  display: block;
}

.tile-inner strong {
  margin-top: 10px;
  font-size: 1.6rem;
}

.tile-text {
  padding: 24px;
  border-bottom: 3px solid var(--orange);
}

.tile-icon {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 1.55rem;
  font-weight: 800;
}

.wide-callout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 0;
  margin-top: 32px;
}

.wide-callout:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.wide-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.wide-copy {
  padding: 40px;
  background: var(--orange);
  color: var(--white);
}

.wide-copy .cta-dark {
  margin-top: 12px;
  background: var(--white);
  color: var(--navy);
}

.wide-copy .cta-dark:hover,
.wide-copy .cta-dark:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.stat-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 10px;
  border-bottom: 1px solid rgba(13, 42, 102, 0.12);
}

.stat-box:hover {
  transform: translateY(-4px);
}

.stat-box strong {
  color: var(--orange);
  font-size: 2rem;
}

.section-contact {
  background: var(--navy);
  padding-top: 34px;
}

.contact-panel {
  display: grid;
  gap: 28px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 239, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 56px rgba(4, 15, 40, 0.22);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-heading {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-panel .kicker {
  margin: 0;
}

.contact-panel h2 {
  color: #211a32;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: 0.97;
  max-width: 8.4ch;
}

.contact-image {
  min-height: 286px;
  background: var(--white);
  border: 1px solid rgba(13, 42, 102, 0.12);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.contact-mail,
.contact-note {
  background: var(--white);
  border: 1px solid rgba(13, 42, 102, 0.12);
  box-shadow: var(--shadow);
}

.contact-mail {
  display: flex;
  align-items: center;
  min-height: 124px;
  padding: 22px 26px;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  word-break: break-word;
}

.contact-mail:hover,
.contact-note:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.contact-note {
  padding: 22px 26px;
}

.contact-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-note p {
  margin: 0;
  color: var(--navy-soft);
  line-height: 1.75;
}

.footer {
  background: #071634;
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .feature-split,
  .wide-callout,
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .service-row,
  .featured-grid,
  .stats-row,
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-copy {
    width: min(72%, 760px);
  }

  .hero-visual {
    width: min(43%, 420px);
  }

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

@media (max-width: 820px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-visual {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 10px;
  }

  .hero-visual img {
    min-height: 420px;
  }

  .hero-copy {
    width: 100%;
    padding: 58px 0 24px;
  }

  .service-row,
  .featured-grid,
  .stats-row,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }
}

@media (max-width: 560px) {
  :root {
    --container: calc(100vw - 28px);
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .brand-text strong {
    font-size: 0.84rem;
  }

  .cta-light {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 18vw, 5rem);
  }

  .section {
    padding: 64px 0;
  }

  .ghost-title {
    top: -18px;
    font-size: 3rem;
  }

  .feature-copy,
  .wide-copy,
  .contact-panel {
    padding: 26px;
  }

  .contact-panel h2 {
    max-width: 9.2ch;
  }

  .contact-mail,
  .contact-note {
    padding: 20px;
  }
}
