/* MAVEN HOMES HOME PAGE STYLES */
/* Wider inner container for a richer home page than the shell default (960). */
.section-inner.wide{ max-width:1120px; }
/* Fixed-header offset for the Home fragment targets (V1-R1): the shared header is
   var(--header-h) = 76px tall; the +16px breathing space matches services.css
   (ribbon 26px + header 76px + 16px = 118px). Affects only where fragment
   navigation lands; the resting layout is unchanged. */
#about, #projects, #how, #consult{ scroll-margin-top:calc(var(--header-h) + 16px); }
.kicker{
  font-size:.7rem; text-transform:uppercase; letter-spacing:.28em;
  color:var(--gold); margin:0 0 .9rem;
}
.section-lede{ font-family:var(--editorial); font-size:clamp(1.05rem,2vw,1.3rem); color:var(--text-secondary); max-width:680px; }
.note-flag{
  margin-top:1.6rem; padding:.7rem 1rem; border:1px dashed var(--border-strong);
  border-radius:8px; color:var(--text-tertiary); font-size:.76rem; letter-spacing:.03em; max-width:100%;
}

/* ── Official sunrise logo: preserve intrinsic 277×195 (~1.42:1) ratio ─────
   The committed shell sets `.brand img` to 38×38 with the default
   object-fit:fill, which stretches the landscape logo into a square. This
   override reproduces the production presentation (styles.css .nav-logo-sunrise:
   40×40, object-fit:contain) so the mark keeps its true proportions, and locks
   the flex item so it neither shrinks nor stretches. The image file itself is
   untouched (byte-identical). */
.site-header .brand img{
  width:40px; height:40px; object-fit:contain; flex:0 0 auto;
}

/* ══ B. HERO IMAGE TREATMENT (extends shell .page-hero) ═══════════════════ */
.home-hero{
  position:relative; overflow:hidden;
  /* Full-height hero establishes a genuine lower band for the scroll cue with
     clear separation from the centred CTAs (a design zone, NOT padding added to
     hide a positioning defect). Content is vertically centred within it. */
  min-height:min(90vh, 860px);
  display:flex; flex-direction:column; justify-content:center;
}
.home-hero-bg{
  position:absolute; inset:0; z-index:0;
  /* R1: feature the room's architecture (fireplace wall, curved staircase,
     brick) rather than the ceiling — was center 30% (ceiling-heavy). */
  background:url('/images/hero-bg.webp') center 46%/cover no-repeat;
  transform:scale(1.04);
}
/* R1 overlay: was two stacked heavy gradients (~0.75–0.9 combined) that crushed
   the bright room to near-black. Now a soft radial ONLY behind the centred copy
   plus edge darkening at the header top and the CTA/scroll bottom — the mid and
   sides stay light so the living room reads clearly. */
.home-hero-scrim{
  position:absolute; inset:0; z-index:1;
  background:
    radial-gradient(86% 64% at 50% 47%, rgba(8,8,8,0.58) 0%, rgba(8,8,8,0.28) 52%, rgba(8,8,8,0) 80%),
    linear-gradient(180deg, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.14) 26%, rgba(8,8,8,0.12) 55%, rgba(8,8,8,0.50) 82%, rgba(8,8,8,0.88) 100%);
}
.home-hero .hero-inner{ position:relative; z-index:2; }
/* Copy protection lets the scrim stay light over the bright room. */
.home-hero .eyebrow{ text-shadow:0 1px 12px rgba(0,0,0,0.55); }
.home-hero h1{ text-shadow:0 2px 22px rgba(0,0,0,0.60), 0 1px 4px rgba(0,0,0,0.42); }
.home-hero .hero-lede{ color:var(--cream); opacity:.96; text-shadow:0 1px 14px rgba(0,0,0,0.62); }

