:root {
  --blue: #051bb0;        /* heading blue from the brand materials */
  --violet: #7a65e4;
  --navy: #073a96;
  --tint: #ebeff8;
  --text: #1a1f2e;
  --muted: #5a627a;
  --mint: #edf7eb;        /* light text used on the gradient */
  --grad: linear-gradient(100deg, var(--violet) 0%, #3b4db9 50%, var(--navy) 100%);
  --sans: "Ubuntu", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 1.125rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3rem);
}
.narrow { max-width: 56rem; }

/* Hero */
.hero {
  background: var(--navy) url("assets/hero.jpg") center / cover no-repeat;
  color: #fff;
  min-height: min(100vh, 54rem);
  display: flex;
  flex-direction: column;
}
.bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.brand img {
  display: block;
  width: 9.5rem;
  filter: invert(1);          /* black logo → white on the gradient */
}
nav { display: flex; flex-wrap: wrap; gap: .25rem clamp(1rem, 2.5vw, 2rem); }
nav a {
  color: var(--mint);
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .03em;
  padding-block: .25rem;
  border-bottom: 1px solid transparent;
}
nav a:hover { border-bottom-color: currentColor; }
.hero-body {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 3rem 5rem;
}
h1 {
  margin: 0;
  max-width: 8.5em;
  text-align: center;
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.tint { background: var(--tint); }
.plain { background: #fff; }
.center { text-align: center; }
h2 {
  margin: 0 0 1.5rem;
  color: var(--blue);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -.015em;
}
section p { margin: 0; }

/* About */
.about {
  padding: 0;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.about-text {
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
  padding-left: max(clamp(1.25rem, 5vw, 3rem), calc((100vw - var(--wrap)) / 2 + 3rem));
  align-self: center;
}
.about-photo {
  min-height: 22rem;
  background: url("assets/laptop.jpg") center / cover no-repeat;
}

/* Why */
.why { position: relative; overflow: hidden; }
.why .wrap { position: relative; }
.deco { position: absolute; opacity: .9; pointer-events: none; }
.deco-a { top: 3.5rem; left: 6%; width: 8.5rem; }
.deco-b { bottom: 3rem; right: 4%; width: 9rem; }
.cards {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.cards li {
  flex: 0 1 20.5rem;
  background: #fff;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(5, 27, 176, .06), 0 12px 32px -16px rgba(5, 27, 176, .25);
}
h3 {
  margin: 0 0 .6rem;
  color: var(--blue);
  font-size: 1.3rem;
  line-height: 1.25;
}
.cards p { font-size: 1.02rem; line-height: 1.6; }

/* Contact */
.contact { background: var(--navy); background-image: var(--grad); color: var(--mint); }
.contact h2 { color: var(--mint); }
.channels {
  margin: 2.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 5rem;
}
.channels dt {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.channels dd { margin: .35rem 0 0; }
.channels a { text-underline-offset: .25em; overflow-wrap: anywhere; }

/* Footer */
footer { background: #06143f; color: #b9c2e0; font-size: .9rem; line-height: 1.6; }
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 2rem;
}
.foot p { margin: 0; }
.foot p:last-child { text-align: right; }
.foot strong { color: #fff; }

/* Error page */
.error { min-height: 100vh; justify-content: center; align-items: center; text-align: center; padding: 2rem; }
.error h1 { max-width: none; margin-bottom: 1rem; }
.error a { color: var(--mint); }

@media (max-width: 860px) {
  .hero { background-image: var(--grad); min-height: 34rem; }
  .hero-body { justify-content: center; }
  .about { grid-template-columns: 1fr; }
  .about-text { padding-left: clamp(1.25rem, 5vw, 3rem); }
  .about-photo { min-height: 16rem; }
  .deco { display: none; }
  .foot p:last-child { text-align: left; }
}
@media (max-width: 560px) {
  .bar { flex-direction: column; align-items: flex-start; }
  body { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
