:root {
  --navy: #1f2c4a;
  --navy-deep: #172238;
  --cyan: #38b6d2;
  --white: #ffffff;
  --text: #dfe4ee;
  --muted: #a3adc2;
  --line: rgba(255, 255, 255, 0.12);
  --page: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A field of fine dots that fades out towards the bottom of the first screen. */
.backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(100vh, 56rem);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 34rem at 82% 8%, rgba(56, 182, 210, 0.16), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.16) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent);
  mask-image: linear-gradient(to bottom, #000 35%, transparent);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999rem;
  top: 0.75rem;
  padding: 0.5rem 0.9rem;
  background: var(--white);
  color: var(--navy);
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  left: 0.75rem;
  z-index: 10;
}

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 2.75rem;
}

.site-header nav a {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-header nav a:hover {
  color: var(--white);
}

/* Hero */

main {
  flex: 1;
}

.hero {
  padding-block: clamp(4rem, 14vh, 9rem) clamp(4rem, 12vh, 7rem);
  max-width: 46rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
  padding: 0.35rem 0.9rem 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--white);
  text-wrap: balance;
}

.accent {
  color: var(--cyan);
}

.lead {
  margin: 1.75rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text);
}

.sublead {
  margin: 1rem 0 2.5rem;
  max-width: 40rem;
  color: var(--muted);
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-deep);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover {
  background: #5cc8e0;
  transform: translateY(-1px);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 7vh, 4rem);
  border-top: 1px solid var(--line);
}

.principles article p {
  margin: 0;
  color: var(--muted);
}

.principles .number {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.principles h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

/* Contact */

.contact {
  padding-block: clamp(3rem, 9vh, 5.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.contact p {
  margin: 0 0 1.5rem;
  max-width: 32rem;
  color: var(--muted);
}

.contact .label {
  margin: 2.25rem 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mails a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.mails a:hover {
  border-color: rgba(56, 182, 210, 0.6);
  transform: translateY(-1px);
}

.mails svg {
  flex: 0 0 auto;
  color: var(--cyan);
}

.mails span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  position: relative;
  padding-block: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

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

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

/* Text pages: privacy and not found */

.page {
  padding-block: clamp(3rem, 9vh, 5.5rem);
  max-width: 42rem;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.5rem;
}

.page h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.page p {
  margin: 0 0 1rem;
}

.page a {
  text-decoration-color: var(--cyan);
  text-underline-offset: 0.25em;
}

.page a[href^="mailto:"] {
  white-space: nowrap;
}

.page .small {
  font-size: 0.875rem;
  color: var(--muted);
}

.page .button {
  margin-top: 1rem;
}

@media (max-width: 60rem) {
  .mails {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
}

@media (max-width: 44rem) {
  .principles {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 2.25rem;
  }
}

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

  .pulse::after {
    animation: none;
    opacity: 0;
  }

  .button,
  .button:hover,
  .mails a,
  .mails a:hover {
    transition: none;
    transform: none;
  }
}
