/* ==========================================================================
   Gaurav Suri — Mortgage Agent
   Editorial blue-on-black. Geist for text, Instrument Serif italic as the
   single accent voice; small labels are Geist caps. Motion lives in site.js.
   ========================================================================== */

@font-face { font-family: 'Geist'; src: url(../assets/fonts/geist-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(../assets/fonts/geist-mono-var.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(../assets/fonts/instrument-serif-italic.woff2) format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #04060b;
  --bg-2: #080c16;
  --ink: #eef2fa;
  --ink-2: #aab4c8;
  --ink-3: #6c7890;
  --line: rgba(238, 242, 250, .1);
  --line-2: rgba(238, 242, 250, .18);
  --blue: #3d7bff;
  --blue-2: #7fb0ff;
  --cyan: #5cd0ff;

  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
@property --rule { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.progress { position: fixed; z-index: 200; inset: 0 0 auto; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) { .progress { display: none; } }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 4px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.mono, .label, .svc__n span, .svc__tag, .card__meta, .realty__list .realty__k, .ftr__k, .spec dt {
  font-family: var(--mono); font-size: .72rem; line-height: 1.3; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
/* figures line up in columns: licence numbers, rates, dollar amounts */
.spec dd, .hero__card-cap dd, .hero__card-cap dt, .tnum { font-variant-numeric: tabular-nums; }
.label { display: flex; align-items: center; gap: .9rem; color: var(--ink-3); margin-bottom: 2rem; }
.label--center { justify-content: center; }
.label--center::before { content: ''; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.label span { color: var(--blue-2); }
.label::after { content: ''; flex: 0 0 48px; height: 1px; background: var(--line-2); }
.h2 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.4rem); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.h2 em { color: var(--blue-2); font-size: 1.08em; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; gap: .75rem; height: var(--h);
  padding: 0 1.4rem; border-radius: 999px; font: 500 .95rem/1 var(--sans); letter-spacing: -.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s, transform .4s var(--ease);
}
.btn i { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover i { transform: translateX(4px); }
/* fill wipes up from below on hover */
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue::before { background: #fff; }
.btn--blue:hover { color: var(--bg); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light::before { background: var(--blue); }
.btn--light:hover { color: #fff; }
.btn--line { border: 1px solid var(--line-2); color: var(--ink); }
.btn--line::before { background: var(--ink); }
.btn--line:hover { color: var(--bg); border-color: var(--ink); }

/* ---- Header ------------------------------------------------------------ */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .6s var(--ease), background .4s, backdrop-filter .4s; }
.hdr.is-solid { background: rgba(4, 6, 11, .66); backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 78px; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.25rem); }
.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; flex: none; }
.brand__logo { height: 50px; width: auto; flex: none; display: block; }
.brand__text { display: flex; flex-direction: column; gap: .3rem; line-height: 1; }
.brand__name { font-weight: 600; font-size: 1.15rem; letter-spacing: -.03em; }
.brand__role { font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); white-space: nowrap; }
.menu { display: flex; gap: clamp(1.1rem, 2vw, 2rem); }
.menu a { position: relative; font-size: .9rem; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.menu a:hover { color: var(--ink); }
.menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr__partners { display: flex; align-items: center; gap: 1rem; padding: 0 clamp(.9rem, 1.6vw, 1.5rem); border-inline: 1px solid var(--line); height: 44px; flex: none; }
.hdr__partners img { width: auto; display: block; max-width: none; }
.hdr__partners img:first-child { height: 34px; }
.hdr__partners img:last-child { height: 44px; }
.hdr__partners i { width: 1px; height: 22px; background: var(--line-2); }
.hdr__cta { --h: 44px; padding: 0 1.2rem; font-size: .9rem; flex: none; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: none; position: relative; cursor: pointer; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.hdr.is-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.hdr.is-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1240px) { .hdr__partners { display: none; } }
@media (max-width: 960px) {
  .menu { position: fixed; inset: 78px 0 auto; flex-direction: column; gap: 0; padding: 1rem var(--gutter) 2rem; background: rgba(4,6,11,.97); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease); }
  .menu a { display: block; padding: 1rem 0; font-size: 1.6rem; letter-spacing: -.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .hdr.is-open .menu { clip-path: inset(0); }
  .burger { display: block; }
  .hdr__cta { display: none; }
}

/* ---- Hero -------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; background: var(--bg); isolation: isolate; display: flex; flex-direction: column; padding-top: 78px; }
/* a calm, slow-moving blue light: no pointer interaction */
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg .glow { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero__bg .g1 { width: 50vw; aspect-ratio: 1; left: 8vw; top: -38%; background: radial-gradient(circle, rgba(46,102,255,.26), transparent 68%); animation: drift1 26s ease-in-out infinite alternate; }
.hero__bg .g2 { width: 40vw; aspect-ratio: 1; left: -8vw; bottom: -24%; background: radial-gradient(circle, rgba(70,180,255,.16), transparent 68%); animation: drift2 32s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(-5vw, 6vh, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(8vw, -6vh, 0) scale(1.12); } }

.hero__main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(2rem, 4.5vw, 5rem); align-items: center; padding-block: clamp(1.5rem, 4vh, 3rem); }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.hero__eyebrow { font-size: .85rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-2); }

.hero__title { margin-top: clamp(1rem, 2.4vh, 1.6rem); font-weight: 500; font-size: clamp(2.6rem, min(4.7vw, 10.5vh), 4.9rem); line-height: .98; letter-spacing: -.055em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.05em; white-space: nowrap; }
.hero__title .ln > span { display: inline-block; will-change: transform; }
.hero__title em { color: var(--blue-2); font-size: 1.08em; letter-spacing: -.03em; padding-right: .04em; }

.hero__lead { margin-top: clamp(1.25rem, 3vh, 1.9rem); max-width: 33rem; color: var(--ink-2); font-size: clamp(1rem, .96rem + .28vw, 1.15rem); line-height: 1.65; text-wrap: pretty; }

.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.75rem; margin-top: clamp(1.5rem, 3.6vh, 2.25rem); }
.hero__links { display: flex; gap: 1.75rem; }
.hero__link { font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .3s, color .3s; }
.hero__link:hover { color: var(--blue-2); border-color: var(--blue-2); }
.hero__note { margin-top: 1.25rem; font-size: .88rem; color: var(--ink-3); }

/* ---- Glass backdrop (shared: homepage hero, real estate hero) -----------
   The skyline through reeded glass: Paper Shaders "Fluted Glass", mounted by
   js/shader-bg.js into any [data-shader="fluted"]. Until it mounts, or where
   WebGL2 is missing, the same photo shows through a CSS flute pattern. */
.glassbg { position: absolute; inset: 0; z-index: -2;
  background: #0b1a33 url(../assets/img/photos/toronto-night.webp) 38% 72% / cover no-repeat; }
.glassbg::before { content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(4,6,11,.34) 0 2px, rgba(255,255,255,.035) 12px, rgba(4,6,11,.22) 30px);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.glassbg.is-live::before { display: none; }
.glassbg canvas { opacity: 0; transition: opacity 1.2s var(--ease); }
.glassbg.is-live canvas { opacity: 1; }

/* homepage: glass behind everything, text kept legible on the left, the
   portrait standing in front of the city on the right */
.hero__bg::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 75% at 20% 55%, rgba(4,6,11,.8), transparent 75%),
    /* the copy column reads over the brightest part of the skyline, so it gets
       its own wedge; it clears well before the portrait */
    linear-gradient(100deg, rgba(4,6,11,.72) 0%, rgba(4,6,11,.4) 30%, transparent 56%),
    linear-gradient(180deg, rgba(4,6,11,.82) 0%, rgba(4,6,11,.25) 30%, rgba(4,6,11,.3) 64%, rgba(4,6,11,.92) 94%, var(--bg) 100%); }
.hero__bg .glow { mix-blend-mode: screen; }

/* portrait: just the person on the page — no frame, border, backdrop or rings.
   The figure dissolves into the page at --fade; the caption is a real row
   underneath it, never an overlay — floated over the photo it landed on his
   chest at the widths where the portrait shrinks. */
.hero__card { --fade: 86%; position: relative; margin: 0; justify-self: end; width: min(100%, 580px);
  display: grid; gap: clamp(.75rem, 1.6vh, 1.1rem); container-type: inline-size; }
.hero__card-photo { display: block; min-height: 0; }
/* header + trust strip + this caption are what the portrait has to share the
   viewport with, so it is capped rather than pushing the hero past one screen */
.hero__card-photo img { display: block; width: 100%; height: auto; max-width: none;
  max-height: calc(100svh - 360px); object-fit: contain; object-position: 50% 100%;
  -webkit-mask-image: linear-gradient(180deg, #000 var(--fade), transparent 100%); mask-image: linear-gradient(180deg, #000 var(--fade), transparent 100%); }
/* a spec bar, so the space between name and numbers reads as structure */
.hero__card-cap { display: flex; justify-content: space-between; align-items: flex-end; gap: .75rem 2rem;
  padding-top: clamp(.7rem, 1.4vh, 1rem); border-top: 1px solid var(--line-2); }
.hero__card-name { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.hero__card-role { color: var(--blue-2); font-size: .9rem; margin-top: .25rem; white-space: nowrap; }
.hero__card-cap dl { display: flex; gap: clamp(1rem, 2.4cqi, 1.5rem); text-align: right; }
.hero__card-cap dt { font-size: .64rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .2rem; }
.hero__card-cap dd { font-size: .92rem; font-weight: 500; letter-spacing: -.01em; }

@container (max-width: 360px) {
  .hero__card-cap { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .hero__card-cap dl { text-align: left; }
}
/* trust strip: the logos, licence numbers and who he works with */
.hero__trust { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(4,6,11,0), rgba(8,12,22,.85)); }
/* two cells now: the brokerage licence line used to sit in a third, right-hand
   cell, where it read as belonging to Save Max. It is Affinity's, and the
   footer states it with the right attribution. */
.hero__trust-in { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); padding-block: clamp(1rem, 2.2vh, 1.5rem); }
.hero__trust-k { font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); line-height: 1.6; }

@media (max-width: 1100px) { .hero__trust-in .logos { justify-content: flex-end; } }
@media (max-width: 900px) {
  .hero { padding-top: 92px; }
  .hero__main { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 1.25rem 2.5rem; }
  .hero__card { justify-self: center; width: min(100%, 440px); }
  .hero__title { font-size: clamp(2.5rem, 1rem + 6.6vw, 4.4rem); }
  /* stacked, the portrait has the whole column to itself and would run the
     hero well past one screen — keep it to a readable crop instead */
  .hero__card-photo img { max-height: min(40svh, 340px); }
  /* stacked, the copy runs the full width, so a left-hand wedge no longer
     covers it — darken the whole band the text sits in instead */
  .hero__bg::after { background:
    linear-gradient(180deg, rgba(4,6,11,.9) 0%, rgba(4,6,11,.74) 34%, rgba(4,6,11,.6) 54%, rgba(4,6,11,.35) 70%, rgba(4,6,11,.9) 92%, var(--bg) 100%); }
  .hero__trust-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero__trust-in .logos { justify-content: center; }
}
@media (max-width: 560px) { .hero__trust .logos { gap: 1.1rem 1.6rem; } .hero__trust .logo--erm { height: 60px; } .hero__trust .logo--aff { height: 42px; } .hero__trust .logo--dlc { height: 48px; } .hero__trust .logo--smx { height: 40px; } .hero__trust .sep { display: none; } }
@media (max-width: 480px) {
  .hero__title .ln { white-space: normal; }
  .hero__card-cap { flex-direction: column; align-items: flex-start; gap: .7rem; }
  .hero__card-cap dl { text-align: left; }
}

/* ---- Manifesto (scrubbed word reveal) ----------------------------------- */
.manifesto { padding: clamp(7rem, 16vw, 13rem) 0 clamp(5rem, 10vw, 9rem); }
.manifesto__text { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.5rem); line-height: 1.14; letter-spacing: -.035em; font-weight: 450; max-width: 1180px; }
.manifesto__text .w { display: inline-block; opacity: .14; transition: none; }
.no-js .manifesto__text .w { opacity: 1; }

/* ---- Brokerage band (logos) -------------------------------------------- */
.logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.logo { margin: 0; display: flex; align-items: center; transition: translate .6s var(--ease); }
.logo { flex: none; }
.logo img { display: block; width: auto; height: 100%; max-width: none; }
.logo--erm { height: clamp(64px, 6.2vw, 84px); } .logo--aff { height: clamp(46px, 4.4vw, 60px); }
.logo--dlc { height: clamp(52px, 5vw, 68px); }   .logo--smx { height: clamp(42px, 4vw, 54px); }
.logo:hover { translate: 0 -3px; }
.logos .sep { width: 1px; height: 44px; background: var(--line-2); flex: none; }
@media (max-width: 700px) { .logos { flex-wrap: wrap; row-gap: 1.25rem; } .logos .sep { display: none; } }

/* ---- Lender network (pinned; layout is measured in JS, so nothing is scaled) -- */
.network { position: relative; border-top: 1px solid var(--line); }
.network__pin { position: relative; height: 100svh; min-height: 600px; display: flex; flex-direction: column; align-items: center; gap: clamp(.25rem, 1.2vh, .75rem); padding: 100px 0 44px; overflow: hidden; text-align: center; }
.network__copy { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 820px); flex: none; }  /* above the light-field canvas, which spills past the stage */
.network__copy .label { margin-bottom: clamp(.75rem, 2vh, 1.25rem); }
.network__stages { display: grid; }
.stage { grid-area: 1 / 1; opacity: 0; transform: translateY(22px); pointer-events: none; transition: opacity .6s var(--ease), transform .8s var(--ease); }
.stage.is-on { opacity: 1; transform: none; }
.stage h2 { font-size: clamp(1.75rem, min(1rem + 2.6vw, 5.6vh), 3.25rem); font-weight: 500; line-height: 1.02; letter-spacing: -.045em; }
.stage h2 em { color: var(--blue-2); }
.stage p { color: var(--ink-2); margin: .7rem auto 0; max-width: 46ch; font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); }

.network__stage { position: relative; flex: 1 1 0; min-height: 0; width: min(100% - 2 * var(--gutter), 1240px); container-type: size; }
.network__stage::before { content: ''; position: absolute; inset: -10% -5%; opacity: 0; transition: opacity 1.2s var(--ease); pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(61, 123, 255, .12), transparent 70%); }
.network__pin:not([data-step="0"]) .network__stage::before { opacity: 1; }
/* Radiance-cascade light field (js/net-light.js): oversized so the glow spills past the nodes; fades in once the GPU has drawn */
.net-light { position: absolute; z-index: 0; left: -18%; top: -14%; width: 136%; height: 128%; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease); }
.network__stage.has-light .net-light { opacity: 1; }

