/* Main-page-only treatment. The shared header and footer are intentionally untouched. */
#main > .home-hero.home-hero--reference {
  --reference-paper:#cececc; --reference-accent:#852e3e;
  position:relative; isolation:isolate; display:block; overflow:hidden; padding:0;
  min-height:clamp(720px,64.7vw,1060px); background:var(--reference-paper);
}
.home-reference-art { position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.home-reference-portrait {
  position:absolute; display:block; left:0; bottom:0; width:min(48vw,740px); max-width:none; height:auto;
  mask-image:linear-gradient(to right,#000 0 58%,transparent 83%),linear-gradient(to bottom,transparent,#000 6%);
  mask-composite:intersect;
}
.home-reference-plane {
  position:absolute; left:45.8%; bottom:2.2%; width:39.5%; aspect-ratio:970 / 360; overflow:hidden;
  mask-image:linear-gradient(to right,transparent,#000 4% 96%,transparent),linear-gradient(to bottom,transparent,#000 8% 87%,transparent);
  mask-composite:intersect;
}
.home-reference-plane img { position:absolute; display:block; max-width:none; width:131.96%; height:auto; left:-29.9%; top:-67.8%; }
#main .home-hero--reference .home-copy {
  position:relative; display:block; box-sizing:border-box; width:auto; max-width:1100px;
  margin:0 7.6% 0 40.75%; padding:clamp(54px,5.7vw,91px) 0 clamp(155px,16vw,245px);
}
#main .home-hero--reference .home-stage {
  display:block; min-height:0; padding:0; margin:0; background:none;
}
#main .home-hero--reference .home-stage::before,
#main .home-hero--reference .home-stage::after { content:none; }
#main .home-hero--reference .home-stage > .home-kicker {
  margin:0 0 8px; font-size:clamp(10px,.84vw,13px); line-height:1.55; letter-spacing:.14em;
  text-transform:uppercase; color:#51514e;
}
#main .home-hero--reference .home-stage > .home-title {
  margin:0; padding:0; max-width:none; color:var(--reference-accent);
  font:700 clamp(38px,5.9vw,96px)/.98 Georgia,serif; letter-spacing:-.018em;
}
#main .home-hero--reference .home-title span { display:inline; color:inherit; }
#main .home-hero--reference .home-stage > .home-description {
  min-height:2.9em; margin:clamp(12px,1vw,17px) 0 clamp(16px,1.67vw,26px); max-width:46rem;
  font:400 clamp(15px,1.29vw,20px)/1.52 Arial,sans-serif; color:#262626;
}
#main .home-hero--reference .home-stage > .home-actions {
  display:flex; flex-wrap:wrap; gap:clamp(10px,1.1vw,17px); margin:0; padding:0;
}
#main .home-hero--reference .home-stage .home-cta {
  display:inline-flex; box-sizing:border-box; align-items:center; justify-content:space-between;
  width:auto; min-width:clamp(154px,16.3vw,250px); min-height:clamp(46px,4vw,61px);
  margin:0; padding:10px clamp(13px,1.5vw,24px); gap:clamp(12px,2.1vw,30px);
  border:1px solid var(--reference-accent); border-radius:11px; background:var(--reference-accent); color:#fff;
  font:500 clamp(13px,1.18vw,18px)/1.3 Arial,sans-serif; text-decoration:none; white-space:normal;
}
#main .home-hero--reference .home-stage .home-cta + .home-cta {
  min-width:clamp(174px,18.9vw,290px); background:#e9e7e2; color:var(--reference-accent);
}
#main .home-hero--reference .home-stage .home-cta:hover { filter:brightness(.93); }
#main .home-hero--reference .home-stage .home-cta svg { position:static; flex:none; width:17px; height:17px; transform:none; }
#main .home-hero--reference .home-cards {
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(15px,2vw,32px);
  width:auto; max-width:none; padding:0; margin:clamp(23px,1.9vw,30px) 0 0;
}
#main .home-hero--reference .home-card {
  box-sizing:border-box; display:block; width:auto; min-width:0; min-height:clamp(232px,20.2vw,311px);
  margin:0; padding:clamp(16px,1.65vw,26px); color:#181816;
  border:1px solid #c1c0b9; border-bottom:8px solid #dfded7; border-radius:24px 8px 24px 8px;
  background:linear-gradient(112deg,#f3f2ed,#edebe5); box-shadow:0 12px 22px rgba(30,27,22,.12); text-decoration:none;
}
#main .home-hero--reference .home-card:hover { box-shadow:0 14px 26px rgba(30,27,22,.18); }
#main .home-hero--reference .home-card .home-kicker { padding-right:34px; margin:0 0 8px; font-size:clamp(9px,.74vw,12px); letter-spacing:.14em; }
#main .home-hero--reference .home-card h2 { margin:0 0 8px; font:400 clamp(22px,1.98vw,31px)/1.14 Georgia,serif; }
#main .home-hero--reference .home-card-text { font:400 clamp(14px,1.11vw,17px)/1.62 Arial,sans-serif; margin:0; }
#main .home-hero--reference .home-review-meta { margin:0 0 8px; }
#main .home-hero--reference .home-review-name { font:400 clamp(17px,1.42vw,22px)/1.22 Georgia,serif; }
#main .home-hero--reference .home-card-mark { right:11px; top:11px; width:clamp(29px,2.4vw,37px); height:clamp(29px,2.4vw,37px); }
#main .home-hero--reference a:focus-visible { outline:2px solid var(--reference-accent); outline-offset:3px; }
@media (max-width:900px) {
  #main > .home-hero.home-hero--reference { --photo-band:min(67vw,390px); min-height:0; }
  .home-reference-portrait {
    top:0; bottom:auto; width:min(69vw,452px); height:var(--photo-band); object-fit:cover; object-position:left top;
    mask-image:linear-gradient(to right,#000 0 59%,transparent 90%),linear-gradient(to bottom,transparent 0,#000 7% 75%,transparent 100%);
  }
  .home-reference-plane { bottom:16px; left:30%; width:66%; }
  #main .home-hero--reference .home-copy { margin:0 6.15%; padding:calc(var(--photo-band) + 10px) 0 clamp(120px,28vw,215px); }
  #main .home-hero--reference .home-stage > .home-title { font-size:clamp(31px,9.3vw,65px); }
  #main .home-hero--reference .home-stage > .home-description { min-height:0; max-width:34rem; margin:12px 0 19px; }
  #main .home-hero--reference .home-cards { margin-top:23px; }
  #main .home-hero--reference .home-card { min-height:0; padding:20px; }
}
@media (max-width:560px) {
  #main .home-hero--reference .home-cards { grid-template-columns:minmax(0,1fr); }
  #main .home-hero--reference .home-stage > .home-actions { display:grid; grid-template-columns:minmax(0,1fr); }
  #main .home-hero--reference .home-stage .home-cta,
  #main .home-hero--reference .home-stage .home-cta + .home-cta { min-width:0; width:100%; font-size:15px; padding-inline:16px; }
}
@media (forced-colors:active) { .home-reference-art { display:none; } }

/* Keep the existing phone artwork out of the desktop redesign. */
#main .home-hero--reference .home-art { display:none; }
#main .home-hero--reference .home-reference-art { display:block !important; }

/* Desktop illustration: clean portrait edge and clear space below both cards. */
@media (min-width:901px) {
  .home-reference-portrait {
    mask-image:url("home-portrait-edge-20261203.svg?v=4"),linear-gradient(to bottom,transparent,#000 6%),linear-gradient(to right,#000 78%,transparent 92%);
    mask-size:100% 100%;
    mask-repeat:no-repeat;
  }
  .home-reference-plane { left:47.8%; width:min(35.5%,550px); bottom:clamp(16px,1.42vw,24px); }
  #main .home-hero--reference .home-copy { padding-bottom:clamp(185px,17vw,265px); }
}
