/* Agency-grade ambient visuals & motion */

:root {
  --radius-md: 3px;
  --radius-lg: 4px;
  --radius-xl: 5px;
  /* Soft desk shadow — sheet of paper resting on a surface */
  --shadow-sm:
    0 1px 1px rgba(0, 0, 0, 0.18),
    0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-md:
    1px 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(40, 32, 20, 0.06),
    0 2px 3px rgba(0, 0, 0, 0.14),
    0 8px 18px rgba(0, 0, 0, 0.28),
    0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-lg:
    1px 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 4px rgba(0, 0, 0, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.32),
    0 28px 56px rgba(0, 0, 0, 0.22);
  --shadow-glow: 0 0 0 transparent;
  --surface-glass: #e8e2d6;
  --surface-glass-hover: #f0ebe0;
  --surface-border: rgba(48, 40, 28, 0.18);
  --surface-border-hover: rgba(201, 188, 86, 0.5);
  --section-glass: rgba(18, 18, 24, 0.82);
  /* Warm print stock — not pure white */
  --card-paper: #e6dfd0;
  --card-paper-hover: #efe8da;
  /* Dual noise: fine grit + coarser pulp flecks */
  --card-paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.18 0 0 0 0.85 0'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.45' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.32 0 0 0 0 0.2 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23b)' opacity='0.65'/%3E%3C/svg%3E");
  --card-paper-fibers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.035 0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --card-metal: linear-gradient(180deg, #f0ebe0 0%, #e6dfd0 50%, #ddd4c4 100%);
  --card-metal-hover: linear-gradient(180deg, #f5f0e6 0%, #efe8da 50%, #e6dfd0 100%);
  --card-ink: #1c1812;
  --card-muted: #3a342c;
  /* Brand gold as a chip/background — text on paper stays dark */
  --card-accent: #1c1812;
  --card-accent-hover: #000;
  --card-accent-wash: #c9bc56;
}

[data-theme="light"] {
  --shadow-sm:
    0 1px 1px rgba(40, 32, 20, 0.08),
    0 2px 6px rgba(40, 32, 20, 0.06);
  --shadow-md:
    1px 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 1px 0 rgba(40, 32, 20, 0.05),
    0 2px 4px rgba(40, 32, 20, 0.08),
    0 10px 22px rgba(40, 32, 20, 0.12);
  --shadow-lg:
    1px 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 3px 8px rgba(40, 32, 20, 0.1),
    0 18px 36px rgba(40, 32, 20, 0.14);
  --shadow-glow: 0 0 0 transparent;
  --surface-glass: #ebe5d8;
  --surface-glass-hover: #f3eee4;
  --surface-border: rgba(48, 40, 28, 0.14);
  --surface-border-hover: rgba(112, 101, 32, 0.32);
  --section-glass: rgba(240, 242, 245, 0.88);
  --card-paper: #e8e1d2;
  --card-paper-hover: #f1eadc;
  --card-metal: linear-gradient(180deg, #f3eee4 0%, #e8e1d2 50%, #dfd6c6 100%);
  --card-metal-hover: linear-gradient(180deg, #f7f3ea 0%, #f1eadc 50%, #e8e1d2 100%);
  --card-ink: #1c1812;
  --card-muted: #3a342c;
  --card-accent: #1c1812;
  --card-accent-hover: #000;
  --card-accent-wash: #c9bc56;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#starCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.ambient-nebula,
.ambient-glow {
  display: block;
}

.ambient-grid {
  opacity: 0.06;
}

.ambient-nebula {
  position: absolute;
  border-radius: 50%;
  /* Soft gradient only — CSS blur here was a major GPU cost */
  mix-blend-mode: screen;
  animation: nebulaDrift 36s ease-in-out infinite alternate;
  will-change: auto;
}

.ambient-nebula--1 {
  width: min(90vw, 900px);
  height: min(70vw, 700px);
  top: -20%;
  left: 10%;
  background: radial-gradient(circle, rgba(201, 188, 86, 0.22) 0%, rgba(100, 80, 180, 0.08) 35%, transparent 68%);
  opacity: 0.75;
}

.ambient-nebula--2 {
  display: none;
}

.ambient-nebula--3 {
  display: none;
}

[data-theme="light"] .ambient-nebula {
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  opacity: 0.45;
  animation: ambientDrift 28s ease-in-out infinite alternate;
  will-change: auto;
}

.ambient-glow--1 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: 8%;
  right: 5%;
  background: radial-gradient(circle, rgba(201, 188, 86, 0.18) 0%, transparent 70%);
}

.ambient-glow--2 {
  display: none;
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 72%);
  opacity: 0.55;
}

.ambient-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 30%, rgba(8, 8, 12, 0.55) 100%);
  pointer-events: none;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4%, 5%) scale(1.1); }
}

@keyframes nebulaDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 4%) rotate(3deg); }
}

body {
  position: relative;
  background: transparent !important;
}

html {
  background: #121218;
}

[data-theme="light"] html {
  background: #eceef2;
}

body > :not(.ambient-bg):not(nav):not(.floating-contact):not(.advisor-fixed):not(.fab-restore):not(.theme-toggle):not(.sldn-modal):not(.sldn-shatter-layer):not(.sldn-cart) {
  position: relative;
  z-index: 1;
}