/* layout follows Magic UI's "animated beam · multiple outputs" demo: lenders → hub → output */
.net-cols { --g: clamp(7px, 1.5vh, 14px); --nd: clamp(34px, min(calc((100cqh - 6 * var(--g)) / 7), 6.2vw), 76px); --hub: clamp(84px, 34cqh, 190px);
  position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.net-col { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.net-col--lenders { gap: var(--g); align-items: flex-end; justify-self: start; }
.net-item { display: flex; align-items: center; gap: clamp(10px, 1vw, 16px); }
.net-label { font: 600 clamp(11px, .62vw, 13px)/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: #8390aa; white-space: nowrap; transition: color .5s; }
.net-node { position: relative; z-index: 1; flex: none; width: var(--nd); height: var(--nd); border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(160deg, #111c38, #0a1226); border: 2px solid rgba(238, 242, 250, .26); box-shadow: 0 0 24px -10px rgba(0, 0, 0, .9); transition: background .5s, border-color .5s; }
.net-node svg { width: 44%; height: 44%; fill: none; stroke: #9aa7c0; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.net-node--hub { width: var(--hub); height: var(--hub); overflow: hidden; background: #0d1c48; border-width: 3px; border-color: rgba(127, 176, 255, .75);
  box-shadow: 0 0 0 10px #060a16, 0 0 0 12px rgba(127, 176, 255, .5); }
.net-node--hub img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transform: scale(1.12); transform-origin: 50% 22%; }
.net-you { position: relative; align-items: center; justify-self: end; }
.net-you .net-label { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); }
.network__pin[data-step="2"] .net-you .net-node { border-color: rgba(188, 220, 255, .7); }
.network__pin[data-step="2"] .net-you .net-node svg { stroke: #bcdcff; }
.net-item.is-best .net-node { background: var(--blue); border-color: #bcdcff; }
.net-item.is-best .net-node svg { stroke: #fff; }
.net-item.is-best .net-label { color: #fff; }

.net-beams { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.net-beams .net-lit { filter: drop-shadow(0 0 5px rgba(61, 123, 255, .55)); }
/* one ring, once, when a node is chosen */
.net-pulse { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #bcdcff; pointer-events: none; opacity: 0; }
@media (max-width: 720px) { .net-cols { --nd: clamp(36px, calc((100cqh - 6 * var(--g)) / 7), 52px); --hub: clamp(78px, 26cqh, 104px); } }
@media (max-width: 520px) {
  .net-cols { --hub: 84px; grid-template-columns: auto 1fr auto; }
  .net-label { font-size: 9.5px; letter-spacing: .05em; }
  .net-item { gap: 9px; }
}

.network__steps { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 6px; }
.network__steps span { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); transition: width .6s var(--ease), background .6s; }
.network__steps span.is-on { width: 44px; background: var(--blue); }
@media (max-width: 860px) { .network__pin { padding-top: 104px; } }

/* ---- Credentials + card ------------------------------------------------ */
.creds { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(6rem, 12vw, 10rem) 0; border-top: 1px solid var(--line); }
.creds .h2 { margin-bottom: 2.5rem; }
.spec div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1rem; align-items: baseline; padding: 1.05rem 0; border-top: 1px solid var(--line); }
.spec div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--ink-3); }
.spec dd { font-size: 1.05rem; }
.holo-stage { display: grid; place-items: center; }
.holo-frame { position: relative; width: min(100%, 680px); aspect-ratio: 4 / 5; }
.holo-poster { object-fit: cover; }
.holo-poster, .holo-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.holo-frame canvas { opacity: 0; transition: opacity .7s var(--ease); touch-action: pan-y; }
.holo-stage.is-live canvas { opacity: 1; }
.holo-stage.is-live .holo-poster { visibility: hidden; transition: visibility 0s .7s; }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } .holo-frame { aspect-ratio: 0.74; width: min(100%, 520px); } .spec div { grid-template-columns: 7.5rem 1fr; } }

/* ---- Services (horizontal pin) ---------------------------------------------- */
.services { border-top: 1px solid var(--line); }
.services__pin { padding: clamp(5rem, 9vw, 7rem) 0; overflow: hidden; }
.services__head { margin-bottom: 2rem; }
.services__progress { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.75rem; font-size: .72rem; letter-spacing: .12em; color: var(--ink-3); }
.services__count b { color: var(--ink); font-weight: 600; }
.services__bar { position: relative; flex: 0 1 240px; height: 2px; background: var(--line-2); overflow: hidden; }
.services__bar i { position: absolute; inset: 0; background: var(--blue-2); transform-origin: left; transform: scaleX(0); }
.services__track { display: flex; gap: 1.25rem; padding-inline: var(--gutter); width: max-content; }
.svc { position: relative; flex: 0 0 clamp(290px, 30vw, 420px); min-height: clamp(400px, 52vh, 460px); padding: 2rem; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); display: flex; flex-direction: column; overflow: hidden; transition: border-color .5s; margin: 0; }
.svc::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -60%; height: 90%; background: radial-gradient(closest-side, rgba(61,123,255,.14), transparent); opacity: 0; transform: translateY(30%); transition: opacity .6s, transform .8s var(--ease); pointer-events: none; }
.svc:hover { border-color: rgba(127,176,255,.35); }
.svc:hover::after { opacity: 1; transform: none; }
.svc__n { display: flex; justify-content: space-between; align-items: flex-start; }
.svc__n b { font: italic 400 clamp(4.5rem, 3rem + 3vw, 6.5rem)/.8 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(127,176,255,.55); transition: color .6s var(--ease), -webkit-text-stroke-color .6s; }
.svc:hover .svc__n b { color: var(--blue-2); -webkit-text-stroke-color: transparent; }
.svc__n span { color: var(--ink-3); font-size: .66rem; padding-top: .4rem; }
.svc h3 { margin-top: clamp(2rem, 6vh, 3.5rem); font-size: clamp(2rem, 1.4rem + 1.4vw, 2.75rem); font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.svc h3 em { color: var(--blue-2); }
.svc p { color: var(--ink-2); margin-top: 1rem; max-width: 34ch; }
.svc__tag { margin-top: auto; padding-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .66rem; }
.svc--end { justify-content: center; gap: 2rem; border-style: dashed; background: none; flex-basis: clamp(290px, 28vw, 380px); }
.svc--end .h2 { font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem); }
.svc--end .btn { align-self: flex-start; }
@media (max-width: 860px) {
  .services__track { width: auto; flex-direction: column; padding: 0; margin-inline: var(--gutter); }
  .svc { flex: none; min-height: 0; }
  .svc h3 { margin-top: 3rem; }
  }

/* ---- Marquee -------------------------------------------------------------- */
.marquee { padding: clamp(3rem, 6vw, 5rem) 0; border-block: 1px solid var(--line); overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: .5rem; }
.marquee__inner { display: flex; align-items: center; gap: 2.25rem; padding-right: 2.25rem; flex: none; font-size: clamp(2.4rem, 1.4rem + 4vw, 5.5rem); font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.marquee__row[data-dir="-1"] .marquee__inner { color: var(--ink-3); }
.marquee__inner em { color: var(--blue-2); }
.marquee__inner .sep { font-size: .35em; color: var(--blue); }

/* ---- Process (stacking cards) ---------------------------------------------- */
.process { padding: clamp(6rem, 12vw, 10rem) 0; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.process__head { position: sticky; top: 120px; }
.stack { display: grid; gap: clamp(2rem, 3.5vh, 3rem); }
.card { position: sticky; top: calc(120px + var(--n) * 22px); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 1.25rem 2rem; min-height: clamp(300px, 38vh, 400px); padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: 24px; background: #0a0f1c; border: 1px solid var(--line); transform-origin: 50% 0; filter: brightness(1); box-shadow: 0 -30px 60px -30px rgba(0,0,0,.8); }
.card:nth-child(2) { background: #0c1324; } .card:nth-child(3) { background: #0f172d; }
.card:nth-child(4) { background: linear-gradient(135deg, #12275e, #0b1633); border-color: rgba(127,176,255,.22); }
.card__n { font: italic 400 clamp(3.5rem, 2.5rem + 3vw, 6rem)/.85 var(--serif); color: var(--blue-2); }
.card:nth-child(4) .card__n { color: #fff; }
.card h3 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-weight: 500; letter-spacing: -.04em; margin-bottom: .75rem; }
.card p { color: var(--ink-2); max-width: 46ch; }
.card:nth-child(4) p { color: rgba(255,255,255,.8); }
.card__meta { grid-column: 2; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 1rem; }
.card:nth-child(4) .card__meta { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.2); }
@media (max-width: 860px) { .services__progress { display: none; } }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process__head { position: static; } .card { grid-template-columns: 1fr; top: calc(96px + var(--n) * 14px); min-height: 0; } .card__meta { grid-column: 1; } }

/* ---- Real estate (clip reveal, Toronto behind) -------------------------------- */
.realty { padding: 0 0 clamp(5rem, 10vw, 8rem); }
.realty__panel { position: relative; }
.realty__bg { --inset: 8%; --r: 36px; position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 var(--inset) round var(--r)); background: #070d20; }
.realty__bg img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; opacity: .55; mix-blend-mode: luminosity; }
.realty__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,6,11,.92) 0%, rgba(4,6,11,.72) 60%, rgba(4,6,11,.55) 100%), radial-gradient(60% 80% at 100% 100%, rgba(36,89,230,.22), transparent 70%); }
.realty__in { position: relative; padding: clamp(5rem, 10vw, 9rem) 0; }
.realty .label { color: rgba(255,255,255,.6); }
.realty .label span { color: #fff; }
.realty__title { font-size: clamp(2.5rem, 1.2rem + 5.4vw, 7rem); font-weight: 500; line-height: .95; letter-spacing: -.055em; }
.realty__title em { color: var(--cyan); }
.realty__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin: clamp(2.5rem, 5vw, 4rem) 0; }
.realty__grid > p { color: rgba(238,242,250,.85); font-size: 1.1rem; max-width: 48ch; }
/* rules are backgrounds, not borders, so they can draw across (--rule) */
.realty__list li { --rule: 100%; display: flex; gap: 1rem; align-items: baseline; padding: 1.1rem 0; font-size: 1.15rem; letter-spacing: -.02em;
  background: linear-gradient(rgba(255,255,255,.2) 0 0) 0 0 / var(--rule) 1px no-repeat; }
.realty__list li:last-child { background: linear-gradient(rgba(255,255,255,.2) 0 0) 0 0 / var(--rule) 1px no-repeat, linear-gradient(rgba(255,255,255,.2) 0 0) 0 100% / var(--rule) 1px no-repeat; }
/* a flex item defaults to min-width:auto, so this refused to shrink and ran
   past the viewport on narrow screens instead of wrapping */
.realty__t { display: inline-block; min-width: 0; }
.realty__k { flex: none; width: 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; color: var(--cyan); }
@media (max-width: 860px) { .realty__grid { grid-template-columns: 1fr; } .realty__bg { --inset: 0%; --r: 0px; } }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); padding: clamp(4rem, 8vw, 7rem) 0; }
.faq__head { position: sticky; top: 120px; align-self: start; }
.faq__more { margin-top: 2rem; max-width: 34ch; color: var(--ink-2); }
.faq__more a { white-space: nowrap; color: var(--ink); border-bottom: 1px solid var(--blue-2); }
.faq__more a:hover { color: var(--blue-2); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.6rem 0; font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); letter-spacing: -.025em; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--ink), var(--ink)) center / 11px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 11px no-repeat;
  transition: transform .5s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--blue); border-color: var(--blue); }
