/* ============================================================================
   The Morales Agency, home page
   Hand-coded: no framework, no build step. In order:
     1. tokens   brand palette, type, space
     2. base     reset and element defaults
     3. layout   container, sections, the two-column split
     4. parts    type styles, buttons, frames, marquees, reveal
     5. sections in page order
   Breakpoints: 768px (phones below), 1024px (the header's full menu).
   ========================================================================== */

@font-face {
  font-family: 'Mattone';
  src: url('../fonts/mattone-150.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

/* 1. tokens ---------------------------------------------------------------- */
:root {
  /* the client's brand card */
  --navy: #050170;
  --blue: #0b35e9;
  --aqua: #11ccee;
  --fog: #d1dfdf;
  --slate: #2f2f2f;
  --black: #000;
  --white: #fff;
  /* derived */
  --navy-deep: #03004a;
  --fog-light: #e9f0f0;
  --text: var(--slate);
  --text-on-dark: rgb(255 255 255 / .82);
  --rule: rgb(5 1 112 / .18);
  --rule-on-dark: rgb(255 255 255 / .2);

  --font-display: 'Mattone', 'Arial Black', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Poppins', system-ui, sans-serif;
  --font-ui: 'Jost', 'Poppins', system-ui, sans-serif;

  /* fluid type, phone to desktop */
  --size-small: clamp(.8125rem, .79rem + .1vw, .875rem);   /* 13 - 14 */
  --size-body: clamp(.9375rem, .9rem + .2vw, 1.0625rem);    /* 15 - 17 */
  --size-lead: clamp(1.0625rem, .98rem + .45vw, 1.3125rem); /* 17 - 21 */
  --size-heading: clamp(1.875rem, 1.45rem + 1.9vw, 3.125rem); /* 30 - 50 */
  --size-title: clamp(1.375rem, 1.05rem + 1.5vw, 2.5rem);   /* 22 - 40 */
  --size-display: clamp(2.25rem, .9rem + 7.4vw, 8rem);      /* 36 - 128 */

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 75rem;
  --section-space: clamp(4.5rem, 3rem + 6.5vw, 9rem);
  --header-height: 4.5rem;
  --ease: cubic-bezier(.22, .7, .2, 1);
}
@media (max-width: 767.98px) {
  :root { --header-height: 4rem; }
}

/* 2. base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--text);
  font: 400 var(--size-body) / 1.75 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
b { font-weight: 600; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 3. layout ---------------------------------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-space); }
.section--fog { background: var(--fog); }
.section--navy { background: var(--navy); color: var(--text-on-dark); }
.section--black { background: var(--black); color: var(--text-on-dark); }

/* two columns, media and text; collapses to one on phones */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: center;
}
.split--media-last > :first-child { order: 2; }
@media (max-width: 767.98px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--media-last > :first-child { order: 0; }
}

/* 4. parts ----------------------------------------------------------------- */
/* type */
.eyebrow {
  font: 500 var(--size-small) / 1.5 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  text-wrap: balance;
}
.section--navy .eyebrow, .section--black .eyebrow, .about .eyebrow { color: var(--aqua); }
.title {
  font: 400 var(--size-title) / 1.2 var(--font-display);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy);
  text-wrap: balance;
}
.title--aqua { color: var(--aqua); }
.section--navy .title, .section--black .title, .about .title { color: var(--white); }
.heading {
  font: 500 var(--size-heading) / 1.1 var(--font-serif);
  letter-spacing: -.01em;
  color: var(--navy);
  text-wrap: balance;
}
.heading--xl { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 4rem); }
.tagline {
  font: italic 400 var(--size-heading) / 1.15 var(--font-serif);
  color: var(--navy);
  text-wrap: balance;
}
.lead { font-size: var(--size-lead); line-height: 1.7; text-wrap: pretty; }
/* the big tracked titles: SELLING, RELIABLE CLOSING. The original stacked
   two copies of these words, black under aqua; here the lower copy is a navy
   shadow set just off the aqua one, like a two-colour print */
.display {
  display: grid;
  font: 400 var(--size-display) / .95 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
}
.display > span { grid-area: 1 / 1; }
.display__echo { color: var(--navy); transform: translate(.045em, .045em); }
.prose { text-wrap: pretty; }
.prose > * + * { margin-top: 1.1em; }
.prose > hgroup + p, .prose > .heading + p, .prose > .title + p { margin-top: 1.4rem; }
.prose > .button, .prose > a.button { margin-top: 2.25rem; }
hgroup > .eyebrow + .heading, hgroup > .eyebrow + .title { margin-top: .6rem; }
hgroup > .heading + .eyebrow { margin-top: .75rem; }

/* buttons: the brand's pill, with an arrow that nudges on hover */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .9em;
  min-height: 3.375rem;
  padding: .25rem 2rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font: 500 var(--size-small) / 1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.button::after {
  content: '';
  flex: none;
  width: 1.1em;
  height: .75em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
  transition: transform .3s var(--ease);
}
.button:hover { background: var(--blue); border-color: var(--blue); }
.button:hover::after { transform: translateX(.25em); }
.button--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button--light:hover { background: var(--aqua); border-color: var(--aqua); color: var(--navy); }
.button--ghost { background: transparent; color: var(--navy); }
.button--ghost:hover { background: var(--navy); color: var(--white); }
:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M0 6h16.5M11.5 1l5 5-5 5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E");
}

/* a text link with a rule before it */
.link-line {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font: 500 var(--size-small) / 1.2 var(--font-ui);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-line::before {
  content: '';
  width: 3rem;
  height: 1px;
  background: currentColor;
  transition: width .35s var(--ease);
}
.link-line:hover::before { width: 4.5rem; }

/* photo frames: a block of colour, or a hairline, offset behind the photo */
.frame { position: relative; isolation: isolate; }
.frame::before {
  content: '';
  position: absolute;
  inset: clamp(.75rem, 1.6vw, 1.25rem) calc(-1 * clamp(.75rem, 1.6vw, 1.25rem)) calc(-1 * clamp(.75rem, 1.6vw, 1.25rem)) clamp(.75rem, 1.6vw, 1.25rem);
  z-index: -1;
}
.frame--blue::before { background: var(--blue); }
.frame--aqua::before { background: var(--aqua); }
.frame--outline::before { border: 1px solid var(--navy); }
.frame > img { width: 100%; height: 100%; object-fit: cover; }

/* marquees: a track of identical groups that slides by one group, forever */
.marquee { overflow: hidden; white-space: nowrap; pointer-events: none; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-time, 60s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee--2 { --groups: 2; }
.marquee--3 { --groups: 3; }
.marquee__group { padding-right: .5em; }
@keyframes marquee {
  to { transform: translateX(calc(-100% / var(--groups))); }
}

/* blocks fade up once as they come into view (js/site.js) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .photo-column__track { animation: none; }
}

/* 5. sections -------------------------------------------------------------- */

/* header: clear over the cover, navy once the page scrolls */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgb(5 1 112 / .94);
  box-shadow: 0 1px 0 var(--rule-on-dark);
}
/* the blur sits on a pseudo-element, never on the header itself: a filter on
   the header makes it the containing block of the phone menu (position: fixed
   inside it), which then collapsed into the 4rem bar once the page was
   scrolled, so the menu seemed not to open (owner report, 2026-10-13) */
.site-header.is-scrolled::before { content: ''; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(12px); }
/* the bar runs the window's width, not the content's, so the logo and the
   menu keep to the window's edges as it widens or narrows (owner,
   2026-10-13); the margin grows a little on very wide screens */
.site-header__bar {
  width: calc(100% - 2 * max(var(--gutter), 3vw));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-height);
}
.site-header__brand img { width: clamp(6.5rem, 9vw, 8.5rem); }
.site-header__toggle, .site-nav__close {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: .5rem;
  border: 0;
  background: none;
  cursor: pointer;
}
.site-header__toggle svg, .site-nav__close svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.site-nav__list a {
  font: 500 var(--size-small) / 1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s var(--ease);
}
.site-nav__list a:hover { color: var(--aqua); }
.site-nav__list .site-nav__cta {
  display: inline-block;
  padding: .85rem 1.4rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.site-nav__list .site-nav__cta:hover { border-color: var(--aqua); background: var(--aqua); color: var(--navy); }
.site-nav__social { width: 1.25rem; fill: currentColor; transition: color .25s var(--ease); }
.site-nav__social:hover, .site-footer__social:hover { color: var(--aqua); }

@media (max-width: 1023.98px) {
  .site-header__toggle, .site-nav__close { display: block; }
  /* the menu opens over the whole page */
  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    background: var(--navy);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), visibility 0s .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .site-nav__close { position: absolute; top: calc((var(--header-height) - 2.75rem) / 2); right: var(--gutter); }
  .site-nav__list { flex-direction: column; gap: 1.75rem; }
  .site-nav__list a { font: 400 clamp(1.25rem, 5vw, 1.75rem) / 1 var(--font-display); letter-spacing: .14em; }
  .site-nav__list .site-nav__cta { padding: 1.1rem 1.75rem; font-size: clamp(1rem, 4vw, 1.25rem); }
  .site-nav__social { width: 1.75rem; }
}

/* cover */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: max(100svh, 40rem);
  padding: calc(var(--header-height) + 2.5rem) 0 clamp(7rem, 14vw, 11rem);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero__backdrop { position: absolute; inset: 0; z-index: -1; }
/* the group photo is cropped from the top on wide screens: anchor it high so
   their faces stay in the frame */
.hero__backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; opacity: .55; mix-blend-mode: multiply; }
.hero__backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy) 5%, rgb(5 1 112 / .35) 60%, rgb(5 1 112 / .6)),
    linear-gradient(180deg, transparent 55%, var(--navy));
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 27rem);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}
.hero__logo img { width: clamp(14rem, 30vw, 26rem); }
@media (min-width: 1024px) {
  .hero__logo img { width: clamp(12.6rem, 27vw, 23.4rem); }   /* a tenth smaller on desktop (owner, 2026-10-13) */
}
.hero__media { justify-self: end; width: 100%; }
.slideshow { aspect-ratio: 4 / 5; }
/* the next photo fades in on top while the one leaving stays fully opaque
   underneath, then drops out; fading both at once let the blue block show
   through the middle of the change */
