/* ==========================================================
   GP DESIGN SYSTEM v2: PORTABLE LAYER
   Everything in this block (tokens + .gp-*) moves to the site.
   ========================================================== */
:root {
  /* core */
  --gp-navy: #001F54;
  --gp-blue: #034078;
  --gp-gradient: linear-gradient(135deg, #001F54 0%, #034078 100%);
  /* cool accents */
  --gp-teal: #1282A2;
  --gp-teal-deep: #0D6D8A;
  --gp-pale: #B7D6E0;
  /* warm accent: one per screen */
  --gp-coral: #FE5F55;
  --gp-coral-deep: #C74A43;
  /* neutrals */
  --gp-page: #FEFCFB;
  --gp-card: #FFFFFF;
  --gp-ink: #0F1C14;
  --gp-muted: #51616B;
  --gp-hairline: #E7EDF0;
  /* logo only, never an accent */
  --lpt-blue: #166BA4;

  /* semantic roles (new in v2, no new colors) */
  --gp-text: var(--gp-ink);
  --gp-text-quiet: var(--gp-muted);
  --gp-heading: var(--gp-navy);
  --gp-link: var(--gp-teal-deep);
  --gp-link-hover: var(--gp-navy);
  --gp-focus: var(--gp-navy);
  --gp-error: var(--gp-coral-deep);
  --gp-success: var(--gp-teal-deep);
  --gp-border: var(--gp-hairline);
  --gp-border-input: var(--gp-muted);

  /* type */
  --gp-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --gp-body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --gp-fs-hero: clamp(2.75rem, 6.4vw, 5.5rem);
  --gp-fs-h1: clamp(2.125rem, 4.5vw, 3.5rem);
  --gp-fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --gp-fs-h3: clamp(1.375rem, 2vw, 1.75rem);
  --gp-fs-lede: clamp(1.25rem, 1.8vw, 1.5rem);
  --gp-fs-body: 1.125rem;
  --gp-fs-small: .9375rem;
  --gp-fs-eyebrow: .8125rem;

  /* space: 4px base */
  --gp-1: 4px; --gp-2: 8px; --gp-3: 12px; --gp-4: 16px; --gp-5: 24px;
  --gp-6: 32px; --gp-7: 48px; --gp-8: 64px; --gp-9: 96px; --gp-10: 128px;
  --gp-section: clamp(64px, 10vw, 128px);
  --gp-gutter: clamp(16px, 4vw, 48px);
  --gp-container: 1200px;
  --gp-measure: 40rem;

  /* shape + motion */
  --gp-radius: 4px;
  --gp-ease: 150ms ease-out;
  --gp-move: 300ms cubic-bezier(.22, .61, .36, 1);
}

.gp-root, .gp-root * { box-sizing: border-box; }
.gp-root { background: var(--gp-page); color: var(--gp-text); font: 400 var(--gp-fs-body)/1.7 var(--gp-body); -webkit-font-smoothing: antialiased; }
.gp-root img { display: block; max-width: 100%; height: auto; }
.gp-root :focus-visible { outline: 2px solid var(--gp-focus); outline-offset: 2px; border-radius: 2px; }
.gp-dark :focus-visible { outline-color: var(--gp-page); }

.gp-container { width: min(var(--gp-container), 100% - 2 * var(--gp-gutter)); margin-inline: auto; }
.gp-hero-title, .gp-h1, .gp-h2, .gp-h3 { font-family: var(--gp-display); color: var(--gp-heading); margin: 0; text-wrap: balance; }
.gp-hero-title { font-size: var(--gp-fs-hero); font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.gp-h1 { font-size: var(--gp-fs-h1); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
.gp-h2 { font-size: var(--gp-fs-h2); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.gp-h3 { font-size: var(--gp-fs-h3); font-weight: 600; line-height: 1.25; }
.gp-lede { font-size: var(--gp-fs-lede); line-height: 1.5; margin: 0; }
.gp-small { font-size: var(--gp-fs-small); line-height: 1.5; color: var(--gp-text-quiet); margin: 0; }
.gp-eyebrow { font: 600 var(--gp-fs-eyebrow)/1.2 var(--gp-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gp-teal-deep); margin: 0; }
.gp-link { color: var(--gp-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; padding-bottom: .12em; transition: color var(--gp-ease), background-size var(--gp-move), text-decoration-color var(--gp-ease); }
.gp-link:hover, .gp-link:focus-visible { color: var(--gp-link-hover); background-size: 100% 2px; text-decoration-color: transparent; }
.gp-rule { display: block; width: 72px; height: 4px; border: 0; margin: 0; background: var(--gp-teal); }

.gp-dark { background: var(--gp-gradient); color: var(--gp-pale); }
.gp-dark .gp-hero-title, .gp-dark .gp-h1, .gp-dark .gp-h2, .gp-dark .gp-h3 { color: var(--gp-page); }
.gp-dark .gp-eyebrow, .gp-dark .gp-small { color: var(--gp-pale); }
.gp-dark .gp-link { color: var(--gp-page); }
.gp-dark .gp-link:hover { color: var(--gp-pale); }
.gp-dark .gp-rule { background: var(--gp-pale); }

/* Buttons */
/* One switch for every touch state. Hover on a real pointer, press on a phone, focus on a keyboard. */
@media (hover: hover) { .gp-touch:hover { --t: 1; --fly: gp-arrow; --h: var(--gp-page); --b: var(--gp-pale); --l: var(--gp-page); } }
.gp-touch:active, .gp-touch:has(:focus-visible), .gp-touch:focus-visible, .gp-touch.is-on { --t: 1; --fly: gp-arrow; --h: var(--gp-page); --b: var(--gp-pale); --l: var(--gp-page); }
@keyframes gp-arrow { 0% { transform: translateX(0); opacity: 1; } 45% { transform: translateX(130%); opacity: 0; } 46% { transform: translateX(-130%); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
.gp-arrow { display: inline-block; width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: var(--fly, none) 340ms cubic-bezier(.22, .61, .36, 1); }

.gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--gp-radius); font: 600 1rem/1 var(--gp-body); text-decoration: none; cursor: pointer; overflow: hidden; transition: background var(--gp-ease), color var(--gp-ease), box-shadow var(--gp-ease), transform var(--gp-ease); }
.gp-btn:active { transform: scale(.98); }
.gp-btn-primary { background: var(--gp-coral); color: var(--gp-navy); }
.gp-btn-secondary { background: var(--gp-navy); color: var(--gp-page); }
.gp-btn-secondary.is-on { background: transparent; color: var(--gp-navy); box-shadow: inset 0 0 0 2px var(--gp-navy); }
@media (hover: hover) { .gp-btn-secondary:hover { background: transparent; color: var(--gp-navy); box-shadow: inset 0 0 0 2px var(--gp-navy); } }
.gp-btn-deep { background: var(--gp-coral-deep); color: #fff; }
.gp-btn[disabled] { background: var(--gp-hairline); color: var(--gp-muted); cursor: not-allowed; }
.is-focus { outline: 2px solid var(--gp-focus); outline-offset: 2px; }

/* Header */
.gp-header { background: var(--gp-page); border-bottom: 1px solid var(--gp-border); }
.gp-header-in { display: flex; align-items: center; justify-content: space-between; gap: var(--gp-4) var(--gp-6); flex-wrap: wrap; padding-block: var(--gp-4); }
.gp-sig { display: block; aspect-ratio: 3004 / 1171; fill: currentColor; color: var(--gp-ink); }
.gp-dark .gp-sig, .gp-sig.is-white { color: #fff; }
.gp-header .gp-sig { width: 148px; }
.gp-nav { display: flex; flex-wrap: wrap; gap: var(--gp-1) var(--gp-5); list-style: none; margin: 0; padding: 0; font: 500 var(--gp-fs-small)/1 var(--gp-body); }
.gp-nav a { display: block; padding: 10px 0 12px; color: var(--gp-ink); text-decoration: none; background: linear-gradient(var(--gp-navy), var(--gp-navy)) 0 100% / 0 2px no-repeat; transition: background-size var(--gp-move); }
.gp-nav a:hover, .gp-nav a:focus-visible { background-size: 100% 2px; }
.gp-nav a[aria-current] { font-weight: 600; color: var(--gp-navy); background-image: linear-gradient(var(--gp-teal), var(--gp-teal)); background-size: 100% 2px; }

/* Hero */
.gp-hero { position: relative; overflow: hidden; }
.gp-hero-in { position: relative; z-index: 1; padding-block: clamp(64px, 11vw, 148px); }
.gp-hero-copy { max-width: 46rem; }
.gp-hero-copy .gp-rule { margin-bottom: var(--gp-6); }
.gp-hero-copy .gp-lede { margin-top: var(--gp-6); max-width: 34rem; font-size: 1.125rem; line-height: 1.6; }
.gp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gp-4) var(--gp-5); margin-top: var(--gp-6); }
.gp-hero .gp-hero-photo { position: absolute; inset: 0 0 0 auto; width: min(44%, 720px); height: 100%; object-fit: cover; object-position: 50% 22%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
@media (max-width: 860px) {
  .gp-hero .gp-hero-photo { position: static; width: 100%; height: 320px; object-position: 50% 24%; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 28%); mask-image: linear-gradient(0deg, transparent 0%, #000 28%); }
  .gp-hero-in { padding-block: var(--gp-6) var(--gp-8); }
}

/* Proof strip */
.gp-proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--gp-6); margin: 0; }
.gp-proof > div { border-top: 1px solid var(--gp-border); padding-top: var(--gp-4); }
.gp-proof dt { font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--gp-display); color: var(--gp-navy); letter-spacing: -.02em; }
.gp-proof dd { margin: var(--gp-2) 0 0; font-size: var(--gp-fs-small); line-height: 1.45; color: var(--gp-muted); }

/* Cards */
.gp-grid { display: grid; gap: var(--gp-5); grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.gp-card { background: var(--gp-card); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); padding: var(--gp-5); }
/* City card: fills with navy from the bottom when touched */
.gp-city { position: relative; overflow: hidden; border-top: 3px solid var(--gp-teal); display: flex; flex-direction: column; gap: var(--gp-2); }
.gp-city::before { content: ""; position: absolute; inset: 0; background: var(--gp-navy); transform: scaleY(var(--t, 0)); transform-origin: bottom; transition: transform var(--gp-move); }
.gp-city > * { position: relative; }
.gp-city .gp-h3 { font-size: 1.375rem; color: var(--h, var(--gp-navy)); transition: color var(--gp-ease); }
.gp-city p { margin: 0 0 auto; font-size: var(--gp-fs-small); line-height: 1.55; color: var(--b, var(--gp-muted)); transition: color var(--gp-ease); }
.gp-city-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--gp-3); margin-top: var(--gp-4); }
.gp-city-foot a { font: 600 var(--gp-fs-small)/1.4 var(--gp-body); color: var(--l, var(--gp-teal-deep)); text-decoration: none; transition: color var(--gp-ease); }
.gp-stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.gp-stretch:focus-visible { outline: none; }

/* Arrow chip: outlined at rest, coral only while touched */
.gp-chip { position: relative; display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--chip-line, var(--gp-navy)); color: var(--gp-navy); overflow: hidden; transition: border-color var(--gp-ease); }
.gp-chip::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--gp-coral); opacity: var(--t, 0); transform: scale(calc(.4 + .6 * var(--t, 0))); transition: opacity var(--gp-ease), transform var(--gp-move); }
.gp-chip .gp-arrow { position: relative; }

