:root {
  --bg: #1e1f23;
  --cta: #1d4d60;
  --navy: #1b4469;
  --accent: #02d1e6;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --line: rgba(2, 209, 230, 0.7);
  --max: 960px;
  --header: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
}

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

a {
  color: inherit;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
  color: #111;
  text-decoration: none;
  transform: translateY(calc(-100% - 24px));
}

.skip:focus {
  transform: none;
}

main {
  scroll-margin-top: var(--header);
}

main:focus {
  outline: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 30px;
}

.logo img {
  width: 210px;
  height: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

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

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

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

.nav a {
  color: #fff;
  opacity: 0.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 10px 16px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
}

.hero {
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 24px;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-image: linear-gradient(to top, rgba(27, 68, 105, 0.92), rgba(27, 68, 105, 0.15)), var(--hero);
}

.hero-subpage {
  min-height: 480px;
  background-image: linear-gradient(to top, rgba(27, 68, 105, 0.88), rgba(27, 68, 105, 0.05)), var(--hero);
}

.hero-cyan {
  background-image: linear-gradient(45deg, rgba(103, 234, 252, 0.72), rgba(103, 234, 252, 0) 63%), var(--hero);
}

.hero h1 {
  margin: 0 auto 12px;
  max-width: 920px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.25;
  text-shadow: 1px 1px 20px rgba(0, 0, 0, 0.25);
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.6;
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0;
}

.section h2,
.page-title {
  margin: 0 0 16px;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.3;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.split + .split {
  margin-top: 72px;
}

.split-reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

.photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
  margin-top: 48px;
}

.service {
  text-align: center;
}

.service img {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.service h3 {
  margin: 0 auto 10px;
  max-width: 16em;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
}

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 12px 25px;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  box-shadow: 1px 1px 20px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background: #32343a;
}

.cta {
  background: var(--cta);
  text-align: center;
  padding: 88px 24px;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 400;
}

.cta p {
  max-width: 640px;
  margin: 0 auto 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.6;
}

.cta .button {
  background: var(--bg);
  margin-top: 22px;
  padding: 16px 35px;
  font-size: 14px;
}

.cta .button:hover {
  color: var(--bg);
  background: var(--accent);
}

.site-footer {
  padding: 36px 24px 48px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  line-height: 1.7;
}

.story p,
.prose p {
  color: var(--muted);
  margin: 0 0 18px;
}

.team,
.contact-layout,
.project-meta {
  display: grid;
  gap: 40px;
}

.team {
  grid-template-columns: 1fr 1fr;
  margin-top: 28px;
}

.person h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 400;
}

.person p,
.person a {
  color: var(--muted);
  text-decoration: none;
}

.person a:hover {
  color: #fff;
}

.projects {
  display: grid;
  gap: 48px;
}

.project-card {
  color: #fff;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.project-card span {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: 20px;
}

.project-card:hover {
  opacity: 0.86;
}

.project-meta {
  grid-template-columns: 0.8fr 1.6fr;
  align-items: start;
  margin-top: 28px;
}

.meta-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}

.contact-layout {
  grid-template-columns: 1.6fr 0.9fr;
  align-items: start;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px 42px 36px;
}

.form-card h2 {
  margin-top: 0;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--bg);
  color: #fff;
  font: inherit;
  font-size: 14px;
  padding: 16px 18px;
}

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

input:focus,
textarea:focus {
  outline: 2px solid rgba(2, 209, 230, 0.35);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
}

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

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 5px;
  background: rgba(2, 209, 230, 0.12);
  color: #fff;
}

.notice-error {
  background: rgba(180, 60, 60, 0.28);
}

.side-block + .side-block {
  margin-top: 28px;
}

.side-block h2 {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.side-block p,
.side-block a {
  margin: 0;
  color: var(--muted);
  text-decoration: none;
}

.side-block a:hover {
  color: #fff;
}

.slider {
  position: relative;
  margin-top: 28px;
  background: #111;
}

.slider-frame {
  height: 460px;
  overflow: hidden;
}

.slider-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(30, 31, 35, 0.72);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.slider-prev {
  left: 12px;
}

.slider-next {
  right: 12px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 0;
}

.slider-dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  cursor: pointer;
}

.slider-dots button[aria-current="true"] {
  background: var(--accent);
}

@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .logo img {
    width: 160px;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    padding: 8px 12px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

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

  .hero,
  .hero-subpage {
    min-height: 420px;
  }

  .split,
  .split-reverse,
  .services,
  .team,
  .contact-layout,
  .project-meta {
    grid-template-columns: 1fr;
  }

  .photo,
  .project-card img,
  .slider-frame,
  .slider-frame img {
    height: 260px;
  }

  .form-card {
    padding: 24px 18px;
  }

  .section {
    width: min(var(--max), calc(100% - 32px));
    padding: 48px 0;
  }
}