.slideshow__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0s 1.2s;
}
.slideshow__slide.is-active { z-index: 1; opacity: 1; transition: opacity 1.2s var(--ease); }
/* the frame's colour block, on the cover photo only, starts lower */
.hero .frame::before { inset: 1.75rem -1.75rem -1.75rem 1.75rem; }
.hero__marquee {
  position: absolute;
  inset: auto 0 clamp(2.5rem, 7vw, 5.5rem);
  --marquee-time: 70s;
  color: var(--aqua);
  font: 400 clamp(3.25rem, 1.5rem + 7vw, 8rem) / 1 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* phones: a poster (owner pick 2026-10-13, "Cartel" with one photo). The two
   of them, the slideshow's fourth photo, fill the first screen edge to edge;
   the other photos and the group photo behind are not shown here, so the
   slideshow's timer changes nothing on a phone. Her logo sits low on a navy
   fall-off and the name runs along the foot on an aqua band. The fourth photo
   has its own preload for phones (index.html). Computers and tablets keep the
   cover above, untouched. */
@media (max-width: 767.98px) {
  .hero {
    display: block;
    min-height: 0;
    height: max(100svh, 34rem);
    padding: 0;
  }
  .hero__backdrop { display: none; }
  .hero__inner { position: static; display: block; width: auto; margin: 0; }
  .hero__media { position: absolute; inset: 0; z-index: 0; justify-self: stretch; width: auto; }
  .hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgb(5 1 112 / .7), rgb(5 1 112 / 0) 7.5rem),
      linear-gradient(0deg, var(--navy) 3.25rem, rgb(5 1 112 / .9) 10rem, rgb(5 1 112 / 0) 64%);
  }
  .slideshow { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero .frame::before { display: none; }
  .slideshow__slide { display: none; }
  /* both of them stay in a tall screen: she stands left of centre, he sits right */
  .slideshow__slide:nth-child(4) { display: block; opacity: 1; transition: none; object-position: 45% 50%; }
  .hero__logo {
    position: absolute;
    left: var(--gutter);
    bottom: calc(3.4rem + clamp(1.75rem, 6svh, 3rem));
    z-index: 3;
  }
  .hero__logo img { width: min(62vw, 15rem); }
  .hero__marquee {
    inset: auto 0 0;
    z-index: 3;
    padding: .95rem 0 .8rem;
    background: var(--aqua);
    color: var(--navy);
    font-size: 1.65rem;
    letter-spacing: .16em;
    --marquee-time: 38s;
  }
}

/* the shoot, four frames on the brand gradient */
.gallery-band {
  padding-block: clamp(3.5rem, 7vw, 7rem) clamp(4.5rem, 9vw, 9rem);
  background: linear-gradient(180deg, var(--navy), var(--blue));
}
.gallery-band__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.75rem);
  align-items: start;
}
.gallery-band__photo { aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-band__photo:nth-child(even) { margin-top: clamp(2.5rem, 7vw, 6rem); }
.gallery-band__photo:nth-child(3) { grid-column: 4; }
.gallery-band__photo:nth-child(4) { grid-column: 5; }
.gallery-band__photo img { width: 100%; height: 100%; object-fit: cover; }
.gallery-band__badge {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: clamp(6rem, 11vw, 9.5rem);
  filter: drop-shadow(0 18px 30px rgb(3 0 74 / .45));
}
@media (max-width: 767.98px) {
  .gallery-band__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-band__photo:nth-child(n) { grid-column: auto; margin-top: 0; }
  /* the badge sits where the four photos meet */
  .gallery-band__badge { position: absolute; grid-area: auto; top: 50%; left: 50%; width: 6.5rem; translate: -50% -50%; }
}

/* selling */
.masthead { text-align: center; }
.masthead .display { justify-items: center; padding-left: .12em; }
.masthead > .tagline { margin-top: clamp(1rem, 2vw, 1.75rem); }
.masthead__lede { max-width: 50rem; margin: 2rem auto 0; }
.selling__body { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.selling__body .frame { max-width: 30rem; }
.selling__body .frame img { aspect-ratio: 4 / 5; }
.selling .heading { margin-bottom: .25rem; }

/* the three selling steps: a folio. One photo is held while the steps are
   read, and turns to each step's picture as that step reaches the reading
   line (js/site.js, part 12), wiping up over the last one.
   From 1024px the ruled steps run down the left, each title set large, and
   a tall portrait holds still beside them; the steps not reached yet wait a
   shade lighter. Below 1024px the same photo fills the screen behind the
   steps: it shows alone first, then each step rises over it on a white page,
   and the photo leaves with the last one. The two layouts share only the
   photos and their wipe, so each is written on its own rather than one
   undoing the other. Without the script the first photo holds throughout. */
.folio {
  --folio-ease: cubic-bezier(.16, 1, .3, 1);
  --folio-title: clamp(2.75rem, 1.6rem + 5vw, 6.75rem);
  --folio-rule: rgb(5 1 112 / .85);
  background: var(--white);
}

/* a step: the label ("step" small in Jost, the number in Mattone with the
   brand's aqua offset), the title, the words and the link */
.folio__row { position: relative; }
.folio__row::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--folio-rule);
  transform-origin: left center;
}
.folio__label { display: flex; align-items: baseline; gap: .75em; color: var(--navy); line-height: 1; white-space: nowrap; }
.folio__label-word { font: 500 .75rem / 1 var(--font-ui); letter-spacing: .32em; text-transform: uppercase; }
.folio__label-num { font: 400 1.125rem / 1 var(--font-display); letter-spacing: .08em; text-shadow: .09em .09em 0 var(--aqua); }
.folio__title {
  font: 500 var(--folio-title) / .94 var(--font-serif);
  letter-spacing: -.025em;
  color: var(--navy);
  text-wrap: balance;
}
.folio__text { max-width: 30rem; color: var(--slate); text-wrap: pretty; }
.folio__link { color: var(--navy); }
.folio__link:hover { color: var(--blue); }

/* the three photos, stacked; each fills the frame exactly (never enlarged,
   owner's rule for every photo on the page), and the change is a wipe */
.folio__frame { overflow: hidden; }
.folio__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .95s var(--folio-ease);
}
.folio__frame > img:first-child { clip-path: inset(0); }   /* until the script takes over */
.folio__frame > img.is-before { clip-path: inset(0 0 100% 0); }
.folio__frame > img.is-after { clip-path: inset(100% 0 0 0); }
.folio__frame > img.is-current { clip-path: inset(0); }
.folio__ticks { display: flex; gap: .5rem; }
.folio__ticks > span {
  width: 1.25rem;
  height: 2px;
  transition: width .6s var(--folio-ease), background-color .6s var(--folio-ease);
}
.folio__ticks > span.is-current { width: 3rem; }

/* arriving (the page's reveal marks each step .is-visible once): the rule
   draws, the title rises out of a mask, the rest follows a beat behind */
.folio__row [data-rise='1'] { --rise: 1; }
.folio__row [data-rise='2'] { --rise: 2; }
@media (prefers-reduced-motion: no-preference) {
  .js .folio__row::before { transition: scale 1.2s var(--folio-ease); }
  .js .folio__row:not(.is-visible)::before { scale: 0 1; }
  .js .folio__title {
    clip-path: inset(-.3em -.3em -.4em -.3em);
    transition: clip-path 1.1s var(--folio-ease) .1s, translate 1.1s var(--folio-ease) .1s;
  }
  .js .folio__row:not(.is-visible) .folio__title { clip-path: inset(0 0 100% 0); translate: 0 .4em; }
  .js .folio__row [data-rise] {
    transition: opacity .9s var(--folio-ease), translate .9s var(--folio-ease);
    transition-delay: calc(.25s + var(--rise, 0) * .1s);
  }
  .js .folio__row:not(.is-visible) [data-rise] { opacity: 0; translate: 0 1.25rem; }
}

/* phones and tablets: the photo behind, the steps on pages over it */
@media (max-width: 1023.98px) {
  .folio {
    /* vh, not svh: under a phone's toolbar the photo should run on, not stop short */
    --folio-stage: calc(100vh - var(--header-height));
    --folio-foot: clamp(3rem, 8vh, 5rem);        /* the room under the last page */
    padding-block: 0;
  }
  /* the photo lets go when the last page is halfway up the screen (owner,
     2026-10-13). The sticky stage is held inside this box: when --folio-hold
     is positive (a short page) the box runs on past the list by that much
     (::after) and the margin takes the room back; when it is negative (a
     page taller than half the screen) the list's own margin ends the box
     that much sooner and the padding gives the room back (padding alone
     does not shorten a sticky range). js/site.js part 12 measures the page
     into --folio-last. The next section sits where it did either way */
  .folio__inner {
    --folio-hold: calc(50vh - var(--folio-foot) - var(--folio-last, 24rem));
    position: relative;
    padding-bottom: max(0px, calc(-1 * var(--folio-hold)));
    margin-bottom: min(0px, calc(-1 * var(--folio-hold)));
  }
  .folio__inner::after { content: ''; display: block; height: max(0px, var(--folio-hold)); }
  .folio__stage {
    position: sticky;
    top: var(--header-height);
    height: var(--folio-stage);
    margin-inline: calc(-1 * var(--gutter));
  }
  .folio__frame { position: absolute; inset: 0; background: var(--navy); }
  .folio__frame > img:nth-child(1) { object-position: 62% 30%; }
  .folio__frame > img:nth-child(2) { object-position: 52% 20%; }
  .folio__frame > img:nth-child(3) { object-position: 45% 10%; }   /* framed by the owner in the editor, 2026-10-13 */
  .folio__ticks { position: absolute; inset: auto auto 1.5rem var(--gutter); }
  .folio__ticks > span { background: rgb(255 255 255 / .5); box-shadow: 0 0 .75rem rgb(3 0 74 / .35); }
  .folio__ticks > span.is-current { background: var(--white); }
  /* the pages: pulled up over the held photo, half a screen apart */
  .folio__list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 50vh;
    margin-top: calc(-1 * var(--folio-stage));
    padding-block: 58vh var(--folio-foot);
    margin-bottom: min(0px, var(--folio-hold));   /* see .folio__inner */
  }
  .folio__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    padding: 2rem clamp(1.25rem, 5vw, 2.25rem) 2.25rem;
    background: var(--white);
    box-shadow: 0 2rem 3rem -1.75rem rgb(3 0 74 / .55);
  }
  .folio__row::before { display: none; }   /* a page needs no rule */
  .folio__row .link-line { margin-top: .4rem; }
  /* plain wrapping: "Prepare &" / "Market", where balancing would start the
     second line on the ampersand */
  .folio__title { text-wrap: wrap; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .folio__row { max-width: 34rem; }
}

