:root {
  --ink: #162124;
  --muted: #5d6a6d;
  --paper: #f7f7f2;
  --surface: #ffffff;
  --line: rgba(22, 33, 36, 0.14);
  --deep: #10202b;
  --deep-2: #172a34;
  --accent: #67d8ff;
  --accent-2: #1aa4d8;
  --accent-3: #b9f3ff;
  --shadow: 0 24px 70px rgba(16, 32, 43, 0.14);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  background: var(--accent);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 247, 242, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: var(--deep);
  box-shadow: 0 12px 28px rgba(16, 32, 43, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: grid;
  gap: 0;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  padding: 10px 12px;
  color: #3c4641;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(16, 32, 43, 0.08);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(16, 32, 43, 0.16);
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 32, 29, 0.22);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 18, 24, 0.94), rgba(8, 18, 24, 0.66) 48%, rgba(8, 18, 24, 0.18)),
    linear-gradient(0deg, rgba(8, 18, 24, 0.54), transparent 48%);
}

.hero-wrap {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: clamp(620px, 78vh, 820px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 80px 0 58px;
}

.hero-copy {
  width: min(100%, 720px);
  min-width: 0;
  max-width: 720px;
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero h1,
.page-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.45rem, 4.8vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.hero p {
  margin: 0;
  max-width: 650px;
  color: rgba(255, 255, 255, 0.83);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  overflow-wrap: break-word;
}

.hero-buttons,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-ribbon {
  width: min(760px, 100%);
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-ribbon span {
  padding: 16px;
  min-height: 72px;
  display: grid;
  align-content: center;
  color: rgba(255, 255, 255, 0.86);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

.hero-ribbon span:last-child {
  border-right: 0;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42)),
    color-mix(in srgb, var(--accent) 15%, #f7f7f2);
}

.section-dark {
  background: var(--deep);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head > *,
.split-copy,
.cta > * {
  min-width: 0;
}

.section-head h2,
.split h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.section-head p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-dark .section-head p,
.section-dark .lead,
.section-dark p {
  color: rgba(255, 255, 255, 0.75);
}

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

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

.tile,
.step,
.contact-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(103, 216, 255, 0.07) 22px 23px);
  border: 1px solid rgba(16, 32, 43, 0.14);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(16, 32, 43, 0.08);
}

.tile::before,
.step::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--accent);
  pointer-events: none;
}

.tile-media {
  aspect-ratio: 18 / 9;
  background: #d7e6e9;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 84%, 18% 100%, 0 88%);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tile:hover .tile-media img {
  transform: scale(1.04);
}

.tile-body,
.step,
.contact-panel {
  padding: 26px;
}

.tile-kicker,
.step strong {
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.tile h3,
.step h3,
.project-band h3,
.contact-panel h3 {
  margin: 10px 0 10px;
  font-size: 1.32rem;
  line-height: 1.15;
}

.section-dark .step h3 {
  color: var(--ink);
}

.tile p,
.step p,
.project-band p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.split-copy {
  display: grid;
  gap: 18px;
}

.split-media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: var(--shadow);
  min-height: 520px;
}

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

.feature-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.feature-list li {
  padding: 14px 0 14px 18px;
  border-left: 4px solid var(--accent);
  color: inherit;
}

.blueprint-board,
.contact-blueprint {
  min-height: 420px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  align-content: stretch;
  background:
    linear-gradient(135deg, rgba(103, 216, 255, 0.2), rgba(16, 32, 43, 0.06)),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(103, 216, 255, 0.18) 38px 39px),
    repeating-linear-gradient(90deg, var(--deep) 0 38px, color-mix(in srgb, var(--deep) 86%, var(--accent)) 38px 39px);
  border: 1px solid rgba(103, 216, 255, 0.32);
  box-shadow: var(--shadow);
}

.blueprint-board span,
.contact-blueprint span {
  display: grid;
  place-items: end start;
  min-height: 180px;
  padding: 24px;
  color: #fff;
  font-weight: 900;
  border: 1px solid rgba(103, 216, 255, 0.2);
}

.blueprint-board span:nth-child(2),
.blueprint-board span:nth-child(3),
.contact-blueprint span:nth-child(2) {
  color: var(--accent);
}

.contact-blueprint {
  min-height: 230px;
  grid-template-columns: 1fr;
  margin-top: 20px;
}

.contact-blueprint span {
  min-height: 68px;
}

.project-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(16, 32, 43, 0.16);
  border-radius: 0;
  background: var(--surface);
  box-shadow: 12px 12px 0 rgba(16, 32, 43, 0.08);
}

.project-band + .project-band {
  margin-top: 18px;
}

.project-band img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  border-radius: 0;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
}

.project-band-content {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.metric {
  background:
    linear-gradient(180deg, #fff, #f4fbfd);
  padding: 22px;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.map-panel iframe {
  width: 100%;
  min-height: 430px;
  border: 1px solid rgba(16, 32, 43, 0.16);
  box-shadow: 12px 12px 0 rgba(16, 32, 43, 0.08);
  background: #dce8eb;
}

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list span {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-weight: 850;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(23, 32, 29, 0.18);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 76%, white), color-mix(in srgb, var(--deep) 20%, white));
  border-radius: 0;
  box-shadow: 12px 12px 0 rgba(16, 32, 43, 0.1);
}

.cta p {
  margin: 10px 0 0;
  max-width: 720px;
}

.site-footer {
  background: #0d1a22;
  color: rgba(255, 255, 255, 0.78);
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 30px;
}

.site-footer strong,
.site-footer h3 {
  color: #fff;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    grid-column: 1 / -1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
  }

  .nav-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-wrap {
    min-height: auto;
    padding: 96px 0 44px;
  }

  .hero h1,
  .page-title {
    max-width: 11ch;
  }

  .hero-ribbon,
  .section-head,
  .grid-3,
  .grid-4,
  .split,
  .project-band,
  .metric-strip,
  .contact-grid,
  .cta,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-ribbon span {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-ribbon span:last-child {
    border-bottom: 0;
  }

  .split-media,
  .split-media img {
    min-height: 340px;
  }

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

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .container,
  .hero-wrap {
    width: min(1180px, calc(100% - 24px));
  }

  .brand-text span {
    display: none;
  }

  .hero h1,
  .page-title {
    max-width: 9ch;
    font-size: clamp(2rem, 9.2vw, 2.38rem);
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 24px);
  }

  .hero p {
    max-width: 32ch;
    font-size: 1rem;
  }

  .section-head h2,
  .split h2,
  .cta h2 {
    max-width: 10ch;
    font-size: clamp(1.75rem, 8vw, 2.2rem);
  }

  .hero-buttons,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 32ch;
  }

  .btn {
    width: 100%;
  }

  .hero-ribbon {
    max-width: 32ch;
  }
}
