/* Homepage Concept A: proposed extensions to the Schulman Team system.
   Every value is a token from tokens.css or a layout number in the same style as bundle.css.
   Nothing here changes a token or replaces a bundle.css component; it composes new patterns
   (MediaRecognitionStrip, ServicePathwayCard, ArticleCard, TestimonialCard/Section, ContactCTA,
   SiteFooter) and a few documented overrides marked OVERRIDE. Classes are prefixed hp- so they
   can be promoted to st- names if approved. Review-only markers (hp-flag, hp-ph) are not for production. */

/* ---------- proposed icons, same 24px grid and 2px round stroke as the system set ---------- */
.hp-i--check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E"); }
.hp-i--alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E"); }
.hp-i--pause { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6v12M15 6v12'/%3E%3C/svg%3E"); }
.hp-i--play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5.5v13l10-6.5z'/%3E%3C/svg%3E"); }
.hp-i--quote { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18v-5a6 6 0 0 1 5-6M13 18v-5a6 6 0 0 1 5-6M4 13h5v5H4zM13 13h5v5h-5z'/%3E%3C/svg%3E"); }

/* ---------- review markers (internal review only) ---------- */
.hp-flag { display: inline-flex; align-items: center; gap: var(--space-2); width: fit-content; padding: 7px var(--space-3); border-radius: var(--radius-pill); background: var(--blue-300); color: var(--charcoal); font-family: var(--font-eyebrow); font-size: 11px; font-weight: 400; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.hp-ph { padding: 0 var(--space-1); border-radius: calc(var(--radius-sm) / 2); background: var(--blue-100); color: var(--charcoal); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.st-on-dark .hp-ph { background: var(--charcoal-700); color: var(--off-white); }

/* ---------- OVERRIDE header: 48px controls, Contact always visible, full nav from bp-xl ---------- */
.st-header__bar .st-iconbtn { width: var(--touch-target); height: var(--touch-target); }
.hp-header-contact { padding-inline: var(--space-4); }
.st-header__nav a { display: inline-flex; align-items: center; min-height: var(--touch-target); padding-block: 0; }
.st-header__nav a:focus-visible { outline-offset: 0; }
/* Menu sits on the right, next to Contact */
.st-header:not(.cb-header) .st-header__nav { margin-left: auto; margin-right: var(--space-4); }
@container page (min-width: 720px) { .hp-header-contact { padding-inline: var(--space-6); } }
@container page (min-width: 960px) and (max-width: 1099.98px) {
  .st-header__nav { display: none; }
  .st-header__bar .st-header__menu { display: inline-grid; }
}
.hp-menu { position: absolute; top: calc(var(--space-3) + var(--header-height-mobile) + var(--space-2)); left: var(--space-3); right: var(--space-3); display: grid; gap: var(--space-4); padding: var(--space-2); border-radius: var(--radius-lg); background: var(--off-white); color: var(--charcoal); box-shadow: var(--shadow-soft); }
.hp-menu__list { display: grid; margin: 0; padding: 0; list-style: none; }
.hp-menu__list a { display: flex; align-items: center; justify-content: space-between; min-height: var(--touch-target); padding: 0 var(--space-4); border-radius: calc(var(--radius-lg) - var(--space-2)); color: var(--charcoal); font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.hp-menu__list a:hover, .hp-menu__list a[aria-current] { background: var(--blue-100); }
.hp-menu__foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.hp-menu__foot .st-btn { border-radius: calc(var(--radius-lg) - var(--space-2)); padding-inline: var(--space-3); }
@container page (min-width: 720px) {
  .hp-menu { top: calc(var(--space-4) + var(--header-height) + var(--space-2)); left: auto; right: var(--space-6); width: 360px; }
}

/* OVERRIDE hero scrim: same scrim token, held longer so copy stays legible over bright daylight photos */
.st-hero::after { background: linear-gradient(to top, var(--scrim) 0%, var(--scrim) 55%, transparent 100%); }
/* Hero background video (replaces the photo slideshow) */
.hp-hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.st-header__logo { display: flex; align-items: center; min-height: var(--touch-target); }
.hp-actions .st-link { display: inline-flex; align-items: center; min-height: var(--touch-target); }

/* ---------- hero additions: accessible carousel controls, search feedback ---------- */
.hp-hero-controls { display: flex; align-items: center; gap: var(--space-2); }
.st-dots button { display: grid; align-content: center; width: 32px; height: var(--touch-target); }
.hp-pause { width: var(--touch-target); height: var(--touch-target); background: var(--glass); color: var(--charcoal); }
.hp-pause:hover { background: var(--off-white); }
.st-chip { min-height: var(--touch-target); } /* OVERRIDE: 36px chips raised to the 48px touch target */
.hp-search-note { display: flex; align-items: center; gap: var(--space-2); max-width: 640px; font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--off-white); }
.st-search .st-btn[aria-busy="true"] { background: var(--blue-shade-20); }

/* ---------- credibility: four-up stat band ---------- */
.hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
.hp-stats .st-stat { border-top: 0; padding-block: 0; }
.hp-cred__head { display: grid; gap: var(--space-3); max-width: 720px; margin-bottom: var(--space-8); }
@container page (min-width: 720px) { .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-7); } }
@container page (min-width: 1100px) { .hp-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hp-stats .st-stat__n { font-size: clamp(52px, 5.6cqi, 76px); } }

/* ---------- PROPOSED MediaRecognitionStrip ---------- */
.hp-recog { display: grid; gap: var(--space-7); margin-top: var(--space-9); padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: var(--off-white); color: var(--charcoal); }
.hp-recog__group { display: grid; gap: var(--space-4); align-content: start; }
.hp-recog__group .st-eyebrow { color: var(--ink-muted); }
.hp-recog__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); align-items: center; margin: 0; padding: 0; list-style: none; }
.hp-recog__logos img { width: 100%; max-width: 132px; height: 40px; object-fit: contain; object-position: left center; mix-blend-mode: multiply; }
.hp-recog__badges { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6); align-items: center; margin: 0; padding: 0; list-style: none; }
.hp-recog__badges a { display: flex; align-items: center; min-height: var(--touch-target); border-radius: var(--radius-sm); }
.hp-recog__badges img { width: auto; height: 52px; border-radius: var(--radius-sm); }
.hp-recog__badges img.hp-recog__mark { height: 32px; border-radius: 0; }
@container page (min-width: 720px) {
  .hp-recog { padding: var(--space-7) var(--space-8); }
  .hp-recog__logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container page (min-width: 1100px) {
  .hp-recog { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-9); align-items: center; }
}