/* from 1024px: the steps on the left, the photo held beside them */
@media (min-width: 1024px) {
  .folio {
    --folio-title: clamp(3rem, 1.2rem + 4.2vw, 5.75rem);
    padding-block: clamp(2.5rem, 1.5rem + 5vw, 7.5rem) clamp(4rem, 2.5rem + 6vw, 8rem);
  }
  .folio__inner {
    --folio-gap: clamp(3rem, 6vw, 7rem);
    container-type: inline-size;   /* so the stage can name its column's width (below) */
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    column-gap: var(--folio-gap);
  }
  .folio__list { grid-area: 1 / 1; border-bottom: 1px solid var(--folio-rule); }
  /* the stage is the whole window under the header, and the photo sits in its
     middle, so while the steps scroll past it holds halfway between the top
     and the bottom of the screen (level with the reading line in part 12).
     It lets go when the steps' bottom rule reaches the photo's bottom edge,
     and the two leave together: the negative margin takes the room under the
     photo out of the stage's sticky box. The photo's width is the column
     (5 of the 12 parts left after the gap) or what the window's height
     allows, whichever is less. The column is written in cqi, never as 100%:
     Chrome and Safari read a % margin against the whole grid when they work
     out where a sticky box lets go, which let the photo leave 47px early */
  .folio__stage, .folio__list {
    --folio-stage: calc(100vh - var(--header-height));
    --folio-photo: min((100cqi - var(--folio-gap)) * 5 / 12, (var(--folio-stage) - 9rem) * .8);
  }
  .folio__stage {
    grid-area: 1 / 2;
    position: sticky;
    top: var(--header-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: var(--folio-stage);
    margin-bottom: calc((var(--folio-photo) * 1.25 - var(--folio-stage)) / 2);
  }
  /* as tall as the ticks under the photo, so the photo itself (not photo and
     ticks together) is what sits in the middle */
  .folio__stage::before { content: ''; flex: none; height: calc(1.25rem + 2px); }
  .folio__frame {
    position: relative;
    width: var(--folio-photo);
    aspect-ratio: 4 / 5;
    margin-inline-start: auto;
    background: var(--fog-light);
  }
  .folio__frame > img:nth-child(1) { object-position: 62% 22%; }
  .folio__frame > img:nth-child(2) { object-position: 50% 8%; }
  .folio__frame > img:nth-child(3) { object-position: 45% 10%; }   /* framed by the owner in the editor, 2026-10-13 */
  .folio__ticks { justify-content: flex-end; padding-top: 1.25rem; }
  .folio__ticks > span { background: rgb(5 1 112 / .14); }
  .folio__ticks > span.is-current { background: var(--navy); }
  .folio__row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    min-height: clamp(24rem, 64vh, 40rem);
    padding-block: clamp(2.5rem, 4vw, 3.5rem);
    transition: opacity .6s var(--folio-ease);
  }
  .folio__row .link-line { margin-top: .5rem; }
  .folio__title { margin-top: .25rem; }
  /* steps not reached yet wait a shade lighter; steps already read stay as they are */
  .folio__row.is-current ~ .folio__row { opacity: .38; }
}
@media (prefers-reduced-motion: reduce) {
  .folio__frame > img, .folio__ticks > span, .folio__row { transition: none; }
}

/* what we do for your listing: a ledger. The title set large over a navy
   rule, then the three as rows ruled off like an index: a square photo, the
   heading big in the serif, her words in their own column. With a mouse,
   the row under the pointer fills with its own photo, deep in navy, swept in
   from the left, and its words turn white. Below 1024px the rows become a
   sideways deck of cards, the next one showing at the screen's edge: the
   swipe and the snapping are the browser's own (scroll snap), so they work
   with no script, and js/site.js part 11 adds the dots and the line over
   the deck and moves the button out of the first card to sit under the
   deck, in view whichever card is in front.
   So the two layouts never fight, every rule here is one of: true at every
   width (1 to 4), the desktop grid and its hover (5, 6, min-width: 1024px),
   arrival (7), or the deck (8, max-width: 1023.98px). */
/* 1. the block ------------------------------------------------------------- */
.ledger {
  --ledger-wash-bleed: clamp(1rem, 2.4vw, 2.5rem);   /* how far the wash runs past the text */
  --ledger-ring: 0 0 0 1px var(--aqua), 0 0 0 .5rem rgb(17 204 238 / .18);
  background: var(--white);
}

/* 2. masthead -------------------------------------------------------------- */
.ledger__head {
  display: grid;
  gap: 1rem;
  padding-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
  border-bottom: 2px solid var(--navy);
}
.ledger__title {
  max-width: 17em;
  font-size: clamp(1.625rem, .75rem + 3.5vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: .1em;
}

/* 3. a row, at every width ------------------------------------------------- */
.ledger__row {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 4.4vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.ledger__thumb { position: relative; overflow: hidden; background: var(--fog); }
.ledger__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ledger__row:nth-child(2) .ledger__thumb img { object-position: 58% 50%; }
.ledger__row:nth-child(3) .ledger__thumb img { object-position: 50% 30%; }
.ledger__name .eyebrow { max-width: 26em; }
.ledger__heading {
  margin-top: 1rem;
  color: var(--navy);
  font: 500 clamp(2.5rem, 1.25rem + 3.4vw, 5.25rem) / .96 var(--font-serif);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ledger__body { text-wrap: pretty; }
.ledger__body > * + * { margin-top: 1.1em; }
.ledger__body > .button { margin-top: 2rem; }

/* 4. the wash: the row's own photo, behind everything, deep in navy. Hidden
   here; section 6 shows it ---------------------------------------------- */
.ledger__wash {
  position: absolute;
  inset: 0 calc(-1 * var(--ledger-wash-bleed));
  z-index: -1;
  display: none;
  overflow: hidden;
  background: var(--navy);
  pointer-events: none;
}
.ledger__wash img { width: 100%; height: 100%; object-fit: cover; opacity: .42; }
.ledger__wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(5 1 112 / .55), rgb(5 1 112 / .2) 45%, rgb(5 1 112 / .62));
}
.ledger__row:nth-child(3) .ledger__wash img { object-position: 50% 25%; }

/* 5. desktop layout: photo, heading, words, in one ruled row ---------------- */
@media (min-width: 1024px) {
  .ledger__row {
    display: grid;
    grid-template-columns: minmax(0, 14rem) minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(1.75rem, 3.4vw, 3.75rem);
    align-items: start;
  }
  .ledger__thumb { aspect-ratio: 1; }
  .ledger__body { padding-top: .35rem; }
}

/* 6. desktop with a mouse: the row under the pointer fills with its photo,
   swept in from the left, and its words turn to white -------------------- */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .ledger__wash { display: block; clip-path: inset(0 100% 0 0); transition: clip-path .75s var(--ease); }
  .ledger__row :is(.eyebrow, .ledger__heading, .ledger__body) { transition: color .45s var(--ease); }
  .ledger__thumb { transition: box-shadow .45s var(--ease); }
  .ledger__row:is(:hover, :focus-within) .ledger__wash { clip-path: inset(0); }
  .ledger__row:is(:hover, :focus-within) .eyebrow { color: var(--aqua); }
  .ledger__row:is(:hover, :focus-within) .ledger__heading { color: var(--white); }
  .ledger__row:is(:hover, :focus-within) .ledger__body { color: var(--text-on-dark); }
  .ledger__row:is(:hover, :focus-within) .ledger__thumb { box-shadow: var(--ledger-ring); }
  .ledger__row:is(:hover, :focus-within) .button { background: var(--white); border-color: var(--white); color: var(--navy); }
  .ledger__row:is(:hover, :focus-within) .button:hover { background: var(--aqua); border-color: var(--aqua); }
}

/* 7. arrival (the page's reveal marks each block .is-visible once): the
   masthead rises, the navy rule under each row draws across, the photo
   opens upward, the heading and words rise after. ------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js .ledger__head { opacity: 0; translate: 0 1.25rem; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .js .ledger__head.is-visible { opacity: 1; translate: 0 0; }
  .js .ledger__row::after {
    content: '';
    position: absolute;
    inset: auto 0 -1px;
    height: 1px;
    background: var(--navy);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.4s var(--ease) .1s;
  }
  .js .ledger__row.is-visible::after { transform: scaleX(1); }
  .js .ledger__thumb { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s var(--ease), box-shadow .45s var(--ease); }
  .js .ledger__name, .js .ledger__body { opacity: 0; translate: 0 1.5rem; transition: opacity .9s var(--ease) .2s, translate 1.1s var(--ease) .2s; }
  .js .ledger__body { transition-delay: .35s; }
  /* opened past its edges, so a ring around the photo is not clipped */
  .js .ledger__row.is-visible .ledger__thumb { clip-path: inset(-1rem); }
  .js .ledger__row.is-visible :is(.ledger__name, .ledger__body) { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ledger__wash { transition: none; }
}