/* Photo tint: real color at rest, navy and pale blue duotone while touched */
.gp-tint { position: relative; display: block; overflow: hidden; isolation: isolate; }
.gp-root .gp-tint img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(var(--t, 0)) brightness(calc(1 + .12 * var(--t, 0))); transform: scale(calc(1 + .025 * var(--t, 0))); transition: filter var(--gp-move), transform var(--gp-move); }
.gp-tint::before, .gp-tint::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--t, 0); transition: opacity var(--gp-move); }
.gp-tint::before { background: var(--gp-pale); mix-blend-mode: multiply; }
.gp-tint::after { background: var(--gp-navy); mix-blend-mode: lighten; }

/* Index rows: touching one quiets the rest */
.gp-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gp-border); }
.gp-index li { border-bottom: 1px solid var(--gp-border); }
.gp-index a { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: center; gap: var(--gp-3) var(--gp-5); padding: var(--gp-4) 0; color: var(--gp-navy); text-decoration: none; transition: color var(--gp-ease), padding var(--gp-move); }
.gp-index .gp-eyebrow { color: inherit; }
.gp-index-title { font: 600 clamp(1.125rem, 1.8vw, 1.375rem)/1.25 var(--gp-display); }
.gp-index .gp-arrow { opacity: 0; transform: translateX(-8px); transition: opacity var(--gp-ease), transform var(--gp-move); }
@media (hover: hover) {
  .gp-index:hover a { color: var(--gp-muted); }
  .gp-index a:hover { color: var(--gp-navy); padding-left: var(--gp-2); }
  .gp-index a:hover .gp-arrow { opacity: 1; transform: none; }
}
.gp-index a:focus-visible .gp-arrow, .gp-index a:active .gp-arrow { opacity: 1; transform: none; }
@media (max-width: 560px) {
  .gp-index a { grid-template-columns: minmax(0, 1fr) auto; }
  .gp-index .gp-eyebrow { grid-column: 1 / -1; }
  .gp-index .gp-arrow { opacity: 1; transform: none; }
}

