*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #0a1633;
  --navy2: #0d1e3d;
  --teal: #0f7c91;
  --teal-hi: #1a92a8;
  --teal-dk: #0a6478;
  --teal-pale: rgba(15, 124, 145, 0.07);
  --cream: #e6e6e3;
  --cream-dk: #cececa;
  --off: #f4f4f1;
  --white: #fff;
  --border: #ddddd8;
  --border-dk: #c8c8c3;
  --grey: #6e8088;
  --grey-lt: #9aacb2;
  --text: #1a2630;
  --text-2: #2e3f48;
  --text-3: #4a5a62;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--navy);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 64px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition:
    background 0.4s,
    backdrop-filter 0.4s,
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(10, 22, 51, 0.96);
  backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-logo img {
  height: 40px;
  width: 80px;
}

/* ── HERO / SOLE SECTION ── */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 64px 100px;
  position: relative;
  overflow: hidden;
}

.hero-atm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 55% at 50% 115%, rgba(15, 124, 145, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 12% 18%, rgba(15, 124, 145, 0.05) 0%, transparent 55%),
    radial-gradient(ellipse 35% 25% at 88% 78%, rgba(15, 124, 145, 0.04) 0%, transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.011) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.011) 1px, transparent 1px);
  background-size: 88px 88px;
}

.hero-diag {
  position: absolute;
  pointer-events: none;
  top: -5%;
  right: 11%;
  width: 1px;
  height: 120%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(15, 124, 145, 0.12) 25%,
    rgba(15, 124, 145, 0.06) 75%,
    transparent
  );
  transform: rotate(22deg);
}

.hero-c {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.hero-wordmark {
  width: 350px;
  margin: 0 auto 56px;
  opacity: 0;
  animation: up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

.hero-wordmark img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  max-width: 38ch;
  margin: 0 auto 56px;
  opacity: 0;
  animation: up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.hero-rule {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, rgba(15, 124, 145, 0.5), transparent);
  margin: 0 auto 48px;
  opacity: 0;
  animation: fadein 0.9s ease 0.55s forwards;
}

/* ── ACCESS GATE ── */
.gate {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 44px;
  text-align: left;
  opacity: 0;
  animation: up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.68s forwards;
}

.gate-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

.gate-row {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.25s;
}

.gate-row:focus-within {
  border-color: var(--teal);
}

.gate-row input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 14px 16px;
}

.gate-row input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.gate-row button {
  background: var(--teal);
  border: 0;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 22px;
  transition: background 0.25s;
}

.gate-row button:hover {
  background: var(--teal-hi);
}

.gate-note {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 12px;
  line-height: 1.6;
}

.error-text {
  color: #ff2121;
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

#enter-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-line {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  animation: up 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.82s forwards;
}

.contact-line a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(15, 124, 145, 0.4);
  padding-bottom: 1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}

.contact-line a:hover {
  color: var(--teal-hi);
  border-color: var(--teal-hi);
}

/* ── FOOTER ── */
footer {
  background: #060d1a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}

.footer-in {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  height: 30px;
  width: 60px;

  img {
    height: 30px;
    width: 60px;
  }
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.footer-disc {
  width: 100%;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.7;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.footer-disc a {
  color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.no-intro .hero-wordmark,
.no-intro .hero-desc,
.no-intro .hero-rule,
.no-intro .gate,
.no-intro .contact-line {
  animation: none !important;
  opacity: 1;
  transform: none;
}

/* ── ANIMATIONS ── */
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .footer-in {
    padding: 36px 27px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 0 24px;
  }

  .hero {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-in {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-disc {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 24px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