/* ---------- featured listing ---------- */
.hp-feature { display: grid; gap: var(--space-7); grid-template-columns: minmax(0, 1fr); align-items: start; }
.hp-feature__details { display: grid; gap: var(--space-4); justify-items: start; }
.hp-feature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hp-feature .st-mosaic__item { --focal: 50% 50%; }
@container page (min-width: 960px) { .hp-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-9); align-items: center; } }

.hp-row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-7); }
.hp-row-head .st-section__head { margin-bottom: 0; }
.hp-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }

/* ---------- listing card states ---------- */
.hp-noimg { position: absolute; padding: var(--space-4); inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-2); background: var(--mist); color: var(--ink-muted); font-size: 14px; font-weight: 400; text-align: center; }
.hp-skel { background: var(--mist); border-radius: var(--radius-sm); }
.hp-skel--media { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); }
.hp-skel--line { height: 16px; }
.hp-skel--price { height: 28px; width: 55%; }
.hp-empty { display: grid; gap: var(--space-4); justify-items: start; padding: var(--space-7) var(--space-5); border-radius: var(--radius-lg); background: var(--off-white); }
@container page (min-width: 720px) { .hp-empty { padding: var(--space-9); } }

/* ---------- PROPOSED ServicePathwayCard ---------- */
.hp-paths { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.hp-path { display: grid; gap: var(--space-5); align-content: start; padding: var(--space-4); border-radius: var(--radius-lg); background: var(--blue-100); color: var(--charcoal); }
.hp-path__media { position: relative; aspect-ratio: 4 / 3; border-radius: calc(var(--radius-lg) - var(--space-4)); overflow: hidden; background: var(--mist); }
.hp-path__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }
.hp-path__body { display: grid; gap: var(--space-3); justify-items: start; padding: 0 var(--space-2) var(--space-3); }
.hp-path__body .st-btn { margin-top: var(--space-2); }
/* Pathways on the light blue section: white cards so they still stand off the background */
.hp-paths-section .hp-path { background: var(--white); }
@container page (min-width: 720px) {
  .hp-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-path__media { aspect-ratio: 3 / 2; }
  .hp-path__body { padding: 0 var(--space-4) var(--space-4); }
}

/* ---------- concierge additions ---------- */
.hp-case { display: grid; gap: var(--space-1); margin-top: var(--space-4); }
.hp-ba-wrap { display: grid; gap: var(--space-3); }
/* Concierge: top-align the copy with the before/after photo instead of centring it against photo + caption */
.hp-con-split { align-items: start; }

/* ---------- team ---------- */
.hp-person__dre { font-size: 14px; font-weight: 400; color: var(--ink-muted); }

/* ---------- PROPOSED TestimonialCard / TestimonialSection ---------- */
.hp-quotes { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: var(--space-4); margin: 0 calc(var(--space-5) * -1); padding: 0 var(--space-5) var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-5); list-style: none; }
.hp-quotes:focus-visible { outline-offset: -3px; }
.hp-quote { display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-4); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--blue-100); scroll-snap-align: start; }
.hp-quote blockquote { margin: 0; display: grid; gap: var(--space-3); align-content: start; }
.hp-quote__by { display: grid; gap: 2px; padding-top: var(--space-2); }
.hp-quote__name { font-weight: 600; font-size: 16px; line-height: 1.4; }
.hp-quotes__hint { margin-top: var(--space-4); }
@container page (min-width: 720px) {
  .hp-quotes { grid-auto-columns: 58%; margin: 0 calc(var(--space-8) * -1); padding-inline: var(--space-8); scroll-padding-inline: var(--space-8); gap: var(--space-6); }
}
@container page (min-width: 1100px) {
  .hp-quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .hp-quotes__hint { display: none; }
}

