/* Google Fonts @font-face rules, inlined so the page does not block on a second stylesheet request.
   Font files still come from fonts.gstatic.com (display=swap). Regenerate by fetching
   https://fonts.googleapis.com/css2?family=Figtree:wght@400;500&display=swap */
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4q9DaRvziissg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4S9DaRvzig.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4q9DaRvziissg.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/figtree/v9/_Xms-HUzqDCFdgfMm4S9DaRvzig.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Slate. Tokens from RES-BRAND-GUIDE.md, Part 2, direction 04. Two measured
   values: --res-cta-bg is the lightest copper clearing 4.5:1 with white text,
   and --res-text-muted clears 4.5:1 on both fog surfaces. */
:root {
  --res-primary: #3A4A5C;
  --res-primary-deep: #26323F;
  --res-accent: #B5643C;
  --res-accent-soft: #D89A7C;
  --res-surface: #F2F4F5;
  --res-surface-2: #E3E7EA;
  --res-text: #1F2730;
  --res-text-muted: #5D6874;
  --res-line: #CBD2D8;
  --res-cta-bg: #B0613A;
  --res-cta-text: #FFFFFF;
  --res-on-primary: #F2F4F5;
  --res-success: #2E7D5B;
  --res-radius: 8px;
  --res-font-display: 'Figtree', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --res-font-body: 'Figtree', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --res-max: 1100px;
  --res-measure: 60ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--res-surface); color: var(--res-text);
  font-family: var(--res-font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* Below 720px a call bar is fixed to the bottom; keep content clear of it. */
@media (max-width: 719px) { body { padding-bottom: 84px; } }
.wrap { max-width: var(--res-max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }
.num, time, td { font-variant-numeric: tabular-nums; }
p { max-width: var(--res-measure); margin: 0 0 1em; }
h1, h2, h3, .display { font-family: var(--res-font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 20px; }
h1 { font-size: 45px; line-height: 1.08; max-width: 22ch; }
h2 { font-size: 29px; }
h3 { font-size: 19px; line-height: 1.3; margin-bottom: 8px; font-weight: 500; }
@media (max-width: 720px) { h1 { font-size: 31px; } h2 { font-size: 25px; } }
small, .small { font-size: 14px; }
.muted { color: var(--res-text-muted); }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--res-primary); outline-offset: 3px;
}

/* Mark: plain. RES in the display face with the wordmark beside it, no container. */
.mark { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; min-height: 48px; color: var(--res-text); }
.mark-square {
  font-family: var(--res-font-display); font-weight: 500; font-size: 21px; letter-spacing: 0.06em; line-height: 1;
  border-bottom: 2px solid var(--res-accent); padding-bottom: 2px;
}
.mark-word { font-size: 16px; }
@media (max-width: 480px) { .mark-word { display: none; } }

/* Header */
.site-head { border-bottom: 1px solid var(--res-line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav .phone { font-family: var(--res-font-display); font-weight: 500; }

/* Buttons: primary is ink on cream. One per view. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--res-radius);
  font-family: var(--res-font-display); font-weight: 500; font-size: 15px; line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--res-cta-bg); color: var(--res-cta-text); }
.btn-primary:hover { background: var(--res-primary-deep); }
.btn-secondary { background: transparent; color: var(--res-text); border-color: rgb(31 39 48 / 0.35); }
.btn-secondary:hover { border-color: var(--res-text); }
.btn-tall { min-height: 52px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
/* Hero: split. Headline left, animated house panel right; the credentials row sits under both. */
.hero .wrap { text-align: left; max-width: var(--res-max); padding-top: 48px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px; align-items: center; }
.hero h1, .hero .sub, .hero p { margin-left: 0; margin-right: 0; }
.hero .actions, .hero .phone-line { justify-content: flex-start; }
.hero .card { max-width: none; margin: 0; grid-column: 1 / -1; }
.hero .card .checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.hero .card .checks li { border-top: 0; padding: 6px 0; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 32px; }
  .hero .card .checks { grid-template-columns: 1fr; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--res-text-muted); margin: 0 0 16px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--res-success); }

/* Animated house panel */
.houses { position: relative; aspect-ratio: 6 / 5; background: var(--res-surface-2); border-radius: 20px; overflow: hidden;
  background-image: radial-gradient(var(--res-line) 1px, transparent 1px); background-size: 24px 24px; }
.houses-stage { position: absolute; inset: 0 0 52px 0; }
.houses-stage svg { display: block; width: 100%; height: 100%; }
.houses-scene { position: absolute; inset: 0; animation: houses-in .8s ease-out both; }
@keyframes houses-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.houses-dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.houses-dots button { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.houses-dots button span { width: 12px; height: 12px; border-radius: 50%; background: var(--res-line); transition: background .25s, transform .25s; }
.houses-dots button:hover span { transform: scale(1.15); }
.houses-dots button[aria-current="true"] span { background: var(--res-accent); }
.houses-dots button:focus-visible { outline: 2px solid var(--res-primary); outline-offset: -4px; }
.no-js .houses-dots { display: none; }
@media (prefers-reduced-motion: reduce) { .houses * { animation: none !important; } .houses-scene { opacity: 1; } }

.s0-d{stroke-dasharray:900;stroke-dashoffset:900;animation:s0-dr 1.6s ease-out forwards} @keyframes s0-dr{to{stroke-dashoffset:0}}
.s0-d2{animation-delay:.5s} .s0-d3{animation-delay:1s} .s0-d4{animation-delay:1.4s}
.s0-f{opacity:0;animation:s0-fi .6s 2.2s ease-out forwards} @keyframes s0-fi{to{opacity:1}}
.s0-grid{stroke:#CBD2D8;stroke-width:1}
.s1-p{opacity:0;animation:s1-in .7s cubic-bezier(.2,.7,.2,1) forwards} @keyframes s1-in{from{opacity:0;transform:translateY(-40px)}to{opacity:1;transform:none}}
.s1-p1{animation-delay:.1s}.s1-p2{animation-delay:.5s}.s1-p3{animation-delay:.9s}.s1-p4{animation-delay:1.3s}.s1-p5{animation-delay:1.7s}.s1-p6{animation-delay:2.1s}
.s2-wipe{animation:s2-w 2.4s 1s cubic-bezier(.6,0,.2,1) forwards} @keyframes s2-w{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.s2-bar{animation:s2-mv 2.4s 1s cubic-bezier(.6,0,.2,1) forwards} @keyframes s2-mv{from{transform:translateX(0)}to{transform:translateX(480px)}}
.s2-lbl{opacity:0;animation:s2-fi .5s 3.5s forwards} @keyframes s2-fi{to{opacity:1}}
.s3-h{opacity:0;transform-origin:bottom;animation:s3-up .6s cubic-bezier(.2,.7,.2,1) forwards} @keyframes s3-up{from{opacity:0;transform:translateY(30px) scaleY(.9)}to{opacity:1;transform:none}}
.s3-h1{animation-delay:.1s}.s3-h2{animation-delay:.3s}.s3-h3{animation-delay:.5s}.s3-h4{animation-delay:.7s}.s3-h5{animation-delay:.9s}
.s3-glow{opacity:0;animation:s3-fi .8s 1.6s forwards} @keyframes s3-fi{to{opacity:1}}
.s3-tree{transform-origin:bottom;animation:s3-sway 4s ease-in-out infinite alternate} @keyframes s3-sway{from{transform:rotate(-1.5deg)}to{transform:rotate(1.5deg)}}
.s4-plan{animation:s4-fade 1s 2.2s forwards} @keyframes s4-fade{to{opacity:.25}}
.s4-rise{stroke-dasharray:700;stroke-dashoffset:700;animation:s4-dr 1.4s 1.2s ease-out forwards} @keyframes s4-dr{to{stroke-dashoffset:0}}
.s4-dim{opacity:0;animation:s4-fi .6s 2.8s forwards} @keyframes s4-fi{to{opacity:1}}
.s4-dot{animation:s4-pulse 1.6s ease-in-out infinite} @keyframes s4-pulse{50%{r:7}}

.proof { font-size: 14px; color: var(--res-text-muted); margin: 24px 0 0; }
.hero .sub { font-size: 19px; line-height: 1.45; max-width: 56ch; margin: 0 0 20px; }
.phone-line { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; font-size: 17px; }
.phone-line svg { width: 20px; height: 20px; flex: none; }
.phone-line a { font-family: var(--res-font-display); font-weight: 500; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.card { border-radius: var(--res-radius); padding: 24px; display: flex; flex-direction: column; }
.card > .btn { margin-top: auto; align-self: flex-start; }
.card p:last-of-type { margin-bottom: 20px; }
.card-butter { background: var(--res-surface-2); border: 1px solid var(--res-line); }
.card-pale { background: var(--res-surface-2); border: 1px solid var(--res-line); }
.card-ink { border: 1px solid var(--res-primary); }
.card h2, .card h3 { margin-top: 0; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--res-line); }
.checks li:first-child { border-top: 0; padding-top: 0; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--res-accent); }

/* Sections */
section.band { padding: 64px 0; }
section.alt { background: var(--res-surface-2); }
@media (max-width: 720px) { section.band { padding: 44px 0; } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 24px; } }

/* Timeline: five stops, horizontal on desktop, vertical on mobile. */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.timeline li { position: relative; padding-top: 22px; border-top: 2px solid var(--res-line); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--res-line); }
.timeline li.done::before { background: var(--res-accent); }
.timeline .day { display: block; font-size: 14px; color: var(--res-text-muted); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.timeline h3 { font-size: 17px; }
.timeline p { font-size: 15px; margin: 0; }
@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--res-line); }
  .timeline li { border-top: 0; padding: 0 0 24px 24px; }
  .timeline li::before { top: 6px; left: -8px; }
}

