/*
 * Home page, jamiedelcore.com (index.php). Portrait-led opening, her steps,
 * a scannable list of her sales, her towns as wide bands.
 */
.jd-wrap { width: min(1180px, 100% - (var(--s-gutter) * 2)); margin-inline: auto; }
.jd-h2 {
  font: 300 var(--t-display-l)/1.15 var(--f-display);
  color: var(--c-ink);
  margin: 0 0 2rem;
}
.jd-link { font-weight: 600; color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.jd-link:hover { color: var(--c-ink); }

.jd-btn {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--c-ink);
  border-radius: var(--s-radius);
  color: var(--c-ink);
  font: 600 0.95rem/1.2 var(--f-body);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}
.jd-btn:hover { background: var(--c-paper-alt); }
.jd-btn--solid { background: var(--c-ink); color: var(--c-white); }
.jd-btn--solid:hover { background: var(--c-slate); color: var(--c-white); }
.jd-btn:focus-visible, .jd-link:focus-visible, .jd-sale__link:focus-visible, .jd-town:focus-visible {
  outline: 2px solid var(--c-accent); outline-offset: 3px;
}

/* --- Opening: her name beside her portrait ------------------------------ */
.jd-open {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: min(88vh, 860px);
  background: var(--c-paper-alt);
}
/* The text starts on the header's left edge: the header's column is 1320px
   wide, centred, with the gutter as its minimum margin. 100cqw is the hero's
   own width, which (unlike 100vw) leaves out the scrollbar, as the header's
   centring does. */
.jd-open { container-type: inline-size; }
.jd-open__text {
  align-self: center;
  justify-self: stretch;
  padding-block: clamp(3rem, 7vw, 6rem);
  padding-left: max(var(--s-gutter), calc((100cqw - 1320px) / 2));
  padding-right: clamp(1.5rem, 4vw, 4rem);
}
.jd-open__name { margin: 0 0 1.5rem; }
.jd-logo {
  --lockup-name: clamp(230px, 24vw, 360px);
  --lockup-delcore: clamp(130px, 13.5vw, 200px);
  --lockup-key: clamp(120px, 13vw, 200px);
  --lockup-key-h: clamp(140px, 15vw, 210px);
  --lockup-key-w: clamp(150px, 15vw, 225px);
  --lockup-gap: clamp(0.8rem, 1.6vw, 1.4rem);
  margin-left: -0.4rem;
}
.jd-logo--small { width: clamp(200px, 22vw, 300px); margin: 0 0 1.25rem -0.4rem; aspect-ratio: 1200 / 778; }
.jd-open__role { margin: 0; font-weight: 600; color: var(--c-ink); font-size: 0.98rem; }
.jd-open__line { margin: 1.25rem 0 2rem; max-width: 34rem; }
.jd-open__head {
  margin: 0 0 0.6rem;
  font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.2 var(--f-display);
  color: var(--c-ink);
}
.jd-open__head span { white-space: nowrap; }
.jd-open__sub {
  margin: 0;
  font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 34ch;
}
.jd-search {
  display: flex; align-items: center;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--s-radius);
  padding: 0.3rem 0.3rem 0.3rem 1rem;
  max-width: 520px;
}
.jd-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 500 1rem var(--f-body); color: var(--c-ink); padding: 0.75rem 0;
}
.jd-search input::placeholder { color: var(--c-muted); font-weight: 400; }
.jd-search input::-webkit-search-decoration,
.jd-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.jd-search button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: var(--s-radius); background: var(--c-ink); color: var(--c-white); cursor: pointer;
}
.jd-search:focus-within { border-color: var(--c-ink); }
/* The opening animation gives the search box and the buttons under it their
   own stacking contexts, and the buttons come later, so they painted over the
   suggestion list. Lifting the box keeps its list on top. */
.jd-search { position: relative; z-index: 20; }
.jd-open__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.jd-open__fair { margin: 2.5rem 0 0; font-size: 0.82rem; color: var(--c-muted); }
.jd-open__fair a { color: inherit; }
.jd-open__photo { margin: 0; position: relative; overflow: hidden; }
.jd-open__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 18%;
}