/* ── C. Refined gold Scroll indicator ───────────────────────────────────── */
.scroll-cue{
  position:absolute; left:50%; bottom:clamp(1.6rem,4vh,2.8rem); z-index:3;
  transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:.55rem;
  color:var(--gold);
}
.scroll-cue-label{ font-size:.66rem; text-transform:uppercase; letter-spacing:.34em; color:var(--gold); text-shadow:0 1px 8px rgba(0,0,0,.6); }
.scroll-cue-track{
  position:relative; width:1px; height:46px;
  background:linear-gradient(180deg, rgba(200,169,81,.7), rgba(200,169,81,0));
  overflow:hidden;
}
.scroll-cue-dot{
  position:absolute; left:50%; top:0; width:3px; height:8px; margin-left:-1.5px;
  border-radius:2px; background:var(--gold-bright);
  animation:scrollCueDrop 2.6s var(--ease-out) infinite;
}
@keyframes scrollCueDrop{
  0%{ transform:translateY(-8px); opacity:0; }
  25%{ opacity:1; }
  75%{ opacity:1; }
  100%{ transform:translateY(46px); opacity:0; }
}
/* Desktop-only cue: on tablet/mobile the hero is shorter and the cue would
   crowd the stacked CTAs, so it is hidden below 901px. */
@media (max-width:900px){ .scroll-cue{ display:none; } }

/* ══ D. SERVICES OVERVIEW ════════════════════════════════════════════════ */
.svc-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.3rem; margin-top:2.6rem;
}
.svc-card{
  background:var(--charcoal); border:1px solid var(--border); border-radius:12px;
  padding:1.7rem 1.5rem; display:flex; flex-direction:column;
  transition:transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.svc-card:hover, .svc-card:focus-within{
  transform:translateY(-4px); border-color:var(--border-strong);
  box-shadow:0 22px 44px -26px rgba(0,0,0,.8);
}
.svc-icon{ display:inline-flex; width:48px; height:48px; color:var(--sunrise); margin-bottom:1.1rem; }
.svc-icon svg{ width:48px; height:48px; }
.svc-card h3{ font-family:var(--serif); font-weight:500; font-size:1.16rem; color:var(--cream); margin:0 0 .6rem; }
.svc-card p{ color:var(--text-secondary); font-size:.9rem; line-height:1.6; margin:0 0 1.1rem; }
.svc-more{
  margin-top:auto; align-self:flex-start; color:var(--gold); font-size:.82rem; letter-spacing:.04em;
  border-bottom:1px solid transparent; transition:border-color .25s var(--ease-out), gap .25s;
}
.svc-more:hover, .svc-more:focus-visible{ border-color:var(--gold); }

/* ══ E. WHAT MAKES MAVEN DIFFERENT ═══════════════════════════════════════ */
.diff-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem 2rem; margin-top:2.6rem; }
.diff-item{ padding-top:1rem; }
.diff-rule{ display:block; width:42px; height:2px; background:var(--gold); margin-bottom:1rem; }
.diff-item h3{ font-family:var(--serif); font-weight:500; font-size:1.08rem; color:var(--cream); margin:0 0 .5rem; }
.diff-item p{ color:var(--text-secondary); font-size:.88rem; line-height:1.6; margin:0; }

/* ══ F. MAVEN CLIENT EXPERIENCE ══════════════════════════════════════════ */
.cx-layout{ display:grid; grid-template-columns:1fr; gap:2.6rem; margin-top:2.4rem; align-items:start; }
.cx-benefits{ list-style:none; margin:0; padding:0; }
.cx-benefits li{
  position:relative; padding:.62rem 0 .62rem 1.7rem; color:var(--text-primary);
  font-size:.95rem; border-bottom:1px solid var(--border);
}
.cx-benefits li::before{
  content:""; position:absolute; left:0; top:1.05rem; width:9px; height:9px;
  border-right:1.5px solid var(--gold); border-bottom:1.5px solid var(--gold);
  transform:rotate(45deg);
}
.cx-media{ display:grid; grid-template-columns:1.4fr 1fr; grid-template-rows:auto auto; gap:1.1rem; }
.cx-cta{ margin-top:2rem; }

