/* ─────────────────────────────────────────────────────────────
   Larco Capital — sell page
   Laid out after the Compass sell page: a dark hero with a floating
   listing card, an early lead form, three phase cards, alternating
   benefit rows, a dark results band, the portal warnings, and the
   two "on your terms" panels.

   Mobile first. Every rule below is the phone layout; the wider
   arrangements are added at min-width breakpoints at the bottom.
   ───────────────────────────────────────────────────────────── */

/* the flat section scale the rest of the site uses since v2 */
.section .h2{ font-size:32px; }
.section{ padding-block:clamp(44px,5vw,76px); }

/* This page runs narrower than the 1440px the rest of the site uses —
   its rows are text and paired images rather than wide listing grids,
   and they hold together better on a shorter measure. Scoped to the
   sections so the top bar and the footer stay aligned with every other
   page. */
section .wrap{ max-width:1240px; }

.sellhead{ margin-bottom:clamp(26px,3.4vw,44px); }
.sellhead-note{
  margin:12px 0 0; font-size:16px;
  color:color-mix(in srgb,var(--ink) 66%,transparent);
  max-width:62ch;
}
.dark .sellhead-note{ color:#b9bfba; }
.sellhead-kicker{
  margin:12px 0 0;
  font-family:var(--label); font-size:12.5px; font-weight:500;
  letter-spacing:.14em; text-transform:uppercase;
  color:color-mix(in srgb,var(--ink) 82%,transparent);
}
.sellhead-center{ text-align:left; }

/* ── Hero ─────────────────────────────────────────────────────── */
.sellhero{
  position:relative; overflow:hidden;
  padding-block:clamp(48px,12vw,72px) clamp(56px,14vw,84px);
  border-bottom:var(--rule);
}
.sellhero-img{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%; object-fit:cover; object-position:50% 62%;
}
/* a lighter wash than a full scrim: the house should stay readable.
   On the phone the copy sits over the middle of the frame, so the
   darkening runs top to bottom; once the copy moves to the left of the
   card it runs left to right instead. */
.sellhero::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg,rgba(18,21,26,.62) 0%,rgba(18,21,26,.44) 50%,rgba(18,21,26,.66) 100%);
}
@media (min-width:900px){
  .sellhero::after{
    background:linear-gradient(90deg,rgba(18,21,26,.74) 0%,rgba(18,21,26,.46) 46%,rgba(18,21,26,.24) 100%);
  }
}
.sellhero-in{ color:#fff; display:grid; gap:clamp(28px,5vw,52px); }
.sellhero h1{
  font-family:var(--brand-serif);
  font-weight:400;
  font-size:clamp(30px,8.4vw,60px);
  line-height:1.14;
  letter-spacing:.03em;
  text-transform:uppercase;
  margin:0;
  text-shadow:0 2px 30px rgba(12,16,22,.4);
}
.sellhero-sub{
  margin:18px 0 26px;
  max-width:44ch;
  font-size:clamp(15px,1.1vw,18px);
  color:rgba(255,255,255,.86);
}

/* white pill, the way the reference sets its call to action */
.sellhero .btn{
  border-radius:999px; padding-inline:34px;
  --bg:#fff; --fg:var(--ink); --bd:#fff;
}
.sellhero .btn:hover{ --bg:transparent; --fg:#fff; --bd:#fff; }

/* A frame rather than a card: a hairline box holding a label bar and a
   photograph, with the figures set over the picture itself. */
.sellcard{
  border:1px solid rgba(255,255,255,.9);
  max-width:440px;
  backdrop-filter:blur(2px);
}
.sellcard-label{
  margin:0;
  background:#fff; color:var(--ink);
  padding:11px 14px; text-align:center;
  font-family:var(--label); font-size:clamp(10px,1vw,12.5px); font-weight:500;
  letter-spacing:.16em; text-transform:uppercase;
}
.sellcard-media{ position:relative; }
.sellcard-media img{
  display:block; width:100%;
  aspect-ratio:16/11; object-fit:cover;
}
.sellcard-over{
  position:absolute; inset:auto 0 0 0;
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:16px; padding:16px 18px;
  color:#fff;
  background:linear-gradient(180deg,rgba(18,21,26,0) 0%,rgba(18,21,26,.5) 100%);
}
.sellcard-price{
  margin:0;
  font-size:clamp(22px,2.4vw,34px); line-height:1;
  font-variant-numeric:tabular-nums; letter-spacing:-.015em;
  text-shadow:0 1px 14px rgba(12,16,22,.5);
}
.sellcard-specs{
  list-style:none; display:flex; gap:16px;
  margin:0; padding:0; text-align:center;
}
.sellcard-specs li{ display:flex; flex-direction:column; line-height:1.1; }
.sellcard-specs b{
  font-weight:400; font-size:clamp(17px,1.7vw,24px);
  font-variant-numeric:tabular-nums;
}
.sellcard-specs span{
  font-family:var(--label); font-size:11px; color:rgba(255,255,255,.82);
}

/* ── Lead form ────────────────────────────────────────────────────
   A white card with softly rounded corners floating on the paper, the
   copy on one side and underline-only fields on the other. */
.sellform-sec{ background:var(--paper); }
.sellform-card{
  background:#fff;
  border-radius:clamp(14px,1.6vw,22px);
  padding:clamp(26px,4.4vw,64px);
  display:grid; gap:clamp(28px,4vw,64px);
  box-shadow:0 2px 40px rgba(12,16,22,.05);
}
.sellform-copy h2{
  margin:0;
  font-family:var(--brand-serif);
  font-weight:400; font-size:clamp(28px,4.4vw,44px);
  line-height:1.12; letter-spacing:.02em; text-transform:uppercase;
}
.sellform-copy p{
  margin:20px 0 0;
  font-size:clamp(17px,1.5vw,21px); line-height:1.5;
  color:color-mix(in srgb,var(--ink) 88%,transparent);
  max-width:30ch;
}

/* floating label: it rests on the line, then rises when the field fills */
.sellfield{ position:relative; margin-bottom:30px; }
.sellfield input{
  width:100%; padding:22px 0 10px;
  background:transparent; border:0; border-bottom:1px solid color-mix(in srgb,var(--ink) 30%,transparent);
  font-size:17px; border-radius:0;
}
.sellfield input:focus{ outline:none; border-bottom-color:var(--ink); }
.sellfield label{
  position:absolute; left:0; top:22px;
  font-size:17px; color:var(--fog);
  pointer-events:none;
  transition:transform .2s var(--ease), font-size .2s var(--ease), color .2s var(--ease);
  transform-origin:0 0;
}
.sellfield input:focus + label,
.sellfield input:not(:placeholder-shown) + label{
  transform:translateY(-20px); font-size:12.5px; color:var(--fog);
  letter-spacing:.04em;
}

.sellsubmit{
  width:100%; margin-top:6px;
  padding:18px 26px; border:0; border-radius:999px; cursor:pointer;
  background:var(--ink); color:#fff;
  font-family:var(--label); font-size:15px; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase;
  transition:background .3s var(--ease);
}
.sellsubmit:hover{ background:var(--blue); }
.sellform-fine{
  margin:20px 0 0; font-size:12.5px; line-height:1.55; color:var(--fog);
}
.sellform .form-note{ margin:12px 0 0; }

/* ── Advantage rail ───────────────────────────────────────────── */
.selladv-sec{ background:var(--ground); border-bottom:var(--rule); }
.selladv{
  display:grid; grid-auto-flow:column;
  grid-auto-columns:minmax(248px,84%);
  gap:16px;
  overflow-x:auto; scroll-snap-type:x mandatory;
  scrollbar-width:none;
  margin-inline:calc(var(--gut) * -1); padding-inline:var(--gut);
}
.selladv::-webkit-scrollbar{ display:none; }
.selladv-card{ scroll-snap-align:start; background:var(--paper); }
.selladv-card img{ width:100%; aspect-ratio:4/3; object-fit:cover; }
.selladv-body{ padding:20px; }
.selladv-body h3{
  margin:0; font-family:var(--display); font-weight:500;
  font-size:19px; letter-spacing:-.008em;
}
.selladv-body p{
  margin:10px 0 0; font-size:15px;
  color:color-mix(in srgb,var(--ink) 70%,transparent);
}

/* ── Phases ───────────────────────────────────────────────────────
   Centred head, a connector rail, then three rounded white cards. The
   photograph runs edge to edge inside the card with the figures set
   over it, which is what the reference does. */
.sellphase-sec{ background:var(--paper); }
.sellphase-sec .sellhead-note{
  font-size:clamp(16px,1.4vw,19px); line-height:1.55;
  color:color-mix(in srgb,var(--ink) 78%,transparent);
  max-width:56ch;
}

/* the rail only reads as a progression once the cards sit side by side */
.sellrail{ display:none; }

.sellphases{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(20px,2.6vw,26px);
}
.sellphase{
  background:#fff;
  border-radius:clamp(12px,1.2vw,18px);
  overflow:hidden;
  box-shadow:0 2px 30px rgba(12,16,22,.06);
  display:flex; flex-direction:column;
  text-align:center;
}
.sellphase-head{ padding:24px 20px 18px; }
.sellphase-no{
  margin:0; font-family:var(--label); font-size:12px;
  letter-spacing:.16em; text-transform:uppercase;
  color:color-mix(in srgb,var(--ink) 70%,transparent);
}
.sellphase-head h3{
  margin:10px 0 0;
  font-family:var(--sans); font-weight:500; font-size:17px;
  letter-spacing:-.004em;
}

.sellphase-media{ position:relative; }
.sellphase-media img{
  display:block; width:100%;
  aspect-ratio:16/11; object-fit:cover;
}
.sellphase-over{
  position:absolute; inset:auto 0 0 0;
  display:flex; align-items:baseline; justify-content:space-between;
  gap:12px; padding:12px 14px;
  color:#fff; text-align:left;
  background:linear-gradient(180deg,rgba(18,21,26,0) 0%,rgba(18,21,26,.55) 100%);
}
.sellphase-price{
  font-size:15.5px; font-weight:500;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 10px rgba(12,16,22,.5);
}
.sellphase-specs{
  font-size:13px; color:rgba(255,255,255,.9);
  text-shadow:0 1px 10px rgba(12,16,22,.5);
}

.sellphase-body{ padding:26px 22px 30px; flex:1; }
.sellphase-body h4{
  margin:0;
  font-family:var(--brand-serif); font-weight:400;
  font-size:clamp(24px,2.4vw,30px); line-height:1.14;
  letter-spacing:.015em; text-transform:uppercase;
}
.sellphase-body p{
  margin:16px 0 0; font-size:15px; line-height:1.6;
  color:color-mix(in srgb,var(--ink) 70%,transparent);
}

/* ── You decide ───────────────────────────────────────────────────
   A photograph carries this one rather than flat ink: centred serif
   heading, the reasoning, a hairline, then the link out to the terms. */
.selldecide{
  position:relative; overflow:hidden;
  padding-block:clamp(56px,11vw,110px);
  color:#fff;
}
.selldecide-img{
  position:absolute; inset:0; z-index:-2;
  width:100%; height:100%; object-fit:cover;
}
.selldecide::after{
  content:""; position:absolute; inset:0; z-index:-1;
  background:rgba(18,21,26,.66);
}
.selldecide-in{ text-align:center; max-width:900px; }
.selldecide h2{
  margin:0;
  font-family:var(--brand-serif); font-weight:400;
  font-size:clamp(26px,4.2vw,44px); line-height:1.16;
  letter-spacing:.02em; text-transform:uppercase;
  text-shadow:0 2px 24px rgba(12,16,22,.4);
}
.selldecide-lede{
  margin:22px auto 0; max-width:56ch;
  font-size:clamp(16px,1.5vw,20px); line-height:1.55;
  color:rgba(255,255,255,.92);
}
.selldecide-rule{
  width:min(560px,80%); height:0;
  margin:clamp(28px,4vw,44px) auto;
  border:0; border-top:1px solid rgba(255,255,255,.45);
}
.selldecide-note{
  margin:0 auto; max-width:46ch;
  font-size:clamp(15px,1.3vw,18px); line-height:1.55; font-weight:500;
  color:#fff;
}
.selldecide-link{
  display:inline-flex; align-items:center; gap:12px;
  margin-top:clamp(18px,2.6vw,28px); padding-top:12px; padding-bottom:10px;
  border-bottom:1px solid rgba(255,255,255,.8);
  font-family:var(--label); font-size:clamp(14px,1.3vw,17px); font-weight:500;
  letter-spacing:.02em; text-decoration:none; color:#fff;
  transition:border-color .3s var(--ease), gap .3s var(--ease);
}
.selldecide-link svg{ width:20px; height:20px; flex:none; }
.selldecide-link:hover{ gap:18px; border-bottom-color:#fff; }

/* ── Benefits ─────────────────────────────────────────────────────
   Copy on the left, the photograph on the right inside a white card
   floating on a tinted panel. Every row runs the same way round. */
.sellben{ display:grid; gap:clamp(40px,6vw,90px); }
.sellben-row{ display:grid; gap:26px; }
.sellben-copy h3{
  margin:0;
  font-family:var(--brand-serif); font-weight:400;
  font-size:clamp(26px,3vw,38px); line-height:1.14;
  letter-spacing:.015em; text-transform:uppercase;
}
.sellben-kicker{
  margin:16px 0 0;
  font-family:var(--label); font-size:13px; font-weight:500;
  letter-spacing:.13em; text-transform:uppercase;
  color:var(--ink);
}
.sellben-copy p:not(.sellben-kicker){
  margin:18px 0 0; font-size:16.5px; line-height:1.62;
  color:color-mix(in srgb,var(--ink) 76%,transparent);
  max-width:50ch;
}
.sellben-link{
  display:inline-flex; align-items:center; gap:12px;
  margin-top:16px; padding-top:12px; padding-bottom:10px;
  border-bottom:1px solid var(--ink);
  font-family:var(--label); font-size:13.5px; font-weight:500;
  letter-spacing:.11em; text-transform:uppercase;
  text-decoration:none;
  transition:gap .3s var(--ease), color .3s var(--ease);
}
.sellben-link svg{ width:20px; height:20px; flex:none; }
.sellben-link:hover{ gap:18px; }

/* the tinted panel and the white card inside it */
.sellben-figure{
  margin:0;
  background:color-mix(in srgb,var(--ink) 7%, var(--paper));
  border-radius:clamp(14px,1.6vw,22px);
  padding:clamp(16px,2.4vw,38px);
}
.sellben-frame{
  border-radius:clamp(8px,1vw,12px);
  overflow:hidden; background:#fff;
  box-shadow:0 8px 30px rgba(12,16,22,.10);
}
.sellben-frame img{ display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }

/* ── Portals ──────────────────────────────────────────────────── */
.sellportals{ background:var(--paper); }
.sellportals-list{
  list-style:none; margin:0; padding:0;
  display:grid; gap:clamp(24px,3vw,38px);
  counter-reset:none;
}
.sellportals-list li{ border-top:var(--rule); padding-top:18px; }
.sellportals-no{
  display:block;
  font-family:var(--label); font-size:12px; letter-spacing:.14em;
  color:var(--blue);
}
.sellportals-list h3{
  margin:10px 0 0; font-family:var(--display); font-weight:500;
  font-size:19px; letter-spacing:-.008em;
}
.sellportals-list p{
  margin:9px 0 0; font-size:15.5px;
  color:color-mix(in srgb,var(--ink) 70%,transparent);
  max-width:56ch;
}

/* ── On your terms ────────────────────────────────────────────── */
.sellterms{ display:grid; gap:clamp(28px,4vw,44px); }
.sellterm figure{ margin:0; }
.sellterm figure img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
.sellterm-body{ padding-top:20px; }
.sellterm-body h3{
  margin:0; font-family:var(--display); font-weight:400;
  font-size:25px; line-height:1.18; letter-spacing:-.014em;
}
.sellterm-body p{
  margin:12px 0 0; font-size:15.5px;
  color:color-mix(in srgb,var(--ink) 72%,transparent);
}
.sellterm-label{
  font-family:var(--label); font-size:11px;
  letter-spacing:.15em; text-transform:uppercase;
  color:var(--blue) !important;
  margin-top:20px !important;
}

/* ── Wider ────────────────────────────────────────────────────── */
@media (min-width:640px){
  .selladv{ grid-auto-columns:minmax(280px,46%); }
  .sellterm{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:28px; align-items:center; }
  .sellterm-body{ padding-top:0; }
}

@media (min-width:900px){
  .sellhead-center{ text-align:center; }
  /* the connector: a hairline with a node above each card */
  .sellrail{
    display:flex; align-items:center; justify-content:space-between;
    max-width:78%; margin:0 auto clamp(26px,3vw,40px);
    position:relative;
  }
  .sellrail::before{
    content:""; position:absolute; left:0; right:0; top:50%;
    height:1px; background:color-mix(in srgb,var(--ink) 18%,transparent);
  }
  .sellrail span{
    position:relative; width:16px; height:16px; border-radius:50%;
    background:var(--paper);
    box-shadow:0 0 0 5px var(--paper), inset 0 0 0 2px color-mix(in srgb,var(--ink) 22%,transparent);
  }
  .sellhead-center .sellhead-note,
  .sellhead-center .sellhead-kicker{ margin-inline:auto; }
  .sellhero-in{ grid-template-columns:minmax(0,1fr) auto; align-items:center; }
  .sellhero{ padding-block:clamp(72px,9vw,120px); }
  .sellform-card{ grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
  .sellphases{ grid-template-columns:repeat(3,minmax(0,1fr)); }
  .sellben-row{ grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(30px,5vw,80px); align-items:center; }
  .sellportals-list{ grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:clamp(30px,4vw,64px); }
  .sellterms{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .sellterm{ grid-template-columns:minmax(0,1fr); }
  .sellterm-body{ padding-top:20px; }
}

@media (min-width:1081px){
  .selladv{
    grid-auto-flow:row;
    grid-template-columns:repeat(3,minmax(0,1fr));
    overflow:visible; margin-inline:0; padding-inline:0;
    gap:clamp(18px,2vw,30px);
  }
  .sellportals-list{ grid-template-columns:repeat(4,minmax(0,1fr)); }
}

@media (prefers-reduced-motion:reduce){
  .selladv{ scroll-behavior:auto; }
}
