/* Ritu.ca — open-house sign and feature-sheet world.
   One family (Archivo, variable width). Tokens first; everything else reads them. */

:root {
  --stone: #e2e4de;        /* page ground: cool limestone */
  --stone-2: #d5d8d0;      /* one tone step for sheets */
  --paper: #f1f2ee;        /* reading surfaces, form fields */
  --ink: #1c2427;          /* slate shingle */
  --ink-2: #485357;        /* secondary text, 6:1 on stone */
  --folder: #0f4546;       /* the insurance folder */
  --folder-deep: #0a3233;
  --on-folder: #e6ebe6;
  --on-folder-2: #bdd9cf;
  --brick: #9b3a25;        /* Ontario brick: mortgage path + primary action only */
  --brick-deep: #7e2d1b;
  --brass: #c9a24c;        /* hooks, chains, type on green */
  --brass-light: #dcbd72;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --m: clamp(16px, 3.2vw, 44px);          /* outer margin, equal both sides */
  --section: clamp(88px, 11vw, 184px);    /* gap between sections */
  --measure: 66ch;

  --t-display: clamp(2.5rem, 1.2rem + 5.2vw, 6rem);
  --t-h2: clamp(1.9rem, 1.1rem + 2.5vw, 3.4rem);
  --t-h3: clamp(1.2rem, 1.05rem + .5vw, 1.5rem);
  --t-body: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --t-small: .875rem;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --radius: 2px;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-stretch: 100%;
  font-variation-settings: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
img, svg, canvas, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--folder); color: var(--on-folder); }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 3px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brass); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 800; font-stretch: var(--wide); letter-spacing: -.03em; line-height: .98; }
h1 { font-size: var(--t-display); letter-spacing: -.04em; line-height: .94; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; font-stretch: var(--semi); letter-spacing: -.01em; line-height: 1.15; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.num, output, .figure { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */

/* Scrollbar in the palette */
html { scrollbar-color: var(--ink-2) var(--stone); }

.wrap { padding-inline: var(--m); max-width: 1680px; margin-inline: auto; }

.skip { position: fixed; left: var(--m); top: -80px; z-index: 200; background: var(--ink); color: var(--paper); padding: 12px 18px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 22px;
  border: 0; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-weight: 650; font-stretch: var(--semi); font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center;
  transition: background-color 160ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-brick { background: var(--brick); color: #fff; }
.btn-folder { background: var(--folder); color: var(--on-folder); }
.btn-brass { background: var(--brass); color: var(--folder-deep); }
.btn-quiet { background: transparent; color: inherit; border: 2px solid currentColor; padding: 10px 20px; } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #000; }
  .btn-brick:hover { background: var(--brick-deep); }
  .btn-folder:hover { background: var(--folder-deep); }
  .btn-brass:hover { background: var(--brass-light); }
  .btn-quiet:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
  .on-dark .btn-quiet:hover { background: var(--on-folder); color: var(--folder-deep); border-color: var(--on-folder); }
}
.btn[disabled] { opacity: .55; cursor: progress; }
.ext-icon { width: .8em; height: .8em; flex: none; display: inline-block; vertical-align: -.02em; margin-left: .3em; }
.btn .ext-icon { margin-left: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--stone); transition: box-shadow 200ms ease; } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.site-header.is-stuck { box-shadow: 0 1px 0 rgb(28 36 39 / .12), 0 8px 24px -16px rgb(28 36 39 / .35); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.nav { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.brand b { font-size: 2.1rem; font-weight: 850; font-stretch: var(--wide); letter-spacing: -.05em; line-height: 1; }
.brand span { font-size: .9rem; color: var(--ink-2); font-weight: 500; }
.links { display: flex; gap: 4px; }
.links a { padding: 10px 12px; text-decoration: none; font-weight: 550; font-size: .97rem; border-radius: var(--radius); }
.links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brick); text-decoration-thickness: 3px; text-underline-offset: 8px; }
@media (hover: hover) and (pointer: fine) { .links a:hover { background: var(--stone-2); } }
.nav-call { white-space: nowrap; }
.menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; background: transparent; border: 0; border-radius: var(--radius); font-weight: 600; box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.menu svg { width: 18px; height: 18px; }
.menu[aria-expanded="true"] .i-open, .menu[aria-expanded="false"] .i-close { display: none; }

@media (max-width: 1080px) {
  .links { gap: 0; }
  .links a { padding: 10px 8px; font-size: .92rem; }
}
@media (max-width: 960px) {
  .nav { min-height: 64px; gap: 12px; }
  .brand b { font-size: 1.8rem; }
  .menu { display: inline-flex; }
  .nav-call { display: none; }
  .links {
    position: absolute; inset: 100% 0 auto 0; display: none; flex-direction: column;
    padding: 8px var(--m) 24px; background: var(--stone); box-shadow: 0 18px 30px -18px rgb(28 36 39 / .45); /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
  }
  .links.open { display: flex; }
  .links a { padding: 14px 0; font-size: 1.25rem; font-stretch: var(--semi); font-weight: 650; }
}
@media (max-width: 420px) { .brand span { display: none; } }

/* ---------- Home hero: the two hanging signs ---------- */
.hero { padding-top: clamp(20px, 3vw, 44px); }
.hero-head { margin-bottom: clamp(18px, 2.2vw, 30px); }
.hero-head h1 { font-size: clamp(2.4rem, .9rem + 4.6vw, 5.2rem); max-width: 20ch; }
.hero-aside { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; margin-top: clamp(16px, 2vw, 26px); }
.hero-aside p { font-size: 1.08rem; margin: 0; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .hero-actions .btn-quiet { display: none; } .hero-actions .btn { flex: 1 1 100%; } }
/* The hero carries its own rate and chat actions, so the floating copies wait until it scrolls away. */
.hero-visible .rate-launch, .hero-visible .photo-chat-launch { display: none; }
.rate-launch, .photo-chat-launch { transition: opacity 200ms ease, transform 200ms var(--ease-out), visibility 200ms, background-color 160ms ease; }

.stage {
  --hx-m: 19%; --hx-i: 86.5%;            /* hand positions across the photo */
  --img-top: -8cqw;                      /* crop: photo shown from 12% down */
  --hook-m: 27.4cqw; --hook-i: 29.6cqw;  /* where each palm sits, from the stage top */
  --chain: 3.2cqw;
  container-type: inline-size;
  position: relative; overflow: hidden;
  margin-inline: var(--m);
  aspect-ratio: 2.2 / 1;
  background: #d9cdb9;
  isolation: isolate;
}
.stage-camera {
  position: absolute; inset: 0;
  transform-origin: 50% 45%;
  transition: transform 900ms var(--ease-out);
  will-change: auto;
}
.stage-camera picture { position: absolute; inset: 0; }
.stage-camera img { position: absolute; left: 0; top: var(--img-top); width: 100%; height: auto; max-width: none; }
.stage-shade { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.stage-shade::before, .stage-shade::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; background: rgb(18 26 28 / .34); opacity: 0; transition: opacity 500ms var(--ease-out); }
.stage-shade::before { left: 0; } .stage-shade::after { right: 0; }
/* The sign not being chosen steps back; the photograph is never split. */
.stage[data-look="mortgage"] .sign-insurance, .stage[data-look="insurance"] .sign-mortgage { opacity: .6; }
.stage[data-look="mortgage"] .stage-camera { transform-origin: var(--hx-m) 60%; transform: scale(1.045); }
.stage[data-look="insurance"] .stage-camera { transform-origin: var(--hx-i) 65%; transform: scale(1.045); }
.stage-motes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; mix-blend-mode: screen; }

.sign {
  position: absolute; z-index: 3; top: 0; left: 0;
  width: clamp(200px, 21cqw, 300px);
  text-decoration: none;
  transition: translate 900ms var(--ease-out), opacity 300ms ease;
}
.sign-mortgage { left: var(--hx-m); top: var(--hook-m); margin-left: calc(clamp(200px, 21cqw, 300px) / -2); }
.sign-insurance { left: var(--hx-i); top: var(--hook-i); margin-left: calc(clamp(200px, 21cqw, 300px) / -2); }
/* keep the other sign attached to its hand while the camera leans away */
.stage[data-look="mortgage"] .sign-insurance { translate: 3cqw .1cqw; }
.stage[data-look="insurance"] .sign-mortgage { translate: -3cqw -.1cqw; }
.sign-body { display: block; transform-origin: 50% 0; }
.sign-hook { display: block; position: relative; height: var(--chain); }
.sign-hook::before, .sign-hook::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brass); }
.sign-hook::before { left: 24%; transform: rotate(9deg); transform-origin: 50% 0; }
.sign-hook::after { right: 24%; transform: rotate(-9deg); transform-origin: 50% 0; }
.sign-hook i { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brass); }
.sign-panel {
  display: grid; gap: 4px; padding: 16px 18px 15px;
  border-radius: 0;
  border-bottom: 5px solid rgb(0 0 0 / .28); /* enamel edge, a tone step rather than a shadow */
}
.sign-panel strong { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: clamp(1.35rem, 2.15cqw, 1.9rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.035em; line-height: 1; }
.sign-panel strong svg { width: .8em; height: .8em; flex: none; transition: transform 220ms var(--ease-out); }
.sign-panel span { font-size: .9rem; line-height: 1.3; }
.sign-mortgage .sign-panel { background: var(--brick); color: #fff; }
.sign-mortgage .sign-panel span { color: #f6dcd3; }
.sign-insurance .sign-panel { background: var(--folder); color: var(--on-folder); }
.sign-insurance .sign-panel strong { color: var(--brass-light); }
.sign-insurance .sign-panel span { color: var(--on-folder-2); }
.sign:focus-visible { outline: none; }
.sign:focus-visible .sign-panel { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 7px var(--ink); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
@media (hover: hover) and (pointer: fine) { .sign:hover .sign-panel strong svg { transform: translate(3px, -3px); } }

.stage-foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 12px; pointer-events: none; }
.stage-note { margin: 0; padding: 6px 10px; background: rgb(28 36 39 / .78); color: #f1f2ee; font-size: .8125rem; line-height: 1.3; border-radius: var(--radius); }
.motion-toggle { white-space: nowrap; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--radius); background: rgb(28 36 39 / .82); color: #f1f2ee; font-size: .82rem; font-weight: 600; }
.motion-toggle svg { width: 14px; height: 14px; }
.motion-toggle[aria-pressed="true"] .i-pause, .motion-toggle[aria-pressed="false"] .i-play { display: none; }
@media (hover: hover) and (pointer: fine) { .motion-toggle:hover { background: var(--ink); } }
.js-off .motion-toggle, .no-motion-ui .motion-toggle { display: none; }
.hero-hint { margin: 14px var(--m) 0; font-size: var(--t-small); color: var(--ink-2); }

/* First load: the camera settles once */
@media (prefers-reduced-motion: no-preference) {
  .js .stage.is-arriving .stage-camera { animation: settle 1500ms var(--ease-out) both; }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* Tablet and phone: show the whole photo, signs hang below it */
@media (max-width: 1024px) {
  .stage {
    --img-top: 0px;
    --hook-m: 36.6cqw; --hook-i: 38.3cqw;
    --chain: calc(66.7cqw - var(--hook-m) + 14px);
    aspect-ratio: auto; height: calc(66.7cqw + 136px);
    background: var(--stone);
  }
  .stage-camera { bottom: auto; height: 66.7cqw; overflow: hidden; }
  .stage-shade { bottom: auto; height: 66.7cqw; }
  .stage-motes { height: 66.7cqw; }
  .sign { width: 45cqw; }
  .sign-mortgage { left: 3cqw; margin-left: 0; }
  .sign-insurance { left: auto; right: 3cqw; margin-left: 0; }
  .sign-mortgage .sign-hook::before { left: calc(16cqw - 3cqw); transform: none; }
  .sign-mortgage .sign-hook::after { display: none; }
  .sign-insurance .sign-hook::after { right: calc(13.5cqw - 3cqw); transform: none; }
  .sign-insurance .sign-hook::before { display: none; }
  .sign-mortgage .sign-hook i { left: calc(16cqw - 3cqw + 1px); }
  .sign-insurance .sign-hook i { left: auto; right: calc(13.5cqw - 3cqw - 4px); }
  .sign-panel { padding: 13px 14px 12px; min-height: 104px; align-content: start; }
  .sign-panel strong { font-size: 1.3rem; }
  .sign-panel span { font-size: .82rem; }
  .stage-foot { bottom: auto; top: 0; padding: 8px; align-items: start; }
  .stage-note { font-size: .8125rem; }
  .stage[data-look] .sign { translate: none; }
  .hero-hint { margin-top: 4px; }
}
@media (max-width: 760px) { .stage { margin-inline: 0; } }
@media (min-width: 761px) and (max-width: 1024px) { .sign { width: 40cqw; } .sign-panel strong { font-size: 1.7rem; } .sign-panel span { font-size: .95rem; } }
@media (max-width: 360px) { .sign-panel strong { font-size: 1.12rem; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section) 0; }
.section-tight { padding-block: calc(var(--section) * .55) 0; }
.lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; max-width: 40ch; }
.field-ink { background: var(--folder); color: var(--on-folder); }
.on-dark { color: var(--on-folder); }
.on-dark .muted, .on-dark p.muted { color: var(--on-folder-2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-small); }

/* Who you are talking to — the agent card band of a feature sheet */
.agent { margin-top: var(--section); padding-block: clamp(56px, 7vw, 112px); }
.agent-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px 64px; align-items: start; }
.agent h2 { max-width: 18ch; color: #fff; }
.agent .lede { margin-top: 22px; color: var(--on-folder); }
.licences { display: grid; gap: 4px; }
.licence { padding: 22px 24px; background: var(--folder-deep); }
.licence h3 { color: var(--brass-light); margin-bottom: 8px; }
.licence p { margin: 0 0 10px; color: var(--on-folder); }
.licence a { color: var(--on-folder); font-weight: 600; font-size: .95rem; }
.agent-call { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-top: clamp(40px, 5vw, 72px); padding-top: 8px; }
.agent-call a.big { font-size: clamp(2.2rem, 1.2rem + 4.6vw, 5.4rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.045em; line-height: 1; text-decoration: none; color: var(--brass-light); }
@media (hover: hover) and (pointer: fine) { .agent-call a.big:hover { text-decoration: underline; text-decoration-thickness: 4px; } }
.agent-call p { margin: 0; color: var(--on-folder-2); }

/* Path sheets: photo plus the facts of one path */
.sheet { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px clamp(24px, 3vw, 48px); align-items: start; }
.sheet-media { grid-column: 1 / span 7; margin: 0; }
.sheet-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sheet-media figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--ink-2); }
.sheet-copy { grid-column: 8 / span 5; padding-top: 4px; }
.sheet-copy h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 1.1rem + 1.9vw, 2.9rem); }
.sheet.reverse .sheet-media { grid-column: 7 / span 6; grid-row: 1; }
.sheet.reverse .sheet-copy { grid-column: 1 / span 5; grid-row: 1; }
.sheet.reverse .sheet-media img { aspect-ratio: 1 / 1; }
.path-mark { display: inline-block; width: 44px; height: 10px; margin-bottom: 22px; }
.path-mark.m { background: var(--brick); } .path-mark.i { background: var(--folder); }

.spec { margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
.spec > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 14px 16px; background: var(--paper); }
.spec dt { font-weight: 700; font-stretch: var(--semi); }
.spec dd { margin: 0; color: var(--ink-2); }
.on-dark .spec > div { background: rgb(255 255 255 / .06); }
.on-dark .spec dd { color: var(--on-folder-2); }

/* Credit offer */
.offer { margin-top: var(--section); padding-block: clamp(56px, 7vw, 112px); background: var(--ink); color: #eef0eb; }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.offer h2 { color: #fff; max-width: 16ch; }
.offer .figure-row { display: flex; flex-wrap: wrap; gap: 44px 56px; margin: 0 0 6px; }
.offer .figure { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.6rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.045em; line-height: 1; color: var(--brass-light); }
.offer .figure small { display: block; margin-top: 8px; font-size: .95rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: #c9d0cc; }
.offer .terms { margin-top: 26px; font-size: var(--t-small); color: #c9d0cc; max-width: 62ch; }
.offer a:not(.btn) { color: #fff; }

/* Planning list */
.tool-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 2px; }
.tool-list a { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) auto; gap: 8px 32px; align-items: center; padding: 26px clamp(16px, 2vw, 28px); background: var(--paper); text-decoration: none; transition: background-color 160ms ease; }
.tool-list strong { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); font-weight: 800; font-stretch: var(--wide); letter-spacing: -.03em; line-height: 1.05; }
.tool-list span { color: var(--ink-2); }
.tool-list svg { width: 22px; height: 22px; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tool-list a:hover { background: #fff; } .tool-list a:hover svg { transform: translateX(4px); } }
.split-head { display: grid; grid-template-columns: 1fr minmax(0, 46ch); gap: 24px 64px; align-items: end; }

/* Rate review prompt band */
.review-band { display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 1fr) auto; gap: 24px clamp(24px, 3vw, 48px); align-items: center; padding: clamp(16px, 2vw, 24px); padding-right: clamp(24px, 3vw, 48px); background: var(--stone-2); }
.review-band figure { margin: 0; }
.review-band img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
@media (max-width: 1024px) { .review-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } .review-band .btn { grid-column: 2; justify-self: start; } }
@media (max-width: 640px) { .review-band { grid-template-columns: 1fr; padding: 16px 16px 24px; } .review-band .btn { grid-column: 1; justify-self: stretch; } .review-band img { aspect-ratio: 16 / 10; } }
.review-band h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }
.review-band p { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { overflow: hidden; margin-top: var(--section); background: var(--folder-deep); color: var(--on-folder); padding-top: clamp(56px, 7vw, 104px); }
.footer-name { font-size: min(10.4vw, 12rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.055em; line-height: .82; color: var(--brass-light); margin: 0 0 clamp(40px, 5vw, 72px); white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px 40px; }
.footer-grid h2 { font-size: 1rem; font-stretch: var(--semi); letter-spacing: 0; line-height: 1.3; margin-bottom: 12px; color: #fff; }
.footer-grid a { display: block; padding: 5px 0; text-decoration: none; color: var(--on-folder); }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { text-decoration: underline; } }
.footer-grid p { color: var(--on-folder-2); }
.legal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; margin-top: 56px; padding-block: 32px 28px; font-size: var(--t-small); color: var(--on-folder-2); }
.legal p { margin-bottom: 8px; }
.legal strong { color: #fff; }
.legal a { color: var(--on-folder); }
.copyright { margin: 0; padding-block: 0 40px; font-size: .8125rem; color: var(--on-folder-2); max-width: none; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(40px, 6vw, 96px); }
.page-hero.tone-brick { background: var(--brick); color: #fff; }
.page-hero.tone-folder { background: var(--folder); color: var(--on-folder); }
.page-hero.tone-folder h1 { color: #fff; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px 56px; align-items: end; }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.3rem, 1rem + 4vw, 5rem); }
.page-hero-grid { margin-top: clamp(24px, 3vw, 44px); align-items: start; }
.page-hero .lede { margin-top: 0; }
.page-hero.tone-brick .lede { color: #fbe9e3; }
.page-hero.tone-folder .lede { color: var(--on-folder); }
.page-hero figure { margin: 0; }
.page-hero figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.page-hero figcaption { margin-top: 10px; font-size: .8rem; opacity: .9; }
.hero-facts { display: grid; gap: 2px; }
.hero-facts > div { padding: 18px 20px; background: var(--stone-2); }
.tone-folder .hero-facts > div { background: var(--folder-deep); }
.hero-facts strong { display: block; font-stretch: var(--semi); }
.hero-facts a.big { display: block; font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.04em; line-height: 1.05; text-decoration: none; }
.breadcrumb { display: inline-block; margin-bottom: 18px; font-size: var(--t-small); }

.rows { display: grid; gap: 2px; margin-top: 40px; }
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px 48px; padding: clamp(22px, 2.6vw, 34px) clamp(16px, 2vw, 28px); background: var(--paper); }
.row-item p { margin: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 5vw, 88px); align-items: start; }
.two-col h2 + p, .two-col h2 + .lede { margin-top: 22px; }
.panel { padding: clamp(24px, 3vw, 40px); background: var(--paper); }
.panel h3 { margin-bottom: 16px; }
.panel.dark { background: var(--folder); color: var(--on-folder); }
.panel.dark h3 { color: var(--brass-light); }
.check-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2.5px solid var(--brick); border-bottom: 2.5px solid var(--brick); transform: rotate(-45deg); }
.panel.dark .check-list li::before { border-color: var(--brass); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; margin-top: 40px; padding: clamp(24px, 3vw, 40px); background: var(--stone-2); }
.band h3 { margin-bottom: 8px; }
.band p { margin: 0; }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; padding: clamp(32px, 5vw, 72px); background: var(--ink); color: #eef0eb; }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { margin: 16px 0 0; color: #c9d0cc; }
.note { margin-top: 28px; font-size: var(--t-small); color: var(--ink-2); }
.prose h2 { margin-bottom: 20px; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); }
.prose h3 { margin: 30px 0 10px; }

/* ---------- Forms ---------- */
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px .35em; font-weight: 600; font-size: .95rem; }
.field > input, .field > select, .field > textarea { flex: 1 1 100%; }
.field.form-note { display: block; }
.field > span { font-weight: 400; color: var(--ink-2); }
.field.full, .full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 0; border-radius: var(--radius);
  background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px #9aa39f; /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
  font-weight: 400; font-size: 1rem;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field select:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2.5px var(--ink); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #6a7477; }
.was-validated .field input:invalid, .was-validated .field select:invalid, .was-validated .field textarea:invalid,
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { box-shadow: inset 0 0 0 2.5px var(--brick); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.form-note { margin-top: 14px; font-size: var(--t-small); color: var(--ink-2); font-weight: 400; }
.enquiry-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.enquiry-consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 20px 0; font-size: .95rem; }
.enquiry-consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brick); }
.enquiry-status, .rate-status, .message { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; color: var(--folder); }
form .btn[type="submit"] { margin-top: 6px; }