/* 8. below 1024px: the deck. The dots sit above the cards, not below: the
   first card is taller than a phone's screen, so below it they would be
   out of sight just when they are needed ----------------------------- */
@media (max-width: 1023.98px) {
  .ledger--deck {
    --ledger-card: min(86%, 24rem);
    --ledger-card-gap: .875rem;
    --ledger-card-pad: clamp(1.25rem, 4.5vw, 1.75rem);
  }
  .ledger--deck .ledger__rows {
    position: relative;                                 /* the cards' offsetParent */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--ledger-card);
    gap: var(--ledger-card-gap);
    margin-inline: calc(-1 * var(--gutter));
    padding: 1rem var(--gutter) .25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .ledger--deck .ledger__rows::-webkit-scrollbar { display: none; }
  .ledger--deck .ledger__rows:focus-visible { outline-offset: -3px; }
  .ledger--deck .ledger__row {
    display: flex;
    flex-direction: column;
    padding: 0 0 var(--ledger-card-pad);
    border: 1px solid var(--rule);
    scroll-snap-align: start;
    background: var(--white);
  }
  .ledger--deck .ledger__thumb { aspect-ratio: 2 / 1; }
  .ledger--deck .ledger__name,
  .ledger--deck .ledger__body { padding-inline: var(--ledger-card-pad); }
  .ledger--deck .ledger__name { padding-top: 1.5rem; }
  .ledger--deck .ledger__heading { margin-top: .6rem; font-size: clamp(1.875rem, 1.2rem + 2.8vw, 2.75rem); }
  .ledger--deck .ledger__body { padding-top: 1.25rem; font-size: .9375rem; line-height: 1.7; }

  /* the button, under the deck (moved there by js/site.js part 11) */
  .ledger__deck-cta { margin-top: clamp(1.75rem, 6vw, 2.5rem); }

  /* the controls over the deck (built by js/site.js part 11) */
  .ledger__deck-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: clamp(1.25rem, 4vw, 2rem);
  }
  .ledger__deck-progress {
    position: relative;
    flex: 1;
    height: 1px;
    background: var(--rule);
  }
  .ledger__deck-progress::after {
    content: '';
    position: absolute;
    inset: -.5px 0;
    background: var(--navy);
    transform: scaleX(var(--ledger-deck-progress, 0));
    transform-origin: left;
  }
  .ledger__deck-dots { display: flex; }
  .ledger__deck-dot {
    display: grid;
    place-items: center;
    width: 2.75rem;                                     /* a 44px target for a 10px dot */
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .ledger__deck-dot::before {
    content: '';
    width: .625rem;
    height: .625rem;
    border: 1px solid var(--navy);
    border-radius: 50%;
    transition: background-color .3s var(--ease), scale .3s var(--ease);
  }
  .ledger__deck-dot[aria-current='true']::before { background: var(--navy); scale: 1.2; }
  .ledger__deck-dot:focus-visible { outline-offset: -.5rem; }
}
/* on a phone, where one card fills the width, the ones not in front step
   back a little (only once the script says which card is in front) */
@media (max-width: 767.98px) {
  .ledger--deck .ledger__rows.is-live .ledger__row { transition: opacity .45s var(--ease); }
  .ledger--deck .ledger__rows.is-live .ledger__row:not(.is-current) { opacity: .55; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .ledger--deck { --ledger-card: min(46%, 26rem); }
}

/* reliable closing */
.statement { background: var(--white); }
.statement__inner { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: 52rem; text-align: center; }
.statement .display { padding-left: .12em; }
.statement .tagline { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
.statement .lead { margin-top: 1.75rem; max-width: 44rem; }
.statement .button { margin-top: 2.5rem; }

/* about: the mission statement beside their photo */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--black);
  color: var(--text-on-dark);
}
.about__copy {
  align-self: center;
  padding: var(--section-space) clamp(2rem, 6vw, 6rem) var(--section-space) max(var(--gutter), (100vw - var(--container)) / 2);
}
.about .tagline { margin-top: 1rem; color: var(--aqua); }
.about__photo { position: relative; min-height: 36rem; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 767.98px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { order: -1; min-height: 0; aspect-ratio: 1; }
  .about__copy { padding: 3.5rem var(--gutter) 4.5rem; }
}

/* the name, running both ways */
.ribbons {
  display: grid;
  gap: .1em;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--black);
  font: 400 clamp(2.5rem, 1rem + 6.5vw, 7.5rem) / 1.05 var(--font-display);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ribbons__line { --marquee-time: 90s; color: var(--aqua); }
.ribbons__line--outline { color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .55); }
/* her logo, drawn in the line's colour, as one more word */
.ribbons__logo {
  display: inline-block;
  width: calc(.8em * 682.64 / 301.76);
  height: .8em;
  margin-inline: .2em .55em;
  vertical-align: -.08em;
  background: currentColor;
  -webkit-mask: url('../img/logo/wide-light.svg') center / contain no-repeat;
  mask: url('../img/logo/wide-light.svg') center / contain no-repeat;
}

/* certified military relocation professional, the studio wall: no frame. His
   portrait fills the right half of the section at full height, and its left
   edge, top and foot fade into the section's pale ground (the photo lifted a
   touch, so the studio's grey wall meets fog-light at the same lightness and
   the seam disappears): the wall behind him is the wall the words sit on.
   As it arrives (js/site.js marks it is-visible) the portrait develops from
   pale grey into full colour and the words rise in after it. Phones: the
   portrait leads, full width, fading out at its foot, and the words begin
   over the faded part. */
