/* Homepage only: hero enhancements (prefix hh-) and the Selected work 3D showcase (prefix cf-). */

/* ================================================================ HERO */
.hero.hh { background: #070B24; }
.hh-mesh { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hh-mesh i { position: absolute; border-radius: 50%; filter: blur(20px); }
.hh-mesh i:nth-child(1) { right: -8%; top: 4%; width: 900px; height: 900px; background: radial-gradient(circle, rgba(82, 54, 240, .55), rgba(82, 54, 240, .12) 45%, transparent 68%); animation: hh-drift 18s ease-in-out infinite alternate; }
.hh-mesh i:nth-child(2) { left: -14%; top: -30%; width: 820px; height: 820px; background: radial-gradient(circle, rgba(61, 79, 245, .4), transparent 66%); animation: hh-drift 22s ease-in-out infinite alternate-reverse; }
.hh-mesh i:nth-child(3) { left: 30%; bottom: -40%; width: 760px; height: 560px; background: radial-gradient(circle, rgba(154, 166, 255, .16), transparent 66%); }
.hh-mesh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; background: linear-gradient(180deg, transparent, #070B24); }
.hero.hh > .hero-grid:not(.hero-grid--lit) { -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 45%, #000 20%, transparent 75%); opacity: .8; }
.hero.hh .hero-in { z-index: 2; }

/* eyebrow above the headline */
.hh-eb { align-self: flex-start; width: fit-content; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid rgba(154, 166, 255, .35); background: rgba(255, 255, 255, .05); font-size: 14px; font-weight: 600; color: #fff; }
.hh-eb b { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: linear-gradient(135deg, var(--blue), var(--violet)); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.hh-eb b i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .3); animation: hh-blink 1.8s ease-in-out infinite; }

/* audit form: a soft glow so the main action stands out */
.hero.hh .hero-form::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px; background: linear-gradient(120deg, rgba(154, 166, 255, .9), rgba(82, 54, 240, .2) 40%, rgba(255, 255, 255, .05) 70%, rgba(154, 166, 255, .7)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero.hh .hero-form { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 60px -20px rgba(82, 54, 240, .7), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* two hero actions: the free website audit report and a free consultation */
.hero.hh .hero-act { max-width: 660px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-btns .btn { min-height: 54px; padding: 15px 20px; border-radius: 12px; justify-content: center; }
.hero.hh .hero-btns .btn-p { box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), 0 0 56px -18px rgba(82, 54, 240, .85); }
.hero.hh .hero-btns .btn-gd { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .28); }
.hero.hh .hero-btns .btn-gd:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.hero-btns .btn-gd:hover svg { transform: none; }
@media (max-width: 560px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
}

/* a glass stage and orbit rings behind the dashboard */
.hero.hh .hv-wrap { position: relative; }
.hh-stage { position: absolute; left: 50%; top: 50%; z-index: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px; pointer-events: none; }
.hh-stage::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(82, 54, 240, .5), rgba(61, 79, 245, .14) 50%, transparent 70%); }
.hh-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(154, 166, 255, .34); animation: hh-spin 60s linear infinite; }
.hh-ring::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(154, 166, 255, .3), 0 0 18px #9AA6FF; }
.hh-ring--2 { inset: 12%; border-style: dashed; border-color: rgba(154, 166, 255, .4); animation-duration: 40s; animation-direction: reverse; }
.hh-ring--2::after { top: auto; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; }
.hh-floor { position: absolute; left: 50%; bottom: 6%; width: 86%; height: 90px; margin-left: -43%; border-radius: 50%; background: radial-gradient(closest-side, rgba(154, 166, 255, .45), rgba(82, 54, 240, .18) 60%, transparent); filter: blur(6px); }
.hero.hh .hv { z-index: 1; }

@keyframes hh-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-40px, 30px) scale(1.08); } }
@keyframes hh-spin { to { transform: rotate(360deg); } }
@keyframes hh-blink { 50% { opacity: .35; } }

