/* Landed Mortgage — site styles
   Layout language: soft off-white canvas, oversized grotesk wordmark, rounded cards,
   bento grids, dark feature sections. Motion is subtle and disabled for reduced-motion users. */

:root {
  --bg: #f3f3f0;
  --surface: #ffffff;
  --surface-2: #ebebe7;
  --ink: #111111;
  --ink-2: #4d4d4a;
  --ink-3: #8f8f8a;
  --line: #e0e0db;
  --dark: #121212;
  --dark-2: #1d1d1c;
  --dark-line: #2c2c2a;
  --on-dark: #f3f3f0;
  --on-dark-2: #a3a39e;
  --accent: #2f5b3c;
  --accent-2: #dfe8da;
  --go: #2f7d4a;
  --go-bg: #e3f1e6;
  --wait: #a4660f;
  --wait-bg: #f8ecd6;
  --stop: #b42318;
  --stop-bg: #fbe4e1;
  --radius: 22px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 30px rgba(0,0,0,.06);
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
  --call: #17803f;
  --call-dark: #10662f;
  --gutter: clamp(16px, 2.6vw, 48px);
  --max: 100%; /* pages stretch to the screen width; long text stays at a readable measure inside */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5.4vw, 68px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 12px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; }
.eyebrow b { font-weight: 500; color: var(--ink-3); opacity: .7; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.hide-sm { display: inline-flex; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--font-body); cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.btn .arr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 12px; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: rotate(-45deg); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light .arr { background: var(--ink); color: #fff; }
.btn--sm { padding: 10px 16px; font-size: 14px; }
/* Call buttons: brand green so the phone number stands out everywhere */
.btn--phone { background: var(--call); border-color: var(--call); color: #fff; }
.btn--phone:hover { background: var(--call-dark); border-color: var(--call-dark); box-shadow: 0 10px 24px rgba(23,122,69,.35); }
.btn--phone .arr { color: var(--call); }
.ico { width: 16px; height: 16px; flex: none; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: box-shadow .3s; }
.site-head.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-head__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.logo { font: 600 22px/1 var(--font-display); letter-spacing: -0.04em; text-decoration: none; display: inline-flex; align-items: flex-start; }
.logo sup { font: 500 10px/1 var(--font-body); letter-spacing: .02em; margin: 2px 0 0 4px; color: var(--ink-3); white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.nav__plus { color: var(--ink-3); font-size: 12px; }
.site-head__cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 28px; height: 1.5px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu { position: fixed; inset: 72px 0 0; background: var(--bg); z-index: 49; overflow-y: auto; }
.menu:not([hidden]) { animation: fadeUp .4s var(--ease); }
.menu__inner { padding-block: 24px 40px; }
.menu__links { list-style: none; margin: 0 0 32px; padding: 0; }
.menu__links a { display: block; font-size: clamp(26px, 6vw, 40px) !important; font: 500 clamp(28px, 7vw, 44px)/1.15 var(--font-display); letter-spacing: -0.03em; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.menu__foot { display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 1080px) { .nav { display: none; } }
.dd { position: relative; }
.dd__btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.dd__btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.dd__btn:hover, .dd__btn[aria-current], .dd.open .dd__btn { color: var(--ink); }
.dd.open .dd__btn::after { transform: rotate(-135deg) translateY(-1px); }
.dd__menu { position: absolute; top: calc(100% + 12px); left: 50%; width: 320px; transform: translate(-50%, 8px); background: var(--surface); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.12); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.dd.open .dd__menu, .dd:focus-within .dd__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) { .dd:hover .dd__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.dd__menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.dd__menu a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.dd__menu a:hover { background: var(--bg); }
.dd__menu a::after { display: none; }
.dd__menu strong { display: block; font-weight: 500; color: var(--ink); }
.dd__menu small { display: block; color: var(--ink-3); font-size: 12.5px; }
.menu__cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 17px; }
.menu__list a { text-decoration: none; }
@media (max-width: 720px) { .menu__cols { grid-template-columns: 1fr; gap: 8px; } }

/* Card collections (guides, cities, statuses) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__tag { align-self: flex-start; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--bg); padding: 5px 10px; border-radius: 999px; }
.card__title { font-size: 20px; margin: 0; }
.card__text { font-size: 14px; color: var(--ink-2); margin: 0; flex: 1; }
.card__more { font-size: 14px; font-weight: 500; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* Province cards */
.provinces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prov { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 380px; padding: 26px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; }
.prov .gate__bg { position: absolute; inset: 0; z-index: -1; }
.prov:hover .gate__bg { transform: scale(1.05); }
.prov__bg img { width: 100%; height: 100%; object-fit: cover; }
.prov__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.72) 100%); }
.prov__name { font: 500 clamp(30px, 3.4vw, 44px)/1 var(--font-display); letter-spacing: -0.04em; margin: 0 0 10px; }
.prov__facts { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.prov__facts li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.25); padding-top: 6px; }
.prov__facts b { font-weight: 500; }
.prov .chip { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(0,0,0,.15); }
@media (max-width: 960px) { .provinces { grid-template-columns: 1fr; } .prov { min-height: 300px; } }

