:root {
  --ink: #17252d;
  --cream: #f8f4eb;
  --banner-height: clamp(172px, 22vh, 236px);
  --field: rgba(255, 255, 255, 0.88);
  --field-border: rgba(255, 255, 255, 0.3);
  --gold: #b68d2b;
  --glass: rgba(14, 27, 34, 0.58);
  --glass-line: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071116;
  color: var(--ink);
  font-family: Calibri, Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  font-size: clamp(14px, 1.05vw, 18px);
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.snap-pages {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.page {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.background {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--banner-height);
  bottom: auto;
  z-index: -3;
  width: 100%;
  height: calc(100vh - var(--banner-height) + 12vh);
  height: calc(100dvh - var(--banner-height) + 12vh);
  object-fit: cover;
  object-position: center top;
}

.top-banner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100vw;
  height: var(--banner-height);
  background: var(--cream);
  object-fit: contain;
  object-position: center center;
  border: 0;
  border-radius: 0;
  box-shadow: 0 12px 34px rgba(6, 15, 20, 0.08);
  transform: none;
}

.logo-link {
  position: absolute;
  top: calc((var(--banner-height) - clamp(90px, 6.4vw, 120px)) / 2);
  left: clamp(22px, 2.3vw, 42px);
  z-index: 3;
  width: clamp(90px, 6.4vw, 120px);
  height: clamp(90px, 6.4vw, 120px);
  padding: 4px;
  background: var(--cream);
  border: 1px solid rgba(182, 141, 43, 0.12);
  border-radius: 4px;
  box-shadow: none;
}

.logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-nav {
  position: absolute;
  top: clamp(31px, 4.8vh, 48px);
  right: clamp(22px, 3vw, 52px);
  z-index: 4;
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: flex-end;
  padding: 4px;
  color: var(--cream);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(6, 15, 20, 0.22);
  backdrop-filter: blur(16px);
  font-size: clamp(13px, 0.82vw, 15px);
  font-weight: 500;
  line-height: 1;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-arrow {
  position: absolute;
  left: 50%;
  bottom: 5.8vh;
  z-index: 5;
  width: clamp(22px, 2.2vw, 36px);
  height: clamp(22px, 2.2vw, 36px);
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(248, 244, 235, 0.76);
  border-bottom: 2px solid rgba(248, 244, 235, 0.76);
  animation: arrowPulse 2.2s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%,
  100% {
    opacity: 0.18;
    transform: translate(-50%, -6px) rotate(45deg);
  }

  50% {
    opacity: 0.78;
    transform: translate(-50%, 8px) rotate(45deg);
  }
}

.contact-form {
  position: absolute;
  left: 50%;
  top: 55%;
  z-index: 3;
  width: min(78vw, 1040px);
  height: min(52vh, 470px);
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  background: rgba(14, 27, 34, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  box-shadow: 0 32px 90px rgba(6, 15, 20, 0.34);
  backdrop-filter: blur(16px);
  transform: translate(-50%, -40%);
}

.hidden-field {
  display: none;
}

.field-label {
  position: absolute;
  color: rgba(248, 244, 235, 0.94);
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.field,
.submit-button {
  position: absolute;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  outline-color: rgba(182, 141, 43, 0.42);
}

.field {
  padding: 10px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.field:focus {
  border-color: rgba(182, 141, 43, 0.72);
  background: rgba(255, 255, 255, 0.94);
}

.name-label {
  left: 4%;
  top: 9%;
}

.name-field {
  left: 4%;
  top: 14%;
  width: 44%;
  height: 48px;
}

.email-label {
  left: 52%;
  top: 9%;
}

.email-field {
  left: 52%;
  top: 14%;
  width: 44%;
  height: 48px;
}

.subject-label {
  left: 4%;
  top: 31%;
}

.subject-field {
  left: 4%;
  top: 36%;
  width: 92%;
  height: 48px;
}

.message-label {
  left: 4%;
  top: 53%;
}

.message-field {
  left: 4%;
  top: 58%;
  width: 92%;
  height: 24%;
  resize: none;
}

.submit-button {
  right: 4%;
  bottom: 6.5%;
  width: 168px;
  height: 44px;
  color: var(--cream);
  background: linear-gradient(135deg, #17252d 0%, #0c161b 100%);
  border-color: rgba(182, 141, 43, 0.62);
  box-shadow: 0 12px 28px rgba(6, 15, 20, 0.28);
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  border-color: rgba(214, 178, 84, 0.9);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  :root {
    --banner-height: 176px;
  }

  .top-banner {
    top: 0;
    width: 100vw;
    height: var(--banner-height);
  }

  .logo-link {
    top: calc((var(--banner-height) - 88px) / 2);
    width: 88px;
    height: 88px;
  }

  .page-nav {
    top: 34px;
    right: 4vw;
    font-size: 13px;
  }

  .contact-form {
    top: 56%;
    width: min(88vw, 520px);
    height: 58vh;
    transform: translate(-50%, -38%);
  }

  .name-field,
  .email-field,
  .subject-field,
  .message-field,
  .submit-button {
    width: 92%;
    left: 4%;
  }

  .name-label,
  .email-label,
  .subject-label,
  .message-label {
    left: 4%;
  }

  .name-label {
    top: 6%;
  }

  .name-field {
    top: 10%;
    height: 42px;
  }

  .email-label {
    top: 22%;
    left: 4%;
  }

  .email-field {
    top: 26%;
    height: 42px;
    left: 4%;
  }

  .subject-label {
    top: 38%;
  }

  .subject-field {
    top: 42%;
    height: 42px;
  }

  .message-label {
    top: 54%;
  }

  .message-field {
    top: 58%;
    height: 20%;
  }

  .submit-button {
    left: auto;
    right: 4%;
    bottom: 6%;
    width: 150px;
  }
}
