/* Homepage v5: a clear conversion layer over the original 3D journey. */
.home-v5 { --conversion-line:rgba(166,222,238,.23); }
.home-v5 #nav { position:fixed; height:80px; padding:0 clamp(18px,3.5vw,64px); gap:24px; background:linear-gradient(180deg,rgba(3,10,19,.88),rgba(3,10,19,.12)); }
.home-v5 #nav.is-scrolled { background:rgba(4,12,22,.94); border-bottom:1px solid var(--conversion-line); backdrop-filter:blur(18px); }
.home-v5 #nav .nav-logo { order:0; }
.home-v5 #nav .nav-links { order:1; }
.home-v5 #nav .nav-actions { display:none!important; }
.home-v5 #nav .nav-direct { order:2; display:inline-flex; align-items:center; justify-content:center; gap:22px; padding:12px 18px; min-height:44px; background:var(--cyan); color:#04111a; border:1px solid var(--cyan); text-decoration:none; font-weight:600; font-size:14px; white-space:nowrap; box-shadow:0 0 24px rgba(0,212,255,.1); margin-left:auto; }
.home-v5 #nav .nav-mobile-toggle { order:3; margin-left:0; flex-shrink:0; }
.home-v5 #nav .nav-logo img { transform:none; height:80px; }
.home-v5 #hero { padding:130px 24px 100px; isolation:isolate; }
.home-v5 .hero-title { font-size:clamp(64px,7.7vw,112px); line-height:.9; margin-bottom:24px; letter-spacing:-.015em; }
.home-v5 .hero-eyebrow { font-family:'Barlow',sans-serif; color:#d6eef3; font-size:11px; font-weight:500; letter-spacing:.19em; margin-bottom:24px; text-shadow:none; }
.home-v5 .hero-eyebrow::before,.home-v5 .hero-eyebrow::after { display:none; }
.local-dot { width:6px; height:6px; border-radius:50%; background:#7af3d2; box-shadow:0 0 14px #7af3d2; flex:none; }
.home-v5 .hero-sub { font-size:clamp(17px,1.5vw,20px); line-height:1.55; font-weight:400; color:#e1edf2; max-width:555px; margin-bottom:26px; }
.home-v5 .hero-actions { gap:12px; margin-bottom:12px; }
.home-v5 .hero-actions .btn-primary,.home-v5 .hero-actions .btn-ghost { font-family:'Barlow',sans-serif; font-style:normal; text-transform:none; letter-spacing:0; font-size:16px; font-weight:600; padding:17px 24px; min-height:54px; border-radius:3px; }
.home-v5 .hero-actions .btn-primary { gap:28px; box-shadow:0 6px 30px rgba(0,212,255,.18); }
.home-v5 .hero-actions .btn-ghost { border:1px solid rgba(216,244,255,.45); color:#f2faff; background:rgba(3,13,23,.45); }
.hero-reassurance { font-size:13px; color:#c2d2dc; margin-bottom:20px; }
.home-v5 .hero-contact-line { font-size:14px; color:#bdcbd4; }
.home-v5 .hero-contact-line a { color:#e3f2f7; }
.home-v5 .hero-contact-line > span { margin:0 12px; color:#6a8d9e; }
.hero-client-strip { max-width:760px; margin:36px auto 0; padding-top:22px; border-top:1px solid var(--conversion-line); }
.hero-client-strip > p { font-size:10px; font-weight:600; letter-spacing:.2em; color:#c5d4dd; margin-bottom:18px; }
.hero-client-strip > p span { color:#93aebd; }
.hero-clients { display:flex; justify-content:center; align-items:center; gap:0; }
.hero-clients a { width:33.333%; font-family:'Barlow Condensed',sans-serif; font-weight:700; font-size:23px; line-height:1.05; color:#eef6f8; text-decoration:none; }
.hero-clients a+a { border-left:1px solid var(--conversion-line); }
.hero-clients em { display:block; font-family:'Barlow',sans-serif; font-style:normal; font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:.14em; margin-top:5px; color:#b7cdd8; }
.hero-clients a:hover { color:var(--cyan); }
.home-v5 .scroll-hint { color:#9bb3c0; font-size:9px; bottom:24px; }
.featured-work { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:32px; text-align:left; }
.work-preview { display:block; color:#eff8ff; text-decoration:none; padding:10px 10px 18px; border:1px solid var(--conversion-line); background:rgba(4,13,25,.88); backdrop-filter:blur(12px); transition:transform .2s,border-color .2s; }
.work-preview:hover { transform:translateY(-5px); border-color:var(--cyan); }
.work-preview img { width:100%; aspect-ratio:1.6; height:auto; object-fit:cover; object-position:top; display:block; margin-bottom:18px; }
.work-type { display:block; font-size:9px; letter-spacing:.1em; color:#a5c1d1; padding:0 8px; }
.work-preview h3 { font-family:'Barlow Condensed',sans-serif; font-size:24px; font-weight:700; padding:8px 8px 0; }
.work-preview h3 span { float:right; color:var(--cyan); }
.home-v5 #start { min-height:100svh; }
.home-v5 #start .stage-sticky { position:relative; }
.home-v5 #start .stage-inner { opacity:1!important; transform:none!important; }
.home-v5 #start .qualifier { opacity:1!important; clip-path:none!important; filter:none!important; }
.conversion-dock { visibility:hidden; display:flex; position:fixed; z-index:220; bottom:20px; left:50%; transform:translate(-50%,120px); opacity:0; pointer-events:none; align-items:center; gap:5px; padding:6px; border:1px solid var(--conversion-line); background:rgba(4,13,24,.96); box-shadow:0 12px 60px #0007; backdrop-filter:blur(16px); border-radius:7px; transition:transform .2s,opacity .2s; }
.conversion-dock.is-visible { visibility:visible; opacity:1; pointer-events:auto; transform:translate(-50%,0); }
.dock-label { font-size:13px; padding:0 16px; white-space:nowrap; color:#c2d5df; }
.conversion-dock a { display:flex; justify-content:center; align-items:center; min-height:46px; padding:10px 18px; color:#eaf7fc; font-size:14px; font-weight:600; text-decoration:none; border-radius:3px; }
.conversion-dock .dock-primary { color:#04111a; background:var(--cyan); gap:22px; white-space:nowrap; }
.home-v5 footer { padding-bottom:110px; }
#consult-dialog { position:fixed; inset:0; margin:auto; padding:36px; width:min(520px,calc(100% - 24px)); max-height:calc(100dvh - 24px); overflow-y:auto; overscroll-behavior:contain; color:#f3faff; background:linear-gradient(145deg,#0d2334,#050d18 65%); border:1px solid #396171; border-top:3px solid var(--cyan); border-radius:6px; box-shadow:0 30px 120px #000b; }
#consult-dialog::backdrop { background:rgba(1,6,13,.8); backdrop-filter:blur(8px); }
#consult-dialog [hidden] { display:none!important; }
.consult-close { position:absolute; top:10px; right:10px; width:44px; height:44px; background:transparent; color:#dbedf5; font-size:30px; border:0; cursor:pointer; }
.consult-kicker { color:#8fcbdd; font-size:10px; letter-spacing:.17em; margin:4px 30px 18px 0; }
#consult-title { font-family:'Barlow Condensed',sans-serif; text-transform:uppercase; font-style:italic; font-size:44px; font-weight:800; line-height:.98; margin-bottom:14px; }
#consult-title span { color:var(--cyan); }
#consult-description { font-size:15px; color:#bdd0dc; line-height:1.5; margin-bottom:24px; }
#consult-form label { display:block; font-size:13px; font-weight:500; margin-bottom:7px; color:#e0edf4; }
#consult-form input:not([type=hidden]):not(.sr-honeypot),#consult-form select { display:block; width:100%; font:400 16px 'Barlow',sans-serif; min-height:48px; padding:11px 12px; border:1px solid #365164; border-radius:3px; background:#091622; color:#f1f8fc; margin-bottom:17px; }
#consult-form input::placeholder { color:#90a7b5; }
#consult-form input:focus,#consult-form select:focus { outline:2px solid var(--cyan); outline-offset:2px; }
#consult-form #consult-contact { margin-bottom:7px; }
.consult-hint { font-size:12px; color:#abc1ce; margin-bottom:22px; }
#consult-form .btn-primary,.consult-success .btn-primary { font-family:'Barlow',sans-serif; text-transform:none; font-size:15px; letter-spacing:0; font-weight:600; width:100%; justify-content:space-between; padding:16px; border-radius:3px; }
#consult-form button:disabled { opacity:.65; cursor:wait; transform:none; }
.consult-privacy { font-size:11px; line-height:1.5; color:#9ab3c3; margin:12px 0 0; }
.consult-privacy a,.consult-direct a { color:#d4effa; text-underline-offset:3px; }
.consult-direct { border-top:1px solid var(--conversion-line); padding-top:18px; margin-top:22px; font-size:13px; color:#abc1ce; line-height:1.5; }
.consult-error { margin-bottom:16px; padding:12px; background:#41202b; color:#ffe5e8; font-size:14px; line-height:1.5; border-left:2px solid #ffb9b9; }
.consult-success h3 { font-family:'Barlow Condensed',sans-serif; font-size:36px; margin:14px 0; }
.consult-success p { font-size:16px; line-height:1.55; color:#c1d4df; margin-bottom:24px; }
.success-symbol { display:inline-grid; place-items:center; width:48px; height:48px; border:1px solid #7af3d2; border-radius:50%; color:#7af3d2; font-size:25px; }
#consult-dialog button:focus-visible { outline:2px solid var(--cyan); outline-offset:3px; }
@media (max-width:1380px) { .home-v5 #nav { gap:12px; } }
@media (max-width:760px) {
  .home-v5 #nav { height:72px; padding:0 16px; }
  .home-v5 #nav .nav-logo img { height:68px; }
  .home-v5 #nav .nav-direct { padding:10px 12px; font-size:12px; gap:12px; }
  .home-v5 #hero { padding:108px 20px 118px; }
  .home-v5 .hero-eyebrow { font-size:9px; letter-spacing:.12em; gap:8px; margin-bottom:22px; }
  .home-v5 .hero-title { font-size:clamp(48px,12.7vw,82px); line-height:.92; margin-bottom:22px; }
  .home-v5 .hero-sub { font-size:16px; max-width:410px; margin-bottom:24px; line-height:1.5; }
  .home-v5 .hero-actions { gap:10px; }
  .home-v5 .hero-actions .btn-primary { padding:16px 18px; gap:14px; }
  .home-v5 .hero-actions .btn-ghost { padding:16px 18px; }
  .home-v5 .hero-actions .btn-primary,.home-v5 .hero-actions .btn-ghost { font-size:14px; min-height:50px; }
  .hero-reassurance { font-size:12px; margin-bottom:18px; }
  .home-v5 .hero-contact-line { font-size:12px; }
  .home-v5 .hero-contact-line > span { margin:0 7px; }
  .hero-client-strip { margin-top:28px; padding-top:20px; }
  .hero-client-strip > p { font-size:8px; letter-spacing:.14em; }
  .hero-clients a { font-size:20px; }
  .hero-clients em { font-size:8px; letter-spacing:.05em; }
  .home-v5 .scroll-hint { display:none; }
  .conversion-dock,.conversion-dock.is-visible { bottom:0; left:0; right:0; transform:none; border-radius:0; border-width:1px 0 0; padding:8px 12px calc(8px + env(safe-area-inset-bottom)); gap:4px; }
  .dock-label { display:none; }
  .conversion-dock a { flex:1; padding:10px; }
  .conversion-dock .dock-primary { flex:2.7; gap:12px; }
  .home-v5 #work { min-height:0; }
  .home-v5 #work .stage-sticky { position:static; padding-top:100px; }
  .home-v5 #work .stage-inner { opacity:1!important; transform:none!important; }
  .featured-work { grid-template-columns:1fr; max-width:440px; margin:28px auto 0; gap:20px; }
  .work-preview img { aspect-ratio:1.9; }
}
@media (max-width:370px) {
  .home-v5 #nav { gap:8px; padding:0 10px; }
  .home-v5 #nav .nav-direct { font-size:11px; gap:7px; padding:10px; }
  .home-v5 #nav .nav-logo img { height:58px; }
  .home-v5 .hero-actions { flex-direction:column; }
  .home-v5 .hero-actions a { width:100%; justify-content:center; }
}
@media (max-width:540px) {
  #consult-dialog { padding:28px 20px 24px; }
  #consult-title { font-size:38px; }
  .consult-kicker { font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-v5 .hero-video { display:none; }
  .home-v5 .hero-media { background:url('../hero-poster.jpg') center/cover no-repeat; }
}

/* The long form remains a working non-JavaScript fallback. */
.home-v5 #start { scroll-margin-top:80px; }
#qualifierForm:not(.q-js) .q-next,#qualifierForm:not(.q-js) .q-back { display:none; }

/* Six featured projects need natural document height at every viewport. */
.home-v5 #work { min-height:0; }
.home-v5 #work .stage-sticky { position:relative; }
.home-v5 #work .stage-inner { opacity:1!important; transform:none!important; }

/* Keep hero copy solid even while the video becomes particles. */
.home-v5 #hero .stage-inner { opacity:1!important; transform:none!important; }
.home-v5 #hero .mx-word { opacity:1!important; }
.home-v5 .hero-sub,.home-v5 .hero-eyebrow,.home-v5 .hero-reassurance,
.home-v5 .hero-contact-line,.home-v5 .hero-client-strip {
  text-shadow:0 2px 4px #000,0 2px 14px #000,0 0 24px rgba(0,0,0,.85);
}
.home-v5 .hero-reassurance,.home-v5 .hero-contact-line { color:#edf6fa; }
@media (min-width:1381px) {
  .home-v5 #nav { display:grid; grid-template-columns:minmax(180px,1fr) auto minmax(180px,1fr); gap:20px; }
  .home-v5 #nav .nav-logo { grid-column:1; justify-self:start; }
  .home-v5 #nav .nav-links { grid-column:2; justify-self:center; justify-content:center; gap:clamp(12px,1.3vw,24px); }
  .home-v5 #nav .nav-direct { grid-column:3; justify-self:end; margin-left:0; }
}

/* Mobile: one consultation prompt at a time, with the dock taking over after the hero. */
@media (max-width:760px) {
  .home-v5 #nav .nav-direct { display:none; }
}

/* Restore a quieter phone link in the desktop header. */
.home-v5 #nav .nav-direct { background:rgba(4,13,24,.35); color:var(--cyan); border-color:rgba(0,212,255,.5); box-shadow:none; letter-spacing:.06em; }
.home-v5 #nav .nav-direct:hover { background:rgba(0,212,255,.12); }

/* Direct contact and the existing booking calendar share one header group. */
.home-v5 #nav .nav-contact-group { display:flex; align-items:center; order:2; margin-left:auto; gap:0; border:1px solid rgba(0,212,255,.5); border-radius:3px; overflow:hidden; }
.home-v5 #nav .nav-contact-group .nav-direct { order:0; border:0; padding:12px; margin:0; font-size:12px; letter-spacing:.02em; min-height:44px; }
.home-v5 #nav .nav-meeting { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:12px; color:#04111a; background:var(--cyan); font-size:12px; font-weight:600; white-space:nowrap; text-decoration:none; }
.home-v5 #nav .nav-meeting:hover { background:#61e4ff; }
@media (min-width:1381px) {
  .home-v5 #nav { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
  .home-v5 #nav .nav-contact-group { grid-column:3; justify-self:end; margin-left:0; }
}
@media (max-width:760px) { .home-v5 #nav .nav-contact-group { display:none; } }

/* One primary invitation, one way to inspect the work. */
@media (max-width:760px) {
  .home-v5 .hero-actions { flex-direction:column; max-width:340px; margin-left:auto; margin-right:auto; gap:4px; }
  .home-v5 .hero-actions .btn-primary { width:100%; justify-content:center; }
  .home-v5 .hero-actions .btn-ghost { padding:10px 18px; min-height:44px; background:transparent; border-color:transparent; text-shadow:0 2px 8px #000; }
}

.cta-chat-icon { width:22px; height:22px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
