/* Homepage (core/home.html). Motion layout approved 31 Oct 2026 from the
   sample.ibuiltthisforyou.ca preview. Everything is scoped under .hx so the
   shared site.css components are untouched. */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-regular-latin.c008db4e8a97.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-italic-latin.26082c73a711.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

.hx {
  --hx-bg: #07090F; --hx-bg2: #0B0E18; --hx-ink: #F8FAFC; --hx-soft: rgba(248,250,252,.66); --hx-dim: rgba(248,250,252,.42);
  --hx-violet: #7C3AED; --hx-indigo: #591CF7; --hx-cyan: #9DE8EF; --hx-line: rgba(248,250,252,.10);
  --hx-serif: "Instrument Serif", Georgia, serif;
  --hx-gut: clamp(16px, 5vw, 72px);
  color: var(--hx-ink); line-height: 1.5; overflow-x: clip;
}
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
:where(.hx) :where(h1, h2, h3, p, ul, figure) { margin: 0; padding: 0; }
.hx img, .hx video { display: block; max-width: 100%; }
.hx em { font-family: var(--hx-serif); font-weight: 400; }
.hx-wrap { max-width: 1400px; margin: 0 auto; padding: 0 var(--hx-gut); }
.hx-eyebrow { display: inline-flex; gap: .6rem; align-items: center; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hx-cyan); }
.hx-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hx-h2 { font-size: clamp(2.2rem, 5.5vw, 4.8rem); letter-spacing: -.045em; line-height: .98; font-weight: 700; color: var(--hx-ink); }
.hx-h2 em { color: var(--hx-cyan); }
.hx-lead { color: var(--hx-soft); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.6; max-width: 34rem; }
.hx-btn { display: inline-flex; align-items: center; gap: .6rem; padding: .95rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .2s, background .3s, border-color .3s, color .3s; }
.hx-btn--primary { background: var(--hx-ink); color: var(--hx-bg); box-shadow: 0 10px 30px -8px rgba(124,58,237,.6); }
.hx-btn--primary:hover { background: var(--hx-cyan); color: var(--hx-bg); transform: translateY(-2px); }
.hx-btn--ghost { border: 1px solid rgba(248,250,252,.28); color: var(--hx-ink); }
.hx-btn--ghost:hover { border-color: var(--hx-cyan); color: var(--hx-cyan); }
.hx-link { color: var(--hx-cyan); text-decoration: none; font-weight: 500; border-bottom: 1px solid rgba(157,232,239,.35); padding-bottom: 2px; }
.hx-link:hover { border-color: var(--hx-cyan); color: var(--hx-cyan); }

.hx-cursor { position: fixed; top: 0; left: 0; width: 34px; height: 34px; border: 1px solid rgba(157,232,239,.7); border-radius: 50%; pointer-events: none; z-index: 200;
  transform: translate(-50%,-50%); transition: width .25s, height .25s, background .25s; mix-blend-mode: difference; opacity: 0; }
.hx-cursor.is-on { opacity: 1; }
.hx-cursor.is-hover { width: 76px; height: 76px; background: rgba(157,232,239,.15); }
@media (hover: none), (pointer: coarse) { .hx-cursor { display: none; } }