/* ---------- PROPOSED ContactCTA ---------- */
.hp-cta { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
.hp-cta__intro { display: grid; gap: var(--space-4); align-content: start; justify-items: start; }
.hp-cta__person { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-3); }
.hp-cta__person img { width: 72px; height: 72px; border-radius: var(--radius-md); object-fit: cover; }
.hp-cta__direct { display: grid; gap: var(--space-2); width: 100%; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.hp-cta__direct a { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch-target); color: var(--off-white); font-size: 18px; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.hp-cta__direct a { transition: color .2s ease; }
.hp-cta__direct a:hover, .hp-cta__direct a:focus-visible { color: var(--blue-300); text-decoration: underline; text-underline-offset: 4px; }
.hp-form { display: grid; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-radius: var(--radius-lg); background: var(--charcoal-700); }
.hp-form__row { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
.st-on-dark .st-field label, .st-on-dark .hp-legend { color: var(--off-white); }
.hp-form .st-input { background: var(--off-white); }
.hp-form .st-input:focus { background: var(--white); }
.hp-legend { margin: 0 0 var(--space-2); padding: 0; font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.hp-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.hp-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.hp-choice { position: relative; display: flex; }
.hp-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp-choice span { display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--touch-target); padding: 0 var(--space-3); border-radius: var(--radius-sm); background: var(--charcoal); color: var(--off-white); font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.hp-choice input:checked + span { background: var(--off-white); color: var(--charcoal); }
.hp-choice input:focus-visible + span { outline: 3px solid var(--off-white); outline-offset: 3px; }
/* All text buttons match the hero Search button: 48px tall (touch target) */
.hp-form .st-btn, .st-news__form .st-btn { min-height: var(--touch-target); }
/* Newsletter: Join button sits inside the field, same build as the hero search */
.hp-news__form { display: block; }
.hp-news__box { display: flex; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-lg); background: var(--white); }
.hp-news__box:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.hp-news__box:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--hp-error); }
.hp-news__input { flex: 1; min-width: 0; height: var(--touch-target); padding: 0 var(--space-3); border: 0; background: none; color: var(--charcoal); font: 400 16px/1 var(--font-body); }
.hp-news__input::placeholder { font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-muted); }
.hp-news__input:focus { outline: 0; }
.hp-news__box .st-btn { flex: none; border-radius: calc(var(--radius-lg) - var(--space-2)); }
/* Contact: one question at a time, chat style */
.hp-chat { gap: var(--space-5); }
.hp-chat__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--touch-target); }
.hp-chat__top .st-eyebrow { color: var(--on-dark-muted); }
.hp-chat__back { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); padding: 0 var(--space-2); border: 0; background: none; color: var(--off-white); font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.hp-chat__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.hp-chat__log { display: grid; gap: var(--space-3); }
.hp-chat__msg { display: flex; align-items: flex-end; gap: var(--space-3); max-width: 88%; }
.hp-chat__msg--me { justify-self: end; }
.hp-chat__avatar { flex: none; width: 32px; height: 32px; padding: 5px; border-radius: var(--radius-pill); background: var(--off-white); object-fit: contain; }
.hp-chat__bubble { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-sm); background: var(--charcoal); color: var(--off-white); font-size: 16px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.hp-chat__msg--me .hp-chat__bubble { border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-md); background: var(--off-white); color: var(--charcoal); }
.hp-chat__bubble--muted { color: var(--on-dark-muted); font-style: italic; }
.hp-chat__chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.hp-chat__chips button { min-height: var(--touch-target); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--off-white); color: var(--charcoal); font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.hp-chat__chips button:focus-visible { outline: 3px solid var(--off-white); outline-offset: 3px; }
.hp-chat__composer { display: grid; gap: var(--space-3); }
.hp-form__note { line-height: 1.55; }
.hp-form__note a { color: var(--off-white); text-underline-offset: 3px; }
/* Chat card: white surface, blue answer buttons */
.hp-chat { background: var(--white); color: var(--charcoal); }
.hp-chat .hp-chat__top .st-eyebrow, .hp-chat .st-caption, .hp-chat .hp-form__note { color: var(--ink-muted); }
.hp-chat .hp-form__note a { color: var(--blue-deep); }
.hp-chat .hp-chat__back { color: var(--charcoal); }
.hp-chat .hp-chat__avatar { background: var(--blue-100); }
.hp-chat .hp-chat__bubble { background: var(--blue-100); color: var(--charcoal); }
.hp-chat .hp-chat__msg--me .hp-chat__bubble { background: var(--blue-deep); color: var(--off-white); }
.hp-chat .hp-chat__bubble--muted { color: var(--ink-muted); }
.hp-chat .hp-chat__chips button { background: var(--schulman-blue); color: var(--on-button); }
.hp-chat .hp-chat__chips button:focus-visible { outline-color: var(--focus); }
.hp-chat .hp-news__box { background: var(--blue-100); }
.hp-chat .hp-news__box:focus-within { outline-color: var(--focus); }
.hp-chat .hp-error { color: var(--hp-error); }
/* "Thinking" indicator between an answer and the next question */
.hp-chat__typing { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; }
.hp-chat__dot { width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--blue-deep); opacity: .35; animation: hp-dot 1.2s ease-in-out infinite; }
.hp-chat__dot:nth-child(3) { animation-delay: .15s; }
.hp-chat__dot:nth-child(4) { animation-delay: .3s; }
@keyframes hp-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .35; } 35% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hp-chat__dot { animation: none; opacity: .7; } }
.hp-chat .hp-news__box:focus-within { outline-color: var(--off-white); }
.hp-chat .hp-news__box:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--hp-error); }
.hp-form__note { font-size: 14px; font-weight: 400; color: var(--on-dark-muted); }
@container page (min-width: 720px) {
  .hp-form { padding: var(--space-8); }
  .hp-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (min-width: 960px) {
  .hp-cta { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: start; }
}

/* ---------- form feedback (shared by ContactCTA and NewsletterSignup) ---------- */
.st-input[aria-invalid="true"] { border-color: var(--charcoal); background: var(--white); }
.hp-form .st-input[aria-invalid="true"] { border-color: var(--schulman-blue); }
/* Error red: proposed new token, not yet in the design system. Dark red on light surfaces, light red on dark (both pass 4.5:1) */
.st-page { --hp-error: #b3261e; --hp-error-on-dark: #ffb4ab; }
.hp-error { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--hp-error); }
.st-on-dark .hp-error { color: var(--hp-error-on-dark); }
.hp-status { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border-radius: calc(var(--radius-lg) - var(--space-4)); background: var(--off-white); color: var(--charcoal); font-size: 16px; font-weight: 400; line-height: 1.5; }
.hp-status .st-badge { width: 28px; height: 28px; }
.hp-status--error .st-badge { background: var(--charcoal); color: var(--off-white); }
.st-btn[aria-busy="true"], .st-btn:disabled { cursor: progress; background: var(--blue-shade-20); }
.hp-news__stack { display: grid; gap: var(--space-3); }
.hp-news__consent { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-muted); }