/* ══ G. SELECTED PROJECTS ════════════════════════════════════════════════ */
.proj-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.6rem; margin-top:2.6rem; }
.proj-card{
  background:var(--charcoal); border:1px solid var(--border); border-radius:12px; overflow:hidden;
  transition:border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.proj-card:hover, .proj-card:focus-within{ border-color:var(--border-strong); box-shadow:0 22px 44px -28px rgba(0,0,0,.8); }
/* Native 3:2 ratio so object-fit does NOT crop the image — the MLS watermark
   (bottom-left, when present) stays fully visible at rest. */
.proj-media{ overflow:hidden; aspect-ratio:3 / 2; }
.proj-media img{
  width:100%; height:100%; object-fit:cover;
  transform-origin:bottom left;               /* hover zoom never clips the bottom-left watermark */
  transition:transform .5s var(--ease-out);
}
@media (hover:hover){
  .proj-card:hover .proj-media img{ transform:scale(1.03); }
}
.proj-card:focus-within .proj-media img{ transform:scale(1.03); }
.proj-body{ padding:1.4rem 1.5rem 1.6rem; }
.proj-tag{ display:inline-block; font-size:.66rem; text-transform:uppercase; letter-spacing:.16em; color:var(--gold); margin-bottom:.6rem; }
.proj-card h3{ font-family:var(--serif); font-weight:500; font-size:1.2rem; color:var(--cream); margin:0 0 .25rem; }
.proj-loc{ color:var(--text-tertiary); font-size:.8rem; margin:0 0 .8rem; }
.proj-desc{ color:var(--text-secondary); font-size:.9rem; line-height:1.6; margin:0; }
.projects-cta{ margin-top:2.4rem; text-align:center; }

/* ══ H. HOW MAVEN WORKS ══════════════════════════════════════════════════ */
.how-steps{ list-style:none; margin:2.6rem 0 0; padding:0; display:grid; grid-template-columns:repeat(6,1fr); gap:1rem; counter-reset:none; }
.how-step{
  position:relative; padding:1.4rem 1rem; border:1px solid var(--border); border-radius:10px;
  background:var(--charcoal); text-align:center;
}
.how-num{ display:block; font-family:var(--serif); font-size:1.4rem; color:var(--gold); margin-bottom:.5rem; }
.how-name{ display:block; font-size:.82rem; color:var(--text-primary); letter-spacing:.02em; }
.how-cta{ margin-top:2.2rem; }

/* ══ I. ABOUT / FOUNDER ══════════════════════════════════════════════════ */
.about-layout{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:2.8rem; align-items:center; }
.about-visual{ position:relative; display:flex; flex-direction:column; align-items:center; gap:1.2rem; }
.headshot-oval{
  width:min(70%,260px); aspect-ratio:4 / 5; border-radius:50% / 50%;
  background:#050505; border:1px solid var(--border-strong);
  display:flex; align-items:center; justify-content:center; text-align:center;
  box-shadow:inset 0 0 40px rgba(0,0,0,.7); overflow:hidden;
}
.headshot-oval img{
  width:100%; height:100%; object-fit:cover; object-position:center 20%;
  display:block;
}
.about-license{ display:flex; flex-direction:column; align-items:center; gap:.2rem; }
.about-license + .about-license{ margin-top:1rem; }
.about-license-label{ font-size:.62rem; text-transform:uppercase; letter-spacing:.22em; color:var(--text-tertiary); }
.about-license-value{ font-family:var(--serif); color:var(--gold); font-size:1.05rem; }
.about-body h2{ margin-top:.3rem; }
.about-body p{ color:var(--text-secondary); max-width:640px; }
.about-body p strong{ color:var(--cream); font-weight:500; }
.about-note{ font-size:.86rem; color:var(--text-tertiary); border-left:2px solid var(--border-strong); padding-left:1rem; }
.about-cta{ margin-top:1.4rem; }

/* ══ J. TESTIMONIALS / TRUST ═════════════════════════════════════════════ */
/* ══ TESTIMONIAL SLIDESHOW (manual; no autoplay; stacked fallback without JS) ═ */
.tsm-slideshow{ max-width:820px; margin:2.4rem auto 0; }
.tsm-track{ list-style:none; margin:0; padding:0; display:grid; gap:1.4rem; }
.tsm-slide{ margin:0; }
.tsm-slide .tsm-card{ padding:2.2rem 2.4rem; }
.tsm-slide blockquote{ font-size:1.08rem; line-height:1.75; }
.tsm-controls{ display:none; }
/* Adaptive panel height (V2-R2): only the active slide stays in flow, so the track takes that
   panel's natural height; inactive slides are stacked absolutely for the cross-fade. The height
   change itself is tweened by home.js (skipped under reduced motion) with a transient clip. */
html.js-tsm .tsm-track{ gap:0; position:relative; }
html.js-tsm .tsm-track.is-resizing{ overflow:hidden; }
html.js-tsm .tsm-slide{ position:absolute; top:0; left:0; right:0; visibility:hidden; opacity:0; transition:opacity .35s var(--ease-out); }
html.js-tsm .tsm-slide.is-active{ position:relative; visibility:visible; opacity:1; }
.tsm-toggle .tsm-ico-play{ display:none; }
.tsm-toggle.is-paused .tsm-ico-play{ display:block; }
.tsm-toggle.is-paused .tsm-ico-pause{ display:none; }
.tsm-no-auto .tsm-toggle{ display:none; }
html.js-tsm .tsm-slideshow{ display:flex; flex-direction:column; }
html.js-tsm .tsm-controls{ display:flex; align-items:center; justify-content:center; gap:1.2rem; margin-top:1.4rem; }
.tsm-btn{ min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; background:transparent; border:1px solid var(--border-strong); color:var(--gold); border-radius:999px; cursor:pointer; font:inherit; padding:0; }
.tsm-btn:hover, .tsm-btn:focus-visible{ border-color:var(--gold); background:rgba(200,169,81,0.08); }
.tsm-btn svg{ width:20px; height:20px; }
.tsm-counter{ margin:0; font-family:var(--serif); color:var(--cream); font-size:.95rem; letter-spacing:.06em; min-width:5.5ch; text-align:center; }
.tsm-card{
  margin:0; background:var(--charcoal); border:1px solid var(--border); border-radius:12px; padding:1.6rem 1.5rem;
  display:flex; flex-direction:column;
}
.tsm-stars{ color:var(--gold); font-size:.9rem; letter-spacing:.15em; margin-bottom:.9rem; }
.tsm-card blockquote{ margin:0 0 1.2rem; color:var(--text-primary); font-family:var(--editorial); font-size:1.02rem; line-height:1.65; }
.tsm-card figcaption{ margin-top:auto; }
.tsm-name{ display:block; font-family:var(--serif); color:var(--cream); font-size:.98rem; }
.tsm-detail{ display:block; color:var(--text-tertiary); font-size:.78rem; margin-top:.2rem; }
.trust-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.6rem 2rem; margin-top:1.4rem; padding-top:2rem; border-top:1px solid var(--border); }
.trust-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:.3rem; padding:1.2rem .8rem; border:1px solid var(--border); border-radius:12px; background:rgba(255,255,255,0.015); }
.trust-heading{ margin:3rem 0 0; text-align:center; font-family:var(--serif); font-weight:500; font-size:1.05rem; color:var(--cream); letter-spacing:.02em; }
.trust-icon{ display:inline-flex; width:40px; height:40px; color:var(--gold); margin-bottom:.35rem; }
.trust-icon svg{ width:40px; height:40px; }
.trust-t{ font-family:var(--serif); color:var(--cream); font-size:.96rem; }
.trust-d{ color:var(--text-tertiary); font-size:.76rem; letter-spacing:.04em; }
.reviews-cta{ text-align:center; margin-top:1.8rem; }
.reviews-link{ color:var(--gold); font-size:.84rem; letter-spacing:.04em; border-bottom:1px solid transparent; }
.reviews-link:hover, .reviews-link:focus-visible{ border-color:var(--gold); }