.military {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: center;
  min-height: clamp(38rem, 58vw, 56rem);
  padding-block: clamp(4.5rem, 2rem + 6vw, 7.5rem);
  background: var(--fog-light);
}
.military__photo {
  --fade: linear-gradient(to right, transparent, #000 38%), linear-gradient(to top, transparent, #000 24%), linear-gradient(to bottom, transparent, #000 12%);
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 54%;
  margin: 0;
  -webkit-mask-image: var(--fade);
  -webkit-mask-composite: source-in, source-in;
  mask-image: var(--fade);
  mask-composite: intersect, intersect;
}
.military__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: brightness(1.09) saturate(.92); }
.military__copy { container-type: inline-size; max-width: min(34rem, 46%); }
/* never wider than its column: PROFESSIONAL is 11.06em at this tracking */
.military__title {
  margin-top: .9rem;
  color: var(--navy);
  font: 400 min(clamp(1.75rem, .8rem + 2.4vw, 3rem), 100cqi / 11.2) / 1.08 var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: .045em .045em 0 var(--aqua);   /* the display echo */
  text-wrap: balance;
}
.military__text { margin-top: 1.75rem; font-size: var(--size-lead); line-height: 1.7; text-wrap: pretty; }
.military__copy .button { margin-top: 2.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .military__photo img {
    opacity: 0;
    filter: grayscale(1) contrast(.7) brightness(1.18);
    transition: opacity 1.6s var(--ease), filter 2.6s var(--ease) .35s;
  }
  .js .military__copy > * { opacity: 0; translate: 0 1.25rem; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .js .military__copy > :nth-child(1) { transition-delay: .5s; }
  .js .military__copy > :nth-child(2) { transition-delay: .65s; }
  .js .military__copy > :nth-child(3) { transition-delay: .8s; }
  .js .military.is-visible .military__photo img { opacity: 1; filter: brightness(1.09) saturate(.92); }
  .js .military.is-visible .military__copy > * { opacity: 1; translate: 0 0; }
}
@media (max-width: 767.98px) {
  .military { display: block; min-height: 0; padding-top: 0; }
  .military__photo {
    --fade: linear-gradient(to bottom, #000 52%, transparent 94%);
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
    aspect-ratio: 4 / 5;
    -webkit-mask-composite: source-over;
    mask-composite: add;
  }
  .military__inner { position: relative; margin-top: -14vw; }
  .military__copy { max-width: 36rem; }
}

/* buying: the word among photos from the shoot at four depths, on fog. Three
   sit behind the word and one in front; each carries the offset block, and
   js/site.js moves each at its own speed with the scroll (and, with a mouse,
   leans the scene toward the pointer) */
/* the same light fog as the sections above and below (owner, 2026-10-13, on
   trial: to go back, set it to var(--fog), the darker one it had) */
.collage { position: relative; overflow: clip; background: var(--fog-light); }
.collage__stage {
  position: relative;
  width: min(100%, 96rem);
  height: clamp(36rem, 58vw, 54rem);
  margin-inline: auto;
}
.collage__photo { position: absolute; margin: 0; isolation: isolate; }
.collage__photo::before {
  content: '';
  position: absolute;
  inset: var(--offset) calc(-1 * var(--offset)) calc(-1 * var(--offset)) var(--offset);
  z-index: -1;
}
.collage__crop { overflow: hidden; }
.collage__crop img { width: 100%; height: 100%; object-fit: cover; }
/* close together, top left, behind the word */
.collage__photo--hug { --offset: clamp(.6rem, 1.2vw, 1.1rem); left: 6%; top: 7%; width: 19%; z-index: 1; }
.collage__photo--hug::before { background: var(--aqua); }
.collage__photo--hug .collage__crop { aspect-ratio: 4 / 5; }
.collage__photo--hug img { object-position: 50% 20%; }
/* with her sign, top right, furthest back */
.collage__photo--sign { --offset: clamp(.5rem, 1vw, .9rem); right: 7%; top: 5%; width: 15%; z-index: 1; }
.collage__photo--sign::before { border: 1px solid var(--navy); }
.collage__photo--sign .collage__crop { aspect-ratio: 1; }
.collage__photo--sign img { object-position: 52% 30%; }
/* on the blue sofa, lower left, behind */
.collage__photo--sofa { --offset: clamp(.5rem, 1vw, .9rem); left: 17%; bottom: 7%; width: 12%; z-index: 1; }
.collage__photo--sofa::before { background: var(--navy); }
.collage__photo--sofa .collage__crop { aspect-ratio: 4 / 5; }
.collage__photo--sofa img { object-position: 50% 30%; }
/* at the laptop, lower right, in front of the word, just catching its foot */
.collage__photo--laptop { --offset: clamp(.7rem, 1.4vw, 1.25rem); right: 15%; bottom: 7%; width: 25%; z-index: 3; }
.collage__photo--laptop::before { background: var(--blue); }
.collage__photo--laptop .collage__crop { aspect-ratio: 5 / 4; }
.collage__photo--laptop img { object-position: 50% 12%; }
.collage__word {
  position: absolute;
  left: 0; right: 0; top: 50%;
  z-index: 2;
  margin-top: -.5em;
  padding-left: .12em;
  font: 400 clamp(3rem, 10.4vw, 11.5rem) / 1 var(--font-display);
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--navy);
  text-shadow: .045em .045em 0 var(--aqua);   /* the display echo, inverted */
}
/* -.2em pulls Mattone's dash into the point so "->" reads as one arrow */
.collage__arrow { color: var(--blue); letter-spacing: -.2em; padding-right: .2em; }
@media (prefers-reduced-motion: no-preference) {
  .js .collage__photo { opacity: 0; scale: .92; transition: opacity 1s var(--ease), scale 1.3s var(--ease); }
  .js .collage__photo--sign { transition-delay: .12s; }
  .js .collage__photo--sofa { transition-delay: .2s; }
  .js .collage__photo--laptop { transition-delay: .3s; }
  .js .collage.is-visible .collage__photo { opacity: 1; scale: 1; }
  .js .collage__word { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s .15s var(--ease); }
  .js .collage.is-visible .collage__word { clip-path: inset(-.3em); }
}
@media (max-width: 767.98px) {
  .collage__stage { height: 36rem; }
  .collage__photo--hug { left: 5%; top: 5%; width: 40%; }
  .collage__photo--sign { right: 6%; top: 11%; width: 31%; }
  .collage__photo--sofa { left: 8%; bottom: 13%; width: 25%; }
  .collage__photo--laptop { right: 5%; bottom: 5%; width: 54%; }
  .collage__word { top: 52%; font-size: 12.4vw; }
}

/* the home buying process: a centred opening (a blue hairline drops into the
   title, whose last word sits alone in italic; her two paragraphs in the
   serif, in two columns, with a drop cap), then each step as a spread on a
   12 column grid, a photo with a white card laid across its edge. Two
   landscape spreads (photo on 8 columns, card hanging below its edge) and two
   portrait ones (photo on 5, card centred), the sides alternating. As a
   spread arrives (js/site.js marks it is-visible) its photo wipes open from
   the outer edge and the card rises after. Each photo fills its frame
   exactly, never enlarged (the owner's rule for every photo on the page).
   Under 1024px the photos go full bleed and the cards overlap their lower
   edge. */
.process {
  --process-gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: calc(var(--section-space) + 2rem);
  overflow-x: clip;
  background: var(--fog-light);
}
.process__intro { text-align: center; }
.process__intro::before {
  content: '';
  display: block;
  width: 1px;
  height: clamp(3rem, 6vw, 4.5rem);
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  background: var(--blue);
  transform-origin: top;
}
.process__title {
  color: var(--navy);
  font: 500 clamp(3.25rem, 1.3rem + 6.6vw, 8rem) / .9 var(--font-serif);
  letter-spacing: -.03em;
}
/* each line rises out of its own mask; the padding keeps descenders and the
   italic's overhang inside it */
.process__mask { display: block; overflow: hidden; margin-bottom: -.12em; padding: 0 .1em .12em; }
.process__mask > * { display: block; }
.process__title em { color: var(--blue); font-style: italic; }
.process__lede {
  max-width: 58rem;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  columns: 2;
  column-gap: clamp(2.5rem, 5vw, 4.5rem);
  column-rule: 1px solid var(--rule);
  color: var(--navy);
  font: 400 clamp(1.125rem, 1rem + .35vw, 1.3125rem) / 1.6 var(--font-serif);
  text-align: left;
  text-wrap: pretty;
}
.process__lede p + p { margin-top: 1em; }
.process__first::first-letter {
  float: left;
  margin: .07em .09em 0 0;
  color: var(--blue);
  font: 500 4.7em / .78 var(--font-serif);
}
.process__spreads {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(6rem, 12vw, 11rem);
  margin-top: clamp(5rem, 10vw, 9rem);
}
.process__spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--process-gap);
  align-items: center;
}
.process__figure, .process__card { grid-row: 1; }
.process__media { position: relative; display: block; overflow: hidden; background: var(--fog); }
.process__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.process__spread--wide .process__media { aspect-ratio: 3 / 2; }
.process__spread--tall .process__media { aspect-ratio: 4 / 5; }
.process__spread--wide .process__figure { grid-column: 1 / 9; }
.process__spread--wide .process__card { grid-column: 8 / 13; align-self: end; margin-bottom: -3.5rem; }
.process__spread--wide.process__spread--flip .process__figure { grid-column: 5 / 13; }
.process__spread--wide.process__spread--flip .process__card { grid-column: 1 / 6; }
.process__spread--tall .process__figure { grid-column: 2 / 7; }
.process__spread--tall .process__card { grid-column: 6 / 12; }
.process__spread--tall.process__spread--flip .process__figure { grid-column: 7 / 12; }
.process__spread--tall.process__spread--flip .process__card { grid-column: 2 / 8; }
.process__card {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 3.6vw, 3.5rem);
  background: var(--white);
  box-shadow: 0 2.5rem 4.5rem -2.75rem rgb(5 1 112 / .35);
}
.process__num {
  position: absolute;
  top: clamp(1.25rem, 2.4vw, 2rem);
  right: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--aqua);
  font: italic 400 clamp(2.5rem, 1.6rem + 2vw, 3.75rem) / 1 var(--font-serif);
}
.process__heading {
  padding-right: 3.5rem;
  color: var(--navy);
  font: 500 clamp(2rem, 1.4rem + 1.6vw, 3rem) / 1.02 var(--font-serif);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.process__eyebrow {
  margin-top: .9rem;
  color: var(--blue);
  font: 500 .75rem / 1.6 var(--font-ui);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-wrap: balance;
}
.process__body {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: .96875rem;
  line-height: 1.8;
  text-wrap: pretty;
}
.process__body > * + * { margin-top: 1.1em; }
.process__body > .button { margin-top: 2rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .process__intro::before { transform: scaleY(0); transition: transform 1.1s var(--ease); }
  .js .process__mask > * { transform: translateY(110%); transition: transform 1.3s var(--ease) .25s; }
  .js .process__mask + .process__mask > * { transition-delay: .37s; }
  .js .process__lede { opacity: 0; translate: 0 1.5rem; transition: opacity 1.1s var(--ease) .6s, translate 1.3s var(--ease) .6s; }
  .js .process__intro.is-visible::before,
  .js .process__intro.is-visible .process__mask > * { transform: none; }
  .js .process__intro.is-visible .process__lede { opacity: 1; translate: 0 0; }
  .js .process__media { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease); }
  .js .process__spread--flip .process__media { clip-path: inset(0 0 0 100%); }
  .js .process__card { opacity: 0; translate: 0 3rem; transition: opacity 1s var(--ease) .4s, translate 1.3s var(--ease) .4s; }
  .js .process__spread.is-visible .process__media { clip-path: inset(0); }
  .js .process__spread.is-visible .process__card { opacity: 1; translate: 0 0; }
}
@media (max-width: 1023.98px) {
  .process__lede { columns: 1; }
  .process__spread { display: block; }
  .process__figure { margin-inline: calc(-1 * var(--gutter)); }
  .process__spread--wide .process__media { aspect-ratio: 4 / 3; }
  .process__spread--wide .process__media img { object-position: 35% 50%; }
  .process__card,
  .process__spread--wide .process__card { margin: -3.5rem 0 0 clamp(1rem, 6vw, 2.5rem); }
  .process__spread--flip .process__card,
  .process__spread--wide.process__spread--flip .process__card { margin: -3.5rem clamp(1rem, 6vw, 2.5rem) 0 0; }
  .process__card { padding: 2rem 1.5rem 2.25rem; }
  .process__num { top: 1.1rem; right: 1.25rem; }
}
/* the narrowest phones: the cards sit square under the photo so the longest
   button ("Get listing alerts", 254px) fits on one line */
@media (max-width: 399.98px) {
  .process__card,
  .process__spread--wide .process__card,
  .process__spread--flip .process__card,
  .process__spread--wide.process__spread--flip .process__card { margin-inline: 0; }
  .process__card { padding-inline: 1.25rem; }
  .process__card .button { padding-inline: 1.25rem; }
}

/* start your home search: the homes scroll past in two columns, on the same
   light fog as the sections above and below (owner, 2026-10-13, on trial: to
   go back, set it to var(--fog), the darker one it had) */