/* Feature row: quiet caption left, big photo right */
.gp-feature { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--gp-5) var(--gp-7); align-items: end; }
.gp-feature .gp-tint { aspect-ratio: 16 / 9; border-radius: var(--gp-radius); }
.gp-feature-meta { list-style: none; margin: var(--gp-4) 0 0; padding: 0; font-size: var(--gp-fs-small); color: var(--gp-muted); }
.gp-feature-meta li { padding: var(--gp-2) 0; border-top: 1px solid var(--gp-border); }
.gp-feature-meta li:last-child { border-bottom: 1px solid var(--gp-border); }
.gp-feature .gp-h3 a { color: inherit; text-decoration: none; }
@media (max-width: 760px) { .gp-feature { grid-template-columns: 1fr; } .gp-feature .gp-tint { order: -1; } }
.gp-article { position: relative; display: flex; flex-direction: column; background: var(--gp-card); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); overflow: hidden; }
.gp-article .gp-tint, .gp-listing .gp-tint { aspect-ratio: 16 / 9; }
.gp-article-body { padding: var(--gp-5); display: flex; flex-direction: column; gap: var(--gp-2); flex: 1; }
.gp-article-body .gp-h3 a, .gp-listing .gp-h3 a { color: inherit; text-decoration: none; }
.gp-article-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--gp-3); margin-top: auto; padding-top: var(--gp-3); }
.gp-article .gp-h3, .gp-listing .gp-h3 { font-size: 1.375rem; }
.gp-listing { position: relative; background: var(--gp-card); border: 1px solid var(--gp-border); border-radius: var(--gp-radius); overflow: hidden; }
.gp-listing-price { font: 700 1.75rem/1 var(--gp-display); color: var(--gp-navy); letter-spacing: -.02em; }
.gp-listing-specs { font-size: var(--gp-fs-small); line-height: 1.4; color: var(--gp-ink); margin: 0; }
.gp-listing-brokerage { font: 500 .8125rem/1.3 var(--gp-body); color: var(--gp-muted); border-top: 1px solid var(--gp-border); padding-top: var(--gp-3); margin: var(--gp-2) 0 0; }