/* Ledger */
.ledger { background: #FFFFFF; border: 1px solid var(--res-line); border-radius: var(--res-radius); padding: 20px 24px; }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger caption { text-align: left; font-family: var(--res-font-display); font-weight: 500; font-size: 15px; padding: 0 0 12px; }
.ledger td { padding: 8px 0; border-top: 1px solid var(--res-line); font-size: 16px; }
.ledger tr:first-child td { border-top: 0; }
.ledger td:last-child { text-align: right; white-space: nowrap; }
.ledger tr.total td { font-family: var(--res-font-display); font-weight: 500; border-top: 2px solid var(--res-primary); }
.ledger tfoot td { border-top: 1px solid var(--res-line); font-size: 14px; color: var(--res-text-muted); }

/* Questions */
.qa { border-top: 1px solid var(--res-line); }
.qa details { border-bottom: 1px solid var(--res-line); }
.qa summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 8px; font-family: var(--res-font-display); font-weight: 500; font-size: 17px; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-weight: 500; font-size: 21px; flex: none; }
.qa details[open] summary { background: var(--res-surface-2); border-radius: var(--res-radius) var(--res-radius) 0 0; }
.qa details[open] summary::after { content: "\2013"; }
.qa .answer { padding: 8px 8px 20px; }
.qa .answer p { margin: 0; }