/* ---------- PROPOSED ArticleCard ---------- */
.hp-articles { display: grid; gap: var(--space-6); grid-template-columns: minmax(0, 1fr); }
.hp-article { display: grid; gap: var(--space-4); align-content: start; color: inherit; text-decoration: none; }
.hp-article__media { position: relative; aspect-ratio: 3 / 2; border-radius: var(--radius-lg); overflow: hidden; background: var(--mist); }
.hp-article__media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); transition: transform .6s ease; }
.hp-article:hover .hp-article__media img { transform: scale(1.03); }
.hp-article__body { display: grid; gap: var(--space-2); }
.hp-article__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4cqi, 24px); line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hp-article:hover .hp-article__title { text-decoration: underline; text-underline-offset: 4px; }
.hp-article__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--blue-deep); font-weight: 600; }
.hp-article--compact { grid-template-columns: 104px minmax(0, 1fr); gap: var(--space-4); align-items: center; }
.hp-article--compact .hp-article__media { aspect-ratio: 1; border-radius: var(--radius-md); }
.hp-article--compact .hp-article__excerpt { display: none; }
@container page (min-width: 720px) {
  .hp-articles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
  .hp-article--compact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .hp-article--compact .hp-article__media { aspect-ratio: 3 / 2; border-radius: var(--radius-lg); }
  .hp-article--compact .hp-article__excerpt { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hp-article__media img { transition: none; } }

/* ---------- PROPOSED SiteFooter ---------- */
.hp-foot { display: grid; gap: var(--space-8); }
.hp-foot__brand { display: grid; gap: var(--space-4); justify-items: start; align-content: start; }
.hp-foot__brand img { height: auto; width: 100%; max-width: 320px; }
.hp-foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
.hp-foot__col { display: grid; gap: var(--space-2); align-content: start; }
.hp-foot__list { display: grid; margin: 0; padding: 0; list-style: none; }
.hp-foot__list a { display: flex; align-items: center; min-height: var(--touch-target); color: var(--charcoal); font-size: 16px; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.hp-foot__list a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.hp-foot__contact { grid-column: 1 / -1; }
.hp-foot__social { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.hp-foot__social a { display: inline-flex; align-items: center; min-height: var(--touch-target); padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--off-white); color: var(--charcoal); font-size: 14px; font-weight: 400; text-decoration: none; }
.hp-foot__social a:hover { background: var(--blue-100); }
.hp-foot__legal { display: grid; gap: var(--space-3); padding-top: var(--space-7); border-top: 1px solid var(--line); }
.hp-foot__legal p { font-size: 14px; font-weight: 400; line-height: 1.5; color: var(--ink-muted); max-width: 96ch; }
.hp-foot__legal p.hp-foot__dre { color: var(--charcoal); }
.hp-foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-5); margin: 0; padding: 0; list-style: none; }
.hp-foot__links a { display: inline-flex; align-items: center; min-height: var(--touch-target); color: var(--blue-deep); font-size: 14px; font-weight: 400; text-underline-offset: 3px; }
@container page (min-width: 720px) {
  .hp-foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-foot__contact { grid-column: auto; }
}
@container page (min-width: 1100px) {
  .hp-foot { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-8) var(--space-9); }
  .hp-foot__legal { grid-column: 1 / -1; }
}

