:root {
  --navy: #071525;
  --navy-2: #0c2136;
  --navy-3: #14324d;
  --ink: #102033;
  --muted: #5c6d80;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #d7e1ec;
  --blue: #1a7ab8;
  --cyan: #3ec6ff;
  --cyan-2: #7ad8ff;
  --gold: #e8b84a;
  --shadow: 0 18px 50px rgba(7, 21, 37, 0.16);
  --radius: 18px;
  --header: 96px;
  --max: 1180px;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cyan);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--cyan);
}

.kicker.light {
  color: var(--cyan-2);
}

h1 {
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
}

h3 {
  font-size: 28px;
  font-weight: 700;
}

.lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(62, 198, 255, 0.28);
}

.btn-cyan:hover {
  background: var(--cyan-2);
}

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

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Header */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.topbar a:hover {
  color: var(--cyan);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.section-navy .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.section-navy .card p {
  color: rgba(255, 255, 255, 0.74);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 72px;
  width: auto;
  max-width: none;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: var(--navy);
}

.brand-name span {
  color: var(--blue);
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-3);
  padding: 8px 0;
}

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

.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--cyan);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-phone {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  margin: 0 auto;
}

.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 21, 37, 0.35) 0%, rgba(7, 21, 37, 0.82) 100%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(62, 198, 255, 0.05) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(62, 198, 255, 0.05) 31px 32px);
}

.hero-inner {
  position: relative;
  padding: 120px 0 88px;
}

.hero h1 {
  max-width: 14ch;
  margin: 14px 0 18px;
}

.hero .lede {
  color: rgba(255, 255, 255, 0.82);
}

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

.page-hero {
  min-height: 42vh;
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  max-width: 18ch;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: 42px;
}

.section-head.center {
  text-align: center;
  justify-items: center;
}

.section-muted {
  background: var(--paper);
}

.section-navy {
  background:
    linear-gradient(180deg, rgba(7, 21, 37, 0.92), rgba(7, 21, 37, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(62, 198, 255, 0.06) 31px 32px);
  color: var(--white);
}

.section-navy .lede,
.section-navy p {
  color: rgba(255, 255, 255, 0.78);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background-color: var(--navy-2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: var(--shadow);
}

.media-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(7, 21, 37, 0.88);
  color: var(--white);
  padding: 18px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--cyan);
  max-width: 280px;
}

.media-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 4px;
}

/* Cards */
.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 22px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.card .icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--blue);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  margin-bottom: 18px;
}

.card .more {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  font-size: 14px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: var(--white);
  background-color: var(--navy-2);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px 26px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 21, 37, 0.15), rgba(7, 21, 37, 0.88));
}

.service-card > * {
  position: relative;
}

.service-card p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card .more {
  color: var(--cyan);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -42px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.stat {
  padding: 28px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line);
}

.list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px rgba(62, 198, 255, 0.16);
}

/* Portfolio */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
}

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

.project {
  padding: 22px;
}

.project .tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--navy);
  color: var(--white);
  border-radius: 24px;
  padding: 42px;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 198, 255, 0.45), transparent 70%);
}

.cta-band h2 {
  margin: 8px 0 10px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  max-width: 56ch;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--cyan);
  border-color: var(--blue);
}

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

.form-note {
  color: var(--muted);
  font-size: 14px;
}

.success {
  display: none;
  padding: 18px;
  border-radius: 12px;
  background: #e8f8ee;
  color: #146c36;
  border: 1px solid #b7e4c7;
}

.success.show,
.form-error.show {
  display: block;
}

.form-error {
  display: none;
  padding: 18px;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1f11;
  border: 1px solid #f5c2c0;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.turnstile-wrap {
  margin: 4px 0 8px;
}

.cf-turnstile {
  display: inline-block;
}

.map {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: var(--radius);
}

.contact-panel {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-panel a:hover {
  color: var(--cyan);
}

.contact-panel dt {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--cyan-2);
  margin-top: 18px;
}

.contact-panel dd {
  margin: 4px 0 0;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .brand img {
  height: 72px;
  width: auto;
  max-width: 100%;
  background: #fff;
  padding: 6px;
}

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

.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 14px;
}

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

.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .brand img {
    height: 44px;
    width: auto;
    max-width: min(280px, 62vw);
    object-fit: contain;
  }

  .grid-4,
  .stats,
  .footer-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

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

  .nav-links,
  .nav-phone {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--white);
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    z-index: 60;
    gap: 0;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand img {
    height: 38px;
    width: auto;
    max-width: min(220px, 58vw);
    object-fit: contain;
  }

  .topbar {
    font-size: 12px;
  }

  .grid-4,
  .grid-2,
  .stats,
  .footer-grid,
  .split,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-inner,
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .media {
    min-height: 280px;
  }

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