/* Province compare table highlight */
.compare td:first-child { font-weight: 500; }
.tick { color: var(--go); font-weight: 600; }
.cross { color: var(--stop); font-weight: 600; }

/* Punjabi (Gurmukhi) pages: no negative tracking, taller line height */
.lang-pa main { font-family: "Noto Sans Gurmukhi", var(--font-body); }
.lang-pa main h1, .lang-pa main h2, .lang-pa main h3, .lang-pa .cta-band h2 { font-family: "Noto Sans Gurmukhi", var(--font-display); letter-spacing: 0; line-height: 1.35; }
.lang-pa main p, .lang-pa main li { line-height: 1.75; }

/* Print: tools and checklists print as plain documents */
@media print {
  .site-head, .site-foot, .mobile-cta, .cta-band, .crumbs, .toc, .page-hero__aside { display: none !important; }
  body { background: #fff; }
  .tool { display: block; }
  .tool__out { background: #fff; color: #000; position: static; }
  .tool__out .flags li, .tool__out .costs li { color: #000; border-color: #ccc; }
  .tool__out .flags b, .tool__out .costs span { color: #000 !important; }
}

/* Draft language notice */
.draft-banner { background: var(--wait-bg); color: #5c3b07; font-size: 13px; padding: 10px var(--gutter); text-align: center; }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 8px; }
.hero__card { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, #e9ece8 0%, #dfe5df 100%); min-height: min(900px, 92vh); display: flex; flex-direction: column; isolation: isolate; }
.hero__top { position: relative; z-index: 2; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; padding: clamp(24px, 4vw, 52px); }
.wordmark { font: 500 clamp(76px, 15.5vw, 320px)/.86 var(--font-display); letter-spacing: -0.075em; margin: 0; display: inline-flex; align-items: baseline; align-self: start; }
.wordmark sup { font: 500 clamp(12px, 1.2vw, 16px)/1.2 var(--font-body); letter-spacing: 0; align-self: baseline; vertical-align: baseline; margin: 0 0 0 .6em; white-space: nowrap; color: var(--ink-2); }
.hero__intro { align-self: start; max-width: 380px; justify-self: end; padding-top: 12px; }
.hero__people { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hero__people img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.hero__people .line { width: 40px; height: 1px; background: var(--ink); }
.hero__tag { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hero__intro h1 { font: 500 clamp(18px, 1.6vw, 21px)/1.4 var(--font-body); letter-spacing: -0.01em; margin: 0 0 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Hero photo (Moraine Lake): light wash at the top for the wordmark, dark fade at the bottom for white text */
.hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__media-inner { position: absolute; inset: -4% 0 0; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; animation: hero-zoom 18s ease-out both; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(243,243,240,.88) 0%, rgba(243,243,240,.55) 28%, rgba(243,243,240,0) 50%, rgba(10,24,22,0) 62%, rgba(10,24,22,.55) 100%); }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__bottom { position: relative; z-index: 2; margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: clamp(20px, 3vw, 40px); }
.hero__trust { color: #fff; max-width: 560px; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.hero__trust p { font-size: 14px; margin-bottom: 14px; max-width: 300px; }
.hero__logos { display: flex; flex-wrap: wrap; gap: 20px 26px; align-items: center; }
.hero__logos img { height: 22px; width: auto; filter: brightness(0) invert(1); opacity: .85; }
.gate-card { width: 300px; flex: none; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .4s var(--ease); }
.gate-card:hover { transform: translateY(-4px); }
.gate-card__visual { background: var(--dark); color: var(--on-dark); border-radius: 16px; padding: 14px 16px 6px; }
.gate-card__eyebrow { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); margin: 0 0 4px; }
.gate-row { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; white-space: nowrap; }
.gate-row + .gate-row { border-top: 1px solid var(--dark-line); }
.gate-row .dot { width: 8px; height: 8px; border-radius: 50%; }
.gate-row:nth-child(2) .dot { background: #5bd38a; }
.gate-row:nth-child(3) .dot { background: #f2b24b; }
.gate-row:nth-child(4) .dot { background: #5bd38a; }
.gate-row__val { color: var(--on-dark-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.gate-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px 4px; }
.gate-card__foot strong { display: block; font-weight: 500; font-size: 14.5px; }
.gate-card__foot small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.circle-arrow { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; transition: transform .3s var(--ease), background .3s; }
.gate-card:hover .circle-arrow { transform: rotate(-45deg); background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .hero__card { min-height: 0; }
  .hero__top { grid-template-columns: 1fr; gap: 18px; }
  .hero__intro { justify-self: start; max-width: none; }
  .hero__bottom { margin-top: 140px; flex-direction: column; align-items: stretch; }
  .hero__media::after { background: linear-gradient(180deg, rgba(243,243,240,.92) 0%, rgba(243,243,240,.75) 38%, rgba(243,243,240,0) 55%, rgba(10,24,22,.5) 100%); }
  .hero__trust { display: none; }
  .gate-card { width: 100%; }
}

/* Hero photo slideshow: crossfade + slow zoom, gentle float */
.hero__cluster { display: flex; align-items: flex-end; gap: 14px; }
.hero-slides { width: 248px; flex: none; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); animation: float 9s ease-in-out infinite; }
.hero-slides__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.hero-slides__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.4s var(--ease); }
.hero-slides__img.is-active { opacity: 1; animation: kenburns 7s ease-out forwards; }
.hero-slides__img:nth-child(even).is-active { animation-name: kenburns-alt; }
.hero-slides__chip { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: 6px 10px; border-radius: 999px; }
.hero-slides__dots { display: flex; gap: 6px; padding: 10px 4px 2px; }
.hero-slides__dots button { flex: 1; height: 3px; border: 0; padding: 0; border-radius: 3px; background: var(--line); cursor: pointer; position: relative; overflow: hidden; }
.hero-slides__dots button::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.hero-slides__dots button[aria-current="true"]::after { animation: dotfill var(--slide-ms, 5000ms) linear forwards; }
.hero-slides.is-paused .hero-slides__dots button[aria-current="true"]::after { animation-play-state: paused; }
.hero-slides__dots button:focus-visible { outline-offset: 4px; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
@keyframes kenburns-alt { from { transform: scale(1.12) translate(1.5%, 0); } to { transform: scale(1.04) translate(0, -1%); } }
@keyframes dotfill { to { transform: scaleX(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1100px) { .hero-slides { width: 210px; } }
@media (max-width: 860px) {
  .hero__cluster { flex-direction: column; align-items: stretch; }
  .hero-slides { width: 100%; animation: none; }
  .hero-slides__frame { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slides__img { transition: none; }
  .hero-slides__dots button[aria-current="true"]::after { transform: scaleX(1); }
}

/* Banner photo on province and city pages */
.page-photo { margin-top: 0; margin-bottom: clamp(24px, 4vw, 48px); position: relative; }
.page-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; max-height: 72vh; object-fit: cover; object-position: center 55%; border-radius: var(--radius-lg); display: block; }
@media (max-width: 760px) { .page-photo img { aspect-ratio: 16 / 10; } }
.page-photo figcaption { position: absolute; left: 14px; bottom: 14px; font-size: 12px; color: #fff; background: rgba(0,0,0,.4); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }

/* Lender scroll under the hero */
.lenders { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 28px 8px; }
.lenders__head .eyebrow { margin-bottom: 6px; color: var(--ink); }
.lenders__note { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.lenders__track-wrap { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lenders__track { display: flex; flex: none; gap: 56px; padding: 14px 28px; margin: 0; list-style: none; animation: lender-scroll 48s linear infinite; }
.lenders__track-wrap:hover .lenders__track { animation-play-state: paused; }
.lenders__track li { font: 500 clamp(18px, 2vw, 24px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-3); white-space: nowrap; transition: color .3s; }
.lenders__track li:hover { color: var(--ink); }
@keyframes lender-scroll { to { transform: translateX(-100%); } }
@media (max-width: 760px) { .lenders { grid-template-columns: 1fr; gap: 6px; } }
.lenders__track-wrap:focus-within .lenders__track { animation-play-state: paused; }
/* Infinite strips keep moving (slower) when the OS asks for reduced motion; they pause on hover.
   Selector specificity beats the global reduced-motion `*` rule below. */
@media (prefers-reduced-motion: reduce) {
  .lenders__track-wrap .lenders__track { animation: lender-scroll 110s linear infinite !important; }
  .marquee .marquee__track { animation: marquee 90s linear infinite !important; }
}

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 24px; align-items: start; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin: 0; }
.section-head p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 12px; } }

/* Manifesto (words fill in on scroll) */
.manifesto { display: grid; grid-template-columns: 1fr 2.4fr; gap: 24px; }
.manifesto__text { font: 500 clamp(26px, 3.4vw, 46px)/1.18 var(--font-display); letter-spacing: -0.035em; margin: 0; }
.manifesto__text .w { color: var(--ink); transition: color .5s; }
.js .manifesto__text .w { color: #b9b9b4; }
.js .manifesto__text .w.on { color: var(--ink); }
.manifesto__text .slash { color: var(--ink-3); font-weight: 400; }
@media (max-width: 860px) { .manifesto { grid-template-columns: 1fr; } }

/* Bento stats */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.tile { border-radius: var(--radius); padding: 22px; background: var(--surface); min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.tile--dark { background: var(--dark); color: var(--on-dark); }
.tile--green { background: linear-gradient(160deg, #50704f, #23402c); color: #fff; }
.tile__label { font-size: 13px; color: var(--ink-2); margin: 0; }
.tile--dark .tile__label, .tile--green .tile__label { color: rgba(255,255,255,.7); }
.tile__num { font: 500 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.05em; margin: 0; }
.tile__num sup { font-size: .4em; vertical-align: top; margin-left: 2px; }
.tile__of { font-size: .34em; letter-spacing: 0; margin-left: .18em; color: var(--ink-3); font-weight: 400; }
.tile__note { font-size: 13px; margin: 0; max-width: 260px; }
.tile .stars { color: #e3a008; letter-spacing: 2px; font-size: 14px; }
.badge-ring { position: absolute; right: 18px; top: 18px; width: 92px; height: 92px; animation: spin 24s linear infinite; }
.badge-ring text { font: 600 9.5px var(--font-body); letter-spacing: 2.6px; fill: rgba(255,255,255,.75); text-transform: uppercase; }
.badge-core { position: absolute; right: 44px; top: 44px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); font: 600 13px var(--font-display); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.avatar-grid span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--font-display); color: #fff; }
.tile__img { width: 72px; height: 88px; border-radius: 12px; object-fit: cover; object-position: center top; }
.tile--green svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.tile--green > * { position: relative; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .tile { min-height: 200px; } }

/* Dark status section with accordion */
.dark-panel { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); }
.dark-panel .eyebrow { color: var(--on-dark-2); }
.dark-panel .section-head p { color: var(--on-dark-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--dark-line); font-size: 12px; color: var(--on-dark-2); }
.chips--light .chip { border-color: var(--line); color: var(--ink-2); background: var(--surface); }
.acc { border-top: 1px solid var(--dark-line); }
.acc__item { border-bottom: 1px solid var(--dark-line); }
.acc__btn { width: 100%; display: grid; grid-template-columns: 60px 1fr 1.2fr 44px; gap: 20px; align-items: center; background: none; border: 0; color: inherit; text-align: left; padding: 26px 0; cursor: pointer; font: inherit; }
.acc__num { color: var(--on-dark-2); font-size: 13px; }
.acc__title { font: 500 clamp(20px, 2.2vw, 28px)/1.15 var(--font-display); letter-spacing: -0.025em; }
.acc__teaser { color: var(--on-dark-2); font-size: 14px; }
.acc__icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dark-line); display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; font-size: 18px; }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: #fff; color: var(--ink); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__body { display: grid; grid-template-columns: 60px 1fr 1.2fr 44px; gap: 20px; padding-bottom: 28px; }
.acc__body > :first-child { grid-column: 2 / 4; }
.acc__body ul { margin: 0 0 16px; padding-left: 18px; color: var(--on-dark-2); }
.acc__body li { margin-bottom: 6px; }
.acc__body li strong { color: var(--on-dark); font-weight: 500; }
@media (max-width: 860px) {
  .acc__btn { grid-template-columns: 1fr 40px; }
  .acc__num, .acc__teaser { display: none; }
  .acc__body { grid-template-columns: 1fr; }
  .acc__body > :first-child { grid-column: auto; }
}
/* No-JS fallback: panels stay open */
html:not(.js) .acc__panel { grid-template-rows: 1fr; }

/* Gate showcase cards */
.gates { display: grid; gap: 14px; }
.gate { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 36px); isolation: isolate; }
.gate__bg { position: absolute; inset: 0; z-index: -1; transition: transform 1.2s var(--ease); }
.gate:hover .gate__bg { transform: scale(1.04); }
.gate__bg svg { width: 100%; height: 100%; }
.gate__top { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; opacity: .9; }
.gate__top p { max-width: 340px; margin: 0; }
.gate__title { font: 500 clamp(30px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -0.04em; margin: 0 0 14px; }
.gate__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.gate .chip { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(0,0,0,.12); backdrop-filter: blur(6px); }
.gate__fact { text-align: right; font-size: 13px; }
.gate__fact strong { display: block; font: 500 clamp(26px, 3vw, 38px)/1 var(--font-display); letter-spacing: -0.03em; }
@media (max-width: 640px) { .gate { min-height: 380px; } .gate__fact { text-align: left; } }

/* Tax swing interactive */
.swing { display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.swing__controls, .swing__result { background: var(--surface); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.swing__result { background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 999px; margin-bottom: 18px; }
.seg button { border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font: 500 13px var(--font-body); cursor: pointer; color: var(--ink-2); transition: background .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.swing__big { font: 500 clamp(54px, 8vw, 104px)/.95 var(--font-display); letter-spacing: -0.06em; margin: 0; font-variant-numeric: tabular-nums; }
.swing__break { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; color: var(--on-dark-2); }
.swing__break li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--dark-line); }
.swing__break li span:last-child { color: var(--on-dark); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .swing { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.process__col { display: grid; grid-template-rows: 220px auto; gap: 10px; }
.process__track { background: repeating-linear-gradient(90deg, transparent 0 11px, var(--line) 11px 12px), var(--surface); border-radius: var(--radius-sm); position: relative; overflow: hidden; }
.process__bar { position: absolute; left: 0; right: 0; height: 30px; background: var(--ink); color: #fff; font-size: 12px; padding: 0 12px; display: flex; align-items: center; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.process__col:nth-child(1) .process__bar { top: 12px; }
.process__col:nth-child(2) .process__bar { top: 44px; transition-delay: .15s; }
.process__col:nth-child(3) .process__bar { top: 76px; transition-delay: .3s; }
.process__col:nth-child(4) .process__bar { top: 108px; transition-delay: .45s; }
.process.in .process__bar, html:not(.js) .process__bar { transform: scaleX(1); }
.process__n { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-3); }
.process__card { background: var(--surface); border-radius: var(--radius-sm); padding: 18px; }
.process__card h3 { font-size: 17px; margin-bottom: 8px; }
.process__card p { font-size: 13px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } .process__col { grid-template-rows: 150px auto; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* Reviews bento */
.reviews { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; }
.rating-card { background: var(--dark); color: var(--on-dark); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; position: relative; overflow: hidden; }
.rating-card__num { font: 500 64px/1 var(--font-display); letter-spacing: -0.05em; margin: 10px 0; }
.rating-card__num small { font-size: 22px; letter-spacing: 0; margin-left: .3em; color: var(--on-dark-2); font-weight: 400; }
.quote { background: var(--surface); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; justify-content: space-between; transition: transform .4s var(--ease), box-shadow .4s; }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote__mark { font: 600 34px/0.6 Georgia, serif; color: var(--ink); }
.quote blockquote { margin: 0; font: 500 16px/1.4 var(--font-display); letter-spacing: -0.01em; }
.quote__who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.quote__who .ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; }
.quote__who small { display: block; color: var(--ink-3); }
.quote .stars { color: #e3a008; font-size: 13px; letter-spacing: 1px; }
.reviews__col { display: grid; gap: 12px; }
@media (max-width: 1000px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* Press marquee */
.marquee { overflow: hidden; border-radius: var(--radius); background: var(--surface); padding: 22px 0; margin-top: 12px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 28px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.marquee img:hover { filter: none; opacity: 1; }
.marquee__label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font: 500 clamp(18px, 1.8vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 22px; color: var(--ink-2); max-width: 720px; }
.faq details[open] > div { animation: fadeUp .4s var(--ease); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Author / trust strip */
.author { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.author__photo { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); position: relative; aspect-ratio: 4 / 5; align-self: start; }
.author__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; position: absolute; inset: 0; }
.author__body { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.creds div { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.creds div:nth-child(odd) { padding-right: 16px; }
.creds dt { color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.creds dd { margin: 0; }
@media (max-width: 860px) { .author { grid-template-columns: 1fr; } .author__photo { max-width: 460px; width: 100%; } .creds { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); background: linear-gradient(150deg, #2b4a33 0%, #18271c 100%); color: #fff; padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: end; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 60px); margin: 0; }
.cta-band p { color: rgba(255,255,255,.75); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } }

/* Article pages */
.page-hero { padding-block: clamp(24px, 4vw, 56px) clamp(24px, 3vw, 40px); }
.page-hero__card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: end; }
.page-hero h1 { margin-bottom: 18px; }
.bluf { font: 400 clamp(17px, 1.3vw, 20px)/1.55 var(--font-body); color: var(--ink-2); margin: 0; max-width: 820px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-2); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.byline a { font-weight: 500; color: var(--ink); }
.page-hero__aside { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 860px) { .page-hero__card { grid-template-columns: 1fr; } }
.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; text-decoration: none; color: var(--ink-3); margin-left: -1px; border-left: 1px solid transparent; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); border-left-color: var(--ink); }
.prose { max-width: 880px; }
.prose section { padding-bottom: 12px; margin-bottom: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(26px, 2.8vw, 34px); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2b2b29; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose .answer { font-size: 18px; color: var(--ink); }
.note { border-radius: var(--radius-sm); padding: 16px 18px; background: var(--wait-bg); color: #5c3b07; font-size: 14px; margin: 18px 0; }
.note--info { background: var(--accent-2); color: #1d3a26; }
.note strong { font-weight: 600; }
.source { font-size: 13px; color: var(--ink-3); }
.source a { color: var(--ink-3); }
/* Key facts: four short answers at the top of a hub page */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; }
.facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.facts dt { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink); }
.facts dd strong { display: block; font-size: 20px; font-weight: 600; margin-bottom: 2px; }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.more { font-weight: 500; }
.sources summary { cursor: pointer; font-size: 14px; color: var(--ink-3); padding: 8px 0; }
.sources ul { font-size: 13px; color: var(--ink-3); }
.sources a { color: var(--ink-3); }
.table-wrap { overflow-x: auto; margin: 18px 0; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; background: var(--bg); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; display: none; } }

/* Tool shell (checker + calculator) */
.tool { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; align-items: start; }
.tool__form, .tool__out { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); }
.tool__out { position: sticky; top: 90px; background: var(--dark); color: var(--on-dark); }
.tool__out .muted { color: var(--on-dark-2); }
@media (max-width: 960px) { .tool { grid-template-columns: minmax(0, 1fr); } .tool__out { position: static; } }
.step { border: 0; margin: 0 0 26px; padding: 0; }
.step legend { font: 500 18px/1.3 var(--font-display); letter-spacing: -0.015em; margin-bottom: 12px; padding: 0; display: flex; gap: 10px; align-items: baseline; }
.step legend span { font: 500 12px var(--font-body); color: var(--ink-3); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 14px; font-weight: 500; }
.field .hint { font-size: 12.5px; color: var(--ink-3); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: 400 16px/1.3 var(--font-body); padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--ink); background: #fff; outline: none; }
.money { position: relative; }
.money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.money input { padding-left: 28px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 14px; line-height: 1.3; transition: border-color .2s, background .2s, transform .2s; }
.opt span small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; }
.opt input:checked + span { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt:hover span { transform: translateY(-1px); }
.result-gate { border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; background: var(--dark-2); border: 1px solid var(--dark-line); transition: border-color .4s; }
.result-gate__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
.result-gate__head h3 { font-size: 17px; margin: 0; }
.pill { font: 600 11px/1 var(--font-body); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.pill--go { background: #1f4d30; color: #8fe0ad; }
.pill--wait { background: #4d3410; color: #f6c46d; }
.pill--stop { background: #551b16; color: #ff9d92; }
.pill--idle { background: var(--dark-line); color: var(--on-dark-2); }
.result-gate p { margin: 0; font-size: 14px; color: var(--on-dark-2); }
.result-gate p + p { margin-top: 8px; }
.result-gate.flash { animation: flash .7s var(--ease); }
@keyframes flash { 0% { border-color: #fff; } 100% { border-color: var(--dark-line); } }
.flags { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 13px; }
.flags li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--dark-line); color: var(--on-dark-2); }
.flags li b { font-weight: 500; color: var(--on-dark); }
.costs { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.costs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--dark-line); color: var(--on-dark-2); }
.costs li span:last-child { color: var(--on-dark); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.costs li span:last-child a { word-break: break-word; }
@media (max-width: 480px) { .costs li span:last-child { white-space: normal; } }
.costs li.total { font-size: 16px; color: var(--on-dark); border-top-color: #555; }
.costs li.total span:last-child { font: 500 26px/1 var(--font-display); letter-spacing: -0.03em; }
.costs li.refund span:last-child { color: #8fe0ad; }
.how { margin-top: 18px; }
.how summary { cursor: pointer; font-weight: 500; }
.how > div { font-size: 14px; color: var(--ink-2); padding-top: 10px; }

/* Lead form */
.lead { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(22px, 3.4vw, 40px); }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.lead__grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .lead__grid { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); margin: 6px 0 16px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ink); }
.form-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }
.form-ok { display: none; border-radius: var(--radius-sm); background: var(--go-bg); color: #1b4a2b; padding: 16px; margin-top: 14px; }
.form-ok.show { display: block; animation: fadeUp .4s var(--ease); }
.form-err { display: none; border-radius: var(--radius-sm); background: #fbe9e7; color: #7a2418; padding: 16px; margin-top: 14px; }
.form-err.show { display: block; animation: fadeUp .4s var(--ease); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-foot { padding: clamp(48px, 7vw, 96px) 0 calc(var(--gutter) + 8px); }
.site-foot__card { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(24px, 4.4vw, 56px); }
.site-foot__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: clamp(32px, 5vw, 64px); }
.site-foot__mark { font: 500 clamp(72px, 13vw, 190px)/.86 var(--font-display); letter-spacing: -0.075em; margin: 0; display: inline-flex; align-items: baseline; }
.site-foot__mark sup { font: 500 clamp(11px, 1.1vw, 15px)/1.2 var(--font-body); letter-spacing: 0; align-self: baseline; vertical-align: baseline; margin: 0 0 0 .6em; color: var(--on-dark-2); white-space: nowrap; }
.site-foot__years { font-size: 15px; text-align: right; border-bottom: 2px solid var(--on-dark); padding-bottom: 12px; margin: 0; }
.site-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.site-foot__grid nav { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.site-foot__grid nav a { text-decoration: none; color: var(--on-dark); opacity: .85; }
.site-foot__grid nav a:hover { opacity: 1; text-decoration: underline; }
.site-foot__label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); margin: 0 0 6px; }
.site-foot__lede { font-size: 14px; color: var(--on-dark-2); max-width: 340px; }
.site-foot__mail { font: 500 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -0.02em; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-foot__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid var(--dark-line); font-size: 13px; }
.site-foot__meta a { text-decoration: none; }
.site-foot__legal { font-size: 12px; line-height: 1.6; color: var(--on-dark-2); border-top: 1px solid var(--dark-line); padding-top: 18px; margin: 0; }
.site-foot__legal p { margin: 0 0 8px; }
.site-foot__legal ul { margin: 0 0 10px; padding-left: 18px; }
.site-foot__legal strong { color: var(--on-dark); font-weight: 600; }
.site-foot__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 12px; color: var(--on-dark-2); }
.site-foot__base > span:first-child { flex: 1 1 100%; }
.to-top { width: 40px; height: 40px; border: 1px solid var(--dark-line); border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--on-dark); transition: background .3s, transform .3s var(--ease); }
.to-top:hover { background: #fff; color: var(--ink); transform: translateY(-3px); }
@media (max-width: 860px) {
  .site-foot__grid { grid-template-columns: 1fr 1fr; }
  .site-foot__grid > div:first-child { grid-column: 1 / -1; }
  .site-foot__meta { grid-template-columns: 1fr; }
  .site-foot__top { flex-direction: column; }
  .site-foot__years { text-align: left; }
}

/* Mobile sticky CTA */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; justify-content: center; gap: 8px; padding: 15px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .45s var(--ease); }
  .mobile-cta.show { transform: none; }
  body.no-mobile-cta .mobile-cta { display: none; }
  .site-foot { padding-bottom: 84px; }
}

/* Reveal animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.hero-in > * { animation: fadeUp 1s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .12s; }
.wordmark .ch { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .manifesto__text .w { color: var(--ink); }
}

/* ---------- Performance and touch tuning (mobile audit 2026-11-13) ---------- */
/* No double-tap-zoom wait on taps; instant pressed feedback */
a, button, input, select, label, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(23,128,63,.15); }
.btn:active, .gate-card:active, .card:active, .opt:active span, .seg button:active { transform: scale(.97); transition-duration: .08s; }
/* Hover lifts only on devices that really hover, so effects never "stick" after a tap */
@media (hover: none) {
  .btn:hover, .gate-card:hover, .quote:hover, .card:hover, .opt:hover span { transform: none; box-shadow: none; }
  .prov:hover .gate__bg, .gate:hover .gate__bg { transform: none; }
  .btn:hover .arr { transform: none; }
}
/* Tap targets of at least 44px on touch screens */
.hero-slides__dots button { height: 24px; background: none; }
.hero-slides__dots button::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--line); }
.hero-slides__dots button::after { top: 50%; bottom: auto; height: 3px; margin-top: -1.5px; border-radius: 3px; }
@media (pointer: coarse), (max-width: 860px) {
  .seg button { min-height: 44px; padding: 10px 16px; }
  .site-foot__mail { display: inline-block; padding: 10px 0; }
  .site-foot__grid nav { gap: 2px; }
  .site-foot__grid nav a, .menu__list a, .crumbs a, .toc a { display: inline-block; padding: 10px 0; }
  .menu__list { gap: 0; }
  .logo { padding: 11px 0; }
  .link-arrow { padding: 10px 0 6px; }
  .site-foot__meta a, .site-foot__legal a { display: inline-block; padding: 6px 0; }
}
/* Blur effects are expensive to paint on phones: use solid backgrounds instead */
@media (max-width: 860px) {
  .site-head { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .gate-card, .hero-slides, .hero-slides__chip, .gate .chip, .page-photo figcaption { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gate-card, .hero-slides { background: #fff; }
}
/* Infinite strips (press logos, lenders): when JS is running it drives the scroll at a steady speed,
   so the CSS animation is switched off (it stays as the no-JS fallback). Declared late so it wins. */
.js-marquee .marquee__track, .js-marquee .lenders__track { animation: none !important; will-change: transform; }

/* Faster, shorter entrance animations so buttons and content are usable immediately */
.js [data-reveal] { transform: translateY(14px); transition-duration: .55s; }
.hero-in > * { animation-duration: .5s; }
.hero-in > *:nth-child(2) { animation-delay: .06s; }
.wordmark .ch { animation-duration: .7s; animation-delay: calc(var(--i) * 30ms); }
.hero__media img { animation-duration: 12s; }

/* Gate photos: three columns on wide screens so each photo keeps a natural shape */
.gate__bg--photo img { width: 100%; height: 100%; object-fit: cover; }
.gate__bg--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,14,20,.55) 0%, rgba(8,14,20,.15) 38%, rgba(8,14,20,.35) 62%, rgba(8,14,20,.85) 100%); }
@media (min-width: 1100px) {
  .gates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gate { min-height: 560px; }
  .gate__title { font-size: clamp(28px, 2.4vw, 40px); }
  .gate__top { flex-direction: column; gap: 6px; }
  .gate__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gate__fact { text-align: left; }
}
/* Province cards: photos anchored on their subject */
.prov__bg img { object-position: center 60%; }

/* Hero press logos: two groups, press releases labelled separately */
.hero__logos-label { width: 100%; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; margin: 4px 0 -8px; }
.hero__logos img.badge { height: 34px; }
@media (max-width: 1100px) { .hero__logos { gap: 14px 20px; } .hero__logos img { height: 18px; } .hero__logos img.badge { height: 28px; } }

/* Hero trust panel: readable over a busy city photo */
.hero__trust { background: rgba(10, 22, 16, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 18px 20px; border-radius: 20px; max-width: 520px; text-shadow: none; }
.hero__trust p { margin-bottom: 12px; max-width: none; }
.hero__logos { gap: 14px 22px; }
.hero__logos img { height: 20px; opacity: .92; }
.hero__logos img.badge { height: 28px; }
.hero__logos-label { width: auto; margin: 0 -8px 0 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); font-size: 10.5px; }
.hero__media::after { background: linear-gradient(180deg, rgba(243,243,240,.9) 0%, rgba(243,243,240,.6) 26%, rgba(243,243,240,0) 46%, rgba(10,24,22,0) 60%, rgba(10,24,22,.45) 100%); }
@media (max-width: 860px) { .hero__media::after { background: linear-gradient(180deg, rgba(243,243,240,.94) 0%, rgba(243,243,240,.8) 42%, rgba(243,243,240,.1) 60%, rgba(10,24,22,.4) 100%); } }

/* Clickable rating tile: jumps to the reviews section */
.tile--link { text-decoration: none; color: inherit; cursor: pointer; transition: transform .4s var(--ease), box-shadow .4s; }
.tile--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile__more { position: absolute; bottom: 30px; right: 22px; font-size: 12px; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid currentColor; }
.tile--link:hover .tile__more { color: var(--ink); }
#reviews { scroll-margin-top: 88px; }