/* ---------- HERO (video sits under the translucent sticky nav) ---------- */
.hx-hero { position: relative; height: 100svh; min-height: 680px; margin-top: calc(-1 * var(--wbf-nav-h, 68px)); overflow: hidden; background: var(--hx-bg); }
.hx-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hx-hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,9,15,.88) 0%, rgba(7,9,15,.55) 38%, transparent 65%), linear-gradient(to top, rgba(7,9,15,.95) 0%, transparent 40%); }
.hx-hero__copy { position: absolute; left: 0; right: 0; bottom: clamp(110px, 15vh, 170px); padding: 0 var(--hx-gut); max-width: 1500px; margin: 0 auto; }
.hx-hero h1 { font-size: clamp(2.7rem, 7vw, 7rem); line-height: .92; letter-spacing: -.05em; font-weight: 700; margin-top: 1.3rem; color: var(--hx-ink); }
.hx-hero h1 em { letter-spacing: -.02em; background: linear-gradient(100deg, var(--hx-cyan), #c4b5fd 45%, var(--hx-violet)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hx-line { display: block; overflow: hidden; padding-bottom: .07em; }
.hx-line > span { display: inline-block; }
.hx-hero__lead { margin-top: 1.6rem; }
.hx-hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hx-hero__note { margin-top: 1.4rem; font-size: .9rem; color: var(--hx-dim); max-width: 34rem; }
.hx-hero__note a { color: var(--hx-soft); }
.hx-hero__team { position: absolute; right: var(--hx-gut); bottom: clamp(110px, 15vh, 170px); display: flex; align-items: center; gap: .9rem; padding: .6rem 1.2rem .6rem .6rem; border-radius: 999px;
  border: 1px solid var(--hx-line); background: rgba(7,9,15,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); text-decoration: none; color: var(--hx-ink); font-size: .82rem; line-height: 1.35; }
.hx-hero__team img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.hx-hero__team b { display: block; font-size: .9rem; }
.hx-hero__team span span { color: var(--hx-dim); }
@media (max-width: 1100px) { .hx-hero__team { display: none; } }
@media (max-width: 760px) {
  .hx-hero { min-height: 720px; }
  .hx-hero__shade { background: linear-gradient(to top, rgba(7,9,15,.97) 0%, rgba(7,9,15,.75) 50%, rgba(7,9,15,.05) 78%); }
  .hx-hero__copy { bottom: 72px; }
  .hx-hero__note { display: none; }
}
.hx-hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(44px, 7vw, 120px); z-index: 2; display: block; }

/* ---------- MARQUEE ---------- */
.hx-marquee { background: var(--hx-bg2); border-bottom: 1px solid var(--hx-line); overflow: hidden; padding: 1.5rem 0; }
.hx-marquee__track { display: flex; gap: 3rem; width: max-content; animation: hx-mq 40s linear infinite; }
.hx-marquee__track span { font-size: clamp(1.5rem, 3.2vw, 2.8rem); font-weight: 600; letter-spacing: -.03em; white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.hx-marquee__track span::after { content: "✦"; color: var(--hx-violet); font-size: .6em; }
.hx-marquee__track span:nth-child(even) { font-family: var(--hx-serif); font-style: italic; font-weight: 400; color: var(--hx-soft); }
@keyframes hx-mq { to { transform: translateX(-50%); } }

/* ---------- TWO PATHS ---------- */
.hx-paths { padding: clamp(5.5rem, 11vw, 9rem) 0; }
.hx-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hx-head .hx-h2 { max-width: 14ch; margin-top: 1rem; }
.hx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; perspective: 1200px; }
@media (max-width: 860px) { .hx-grid2 { grid-template-columns: 1fr; } }
.hx-tile { position: relative; padding: 2.2rem 2rem; border-radius: 24px; border: 1px solid var(--hx-line); background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  transform-style: preserve-3d; transition: transform .15s ease-out, border-color .3s; overflow: hidden; display: flex; flex-direction: column; }
.hx-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(460px circle at var(--mx,50%) var(--my,50%), rgba(124,58,237,.26), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.hx-tile:hover { border-color: rgba(157,232,239,.35); }
.hx-tile:hover::before { opacity: 1; }
.hx-tile > * { position: relative; }
.hx-tile .hx-num { font-family: var(--hx-serif); font-style: italic; font-size: 1.25rem; color: var(--hx-cyan); }
.hx-tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.035em; margin: 1.2rem 0 .8rem; line-height: 1.05; color: var(--hx-ink); }
.hx-tile p { color: var(--hx-soft); }
.hx-tile ul { list-style: none; margin: 1.5rem 0 2rem; display: grid; gap: .7rem; }
.hx-tile li { display: flex; gap: .7rem; color: var(--hx-soft); font-size: .97rem; }
.hx-tile li::before { content: ""; flex: 0 0 7px; height: 7px; margin-top: .55em; border-radius: 50%; background: linear-gradient(135deg, var(--hx-violet), var(--hx-cyan)); }
.hx-tile .hx-link { margin-top: auto; align-self: flex-start; }

/* ---------- STATEMENT ---------- */
.hx-statement { padding: clamp(3rem, 8vw, 7rem) 0 clamp(5rem, 10vw, 9rem); }
.hx-statement p { font-size: clamp(1.7rem, 4.2vw, 4rem); line-height: 1.1; letter-spacing: -.035em; font-weight: 500; max-width: 22ch; color: var(--hx-ink); }
.hx-statement .w { opacity: .15; }
.hx-statement em { color: var(--hx-cyan); }

/* ---------- PORTFOLIO TUNNEL ---------- */
.hx-tunnel { position: relative; height: 100svh; overflow: hidden; perspective: 1100px; background: radial-gradient(60% 60% at 50% 55%, rgba(89,28,247,.22), transparent 70%), var(--hx-bg); }
.hx-tunnel__head { position: absolute; top: clamp(90px, 13vh, 140px); left: 0; right: 0; text-align: center; z-index: 5; padding: 0 16px; }
.hx-tunnel__head .hx-h2 { margin-top: .9rem; }
.hx-tunnel__head .hx-h2 em { color: var(--hx-ink); }
.hx-tunnel__stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.hx-card { position: absolute; left: 50%; top: 58%; width: min(54vw, 600px); aspect-ratio: 3/2; margin: 0; will-change: transform, opacity; }
.hx-card a { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); display: block; text-decoration: none; color: var(--hx-ink);
  box-shadow: 0 40px 120px -20px rgba(89,28,247,.55); background: #0d1020; }
.hx-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hx-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; background: linear-gradient(transparent, rgba(7,9,15,.94)); }
.hx-card figcaption b { display: block; font-size: 1.1rem; letter-spacing: -.02em; }
.hx-card figcaption span { display: block; font-size: .82rem; color: var(--hx-soft); margin-top: .15rem; padding-right: 5.5rem; }
.hx-card figcaption small { position: absolute; right: 1.2rem; bottom: 1.05rem; color: var(--hx-cyan); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 760px) { .hx-card { width: 80vw; } .hx-card figcaption small { display: none; } .hx-card figcaption span { padding-right: 0; } }
.hx-tunnel__foot { position: absolute; bottom: 5vh; left: 0; right: 0; text-align: center; z-index: 5; color: var(--hx-dim); font-size: .9rem; }
.hx-tunnel__foot strong { color: var(--hx-ink); }