.faq summary:hover { color: var(--blue-2); }
.faq details > div { overflow: hidden; }
.faq details p { color: var(--ink-2); padding: 0 4rem 1.75rem 0; max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .faq__head { position: static; } .faq details p { padding-right: 0; } }

/* ---- CTA ---------------------------------------------------------------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; z-index: -1; left: 50%; bottom: -40%; width: 90vw; aspect-ratio: 1; translate: -50% 0; background: radial-gradient(circle, rgba(61,123,255,.10), transparent 62%); }
.cta__in { padding: clamp(6rem, 11vw, 10rem) 0; border-top: 1px solid var(--line); }
.cta__big { display: block; font-size: clamp(2.6rem, 1rem + 7vw, 8.5rem); font-weight: 500; line-height: .95; letter-spacing: -.06em; }
.cta__line { display: block; overflow: hidden; padding-bottom: .05em; }
.cta__line > span { display: inline-block; transition: translate .8s var(--ease); }
.cta__big em { color: var(--blue-2); }
.cta__big:hover .cta__line > span { translate: 1.5vw 0; }
.cta__big:hover .cta__line:nth-child(2) > span { transition-delay: .05s; }
.cta__row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 3rem; }

/* ---- Footer -------------------------------------------------------------- */
.ftr { border-top: 1px solid var(--line); padding-top: 4rem; overflow: hidden; }
.ftr__logos { display: flex; align-items: flex-end; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.ftr__main img { height: clamp(88px, 9vw, 120px); width: auto; display: block; }
.ftr__brand { display: grid; gap: 1rem; }
.ftr__brand .ftr__k { margin: 0; }
.ftr__row { display: flex; align-items: center; gap: 1.75rem; }
.ftr__row img { width: auto; display: block; max-width: none; }
.f-aff { height: 56px; } .f-dlc { height: 62px; } .f-smx { height: 52px; }
.ftr__grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr 2fr; gap: 2rem; }
.ftr__k { color: var(--ink-3); margin-bottom: 1rem; }
.ftr ul { display: grid; gap: .55rem; color: var(--ink-2); font-size: .93rem; }
.ftr a:hover { color: var(--ink); }
.ftr__legal { display: grid; gap: .6rem; color: var(--ink-3); font-size: .78rem; line-height: 1.55; }
.ftr__word { font-size: 17.5vw; font-weight: 600; letter-spacing: -.07em; line-height: .9; white-space: nowrap; margin: 4rem 0 0; padding-bottom: .04em; text-align: center;
  background: linear-gradient(180deg, rgba(127,176,255,.28), rgba(61,123,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 860px) { .ftr__grid { grid-template-columns: 1fr 1fr; } .ftr__legal { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .manifesto__text .w { opacity: 1 !important; }
}

/* ---- Touch targets ------------------------------------------------------
   WCAG 2.5.8 asks for 24px minimum; stacked link lists in the footer and the
   inline links in body copy were landing around 20px on a phone, with almost
   no gap between them. Desktop is unaffected — this only applies where the
   pointer is coarse. */
@media (pointer: coarse) {
  .ftr ul { gap: .15rem; }
  .ftr ul a, .ftr__legal a { display: inline-block; padding-block: .45rem; }
  .faq__more a, .hero__link, .q__a a { display: inline-block; padding-block: .3rem; }
  /* these are already inline-flex with an arrow; only grow the hit area */
  .vfy__by a, .q__next a, .cband__i a, .fast__a + .fast__a { padding-block: .4rem; }
  .hero__links { gap: 1.25rem; }
}

/* ---- Nav dropdown (Calculators) -----------------------------------------
   The link still goes to /calculator; the chevron beside it opens the four.
   On desktop it floats; inside the burger panel it expands inline. */
.menu__has { position: relative; display: flex; align-items: center; gap: .35rem; }
.menu__more { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; cursor: pointer;
  background: none; border: 0; border-radius: 5px; color: var(--ink-3); transition: color .3s, background .3s; }
.menu__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; transition: transform .4s var(--ease); }
.menu__more:hover { color: var(--ink); }
.menu__more[aria-expanded="true"] { color: var(--blue-2); }
.menu__more[aria-expanded="true"] svg { transform: rotate(180deg); }

.menu__sub { position: absolute; top: calc(100% + 14px); left: -1rem; z-index: 40; width: max-content; max-width: 19rem;
  display: grid; gap: 2px; padding: .5rem; border-radius: 14px;
  background: rgba(8, 12, 22, .97); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.85);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s; }
.menu__sub.is-open { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .menu__has:hover .menu__sub { opacity: 1; visibility: visible; transform: none; }
}
/* a bridge across the gap so the menu doesn't close as the pointer travels */
.menu__sub::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu__sub a { display: flex; align-items: baseline; gap: .7rem; padding: .7rem .8rem; border-radius: 9px;
  font-size: .9rem; color: var(--ink-2); transition: background .25s, color .25s; }
.menu__sub a::after { content: none; }
.menu__sub a:hover, .menu__sub a:focus-visible { background: rgba(61,123,255,.14); color: var(--ink); }
.menu__sub b { flex: none; font: 500 .66rem/1.6 var(--mono); letter-spacing: .08em; color: var(--blue-2); font-variant-numeric: tabular-nums; }
.menu__sub span { display: grid; gap: .15rem; }
.menu__sub i { font-style: normal; font-size: .76rem; color: var(--ink-3); }

@media (max-width: 960px) {
  /* inside the burger panel there is nowhere to float to: lay the row out as
     link + chevron, with the submenu underneath. (An absolutely positioned
     chevron here landed over the page body and couldn't be tapped.) */
  .menu__has { display: grid; grid-template-columns: 1fr auto; align-items: center;
    position: relative; border-bottom: 1px solid var(--line); }
  .menu__has > a { grid-column: 1; border-bottom: 0; }
  .menu__more { grid-column: 2; position: static; width: 44px; height: 44px; margin: 0; color: var(--ink); }
  .menu__more svg { width: 20px; height: 20px; }
  .menu__sub { grid-column: 1 / -1; position: static; width: auto; max-width: none; opacity: 1; visibility: visible;
    transform: none; display: none; background: none; border: 0; box-shadow: none; padding: 0 0 .75rem 0; }
  .menu__sub.is-open { display: grid; }
  .menu__sub a { font-size: 1rem; padding: .7rem .25rem; }
  .menu__sub i { font-size: .82rem; }
}