.search { background: var(--fog-light); }
.search__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.search__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  height: clamp(28rem, 48vw, 40rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.photo-column__track {
  display: grid;
  gap: 1rem;
  animation: scroll-up 60s linear infinite;
}
.photo-column--down .photo-column__track { animation-direction: reverse; }
.photo-column img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@keyframes scroll-up {
  to { transform: translateY(calc(-50% - .5rem)); }
}
@media (max-width: 767.98px) {
  .search__grid { grid-template-columns: minmax(0, 1fr); }
  .search__gallery { height: 24rem; }
}

/* testimonials */
.testimonials { background: var(--fog-light); }
.quotes { position: relative; max-width: 54rem; margin-inline: auto; text-align: center; }
.quotes::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 2px;
  margin: 0 auto 2.5rem;
  background: var(--aqua);
}
.quote__text {
  color: var(--navy);
  font: italic 400 clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem) / 1.3 var(--font-serif);
  text-wrap: pretty;
}
.quote__author {
  margin-top: 2rem;
  color: var(--blue);
  font: 500 var(--size-small) / 1.5 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.quote__nav { display: flex; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.quote__button {
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font: 500 var(--size-small) / 1 var(--font-ui);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.quote__button:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.quote__button::before, .quote__button::after {
  width: 1.1em;
  height: .75em;
  background: currentColor;
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}
.quote__button--prev::before { content: ''; transform: scaleX(-1); }
.quote__button--next::after { content: ''; }
@media (prefers-reduced-motion: no-preference) {
  .quote.is-entering { animation: quote-in .6s var(--ease); }
}
@keyframes quote-in { from { opacity: 0; transform: translateY(.75rem); } }

/* financing in eight steps: a deal. Three by three: their photo in the
   middle square, the eight steps as cards around it in reading order. The
   cards start as a loose stack lying on the photo and, as the section
   comes up the screen, are dealt out one at a time to their squares (the
   script sets each card's transform from one progress value). Below
   1024px the plain layout is one column, the photo first; the phone
   version's own layer (after this block) builds on it. Without the
   script, or with reduced motion, every card is in its square or its
   place in the column. */
.financing { overflow-x: clip; }
.financing__head { text-align: center; }
.financing__head .eyebrow { color: var(--aqua); }
.financing__title {
  margin-top: 1rem;
  padding-left: .12em;
  color: var(--aqua);
  font: 400 clamp(1.75rem, .9rem + 3.6vw, 4.25rem) / 1.08 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: .045em .045em 0 var(--blue);
  text-wrap: balance;
}
.financing__table { --gap: clamp(1rem, 1.8vw, 1.5rem); position: relative; margin-top: clamp(3rem, 6vw, 5rem); }
.financing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
  counter-reset: card;
}
.financing__card:nth-child(4) { grid-area: 2 / 1; }
.financing__card:nth-child(5) { grid-area: 2 / 3; }
.financing__card:nth-child(6) { grid-area: 3 / 1; }
.financing__card:nth-child(7) { grid-area: 3 / 2; }
.financing__card:nth-child(8) { grid-area: 3 / 3; }
.financing__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  color: var(--slate);
  counter-increment: card;
  box-shadow: 0 2.25rem 3.5rem -2rem rgb(3 0 74 / .7);
  transform-origin: 50% 60%;
}
.financing__card::before {
  content: counter(card, decimal-leading-zero);
  color: var(--navy);
  font: 400 clamp(1.5rem, 1.1rem + 1vw, 2.125rem) / 1 var(--font-display);
  letter-spacing: .12em;
  text-shadow: .06em .06em 0 var(--echo, var(--aqua));
}
.financing__card p { text-wrap: pretty; }
.financing__card b { color: var(--navy); }
.financing__card--aqua { --echo: var(--white); background: var(--aqua); }
.financing__card--fog { background: var(--fog); }
.financing__card--white { background: var(--white); }
.financing__card:nth-child(1) { z-index: 8; }
.financing__card:nth-child(2) { z-index: 7; }
.financing__card:nth-child(3) { z-index: 6; }
.financing__card:nth-child(4) { z-index: 5; }
.financing__card:nth-child(5) { z-index: 4; }
.financing__card:nth-child(6) { z-index: 3; }
.financing__card:nth-child(7) { z-index: 2; }
.financing__card:nth-child(8) { z-index: 1; }
/* the middle square: rows are equal (1fr in an auto-height grid), so the
   photo's place can be worked out from the table's own size */
.financing__photo {
  position: absolute;
  top: calc((100% - 2 * var(--gap)) / 3 + var(--gap));
  left: calc((100% - 2 * var(--gap)) / 3 + var(--gap));
  width: calc((100% - 2 * var(--gap)) / 3);
  height: calc((100% - 2 * var(--gap)) / 3);
  margin: 0;
  isolation: isolate;
}
.financing__photo::before {
  content: '';
  position: absolute;
  inset: -.6rem;
  z-index: -1;
  border: 1px solid rgb(17 204 238 / .6);
}
.financing__crop { display: block; height: 100%; overflow: hidden; }
.financing__crop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
/* where each card will land: a hairline square, seen while it waits */
.financing__places {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.financing__places span { border: 1px solid rgb(255 255 255 / .16); }
.financing__places span:nth-child(4) { grid-area: 2 / 1; }
.financing__places span:nth-child(5) { grid-area: 2 / 3; }
.financing__places span:nth-child(6) { grid-area: 3 / 1; }
.financing__places span:nth-child(7) { grid-area: 3 / 2; }
.financing__places span:nth-child(8) { grid-area: 3 / 3; }
.financing__action { margin-top: clamp(3rem, 6vw, 4.5rem); text-align: center; }
/* below 1024px: one column, the photo first */
@media (max-width: 1023.98px) {
  .financing__table { max-width: 34rem; margin-inline: auto; }
  .financing__photo { position: relative; top: auto; left: auto; width: auto; height: auto; aspect-ratio: 5 / 4; margin-bottom: var(--gap); }
  .financing__crop img { object-position: 50% 10%; }
  .financing__cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .financing__card:nth-child(n) { grid-area: auto; }
  .financing__places { display: none; }
}

/* phones, dealoff, tap or swipe (owner, 2026-10-13: the held screen became
   a tap, then a swipe, with "Tap →" on card 1). One screen holds it all:
   the title, their photo right under it (landscape), the eight cards
   stacked under the photo (card 1 on top and readable, the rest squared up
   a little untidily beneath) and eight dots counting them. It scrolls by
   like the rest of the page (the script adds is-stacked). A tap, or a swipe
   to the right, deals the top card off (a tap to one side then the other,
   a swipe to the right), passing behind the photo, never over it; a swipe
   to the left brings the card before back. Card 8 stays; when it is reached
   the photo's frame turns aqua, and the next tap gathers the stack back to
   card 1. The script sizes the photo to the room left (never under 90px),
   and the screen is then made exactly as tall as what it holds.
   On desktop the scene, the pin and the stage are only wrappers. */
.financing__scene, .financing__pin, .financing__stage { display: contents; }
@media (max-width: 1023.98px) {
  .financing.is-stacked .financing__scene { display: block; }
  .financing.is-stacked .financing__pin {
    --stage-w: min(90vw, 23rem);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - var(--header-height) + var(--pin-lift, 0px));
    height: calc(100svh - var(--header-height) + var(--pin-lift, 0px));
    padding: .9rem 0 .75rem;
  }
  .financing.is-stacked .financing__head { flex: none; }
  .financing.is-stacked .financing__table { flex: none; max-width: none; margin-top: 1.1rem; }
  .financing.is-stacked .financing__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2.6svh, 1.5rem);
  }
  /* the photo: landscape, on top of everything the stage holds */
  .financing.is-stacked .financing__photo {
    order: 1;
    z-index: 20;
    flex: none;
    width: var(--stage-w);
    /* the script fits it to the room the rest leaves (--photo-h) */
    height: var(--photo-h, min(11.5rem, 21svh));
    aspect-ratio: auto;
    margin: 0 .7rem .7rem 0;
  }
  .financing.is-stacked .financing__crop img { object-position: 50% 14%; }
  .financing.is-stacked .financing__photo::before {
    inset: .7rem -.7rem -.7rem .7rem;
    border-color: rgb(17 204 238 / .5);
    transition: background-color .7s var(--ease), border-color .7s var(--ease);
  }
  .financing.is-stacked.is-dealt .financing__photo::before { border-color: var(--aqua); background: var(--aqua); }
  /* the stack: every card in one cell, as tall as the tallest */
  .financing.is-stacked .financing__cards {
    order: 2;
    flex: none;
    display: grid;
    width: var(--stage-w);
  }
  .financing.is-stacked .financing__cards .financing__card {
    grid-area: 1 / 1;
    align-self: stretch;
    transform-origin: 50% 80%;
    will-change: transform;
    box-shadow: 0 1.75rem 2.5rem -1.5rem rgb(3 0 74 / .85);
  }
  /* the count: one dot per card, filled once it has been dealt */
  .financing.is-stacked .financing__places {
    order: 3;
    position: static;
    flex: none;
    display: flex;
    justify-content: center;
    gap: .55rem;
    margin-top: .25rem;
  }
  .financing.is-stacked .financing__places span {
    width: .5rem;
    height: .5rem;
    border: 1px solid rgb(255 255 255 / .5);
    border-radius: 50%;
    transition: background-color .3s var(--ease), border-color .3s var(--ease), scale .3s var(--ease);
  }
  .financing.is-stacked .financing__places span.is-on { border-color: var(--aqua); background: var(--aqua); }
  .financing.is-stacked .financing__places span.is-now { scale: 1.4; border-color: var(--white); }
  /* the button follows the dots closely */
  .financing.is-stacked .financing__action { margin-top: 1.25rem; }
  /* the stack is the control: a tap, a swipe, or the keyboard once it has
     focus. pan-y keeps the page scrolling up and down over it and gives
     sideways moves to the script. */
  .financing.is-stacked .financing__cards {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
  }
  .financing.is-stacked .financing__cards:focus { outline: none; }
  .financing.is-stacked .financing__cards:focus-visible { outline: 2px solid var(--aqua); outline-offset: .6rem; }
  /* "Tap →" on card 1 only (owner, 2026-10-13: tap, not swipe), top right, level with its number; the arrow
     nudges right until the card is dealt */
  .financing.is-stacked .financing__card:first-child::after {
    content: 'Tap \2192';
    position: absolute;
    top: calc(clamp(1.5rem, 2.4vw, 2.25rem) + .3rem);
    right: clamp(1.5rem, 2.4vw, 2.25rem);
    color: var(--navy);
    font: 500 .9375rem / 1 var(--font-sans);
    letter-spacing: .02em;
    animation: fx-nudge 1.8s var(--ease) infinite;
  }
  @keyframes fx-nudge { 0%, 55%, 100% { translate: 0 0; } 28% { translate: .4rem 0; } }
}
/* the narrowest phones: a little narrower, so the tilted cards under the top
   one stay inside the screen */