/* ══ K. CONSULTATION / CONTACT ═══════════════════════════════════════════ */
.consult-layout{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:2.6rem; align-items:start; }
.consult-info h2{ margin-top:.3rem; }
.consult-block{ margin-top:1.3rem; }
.consult-label{ display:block; font-size:.66rem; text-transform:uppercase; letter-spacing:.2em; color:var(--gold); margin-bottom:.35rem; }
.consult-value{ display:block; color:var(--text-secondary); font-size:.92rem; line-height:1.6; }
.consult-value a:hover{ color:var(--gold); }
.consult-form-wrap{ background:var(--charcoal); border:1px solid var(--border); border-radius:14px; padding:1.8rem; }
.form-heading{ font-family:var(--serif); font-size:1.25rem; color:var(--cream); }
.form-subheading{ color:var(--text-tertiary); font-size:.8rem; margin:.3rem 0 1.4rem; letter-spacing:.03em; }
.form-trust{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; margin-top:1.1rem; color:var(--text-tertiary); font-size:.74rem; letter-spacing:.03em; }

/* ══ CURSOR GLOW (desktop pointer only) ══════════════════════════════════ */
.cursor-glow{
  position:fixed; top:0; left:0; z-index:5; width:420px; height:420px; margin:-210px 0 0 -210px;
  border-radius:50%; pointer-events:none; opacity:0;
  background:radial-gradient(circle, rgba(200,169,81,.10) 0%, rgba(200,169,81,.05) 32%, rgba(200,169,81,0) 62%);
  transition:opacity .4s var(--ease-out);
  will-change:transform;
}
body.cursor-glow-on .cursor-glow{ opacity:1; }

