/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Red Hat Display', Arial, sans-serif;
  color: #ffffff;
}

/* ── Full-screen background image ─────────────────────────── */
.background {
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image: url('assets/cis-landscape.jpg'); /* fallback */
  background-image: image-set(
    url('assets/cis-landscape.webp') type('image/webp'),
    url('assets/cis-landscape.jpg')  type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Dark overlay so text stays readable */
  filter: brightness(0.55);
}

/* ── Hero layout ───────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 640px;
}

/* ── Logo ──────────────────────────────────────────────────── */
.logo {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Drop shadow for depth on the background */
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.4));
}

/* ── Title ─────────────────────────────────────────────────── */
.title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* ── Tagline ───────────────────────────────────────────────── */
.tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  opacity: 0.85;
  line-height: 1.6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* ── Contact email ─────────────────────────────────────────── */
.contact {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 1.6rem;
  font-size: 1rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 2rem;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact:hover,
.contact:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.9);
  outline: none;
}

/* ── Logo — fixed bottom-right corner ─────────────────────── */
.logo--fixed-bottom-right {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  /* never wider than the viewport with some breathing room */
  max-width: calc(100vw - 2rem);
  width: auto;
  height: auto;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow: hidden;
}

.logo--fixed-bottom-right .logo__image {
  /* scales with viewport, min 48 px, max 80 px */
  width: clamp(48px, 10vw, 80px);
  height: clamp(48px, 10vw, 80px);
  flex-shrink: 0;
}

.logo__label {
  font-family: 'Nunito', sans-serif;
  /* scales with viewport, min 1.5 rem, max 3 rem */
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 50;
  color: #4682b4;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  line-height: 1;
  white-space: nowrap;
}

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 480px) {
  .logo {
    width: 120px;
    height: 120px;
  }
}