nav {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

nav.nav-scrolled {
  /* Keep solid — transparent scroll style made pages look different */
  border-bottom-color: rgba(201, 188, 86, 0.14) !important;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-links a .ti,
.nav-links a .nav-icon {
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav-links a .nav-icon {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-links a:hover .ti,
.nav-links a.active .ti,
.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon {
  opacity: 1;
  transform: none;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu a .ti {
  font-size: 1.05rem;
  color: var(--accent);
  width: 1.25rem;
  text-align: center;
}

.services,
.psychology,
.process,
.pricing,
.portfolio,
.industries,
.contact,
.about,
.difference,
.cta-band,
.home-block,
.process-menu,
.about-gazette,
.signin-page,
.account-page,
.legal-page,
.admin-page,
.marquee-section,
footer {
  background: var(--section-glass) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-block: 1px solid var(--surface-border);
}

.services::before,
.process::before,
.psychology::before,
.industries::before {
  display: none !important;
}

.service-card::before,
.pricing-card::before,
.process-step::before,
.psych-step::before,
.diff-card::before,
.team-card::before,
.testimonial-card::before,
.mission-item::before,
.home-price-card::before,
.pick-card::before,
.checkout-card::before,
.checkout-empty::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  border-radius: inherit !important;
  z-index: 0 !important;
  background-image:
    var(--card-paper-fibers),
    var(--card-paper-grain),
    repeating-linear-gradient(
      92deg,
      transparent 0,
      transparent 3px,
      rgba(70, 55, 35, 0.04) 3px,
      rgba(70, 55, 35, 0.04) 4px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(55, 42, 28, 0.045) 2px,
      rgba(55, 42, 28, 0.045) 3px
    ) !important;
  background-size: 110px 110px, 140px 140px, auto, auto !important;
  background-blend-mode: multiply, multiply, multiply, multiply;
  opacity: 0.78;
  mix-blend-mode: multiply;
}

.service-card,
.psych-step,
.pricing-card,
.process-step,
.diff-card,
.team-card,
.project-card,
.pick-card,
.testimonial-card,
.mission-item,
.home-price-card {
  position: relative;
  border-radius: var(--radius-lg) !important;
  /* Slightly translucent so the starfield reads under/around paper cards */
  background-color: rgba(230, 223, 208, 0.88) !important;
  background-image:
    linear-gradient(165deg, rgba(255, 252, 245, 0.55) 0%, transparent 36%),
    linear-gradient(20deg, rgba(120, 95, 55, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(90, 70, 40, 0.08), transparent 45%),
    var(--card-paper-grain) !important;
  background-size: auto, auto, auto, auto, 120px 120px !important;
  background-blend-mode: normal, multiply, soft-light, multiply, multiply;
  border: 1px solid rgba(70, 55, 35, 0.22) !important;
  box-shadow: var(--shadow-md) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--card-ink);
  overflow: hidden;
  transform: rotate(0deg);
  isolation: isolate;
  /* Keep bright brand gold for solid buttons; body text uses ink/muted */
  --accent: #c9bc56;
  --accent-hover: #b5a84a;
  --accent-on: #1c1812;
  --surface-border-hover: rgba(201, 188, 86, 0.55);
}

.service-card::after,
.psych-step::after,
.pricing-card::after,
.process-step::after,
.diff-card::after,
.team-card::after,
.pick-card::after,
.testimonial-card::after,
.mission-item::after,
.home-price-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -1px 0 rgba(40, 32, 20, 0.12),
    inset 1px 0 0 rgba(255, 255, 255, 0.35),
    inset -1px 0 0 rgba(40, 32, 20, 0.08);
  background:
    linear-gradient(
      135deg,
      transparent 58%,
      rgba(40, 32, 20, 0.06) 58%,
      rgba(40, 32, 20, 0.1) 100%
    );
  opacity: 1;
}

.service-card > *,
.psych-step > *,
.pricing-card > *,
.process-step > *,
.diff-card > *,
.team-card > *,
.pick-card > *,
.testimonial-card > *,
.mission-item > *,
.home-price-card > * {
  position: relative;
  z-index: 1;
}

.project-card {
  cursor: pointer;
  isolation: isolate;
}

.project-card::after {
  display: none;
}

.project-overlay {
  pointer-events: none;
}

.services-grid,
.psych-steps,
.pricing-grid {
  gap: 1.25rem !important;
  background: transparent !important;
}

.psych-steps {
  grid-template-columns: repeat(3, 1fr) !important;
}

.psych-step {
  margin: 0 !important;
}

.service-card:hover,
.psych-step:hover,
.pricing-card:hover,
.process-step:hover,
.diff-card:hover,
.team-card:hover,
.project-card:hover,
.pick-card:hover,
.testimonial-card:hover,
.mission-item:hover,
.home-price-card:hover {
  /* Lift the sheet slightly off the desk */
  transform: translateY(-6px) rotate(-0.35deg) !important;
  background-color: rgba(239, 232, 218, 0.92) !important;
  border-color: var(--surface-border-hover) !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Dark ink on paper cards */
.service-card h3,
.psych-step h3,
.pricing-card h3,
.process-step h3,
.diff-card h3,
.team-card h3,
.project-name,
.pick-card h3,
.mission-item h3,
.home-price-card h3,
.testimonial-author strong {
  color: var(--card-ink) !important;
}

.service-card p,
.psych-step p,
.pricing-card > p,
.process-step p,
.diff-card p,
.team-card p,
.project-desc,
.project-cat,
.pick-card__outcome,
.service-card-outcome,
.testimonial-text,
.mission-item p,
.home-price-card p,
.pricing-list li,
.step-word,
.pricing-maint-title,
.pricing-maint-desc {
  color: var(--card-muted) !important;
}

.price,
.pick-card__price,
.home-price-card .price,
.stat-num {
  color: var(--card-ink) !important;
}

.service-card .tag,
.pricing-card .tag {
  border-color: rgba(26, 27, 32, 0.12) !important;
  color: var(--card-muted) !important;
  background: rgba(255, 255, 255, 0.28);
}

.process-num {
  border-color: rgba(55, 48, 38, 0.14) !important;
  background: linear-gradient(160deg, #f4f0e8, #e5dfd4) !important;
}

.process-num span {
  color: var(--card-ink) !important;
}

.hero {
  background: transparent !important;
}

.hero-content {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hero-stats {
  background-color: var(--card-paper);
  background-image:
    linear-gradient(168deg, rgba(255, 255, 255, 0.5) 0%, transparent 40%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(60, 48, 30, 0.018) 2px,
      rgba(60, 48, 30, 0.018) 3px
    ),
    var(--card-paper-grain);
  background-size: auto, auto, 180px 180px;
  background-blend-mode: normal, multiply, soft-light;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem !important;
  box-shadow: var(--shadow-md);
  backdrop-filter: none;
  border-top: none !important;
  color: var(--card-ink);
}

.hero-stats .stat-label {
  color: var(--card-muted) !important;
}

.project-info {
  background: transparent;
}

/* ── Real laptop photo + interactive screen overlay ── */
.hero--laptop {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: auto !important;
  height: auto !important;
  /* Clear fixed nav so the lid is not clipped underneath */
  padding: calc(var(--nav-h, 64px) + 0.45rem) clamp(0.6rem, 2.5vw, 1.25rem) clamp(0.65rem, 2vw, 1.1rem) !important;
  overflow: visible !important;
}

.hero--laptop .hero-inner,
.hero--laptop .hero-visual,
.hero--laptop .hero-mobile-robot {
  display: none !important;
}

.hero-laptop {
  position: relative;
  /* Full laptop (screen + keyboard) fits below the nav */
  width: min(640px, 70vw, calc((100vh - var(--nav-h, 64px) - 3.2rem) * 1.1316));
  width: min(640px, 70vw, calc((100dvh - var(--nav-h, 64px) - 3.2rem) * 1.1316));
  margin: 0 auto;
  line-height: 0;
  animation: heroLaptopIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
}

@keyframes heroLaptopIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-laptop__photo {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Screen cutout — measured from transparent laptop PNG */
.hero-laptop__screen {
  position: absolute;
  left: 7.266%;
  top: 1.542%;
  width: 85.468%;
  height: 52.929%;
  overflow: hidden;
  border-radius: 0.6% / 0.9%;
  background: #202124;
  pointer-events: auto;
  container-type: size;
  container-name: laptop-screen;
  line-height: normal;
  z-index: 3;
}

/* Windows 10 desktop + Chrome frame inside laptop screen */
.hero-chrome {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #202124;
  color: #e8eaed;
  font-family: 'Segoe UI', 'DM Sans', system-ui, sans-serif;
  overflow: hidden;
  position: relative;
}

.hero-chrome__frame {
  flex: 0 0 auto;
  background: #202124;
}

.hero-chrome__tabs {
  display: flex;
  align-items: flex-end;
  height: clamp(16px, 8.2cqh, 28px);
  padding: 0 0 0 0.45%;
  background: #202124;
  position: relative;
}

.hero-chrome__tab {
  display: flex;
  align-items: center;
  gap: 0.35em;
  height: 84%;
  max-width: 28%;
  min-width: 0;
  padding: 0 0.55em 0 0.5em;
  margin-right: 1px;
  background: transparent;
  border-radius: 8px 8px 0 0;
  font-size: clamp(0.26rem, 1.25cqw, 0.48rem);
  color: #9aa0a6;
  position: relative;
}

.hero-chrome__tab.is-active {
  background: #35363a;
  color: #e8eaed;
  z-index: 1;
}

.hero-chrome__fav {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, #ea4335 0 28%, transparent 29%),
    radial-gradient(circle at 70% 30%, #fbbc05 0 28%, transparent 29%),
    radial-gradient(circle at 30% 70%, #34a853 0 28%, transparent 29%),
    radial-gradient(circle at 70% 70%, #4285f4 0 28%, transparent 29%),
    #c9bc56;
}

.hero-chrome__fav--muted {
  background: #5f6368;
  opacity: 0.7;
}

.hero-chrome__tab-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hero-chrome__tab-close {
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.15em;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  opacity: 0.55;
}

.hero-chrome__tab-close::before,
.hero-chrome__tab-close::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 55%;
  height: 1px;
  background: currentColor;
}

.hero-chrome__tab-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.hero-chrome__tab-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.hero-chrome__newtab {
  width: 1.15em;
  height: 1.15em;
  margin: 0 0 0.35em 0.35em;
  border-radius: 50%;
  position: relative;
  opacity: 0.65;
  flex-shrink: 0;
  align-self: center;
}

.hero-chrome__newtab::before,
.hero-chrome__newtab::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #e8eaed;
}

.hero-chrome__newtab::before {
  width: 50%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.hero-chrome__newtab::after {
  width: 1px;
  height: 50%;
  transform: translate(-50%, -50%);
}

.hero-chrome__winbtns {
  display: flex;
  height: 100%;
  margin-left: auto;
  flex-shrink: 0;
}

.hero-chrome__winbtn {
  width: clamp(22px, 6.2cqw, 38px);
  height: 100%;
  position: relative;
}

.hero-chrome__winbtn::before,
.hero-chrome__winbtn::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #e8eaed;
}

.hero-chrome__winbtn--min::before {
  width: 34%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.hero-chrome__winbtn--max::before {
  width: 26%;
  height: 26%;
  background: transparent;
  border: 1px solid #e8eaed;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
}

.hero-chrome__winbtn--close::before,
.hero-chrome__winbtn--close::after {
  width: 36%;
  height: 1px;
}

.hero-chrome__winbtn--close::before { transform: translate(-50%, -50%) rotate(45deg); }
.hero-chrome__winbtn--close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.hero-chrome__toolbar {
  display: flex;
  align-items: center;
  gap: 0.55%;
  height: clamp(18px, 9.5cqh, 32px);
  padding: 0 0.7% 0 0.55%;
  background: #35363a;
  border-bottom: 1px solid #3c4043;
}

.hero-chrome__nav {
  display: flex;
  align-items: center;
  gap: 0.2em;
  flex-shrink: 0;
  padding-left: 0.15em;
}

.hero-chrome__icon {
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  position: relative;
  opacity: 0.85;
  flex-shrink: 0;
}

.hero-chrome__icon--back::before,
.hero-chrome__icon--fwd::before {
  content: '';
  position: absolute;
  left: 52%;
  top: 50%;
  width: 0.38em;
  height: 0.38em;
  border-left: 1.5px solid #e8eaed;
  border-bottom: 1.5px solid #e8eaed;
  box-sizing: border-box;
}

.hero-chrome__icon--back::before {
  transform: translate(-40%, -50%) rotate(45deg);
}

.hero-chrome__icon--fwd::before {
  left: 42%;
  transform: translate(-40%, -50%) rotate(-135deg);
  opacity: 0.35;
}

.hero-chrome__icon--reload::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.52em;
  height: 0.52em;
  border: 1.5px solid #e8eaed;
  border-right-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-40deg);
  box-sizing: border-box;
}

.hero-chrome__icon--reload::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 18%;
  width: 0;
  height: 0;
  border-left: 0.22em solid transparent;
  border-right: 0.22em solid transparent;
  border-bottom: 0.28em solid #e8eaed;
  transform: rotate(55deg);
}

.hero-chrome__omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4em;
  height: 70%;
  min-width: 0;
  padding: 0 0.55em;
  background: #202124;
  border-radius: 999px;
  font-size: clamp(0.28rem, 1.4cqw, 0.5rem);
  color: #e8eaed;
}

.hero-chrome__secure {
  width: 0.72em;
  height: 0.72em;
  flex-shrink: 0;
  position: relative;
}

.hero-chrome__secure::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0.55em;
  height: 0.38em;
  border: 1.2px solid #9aa0a6;
  border-radius: 0.1em;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: rgba(154, 160, 166, 0.15);
}

.hero-chrome__secure::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 0.34em;
  height: 0.3em;
  border: 1.2px solid #9aa0a6;
  border-bottom: 0;
  border-radius: 0.35em 0.35em 0 0;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.hero-chrome__url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.hero-chrome__scheme {
  color: #9aa0a6;
}

.hero-chrome__star {
  width: 0.7em;
  height: 0.7em;
  margin-left: auto;
  flex-shrink: 0;
  background: #9aa0a6;
  opacity: 0.55;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.hero-chrome__actions {
  display: flex;
  align-items: center;
  gap: 0.35em;
  flex-shrink: 0;
  padding-right: 0.2em;
}

.hero-chrome__ext,
.hero-chrome__profile,
.hero-chrome__menu {
  width: 1em;
  height: 1em;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  opacity: 0.8;
}

.hero-chrome__ext {
  background: #5f6368;
  border-radius: 2px;
}

.hero-chrome__profile {
  background: linear-gradient(135deg, #c9bc56, #8a8040);
}

.hero-chrome__menu::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: #e8eaed;
  box-shadow: 0 -0.28em 0 #e8eaed, 0 0.28em 0 #e8eaed;
  transform: translate(-50%, -50%);
}

.hero-chrome__page {
  flex: 1 1 auto;
  min-height: 0;
  background: #0c0c10;
  overflow: hidden;
}

/* Windows 10 taskbar — Start → Search → Widgets → Task View → Explorer → Chrome */
.hero-chrome__taskbar {
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  height: clamp(16px, 8.5cqh, 28px);
  background: #1b1b1b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 5;
  overflow: hidden;
}

.hero-chrome__tb-left {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 auto;
}

.hero-chrome__start {
  width: clamp(18px, 5.5cqw, 28px);
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

.hero-chrome__start::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72em;
  height: 0.72em;
  transform: translate(-50%, -50%);
  background:
    linear-gradient(#fff 0 46%, transparent 46% 54%, #fff 54%) left / 46% 100% no-repeat,
    linear-gradient(#fff 0 46%, transparent 46% 54%, #fff 54%) right / 46% 100% no-repeat;
}

.hero-chrome__search {
  display: flex;
  align-items: center;
  gap: 0.35em;
  width: clamp(52px, 28cqw, 140px);
  max-width: 38%;
  margin: 0;
  padding: 0 0.55em;
  background: #2d2d2d;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 1;
  min-width: 0;
  box-sizing: border-box;
}

.hero-chrome__search-ico {
  width: 0.7em;
  height: 0.7em;
  flex-shrink: 0;
  position: relative;
  opacity: 0.85;
}

.hero-chrome__search-ico::before {
  content: '';
  position: absolute;
  left: 8%;
  top: 8%;
  width: 55%;
  height: 55%;
  border: 1.2px solid #fff;
  border-radius: 50%;
  box-sizing: border-box;
}

.hero-chrome__search-ico::after {
  content: '';
  position: absolute;
  right: 8%;
  bottom: 10%;
  width: 38%;
  height: 1.2px;
  background: #fff;
  transform: rotate(42deg);
  transform-origin: left center;
}

.hero-chrome__search-txt {
  font-size: clamp(0.22rem, 1.15cqw, 0.42rem);
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hero-chrome__tb-btn,
.hero-chrome__tb-app {
  width: clamp(16px, 5cqw, 26px);
  flex-shrink: 0;
  position: relative;
  align-self: stretch;
}

.hero-chrome__tb-btn--widgets::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.7em;
  height: 0.7em;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 35%, #f7c948 0 28%, transparent 29%),
    radial-gradient(circle at 22% 70%, #4fc3f7 0 22%, transparent 23%),
    radial-gradient(circle at 78% 70%, #81c784 0 22%, transparent 23%),
    radial-gradient(circle at 50% 78%, #ff8a65 0 18%, transparent 19%);
}

.hero-chrome__tb-btn--taskview::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.72em;
  height: 0.55em;
  transform: translate(-50%, -50%);
  border: 1.2px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
  box-shadow: 2px 2px 0 -0.5px #1b1b1b, 2px 2px 0 0 rgba(255, 255, 255, 0.55);
}

.hero-chrome__tb-app--explorer::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 52%;
  width: 0.72em;
  height: 0.52em;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #f8d56b 0%, #e6b422 100%);
  border-radius: 0 0.08em 0.08em 0.08em;
  box-shadow: -0.12em -0.16em 0 -0.02em #c9a227;
}

.hero-chrome__tb-app--chrome::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.78em;
  height: 0.78em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    conic-gradient(
      from -30deg,
      #ea4335 0deg 120deg,
      #fbbc05 120deg 240deg,
      #34a853 240deg 360deg
    );
  box-shadow: inset 0 0 0 0.14em #fff;
}

.hero-chrome__tb-app--chrome::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.32em;
  height: 0.32em;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #4285f4;
  box-shadow: 0 0 0 0.08em #fff;
  z-index: 1;
}

.hero-chrome__tb-app.is-active {
  background: rgba(255, 255, 255, 0.08);
}

.hero-chrome__tb-app.is-active {
  box-shadow: inset 0 -2px 0 #76b9ed;
}

.hero-chrome__tb-tray {
  display: flex;
  align-items: center;
  gap: 0.35em;
  flex-shrink: 0;
  padding: 0 0.55em 0 0.35em;
  font-size: clamp(0.2rem, 1cqw, 0.36rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.15;
  text-align: right;
}

.hero-chrome__tb-weather,
.hero-chrome__tb-lang {
  opacity: 0.85;
  white-space: nowrap;
}

.hero-chrome__tb-clock {
  white-space: nowrap;
  line-height: 1.15;
}

.hero--laptop .hero-content {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  width: 100% !important;
  max-width: none !important;
  height: 100%;
  margin: 0 !important;
  padding: 2.6% 3% 2.2% !important;
  box-sizing: border-box;
  text-align: left;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-shadow: none;
  gap: 0;
}

.hero-chrome__logo,
.hero-content > picture {
  display: block;
  width: auto;
  height: clamp(0.7rem, 4.6cqw, 1.45rem);
  margin-bottom: 1.6%;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.hero-content > picture {
  height: auto;
}

.hero-content > picture .hero-chrome__logo {
  margin-bottom: 0;
  height: clamp(0.7rem, 4.6cqw, 1.45rem);
}

.hero-msg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.22rem, 1.2cqw, 0.45rem);
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  align-content: stretch;
  align-items: stretch;
  margin-bottom: 1.6%;
  overflow: hidden;
}

.hero-msg-box {
  margin: 0;
  padding: clamp(0.28rem, 1.2cqw, 0.48rem) clamp(0.32rem, 1.3cqw, 0.55rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.28rem;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(0.4rem, 1.85cqw, 0.72rem);
  line-height: 1.32;
  color: rgba(236, 236, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(0.35em) scale(0.98);
  animation: heroMsgIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  min-height: 0;
}

.hero-msg-box.is-exiting {
  visibility: hidden;
  animation: none;
}

@keyframes heroMsgIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero--laptop .hero-btns {
  display: flex !important;
  flex-wrap: nowrap;
  gap: clamp(0.22rem, 1cqw, 0.45rem) !important;
  pointer-events: auto;
  position: relative;
  z-index: 2;
  margin-top: auto;
  flex: 0 0 auto;
  max-width: 100%;
}

.hero--laptop .hero-btns a {
  pointer-events: auto;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: clamp(0.34rem, 1.45cqw, 0.52rem) !important;
  letter-spacing: 0.03em !important;
  padding: clamp(0.24rem, 0.95cqw, 0.42rem) clamp(0.4rem, 1.5cqw, 0.75rem) !important;
  white-space: nowrap;
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero--laptop .hero-tag,
.hero--laptop .hero-stats,
.hero--laptop .hero-sub,
.hero--laptop h1 {
  display: none !important;
}

@container laptop-screen (max-width: 320px) {
  .hero-chrome__tab:not(.is-active),
  .hero-chrome__search-txt,
  .hero-chrome__tb-btn--widgets,
  .hero-chrome__tb-weather,
  .hero-chrome__tb-lang,
  .hero-chrome__scheme {
    display: none;
  }

  .hero-chrome__search {
    width: clamp(18px, 6cqw, 24px);
    padding: 0;
    justify-content: center;
  }

  .hero-chrome__toolbar {
    height: clamp(14px, 10cqh, 22px);
  }

  .hero-msg-grid {
    grid-template-columns: 1fr;
    gap: 0.28rem;
  }

  .hero-msg-box {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: clamp(0.42rem, 3.2cqw, 0.62rem);
  }

  .hero--laptop .hero-content {
    padding: 3% 3.5% 2.5% !important;
  }
}

@container laptop-screen (max-height: 210px) {
  .hero-chrome__tab:not(.is-active),
  .hero-chrome__search-txt,
  .hero-chrome__tb-weather {
    display: none;
  }

  .hero-msg-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-msg-box {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-msg-box {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Interactive keyboard hit-layer (glow on press / real typing) */
.hero-laptop__keyboard {
  position: absolute;
  left: 9.26%;
  top: 65.98%;
  width: 81.38%;
  height: 15.01%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.2%;
  pointer-events: auto;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-laptop__keyrow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.55%;
  flex: 1 1 0;
  min-height: 0;
}

.hero-laptop__keyrow--fn {
  flex: 0.72 1 0;
}

.hero-laptop__key {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 12%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.08s ease, box-shadow 0.08s ease, transform 0.08s ease;
}

.hero-laptop__key--wide { flex: 1.45 1 0; }
.hero-laptop__key--tab { flex: 1.55 1 0; }
.hero-laptop__key--caps { flex: 1.8 1 0; }
.hero-laptop__key--shift { flex: 2.3 1 0; }
.hero-laptop__key--cmd { flex: 1.35 1 0; }
.hero-laptop__key--space { flex: 5.6 1 0; }
.hero-laptop__key--fnkey { flex: 0.95 1 0; border-radius: 18%; }

.hero-laptop__key.is-lit,
.hero-laptop__key:active {
  background: rgba(201, 188, 86, 0.42);
  box-shadow:
    0 0 10px rgba(201, 188, 86, 0.75),
    0 0 18px rgba(201, 188, 86, 0.35),
    inset 0 0 6px rgba(255, 248, 200, 0.35);
  transform: translateY(2%);
}

.hero-laptop__trackpad {
  position: absolute;
  left: 31.5%;
  top: 82.2%;
  width: 37%;
  height: 12.8%;
  z-index: 2;
  border: 0;
  padding: 0;
  border-radius: 4% / 6%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.hero-laptop__trackpad.is-lit,
.hero-laptop__trackpad:active {
  background: rgba(201, 188, 86, 0.18);
  box-shadow:
    0 0 16px rgba(201, 188, 86, 0.45),
    inset 0 0 10px rgba(255, 248, 200, 0.2);
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .hero--laptop {
    min-height: auto !important;
    padding: calc(var(--nav-h, 64px) + 0.25rem) 0.5rem 0.55rem !important;
  }

  .hero-laptop {
    width: min(78vw, 300px, calc((100vh - var(--nav-h, 64px) - 5.5rem) * 1.1316));
    width: min(78vw, 300px, calc((100dvh - var(--nav-h, 64px) - 5.5rem) * 1.1316));
  }

  .hero--laptop .hero-stats {
    display: none !important;
  }

  .hero--laptop .hero-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 400px) {
  .hero--laptop .hero-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-laptop,
  .hero--laptop .hero-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-laptop__key,
  .hero-laptop__trackpad {
    transition: none !important;
  }
}

.hero-visual--desktop img {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale {
  transform: translateY(36px) scale(0.96);
}

.reveal-scale.is-visible {
  transform: translateY(0) scale(1);
}

.section-tag::before,
.hero-tag::before {
  display: block;
  content: '';
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ── Global glass buttons (clear + yellow-tinted) ── */
.btn-primary,
.btn-dark,
.btn-ghost,
.nav-cta,
.submit-btn,
.filter-btn,
.service-cta,
.portfolio-more,
.sldn-modal__btn,
.sldn-modal__btn--primary,
.sldn-modal__btn--ghost,
.sldn-modal__close,
.modal-close,
.advisor-form button,
.advisor-chips button,
.advisor-msg-actions a,
.pkg-tabs [data-pkg-tab],
.home-block-cta a,
.pick-card__cta,
.advisor-fixed-trigger {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

.floating-contact {
  overflow: visible;
  isolation: isolate;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
}

/* Clear glass */
.btn-ghost,
.sldn-modal__btn--ghost,
.filter-btn:not(.active),
.service-cta,
.portfolio-more,
.sldn-modal__close,
.modal-close,
.pkg-tabs [data-pkg-tab]:not(.is-active),
.advisor-msg-actions a,
.advisor-chips button {
  color: var(--white) !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(255, 255, 255, 0.14) 100%),
    url("../images/ui/glass-sheen.png") !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: 0 0, center !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Yellow glass */
.btn-primary,
.btn-dark,
.nav-cta,
.submit-btn,
.sldn-modal__btn--primary,
.advisor-form button,
.filter-btn.active,
.pkg-tabs [data-pkg-tab].is-active,
.pick-card__cta,
.home-block-cta a,
.floating-contact,
.advisor-fixed-trigger {
  color: var(--accent-on) !important;
  border: 1px solid rgba(255, 240, 160, 0.55) !important;
  background-color: rgba(201, 188, 86, 0.55) !important;
  background-image:
    linear-gradient(155deg, rgba(255, 250, 200, 0.55) 0%, rgba(201, 188, 86, 0.35) 42%, rgba(180, 168, 70, 0.45) 100%),
    url("../images/ui/glass-sheen.png") !important;
  background-size: auto, cover !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: 0 0, center !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 6px rgba(60, 50, 10, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.25),
    0 0 20px rgba(201, 188, 86, 0.18);
  text-shadow: 0 1px 0 rgba(255, 248, 200, 0.2);
}

.btn-primary:hover,
.btn-dark:hover,
.nav-cta:hover,
.submit-btn:hover,
.sldn-modal__btn--primary:hover,
.advisor-form button:hover,
.filter-btn.active:hover,
.pkg-tabs [data-pkg-tab].is-active:hover,
.home-block-cta a:hover,
.floating-contact:hover,
.advisor-fixed-trigger:hover,
.btn-ghost:hover,
.sldn-modal__btn--ghost:hover,
.filter-btn:not(.active):hover,
.service-cta:hover,
.portfolio-more:hover,
.sldn-modal__close:hover,
.modal-close:hover,
.pkg-tabs [data-pkg-tab]:not(.is-active):hover,
.advisor-chips button:hover,
.advisor-msg-actions a:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn-primary::before,
.btn-dark::before,
.btn-ghost::before,
.nav-cta::before,
.submit-btn::before,
.filter-btn::before,
.service-cta::before,
.portfolio-more::before,
.sldn-modal__btn::before,
.sldn-modal__btn--primary::before,
.sldn-modal__btn--ghost::before,
.sldn-modal__close::before,
.modal-close::before,
.advisor-form button::before,
.advisor-chips button::before,
.advisor-msg-actions a::before,
.pkg-tabs [data-pkg-tab]::before,
.home-block-cta a::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 38%;
  top: 0;
  height: 42%;
  border-radius: 0 0 45% 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent);
  pointer-events: none;
}

.btn-primary::after,
.btn-dark::after,
.btn-ghost::after,
.nav-cta::after,
.submit-btn::after,
.filter-btn::after,
.service-cta::after,
.portfolio-more::after,
.sldn-modal__btn::after,
.sldn-modal__btn--primary::after,
.sldn-modal__btn--ghost::after,
.sldn-modal__close::after,
.modal-close::after,
.advisor-form button::after,
.advisor-chips button::after,
.advisor-msg-actions a::after,
.pkg-tabs [data-pkg-tab]::after,
.home-block-cta a::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 48%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::after,
.btn-dark:hover::after,
.btn-ghost:hover::after,
.nav-cta:hover::after,
.submit-btn:hover::after,
.filter-btn:hover::after,
.service-cta:hover::after,
.portfolio-more:hover::after,
.sldn-modal__btn:hover::after,
.sldn-modal__btn--primary:hover::after,
.sldn-modal__btn--ghost:hover::after,
.sldn-modal__close:hover::after,
.modal-close:hover::after,
.advisor-form button:hover::after,
.advisor-chips button:hover::after,
.advisor-msg-actions a:hover::after,
.pkg-tabs [data-pkg-tab]:hover::after,
.home-block-cta a:hover::after {
  transform: translateX(130%);
}

/* Glass on paper / light surfaces */
.sldn-modal__actions .btn-ghost,
.sldn-modal__btn--ghost,
.sldn-modal__actions .btn-primary,
.checkout-card .btn-ghost,
.checkout-main__browse,
.checkout-empty .btn-ghost,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .filter-btn:not(.active) {
  color: var(--card-ink, #241f18) !important;
  border-color: rgba(48, 40, 28, 0.28) !important;
}

.sldn-modal__actions .btn-ghost,
.sldn-modal__btn--ghost,
.checkout-card .btn-ghost,
.checkout-main__browse,
.checkout-empty .btn-ghost,
[data-theme="light"] .btn-ghost,
[data-theme="light"] .filter-btn:not(.active) {
  background-color: rgba(255, 255, 255, 0.4) !important;
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.2) 45%, rgba(255, 255, 255, 0.42) 100%),
    url("../images/ui/glass-sheen.png") !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -1px 0 rgba(40, 30, 10, 0.08),
    0 6px 18px rgba(40, 30, 10, 0.1);
}

.sldn-modal__actions .btn-primary,
.sldn-modal__btn--primary,
.checkout-empty .btn-primary {
  background-color: rgba(201, 188, 86, 0.72) !important;
}

/* Shatter effect — always above modals */
.sldn-shattering {
  visibility: hidden !important;
  pointer-events: none !important;
}

.sldn-shatter-layer {
  position: fixed !important;
  z-index: 2147483000 !important;
  pointer-events: none !important;
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
}

.sldn-shatter-layer:not(.sldn-shatter-layer--clipped) {
  inset: 0 !important;
}

.sldn-shatter-layer--clipped {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  overflow: hidden !important;
  z-index: 40 !important;
  border-radius: inherit;
}

.sldn-shatter-layer--clipped .sldn-shatter-shard,
.sldn-shatter-layer--clipped .sldn-shatter-crack {
  position: absolute !important;
}

.sldn-shatter-shard {
  position: fixed;
  box-sizing: border-box;
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.sldn-shatter-shard.is-glass {
  background-color: rgba(220, 230, 240, 0.55);
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.12)),
    url("../images/ui/glass-sheen.png");
  background-size: auto, cover;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.sldn-shatter-shard.is-glass-yellow {
  background-color: rgba(201, 188, 86, 0.7);
  background-image:
    linear-gradient(145deg, rgba(255, 250, 200, 0.75), rgba(201, 188, 86, 0.35)),
    url("../images/ui/glass-sheen.png");
  background-size: auto, cover;
  border: 1px solid rgba(255, 240, 170, 0.75);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.sldn-shatter-crack {
  position: fixed;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, 0.85) 49%, transparent 52%),
    linear-gradient(55deg, transparent 44%, rgba(20, 16, 6, 0.75) 50%, transparent 56%),
    linear-gradient(160deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .sldn-shatter-shard,
  .sldn-shatter-crack {
    display: none !important;
  }
}

.page-hero .inner {
  background: var(--surface-glass);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem !important;
  box-shadow: var(--shadow-lg);
  backdrop-filter: none;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 90% at 85% 50%, rgba(201, 188, 86, 0.14), transparent 65%);
  pointer-events: none;
}

footer {
  background: rgba(14, 14, 18, 0.88) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 900px) {
  .psych-steps { grid-template-columns: 1fr !important; }
  .services-grid { grid-template-columns: 1fr !important; }
}

a.btn-primary,
a.btn-ghost,
a.btn-dark {
  display: inline-block;
  text-decoration: none;
}

/* Galactic page transitions */

.page-transition {
  position: fixed;
  /* Keep the global nav outside the warp so it never looks like a full reload */
  top: var(--nav-h, 64px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99950;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: rgba(8, 8, 12, 0.28);
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-transition-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-transition-nebula {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 50%, rgba(201, 188, 86, 0.3) 0%, rgba(120, 90, 200, 0.14) 22%, transparent 52%),
    radial-gradient(circle at 30% 60%, rgba(80, 120, 200, 0.12) 0%, transparent 45%);
  opacity: 0;
  transform: scale(0.4);
  filter: blur(12px);
  transition: opacity 1.1s ease, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-transition.is-out.is-warping .page-transition-nebula {
  opacity: 0.55;
  transform: scale(1.45);
}

/* Enter = exact reverse of leave */
.page-transition.is-in .page-transition-nebula {
  opacity: 0.55;
  transform: scale(1.45);
  transition: none;
}

.page-transition.is-in.is-warping .page-transition-nebula {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 1.1s ease, transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
}

#app-view {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 40vh;
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 0.14s ease;
}

#app-view.is-route-leave {
  opacity: 0;
  pointer-events: none;
}

#app-view.is-route-enter {
  opacity: 0;
}

/* Soft SPA nav: never hide or animate the global chrome */
html.sldn-shell-nav nav,
html.sldn-shell nav {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: none !important;
  transform: none !important;
}

/* Kill the old full-page warp during soft shell navigation */
html.sldn-shell-nav .page-transition,
html.sldn-shell.sldn-shell-nav body.page-transitioning-out #app-view,
html.sldn-shell.sldn-shell-nav body.page-transitioning-in #app-view,
html.sldn-shell.sldn-shell-nav body.page-transitioning-hold #app-view {
  display: none !important;
}

body.page-transitioning-out #app-view,
body.page-transitioning-hold #app-view {
  transform: scale(0.92);
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

body.page-transitioning-hold #app-view {
  transition: none;
}

body.page-transitioning-in #app-view {
  transform: scale(1);
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

html.page-transition-pending #app-view {
  opacity: 0;
  transform: scale(0.96);
  filter: blur(5px);
}

html.page-transition-pending .floating-contact,
html.page-transition-pending .advisor-fixed,
html.page-transition-pending nav {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Viewport pins — always on screen, never at page bottom */
nav,
.floating-contact,
.advisor-fixed {
  position: fixed !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

nav {
  z-index: 99980 !important;
}

/* FABs sit under nav / login / cart so they slide underneath when dragged */
.floating-contact,
.advisor-fixed {
  z-index: 40 !important;
}

.advisor-fixed.is-open {
  z-index: 45 !important;
}

.sldn-modal {
  position: fixed !important;
  z-index: 100000 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

.modal-overlay,
#projectModal {
  position: fixed !important;
  z-index: 100100 !important;
  transform: none !important;
  filter: none !important;
  animation: none !important;
}

/* Hide global chrome while portfolio demo modal is open */
body.project-modal-open nav,
body.project-modal-open nav .logo,
body.project-modal-open .floating-contact,
body.project-modal-open .advisor-fixed,
body.project-modal-open .nav-cart {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

nav {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  /* Above page warp; below cart drawer / modals */
  z-index: 99980 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Soft-nav: only the page body transitions; nav stays put */
body.page-transitioning-out nav,
body.page-transitioning-in nav,
body.page-transitioning-hold nav,
html.page-transition-pending nav {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: none !important;
  transform: none !important;
}

.floating-contact,
.advisor-fixed {
  pointer-events: auto !important;
}

.floating-contact {
  position: fixed !important;
  bottom: 1.25rem !important;
  left: 1.25rem !important;
  right: auto !important;
  top: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.advisor-fixed {
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  left: auto !important;
  top: auto !important;
  pointer-events: none !important;
}

.advisor-fixed-trigger,
.advisor-fixed-bubble {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.advisor-fixed > * {
  pointer-events: auto !important;
}

.advisor-fixed-panel {
  transform: translateY(12px) scale(0.97);
}

.advisor-fixed.is-open .advisor-fixed-panel {
  transform: translateY(0) scale(1) !important;
}

.fab-restore--contact {
  left: 0 !important;
  right: auto !important;
  bottom: 1.25rem !important;
  top: auto !important;
}

.fab-restore--advisor {
  right: 0 !important;
  left: auto !important;
  bottom: 1.25rem !important;
  top: auto !important;
}

@media (max-width: 767px) and (orientation: portrait) {
  nav {
    top: auto !important;
    bottom: 0 !important;
    z-index: 99980 !important;
  }

  nav .logo {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    z-index: 99981 !important;
    transform: none !important;
    filter: none !important;
  }

  nav .nav-links a .nav-icon {
    width: 2.75rem !important;
    height: 2.75rem !important;
    object-fit: contain !important;
    display: block !important;
  }

  nav .nav-inner {
    min-height: 4.35rem !important;
    padding-top: 0.4rem !important;
  }

  .floating-contact,
  .advisor-fixed,
  .fab-restore {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
  }

  .floating-contact {
    left: 0.75rem !important;
    right: auto !important;
  }

  .advisor-fixed {
    right: 0.75rem !important;
    left: auto !important;
  }

  .home-service-icon,
  .pick-grid--home .home-service-icon {
    width: 4.75rem !important;
    height: 4.75rem !important;
  }

  .service-icon {
    width: 5.5rem !important;
    height: 5.5rem !important;
  }
}

@keyframes pageContentIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 767px) {
  .ambient-glow {
    opacity: 0.45;
  }

  .ambient-grid {
    opacity: 0.3;
  }

  /*
    Mobile Safari/Chrome often softens card contents when backdrop-filter
    sits over the animated ambient layer. Drop glass blur and use solid paper.
  */
  .services,
  .process,
  .psychology,
  .pricing,
  .portfolio,
  .testimonials,
  .industries,
  .contact,
  .about,
  .difference,
  .cta-band,
  .home-block,
  .process-menu,
  .about-gazette,
  .signin-page,
  .account-page,
  .legal-page,
  .admin-page,
  .marquee-section,
  footer {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(18, 18, 24, 0.92) !important;
  }

  html[data-theme='light'] .services,
  html[data-theme='light'] .process,
  html[data-theme='light'] .psychology,
  html[data-theme='light'] .pricing,
  html[data-theme='light'] .portfolio,
  html[data-theme='light'] .testimonials,
  html[data-theme='light'] .industries,
  html[data-theme='light'] .contact,
  html[data-theme='light'] .about,
  html[data-theme='light'] .difference,
  html[data-theme='light'] .cta-band,
  html[data-theme='light'] .home-block,
  html[data-theme='light'] .process-menu,
  html[data-theme='light'] .about-gazette,
  html[data-theme='light'] .signin-page,
  html[data-theme='light'] .account-page,
  html[data-theme='light'] .legal-page,
  html[data-theme='light'] .admin-page,
  html[data-theme='light'] .marquee-section,
  html[data-theme='light'] footer {
    background: rgba(240, 242, 245, 0.96) !important;
  }

  .service-card,
  .psych-step,
  .pricing-card,
  .process-step,
  .diff-card,
  .team-card,
  .project-card,
  .pick-card,
  .testimonial-card,
  .mission-item,
  .home-price-card,
  .checkout-card,
  .checkout-empty,
  .review-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: #e6dfd0 !important;
    isolation: auto;
  }

  .service-card::before,
  .pricing-card::before,
  .process-step::before,
  .psych-step::before,
  .diff-card::before,
  .team-card::before,
  .testimonial-card::before,
  .mission-item::before,
  .home-price-card::before,
  .pick-card::before,
  .checkout-card::before,
  .checkout-empty::before {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-nebula,
  .ambient-glow,
  .marquee-track {
    animation: none !important;
  }

  .hero-content > *,
  .hero-visual--desktop img {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .page-transition-canvas {
    display: none;
  }

  .page-transition.is-active {
    transition: opacity 0.2s ease;
  }

  body.page-transitioning-out #app-view,
  body.page-transitioning-in #app-view,
  body.page-transitioning-hold #app-view {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* ===== GLOBAL DESKTOP NAV — same as Home on every page ===== */
@media (min-width: 768px) {
  :root {
    --nav-h: 64px !important;
  }

  nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    display: block !important;
    padding: 0 !important;
    min-height: 64px !important;
    height: auto !important;
    transform: none !important;
    filter: none !important;
  }

  nav .nav-inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0.7rem clamp(1.5rem, 4vw, 3.5rem) !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 2.5rem !important;
    box-sizing: border-box !important;
  }

  nav .logo {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  nav .logo img {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
    max-width: 180px !important;
  }

  nav .nav-links {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto !important;
    gap: 2.25rem !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  nav .nav-links li {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    display: list-item !important;
    width: auto !important;
  }

  nav .nav-links a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    line-height: 1.2 !important;
    padding: 0 !important;
    white-space: nowrap !important;
  }

  nav .nav-links a .ti {
    display: inline-block !important;
    font-size: 1.15rem !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
  }

  nav .nav-links a .nav-icon {
    display: block !important;
    width: 2.25rem !important;
    height: 2.25rem !important;
    object-fit: contain !important;
  }
}