@media (max-width: 359.98px) {
  .financing.is-stacked .financing__pin { --stage-w: 84vw; }
}
/* tablets: the same screen, larger */
@media (min-width: 600px) and (max-width: 1023.98px) {
  .financing.is-stacked .financing__pin { --stage-w: min(80vw, 32rem); }
  .financing.is-stacked .financing__card p { font-size: var(--size-lead); }
}

/* demystifying home loans: her introduction and the three loan steps as
   four panels, one open at a time. The introduction's panel carries the
   section title as its heading. Without the script every panel is open,
   its photo beside its words.
   With it (.is-live): wide screens show one row, the open panel's words on a
   white sheet and the others folded to photo strips with the heading running
   up them; narrow screens stack the panels, the others folded to photo
   bands. State, all set by the script:
     .is-open      the panel's size (row width, or stack height) and photo
     .is-expanded  where its words sit (on the sheet, or as the strip label)
     .is-quiet     its words faded out while the two above change */
/* no browser scroll anchoring here: on phones js/site.js part 9 keeps the
   tapped panel in place itself, and Chrome adding its own made two moves */
.loans { background: var(--fog-light); overflow-anchor: none; }
.loans__panels {
  --fold: .75s;                                  /* the resize; js/site.js matches it */
  --copy: clamp(24rem, 30vw, 30rem);             /* the sheet's width */
  --pad: clamp(1.75rem, 2.6vw, 2.75rem);
  --band: clamp(6rem, 24vw, 8.5rem);             /* a folded panel's height, stacked */
}
/* where each photo is held (object-position): --mx/--my when it is open,
   --fx across a folded strip, --band-y across a folded band */
.loans__panel--intro { --mx: 50%; --my: 18%; --fx: 61%; --band-y: 9%; }
.loans__panel--approval { --mx: 51%; --my: 24%; --fx: 51%; --band-y: 13%; }
.loans__panel--application { --mx: 47%; --my: 20%; --fx: 48%; --band-y: 27%; }
.loans__panel--closing { --mx: 54%; --my: 30%; --fx: 50%; --band-y: 19%; }

/* at rest: each panel open, photo beside words */
.loans__panels { display: grid; gap: 1rem; }
.loans__panel { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--white); }
.loans__photo { position: relative; min-height: 24rem; overflow: hidden; background: var(--navy); }
.loans__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--mx) var(--my);
}
.loans__sheet { display: none; }
.loans__copy { align-self: center; padding: var(--pad); }
.loans__heading {
  margin-top: .6rem;
  color: var(--navy);
  font: 500 clamp(2rem, 1.4rem + 1.6vw, 2.75rem) / 1.1 var(--font-serif);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.loans__body { margin-top: 1.25rem; text-wrap: pretty; }
/* the introduction's heading is the section title, in the page's display
   type: aqua Mattone with the navy echo, sized so DEMYSTIFYING (10.8em with
   its tracking) fills the sheet's measure */
.loans__heading--title {
  margin-top: 0;
  color: var(--aqua);
  font: 400 clamp(1.5rem, 2.2vw, 2.15rem) / 1.05 var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: .05em .05em 0 var(--navy);
}
.loans__body--lead { margin-top: 1.5rem; color: var(--navy); }
/* the heading's button wears the heading's type (browsers reset every one
   of these on buttons) */
.loans__toggle {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  text-shadow: inherit;
  text-indent: inherit;
  white-space: inherit;
  cursor: inherit;
}
.loans__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

/* start the process: a white bar closing the panels, in the open panels'
   colours (blue eyebrow, navy heading, slate words) */
.loans__start {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto;
  gap: 1.5rem clamp(2rem, 4vw, 4rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--white);
}
.loans__start-heading { margin-top: .5rem; color: var(--navy); font: 500 clamp(1.875rem, 1.4rem + 1.3vw, 2.625rem) / 1.1 var(--font-serif); }
.loans__start-text { text-wrap: pretty; }

@media (max-width: 1023.98px) {
  .loans__start { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 1.25rem; }
}
@media (max-width: 767.98px) {
  .loans__panel { grid-template-columns: minmax(0, 1fr); }
  .loans__heading--title { font-size: min(calc((100vw - 6rem) / 11.2), 2.15rem); }
  .loans__photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* live: what every layout shares --------------------------------------- */
.is-live .loans__panel {
  overflow: hidden;
  cursor: pointer;
  transition:
    flex-grow var(--fold) var(--ease),
    grid-template-rows var(--fold) var(--ease),
    opacity 1s var(--ease) var(--rise, 0s),
    translate 1.2s var(--ease) var(--rise, 0s);
}
.is-live .loans__panel.is-open { cursor: auto; }
.is-live .loans__panel:nth-child(2) { --rise: .1s; }
.is-live .loans__panel:nth-child(3) { --rise: .2s; }
.is-live .loans__panel:nth-child(4) { --rise: .3s; }
/* a navy shade under a folded panel's heading */
.is-live .loans__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--shade);
  transition: opacity var(--fold) var(--ease);
}
.is-live .is-open .loans__photo::after { opacity: 0; }
.is-live .loans__photo img { transition: object-position var(--fold) var(--ease); }
/* folded: the words are hidden, their whole box, so nothing clipped inside
   the strip takes up room beyond it; the heading stays, as the panel's label */
.is-live .loans__panel:not(.is-expanded) .loans__copy { visibility: hidden; }
.is-live .loans__panel:not(.is-expanded) .loans__heading { position: absolute; margin: 0; color: var(--white); visibility: visible; }
/* a + in a ring marks a folded panel as one to open */
.is-live .loans__panel::after {
  content: '';
  position: absolute;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgb(255 255 255 / .7);
  border-radius: 50%;
  background:
    linear-gradient(var(--white), var(--white)) center / .75rem 1px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 1px .75rem no-repeat,
    rgb(5 1 112 / .45);                          /* holds its own on a white wall */
  transition: opacity .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.is-live .loans__panel:is(.is-open, .is-quiet)::after { opacity: 0; }
/* the words fade in after a change, a beat apart; out quickly before one */
.is-live .loans__copy > * {
  transition: opacity .55s var(--ease) var(--beat, 0s), translate .7s var(--ease) var(--beat, 0s);
}
.is-live .is-expanded .loans__heading { --beat: .07s; }
.is-live .is-expanded .loans__body { --beat: .14s; }
.is-live .is-quiet .loans__copy > * { opacity: 0; transition-duration: .16s; transition-delay: 0s; }
.is-live .is-quiet.is-expanded .loans__copy > * { translate: 1.25rem 0; }
.is-live .is-quiet:not(.is-expanded) .loans__heading { translate: 0 .75rem; }

/* the row rises in, panel by panel, the first time it is seen */
@media (prefers-reduced-motion: no-preference) {
  .is-live:not(.is-in) .loans__panel { opacity: 0; translate: 0 2.5rem; }
}
@media (hover: hover) and (pointer: fine) {
  .is-live .loans__panel:not(.is-open):hover::after { border-color: var(--aqua); background-color: rgb(17 204 238 / .4); }
}
/* the focus ring goes round the whole panel, not just its heading */
@supports selector(:has(*)) {
  .is-live .loans__toggle:focus-visible { outline: none; }
  .is-live .loans__panel:has(.loans__toggle:focus-visible) { outline: 2px solid var(--blue); outline-offset: 4px; }
}

/* live, wide: one row --------------------------------------------------- */
@media (min-width: 1024px) {
  .loans__panels.is-live {
    display: flex;
    height: max(clamp(36rem, 46vw, 43rem), var(--row, 0px));   /* --row: the tallest step's words, measured */
  }
  .is-live .loans__panel {
    --shade: linear-gradient(180deg, rgb(5 1 112 / 0) 40%, rgb(5 1 112 / .85));
    flex: 1 1 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) var(--copy);
    background: var(--navy);
  }
  .is-live .loans__panel.is-open { flex-grow: 8; }   /* each folded strip an eleventh of the row */
  /* the photo spans from the panel's left edge to the sheet's: both edges
     sit at (panel width - the open share of --copy) through every frame of
     the resize, so nothing behind them ever shows */
  .is-live .loans__photo { position: absolute; inset: 0; min-height: 0; }
  .is-live .loans__photo img {
    right: auto;
    object-position: var(--fx) var(--my);
    transition: width var(--fold) var(--ease), object-position var(--fold) var(--ease);
  }
  .is-live .is-open .loans__photo img { width: calc(100% - var(--copy)); object-position: var(--mx) var(--my); }
  /* the sheet slides in from the panel's right edge as it opens */
  .is-live .loans__sheet {
    position: absolute;
    inset: 0 auto 0 calc(100% - var(--copy));
    display: block;
    width: var(--copy);
    background: var(--white);
    translate: 100% 0;
    visibility: hidden;                          /* once it has slid away */
    transition: translate var(--fold) var(--ease), visibility 0s var(--fold);
  }
  .is-live .is-open .loans__sheet { translate: 0 0; visibility: visible; transition-delay: 0s; }
  .is-live .loans__sheet::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--aqua);
    scale: 1 0;
    transform-origin: top;
    transition: scale .9s var(--ease) .1s;
  }
  .is-live .is-expanded:not(.is-quiet) .loans__sheet::before { scale: 1 1; }
  .is-live .is-quiet .loans__sheet::before { transition-duration: .16s; transition-delay: 0s; }
  .is-live .loans__copy { grid-area: 1 / 2; z-index: 1; width: var(--copy); }
  /* folded: the heading runs up the middle of the strip, bottom to top,
     from just above the + ring at its foot */
  .is-live .loans__panel:not(.is-expanded) .loans__heading {
    left: 50%;
    bottom: calc(1.5rem + 2.25rem + 1rem);
    margin-left: -.55em;                         /* half its line, so it sits centred */
    writing-mode: vertical-rl;
    rotate: 180deg;
    white-space: nowrap;
    font-size: clamp(1.5rem, 1.05rem + .95vw, 2.125rem);
  }
  /* the title runs up its strip in its own type, smaller */
  .is-live .loans__panel:not(.is-expanded) .loans__heading--title {
    color: var(--aqua);
    font-size: clamp(.95rem, .55rem + .6vw, 1.25rem);
    text-shadow: -.06em -.06em 0 var(--navy);   /* turned with the text, so written up-left to land down-right */
  }
  .is-live .loans__panel::after { left: calc(50% - 1.125rem); bottom: 1.5rem; }
}

