:root {
  --ink: #171210;
  --soft-ink: rgba(23, 18, 16, 0.72);
  --paper: #171210;
  --panel: #211816;
  --panel-soft: #2b211f;
  --sand: #f0d7bf;
  --rose: #e9a89c;
  --shell: #fff0e2;
  --line: rgba(240, 215, 191, 0.18);
  --white: #fffaf4;
  --night: #11100f;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--shell);
  background: var(--paper);
  font-family: "Instrument Sans", system-ui, sans-serif;
  overflow-x: hidden;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}

.landing-shell {
  width: 100%;
  margin: 0;
}

.hero-panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(34px, 5vw, 76px) 0;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("assets/miami-beach-sunset.jpg");
  background-size: cover;
  background-position: 34% center;
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(15, 11, 9, 0.72) 0%, rgba(15, 11, 9, 0.22) 46%, rgba(15, 11, 9, 0.12) 100%),
    linear-gradient(180deg, rgba(15, 11, 9, 0.16) 0%, rgba(15, 11, 9, 0.05) 36%, rgba(15, 11, 9, 0.9) 100%);
}

.hero-statement,
.agent-strip {
  position: relative;
  z-index: 1;
}

.hero-statement {
  width: min(1120px, calc(100vw - clamp(40px, 10vw, 160px)));
  margin: 0 auto;
}

.service-line,
.section-label {
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin-top: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.2rem, 8vw, 8.8rem);
  font-weight: 600;
  line-height: 0.84;
  text-wrap: balance;
  color: #ffe6d2;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.agent-strip {
  width: min(1120px, calc(100vw - clamp(40px, 10vw, 160px)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}

.agent-strip img {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.agent-strip p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.agent-strip span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 250, 244, 0.82);
  font-size: 0.82rem;
}

.request-panel {
  width: min(1180px, calc(100vw - clamp(32px, 8vw, 144px)));
  margin: 0 auto;
  padding: clamp(42px, 6vw, 80px) 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1.52fr);
  gap: clamp(36px, 5vw, 72px);
}

.request-intro {
  position: sticky;
  top: 32px;
  align-self: start;
}

.request-intro .section-label {
  color: var(--rose);
}

h2 {
  margin-top: 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.35rem, 3.25vw, 3.7rem);
  font-weight: 600;
  line-height: 1;
  max-width: 7.6em;
}

.request-intro p:not(.section-label) {
  max-width: 280px;
  margin-top: 18px;
  color: rgba(255, 240, 226, 0.64);
  font-size: 0.88rem;
  line-height: 1.6;
}

form {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

label {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 240, 226, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--shell);
  padding: 0;
  font: inherit;
  font-size: clamp(1.08rem, 1.45vw, 1.42rem);
  font-weight: 500;
  letter-spacing: 0;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 240, 226, 0.38);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
}

label:focus-within {
  color: var(--shell);
  border-bottom-color: rgba(255, 240, 226, 0.62);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(22px, 4vw, 52px);
}

.two-col label {
  min-width: 0;
}

.optional {
  color: rgba(255, 240, 226, 0.42);
  font-weight: 700;
}

.checkbox-label {
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  color: rgba(255, 240, 226, 0.66);
  line-height: 1.42;
}

.checkbox-label input {
  min-height: 0;
  margin-top: 2px;
  padding: 0;
}

.checkbox-label span {
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

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

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  margin-top: 24px;
  border: 1px solid rgba(255, 240, 226, 0.26);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 240, 226, 0.18), rgba(233, 168, 156, 0.08)),
    var(--panel-soft);
  color: var(--shell);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

button::before,
.button-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(233, 168, 156, 0.2), rgba(255, 240, 226, 0.08));
  transform: translateX(-100%);
  transition: transform 320ms ease;
}

button span,
.button-link span {
  position: relative;
  z-index: 1;
}

button:hover,
.button-link:hover {
  border-color: rgba(255, 240, 226, 0.62);
  color: var(--white);
  transform: translateY(-1px);
}

button:hover::before,
.button-link:hover::before {
  transform: translateX(0);
}

button:focus-visible,
.button-link:focus-visible {
  outline: 2px solid #9a584c;
  outline-offset: 4px;
}

.status {
  min-height: 18px;
  margin-top: 16px;
  color: #176044;
  font-size: 0.84rem;
}

.compliance {
  grid-column: 2;
  margin-top: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.brokerage-mark {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--shell);
}

