:root {
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #f9fbff;
  --text: #182538;
  --muted: #59687f;
  --line: rgba(24, 37, 56, 0.12);
  --brand: #2563eb;
  --brand-deep: #153b8a;
  --accent: #7fb3ff;
  --shadow: 0 24px 60px rgba(33, 52, 92, 0.14);
}

* {
  box-sizing: border-box;
}

/* Base document and animated background */
html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(127, 179, 255, 0.34), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(37, 99, 235, 0.18), transparent 26%),
    linear-gradient(180deg, #edf4ff 0%, #eef4fb 42%, #e8f0fa 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(26px);
  opacity: 0.82;
}

body::before {
  top: -4%;
  left: -10rem;
  width: 38rem;
  height: 38rem;
  border-radius: 46% 54% 58% 42%;
  background:
    radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.34) 0%, rgba(37, 99, 235, 0.14) 34%, rgba(37, 99, 235, 0) 72%);
  animation: drift-one 12s ease-in-out infinite alternate;
}

body::after {
  right: -8rem;
  bottom: 4%;
  width: 34rem;
  height: 34rem;
  border-radius: 57% 43% 48% 52%;
  background:
    radial-gradient(circle at 50% 50%, rgba(127, 179, 255, 0.34) 0%, rgba(127, 179, 255, 0.14) 30%, rgba(127, 179, 255, 0) 72%);
  animation: drift-two 14s ease-in-out infinite alternate;
}

html::before {
  content: "";
  position: fixed;
  top: 24%;
  left: 32%;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 68%);
  filter: blur(22px);
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  animation: drift-three 16s ease-in-out infinite alternate;
}

header,
main {
  position: relative;
  z-index: 1;
}

/* Shared layout wrappers */
a {
  color: inherit;
  text-decoration: none;
}

.hero-shell,
.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero-shell {
  padding: 1.6rem 0 3rem;
}

/* Header and navigation */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  animation: reveal-up 0.7s ease-out both;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 0.95;
  color: var(--brand-deep);
  text-shadow: 0 10px 24px rgba(21, 59, 138, 0.12);
  transition:
    transform 220ms ease,
    color 220ms ease,
    text-shadow 220ms ease;
}

.brand:hover {
  transform: translateY(-2px) scale(1.015);
  color: var(--brand);
  text-shadow: 0 16px 30px rgba(37, 99, 235, 0.18);
}

.nav-links {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(191, 220, 255, 0.24)),
    rgba(214, 231, 255, 0.46);
  backdrop-filter: blur(18px);
  box-shadow:
    0 14px 40px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  margin-left: auto;
  animation: reveal-up 0.8s ease-out 0.12s both;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-links a:hover {
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero section */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  padding: 4rem 0 1rem;
  align-items: end;
}

.hero-copy {
  padding: 1rem 0;
  animation: reveal-up 0.85s ease-out 0.16s both;
}

.eyebrow,
.card-label {
  margin: 0 0 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--brand-deep);
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Source Serif 4", serif;
  line-height: 0.98;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.intro,
.content-stack,
.info-card p,
.document-item p,
.contact-card p,
.hero-card li {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.intro {
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background-color 200ms ease,
    border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(31, 35, 39, 0.12);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.35);
  border-color: var(--line);
}

/* Shared card surfaces */
.hero-card,
.info-card,
.document-panel,
.contact-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
  border-radius: 28px;
  animation: reveal-up 0.9s ease-out 0.26s both;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hero-card li + li {
  margin-top: 0.9rem;
}

/* Main content sections */
.section {
  padding: 2rem 0 1rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem;
  align-items: start;
}

.section-grid .content-stack {
  padding-top: 1.3rem;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.info-card,
.contact-card {
  padding: 1.5rem;
  border-radius: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.info-card:hover,
.contact-card:hover,
.document-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(38, 34, 28, 0.16);
  border-color: rgba(37, 99, 235, 0.24);
}

.accent-section {
  padding-top: 3rem;
}

/* Document list / ANBI section */
.document-panel {
  border-radius: 28px;
  overflow: hidden;
}

.document-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  transition: transform 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.document-item + .document-item {
  border-top: 1px solid var(--line);
}

.document-item:hover {
  background: rgba(255, 255, 255, 0.38);
}

.text-link,
.document-status {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.94rem;
}

.text-link {
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 200ms ease, transform 200ms ease;
}

.text-link::after {
  content: "\2192";
  transform: translateX(0);
  transition: transform 200ms ease;
}

.text-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.document-status {
  color: #8a5a18;
}

/* Contact section and footer */
.contact-section {
  padding-bottom: 4rem;
}

.contact-section .contact-card {
  margin-top: 1.5rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--brand-deep);
  transition: color 200ms ease, transform 200ms ease;
}

.contact-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 0 2rem;
}

