/* Coast 2 Coast Property Finance — home page
 * Loaded by stitch onto pages/index.html only, after tokens/base/components.
 * Governed by design-guide/current.md. Read it before touching anything here.
 */

/* ══════════════════════════════════════════════════════════════
   HERO — the intro clip, reversed, playing once and holding on the
   eye contact. The copy sits on the wall Paul was filmed against;
   the encode pads that wall out so the column has room at any ratio.
   Phones get the still photograph instead: no autoplay, no download.
   ══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background: var(--color-haze);
}
@media (min-width: 860px) {
  .hero { padding-top: var(--chrome-h); }
  .hero__stage,
  .hero__inner { min-height: calc(100svh - var(--chrome-h)); }
}

.hero__stage {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  background: var(--color-haze);
}

.hero__video,
.hero__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__video {
  object-position: 22% center;
  opacity: 0;
  transition: opacity 900ms var(--ease);
}
.hero__video[data-ready="true"] { opacity: 1; }
.hero__still { display: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(233, 240, 239, 0.97) 0%,
      rgba(233, 240, 239, 0.95) 26%,
      rgba(233, 240, 239, 0.62) 44%,
      rgba(233, 240, 239, 0) 62%),
    linear-gradient(to bottom, rgba(233, 240, 239, 0) 78%, var(--color-haze) 100%);
}

.hero__inner {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(100%, 33rem);
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.hero__eyebrow {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-coastline-ink);
  margin: 0 0 1.15rem;
}

.hero h1 { margin: 0; }
.hero h1 .clause { display: block; }
.hero__said { margin: 1.15rem 0 0; max-width: 26ch; }
.hero__body {
  margin: 1.5rem 0 0;
  max-width: 31rem;
  color: var(--color-muted-ink);
}
.hero__body p + p { margin-top: 0.9rem; }
.hero__actions { margin-top: 2rem; }
.hero__fine { margin-top: 1.1rem; max-width: 30rem; }

/* Entrance. Gated on `.js` so the copy and the CTA are never invisible when
   the script does not run. The whole sequence finishes under 1.2s. */
.js .hero h1 .clause,
.js .hero__said,
.js .hero__body,
.js .hero__actions {
  opacity: 0;
  animation: c2c-rise 720ms var(--ease) forwards;
}
.js .hero h1 .clause { transform: translateY(16px); }
.js .hero h1 .clause:nth-child(1) { animation-delay: 100ms; }
.js .hero h1 .clause:nth-child(2) { animation-delay: 230ms; }
.js .hero h1 .clause:nth-child(3) { animation-delay: 360ms; }
.js .hero__said    { transform: translateY(12px); animation-delay: 520ms; }
.js .hero__body    { animation-delay: 660ms; animation-duration: 800ms; }
.js .hero__actions { animation-delay: 800ms; animation-duration: 800ms; }

@keyframes c2c-rise { to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  /* The still is a band at the top and the copy reads on the haze beneath,
     rather than fighting a full-height photograph for contrast. */
  .hero__video { display: none; }
  .hero__stage { min-height: 0; }
  .hero__still {
    display: block;
    position: relative;
    height: 54svh;
    min-height: 290px;
    object-position: 62% 28%;
  }
  .hero__scrim {
    bottom: auto;
    height: 54svh;
    min-height: 290px;
    /* Nothing over the top of the photograph: the header is opaque now, so
       the image starts clean and only dissolves into the haze at its foot. */
    background:
      linear-gradient(to bottom,
        rgba(233, 240, 239, 0) 0%,
        rgba(233, 240, 239, 0) 56%,
        rgba(233, 240, 239, 0.55) 84%,
        var(--color-haze) 100%);
  }
  .hero__inner {
    min-height: 0;
    display: block;
    padding-block: clamp(1.75rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 3.5rem);
  }
  .hero__copy { width: 100%; padding-top: 0; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero h1 .clause,
  .js .hero__said,
  .js .hero__body,
  .js .hero__actions { opacity: 1; transform: none; animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   TRUST STRIP — a single hairline band, not a card row.
   ══════════════════════════════════════════════════════════════ */
.trust {
  position: relative;
  z-index: 2;
  background: var(--color-haze-deep);
  padding-block: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
}
.trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem 2.5rem;
}
@media (min-width: 640px)  { .trust__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust__list { grid-template-columns: repeat(4, 1fr); } }
.trust__list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--color-ocean);
}
.trust__list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--color-sand);
  transform: translateY(-4px);
}

/* ══════════════════════════════════════════════════════════════
   #more-than — "A loan application tells the numbers."
   The exemplar section: opener left, content right, list in two columns,
   closing line set large against the light field.
   ══════════════════════════════════════════════════════════════ */