/* Credit enquiry page */
.credit-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 40px clamp(32px, 5vw, 88px); align-items: start; }
.credit-aside { position: sticky; top: 100px; }
.credit-aside h2 { margin-bottom: 20px; }
.contact-note { display: grid; gap: 4px; margin: 26px 0; padding: 20px; background: var(--stone-2); }
.contact-note a { font-size: 1.6rem; font-weight: 850; font-stretch: var(--wide); letter-spacing: -.03em; text-decoration: none; }
.credit-form { padding: clamp(22px, 3vw, 44px); background: var(--paper); }
.credit-form .field input, .credit-form .field select, .credit-form .field textarea { background: #fff; }
.form-step-title { margin: 36px 0 18px; }
.form-step-title:first-child { margin-top: 0; }
.form-step-title h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
.homeowner-details { margin-top: 16px; padding: 18px; background: var(--stone); }
.homeowner-details[hidden] { display: none; }
.credit-figures { display: flex; flex-wrap: wrap; gap: 44px 56px; margin-top: 0; }
.credit-figures .figure { font-size: clamp(2rem, 1.2rem + 3vw, 4rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.045em; line-height: 1; }
.credit-figures small { display: block; margin-top: 6px; font-size: .95rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; }
.credit-terms { margin-top: 24px; font-size: var(--t-small); }

/* Planning tools */
.tools { margin-top: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs [role="tab"] { min-height: 52px; padding: 12px 20px; border: 0; border-radius: var(--radius) var(--radius) 0 0; background: var(--stone-2); color: var(--ink); font-weight: 650; font-stretch: var(--semi); transition: background-color 160ms ease, color 160ms ease; }
.tabs [role="tab"][aria-selected="true"] { background: var(--paper); box-shadow: inset 0 4px 0 var(--brick); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
@media (hover: hover) and (pointer: fine) { .tabs [role="tab"][aria-selected="false"]:hover { background: #cdd1c8; } }
[role="tabpanel"] { padding: clamp(22px, 3vw, 44px); background: var(--paper); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px clamp(28px, 4vw, 64px); align-items: start; }
.tool-title { margin-bottom: 10px; }
.tool-description { color: var(--ink-2); margin-bottom: 22px; }
.tool-grid .field input { background: #fff; }
.result { padding: clamp(22px, 3vw, 36px); background: var(--folder); color: var(--on-folder); }
.result small { display: block; font-size: .9rem; font-weight: 600; color: var(--on-folder-2); }
.result output { display: block; margin: 8px 0 2px; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.045em; line-height: 1; color: var(--brass-light); }
.result > p { color: var(--on-folder-2); font-size: .95rem; }
.result .row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; box-shadow: inset 0 1px 0 rgb(236 235 224 / .16); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
.result .row strong { font-variant-numeric: tabular-nums; }
.chart { width: 100%; height: auto; margin: 18px 0 10px; background: var(--folder-deep); }
.chart path { fill: none; stroke: var(--brass); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.quote-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; margin-top: 40px; padding: clamp(22px, 3vw, 40px); background: var(--stone-2); }
.quote-bar h3 { margin-bottom: 8px; }
.quote-bar p { margin: 0; }

/* About: monogram replaced by a facts column */
.credentials { display: grid; gap: 2px; margin-top: 28px; }
.credential { padding: 20px 22px; background: var(--paper); }
.credential strong { display: block; margin-bottom: 6px; font-stretch: var(--semi); }

/* Contact */
.contact-card { padding: clamp(24px, 3vw, 44px); background: var(--folder); color: var(--on-folder); }
.contact-card h2, .contact-card h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-stretch: var(--wide); font-weight: 850; letter-spacing: -.035em; line-height: 1; margin-bottom: 24px; }
.contact-card a.big { display: block; font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -.04em; line-height: 1.15; text-decoration: none; color: var(--brass-light); }
@media (hover: hover) and (pointer: fine) { .contact-card a.big:hover { text-decoration: underline; } }
.contact-card p { color: var(--on-folder-2); margin-top: 18px; }
.contact-form { padding: clamp(24px, 3vw, 44px); background: var(--paper); }
.contact-form h2, .contact-form h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-stretch: var(--wide); font-weight: 850; letter-spacing: -.035em; line-height: 1; margin-bottom: 12px; }
.contact-form .field input, .contact-form .field select, .contact-form .field textarea { background: #fff; }

/* ---------- Floating actions, mobile bar, dialogs ---------- */
.rate-launch, .photo-chat-launch {
  position: fixed; right: var(--m); z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 16px; border: 0; border-radius: var(--radius);
  font-weight: 650; font-size: .92rem; font-stretch: var(--semi);
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.rate-launch { bottom: 82px; background: var(--brick); color: #fff; }
.photo-chat-launch { bottom: 24px; background: var(--ink); color: #f1f2ee; }
.photo-chat-launch span[aria-hidden] { display: none; }
.photo-chat-launch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa39f; }
.rate-launch:active, .photo-chat-launch:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .rate-launch:hover { background: var(--brick-deep); } .photo-chat-launch:hover { background: #000; } }

.photo-mobile-bar { display: none; }
@media (max-width: 1024px) {
  :root { --bar-h: calc(64px + env(safe-area-inset-bottom)); }
  .rate-launch, .photo-chat-launch { display: none; }
  .photo-mobile-bar {
    position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 6px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: var(--ink);
  }
  .photo-mobile-bar a, .photo-mobile-bar button {
    display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px;
    border: 0; border-radius: var(--radius); background: transparent; color: #f1f2ee;
    font-weight: 650; font-size: .92rem; text-decoration: none; text-align: center; line-height: 1.15;
    transition: transform 140ms var(--ease-out);
  }
  .photo-mobile-bar button[data-open-rate] { background: var(--brick); color: #fff; }
  .photo-mobile-bar a:active, .photo-mobile-bar button:active { transform: scale(.97); }
}

dialog { border: 0; padding: 0; color: var(--ink); background: var(--paper); border-radius: var(--radius); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; box-shadow: 0 30px 80px -24px rgb(10 16 18 / .6); } /* taste-skill-ignore: field edge, overlay, focus, state bar, data row, hanging sign or a11y-hidden */
dialog::backdrop { background: rgb(14 22 24 / .62); }
@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: dialog-in 260ms var(--ease-out); }
  dialog[open]::backdrop { animation: fade-in 260ms ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }

.rate-dialog { width: min(760px, calc(100vw - 24px)); }
.rate-intro { padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 40px) 22px; background: var(--brick); color: #fff; }
.rate-intro h2 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); color: #fff; max-width: 14ch; }
.rate-intro p { margin: 14px 0 0; color: #fbe9e3; }
.rate-dialog form { padding: 24px clamp(20px, 4vw, 40px) clamp(24px, 4vw, 36px); }
.rate-dialog .field span, .contact-dialog .field span { font-weight: 400; color: var(--ink-2); }
.rate-consent, .rate-fine { font-size: var(--t-small); color: var(--ink-2); margin-top: 18px; }
.rate-close, .chat-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: var(--radius);
  background: rgb(255 255 255 / .16); color: #fff; font-size: 1.6rem; line-height: 1;
}
@media (hover: hover) and (pointer: fine) { .rate-close:hover, .chat-close:hover { background: rgb(255 255 255 / .3); } }
.contact-dialog { width: min(560px, calc(100vw - 24px)); }
.contact-dialog header { position: relative; padding: 26px 70px 22px 28px; background: var(--folder); color: var(--on-folder); }
.contact-dialog header h2 { font-size: 2rem; color: #fff; }
.contact-dialog header p { margin: 10px 0 0; color: var(--on-folder-2); }
.chat-content { padding: 22px 28px 28px; }
.chat-content form { display: grid; gap: 14px; }
.chat-content .enquiry-consent { margin: 4px 0; }
.chat-call { display: block; margin-bottom: 18px; padding: 14px 16px; background: var(--stone-2); font-weight: 700; text-decoration: none; }
body.rate-open { overflow: hidden; }

/* ---------- Responsive composition ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .agent-grid, .offer-grid, .two-col, .credit-layout, .tool-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .sheet { grid-template-columns: 1fr; }
  .sheet-media, .sheet-copy, .sheet.reverse .sheet-media, .sheet.reverse .sheet-copy { grid-column: 1; grid-row: auto; }
  .sheet.reverse .sheet-media { grid-row: 1; }
  .credit-aside { position: static; }
  .split-head { grid-template-columns: 1fr; }
  .page-hero figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr; }
  .tool-list a { grid-template-columns: 1fr auto; }
  .tool-list span { grid-column: 1; }
  .tool-list svg { grid-column: 2; grid-row: 1 / span 2; }
  .band, .cta, .quote-bar { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-grid, .legal { grid-template-columns: 1fr; }
  .tabs [role="tab"] { flex: 1 1 100%; border-radius: var(--radius); }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .stage[data-look] .stage-camera { transform: none; }
  .stage[data-look] .sign { translate: none; }
  .stage-shade::before, .stage-shade::after { transition-duration: 200ms !important; }
}
@media print {
  .site-header, .photo-mobile-bar, .rate-launch, .photo-chat-launch, .stage-motes, .motion-toggle { display: none !important; }
  body { background: #fff; }
}
