/* /hello/request — the redesigned consumer intake landing. Built on the
   site-wide design tokens (tokens.css). The Smarty autocomplete menu
   (.req-ac*), the confirmed-address receipt (.req-confirmed), and the honeypot
   (.req-hp) are reused from individuals.css, which this page also loads.

   Step accent colors and the year-one accent are literal, design-specified
   marketing values for this surface (the hi-fi handoff pins them). They live
   as local constants here / in the components, not as a second brand palette. */

.intake {
  --intake-year-one: #e4551c;
  background: var(--surface-raised);
  font-family: var(--font-body);
  color: var(--text-primary);
}

@keyframes intake-wordfade {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intake-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.86);
  }
}
@keyframes intake-ringspin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes intake-bubble-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes intake-dot-float {
  0% {
    opacity: 0;
    transform: scale(0.6);
    background: var(--ulv-forest-800);
  }
  25% {
    opacity: 1;
    transform: scale(1);
    background: var(--ulv-blue-600);
  }
  55% {
    opacity: 1;
    transform: scale(1);
    background: var(--intake-year-one);
  }
  80% {
    opacity: 1;
    transform: scale(1);
    background: var(--ulv-forest-600);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
    background: var(--ulv-forest-800);
  }
}

/* ============ HERO ============ */
.intake-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.intake-hero-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding: 26px 24px 0;
}
.intake-hero-brand {
  background: var(--surface-raised);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 22px;
}
.intake-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ulv-blue-600);
  /* Centered as a block on desktop; keep the wrapped line centered on mobile too. */
  text-align: center;
}
.intake-referral {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ulv-forest-700);
}
.intake-referral strong {
  font-weight: 600;
}

.intake-hero-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px 24px 40px;
  text-align: center;
}
.intake-hero-copy {
  padding: 14px 26px;
}
.intake-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(24px, 2.4vw, 34px);
  margin: 0;
  color: var(--text-primary);
  white-space: nowrap;
}
.intake-rotword {
  display: inline-block;
  white-space: nowrap;
  animation: intake-wordfade 320ms var(--ease-out);
}
.intake-subhead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 14px auto 0;
  max-width: 520px;
  text-wrap: pretty;
}

/* ---- hero stage: rotating house showcase left, form right ---- */
.intake-hero-stage {
  width: min(1140px, 100%);
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
  text-align: left;
}
.intake-showcase {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* Fixed box so the page never reflows as houses rotate. Every image is
   absolutely positioned and object-fit: contain, so a tall Tudor and a wide
   ranch both letterbox inside the same frame instead of resizing the column.
   The houses sit on transparent webp, so the letterboxing is invisible. */
.intake-showcase-frame {
  position: relative;
  width: 100%;
  /* Cropped to the active house's content band (set per house in the component
     via --house-ar) so the baked-in whitespace above and below the house is
     trimmed — the house sits close to the card below. Falls back to 3:2. */
  aspect-ratio: var(--house-ar, 1.5);
  overflow: hidden;
  transition: aspect-ratio 900ms var(--ease-out);
  margin-bottom: 14px;
}
.intake-showcase-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* cover + the per-house aspect trims the house's own whitespace with no
     clipping: the artwork is centered in each square, so the centered crop shows
     exactly the house. */
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.intake-showcase-img[data-active="true"] {
  opacity: 1;
}
.intake-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-top: 4px;
  animation: intake-wordfade 900ms var(--ease-out);
}
.intake-showcase-place {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.1;
  color: var(--text-primary);
}
.intake-showcase-style {
  color: var(--text-tertiary);
  font-weight: 500;
}
.intake-showcase-figs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
}
.intake-showcase-figs dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}
.intake-showcase-figs dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.intake-showcase-figs .total {
  color: var(--ulv-forest-700);
}
.intake-showcase-figs .y1 {
  color: var(--intake-year-one);
}

/* ---- form card ---- */
.intake-card {
  width: min(400px, 100%);
  margin: 0 auto;
  text-align: left;
  background: var(--surface-raised);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  padding: 24px;
}
/* The rotating "kind of place" tail of the card title. Inline in the h2, so it
   inherits the title's font; it just carries its own per-house color and fade. */
.intake-title-rotword {
  animation: intake-wordfade 900ms var(--ease-out);
  white-space: nowrap;
}
/* Reserve two lines so a long word ("second home", "lake house") wrapping to a
   second line does not grow the card and shove the button down. */