/* --- Intro: her words beside three figures ----------------------------- */
.jd-intro { padding: var(--s-section) 0; }
.jd-intro__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.jd-intro__lead { font: 300 clamp(1.35rem, 2.3vw, 1.85rem)/1.45 var(--f-display); color: var(--c-ink); margin: 0 0 1.25rem; }
.jd-intro__note { font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.5rem; max-width: 60ch; }
.jd-intro__head { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.25 var(--f-display); color: var(--c-ink); margin: 0 0 1.5rem; max-width: 26ch; text-wrap: balance; }
.jd-intro__head ~ .jd-intro__note { font-size: 1.12rem; }
.jd-intro__know { font: 500 clamp(1.2rem, 1.7vw, 1.4rem)/1.3 var(--f-display); color: var(--c-ink); margin: 2rem 0 0.6rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); max-width: 60ch; }
.jd-figs { border-left: 1px solid var(--c-line); padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.jd-fig { margin: 0 0 1.75rem; }
.jd-fig__n {
  display: block; font: 300 clamp(3rem, 6vw, 4.6rem)/1 var(--f-display);
  color: var(--c-ink); font-variant-numeric: tabular-nums;
}
.jd-fig__l { display: block; margin-top: 0.35rem; color: var(--c-accent-deep); font-weight: 600; }
/* The MLS GRID source line keeps .source-note's size and ink (IDX Rules 16,
   22): never shrunk or greyed here. */
.jd-figs__src p { margin: 0; }

/* --- On the market now: her own active and pending listings -------------- */
.jd-now { padding: 0 0 var(--s-section); }
.jd-now__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
.jd-now__head .jd-h2 { margin: 0; }
.jd-now__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 2rem; }
.jd-home__link { display: block; color: inherit; text-decoration: none; }
.jd-home__photo { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-line); border-radius: var(--s-radius-lg); }
.jd-home__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.jd-home__status {
  position: absolute; left: 1rem; top: 1rem; padding: 0.35rem 0.75rem;
  background: var(--c-white); color: var(--c-ink); font-weight: 600; font-size: 0.85rem; border-radius: var(--s-radius);
}
.jd-home__body { display: block; padding-top: 1.1rem; }
.jd-home__price { display: block; font: 300 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--f-display); color: var(--c-ink); font-variant-numeric: tabular-nums; }
.jd-home__addr { display: block; margin-top: 0.5rem; font-weight: 600; font-size: 1.1rem; color: var(--c-ink); }
.jd-home__town, .jd-home__specs { display: block; color: var(--c-muted); }
.jd-home__line { display: block; margin-top: 0.75rem; line-height: 1.6; max-width: 52ch; }
.jd-home__cta { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--c-accent-deep); text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.jd-home__link:hover .jd-home__photo img { transform: scale(1.03); }
.jd-home__link:hover .jd-home__cta { color: var(--c-ink); }
.jd-home__link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 4px; }
.jd-home__attr { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--c-muted); }

/* One listing: photo and details side by side, as the feature it is. */
.jd-now--one .jd-now__grid { grid-template-columns: 1fr; }
.jd-now--one .jd-home__link { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.jd-now--one .jd-home__body { padding-top: 0; }
.jd-now--one .jd-home__attr { margin-left: 0; }

/* --- How she works: heading holds while the steps pass -------------------- */
.jd-how { padding: calc(var(--s-section) * 0.4) 0 var(--s-section); }
.jd-how__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); }
.jd-how__side { position: sticky; top: 130px; align-self: start; }
.jd-how__side .jd-h2 { margin-bottom: 1rem; }
.jd-how__sub { margin: 0; color: var(--c-muted); max-width: 32ch; }
.jd-how__item { position: relative; padding: 1.5rem 0 2.25rem; }
.jd-how__item::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: var(--c-accent); transform-origin: left center;
}
.jd-how__item h3 { margin: 0 0 0.6rem; font: 600 1.2rem/1.3 var(--f-display); color: var(--c-ink); }
.jd-how__item p { margin: 0; line-height: 1.75; max-width: 54ch; }