/* ---------- phone contact bar placement in review frames ---------- */
.hp-contactbar-pin { position: absolute; left: 0; right: 0; z-index: 30; }
.hp-relative { position: relative; }

/* ---------- utilities ---------- */
.hp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp-strong { font-weight: 600; }

/* ---------- review round 1 (Concept A) ---------- */
/* More space above the floating header bar from tablet up */
@container page (min-width: 720px) {
  .st-header:not(.cb-header) .st-header__bar { margin-top: var(--space-7); }
  /* Header bar matches the content width instead of spanning the screen */
  .st-header:not(.cb-header) .st-header__bar { width: calc(100% - 2 * var(--space-6)); max-width: calc(var(--container) - 2 * var(--space-8)); margin-left: auto; margin-right: auto; }
}
/* Keep the bar's top margin inside the zero-height header so it floats over the hero instead of pushing the page down */
.st-header { display: flow-root; }
/* Hero subhead: avoid a single word on the last line */
.st-hero__content .st-sub { text-wrap: pretty; max-width: 46ch; } /* two lines at 390, 768 and 1440 */
/* Hero carousel controls: right-aligned and smaller (36px; below the 48px touch target, approved trade-off) */
.st-hero .hp-hero-controls { margin-left: auto; gap: var(--space-4); }
.st-hero .st-dots { gap: 4px; }
.st-hero .st-dots button { width: 16px; height: 28px; }
.st-hero .st-dots button::before { height: 2px; }
.st-hero .hp-pause { width: 28px; height: 28px; }
.st-hero .hp-pause .st-i { width: 12px; height: 12px; }
/* Statement after the live proof strip (Concept A): use the full content width */
.cb-ticker--live + .st-section .cb-statement, .hp-statement-section .cb-statement { max-width: none; }
/* "The Schulman Team" block in its own tinted section instead of a divider line */
.hp-org-section .cb-org { margin-top: 0; padding-top: 0; border-top: 0; }
/* Keep the Our Team / About Us buttons at the standard 48px: stop the column stretching them to match the copy beside it */
.hp-org-section .cb-org > .st-stack { align-content: start; }
.hp-org-section .cb-org__actions, .hp-founder .cb-org__actions { align-items: center; }
/* Secondary button on blue-100: charcoal outline so its edge reads clearly */
.hp-org-section .cb-btn-outline, .cb-founder .cb-btn-outline { color: var(--charcoal); box-shadow: inset 0 0 0 2px var(--charcoal); --btn-fill: var(--charcoal); --btn-ink-hover: var(--off-white); }
/* Keep "The Schulman Team" on one line on desktop: wider title column, heading capped at 48px */
@container page (min-width: 1100px) {
  .hp-org-section .cb-org { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .hp-org-section .st-h1 { font-size: clamp(36px, 3.4cqi, 48px); }
}
/* Statement section: faint Schulman "rs" icon behind the line */
.hp-statement-section { position: relative; overflow: hidden; }
/* Statement and team intro read as one tinted section */
.hp-statement-section.st-section--tint { padding-bottom: 0; }
.hp-statement-section.st-section--tint + .hp-org-section { padding-top: var(--space-9); }
.hp-statement-section .st-wrap { position: static; }
.hp-statement-section .cb-statement { position: relative; z-index: 1; }
.hp-mark { position: absolute; top: 50%; right: 0; width: clamp(160px, 20cqi, 256px); height: auto; transform: translate(25%, -50%); opacity: .12; pointer-events: none; }

/* ---------- Concept A as one responsive page ---------- */
/* Hero fills the screen: full width, full viewport height. The cqi caps only matter on the review canvas,
   where a board is much taller than a real screen; in a browser 100svh is always the smaller value. */
.st-hero { --st-hero-h: min(100svh, 220cqi); }
@container page (min-width: 720px) { .st-hero { --st-hero-h: min(100svh, 134cqi); } }
@container page (min-width: 1100px) { .st-hero { --st-hero-h: min(100svh, max(900px, 62.5cqi)); } }

/* ---------- Concept A founder section: larger team headshots ---------- */
.hp-founder .cb-team-row { gap: var(--space-5); }
.hp-founder .cb-team-row img { width: 96px; height: 96px; border-radius: var(--radius-md); object-position: 50% 30%; }
.hp-founder .cb-team-row span { font-size: 15px; }
.hp-founder .cb-team-row b { font-size: 17px; }
/* "And more agents" tile: tells visitors the team is bigger than the three shown */
.hp-team-more a { display: flex; align-items: center; gap: var(--space-3); color: var(--charcoal); text-decoration: none; }
.cb-team-row .hp-team-more__tile { display: grid; place-items: center; flex: none; width: 96px; height: 96px; border-radius: var(--radius-md); background: var(--schulman-blue); color: var(--on-button); transition: background-color .2s ease; }
.cb-team-row .hp-team-more__tile .st-i { width: 32px; height: 32px; }
.hp-team-more a:hover .hp-team-more__tile { background: var(--blue-shade-20); }
.hp-team-more a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hp-founder .cb-team-row .hp-team-more__cta { display: inline-flex; align-items: center; gap: var(--space-2); }
/* No single word left on the last line of the founder intro and bio */
.hp-founder .st-sub { text-wrap: balance; }
.hp-founder__name { display: grid; gap: var(--space-1); }
.hp-founder .st-measure { text-wrap: pretty; }

/* ---------- Concept A article hub (GRB-style), placeholder articles ---------- */
.hp-hub .cb-acard { background: var(--off-white); }
.hp-hub .cb-acard .cb-pill { background: var(--blue-100); }
.hp-hub .cb-acard__body { grid-template-rows: auto auto 1fr auto; height: 100%; }
.hp-hub .cb-acard__body p, .hp-hub .cb-lead__body p { font-size: 15px; line-height: 1.6; }
.hp-hub .cb-acard__foot { align-self: end; color: var(--charcoal); }
.hp-hub .cb-lead__body { grid-template-rows: auto auto auto 1fr auto; align-content: stretch; padding: var(--space-7) var(--space-6); }
.hp-hub__arrow { display: flex; justify-content: flex-end; align-self: end; }
.hp-hub .cb-lead__title, .hp-hub .cb-lead__body p, .hp-hub__arrow { color: var(--off-white); }
.hp-hub .cb-acard__title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.hp-hub .cb-lead:hover .cb-lead__title, .hp-hub .cb-acard:hover .cb-acard__title { text-decoration: underline; text-underline-offset: 4px; }
@container page (min-width: 720px) { .hp-hub .cb-lead__body { padding: var(--space-8) var(--space-7); } }
/* Equal Housing Opportunity mark (footer) and newsletter consent link */
.hp-eho { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--charcoal); font-size: 12px; font-weight: 700; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.hp-eho__mark { width: 32px; height: 32px; flex: none; }
.hp-news__consent a { color: var(--blue-deep); text-underline-offset: 3px; }
/* Concierge: give the Learn more button room after the upgrades list */
.st-stack > .st-steps + .st-btn { margin-top: var(--space-6); }
/* Footer: stacked team and brokerage logos */
.hp-foot__logos { display: grid; gap: var(--space-5); justify-items: start; }
.hp-foot__brand .hp-foot__logos img { height: auto; max-width: 100%; }
.hp-foot__brand .hp-foot__logo-team { width: 320px; }
.hp-foot__brand .hp-foot__logo-kw { width: 271px; }
/* Header logo: trimmed file, taller so the tagline reads */
.st-header .st-header__logo img { height: 22px; width: auto; }
@container page (min-width: 720px) { .st-header .st-header__logo img { height: 31px; } }
/* Header: Properties dropdown (Search, Sold) */
.hp-i--caret { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.hp-navdrop { position: relative; display: inline-flex; }
.hp-navdrop__btn { display: inline-flex; align-items: center; gap: var(--space-1); min-height: var(--touch-target); padding: 0; border: 0; background: none; color: var(--charcoal); font-family: var(--font-eyebrow); font-size: 12px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; }
.hp-navdrop__btn:hover, .hp-navdrop.is-open .hp-navdrop__btn { color: var(--blue-deep); }
.hp-navdrop__btn .st-i { transition: transform .2s ease; }
.hp-navdrop.is-open .hp-navdrop__btn .st-i { transform: rotate(180deg); }
.hp-navdrop__menu { position: absolute; top: 100%; left: calc(var(--space-4) * -1); z-index: 25; display: none; min-width: 180px; margin: 0; padding: var(--space-2); list-style: none; border-radius: var(--radius-md); background: var(--off-white); box-shadow: var(--shadow-soft); }
.hp-navdrop.is-open .hp-navdrop__menu, .hp-navdrop:hover .hp-navdrop__menu, .hp-navdrop:focus-within .hp-navdrop__menu { display: grid; }
.hp-navdrop__menu a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--charcoal); font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.hp-navdrop__menu a:hover { background: var(--blue-100); color: var(--blue-deep); }
@media (prefers-reduced-motion: reduce) { .hp-navdrop__btn .st-i { transition: none; } }
@container page (min-width: 1100px) and (max-width: 1279.98px) { .st-header__nav { gap: var(--space-4); } }
/* ---------- Concept A testimonials: card grid with stat tile ---------- */
.hp-reviews__head { display: grid; gap: var(--space-6); justify-items: start; margin-bottom: var(--space-8); }
.hp-reviews__title { display: grid; gap: var(--space-3); }
.hp-reviews__head .st-h2 { max-width: 14ch; text-wrap: balance; }
.hp-reviews__grid { display: grid; gap: var(--space-4); }
.hp-review { display: grid; grid-template-rows: 1fr auto; gap: var(--space-7); margin: 0; padding: var(--space-7) var(--space-6); border-radius: var(--radius-lg); background: var(--off-white); color: var(--charcoal); }
.hp-review__body { display: grid; gap: var(--space-4); align-content: start; margin: 0; }
.hp-review__quote { margin: 0; padding-left: .42em; text-indent: -.42em; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; text-wrap: balance; }
.hp-review__text { margin: 0; font-size: 16px; line-height: 1.65; color: var(--charcoal-700); text-wrap: pretty; }
.hp-review__by { display: grid; gap: var(--space-1); }
.hp-review__name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.hp-review__src { font-family: var(--font-eyebrow); font-size: 12px; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.hp-review--stat { grid-template-rows: auto 1fr; align-content: space-between; background: var(--schulman-blue); container-type: inline-size; }
.hp-review__num { margin: 0; font-family: var(--font-display); font-size: 30cqi; font-weight: 700; line-height: .95; letter-spacing: -.03em; color: var(--off-white); }
.hp-review__stat { align-self: end; margin: 0; max-width: 24ch; font-size: 20px; line-height: 1.45; color: var(--off-white); }
@container page (min-width: 720px) {
  .hp-reviews__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .hp-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .hp-review { padding: var(--space-8); }
  .hp-review__quote { font-size: clamp(26px, 2.6cqi, 34px); }
}

/* ---------- OVERRIDE button motion: sliding fill, label roll and arrow nudge ----------
   The hover colour slides in from the left instead of switching; the label rises out while its copy rises in;
   arrows nudge 4px. Same colours as before, tokens only. Hover and keyboard focus share the state.
   Label markup: <span class="hp-roll"><span class="hp-roll__a">Label</span><span class="hp-roll__b" aria-hidden="true">Label</span></span> */
.st-btn, .hp-chat__chips button {
  --btn-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --btn-rest: var(--schulman-blue); --btn-fill: var(--blue-shade-20); --btn-ink-hover: var(--on-button);
  position: relative; isolation: isolate; overflow: hidden;
  transition: color 300ms var(--btn-ease), transform .2s ease;
}
.st-btn--dark { --btn-rest: var(--charcoal); --btn-fill: var(--schulman-blue); }
.st-btn--light { --btn-rest: var(--off-white); --btn-fill: var(--blue-300); --btn-ink-hover: var(--charcoal); }
.st-btn--concrete, .st-btn--quiet { --btn-rest: var(--concrete); --btn-fill: var(--concrete-shade-20); }
.cb-btn-outline { --btn-rest: transparent; --btn-fill: var(--mist); --btn-ink-hover: var(--charcoal); }
.st-btn::before, .hp-chat__chips button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--btn-fill); transform: translate3d(-101%, 0, 0); transition: transform 500ms var(--btn-ease); pointer-events: none; }
.st-page .st-btn:hover, .st-page .st-btn:focus-visible, .st-page .hp-chat__chips button:hover, .st-page .hp-chat__chips button:focus-visible { background: var(--btn-rest); color: var(--btn-ink-hover); }
.st-btn:hover::before, .st-btn:focus-visible::before, .hp-chat__chips button:hover::before, .hp-chat__chips button:focus-visible::before { transform: translate3d(0, 0, 0); }
.st-btn .st-i--arrow-right { transition: transform 300ms var(--btn-ease); }
.st-btn:hover .st-i--arrow-right, .st-btn:focus-visible .st-i--arrow-right { transform: translateX(4px); }
.st-page .st-btn[aria-busy="true"], .st-page .st-btn:disabled { --btn-rest: var(--blue-shade-20); }
.hp-roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: 1.3; }
.hp-roll__a, .hp-roll__b { display: block; transform: translate3d(0, 0, 0); transition: transform 500ms cubic-bezier(0.76, 0, 0.24, 1); }
.hp-roll__b { position: absolute; left: 0; top: 100%; width: 100%; }
.st-btn:hover .hp-roll__a, .st-btn:focus-visible .hp-roll__a, .st-btn:hover .hp-roll__b, .st-btn:focus-visible .hp-roll__b,
.hp-chat__chips button:hover .hp-roll__a, .hp-chat__chips button:focus-visible .hp-roll__a, .hp-chat__chips button:hover .hp-roll__b, .hp-chat__chips button:focus-visible .hp-roll__b { transform: translate3d(0, -100%, 0); }
@media (prefers-reduced-motion: reduce) {
  .st-btn, .st-btn::before, .hp-chat__chips button, .hp-chat__chips button::before, .st-btn .st-i--arrow-right, .hp-roll__a, .hp-roll__b { transition: none !important; }
  .st-btn:hover .st-i--arrow-right, .st-btn:focus-visible .st-i--arrow-right, .st-btn:hover .hp-roll__a, .st-btn:hover .hp-roll__b, .st-btn:focus-visible .hp-roll__a, .st-btn:focus-visible .hp-roll__b,
  .hp-chat__chips button:hover .hp-roll__a, .hp-chat__chips button:hover .hp-roll__b, .hp-chat__chips button:focus-visible .hp-roll__a, .hp-chat__chips button:focus-visible .hp-roll__b { transform: none; }
}

