:root {
  --blue: #0758c9;
  --blue-deep: #063c93;
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  margin: 0;
}

body {
  color: #fff;
  background: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(30, 139, 255, .72), transparent 43%),
    linear-gradient(145deg, var(--blue-deep), var(--blue) 54%, #0649ad);
}

.landing::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: .18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
}

.brand-stage {
  z-index: 1;
  width: min(76vw, 960px);
  animation: reveal .75s cubic-bezier(.22,1,.36,1) both;
}

.brand-logo {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 36px 90px rgba(0,20,72,.34);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.contact-trigger {
  position: fixed;
  z-index: 2;
  bottom: clamp(24px,4vw,48px);
  left: clamp(24px,4vw,56px);
  display: inline-flex;
  gap: .65rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.65);
  color: #fff;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  padding: clamp(16px,4vw,56px);
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,22,72,.75);
  backdrop-filter: blur(14px);
  transition: opacity .22s ease, visibility .22s ease;
}

.contact-overlay:target {
  visibility: visible;
  opacity: 1;
}

.overlay-dismiss {
  position: absolute;
  inset: 0;
}

.contact-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(94vw,980px);
  height: min(92svh, 900px);
  overflow: hidden;
  padding: clamp(18px,3vw,32px);
  border-radius: 24px;
  color: #111827;
  background: #fff;
  box-shadow: 0 42px 100px rgba(0,13,52,.48);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 .35rem;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-header h2 {
  margin: 0;
  font-size: clamp(1.35rem,3vw,2rem);
}

.close-button {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  color: var(--blue);
  background: #eaf3ff;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
}

.contact-card {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  object-fit: contain;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-actions a {
  padding: .8rem 1rem;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 640px) {
  .brand-stage { width: min(88vw,520px); }
  .brand-logo { border-radius: 16px; }
  .contact-trigger { font-size: .82rem; }
  .contact-panel {
    width: 96vw;
    height: 94svh;
    padding: 14px;
    border-radius: 18px;
  }

  .contact-header {
    margin-bottom: 10px;
  }

  .contact-actions {
    gap: 8px;
    margin-top: 10px;
  }

  .contact-actions a {
    flex: 1 1 auto;
    padding: .65rem .75rem;
    text-align: center;
  }
}

@media (orientation: landscape) and (max-height: 640px) {
  .brand-stage {
    width: min(78vw, 760px);
    max-height: 72svh;
  }

  .brand-logo img {
    width: 100%;
    max-height: 72svh;
    object-fit: contain;
  }

  .contact-trigger {
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
