/* =========================================================
   DraftPK hero v3: full, layered, asset-driven (Astraux-style)
   ========================================================= */
/* formal: clean sans display, no condensed poster type */
:root { --f-display: "Geist", system-ui, sans-serif; }

.hx {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: #05030a;
  display: flex; flex-direction: column;
}
.hx__bg { position: absolute; inset: 0; z-index: -1; }
.hx__bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hx__bg::after { /* darken left for type, fade bottom into page */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,3,10,.88) 0%, rgba(5,3,10,.55) 38%, rgba(5,3,10,0) 62%),
    linear-gradient(180deg, rgba(5,3,10,.4) 0%, transparent 18%, transparent 78%, #07050c 100%);
}
/* fine grid with plus marks, masked to the centre */
.hx__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(190, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 160, 255, .07) 1px, transparent 1px);
  background-size: 96px 96px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 90%);
          mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 35%, transparent 90%);
}
.hx__plus {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(220, 200, 255, .35) 1px, transparent 1.5px);
  background-size: 96px 96px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 55% 45%, #000 30%, transparent 85%);
          mask-image: radial-gradient(ellipse 80% 70% at 55% 45%, #000 30%, transparent 85%);
}
.hx__spot { position: absolute; width: 520px; height: 520px; border-radius: 50%; left: var(--mx, 60%); top: var(--my, 40%); transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(200, 120, 255, .12), transparent 60%); pointer-events: none; transition: left .5s cubic-bezier(.23,1,.32,1), top .5s cubic-bezier(.23,1,.32,1); }
.hx__grain { position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* HUD corner labels */
.hud { position: absolute; z-index: 4; display: grid; gap: 7px; font: 500 11px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(214, 196, 255, .55); }
.hud i { width: 20px; height: 20px; border: solid rgba(214, 196, 255, .45); border-width: 1.5px 0 0 1.5px; margin-bottom: 6px; }
.hud--tl { left: var(--gutter); top: 112px; }
.hud--tr { right: var(--gutter); top: 112px; text-align: right; justify-items: end; }
.hud--tr i { border-width: 1.5px 1.5px 0 0; }
.hud .live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #4cff9a; box-shadow: 0 0 8px #4cff9a; margin-right: 8px; vertical-align: 1px; animation: blink 2s steps(1) infinite; }

/* layout */
.hx__main { position: relative; z-index: 2; flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 150px var(--gutter) 0; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 20px; }
.hx__copy { position: relative; z-index: 3; }
.hx__eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 500 12px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: #a99cc4; }
.hx__eyebrow::before { content: ""; width: 40px; height: 1.5px; background: linear-gradient(90deg, #8a2bff, #ff2bd6); }
.hx__title {
  margin: 24px 0 24px; font: 600 clamp(3rem, 5.6vw, 5.6rem)/1.0 var(--f-display);
  letter-spacing: -0.045em; color: #f4f1f8;
}
.hx__title .ln { display: block; white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.hx__title .ln > span { display: inline-block; }
/* quiet silver-to-lilac, no neon */
.hx__title .chrome {
  background: linear-gradient(180deg, #ffffff 10%, #cfc3e6 60%, #9c86c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx__title .outline { color: #8f84a6; }
.hx__lede { max-width: 36ch; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: #c6bdd8; }
.hx__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hx__actions .btn { height: 56px; padding: 0 28px; font-size: 1rem; }

/* art: the 3D logo, orbits, floating cards */
.hx__art { position: relative; aspect-ratio: 1 / .92; width: 100%; max-width: 720px; justify-self: end; margin-right: -40px; }
.hx__art::before { content: ""; position: absolute; inset: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(140, 60, 255, .34), rgba(200, 43, 214, .08) 50%, transparent 70%); filter: blur(50px); }
.hx__logo { position: absolute; inset: 9% 8% 9% 8%; will-change: transform; }
.hx__logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(120, 30, 220, .55)) drop-shadow(0 0 30px rgba(255, 60, 220, .25)); animation: hover-float 7s ease-in-out infinite; }
@keyframes hover-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-14px) rotate(-1.2deg); } }

.orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(214, 180, 255, .16); transform: translate(-50%, -50%) rotateX(72deg); pointer-events: none; }
.orbit b { position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #ff8fe8; box-shadow: 0 0 12px #ff2bd6, 0 0 30px #8a2bff; }
.orbit--1 { width: 112%; aspect-ratio: 1; animation: orbit-spin 26s linear infinite; }
.orbit--2 { width: 86%; aspect-ratio: 1; border-color: rgba(214, 180, 255, .1); animation: orbit-spin 18s linear infinite reverse; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotateX(72deg) rotate(360deg); } }

