:root {
  --aubergine: #1e1430;
  --violet: #7c4dd6;
  --violet-deep: #5f36b3;
  --violet-soft: #b9a2f0;
  --lavender: #eee8f9;
  --stucco: #fbfafd;
  --ink: #231b30;
  --ink-muted: #463e54;
  --line: #d6cceb;

  --font: "Jost", "Futura", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--lavender);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

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

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 44px) var(--gutter) clamp(48px, 9vh, 96px);
  color: var(--stucco);
  background: var(--aubergine);
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  filter: grayscale(1) contrast(1.05);
  animation: settle 2.4s cubic-bezier(.2, .7, .2, 1) both;
}

/* Purple duotone, darkening toward the bottom-left where the text sits */
.hero-photo::before,
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-photo img { position: relative; z-index: 0; }

.hero-photo::before {
  z-index: 1;
  background: var(--violet);
  mix-blend-mode: multiply;
}

.hero-photo::after {
  z-index: 2;
  background:
    linear-gradient(to top, rgba(30, 20, 48, .92) 0%, rgba(30, 20, 48, .55) 38%, rgba(30, 20, 48, 0) 70%),
    linear-gradient(100deg, rgba(30, 20, 48, .55) 0%, rgba(30, 20, 48, 0) 60%);
}

.logo {
  align-self: flex-start;
  display: block;
  line-height: 0;
}

.logo img {
  width: clamp(150px, 16vw, 210px);
  height: auto;
}

.welcome {
  max-width: 36rem;
  animation: rise 1.2s .3s cubic-bezier(.2, .7, .2, 1) both;
}

.welcome h1 {
  margin: 0 0 .15em -0.04em;
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 11.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
}

.welcome p {
  max-width: 30em;
  margin: 0 0 2rem;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.55;
  color: rgba(251, 250, 253, .86);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: .85em 1.6em;
  font: inherit;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: .01em;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.button-light {
  color: var(--aubergine);
  background: var(--stucco);
}

.button-light:hover { background: var(--violet-soft); }

.button-light:focus-visible { outline-color: var(--stucco); }

.button-dark {
  color: var(--stucco);
  background: var(--violet);
}

.button-dark:hover { background: var(--violet-deep); }

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 7vw, 120px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) var(--gutter);
}

.contact-intro h2 {
  margin: 0 0 .5em;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--aubergine);
}

.contact-intro p {
  max-width: 30em;
  margin: 0;
  color: var(--ink-muted);
}

.form {
  display: grid;
  gap: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--aubergine);
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--stucco);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s;
}

.field input:hover,
.field textarea:hover { border-color: var(--violet-soft); }

.field input:focus,
.field textarea:focus {
  border-color: var(--violet);
  outline: 2px solid rgba(124, 77, 214, .25);
  outline-offset: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form .button { justify-self: start; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 28px var(--gutter);
  font-size: .9375rem;
  color: rgba(251, 250, 253, .7);
  background: var(--aubergine);
}

.footer a { text-underline-offset: 3px; }
.footer a:hover { color: var(--stucco); }

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

.hero-short .welcome h1 {
  font-size: clamp(3.5rem, 11vw, 8.5rem);
}

/* ---------- Motion ---------- */

@keyframes settle {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img,
  .welcome { animation: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 780px) {
  .contact { grid-template-columns: 1fr; }
  .form .button { justify-self: stretch; }
}

/* ---------- Form status ---------- */

.form-status {
  margin: 0;
  font-weight: 500;
}

.form-status:empty { display: none; }
.form-status.is-success { color: #2f6b3a; }
.form-status.is-error { color: #a3302a; }

.form .button:disabled { opacity: .7; cursor: default; }