/* Letter */
.letter { max-width: 58ch; font-size: 17px; }
.letter p { max-width: none; }
.letter-wrap { display: grid; grid-template-columns: minmax(0, 58ch) 220px; gap: 40px; align-items: start; }
@media (max-width: 860px) { .letter-wrap { grid-template-columns: 1fr; } }
.photo-slot { aspect-ratio: 4 / 5; border: 1px solid var(--res-line); border-radius: var(--res-radius); overflow: hidden; background: #fff; }
.photo-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Contact */
.contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; max-width: 760px; }
@media (max-width: 640px) { .contact { grid-template-columns: 1fr; } }
.contact dt { font-size: 14px; color: var(--res-text-muted); margin-bottom: 2px; }
.contact dd { margin: 0; }
.contact .big { font-family: var(--res-font-display); font-weight: 500; font-size: 27px; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }

/* Footer */
.site-foot { background: var(--res-primary); color: var(--res-on-primary); padding: 28px 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-foot p { margin: 0; font-size: 14px; color: var(--res-on-primary); opacity: 0.85; max-width: none; }
.site-foot a { font-size: 14px; color: var(--res-on-primary); opacity: 0.85; min-height: 48px; display: inline-flex; align-items: center; }

/* Sticky call bar, mobile only. */
.callbar { display: none; }
@media (max-width: 719px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0;
    padding: 12px 16px; background: var(--res-surface); border-top: 1px solid var(--res-line);
  }
  .callbar .btn { min-height: 52px; }
}

/* Guides */
.guide { max-width: 68ch; padding-top: 32px; padding-bottom: 64px; }
.guide h1 { font-size: 35px; max-width: none; }
.guide .dateline { font-size: 14px; color: var(--res-text-muted); margin-bottom: 24px; }
.guide h2 { font-size: 23px; margin-top: 36px; }
.guide ol, .guide ul { padding-left: 24px; }
.guide li { margin-bottom: 8px; }
.guide .help { background: var(--res-surface-2); border: 1px solid var(--res-line); border-radius: var(--res-radius); padding: 20px 24px; margin-top: 36px; }
.guide .help p { margin: 0 0 8px; }
.guide-list { list-style: none; padding: 0; margin: 0; }
.guide-list li { border-top: 1px solid var(--res-line); padding: 20px 0; }
.guide-list a { font-family: var(--res-font-display); font-weight: 500; font-size: 19px; text-decoration: none; display: inline-flex; min-height: 48px; align-items: center; }
.guide-list a:hover { text-decoration: underline; }
.guide-list p { margin: 4px 0 0; }