/* The answer system: LLM-first */
.gp-answer { border-top: 4px solid var(--gp-teal); padding-top: var(--gp-5); max-width: var(--gp-measure); }
.gp-answer p { margin: 0; font: 500 var(--gp-fs-lede)/1.45 var(--gp-body); color: var(--gp-navy); }
.gp-answer footer { margin-top: var(--gp-4); font-size: var(--gp-fs-small); line-height: 1.5; color: var(--gp-muted); }
.gp-byline { display: flex; align-items: center; gap: var(--gp-3); font-size: var(--gp-fs-small); line-height: 1.4; color: var(--gp-muted); }
.gp-byline img { width: 44px; height: 44px; border-radius: var(--gp-radius); object-fit: cover; object-position: 50% 26%; }
.gp-byline strong { display: block; color: var(--gp-ink); font-weight: 600; }
.gp-crumbs { display: flex; flex-wrap: wrap; gap: var(--gp-1) var(--gp-2); list-style: none; margin: 0; padding: 0; font-size: var(--gp-fs-small); color: var(--gp-muted); }
.gp-crumbs li + li::before { content: "/"; margin-right: var(--gp-2); color: var(--gp-muted); }
.gp-crumbs a { color: var(--gp-link); }
.gp-table-wrap { overflow-x: auto; }
.gp-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: var(--gp-fs-small); line-height: 1.45; }
.gp-table caption { text-align: left; font: 600 1.0625rem/1.3 var(--gp-body); color: var(--gp-navy); padding-bottom: var(--gp-3); }
.gp-table th, .gp-table td { text-align: left; padding: var(--gp-3) var(--gp-4) var(--gp-3) 0; border-bottom: 1px solid var(--gp-border); vertical-align: top; }
.gp-table thead th { font: 600 var(--gp-fs-eyebrow)/1.2 var(--gp-body); letter-spacing: .1em; text-transform: uppercase; color: var(--gp-muted); }
.gp-table tbody th { font-weight: 600; color: var(--gp-navy); }
.gp-honest { padding: clamp(24px, 4vw, 48px); border-radius: var(--gp-radius); }
.gp-honest .gp-h3 { margin: var(--gp-3) 0; }
.gp-honest p:last-child { margin: 0; max-width: 40rem; color: var(--gp-pale); }
.gp-faq { border-top: 1px solid var(--gp-border); }
.gp-faq details { border-bottom: 1px solid var(--gp-border); }
.gp-faq summary { cursor: pointer; display: flex; justify-content: space-between; gap: var(--gp-4); padding: var(--gp-4) 0; font: 600 1.25rem/1.3 var(--gp-display); color: var(--gp-navy); list-style: none; }
.gp-faq summary::-webkit-details-marker { display: none; }
.gp-faq summary::after { content: "+"; flex: none; font-weight: 500; font-size: 1.5rem; line-height: 1; transition: transform var(--gp-move); }
.gp-faq details[open] summary::after { transform: rotate(45deg); }
.gp-faq p { margin: 0 0 var(--gp-5); max-width: var(--gp-measure); }
.gp-quote { margin: 0; max-width: 46rem; }
.gp-quote .gp-rule { margin-bottom: var(--gp-5); }
.gp-quote blockquote { margin: 0; font: 400 clamp(1.375rem, 2.6vw, 2rem)/1.4 var(--gp-body); color: var(--gp-ink); }
.gp-quote figcaption { margin-top: var(--gp-4); font-size: var(--gp-fs-small); color: var(--gp-muted); }
.gp-stat-num { font: 700 clamp(3.5rem, 9vw, 6.5rem)/1 var(--gp-display); letter-spacing: -.03em; color: var(--gp-coral); }
.gp-author { display: grid; grid-template-columns: 96px 1fr; gap: var(--gp-5); align-items: start; }
.gp-author img { width: 96px; height: 120px; object-fit: cover; object-position: 50% 26%; border-radius: var(--gp-radius); }
.gp-author p { margin: var(--gp-2) 0 0; font-size: 1rem; line-height: 1.6; }
.gp-cta-band { padding-block: clamp(48px, 7vw, 96px); }
.gp-cta-band .gp-btn { margin-top: var(--gp-5); }

