@font-face { font-family: Bricolage; src: url(/fonts/bricolage.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: Instrument; src: url(/fonts/instrument.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }
@view-transition { navigation: auto; }

/* Navy and green come from the Realty of America logo. */
:root {
  --page: #f1f4f9; --card: #fff; --soft: #e6ebf4; --ink: #0f2148; --quiet: #4a5879;
  --navy: #10295a; --pale: #f1f4f9; --green: #14775c; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lift: 0 1px 2px rgb(10 24 56 / 0.08), 0 8px 16px rgb(10 24 56 / 0.07), 0 28px 56px rgb(10 24 56 / 0.14);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.5 Instrument, system-ui, sans-serif; color: var(--ink); background: var(--page); padding: 8px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: Bricolage, system-ui, sans-serif; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 104px); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: 24px; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero :focus-visible, .panel :focus-visible { outline-color: #fff; }
.panel form :focus-visible { outline-color: var(--navy); }
section { scroll-margin-top: 8px; }
svg[hidden] { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; font: 500 17px/1 Instrument, system-ui, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.light { background: var(--card); color: var(--ink); }
.light:hover, .soft:hover { background: #d8e0ee; }
.soft { background: var(--soft); color: var(--ink); }
.go { background: var(--green); color: #fff; }
.go:hover { background: #0e5d48; }

.raised { background: var(--card); border-radius: 24px; box-shadow: var(--lift); }
ul { list-style: none; padding: 0; display: grid; gap: 14px; font-size: 19px; line-height: 1.35; }
li { position: relative; padding-left: 40px; }
li::before { content: ""; position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green); }
li::after { content: ""; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
h2 + ul { margin-top: 24px; }

.logo { display: inline-block; padding: 10px 14px; border-radius: 14px; background: #fff; }
.logo img { display: block; width: 104px; height: auto; }

/* Hero: on phones the photo fills the top and melts into navy, so the headline has calm space. */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: max(540px, calc(100svh - 280px)); padding: 16px 20px 96px; border-radius: 24px; overflow: hidden; color: #fff; background: var(--navy); }
.hero picture img { position: absolute; inset: 0 0 auto; z-index: -2; width: 100%; height: 84%; object-fit: cover; object-position: 50% 15%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgb(16 41 90 / 0) 42%, rgb(16 41 90 / 0.78) 62%, var(--navy) 80%); }
.hero header { display: flex; justify-content: space-between; align-items: center; }
.hero nav { display: none; }
.pitch { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.pitch p { margin-top: 12px; font-size: 20px; }

/* This card overlaps the photo, the first layer of depth. */
.meet { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 12px; margin: -72px 12px 0; padding: 20px; }
.meet img { width: clamp(56px, 18vw, 88px); height: auto; border-radius: 50%; }
.meet strong { display: block; white-space: nowrap; font: 600 clamp(15px, 4.7vw, 20px)/1.25 Bricolage, system-ui, sans-serif; }
.meet span { color: var(--quiet); font-size: 16px; }
.actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.actions .go { grid-column: 1 / -1; min-height: 56px; }

.help { display: grid; gap: 16px; padding: 48px 12px; }
.help > div { padding: 28px 24px 32px; }
.help h2 { font-size: 36px; }

.panel { display: grid; gap: 40px; padding: 48px 20px; border-radius: 24px; background: var(--navy); color: var(--pale); }
form { padding: 24px 20px; color: var(--ink); }
.small { margin-top: 12px; font-size: 15px; color: var(--quiet); text-align: center; }
[data-state=sent] .small { display: none; }

.rest label { display: block; margin-bottom: 20px; font-weight: 500; }
.rest label input { display: block; width: 100%; min-height: 56px; margin-top: 8px; padding: 0 16px; border: 1px solid #76829d; border-radius: 12px; background: #fff; color: inherit; font: inherit; }
form .rest input:user-invalid { border-color: #b3261e; }
fieldset { border: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
legend { font-weight: 500; padding: 0 0 8px; }
fieldset label { position: relative; display: grid; place-items: center; min-height: 96px; border: 1px solid #76829d; border-radius: 12px; font: 500 20px/1 Bricolage, system-ui, sans-serif; cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
fieldset label:hover { background: var(--soft); }
fieldset label:has(:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
fieldset label:has(:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
fieldset input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.rest .trap { position: absolute; left: -9999px; }
.error { color: #b3261e; }
.error:not(:empty) { margin-bottom: 20px; }

/* One question first. Picking an answer grows the same panel, and the Send button itself grows into the confirmation. */
.fold { display: grid; grid-template-rows: 1fr; margin-inline: -8px; }
.fold > div { min-height: 0; overflow: hidden; }
.fold > div > div { padding: 8px; }
.ask fieldset { margin-bottom: 12px; }
.send { border-radius: 12px; background: var(--green); color: #fff; overflow: hidden; }
.send .btn { width: 100%; min-height: 64px; }
.send:focus-within:has(.btn:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.done { margin: 0; grid-template-rows: 0fr; visibility: hidden; }
.done > div > div { padding: 32px 24px; outline: 0; }
.done p { margin-top: 8px; }
.tick { display: block; width: 56px; height: 56px; margin-bottom: 20px; padding: 14px; border-radius: 50%; background: var(--pale); fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@supports selector(:has(*)) {
  form:not(:has(:checked)) :is(.rest, .finish) { grid-template-rows: 0fr; visibility: hidden; }
}
[data-state=sent] :is(.ask, .rest) { grid-template-rows: 0fr; visibility: hidden; }
[data-state=sent] .btn { display: none; }
[data-state=sent] .done { grid-template-rows: 1fr; visibility: visible; }

.icons { display: grid; }
.icons svg { grid-area: 1 / 1; opacity: 0; filter: blur(4px); transform: scale(0.6); }
form:not([data-state]) .icons :nth-child(1), [data-state=sending] .icons :nth-child(2), [data-state=ok] .icons :nth-child(3) { opacity: 1; filter: none; transform: none; }

/* While someone fills in the form, the rest of the page steps back. app.js drops data-stage once they scroll away. */
[data-stage]:has(form:not([data-state=sent]) :focus) :is(.hero, .meet, .help, #proof, .area, .about, footer) { opacity: 0.3; }

.area, .about { display: grid; gap: 32px; padding: 80px 12px; }
.area b { display: block; font-weight: 600; }
.area figure { position: relative; overflow: hidden; background: #e1e8ef; }
.pan { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.pan > div { position: relative; }
.area img { display: block; width: 100%; height: auto; }
.area figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.area circle { fill: var(--ink); }
.area text { font: 500 21px Instrument, system-ui, sans-serif; fill: var(--ink); paint-order: stroke; stroke: #e1e8ef; stroke-width: 7px; stroke-linejoin: round; }
.area circle.austin { fill: var(--green); stroke: #fff; stroke-width: 5; }
.area text.austin { font: 600 44px Bricolage, system-ui, sans-serif; fill: var(--green); }
figcaption { position: absolute; right: 0; bottom: 0; padding: 4px 12px; font-size: 12px; color: var(--quiet); background: #e1e8ef; border-radius: 8px 0 0; }

.about { padding-top: 0; }
/* Stacked discs behind the headshot. */
.portrait { position: relative; width: min(82%, 440px); margin: 0 auto; padding: 0 20px 20px 0; }
.portrait::before { content: ""; position: absolute; inset: 20px 0 0 20px; border-radius: 50%; background: var(--green); }
.portrait img { position: relative; display: block; width: 100%; height: auto; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--lift); }
footer p + p { margin-top: 16px; }
footer .logo + p { margin-top: 24px; }
footer a { display: inline-block; padding-block: 10px; }

/* Draft markers. Delete this rule once no placeholders are left. */

.dock { display: none; }
@media (max-width: 839px) {
  /* Bigger map you swipe. A native scroller, so phones add their own rubber band at the edges. */
  .pan > div { width: 150%; }
  .area text { font-size: 23px; }
  .area text.austin { font-size: 46px; }
  /* Call, Text and Email stay in thumb reach once the hero is scrolled away. Browsers without scroll-driven animation just skip it. */
  @supports (animation-timeline: scroll()) {
    body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .dock { position: fixed; inset: auto 8px calc(8px + env(safe-area-inset-bottom)); z-index: 1; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--ink); box-shadow: 0 12px 32px rgb(10 24 56 / 0.35); animation: dock linear both; animation-timeline: scroll(); animation-range: 60svh 85svh; }
    .dock .btn { padding: 0 8px; min-height: 56px; }
    [data-stage]:has(form:not([data-state=sent]) :focus) .dock { display: none; }
  }
}
@keyframes dock { from { visibility: hidden; opacity: 0; transform: translateY(12px); } to { visibility: visible; opacity: 1; transform: none; } }

/* Reviews and closing photos: a native sideways scroller that proof.js moves along. */
[hidden] { display: none !important; }
.rotator { padding: 0 12px 24px; }
#reviews { padding-bottom: 56px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.controls { display: flex; gap: 8px; }
.controls button { min-width: 48px; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: var(--lift); font: 500 16px/1 Instrument, system-ui, sans-serif; cursor: pointer; }
.controls button:hover { background: var(--soft); }
.score { margin-top: 12px; }
.maps { font: 400 16px Roboto, sans-serif; color: #1f1f1f; white-space: nowrap; }
.stars { color: #b25e00; letter-spacing: 2px; }
.track { display: flex; gap: 16px; margin: 0 -12px; padding: 24px 12px 80px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 12px; scrollbar-width: none; }
.track > * { flex: none; scroll-snap-align: start; }
.rotator .small { position: relative; margin-top: -40px; text-align: left; }
.review { display: flex; flex-direction: column; gap: 16px; width: min(84%, 380px); padding: 24px; }
.words { flex: 1; max-height: 220px; overflow-y: auto; font-size: 18px; white-space: pre-line; }
.by { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; color: var(--quiet); font-size: 15px; }
.who { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.who img { border-radius: 50%; }
.closing { align-self: flex-start; max-width: 84%; padding: 8px; }
.closing img { display: block; width: auto; max-width: 100%; height: clamp(260px, 38vw, 400px); border-radius: 16px; object-fit: cover; }
.closing figcaption { position: static; padding: 12px 8px 6px; background: none; color: var(--ink); font-size: 16px; font-weight: 500; }

/* Erick's upload page and the privacy page */
.admin main { max-width: 760px; margin: 0 auto; padding: 24px 12px 64px; }
.admin h1 { max-width: none; margin: 16px 0 24px; font-size: 44px; mask: none; }
.admin h2 { margin: 40px 0 12px; font-size: 28px; }
#add label:not(.pick) { font-weight: 500; }
#add [name=caption] { display: block; width: 100%; min-height: 56px; margin: 8px 0 16px; padding: 0 16px; border: 1px solid #76829d; border-radius: 12px; font: inherit; }
.pick { position: relative; width: 100%; min-height: 64px; }
.pick input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.pick:has(:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.pick:has(:disabled) { opacity: 0.5; }
#status:not(:empty) { margin-top: 16px; font-weight: 600; text-align: center; }
#photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
#photos > div { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
#photos img { width: 100%; height: 160px; border-radius: 16px; object-fit: cover; }
#photos p { flex: 1; padding: 0 8px; font-size: 15px; }

@media (min-width: 840px) {
  body { padding: 12px; }
  .hero { min-height: clamp(560px, calc(100svh - 100px), 960px); padding: 28px 40px 120px; }
  .hero picture img { height: 100%; }
  .hero::after { background: linear-gradient(90deg, rgb(10 26 60 / 0.86), rgb(10 26 60 / 0.6) 32%, rgb(10 26 60 / 0) 56%); }
  .logo img { width: 132px; }
  .hero nav { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #fff; color: var(--ink); }
  .hero nav a { padding: 10px 20px; border-radius: 10px; font-size: 16px; font-weight: 500; text-decoration: none; transition: background-color 160ms var(--ease); }
  .hero nav a:hover { background: var(--soft); }
  .pitch { justify-content: center; }
  .pitch p { font-size: 24px; }
  h1 { max-width: 5.6em; font-size: clamp(56px, 6.6vw, 96px); }
  .meet { gap: 24px; margin: -72px 64px 0; padding: 24px 32px; }
  .meet img { width: 112px; }
  .meet strong { font-size: 24px; }
  .actions { grid-template-columns: 2fr 1fr 1fr; }
  .actions .go { grid-column: auto; }
  .help { grid-template-columns: 1fr 1fr; gap: 24px; padding: 72px 64px 96px; }
  .rotator { padding: 0 64px 40px; }
  .track { margin: 0 -64px; padding-inline: 64px; scroll-padding: 64px; }
  .help > div { padding: 40px; }
  .help h2 { font-size: 48px; }
  form { padding: 36px; }
  .panel { grid-template-columns: 1fr 1fr; gap: 64px; padding: 96px 64px; }
  footer.panel { padding-block: 64px; }
  .area, .about { grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; padding: 112px 64px; }
  .hint { display: none; }
  .about { padding-top: 0; }
}

@media (min-width: 1100px) {
  .meet { grid-template-columns: auto 1fr auto; }
  .actions { grid-column: auto; grid-template-columns: auto auto auto; }
}

/* Everything that answers a tap starts at once and ends inside 400ms. */
@property --reveal { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
@media (prefers-reduced-motion: no-preference) {
  .hero, .meet, .help, #proof, .area, .about, footer { transition: opacity 240ms var(--ease); }
  .fold { transition: grid-template-rows 360ms var(--ease), visibility 360ms; }
  .icons svg { transition: opacity 200ms var(--ease), filter 200ms var(--ease), transform 200ms var(--ease); }
  [data-state=sending] .icons :nth-child(2) { animation: spin 800ms linear infinite; }
  fieldset label:has(:checked) { animation: pulse 360ms var(--ease); }
  [data-state=sent] .tick { animation: pulse 360ms 200ms var(--ease); }

  h1 { mask: linear-gradient(100deg, #000 var(--reveal), transparent calc(var(--reveal) + 25%)); animation: reveal 400ms var(--ease) both; }
  .pitch p, .meet { animation: rise 400ms var(--ease) both; }
  @supports (animation-timeline: view()) {
    /* The map opens outward from Austin, which sits at its center. */
    .area figure { mask: radial-gradient(circle at 50% 50%, #000 var(--reveal), transparent calc(var(--reveal) + 12%)); animation: reveal linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
  }
}
@keyframes reveal { from { --reveal: 0%; } to { --reveal: 130%; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(20 119 92 / 0.7); } 40% { transform: scale(1.03); } 100% { box-shadow: 0 0 0 8px rgb(20 119 92 / 0); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}