.situation__closing {
  margin-top: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--color-ocean);
  max-width: 26ch;
}
.situation__intro { margin-bottom: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.situation__cue {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-coastline-ink);
  margin: 0 0 1rem;
}

/* ══════════════════════════════════════════════════════════════
   #how — "Listen. Understand. Explore. Advocate. Deliver."
   The contour thread runs down the left of the five steps on
   desktop. The step name is the marker; no 01/02/03 decoration.
   paul-listening.webp sits under the opener and travels alongside
   the steps on desktop (sticky); on mobile it sits between the
   opener and the steps at a fixed height.
   ══════════════════════════════════════════════════════════════ */
.how__media { margin-top: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
.how__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (max-width: 899px) { .how__media { max-width: 24rem; } }
@media (min-width: 900px) {
  .how__intro { align-self: stretch; }
  .how__media {
    position: sticky;
    top: calc(var(--chrome-h) + clamp(1.25rem, 0.9rem + 1.4vw, 2rem));
  }
}
.how__thread-wrap {
  position: relative;
  margin-top: clamp(2.5rem, 1.8rem + 2.8vw, 4rem);
}
.how__thread {
  position: absolute;
  left: 0;
  top: 6px;
  width: 28px;
  height: calc(100% - 12px);
  color: var(--color-coastline);
}
.thread__line { fill: none; stroke: currentColor; stroke-width: 1.25; }

.how__steps {
  list-style: none;
  margin: 0;
  padding: 0 0 0 clamp(3.5rem, 2.8rem + 2.8vw, 5.25rem);
  display: grid;
  gap: clamp(1.9rem, 1.4rem + 2vw, 2.75rem);
}
.how__step { position: relative; max-width: 46rem; }
.how__step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(3.5rem, 2.8rem + 2.8vw, 5.25rem) + 22px);
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-sand);
  box-shadow: 0 0 0 4px var(--color-haze);
}
.how__step-name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.006em;
  margin: 0 0 0.4rem;
}
.how__step p { color: var(--color-muted-ink); }

@media (max-width: 899px) {
  .how__thread { display: none; }
  .how__steps { padding-left: clamp(1.25rem, 1rem + 1vw, 1.5rem); }
  .how__step::before { left: -1.25rem; }
}

.how__closing {
  margin-top: clamp(2rem, 1.6rem + 1.8vw, 2.75rem);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 1.02rem + 0.65vw, 1.4rem);
  line-height: 1.5;
  color: var(--color-ocean);
  max-width: 52ch;
}
.how__cta { margin-top: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem); }

/* ══════════════════════════════════════════════════════════════
   #situations — the page's emotional low point. Ocean field,
   ghost contour, aerial photo at low opacity, six cards.
   ══════════════════════════════════════════════════════════════ */
.situations__grid { margin-top: clamp(2.5rem, 1.9rem + 2.6vw, 3.75rem); }
.situations__closing {
  margin-top: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.95rem);
  font-weight: 300;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--color-on-dark);
  max-width: 30ch;
}

/* ══════════════════════════════════════════════════════════════
   #broker — the ocean band ends on this sand hairline.
   ══════════════════════════════════════════════════════════════ */
.broker { border-top: 1px solid var(--color-sand); }
.broker__belief-head { margin-top: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); }

/* ══════════════════════════════════════════════════════════════
   #about — Meet Paul. Paper field, the one arch on the page,
   breaking the grid left on desktop.
   ══════════════════════════════════════════════════════════════ */
.about { background: var(--color-paper); }
.about__portrait {
  aspect-ratio: 848 / 996;
  width: 100%;
}
@media (max-width: 899px) { .about__portrait { max-width: 24rem; } }
@media (min-width: 900px) {
  .about__media { margin-left: clamp(-1rem, -0.3rem - 1.6vw, -2rem); }
}
.about__body { margin-top: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.about__body p + p { margin-top: 1.05em; }

.credentials {
  list-style: none;
  margin: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem) 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--color-sand);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
}
.credentials li {
  position: relative;
  font-size: 0.9063rem;
  color: var(--color-muted-ink);
  padding-right: 1.1rem;
  margin-right: 1.1rem;
}
.credentials li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.2em;
  width: 1px;
  height: 1em;
  background: var(--color-sand);
}

.about__quote {
  margin-top: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  max-width: 30ch;
}

/* ══════════════════════════════════════════════════════════════
   #advisers — the copy centred and short, the photograph running the
   full width of the content box beneath it. Its transition treatment is
   the measure change: a wide band holding a narrow column of words.
   ══════════════════════════════════════════════════════════════ */