/* Forms */
.gp-field { display: grid; gap: var(--gp-2); max-width: 26rem; }
.gp-field label { font: 600 var(--gp-fs-small)/1.3 var(--gp-body); color: var(--gp-ink); }
.gp-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--gp-border-input); border-radius: var(--gp-radius); background: var(--gp-card); color: var(--gp-ink); font: 400 1rem/1.4 var(--gp-body); }
.gp-input[aria-invalid="true"] { border: 2px solid var(--gp-error); }
.gp-hint { font-size: var(--gp-fs-small); line-height: 1.4; color: var(--gp-muted); margin: 0; }
.gp-hint.is-error { color: var(--gp-error); font-weight: 500; }
.gp-hint.is-ok { color: var(--gp-success); font-weight: 500; }

/* Footer */
.gp-footer { padding-block: var(--gp-8) var(--gp-6); }
.gp-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--gp-6); }
.gp-footer .gp-sig { width: 168px; }
.gp-footer-logo { width: 168px; margin-top: var(--gp-4); }
.gp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gp-2); font-size: var(--gp-fs-small); }
.gp-footer a { color: var(--gp-page); text-underline-offset: .18em; }
.gp-footer-legal { margin-top: var(--gp-6); padding-top: var(--gp-4); border-top: 1px solid rgba(183, 214, 224, .3); font-size: .8125rem; line-height: 1.5; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .gp-root *, .gp-root *::before, .gp-root *::after { transition: none !important; animation: none !important; }
  .gp-btn-primary:hover { text-decoration: underline; text-underline-offset: .2em; }
}

