:root {
  --ink: #0e1218;
  --ink-soft: #171d27;
  --slate: #2a3342;
  --mist: #9aa6b8;
  --paper: #e8edf4;
  --paper-dim: #c5cedb;
  --copper: #c47a4a;
  --copper-bright: #e0925c;
  --copper-glow: rgba(196, 122, 74, 0.35);
  --line: rgba(232, 237, 244, 0.12);
  --font-display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--copper);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand span {
  color: var(--copper-bright);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  border: 1px solid rgba(232, 237, 244, 0.35);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  outline: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(14, 18, 24, 0.35) 0%, rgba(14, 18, 24, 0.15) 35%, rgba(14, 18, 24, 0.82) 78%, var(--ink) 100%),
    linear-gradient(90deg, rgba(14, 18, 24, 0.55) 0%, transparent 55%),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=2400&q=80") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  opacity: 0.18;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

.hero-content {
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) clamp(3.5rem, 8vh, 5.5rem);
  max-width: 42rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.15s forwards;
}

.hero p {
  color: var(--paper-dim);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  max-width: 32rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.35s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--copper-bright);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--copper);
  color: #1a120c;
}

.btn-primary:hover {
  background: var(--copper-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid rgba(232, 237, 244, 0.35);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(232, 237, 244, 0.08);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-bright);
  margin-bottom: 0.85rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.15rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 0.85rem;
}

.lead {
  color: var(--mist);
  max-width: 38rem;
  font-size: 1.08rem;
}

.help {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--copper-glow), transparent 55%),
    var(--ink-soft);
}

.help-grid {
  display: grid;
  gap: 2.5rem 3rem;
  margin-top: 2.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .help-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.help-item h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.help-item p {
  color: var(--mist);
  font-size: 0.98rem;
}

.audience-list {
  list-style: none;
  margin-top: 2.5rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.audience-list li {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-family: var(--font-display);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.audience-list li.in {
  opacity: 1;
  transform: none;
}

.audience-list li span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--copper);
  min-width: 1.75rem;
}

.process-steps {
  margin-top: 2.75rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--copper);
  line-height: 1;
  margin-bottom: 0.6rem;
  display: block;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--mist);
  font-size: 0.98rem;
}

/* ---------- Property form ---------- */
.submit {
  background:
    radial-gradient(ellipse 50% 40% at 0% 100%, var(--copper-glow), transparent 55%),
    var(--ink-soft);
}

.property-form {
  margin-top: 2.5rem;
  max-width: 42rem;
}

.form-section {
  border: none;
  margin: 0 0 2rem;
  padding: 0;
}

.form-section legend {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 1rem;
  padding: 0;
}

.form-grid {
  display: grid;
  gap: 1rem 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-wide {
    grid-column: 1 / -1;
  }

  .field-short {
    max-width: 100%;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.field span em {
  color: var(--copper-bright);
  font-style: normal;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--paper);
  background: rgba(14, 18, 24, 0.55);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.75rem 0.85rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(154, 166, 184, 0.65);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(196, 122, 74, 0.65);
  background: rgba(14, 18, 24, 0.85);
}

.field select {
  appearance: none;
  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 fill='%239aa6b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2rem;
}

.field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-turnstile-wrap {
  margin: 0.5rem 0 1rem;
  min-height: 65px;
}

.form-error,
.form-success {
  display: none;
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.form-error {
  color: #f0a0a0;
}

.form-success {
  color: #9fd4a8;
}

.form-error.show,
.form-success.show {
  display: block;
}

.form-note {
  margin-top: 1rem;
  color: var(--mist);
  font-size: 0.85rem;
  max-width: 32rem;
  line-height: 1.55;
}

/* ---------- Contact ---------- */
.contact {
  background:
    linear-gradient(180deg, transparent, rgba(196, 122, 74, 0.08)),
    var(--ink);
}

.contact-panel {
  margin-top: 2.25rem;
  max-width: 28rem;
  padding: 1.75rem 0;
}

.contact-hint {
  color: var(--mist);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

#turnstile-wrap {
  margin-bottom: 1rem;
  min-height: 65px;
}

.contact-reveal {
  display: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: rise 0.6s var(--ease) forwards;
}

.contact-reveal.show {
  display: block;
}

.contact-reveal a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--copper-bright);
  margin-bottom: 0.35rem;
  transition: color 0.25s var(--ease);
}

.contact-reveal a:hover {
  color: var(--paper);
}

.contact-error {
  display: none;
  color: #f0a0a0;
  font-size: 0.9rem;
  margin-top: 0.85rem;
}

.contact-error.show {
  display: block;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.88rem;
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer .brand {
  font-size: 1.35rem;
  color: var(--paper);
  margin-bottom: 0.35rem;
}

.footer p {
  max-width: 36rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero-media {
    transform: none;
  }
}