.brokerage-mark span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 240, 226, 0.28);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.brokerage-mark strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
}

.compliance p,
.disclosure-copy {
  color: rgba(255, 240, 226, 0.56);
  font-size: 0.74rem;
  line-height: 1.45;
}

.thank-you-layout {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px) 0;
  color: var(--white);
  background: var(--night);
}

.thank-you-image,
.thank-you-shade {
  position: fixed;
  inset: 0;
}

.thank-you-image {
  background-image: url("assets/miami-beach-sunset.jpg");
  background-size: cover;
  background-position: 34% center;
  filter: saturate(1.04) contrast(1.02);
  transform: scale(1.03);
}

.thank-you-shade {
  background:
    linear-gradient(90deg, rgba(15, 11, 9, 0.82) 0%, rgba(15, 11, 9, 0.48) 48%, rgba(15, 11, 9, 0.26) 100%),
    linear-gradient(180deg, rgba(15, 11, 9, 0.22) 0%, rgba(15, 11, 9, 0.72) 100%);
}

.thank-you-card,
.thank-you-compliance {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - clamp(40px, 10vw, 160px)));
  margin: 0 auto;
}

.thank-you-card {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.thank-you-card h1 {
  max-width: 640px;
  margin-top: 8px;
  color: #ffe6d2;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.85;
}

.subcopy,
.summary {
  width: 100%;
  max-width: min(520px, 100%);
  color: rgba(255, 240, 226, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.summary {
  color: rgba(255, 240, 226, 0.52);
  font-size: 0.95rem;
}

.thank-you-agent {
  width: auto;
  margin: 18px 0 8px;
}

.thank-you-card .button-link {
  width: min(360px, 100%);
}

.secondary-link {
  margin-top: 0;
  min-height: 54px;
  background: transparent;
}

.thank-you-compliance {
  grid-column: auto;
  margin-top: clamp(42px, 7vw, 86px);
  min-width: 0;
}

.thank-you-compliance p {
  overflow-wrap: anywhere;
}

.is-hidden {
  display: none;
}

@keyframes imageDrift {
  from {
    transform: scale(1.06) translate3d(-0.8%, 0, 0);
  }

  to {
    transform: scale(1.1) translate3d(0.8%, -0.8%, 0);
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes titleReveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-28px, 18px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes lineReveal {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-image {
    animation: imageDrift 28s ease-in-out both alternate infinite;
    will-change: transform;
  }

  .service-line {
    animation: fadeRise 1100ms ease-out 220ms both;
  }

  h1 {
    animation: titleReveal 1500ms cubic-bezier(0.18, 0.82, 0.22, 1) 420ms both;
  }

  .agent-strip {
    animation: fadeRise 1200ms ease-out 980ms both;
  }

  .request-intro,
  form,
  .compliance {
    animation: fadeRise 1050ms ease-out both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  label {
    position: relative;
  }

  label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: rgba(255, 240, 226, 0.48);
    transform: scaleX(0);
    transform-origin: left;
  }

  label:focus-within::after {
    animation: lineReveal 260ms ease-out forwards;
  }

  button:hover,
  .button-link:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 820px) {
  .hero-panel {
    min-height: 92svh;
    padding: clamp(28px, 8vw, 54px) 0;
  }

  .hero-image {
    background-position: 24% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(15, 11, 9, 0.46) 0%, rgba(15, 11, 9, 0.08) 42%, rgba(15, 11, 9, 0.72) 100%);
  }

  .hero-statement,
  .agent-strip {
    width: calc(100vw - 40px);
  }

  h1 {
    max-width: 560px;
    font-size: clamp(4.4rem, 18vw, 6.8rem);
  }

  .request-panel {
    width: calc(100vw - 32px);
    display: block;
  }

  .request-intro {
    position: static;
    margin-bottom: 34px;
  }

  .request-intro p:not(.section-label) {
    max-width: 100%;
  }

  .compliance {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .thank-you-card,
  .thank-you-compliance {
    width: calc(100vw - 48px);
  }

  .thank-you-card h1 {
    max-width: 100%;
    font-size: clamp(3.6rem, 16vw, 4.8rem);
  }

  .thank-you-card .button-link {
    width: 100%;
  }

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

  h2 {
    font-size: 2.4rem;
    max-width: 100%;
  }
}

@media (max-width: 420px) {
  .agent-strip {
    grid-template-columns: 58px 1fr;
  }

  .agent-strip img {
    width: 58px;
  }
}