@media (max-width: 1100px) {
  .hh-stage { width: 600px; height: 600px; margin: -300px 0 0 -300px; }
}
@media (max-width: 720px) {
  .hh-eb { margin-bottom: 16px; gap: 8px; padding-right: 12px; font-size: 12.5px; line-height: 1.3; }
  .hh-eb b { font-size: 10.5px; }
  .hh-stage { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
  .hh-mesh i:nth-child(1) { width: 520px; height: 520px; }
  .hh-mesh i:nth-child(2) { width: 480px; height: 480px; }
}

/* ================================================================ SELECTED WORK: 3D showcase */
.work.cf-on { position: relative; overflow: hidden; background: linear-gradient(180deg, #F4F5FC, #ECEEFB); }
.work.cf-on::before { content: ""; position: absolute; left: 50%; top: 52%; width: 1100px; height: 700px; margin-left: -550px; border-radius: 50%; background: radial-gradient(closest-side, rgba(154, 166, 255, .55), rgba(154, 166, 255, .12) 55%, transparent); pointer-events: none; }
.work.cf-on .wrap { position: relative; z-index: 1; }
.cf { position: relative; margin-top: 44px; }
.cf-stage { position: relative; height: 520px; perspective: 1800px; perspective-origin: 50% 40%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cf-s { position: absolute; left: 50%; top: 0; width: 640px; margin-left: -320px; padding: 0; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; transform-style: preserve-3d; transition: transform 1.6s cubic-bezier(.22, 1, .36, 1), opacity 1.1s, filter 1.1s; }
.cf-s:focus-visible { outline: none; }
.cf-s:focus-visible .cf-win { outline: 3px solid var(--blue); outline-offset: 6px; }
.cf-s.is-on { cursor: default; }
.cf-win { overflow: hidden; border-radius: 20px; border: 1px solid rgba(10, 15, 46, .1); background: #fff; box-shadow: 0 50px 90px -40px rgba(10, 15, 46, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset; -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255, 255, 255, .22)); }
.cf-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid #E3E6F0; background: #F3F4FA; }
.cf-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CFD3E6; }
.cf-bar em { margin-left: 10px; padding: 3px 12px; border-radius: 999px; background: #fff; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-2); }
.cf-win img { display: block; width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; object-position: top; transition: object-position 6s ease; }
.cf-s.is-on:hover .cf-win img { object-position: 50% 40%; }
.cf-s:not(.is-on) .cf-win { box-shadow: 0 40px 70px -40px rgba(10, 15, 46, .5); }

/* caption + controls */
.cf-info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; max-width: 1000px; margin: 8px auto 0; padding: 22px 26px; border-radius: 24px; border: 1px solid rgba(61, 79, 245, .14); background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -40px rgba(10, 15, 46, .35); }
.cf-num { font-family: var(--serif); font-size: 54px; font-style: italic; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--blue); }
.cf-num small { margin-left: 4px; font-size: 20px; -webkit-text-stroke: 0; color: var(--text-2); }
.cf-caps { display: grid; min-width: 0; }
.cf-cap { grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease), visibility 0s .4s; }
.cf-cap.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .15s, transform .55s var(--ease) .15s, visibility 0s; }
.cf-cap span { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #EEF0FF; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cf-cap b { display: block; margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
.cf-cap small { display: block; margin-top: 3px; font-size: 15px; color: var(--text-2); }
.cf-cap a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--blue); }
.cf-cap a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cf-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.cf-arw { display: flex; gap: 10px; }
.cf-arw button { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 1px solid rgba(61, 79, 245, .25); background: #fff; color: var(--ink); cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.cf-arw button:hover { border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; }
.cf-arw button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.cf-arw svg { width: 18px; height: 18px; }
.cf-dots { display: flex; gap: 6px; }
.cf-dots button { position: relative; width: 26px; height: 4px; padding: 0; overflow: hidden; border: 0; border-radius: 4px; background: rgba(61, 79, 245, .18); cursor: pointer; }
.cf-dots button::after { content: ""; position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.cf-dots button.is-on::after { transform: scaleX(1); }
.cf.is-auto .cf-dots button.is-on::after { transform: scaleX(0); animation: cf-fill var(--cf-dur, 5s) linear forwards; }
.cf-dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@keyframes cf-fill { to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .cf-stage { height: 440px; }
  .cf-s { width: 540px; margin-left: -270px; }
}
@media (max-width: 720px) {
  .cf { margin-top: 28px; }
  .cf-stage { height: 268px; }
  .cf-s { width: 300px; margin-left: -150px; }
  .cf-win { border-radius: 14px; -webkit-box-reflect: unset; }
  .cf-bar { height: 24px; padding: 0 10px; }
  .cf-bar i { width: 7px; height: 7px; }
  .cf-bar em { display: none; }
  .cf-info { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .cf-num { font-size: 40px; }
  .cf-cap b { font-size: 22px; }
  .cf-ctl { flex-direction: row; align-items: center; justify-content: space-between; }
  .cf-arw button { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-mesh i, .hh-ring, .hh-eb b i { animation: none; }
  .cf-s, .cf-cap, .cf-win img { transition: none; }
}

/* ten projects: slimmer progress dots */
.cf-dots button { width: 18px; }
@media (max-width: 720px) { .cf-dots { gap: 4px; } .cf-dots button { width: 10px; } }

/* mouse: the showcase can be dragged; the wheel scrolls the page, not the showcase (see hh2.js) */
@media (hover: hover) and (pointer: fine) {
  .cf-stage, .cf-s.is-on { cursor: grab; }
  .cf.is-grab .cf-stage, .cf.is-grab .cf-s { cursor: grabbing; }
}

/* hh2 (v2.3.0): big arrows on either side of the project in front, added by hh2.js. Each sits on the front
   window's edge, halfway down it: hh2.js sets --cf-w / --cf-h to that window's measured size (the values here are fallbacks). */
.cf { --cf-w: 640px; --cf-h: 478px; --cf-b: 58px; }
.cf-side { position: absolute; top: calc(var(--cf-h) / 2 - var(--cf-b) / 2); z-index: 20; display: grid; place-items: center; width: var(--cf-b); height: var(--cf-b); padding: 0; border-radius: 50%; border: 1px solid rgba(61, 79, 245, .22); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); cursor: pointer; box-shadow: 0 20px 40px -18px rgba(10, 15, 46, .55), 0 2px 6px rgba(10, 15, 46, .08); transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.cf-side svg { width: 20px; height: 20px; }
.cf-prev { left: calc(50% - var(--cf-w) / 2 - var(--cf-b) / 2); }
.cf-next { right: calc(50% - var(--cf-w) / 2 - var(--cf-b) / 2); }
.cf-side:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .cf-side:hover { border-color: transparent; background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; box-shadow: 0 20px 40px -14px rgba(82, 54, 240, .75); }
  .cf-prev:hover { transform: translateX(-3px); }
  .cf-next:hover { transform: translateX(3px); }
}
.cf-side:active { transform: scale(.93); }
.cf.has-side .cf-arw { display: none; }
@media (max-width: 1100px) {
  .cf { --cf-w: 540px; --cf-h: 410px; --cf-b: 54px; }
}
@media (max-width: 720px) {
  .cf { --cf-w: 300px; --cf-h: 232px; --cf-b: 44px; }
  .cf-side svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf-side { transition: background .3s, color .3s, border-color .3s; }
  .cf-prev:hover, .cf-next:hover, .cf-side:active { transform: none; }
}