.intake-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  line-height: 1.25;
  min-height: 2.5em;
  margin: 0 0 3px;
  color: var(--text-primary);
}
.intake-card-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 0 0 18px;
}
.intake-fields {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.intake-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.intake-field {
  position: relative;
  min-width: 0;
}
.intake-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}
.intake-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  border-radius: 0;
}
.intake-input--mono {
  font-family: var(--font-mono);
}
.intake-input[type="month"] {
  font-size: 14px;
}
.intake-input:focus {
  border-color: var(--field-border-focus);
  box-shadow: var(--shadow-focus);
  outline: none;
}
.intake-field-err {
  font-size: 11px;
  color: var(--text-danger);
  margin-top: 4px;
}
.intake-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ulv-forest-700);
  font-family: var(--font-mono);
}
.intake-attest {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  margin-top: 2px;
}
.intake-attest input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--ulv-forest-800);
}
.intake-attest span {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.intake-attest-err {
  font-size: 11px;
  color: var(--text-danger);
  margin-top: -6px;
}
.intake-submit {
  height: 50px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--action-primary-bg);
  color: var(--action-primary-fg);
  border: 1px solid var(--action-primary-border);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms var(--ease-out);
}
.intake-submit:hover {
  background: var(--action-primary-bg-hover);
}
.intake-submit:active {
  background: var(--action-primary-bg-active);
}
.intake-submit:disabled {
  opacity: 0.65;
  cursor: default;
}
.intake-form-err {
  font-size: 11px;
  color: var(--text-danger);
  margin: 0;
}

/* ---- submitted / estimate state ---- */
.intake-est-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.intake-est-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.intake-est-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.intake-est-row--divide {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}
.intake-est-k {
  font-size: 14px;
  color: var(--text-secondary);
}
.intake-est-v {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 30px;
  letter-spacing: -0.01em;
}
.intake-est-v--total {
  color: var(--ulv-forest-700);
}
.intake-est-v--y1 {
  color: var(--intake-year-one);
}
.intake-est-v--band {
  font-size: clamp(24px, 5vw, 30px);
  color: var(--ulv-forest-700);
}
.intake-est-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}
.intake-est-reassure {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 16px 0 0;
}
.intake-ghost {
  margin-top: 10px;
  height: 40px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.intake-submit--mt {
  margin-top: 18px;
}
.intake-est-return {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.55;
  margin: 12px 0 0;
  word-break: break-word;
}

/* ============ OBBBA STRIP ============ */
.intake-obbba {
  background: var(--ulv-forest-800);
  padding: 16px 24px;
}
.intake-obbba-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  text-align: center;
}
.intake-obbba-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ulv-rust-300);
  flex: 0 0 auto;
}
.intake-obbba-msg {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ulv-white);
  text-wrap: balance;
}
.intake-obbba-msg .un {
  font-weight: 300;
  font-style: italic;
}
.intake-obbba-msg .lever {
  font-weight: 700;
}

/* ============ WHAT TO EXPECT ============ */
.intake-expect {
  background: var(--surface-raised);
  border-top: 1px solid var(--border-default);
  padding: 64px 24px 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.intake-expect-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.intake-expect-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.intake-expect-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--intake-year-one);
  margin-bottom: 10px;
}
.intake-expect-h {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
  color: var(--text-primary);
}
.intake-expect-h .soft {
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-tertiary);
  vertical-align: middle;
}
.intake-expect-orless {
  white-space: nowrap;
}
.intake-expect-info {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 8px;
  color: var(--ulv-blue-600);
  cursor: help;
}
.intake-expect-sub {
  font-size: clamp(12px, 1.35vw, 15px);
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 12px 0 0;
}
.intake-expect-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 36px);
}

/* ---- process ring (desktop / tablet) ---- */
.intake-viz {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.intake-viz-legend {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-width: 340px;
}
.intake-viz-step {
  display: flex;
  gap: 12px;
}
.intake-viz-step-icon {
  margin-top: 1px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: color 450ms ease;
}
.intake-viz-step-icon.pulse {
  animation: intake-pulse 1.2s ease-in-out infinite;
}
.intake-viz-step-title {
  font-family: var(--font-body);
  font-size: 16px;
  transition: color 450ms ease;
}
.intake-viz-step-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 4px;
}
.intake-chips {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.intake-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-default);
  padding: 3px 8px;
}
.intake-ring {
  position: relative;
  width: 340px;
  height: 340px;
  flex: 0 0 auto;
  max-width: 86vw;
  aspect-ratio: 1 / 1;
}
.intake-ring-svg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: intake-ringspin 9s linear infinite;
}
.intake-ring-prog {
  transition: stroke-dashoffset 2.3s cubic-bezier(0.33, 0, 0.2, 1);
}
.intake-ring-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--surface-raised);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  transition: color 600ms ease;
}
.intake-ring-marker.pulse {
  animation: intake-pulse 1.2s ease-in-out infinite;
}
.intake-ring-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.intake-ring-report {
  width: 132px;
  height: 172px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  background: #fff;
  display: block;
}
.intake-ring-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ulv-forest-700);
}