.site-footer-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(29, 36, 48, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer-inner p {
  margin: 0;
}

/* Scroll reveal animations */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 56px, 0) scale(0.94);
  transition:
    opacity 720ms ease,
    transform 820ms cubic-bezier(0.18, 0.84, 0.24, 1),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

.js .reveal-on-scroll.reveal-left {
  transform: translate3d(-72px, 56px, 0) rotate(-2deg) scale(0.94);
}

.js .reveal-on-scroll.reveal-right {
  transform: translate3d(72px, 56px, 0) rotate(2deg) scale(0.94);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
}

/* Keyframe animations */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift-one {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(7rem, 3rem, 0) scale(1.18) rotate(8deg);
  }

  100% {
    transform: translate3d(2rem, 7rem, 0) scale(0.92) rotate(-6deg);
  }
}

@keyframes drift-two {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }

  50% {
    transform: translate3d(-5rem, -3rem, 0) scale(1.14) rotate(-7deg);
  }

  100% {
    transform: translate3d(-2rem, 5rem, 0) scale(0.9) rotate(5deg);
  }
}

@keyframes drift-three {
  0% {
    transform: translate3d(0, 0, 0) scale(0.92);
  }

  50% {
    transform: translate3d(3rem, -2rem, 0) scale(1.08);
  }

  100% {
    transform: translate3d(-2rem, 3rem, 0) scale(0.98);
  }
}

/* Motion accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Tablet and small desktop adjustments */
@media (max-width: 1023px) {
  body::before,
  body::after,
  html::before {
    animation: none;
    opacity: 0.28;
    filter: blur(28px);
  }

  .js .reveal-on-scroll,
  .js .reveal-on-scroll.reveal-left,
  .js .reveal-on-scroll.reveal-right,
  .js .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Tablet layout */
@media (max-width: 900px) {
  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    padding-top: 1.1rem;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .brand {
    width: auto;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    padding: 0.85rem 1rem;
    border-radius: 28px;
  }

  .hero {
    padding-top: 2.8rem;
    gap: 1.25rem;
  }

  .cards-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  h1,
  h2 {
    max-width: none;
  }

  .hero-copy,
  .hero-card,
  .content-stack,
  .document-panel,
  .contact-card {
    max-width: 42rem;
  }

  .document-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-item .text-link,
  .document-item .document-status {
    margin-top: 0.35rem;
  }
}

/* Mobile layout */
@media (max-width: 640px) {
  .hero-shell,
  .section,
  .site-footer-inner {
    width: min(100% - 1.2rem, 1120px);
  }

  .hero-shell {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  body::before {
    top: -8%;
    left: -12rem;
    width: 22rem;
    height: 22rem;  
  }

  body::after {
    right: -10rem;
    bottom: 8%;
    width: 20rem;
    height: 20rem;
  }

  .hero-shell {
    padding-bottom: 0.8rem;
    gap: 1.75rem;
  }

  .hero {
    flex: 0 0 auto;
    align-content: start;
    gap: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .button {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 1rem;
  }

  .cards-section {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 0.75rem;
    padding: 0.2rem 0 0;
  }

  .nav-links {
    padding: 0.7rem 0.9rem;
    gap: 0.9rem;
    font-size: 0.88rem;
  }

  .hero-card,
  .info-card,
  .contact-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .hero-card {
    display: none;
  }

  .hero-copy {
    padding: 0.5rem 0 0;
  }

  .document-panel {
    border-radius: 22px;
  }

  .document-item {
    padding: 1.15rem 1.2rem;
  }

  h1 {
    font-size: clamp(2.1rem, 10.5vw, 3rem);
    line-height: 0.92;
  }

  h2 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .intro {
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .brand {
    font-size: 1rem;
    letter-spacing: 0.05em;
  }

  .eyebrow,
  .card-label {
    margin-bottom: 0.55rem;
  }

  .section-grid > div > .eyebrow {
    margin-bottom: 0.3rem;
  }

  #over.section-grid {
    gap: 0.9rem;
  }

  main .section:first-child {
    padding-top: 1rem;
  }

  .site-footer {
    padding-bottom: 1.4rem;
  }

  .site-footer-inner {
    padding-top: 0.9rem;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.84rem;
  }
}

/* Short mobile screens */
@media (max-width: 640px) and (max-height: 860px) {
  .hero-shell {
    padding-top: 0.7rem;
  }

  .hero {
    padding-top: 0.75rem;
    gap: 0.75rem;
  }

  .nav-links {
    padding: 0.6rem 0.8rem;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(1.9rem, 9.2vw, 2.6rem);
  }

  .intro {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .button {
    min-height: 2.55rem;
    font-size: 0.94rem;
  }
}

/* Very small phones */
@media (max-width: 400px) {
  .nav-links {
    gap: 0.7rem;
    font-size: 0.8rem;
  }

  .brand {
    font-size: 0.92rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8.8vw, 2.3rem);
  }

  .intro {
    font-size: 0.9rem;
  }
}