.fl {
  position: absolute; z-index: 4; display: block; border-radius: 14px; overflow: hidden;
  background: #120d1e; border: 1px solid rgba(214, 180, 255, .22);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.03) inset;
  will-change: transform; transition: border-color .25s ease, box-shadow .25s ease;
}
.fl:hover { border-color: rgba(255, 140, 240, .6); box-shadow: 0 30px 70px -18px rgba(150, 40, 255, .55); }
.fl img { display: block; width: 100%; height: auto; }
.fl .fl__tag { position: absolute; left: 10px; bottom: 9px; font: 500 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: 6px 9px; border-radius: 6px; background: rgba(10, 6, 18, .72); backdrop-filter: blur(6px); }
.fl--site { width: 44%; left: -8%; top: 8%; transform: rotate(-2deg); }
.fl--phone { width: 19%; right: 4%; bottom: 6%; border-radius: 20px; padding: 5px; background: #0d0a14; transform: rotate(2deg); }
.fl--phone img { border-radius: 15px; }
.fl--maps { left: -2%; bottom: 12%; transform: none; padding: 12px 14px; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.96); border-color: transparent; color: #1b1328; }
.fl--maps .pin { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.fl--maps b { display: block; font-size: .85rem; }
.fl--maps small { font-size: .74rem; color: #5d5470; }
.fl--maps .open { margin-left: 6px; color: #188038; font-weight: 600; font-size: .74rem; }
.fl--chip { right: 6%; top: 8%; transform: none; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font: 500 11px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #e9dcff; background: rgba(18, 12, 30, .85); backdrop-filter: blur(8px); }
.fl--chip .bar { width: 64px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.fl--chip .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #8a2bff, #ff2bd6); transform-origin: left; animation: draftbar 3.2s cubic-bezier(.23,1,.32,1) infinite; }
@keyframes draftbar { 0% { transform: scaleX(.08); } 60%, 100% { transform: scaleX(1); } }

/* foot row: stats, scroll cue, recent work */
.hx__foot { position: relative; z-index: 3; width: 100%; max-width: 1360px; margin: 0 auto; padding: 26px var(--gutter) 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hx__stats { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.hx__stats div { display: grid; gap: 7px; padding-left: 14px; border-left: 1px solid rgba(214, 180, 255, .22); }
.hx__stats strong { font: 600 clamp(1.5rem, 1.9vw, 2.1rem)/1 var(--f-display); color: #f4f1f8; letter-spacing: -0.03em; }
.hx__stats span { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: #9d92b4; }
.hx__scroll { display: grid; justify-items: center; gap: 10px; font: 500 10px/1 var(--font-mono); letter-spacing: .28em; text-transform: uppercase; color: #9d92b4; }
.hx__scroll i { width: 24px; height: 40px; border: 1.5px solid rgba(214, 180, 255, .4); border-radius: 14px; position: relative; }
.hx__scroll i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s cubic-bezier(.77,0,.175,1) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hx__recent { justify-self: end; text-align: right; display: grid; gap: 10px; }
.hx__recent > span { font: 500 10.5px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: #9d92b4; }
.hx__recent a { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; font: 600 1.2rem/1 var(--f-display); letter-spacing: -0.02em; color: #f4f1f8; transition: color .2s ease; }
.hx__recent a:hover { color: #ffb3f2; }
.hx__recent a small { font: 500 10px/1 var(--font-mono); letter-spacing: .14em; color: #4cff9a; padding: 4px 7px; border-radius: 5px; background: rgba(76, 255, 154, .1); }

/* intro choreography */
.js .hx [data-in] { opacity: 0; transform: translateY(18px); animation: hxIn .9s cubic-bezier(.23,1,.32,1) forwards; animation-delay: var(--d, 0s); }
.js .hx__title .ln > span { transform: translateY(105%); animation: lineUp 1s cubic-bezier(.23,1,.32,1) forwards; animation-delay: var(--d, 0s); }
.js .hx__art { opacity: 0; transform: scale(.94); animation: artIn 1.4s cubic-bezier(.23,1,.32,1) .25s forwards; }
@keyframes hxIn { to { opacity: 1; transform: none; } }
@keyframes lineUp { to { transform: none; } }
@keyframes artIn { to { opacity: 1; transform: none; } }


@media (prefers-reduced-motion: reduce) {
  .js .hx [data-in], .js .hx__title .ln > span, .js .hx__art { opacity: 1; transform: none; animation: none; }
  .hx__logo img, .orbit { animation: none; }
}

@media (max-width: 1100px) {
  .hx__main { grid-template-columns: 1fr; padding-top: 130px; }
  .hx__art { justify-self: center; margin: 10px auto 0; max-width: 560px; }
  .hud { display: none; }
  .hx__foot { grid-template-columns: 1fr; }
  .hx__scroll { display: none; }
  .hx__recent { justify-self: start; text-align: left; }
  .hx__recent a { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .hx__title { font-size: clamp(2.9rem, 15vw, 4.4rem); }
  .hx__actions .btn { width: 100%; }
  .hx__stats { gap: 16px; }
  .hx__stats div { padding-left: 10px; }
  .fl--site { width: 52%; left: -2%; }
  .fl--chip { display: none; }
}

/* real brand logos */
.wa-ic { display: inline-block; width: 18px; height: 18px; flex: none; }
.demo-btns i.wa-btn { display: inline-flex; align-items: center; gap: 6px; background: #25d366; color: #06301a; }
.demo-btns i.wa-btn .wa-ic { width: 14px; height: 14px; }
h3.with-logo { display: flex; align-items: center; gap: 10px; }
h3.with-logo img { flex: none; }
.serp-q img { flex: none; }
.fl--maps .pin img, .demo-card .g img { display: block; }
.footer ul a .wa-ic { vertical-align: -3px; margin-right: 6px; width: 16px; height: 16px; }
.logo-img { width: 34px; height: auto; display: block; }

/* services heading icon tile stays; CTA carries the 3D logo quietly */
.cta-art { overflow: hidden; }
.cta-logo { position: absolute; right: -4%; bottom: -28%; width: 38%; max-width: 420px; height: auto; opacity: .5; z-index: -1; pointer-events: none; }

/* draft/live browser sits under the steps in the light section */
.process-browser { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1000px; border-radius: 18px; border: 1px solid rgba(20,13,34,.12); background: #120d1e; color: var(--ink); box-shadow: 0 40px 90px -40px rgba(60, 20, 120, .5); }
.light .process-browser p { color: var(--muted); }
.light .process-browser h3 { color: var(--ink); }
.light .process-browser .demo-card b { color: #1b1328; }

/* ---- pass 2: scale the hero to the screen, fix maps card ---- */
.hx__main, .hx__foot { max-width: min(1800px, 92vw); padding-inline: 0; }
.hx__main { grid-template-columns: 1fr 1.05fr; padding-top: clamp(104px, 9vh, 140px); gap: 2vw; }
.hx__title { font-size: clamp(3rem, 6.1vw, 8.4rem); margin: clamp(20px, 1.8vw, 36px) 0; }
.hx__lede { font-size: clamp(16px, 1.25vw, 24px); max-width: 34ch; }
.hx__eyebrow { font-size: clamp(11px, .72vw, 14px); }
.hx__actions { margin-top: clamp(28px, 2.4vw, 48px); }
.hx__actions .btn { height: clamp(52px, 3.6vw, 68px); padding: 0 clamp(24px, 2vw, 38px); font-size: clamp(.98rem, 1.05vw, 1.25rem); }
.hx__actions .wa-ic { width: clamp(18px, 1.3vw, 24px); height: auto; }
.hx__art { max-width: min(50vw, 980px); margin-right: 0; }
.hx__logo { inset: 4% 6% 4% 10%; }
.fl--site { width: 50%; left: -4%; top: 2%; }
.fl--phone { width: 21%; right: 0; bottom: 2%; }
.fl--maps { left: -2%; bottom: 8%; padding: clamp(12px, 1vw, 18px) clamp(14px, 1.2vw, 22px); gap: 14px; border-radius: 16px; }
.fl--maps .gpin { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex: none; }
.fl--maps b { font-size: clamp(.85rem, .95vw, 1.1rem); white-space: nowrap; }
.fl--maps small { display: block; font-size: clamp(.74rem, .75vw, .9rem); white-space: nowrap; }
.fl--maps .open { font-size: clamp(.74rem, .75vw, .9rem); margin-left: 14px; white-space: nowrap; }
.fl--chip { font-size: clamp(11px, .7vw, 13px); padding: 12px 16px; }
.fl .fl__tag { font-size: clamp(10px, .62vw, 12px); }
.hx__stats strong { font-size: clamp(1.5rem, 2.1vw, 2.8rem); }
.hx__stats span, .hx__recent > span { font-size: clamp(10.5px, .66vw, 12.5px); }
.hx__recent a { font-size: clamp(1.2rem, 1.5vw, 1.9rem); }
.hx__foot { padding-block: clamp(20px, 2vw, 36px); }
.demo-card .g img { width: 13px; height: 18px; }
@media (max-width: 1100px) {
  .hx__main, .hx__foot { max-width: none; padding-inline: var(--gutter); }
  .hx__main { grid-template-columns: 1fr; }
  .hx__art { max-width: 560px; }
}

/* nav lines up with the hero's edges on the home page */
.hx-page .nav .wrap { max-width: min(1800px, 92vw); padding-inline: 0; }
@media (max-width: 1100px) { .hx-page .nav .wrap { max-width: none; padding-inline: var(--gutter); } }
.hud--tl, .hud--tr { top: 96px; }
.hud--tl { left: 1.6vw; } .hud--tr { right: 1.6vw; }
.icon-tile.brand-tile { background: #fff; border-color: transparent; }

/* ---- one formal voice across all pages ---- */
:root { --font-head: "Geist", system-ui, sans-serif; }
h1, h2, h3, h4 { letter-spacing: -0.04em; }
h3 { letter-spacing: -0.02em; }
.logo { font-family: "Geist", system-ui, sans-serif; letter-spacing: -0.03em; }
/* inner-page heroes: one restrained glow, no drifting blobs */
.page-hero .orb { display: none; }
.hero-lined {
  background:
    radial-gradient(700px 420px at 88% -10%, rgba(140, 60, 255, .16), transparent 65%),
    #05030a;
}
.page-hero h1 .accent-text, .center-col h1 .accent-text {
  background: linear-gradient(180deg, #ffffff 10%, #cfc3e6 60%, #9c86c8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero .drafty { color: #8f84a6; -webkit-text-stroke: 0; }

@media (max-width: 560px) {
  .hx__stats strong { font-size: 1.25rem; white-space: nowrap; }
  .hx__stats span { white-space: nowrap; font-size: 9.5px; letter-spacing: .1em; }
  .hx__stats { gap: 12px; justify-content: space-between; }
  .fl--maps { transform: scale(.78); transform-origin: left bottom; left: 0; bottom: 2%; }
  .hx__eyebrow { font-size: 10px; letter-spacing: .16em; }
}