/* ---------- PROCESS ---------- */
.hx-process { position: relative; height: 100svh; overflow: hidden; background: var(--hx-bg2); border-block: 1px solid var(--hx-line); }
.hx-process__track { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; gap: 6vw; padding: 0 8vw; will-change: transform; }
.hx-process__intro { flex: 0 0 auto; width: min(84vw, 520px); }
.hx-process__intro .hx-h2 { margin-top: 1rem; }
.hx-step { flex: 0 0 auto; width: min(80vw, 460px); }
.hx-step .hx-big { font-size: clamp(7rem, 18vw, 15rem); font-weight: 800; line-height: .8; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1px rgba(157,232,239,.45); }
.hx-step h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.035em; margin: 1.1rem 0 .7rem; line-height: 1.1; color: var(--hx-ink); }
.hx-step p { color: var(--hx-soft); max-width: 26rem; }
.hx-process__bar { position: absolute; left: 8vw; right: 8vw; bottom: 8vh; height: 1px; background: var(--hx-line); }
.hx-process__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--hx-violet), var(--hx-cyan)); transform-origin: left; transform: scaleX(0); }

/* ---------- PEOPLE ---------- */
.hx-people { padding: clamp(5.5rem, 11vw, 9rem) 0; }
.hx-people__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
@media (max-width: 900px) { .hx-people__grid { grid-template-columns: 1fr; } }
.hx-people__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 16/10; background: #0d1020; }
.hx-js .hx-people__media { clip-path: inset(10% 10% 10% 10% round 24px); }
@media (max-width: 760px) { .hx-people__media { aspect-ratio: 4/5; } }
.hx-people__media video { width: 100%; height: 100%; object-fit: cover; }
.hx-js .hx-people__media video { transform: scale(1.12); }
.hx-people .hx-h2 { margin-top: 1rem; }
.hx-people .hx-lead { margin-top: 1.3rem; }
.hx-names { display: flex; gap: 2.5rem; margin: 2rem 0; }
.hx-names b { display: block; font-size: 1.15rem; color: var(--hx-ink); }
.hx-names span { color: var(--hx-dim); font-size: .88rem; }

/* ---------- TRUST ---------- */
.hx-trust { padding-bottom: clamp(5.5rem, 11vw, 9rem); }
.hx-trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 860px) { .hx-trust__grid { grid-template-columns: 1fr; } }
.hx-fact { padding: 2rem; border-radius: 22px; border: 1px solid var(--hx-line); background: var(--hx-bg2); }
.hx-fact h3 { font-size: 1.45rem; letter-spacing: -.03em; margin-bottom: .7rem; color: var(--hx-ink); }
.hx-fact p { color: var(--hx-soft); }
.hx-fact .hx-link { display: inline-block; margin-top: 1.2rem; }