.advisers__content {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.advisers__lede { margin: 1.15rem auto 0; max-width: 44rem; }
.advisers__content > p:last-child {
  margin: 1.1rem auto 0;
  max-width: 44rem;
  color: var(--color-muted-ink);
}
.advisers__media { margin-top: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); }
.advisers__media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center 32%;
}
@media (max-width: 699px) {
  .advisers__media img { aspect-ratio: 4 / 3; }
}

/* ══════════════════════════════════════════════════════════════
   #help — the two-column list carrying the search terms.
   ══════════════════════════════════════════════════════════════ */
.help__closing {
  margin-top: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  font-size: var(--fs-lead);
  color: var(--color-ocean);
}
/* Force equal row heights across the pair, so a two-line item (first home
   buyers) can never knock its hairline out of step with the row beside it. */
@media (min-width: 700px) {
  .tick-list--2 { align-items: stretch; }
}

/* ══════════════════════════════════════════════════════════════
   #start — the booking form. The card overlaps the seam above
   and is the only element on the page with a shadow.
   ══════════════════════════════════════════════════════════════ */
.start { background: var(--color-paper); }
.start .lede { margin-bottom: 2.5rem; }
.start-card {
  margin-top: clamp(2.75rem, 1.6rem + 5.5vw, 5.5rem);
  margin-bottom: clamp(-2.5rem, -1rem - 3vw, -4.5rem);
  padding: clamp(1.75rem, 1.3rem + 2.2vw, 3rem);
  background: var(--color-paper);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
}
@media (min-width: 900px) {
  .start .lede { margin-bottom: 2.5rem; }
.start-card { margin-top: clamp(-3.5rem, -2rem - 3vw, -5.5rem); }
  .start .lede { margin-bottom: clamp(4.5rem, 3rem + 5vw, 7rem); }
}
/* The panel is a field of its own inside the card, not a column with a hole in
   it. Photograph at the top, the call-back line under it, and the haze ground
   carries the rest of the height so the card reads finished while the booking
   calendar is still an open item. */
.start-card__panel {
  margin-top: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  background: var(--color-haze);
  border-radius: 2px;
}
.start-card__media {
  margin: calc(-1 * clamp(1.5rem, 1.2rem + 1.2vw, 2rem));
  margin-bottom: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  border-radius: 2px 2px 0 0;
}
.start-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 28%;
}
.start-card__panel h3 { margin-bottom: 0.7rem; }
.start-card__panel p { color: var(--color-muted-ink); }
.start-card__fine { margin-top: 1rem; }

@media (min-width: 900px) {
  .start-card .split--7-5 {
    column-gap: clamp(2rem, 1.4rem + 2.4vw, 3rem);
    align-items: stretch;
  }
  .start-card__panel {
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }
  .start-card__media { flex: 1 1 auto; min-height: 0; display: flex; }
  .start-card__media img { height: 100%; aspect-ratio: auto; min-height: 260px; }
  .start-card__panel h3 { margin-top: auto; }
}

/* ══════════════════════════════════════════════════════════════
   #faqs — measure narrows again, empty column at left.
   ══════════════════════════════════════════════════════════════ */
.faqs { background: var(--color-paper); }
.faqs__head h2 { max-width: 22ch; }

/* ══════════════════════════════════════════════════════════════
   #close — no overlay. The copy sits in the sky of the photograph, so it
   reads as ink on a pale field like the rest of the page, and the top of
   the image dissolves into the paper section above it.
   ══════════════════════════════════════════════════════════════ */
.close {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem) clamp(10rem, 7rem + 13vw, 17rem);
  background: var(--color-ocean-deep);
  overflow: hidden;
}
.close__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}
/* The blend, not a wash: opaque paper at the very top, gone by the horizon. */
.close__blend {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    var(--color-paper) 0%,
    rgba(250, 252, 251, 0.94) 10%,
    rgba(250, 252, 251, 0.55) 26%,
    rgba(250, 252, 251, 0.14) 42%,
    rgba(250, 252, 251, 0) 56%);
}
.close__inner { position: relative; text-align: center; }
.close h2 { color: var(--color-ocean); }
.close__inner > p { color: var(--color-ink); margin-inline: auto; max-width: 46ch; }
.close__inner > p + p { margin-top: 1rem; }
.close__script {
  margin: clamp(1.75rem, 1.2rem + 2vw, 2.5rem) 0 0;
  color: var(--color-coastline-ink);
}
.close__actions {
  margin-top: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  justify-content: center;
}
.close__fine { margin-top: 1.25rem; color: var(--color-muted-ink); }