/* ---------- review round 2 (Nov 24 feedback session) ---------- */
/* Footer social links as icon buttons (48px targets, accessible names on each link) */
.hp-foot__social a { justify-content: center; width: var(--touch-target); padding: 0; }
.hp-foot__social .st-i { width: 20px; height: 20px; }
.hp-i--facebook { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z'/%3E%3C/svg%3E"); }
.hp-i--twitter { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z'/%3E%3C/svg%3E"); }
.hp-i--instagram { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='20' x='2' y='2' rx='5'/%3E%3Cpath d='M16 11.4A4 4 0 1 1 12.6 8 4 4 0 0 1 16 11.4zM17.5 6.5h.01'/%3E%3C/svg%3E"); }
.hp-i--linkedin { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-4 0v7h-4v-7a6 6 0 0 1 6-6z'/%3E%3Crect width='4' height='12' x='2' y='9'/%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/svg%3E"); }
.hp-i--youtube { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 17a24 24 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.6 49.6 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24 24 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.6 49.6 0 0 1-16.2 0A2 2 0 0 1 2.5 17'/%3E%3Cpath d='m10 15 5-3-5-3z'/%3E%3C/svg%3E"); }
.hp-i--yelp { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.9 5.9 6.6 1-4.8 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5-4.8-4.6 6.6-1z'/%3E%3C/svg%3E"); }
/* Footer newsletter signup (every page except the homepage, which keeps its full section) */
.hp-foot__news { padding-top: var(--space-7); border-top: 1px solid var(--line); }
.hp-fnews { display: grid; gap: var(--space-5); }
.hp-fnews__copy { display: grid; gap: var(--space-2); }
.hp-fnews__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.hp-fnews__copy p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--charcoal-700); max-width: 52ch; }
@container page (min-width: 1100px) {
  .hp-foot__news { grid-column: 1 / -1; }
  .hp-fnews { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); align-items: center; }
}
/* Homepage: "The Schulman Team" intro now sits directly above the founder and team section, read as one block */
.hp-org-section + .st-section--tint { padding-top: 0; }

/* ---------- Phone layout (under 720px) ----------
   Long card rows become swipe rows with the next card peeking in, so the page is about a third shorter on a phone.
   Each row runs edge to edge and snaps card by card; tablet and desktop keep their grids. */
.st-news, .hp-news__stack, .hp-news__form .st-field { grid-template-columns: minmax(0, 1fr); } /* stops the newsletter form pushing past the card edge */
@container page (max-width: 719.98px) {
  .st-page .hp-swipe { position: relative; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--space-3); margin-inline: calc(var(--space-5) * -1); padding: 0 var(--space-5) var(--space-1); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-5); scrollbar-width: none; }
  .st-page .hp-swipe::-webkit-scrollbar { display: none; }
  .st-page .hp-swipe > * { scroll-snap-align: start; min-width: 0; }
  .st-page .hp-reviews .hp-swipe { grid-auto-columns: 88%; }
  .hp-review { padding: var(--space-6) var(--space-5); }
  .hp-review__quote { font-size: 22px; }
  .hp-review__num { font-size: 26cqi; }
  .hp-hub.hp-swipe .cb-lead { display: grid; grid-template-rows: auto 1fr; }
  .st-page .fq-ai__btns { grid-template-columns: minmax(0, 1fr); }
  .st-hero .hp-hero-controls { margin-top: calc(var(--space-2) * -1); }
}
/* Small phones (under 380px): tighten the header so logo, Contact and menu fit on one row */
@container page (max-width: 379.98px) {
  .st-header__bar { gap: var(--space-2); }
  .hp-header-contact { padding-inline: var(--space-3); }
}

/* Footer legal area, laid out like the Debbie Gates footer: info lines, then a ruled bottom bar
   with legal links on the left and copyright plus "Built by NOUSS" on the right */
.hp-foot__info { display: grid; gap: var(--space-3); }
.hp-foot__info p { margin: 0; }
.hp-foot__dre b { font-weight: 600; }
.hp-foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-6); margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.hp-foot__credit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-6); }
.hp-foot__credit p { margin: 0; }
.hp-builtby { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--touch-target); font-size: 14px; color: var(--ink-muted); text-decoration: none; }
.hp-builtby img { display: block; width: auto; height: 30px; }
.hp-builtby:hover { color: var(--charcoal); }
