:root {
  --paper: #f5f2ec;
  --ink: #1b1916;
  --line: rgba(245, 242, 236, 0.58);
  --glass: rgba(21, 19, 16, 0.86);
  --glass-border: rgba(255, 255, 255, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  background: #171512;
  color: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -2;
  background-image: url("assets/protarquin-background.jpg");
  background-position: center center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.03);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.62) 0%, rgba(10, 9, 8, 0.16) 42%, rgba(10, 9, 8, 0.30) 100%),
    linear-gradient(180deg, rgba(10, 9, 8, 0.38) 0%, rgba(10, 9, 8, 0.08) 42%, rgba(10, 9, 8, 0.34) 100%);
}

.brand {
  position: absolute;
  top: clamp(28px, 6vw, 88px);
  left: clamp(24px, 5.5vw, 92px);
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
  transform: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.brand__name {
  font-size: clamp(1.05rem, 2.2vw, 2.35rem);
  font-weight: 500;
  line-height: 1;
}

.brand__descriptor {
  font-size: clamp(0.55rem, 0.74vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.47em;
}

.announcement {
  position: absolute;
  top: clamp(28px, 6vw, 88px);
  right: clamp(24px, 5.5vw, 92px);
  max-width: 20ch;
  margin: 0;
  text-align: right;
  font-size: clamp(1rem, 1.75vw, 1.8rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.contact {
  position: absolute;
  top: clamp(122px, 20vw, 230px);
  right: clamp(24px, 5.5vw, 92px);
  width: min(390px, calc(100vw - 48px));
  z-index: 5;
}

.contact__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.contact__icon::before,
.contact__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transition: transform 280ms var(--ease);
}

.contact__icon::before {
  transform: translate(-50%, -50%);
}

.contact__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.contact__trigger[aria-expanded="true"] .contact__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.contact__panel {
  margin-top: 14px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform-origin: top right;
}

.contact__panel.is-opening {
  animation: panelIn 440ms var(--ease) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact__form {
  display: grid;
  gap: 9px;
  padding: 24px;
}

.contact__heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 5px;
}

.contact__heading-row h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.contact__close {
  margin-top: -7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.contact__form label {
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__form label span {
  opacity: 0.62;
  font-size: 0.6rem;
  text-transform: none;
}

.contact__form input:not([type="checkbox"]),
.contact__form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 0.84rem;
}

.contact__form input:not([type="checkbox"]) {
  height: 34px;
}

.contact__form textarea {
  min-height: 82px;
  padding: 8px 0;
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  border-bottom-color: var(--paper);
}

.contact__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
  margin: 8px 0 2px;
  cursor: pointer;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.contact__consent input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--paper);
}

.contact__consent span {
  opacity: 0.78 !important;
  font-size: 0.66rem !important;
  line-height: 1.4;
}

.contact__submit {
  margin-top: 8px;
  padding: 13px 18px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.contact__submit:hover,
.contact__submit:focus-visible {
  background: transparent;
  color: var(--paper);
}

.contact__status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.67rem;
  line-height: 1.4;
}

.footer {
  position: absolute;
  right: clamp(24px, 5.5vw, 92px);
  bottom: clamp(22px, 4vw, 58px);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .hero::before {
    background-position: 54% center;
    filter: blur(7px);
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(10, 9, 8, 0.42) 0%, rgba(10, 9, 8, 0.05) 52%, rgba(10, 9, 8, 0.46) 100%),
      linear-gradient(90deg, rgba(10, 9, 8, 0.24), transparent 75%);
  }

  .announcement {
    max-width: 15ch;
    font-size: 1.05rem;
  }

  .contact {
    top: 120px;
  }

  .footer {
    display: none;
  }
}

@media (max-height: 720px) and (min-width: 701px) {
  .contact {
    top: 120px;
  }

  .contact__form {
    gap: 5px;
    padding: 18px;
  }

  .contact__form textarea {
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
