:root {
  --navy: #0f1f46;
  --navy-deep: #10275f;
  --blue: #1d75e8;
  --blue-dark: #173b9f;
  --aqua: #29b8c7;
  --leaf: #2f7565;
  --berry: #2c205f;
  --ink: #0f1f46;
  --muted: #5c6b86;
  --line: #d7deea;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --mist: #e8edf5;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, "Avenir Next", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--blue);
}

a:hover {
  color: var(--blue-dark);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.rule {
  display: flex;
  height: 5px;
  margin: 0;
}

.rule span:first-child {
  flex: 1;
  background: var(--navy);
}

.rule span:last-child {
  width: 92px;
  background: var(--aqua);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}

.brand img {
  width: 54px;
  height: auto;
}

.brand span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.brand em {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--blue);
  letter-spacing: 0.18em;
}

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

.nav a {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--wash) 0%, #fff 72%);
  padding: 56px 0 72px;
}

.hero-mark {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: min(46vw, 520px);
  opacity: 0.055;
  pointer-events: none;
}

.hero-copy {
  position: relative;
  max-width: 720px;
}

.wordmark {
  width: min(100%, 520px);
  margin-bottom: 28px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

.lead {
  margin: 0 0 28px;
  max-width: 38em;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #22a8b6;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  box-shadow: inset 0 0 0 1.5px var(--blue);
  color: var(--blue);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
}

.facts > div {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.facts strong {
  display: block;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.facts span {
  font-size: 13px;
  color: var(--muted);
}

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

#contact,
#about,
#work {
  scroll-margin-top: 88px;
}

.section.alt {
  background: var(--wash);
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section > .wrap > .intro {
  max-width: 40em;
  margin: 0 0 36px;
  color: var(--muted);
}

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

.card.span {
  grid-column: 1 / -1;
}

.card {
  padding: 24px 22px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--aqua);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}


.copy {
  max-width: 40em;
}

.copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.copy p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.contact-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.contact-card address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.45;
}

.contact-card address p {
  margin: 0;
}

.contact-card a {
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.map-note {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 220px;
  padding: 28px;
  color: #d7e3f8;
  background:
    linear-gradient(180deg, rgba(15, 31, 70, 0.08), rgba(15, 31, 70, 0.92)),
    radial-gradient(circle at 80% 20%, rgba(41, 184, 199, 0.45), transparent 42%),
    linear-gradient(135deg, var(--navy-deep), var(--berry));
}

.map-note strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 20px;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #c5d4ee;
  padding: 28px 0 32px;
}

.site-footer .wrap {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: 13px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

.site-footer .watermark {
  position: absolute;
  right: 0;
  bottom: -40px;
  width: 180px;
  opacity: 0.08;
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .facts,
  .cards,
  .featured,
  .contact-grid,
  .site-footer .wrap {
    grid-template-columns: 1fr;
    display: grid;
  }

  .nav {
    gap: 14px;
  }

  .brand span {
    display: none;
  }
}

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

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

  .hero {
    padding: 36px 0 48px;
  }

  .section {
    padding: 52px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