/* ---------- FAQ ---------- */
.hx-faq { padding: clamp(5.5rem, 11vw, 9rem) 0; background: var(--hx-bg2); border-block: 1px solid var(--hx-line); }
.hx-faq__grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 900px) { .hx-faq__grid { grid-template-columns: 1fr; } }
.hx-faq .hx-h2 { margin-top: 1rem; }
.hx-faq .hx-lead { margin: 1.3rem 0 2rem; }
.hx-qa { border-top: 1px solid var(--hx-line); }
.hx-qa:last-of-type { border-bottom: 1px solid var(--hx-line); }
.hx-qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; letter-spacing: -.02em; color: var(--hx-ink); }
.hx-qa summary::-webkit-details-marker { display: none; }
.hx-qa summary i { flex: 0 0 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hx-line); position: relative; transition: border-color .3s; }
.hx-qa summary i::before, .hx-qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--hx-cyan); transform: translate(-50%,-50%); }
.hx-qa summary i::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .3s; }
.hx-qa[open] summary i { border-color: var(--hx-cyan); }
.hx-qa[open] summary i::after { transform: translate(-50%,-50%) rotate(0); }
.hx-qa p { color: var(--hx-soft); padding: 0 2.5rem 1.5rem 0; max-width: 40rem; }
.hx-faq__more { margin-top: 2rem; }

/* ---------- AUDIT (wraps the shared audit form) ---------- */
.hx-audit { padding: clamp(5.5rem, 11vw, 9rem) 0; }
.hx-audit__box { position: relative; overflow: hidden; border-radius: 28px; border: 1px solid rgba(157,232,239,.18); padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(80% 120% at 100% 0%, rgba(89,28,247,.35), transparent 60%), radial-gradient(60% 100% at 0% 100%, rgba(157,232,239,.12), transparent 60%), var(--hx-bg2);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 900px) { .hx-audit__box { grid-template-columns: 1fr; } }
.hx-audit .hx-h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); margin-top: 1rem; }
.hx-audit .hx-lead { margin-top: 1.2rem; }
.hx-audit__box > * { min-width: 0; }
.hx-audit .hx-link { display: inline-block; margin-top: 1.4rem; }
.hx-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }
@media (max-width: 860px) { .hx-extra { grid-template-columns: 1fr; } }
.hx-extra a { display: block; padding: 1.4rem 1.6rem; border-radius: 18px; border: 1px solid var(--hx-line); text-decoration: none; color: var(--hx-soft); transition: border-color .3s; }
.hx-extra a:hover { border-color: rgba(157,232,239,.35); }
.hx-extra b { color: var(--hx-ink); }
.hx-extra span { color: var(--hx-cyan); }

/* ---------- CTA ---------- */
.hx-cta { position: relative; padding: clamp(6rem, 14vw, 12rem) var(--hx-gut); text-align: center; overflow: hidden; }
.hx-cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%;
  background: conic-gradient(from 0deg, var(--hx-indigo), var(--hx-cyan), var(--hx-violet), var(--hx-indigo)); filter: blur(110px); opacity: .26; animation: hx-spin 18s linear infinite; }
@keyframes hx-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hx-cta > * { position: relative; }
.hx-cta h2 { font-size: clamp(2.6rem, 8vw, 7.5rem); letter-spacing: -.06em; line-height: .92; font-weight: 700; max-width: 14ch; margin: 1rem auto 0; color: var(--hx-ink); }
.hx-cta h2 em { color: var(--hx-cyan); }
.hx-cta p { color: var(--hx-soft); margin: 1.6rem auto 2.6rem; max-width: 32rem; }
.hx-magnet { display: inline-grid; place-items: center; width: clamp(150px, 16vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--hx-ink); color: var(--hx-bg);
  text-decoration: none; font-weight: 600; text-align: center; line-height: 1.25; padding: 1rem; transition: transform .2s ease-out, background .3s; }
.hx-magnet:hover { background: var(--hx-cyan); color: var(--hx-bg); }
.hx-cta small { display: block; color: var(--hx-dim); margin: 2rem auto 0; max-width: 30rem; }

/* Without JS (or with reduced motion) the pinned scenes fall back to plain stacked content. */
html:not(.hx-js) .hx-tunnel, html:not(.hx-js) .hx-process { height: auto; }
html:not(.hx-js) .hx-tunnel { padding: 9rem 0 6rem; }
html:not(.hx-js) .hx-tunnel__head, html:not(.hx-js) .hx-tunnel__foot { position: static; }
html:not(.hx-js) .hx-tunnel__stage { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; padding: 3rem var(--hx-gut); max-width: 1400px; margin: 0 auto; }
html:not(.hx-js) .hx-card { position: relative; left: auto; top: auto; width: auto; }
html:not(.hx-js) .hx-process__track { position: static; flex-wrap: wrap; padding: 6rem 8vw; }
html:not(.hx-js) .hx-process__bar { display: none; }
html:not(.hx-js) .hx-statement .w { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
}