/* live, narrow: the panels stacked ------------------------------------- */
@media (max-width: 1023.98px) {
  .is-live .loans__panel {
    --shade: linear-gradient(90deg, rgb(5 1 112 / .8), rgb(5 1 112 / .45) 45%, rgb(5 1 112 / 0) 80%);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 0fr;
  }
  .is-live .loans__panel.is-open { grid-template-rows: auto 1fr; }
  /* the fold is instant here (the rows and the photo's height), not a 750ms
     resize: the open panel folding above the one tapped moves it, and holding
     it still through an animated fold meant scrolling the page every frame,
     which jittered on phones (owner report, 2026-10-13). The words still
     fade, and js/site.js part 9 scrolls once, in the same frame */
  .is-live .loans__panel { transition: opacity 1s var(--ease) var(--rise, 0s), translate 1.2s var(--ease) var(--rise, 0s); }
  .is-live .loans__photo {
    min-height: 0;
    aspect-ratio: auto;
    height: var(--band);
  }
  .is-live .is-open .loans__photo { height: min(68vw, 32rem); }
  .is-live .loans__photo img { object-position: var(--mx) var(--band-y); }
  .is-live .is-open .loans__photo img { object-position: var(--mx) var(--my); }
  /* the words fold away to nothing: the 0fr row and this overflow */
  .is-live .loans__copy { min-height: 0; overflow: hidden; align-self: stretch; padding-block: 0; }
  .is-live .loans__copy > :first-child { margin-top: var(--pad); }
  .is-live .loans__copy > :last-child { padding-bottom: var(--pad); }
  /* folded: the heading sits across the band */
  .is-live .loans__panel:not(.is-expanded) .loans__heading {
    inset: 0 calc(var(--pad) + 3.5rem) auto var(--pad);   /* clear of the + ring */
    display: flex;
    align-items: center;
    height: var(--band);
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.125rem);
    line-height: 1.05;
    text-wrap: balance;
  }
  .is-live .loans__panel:not(.is-expanded) .loans__heading--title {
    color: var(--aqua);
    font-size: clamp(1rem, .8rem + 1.1vw, 1.375rem);
    line-height: 1.15;
  }
  .is-live .loans__panel::after { top: calc(var(--band) / 2 - 1.125rem); right: var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  .loans__panels *, .loans__panels *::before, .loans__panels *::after, .is-live .loans__panel { transition: none !important; animation: none !important; }
}
/* measuring the tallest step (js/site.js): every panel's words laid out
   open for one synchronous read, never painted */
.loans__panels.is-measuring * { transition: none !important; }

/* contact: three rows of CONTACT US on black that run all the time, the outer
   two to the left and the outline row between them to the right (js/site.js
   makes each row a marquee, part 4). A white card rises over the foot of the
   rows: their photo on the aqua offset block, hanging out of the card's top
   edge, beside her copy. On phones the rows are sized so one whole word fits
   the width. */
.contact {
  --row: clamp(2.125rem, .5rem + 8.6vw, 9.75rem);
  position: relative;
  overflow-x: clip;
  padding-bottom: calc(var(--section-space) * .9);
  background: var(--black);
}
.contact__wall {
  display: grid;
  font: 400 var(--row) / .98 var(--font-display);
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
}
/* each row clips its own words, so no box runs past the window. A loop is
   three words, about half an em a second at any size (owner, 2026-10-13:
   half the first speed; the ribbons run at .7 to .8) */
.contact__row { --marquee-time: 60s; overflow: hidden; }
/* a group ends on a space, kept, so the join is the gap between any two words */
.contact__row .marquee__group { padding-right: 0; white-space: pre; }
.contact__row--solid { color: var(--aqua); text-shadow: .045em .045em 0 var(--blue); }
.contact__row--outline {
  color: rgb(17 204 238 / .14);
  -webkit-text-stroke: max(1px, .012em) var(--aqua);
}
/* the card sits over the lower part of the bottom row */
.contact__card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  margin-top: calc(var(--row) * -.55);
  padding: clamp(2.5rem, 4.5vw, 4.25rem);
  background: var(--white);
  box-shadow: 0 3rem 5rem -2.5rem rgb(17 204 238 / .35);
  translate: 0 var(--card-y, 0px);
}
/* the photo hangs out of the card's top edge, in front of the rows */
.contact__photo { margin-top: calc(clamp(2.5rem, 4.5vw, 4.25rem) * -1 - clamp(2rem, 5vw, 5rem)); }
.contact__photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.contact__copy { text-wrap: pretty; }
.contact__copy > * + * { margin-top: 1.1em; }
.contact__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.pill {
  padding: .7rem 1.4rem;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--navy);
  font: 500 var(--size-small) / 1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.contact__copy > .contact__title { margin-top: 1.5rem; font-size: clamp(2.125rem, 1.5rem + 2.2vw, 3.5rem); }
.contact__copy > .contact__title + p { margin-top: 1.4rem; }
.contact__copy > .button { margin-top: 2.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .contact__copy > * { opacity: 0; translate: 0 1.25rem; transition: opacity .9s var(--ease), translate 1.1s var(--ease); }
  .js .contact__copy > :nth-child(2) { transition-delay: .08s; }
  .js .contact__copy > :nth-child(n + 3) { transition-delay: .16s; }
  .js .contact.is-visible .contact__copy > * { opacity: 1; translate: 0 0; }
}
/* with a mouse, the aqua block slides a little further out from the photo */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .contact__photo::before { transition: translate .6s var(--ease); }
  .contact__photo:hover::before { translate: .6rem .6rem; }
}
@media (max-width: 767.98px) {
  .contact { --row: 9.4vw; }
  .contact__wall { line-height: 1.1; }
  .contact__card { grid-template-columns: minmax(0, 1fr); width: calc(100% - 2 * var(--gutter)); margin-top: 2.5rem; padding: 0 1.5rem 2.5rem; }
  .contact__photo { width: calc(100% + 1.75rem); margin: 0 0 1rem -1.5rem; }
  .contact__photo img { aspect-ratio: 1; object-position: 50% 22%; }
}

/* newsletter */
.newsletter__inner { max-width: 46rem; }
.newsletter .masthead .title { margin-top: .75rem; }
.newsletter .masthead .lead { margin-top: 1.25rem; text-wrap: balance; }
.newsletter__form { margin-top: 2.5rem; }
.newsletter__row { display: flex; gap: .75rem; }
.newsletter__field { flex: 1; }
.newsletter__field input {
  width: 100%;
  height: 3.375rem;
  padding: 0 1.5rem;
  border: 1px solid rgb(5 1 112 / .35);
  border-radius: 999px;
  background: var(--white);
  font-size: max(16px, var(--size-body));
  transition: border-color .25s var(--ease);
}
.newsletter__field input:focus { border-color: var(--navy); outline: none; }
.newsletter__field input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  font-size: .8125rem;
  line-height: 1.65;
}
.consent input {
  appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: .15rem 0 0;
  border: 1px solid var(--navy);
  border-radius: .25rem;
  background: var(--white);
  cursor: pointer;
}
.consent input:checked { background: var(--navy); }
.consent input:checked::before {
  content: '';
  width: .55rem;
  height: .3rem;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: translateY(-.05rem) rotate(-45deg);
}
.consent a { text-underline-offset: .15em; }
@media (max-width: 767.98px) {
  .newsletter__row { flex-direction: column; }
}

/* footer */
.site-footer { background: var(--navy-deep); color: var(--text-on-dark); }
.site-footer__feature { position: relative; isolation: isolate; display: grid; min-height: clamp(16rem, 32vw, 26rem); overflow: hidden; }
.site-footer__brand { align-self: center; padding-block: 3rem; }
.site-footer__brand img { width: clamp(11rem, 20vw, 17rem); }
.site-footer__photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -1;
  width: 62%;
  height: 100%;
  object-fit: cover;
  /* wide screens crop it top and bottom: keep near the top, so the cut is at
     their waist and never through their heads (15%: framed by the owner in
     the editor, 2026-10-13) */
  object-position: 50% 15%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem 2rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  border-top: 1px solid var(--rule-on-dark);
}
.site-footer__heading {
  color: var(--white);
  font: 500 var(--size-small) / 1.5 var(--font-sans);
  letter-spacing: .16em;
}
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 1rem; }
.site-footer__nav a { text-decoration: none; transition: color .25s var(--ease); }
.site-footer__nav a:hover { color: var(--aqua); }
.site-footer__actions { display: flex; align-items: center; gap: 1.5rem; }
.site-footer__social { width: 1.5rem; fill: currentColor; transition: color .25s var(--ease); }
/* the TREC notices: under the rule, above the copyright, at 14px (TREC asks
   for them readily noticeable on the home page, no smaller than 10pt) */
.site-footer__notices {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-on-dark);
  font-size: .875rem;
}
.site-footer__notices a { text-decoration: underline; text-underline-offset: .2em; transition: color .25s var(--ease); }
.site-footer__notices a:hover { color: var(--aqua); }
.site-footer__legal {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-on-dark);
  font-size: .75rem;
  letter-spacing: .12em;
}
.site-footer__notices + .site-footer__legal { padding-top: 0; border-top: 0; }
@media (max-width: 767.98px) {
  /* logo, then the photo full width beneath it */
  .site-footer__feature { min-height: 0; }
  .site-footer__brand { padding-block: 3rem 2rem; }
  .site-footer__brand img { width: min(60vw, 14rem); }
  .site-footer__photo {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 8 / 5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%);
    mask-image: linear-gradient(180deg, transparent, #000 30%);
  }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