/* --- Her sales ----------------------------------------------------------- */
.jd-sales { padding: var(--s-section) 0; background: var(--c-paper-alt); }
.jd-sales__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.jd-sales__head .jd-h2 { margin: 0; }
.jd-sales__sum { margin: 0; color: var(--c-ink-soft); }
.jd-sales__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.jd-sale { border-bottom: 1px solid var(--c-line); padding: 1rem 0; }
.jd-sale__link {
  display: grid; grid-template-columns: 160px minmax(0, 1fr) auto auto;
  align-items: center; gap: 1.5rem; color: inherit; text-decoration: none;
}
.jd-sale__photo { display: block; aspect-ratio: 3 / 2; background: var(--c-line); overflow: hidden; border-radius: var(--s-radius); }
.jd-sale__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jd-sale__addr { display: block; font-weight: 600; color: var(--c-ink); font-size: 1.05rem; }
.jd-sale__town { display: block; color: var(--c-muted); }
.jd-sale__price { font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.jd-sale__when { color: var(--c-muted); white-space: nowrap; min-width: 9.5rem; text-align: right; }
.jd-sale__link:hover .jd-sale__addr { text-decoration: underline; text-underline-offset: 0.2em; }
.jd-sale__attr { display: block; margin: 0.4rem 0 0 calc(160px + 1.5rem); font-size: 0.78rem; color: var(--c-muted); }
.jd-sales__more { margin: 1.75rem 0 0; }

/* --- Towns --------------------------------------------------------------- */
.jd-towns { padding: var(--s-section) 0 0; }
.jd-town {
  position: relative; display: block; height: clamp(220px, 32vw, 380px);
  overflow: hidden; color: var(--c-white); text-decoration: none; background: var(--c-slate);
}
.jd-town + .jd-town { margin-top: 4px; }
.jd-town__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s ease; }
.jd-town::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 30, 38, 0.72), rgba(20, 30, 38, 0.1) 65%); }
.jd-town__body {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
  width: min(1180px, 100% - (var(--s-gutter) * 2)); margin: 0 auto; padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.jd-town__name { display: block; font: 300 clamp(2.2rem, 5vw, 3.8rem)/1 var(--f-display); }
.jd-town__note { display: block; margin-top: 0.6rem; font-weight: 500; }

/* Her base towns as bands, then every other town she has sold in. */
.jd-towns__head { margin-bottom: 2rem; }
.jd-towns__head .jd-h2 { margin-bottom: 0.5rem; }
.jd-towns__sub { margin: 0; color: var(--c-ink-soft); font-size: 1.05rem; }
.jd-towns__more {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem;
  padding: 2rem 0 0;
}
.jd-towns__label { margin: 0; font-weight: 600; color: var(--c-ink); }
.jd-towns__list { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.jd-towns__list a {
  display: inline-block; padding: 0.55rem 1rem; border: 1px solid var(--c-line); border-radius: 999px;
  color: var(--c-ink); text-decoration: none; font-weight: 500; background: var(--c-white);
  transition: border-color .2s ease, background-color .2s ease;
}
.jd-towns__list a:hover { border-color: var(--c-ink); background: var(--c-paper-alt); }
.jd-towns__list a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* --- Valuation ----------------------------------------------------------- */
.jd-value { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-top: var(--s-section); background: var(--c-ink); color: var(--c-white); }
.jd-value__photo { margin: 0; min-height: 360px; position: relative; }
.jd-value__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.jd-value__body { padding: clamp(2.5rem, 6vw, 5rem); align-self: center; max-width: 620px; }
.jd-value .jd-h2 { color: var(--c-white); margin-bottom: 1rem; }
.jd-value__body > p { line-height: 1.7; margin: 0 0 1.75rem; color: rgba(255, 255, 255, 0.86); }
.jd-value__form label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.jd-value__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.jd-value__row input {
  flex: 1 1 240px; min-width: 0; padding: 0.85rem 1rem; border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--s-radius); background: rgba(255, 255, 255, 0.06); color: var(--c-white); font: 500 1rem var(--f-body);
}
.jd-value__row input::placeholder { color: rgba(255, 255, 255, 0.6); }
/* White on the slate band: ink on camel was 3.5:1, under AA. */
.jd-value .jd-btn--solid { background: var(--c-white); border-color: var(--c-white); color: var(--c-ink); }
.jd-value .jd-btn--solid:hover { background: var(--c-accent-soft); border-color: var(--c-accent-soft); }

/* --- Contact ------------------------------------------------------------- */
.jd-contact { padding: var(--s-section) 0; }
.jd-contact__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.jd-contact__photo { width: clamp(140px, 16vw, 200px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.jd-contact__name { margin: 0; }
.jd-contact__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; max-width: 720px; }
.jd-contact__cols p { margin: 0; line-height: 1.8; }
.jd-contact__cta { margin: 1.75rem 0 0; }

/* --- Motion --------------------------------------------------------------
   The opening runs on load in CSS. Everything marked data-reveal waits for
   jd-motion.js, which adds .jd-motion to <html> only when the visitor has
   not asked for reduced motion; without it nothing here is hidden. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes jd-sign { from { clip-path: inset(-30% 100% -30% -20%); } to { clip-path: inset(-30% -10% -30% -20%); } }
  @keyframes jd-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes jd-settle { from { transform: scale(1.07); } to { transform: scale(1); } }

  .jd-open__role, .jd-open__line, .jd-search, .jd-open__actions, .jd-open__fair {
    animation: jd-rise .6s cubic-bezier(.2, .7, .2, 1) both;
  }
  .jd-open__role    { animation-delay: 1.9s; }
  .jd-open__line    { animation-delay: 2s; }
  .jd-search        { animation-delay: 2.1s; }
  .jd-open__actions { animation-delay: 2.2s; }
  .jd-open__fair    { animation-delay: 2.3s; }
  .jd-open__photo img { animation: jd-settle 1.8s cubic-bezier(.2, .7, .2, 1) both; }

  .jd-motion .jd-how__item::before { transform: scaleX(0); transition: transform 1s cubic-bezier(.6, 0, .2, 1) calc(var(--jd-delay, 0ms) + .15s); }
  .jd-motion .jd-how__item.is-in::before { transform: scaleX(1); }

  .jd-motion .jd-town[data-reveal] { opacity: 1; transform: none; }
  .jd-motion .jd-town .jd-town__img { transform: scale(1.1); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
  .jd-motion .jd-town.is-in .jd-town__img { transform: scale(1); }
  .jd-motion .jd-town.is-in:hover .jd-town__img { transform: scale(1.03); transition-duration: .6s; }
  .jd-motion .jd-town .jd-town__body { opacity: 0; transform: translateY(18px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
  .jd-motion .jd-town.is-in .jd-town__body { opacity: 1; transform: none; }

  .jd-sale__photo img { transition: transform .5s ease; }
  .jd-sale__link:hover .jd-sale__photo img { transform: scale(1.06); }
}

/* --- Small screens ------------------------------------------------------- */
@media (max-width: 900px) {
  .jd-open { grid-template-columns: 1fr; min-height: 0; }
  /* The name and the ask come first on a phone; the portrait follows (John, 12 October 2026). */
  .jd-open__photo { aspect-ratio: 4 / 5; max-height: 70vh; }
  .jd-open__text { padding-right: var(--s-gutter); }
  .jd-now--one .jd-home__link { grid-template-columns: 1fr; }
  .jd-now--one .jd-home__body { padding-top: 1.1rem; }
  .jd-how__inner, .jd-intro__inner { grid-template-columns: 1fr; }
  .jd-how__side { position: static; }
  /* Phones: one figure per row, the number beside its label, so three wide
     numbers cannot run into each other. */
  .jd-figs { border-left: 0; padding-left: 0; border-top: 1px solid var(--c-line); padding-top: 1.5rem; }
  .jd-fig { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; margin-bottom: 1rem; }
  .jd-fig__n { font-size: 2.4rem; }
  .jd-fig__l { margin-top: 0; }
  .jd-sale__link { grid-template-columns: 110px minmax(0, 1fr); gap: 0.4rem 1rem; }
  .jd-sale__photo { grid-row: span 3; }
  .jd-sale__when { text-align: left; min-width: 0; }
  .jd-sale__attr { margin-left: calc(110px + 1rem); }
  .jd-value { grid-template-columns: 1fr; }
  .jd-contact__inner, .jd-contact__cols { grid-template-columns: 1fr; }
  .jd-town::after { background: linear-gradient(0deg, rgba(20, 30, 38, 0.82), rgba(20, 30, 38, 0.15) 75%); }
}

@media (prefers-reduced-motion: reduce) {
  .jd-town__img, .jd-home__photo img { transition: none; }
  .jd-town:hover .jd-town__img { transform: none; }
}

/* --- Her advice (replaced "How Jamie works", 19 October 2026) ------------ */
.jd-advice { padding: calc(var(--s-section) * 0.4) 0 var(--s-section); }
.jd-advice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); }
.jd-advice__item { margin: 0; border-top: 2px solid var(--c-accent); padding-top: 1.25rem; }
.jd-advice__item figcaption { font-weight: 600; color: var(--c-accent-deep); margin-bottom: 0.75rem; }
.jd-advice__item blockquote { margin: 0; }
.jd-advice__item blockquote p + p { margin-top: 1rem; }
.jd-advice__item blockquote p { margin: 0; font: 300 clamp(1.1rem, 1.6vw, 1.3rem)/1.6 var(--f-display); color: var(--c-ink); }
.jd-advice__more { margin: 2rem 0 0; }
@media (max-width: 900px) { .jd-advice__grid { grid-template-columns: 1fr; } }