/* ══ REVEAL ANIMATIONS (JS adds .is-visible; safe without JS — see below) ═ */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible{ opacity:1; transform:none; }
/* No-JS / no-observer fallback: if JS never runs, content must still be visible.
   home-page.js sets html.js-reveal ONLY when it will drive reveals. */
html:not(.js-reveal) .reveal{ opacity:1; transform:none; }

/* ══ RESPONSIVE ══════════════════════════════════════════════════════════ */
@media (max-width:1024px){
  .svc-grid{ grid-template-columns:repeat(2,1fr); }
  .diff-grid{ grid-template-columns:repeat(2,1fr); }
  .how-steps{ grid-template-columns:repeat(3,1fr); }
}
@media (max-width:900px){
  .trust-row{ grid-template-columns:repeat(2,1fr); }
  .cx-layout{ grid-template-columns:1fr; gap:2rem; }
  .about-layout{ grid-template-columns:1fr; gap:2rem; }
  .about-visual{ order:-1; }
  .consult-layout{ grid-template-columns:1fr; gap:2rem; }
}
@media (max-width:640px){
  .svc-grid{ grid-template-columns:1fr; }
  .diff-grid{ grid-template-columns:1fr; }
  .proj-grid{ grid-template-columns:1fr; }
  .how-steps{ grid-template-columns:repeat(2,1fr); }
  .cx-media{ grid-template-columns:1fr; }
}
@media (max-width:400px){
  .how-steps{ grid-template-columns:1fr; }
}

/* ══ REDUCED MOTION (in addition to the shell's global rule) ══════════════ */
@media (prefers-reduced-motion:reduce){
  html.js-tsm .tsm-slide{ transition:none !important; }
  .tsm-toggle{ display:none; }
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  .scroll-cue-dot{ animation:none !important; }
  .home-hero-bg{ transform:none !important; }
  .proj-media img{ transition:none !important; }
  .cursor-glow{ display:none !important; }
}

/* ══ H1 ADDITIONS (Release A: no form, no media placeholders) ═══════════════ */
.cx-benefits{ columns:2; column-gap:2.4rem; }
.cx-benefits li{ break-inside:avoid; }
.home-hero h1 .h1-line{ display:block; }
.tsm-card blockquote p{ margin:0; }
.consult-cta-text{ color:var(--text-secondary); font-size:.95rem; line-height:1.65; margin:0 0 1.2rem; }
.consult-actions{ display:flex; flex-wrap:wrap; gap:.8rem; }
.consult-actions .btn-gold{ border:none; cursor:pointer; font:inherit; }
.consult-actions a, .consult-actions button{ position:relative; z-index:1; pointer-events:auto; }
@media (max-width:640px){ .cx-benefits{ columns:1; } .tsm-slide .tsm-card{ padding:1.6rem 1.3rem; } .tsm-slide blockquote{ font-size:1rem; } html.js-tsm .tsm-controls{ order:-1; margin:0 0 1.1rem; } .trust-row{ grid-template-columns:1fr; } .consult-actions{ flex-direction:column; } .consult-actions a, .consult-actions button{ text-align:center; } }