/* ---- vertical timeline (mobile) ---- */
.intake-tl {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
.intake-tl-list {
  display: flex;
  flex-direction: column;
}
.intake-tl-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
}
.intake-tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.intake-tl-node {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  flex: 0 0 auto;
}
.intake-tl-line {
  flex: 1 1 auto;
  width: 2px;
  background: var(--ulv-stone-200);
  margin-top: 4px;
  min-height: 18px;
}
.intake-tl-body {
  flex: 1 1 auto;
  min-width: 0;
}
.intake-tl-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.intake-tl-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.intake-tl-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.intake-sample-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
  padding: 14px;
  border: 1px solid var(--border-default);
  background: var(--ulv-forest-50);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.intake-sample-card img {
  width: 70px;
  height: 92px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border-default);
  background: #fff;
  flex: 0 0 auto;
}
.intake-sample-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ulv-forest-600);
  margin-bottom: 4px;
}
.intake-sample-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}
.intake-sample-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ---- Maddie (desktop > 1024 only) ---- */
.intake-maddie {
  position: relative;
  flex: 0 0 auto;
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.intake-maddie img {
  height: clamp(280px, 32vw, 420px);
  object-fit: contain;
  display: block;
}
.intake-maddie-bubble {
  position: absolute;
  top: 2%;
  right: -30px;
  width: 168px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.intake-maddie-bubble span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ulv-forest-800);
  opacity: 0;
  animation: intake-wordfade 500ms var(--ease-out) forwards;
}
.intake-maddie-bubble .w1 {
  animation-delay: 0.2s;
}
.intake-maddie-bubble .w2 {
  animation-delay: 1s;
}
.intake-maddie-bubble .w3 {
  animation-delay: 1.8s;
}
.intake-maddie-dot {
  position: absolute;
  border-radius: var(--radius-full);
  background: var(--ulv-forest-800);
  box-shadow: var(--shadow-md);
  z-index: 3;
  animation: intake-dot-float 3.2s ease-in-out infinite;
}
.intake-maddie-dot.d1 {
  top: 7%;
  right: 32%;
  width: 12px;
  height: 12px;
  animation-delay: 0.12s;
}
.intake-maddie-dot.d2 {
  top: 12%;
  right: 38.5%;
  width: 7px;
  height: 7px;
  animation-delay: 0.9s;
}

.intake-seenin {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.intake-seenin .accounting {
  color: var(--ulv-blue-600);
  font-weight: 900;
  font-size: 1.18em;
}
.intake-seenin .today {
  color: var(--ulv-forest-500);
  font-weight: 900;
  font-size: 1.18em;
}

/* ============ FOOTER ============ */
.intake-footer {
  border-top: 1px solid var(--ulv-forest-900);
  background: var(--ulv-forest-800);
}
.intake-footer-row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.intake-footer-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgb(255 255 255 / 60%);
}
.intake-footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
}
.intake-footer-nav a {
  color: var(--ulv-white);
}
.intake-footer-nav a:hover {
  color: var(--ulv-white);
  opacity: 0.8;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .intake-maddie {
    display: none !important;
  }
  .intake-hero-stage {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 460px;
    justify-items: center;
    text-align: center;
  }
  .intake-showcase-figs {
    justify-content: center;
  }
  .intake-expect {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 64px;
  }
}
@media (max-width: 820px) {
  .intake-tagline {
    font-size: clamp(26px, 7vw, 38px);
    white-space: normal;
  }
  .intake-expect {
    padding-top: 44px;
    padding-bottom: 52px;
  }
  .intake-footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .intake-footer-nav {
    flex-direction: column;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intake-title-rotword,
  .intake-showcase-card,
  .intake-ring-svg,
  .intake-ring-marker,
  .intake-viz-step-icon,
  .intake-maddie-bubble,
  .intake-maddie-dot {
    animation: none !important;
  }
  .intake-showcase-img {
    transition: none !important;
  }
}
