:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #5c6b7e;
  --paper: #f3f6f9;
  --paper-2: #e8eef4;
  --line: #c5d0dc;
  --brand: #1e3a6e;
  --brand-deep: #122743;
  --accent: #2f6fed;
  --white: #ffffff;
  --header-h: 4.25rem;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand);
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--brand-deep) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--white) 12%, transparent);
}

.brand-mark img {
  height: 2.4rem;
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.25));
}

.nav {
  display: flex;
  gap: 1.35rem;
}

.nav a {
  color: color-mix(in srgb, var(--white) 88%, transparent);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero — one composition, brand-first */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + 2rem)
    clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 8vh, 5rem);
  color: var(--white);
  overflow: hidden;
  background: var(--brand-deep);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(47, 111, 237, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(30, 58, 110, 0.9), transparent 50%),
    linear-gradient(165deg, #0d1a2e 0%, #163056 45%, #1a3d6b 100%);
  transform: scale(1.05);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise-in 0.9s var(--ease) 0.15s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--white);
}

.hero-title {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 500;
  color: color-mix(in srgb, var(--white) 92%, transparent);
  margin-bottom: 0.85rem;
  max-width: 22ch;
}

.hero-lead {
  color: color-mix(in srgb, var(--white) 72%, transparent);
  font-size: 1.05rem;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--white);
  color: var(--brand-deep);
}

.btn-primary:hover {
  background: var(--paper-2);
  color: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: color-mix(in srgb, var(--white) 35%, transparent);
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

.about {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.about .section-inner > p:first-of-type {
  max-width: 42rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  margin: 1.75rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.values li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand);
  position: relative;
  opacity: 0;
  transform: translateY(0.6rem);
}

.values li.is-visible {
  animation: rise-in 0.55s var(--ease) forwards;
}

.values li:nth-child(2).is-visible { animation-delay: 0.08s; }
.values li:nth-child(3).is-visible { animation-delay: 0.16s; }
.values li:nth-child(4).is-visible { animation-delay: 0.24s; }

.about-note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.services {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.service {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(0.75rem);
}

.service.is-visible {
  animation: rise-in 0.65s var(--ease) forwards;
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service h3 {
  margin-bottom: 0.85rem;
}

.service ul {
  display: grid;
  gap: 0.35rem;
}

.service li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--accent);
}

@media (min-width: 720px) {
  .service-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }

  .service:nth-child(odd) {
    padding-right: 0.5rem;
  }

  .service:nth-child(even) {
    padding-left: 0.5rem;
  }
}

@media (min-width: 980px) {
  .service-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .service:nth-child(5) {
    grid-column: 1 / 2;
  }
}

.contact {
  background:
    linear-gradient(135deg, #eef3f8 0%, #dfe8f2 50%, #e8eef6 100%);
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.contact a {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand);
}

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

.reg-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  background: var(--brand-deep);
  color: color-mix(in srgb, var(--white) 65%, transparent);
  font-size: 0.9rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-1.5%, 1%);
  }
}

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

  .hero-atmosphere,
  .hero-content,
  .values li,
  .service {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .nav {
    gap: 0.9rem;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .brand-mark img {
    height: 2rem;
  }
}
