/* Coriven — global styles */

:root {
  --black: #000000;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.55);
  --serif: "Garamond Premier Pro", "Adobe Garamond Pro", "EB Garamond", Garamond, serif;
  --sans: "Proxima Nova", "Montserrat", "Inter", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* ---------- Moravian star ---------- */

.star {
  width: 220px;
  margin: 0 auto;
  /* blends the image's black square seamlessly into the page */
  mix-blend-mode: screen;
}

/* ---------- Hero ---------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
  text-align: center;
}

.hero .star {
  margin-bottom: 56px;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.headline {
  margin: 0;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: normal;
  color: var(--white);
}

.subhead {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ---------- Symbiosis ---------- */

.symbiosis {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 96px 24px;
}

.oval {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 440px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0 64px;
  border-radius: 50%;
  /* the oval exists only as soft light; no hard edge */
  background: radial-gradient(
    ellipse at center,
    rgba(120, 160, 255, 0.28) 0%,
    rgba(120, 160, 255, 0.17) 38%,
    rgba(120, 160, 255, 0.06) 58%,
    rgba(120, 160, 255, 0) 70%
  );
  filter: blur(0.3px);
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.3;
  animation: float 9s ease-in-out infinite;
}

.oval:nth-child(2) {
  animation-delay: -4.5s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------- Credentials ---------- */

.credentials {
  max-width: 820px;
  margin: 0 auto;
  padding: 160px 24px;
  text-align: center;
}

.credentials p {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.4;
}

/* ---------- Contact form ---------- */

.contact {
  padding: 48px 24px 160px;
}

.inquiry {
  max-width: 560px;
  margin: 0 auto;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 18px;
}

.inquiry input[type="text"],
.inquiry input[type="email"],
.inquiry input[type="tel"],
.inquiry select,
.inquiry textarea {
  width: 100%;
  padding: 14px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
}

.inquiry ::placeholder {
  color: var(--muted);
  opacity: 1;
}

.inquiry input:focus,
.inquiry select:focus,
.inquiry textarea:focus {
  border-bottom-color: var(--white);
}

.inquiry select {
  padding-right: 32px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* dim the select until a real choice is made, to match the placeholders */
.inquiry select:invalid,
.inquiry select.is-empty {
  color: var(--muted);
}

.inquiry select option {
  background: #111111;
  color: var(--white);
}

.inquiry textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.5;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 32px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.check input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.check input:checked {
  border-color: var(--white);
  background: radial-gradient(circle, var(--white) 0 4px, transparent 5px);
}

.check input:focus-visible {
  outline: 1px solid var(--white);
  outline-offset: 3px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.btn--ghost {
  background: transparent;
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 28px;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  color: var(--black);
}

.privacy {
  margin: 20px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.footer {
  padding: 96px 24px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: 76px;
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}

.copyright {
  margin: 32px 0 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Thank-you page ---------- */

.thanks {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 24px;
  text-align: center;
  animation: fade-in 1.2s ease both;
}

.thanks .star {
  width: 130px;
  opacity: 0.55;
  margin-bottom: 48px;
}

.thanks p {
  max-width: 520px;
  margin: 28px auto 48px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .symbiosis {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .star {
    width: 160px;
  }

  .hero .star {
    margin-bottom: 40px;
  }

  .eyebrow {
    gap: 0.5rem 1.25rem;
    font-size: 12px;
  }

  .headline,
  .wordmark {
    font-size: clamp(38px, 11.5vw, 56px);
  }

  .subhead {
    font-size: 12px;
  }

  .oval {
    font-size: 22px;
    padding: 0 48px;
  }

  .credentials {
    padding: 112px 24px;
  }

  .credentials p {
    font-size: 26px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .oval,
  .thanks {
    animation: none;
  }
}
