:root {
  /* Apple-like: clean whites + subtle grays + system typography */
  --bg: #ffffff;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f5f7;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --primary: #0071e3; /* Apple blue */
  --primary-strong: #0066cc;
  --accent: #0071e3;
  --accent-strong: #0066cc;
  --stroke: rgba(0, 0, 0, 0.12);
  --stroke-strong: rgba(0, 0, 0, 0.18);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.10);
  --radius: 18px;
  --radius-sm: 14px;
  /* Liquid glass: translucent surface + iOS-style vibrancy (needs non-flat body backdrop) */
  --liquid-filter: saturate(180%) blur(42px);
  --liquid-filter-tight: saturate(170%) blur(28px);
  --liquid-surface: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78) 0%,
    rgba(255, 255, 255, 0.42) 42%,
    rgba(252, 252, 253, 0.26) 100%
  );
  --liquid-surface-strong: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.34) 100%
  );
  --liquid-border: 1px solid rgba(255, 255, 255, 0.62);
  --liquid-border-outer: 1px solid rgba(0, 0, 0, 0.06);
  --liquid-rim: 0 1px 0 rgba(255, 255, 255, 0.95) inset, 0 0 0 0.5px rgba(0, 0, 0, 0.04) inset;
  --liquid-outer: 0 40px 90px rgba(0, 0, 0, 0.13), 0 4px 18px rgba(0, 0, 0, 0.06);
  --liquid-outer-card: 0 28px 56px rgba(0, 0, 0, 0.11), 0 2px 10px rgba(0, 0, 0, 0.05);
  --glass: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.68);
  --glass-stroke: rgba(255, 255, 255, 0.55);
  --glass-shadow: var(--liquid-outer-card);
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 28px);
  --space: clamp(16px, 2.2vw, 28px);
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Liquid glass surface utility (class + shared look with nav/cards) */
.glass {
  position: relative;
  isolation: isolate;
  background: var(--liquid-surface);
  border: var(--liquid-border);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  backdrop-filter: var(--liquid-filter);
  -webkit-backdrop-filter: var(--liquid-filter);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(120% 55% at 12% -8%, rgba(255, 255, 255, 0.95), transparent 52%),
    radial-gradient(90% 50% at 92% 0%, rgba(255, 255, 255, 0.45), transparent 55%),
    radial-gradient(70% 45% at 50% 108%, rgba(0, 113, 227, 0.06), transparent 45%);
  mix-blend-mode: soft-light;
  opacity: 0.9;
}

.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 38%,
    rgba(0, 0, 0, 0.04) 100%
  );
  opacity: 0.45;
}

.glass > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-transparency: reduce) {
  .glass,
  .topbar,
  .topbar.shrink,
  .submenu,
  .hero-panel,
  .card,
  .calc-pkg-inner,
  .calc-result,
  .faq-item,
  .cta-strip,
  .nav-links.open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface-soft);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
  }

  .glass::before,
  .glass::after {
    display: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .topbar,
  .topbar.shrink,
  .submenu,
  .hero-panel,
  .card,
  .calc-pkg-inner,
  .calc-result,
  .faq-item,
  .cta-strip,
  .nav-links.open {
    background: rgba(245, 245, 247, 0.96);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
  }

  .glass::before,
  .glass::after {
    display: none;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body), "Segoe UI", Roboto, Arial, sans-serif;
  background-color: #e4e6ea;
  color: var(--text);
  line-height: 1.65;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

/* Smooth handoff: let the loader fade to reveal content */

/* =========================================================
   Page loader (wow) — injected by js/script.js
   ========================================================= */

#page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  background: rgba(228, 230, 234, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  backdrop-filter: saturate(180%) blur(26px);
  opacity: 1;
  transition: opacity 320ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

#page-loader.done {
  opacity: 0;
  pointer-events: none;
}

#page-loader.done .loader-rain {
  opacity: 0;
  transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

#page-loader .loader-glass {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(1000px 640px at 18% 22%, rgba(0, 113, 227, 0.16), transparent 55%),
    radial-gradient(880px 560px at 82% 18%, rgba(88, 86, 214, 0.12), transparent 58%),
    radial-gradient(820px 520px at 50% 92%, rgba(0, 113, 227, 0.10), transparent 55%);
  opacity: 0.8;
  filter: blur(0px);
}

#page-loader .loader-rain {
  position: absolute;
  inset: -10%;
  pointer-events: none;
  opacity: 0.72;
  mix-blend-mode: overlay;
  background:
    radial-gradient(10px 16px at 12% 18%, rgba(255,255,255,0.34), transparent 60%),
    radial-gradient(12px 18px at 28% 64%, rgba(255,255,255,0.26), transparent 62%),
    radial-gradient(9px 14px at 44% 36%, rgba(255,255,255,0.30), transparent 62%),
    radial-gradient(14px 20px at 62% 22%, rgba(255,255,255,0.22), transparent 62%),
    radial-gradient(10px 16px at 76% 58%, rgba(255,255,255,0.28), transparent 62%),
    radial-gradient(12px 18px at 88% 34%, rgba(255,255,255,0.24), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.10), transparent 45%, rgba(0,0,0,0.04));
  filter: blur(0.2px);
  transform: translateY(-14px);
  animation: rainSlide 1s ease-in-out infinite;
}

#page-loader .loader-rain::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(18px 12px at 20% 22%, rgba(255,255,255,0.18), transparent 66%),
    radial-gradient(22px 14px at 56% 46%, rgba(255,255,255,0.14), transparent 66%),
    radial-gradient(20px 13px at 78% 70%, rgba(255,255,255,0.16), transparent 66%);
  opacity: 0.9;
  transform: translateY(12px);
  animation: rainSlide2 1s ease-in-out infinite;
}

#page-loader .loader-center {
  position: relative;
  width: min(520px, 92vw);
  height: min(520px, 92vw);
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  display: grid;
  place-items: center;
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  animation: loaderIn 380ms cubic-bezier(0.16, 1, 0.3, 1) 10ms both;
  will-change: opacity, transform;
}

#page-loader .loader-logo {
  width: min(440px, 86vw);
  max-height: min(200px, 28vh);
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateZ(0);
  filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.28));
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  animation: logoPop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: opacity, transform;
}

#page-loader.done .loader-logo {
  opacity: 0;
  transform: translateY(-2px) scale(0.995);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes logoPop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.985); filter: drop-shadow(0 10px 22px rgba(0,0,0,0.22)); }
  55%  { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: drop-shadow(0 22px 48px rgba(0, 0, 0, 0.28)); }
}

@keyframes rainSlide {
  0% { transform: translateY(-18px); }
  100% { transform: translateY(18px); }
}

@keyframes rainSlide2 {
  0% { transform: translateY(18px); }
  100% { transform: translateY(-18px); }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep loader visible, but remove motion */
  #page-loader .loader-rain { display: none; }
  #page-loader .loader-center,
  #page-loader .loader-logo { animation: none !important; opacity: 1 !important; transform: none !important; }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(1300px 820px at -8% -12%, rgba(0, 113, 227, 0.14), transparent 55%),
    radial-gradient(1000px 640px at 108% 4%, rgba(88, 86, 214, 0.1), transparent 52%),
    radial-gradient(900px 520px at 50% 118%, rgba(0, 113, 227, 0.07), transparent 50%),
    linear-gradient(168deg, #fbfbfd 0%, #eef0f5 38%, #e2e4e9 100%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 7vw, 108px) 0;
  border-top: 1px solid rgba(28, 25, 23, 0.08);
}

.section:nth-of-type(2n) {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.02), transparent);
}

.section-title {
  font-size: clamp(2.1rem, 3.8vw, 3.6rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.section-subtitle {
  color: var(--text-soft);
  margin: 0;
  max-width: 700px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.82rem 1.2rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(245, 245, 247, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.16);
  background: rgba(245, 245, 247, 1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 999;
  isolation: isolate;
  -webkit-backdrop-filter: var(--liquid-filter);
  backdrop-filter: var(--liquid-filter);
  background: var(--liquid-surface);
  border-bottom: var(--liquid-border-outer);
  box-shadow: var(--liquid-rim), 0 18px 48px rgba(0, 0, 0, 0.08);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.topbar.shrink {
  background: var(--liquid-surface-strong);
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: var(--liquid-rim), var(--liquid-outer);
}

.nav {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

.topbar.shrink .nav {
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 0;
}

.brand img {
  height: 60px;
  width: auto;
  max-width: min(280px, 70vw);
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item.has-submenu {
  z-index: 1002;
}

.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-parent:hover,
.nav-parent[aria-expanded="true"],
.nav-parent.active {
  color: var(--text);
}

.nav-caret {
  width: 12px;
  height: 12px;
  opacity: 0.8;
}

.submenu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  isolation: isolate;
  background: var(--liquid-surface);
  border: var(--liquid-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  -webkit-backdrop-filter: var(--liquid-filter-tight);
  backdrop-filter: var(--liquid-filter-tight);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  z-index: 1300;
}

.submenu a {
  padding: 0.7rem 0.8rem;
  border-radius: 2px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.2;
}

.submenu a:hover,
.submenu a.active {
  background: rgba(28, 25, 23, 0.03);
  color: var(--accent);
}

/* Submenu: click (data-open) or keyboard focus inside item */
.nav-item.has-submenu[data-open="true"] .submenu,
.nav-item.has-submenu:focus-within .submenu {
  display: flex;
}

.nav-item.has-submenu[data-open="true"] .nav-caret,
.nav-item.has-submenu:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-caret {
  transition: transform 0.15s ease;
}

.nav-cta {
  margin-left: 0.3rem;
  padding: 0.7rem 0.95rem;
  font-size: 0.88rem;
  align-self: center;
  line-height: 1;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

/* Ensure CTA buttons inside nav keep button contrast */
.nav-links a.btn {
  letter-spacing: 0.02em;
  text-transform: none;
}

.nav-links a.btn-primary {
  color: #fffefb;
}

.nav-links a.btn-secondary {
  color: var(--text);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--stroke);
  color: var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.menu-toggle .icon-close {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.hero {
  padding: clamp(72px, 8vw, 120px) 0 clamp(48px, 6vw, 86px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 3.2vw, 48px);
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 0 0 1rem;
}

.hero p {
  color: var(--text-soft);
  margin: 0 0 1.5rem;
  max-width: 60ch;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-proof {
  margin: 1rem 0 0;
  color: var(--accent);
  font-size: 0.92rem;
}

.hero-footnote {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(28, 25, 23, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.hero-panel {
  isolation: isolate;
  background: var(--liquid-surface);
  border: var(--liquid-border);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  -webkit-backdrop-filter: var(--liquid-filter);
  backdrop-filter: var(--liquid-filter);
  position: relative;
  overflow: hidden;
  margin-top: 0;
  align-self: start;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(95% 50% at 10% -5%, rgba(255, 255, 255, 0.85), transparent 55%);
  mix-blend-mode: soft-light;
  opacity: 0.75;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel::after {
  content: none;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.metric-card {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-left: 3px solid rgba(28, 25, 23, 0.16);
  border-radius: var(--radius-sm);
  padding: 0.95rem;
}

.metric-card strong {
  font-size: 1.4rem;
  display: block;
  color: var(--text);
}

.card-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.card {
  grid-column: span 4;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10), 0 2px 10px rgba(0, 0, 0, 0.06);
}

.card.featured {
  overflow: visible;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.12), 0 4px 14px rgba(0, 0, 0, 0.06);
}

@media (max-width: 980px) {
  .card { grid-column: span 6; }
}

@media (max-width: 640px) {
  .card { grid-column: span 12; }
}

/* Headshots: initials fallback or <img class="headshot-img"> */
.headshot {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: linear-gradient(180deg, rgba(164, 61, 30, 0.08), rgba(28, 25, 23, 0.02));
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.headshot--sm {
  width: 64px;
  height: 64px;
  font-size: 1.05rem;
}

.person-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.person-intro .eyebrow {
  display: block;
  margin-bottom: 0.5rem;
}

.person-intro .section-title {
  margin-top: 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-head .section-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
}

@media (max-width: 560px) {
  .person-intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .person-intro .eyebrow {
    margin-bottom: 0.4rem;
  }
}

.featured {
  border-color: rgba(0, 113, 227, 0.22);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 113, 227, 0.08) inset;
  position: relative;
}

.featured::before {
  content: "Më e kërkuara";
  position: absolute;
  top: -12px;
  right: 16px;
  z-index: 2;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  color: #fffefb;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  box-shadow: 0 14px 28px rgba(164, 61, 30, 0.22);
}

.card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.card p {
  margin: 0;
  color: var(--text-soft);
}

.price {
  margin: 0.35rem 0 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-soft);
}

.list li::before {
  content: "";
  width: 10px;
  height: 2px;
  background: rgba(164, 61, 30, 0.45);
  position: absolute;
  left: 0;
  top: 0.52rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.portfolio-card .btn {
  margin-top: auto;
}

.portfolio-image {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  filter: saturate(1.02) contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: none;
  filter: saturate(1.04) contrast(1.02) brightness(1.01);
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.12);
}

.badge {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(29, 29, 31, 0.78);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cta-strip {
  margin-top: 1.5rem;
  isolation: isolate;
  background: var(--liquid-surface);
  border: var(--liquid-border);
  border-radius: var(--radius);
  padding: 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  -webkit-backdrop-filter: var(--liquid-filter-tight);
  backdrop-filter: var(--liquid-filter-tight);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
}

.trust-strip {
  padding: 2.4rem 0;
}

.trust-strip p {
  margin: 0 0 0.9rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-items span {
  border: 1px solid var(--stroke);
  padding: 0.35rem 0.65rem;
  font-size: 0.84rem;
  color: var(--text);
  background: rgba(28, 25, 23, 0.03);
  letter-spacing: 0.02em;
}

.plan-meta {
  margin: 0.6rem 0 0.8rem !important;
  font-size: 0.87rem;
  color: var(--accent) !important;
}

.compare-row {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.compare-row span {
  border: 1px solid var(--stroke);
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.process-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* Numbered stepper */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(28, 25, 23, 0.18), transparent);
  z-index: 0;
}

.steps > li {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  border: 1px solid var(--stroke);
  padding: 1.35rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid rgba(28, 25, 23, 0.14);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.steps h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--text-soft);
}



/* Homepage conversion upgrades */
.hero h1 {
  max-width: 11ch;
}

.hero-panel strong {
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.65rem;
}

.portfolio-showcase {
  align-items: stretch;
}

.site-mockup {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--bg-elev), var(--surface-soft));
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.12);
  overflow: hidden;
  margin-bottom: 1.2rem;
}

.mockup-browser {
  display: flex;
  gap: 0.35rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
  background: rgba(28, 25, 23, 0.02);
}

.mockup-browser span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.14);
}

.mockup-screen {
  position: relative;
  padding: 1rem;
  min-height: 215px;
}

.mockup-nav,
.mockup-stats {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: rgba(75, 85, 99, 0.9);
  font-size: 0.72rem;
}

.mockup-hero-card {
  margin-top: 0.9rem;
  padding: 1rem;
  background: rgba(28, 25, 23, 0.02);
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.mockup-hero-card small {
  display: block;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.mockup-hero-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 0.95;
  margin-bottom: 0.4rem;
}

.mockup-hero-card p {
  margin: 0;
  color: rgba(75, 85, 99, 0.95);
  font-size: 0.78rem;
  line-height: 1.45;
}

.mockup-grid,
.mockup-columns,
.mockup-cta-row,
.mockup-stats {
  margin-top: 0.9rem;
}

.mockup-grid,
.mockup-columns,
.mockup-cta-row {
  display: grid;
  gap: 0.65rem;
}

.mockup-grid { grid-template-columns: repeat(3, 1fr); }
.mockup-grid.tall div { height: 48px; }
.mockup-columns { grid-template-columns: 1.2fr 0.8fr; }
.mockup-cta-row { grid-template-columns: 1fr 1fr; }
.mockup-stats { gap: 0.55rem; }

.mockup-grid div,
.mockup-columns div,
.mockup-cta-row span,
.mockup-form,
.mockup-stats span {
  height: 36px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: rgba(28, 25, 23, 0.02);
}

.mockup-form {
  margin-top: 0.75rem;
  height: 52px;
}

.mockup-scroll {
  transform: translateY(0);
  animation: mockScroll 6s ease-in-out infinite alternate;
}

.phone-mockup {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 92px;
  height: 176px;
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.08), rgba(28, 25, 23, 0.04));
  border: 1px solid rgba(28, 25, 23, 0.14);
  box-shadow: 0 18px 44px rgba(28, 25, 23, 0.10);
  padding: 9px;
}

.phone-screen {
  height: 100%;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: rgba(28, 25, 23, 0.02);
  padding: 0.65rem;
}

.phone-chip,
.phone-line,
.phone-card,
.phone-button {
  background: rgba(28, 25, 23, 0.03);
  border: 1px solid rgba(28, 25, 23, 0.08);
}

.phone-chip {
  width: 55%;
  height: 10px;
  margin-bottom: 0.5rem;
}

.phone-line {
  height: 10px;
  margin-bottom: 0.45rem;
}

.phone-line.short { width: 66%; }
.phone-card { height: 52px; margin-bottom: 0.5rem; }
.phone-card.small { height: 36px; }
.phone-button {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  transform: translateX(-50%);
  width: 52px;
  height: 14px;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

.hotel-mockup {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface-soft));
}

.clinic-mockup {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface-soft));
}

.tour-mockup {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface-soft));
}

/* === Pricing calculator (redesign) === */

.calc-wrap {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

/* Clickable package cards */
.calc-packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.calc-pkg {
  position: relative;
  cursor: pointer;
  display: block;
}

.calc-pkg input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.calc-pkg-inner {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.1rem 1.1rem;
  isolation: isolate;
  border: var(--liquid-border);
  border-radius: var(--radius-sm);
  background: var(--liquid-surface);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  -webkit-backdrop-filter: var(--liquid-filter-tight);
  backdrop-filter: var(--liquid-filter-tight);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}

.calc-pkg-inner:hover {
  border-color: rgba(28, 25, 23, 0.18);
}

.calc-pkg input:checked + .calc-pkg-inner {
  border-color: rgba(28, 25, 23, 0.18);
  box-shadow: var(--liquid-rim), 0 0 0 3px rgba(28, 25, 23, 0.08), var(--liquid-outer-card);
  transform: translateY(-2px);
}

.calc-pkg-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fffefb;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  padding: 0.18rem 0.52rem;
  margin-bottom: 0.2rem;
}

.calc-pkg-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}

.calc-pkg-price {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  margin-top: 0.25rem;
}

.calc-pkg-meta {
  font-size: 0.76rem;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* Add-on pill toggles */
.calc-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.calc-addon {
  font: inherit;
  cursor: pointer;
  position: relative;
  padding: 0.55rem 1rem;
  border: 1px solid var(--stroke);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.84rem;
  border-radius: 999px;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-addon em {
  font-style: normal;
  opacity: 0.55;
  font-size: 0.79rem;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.calc-addon:hover {
  border-color: rgba(28, 25, 23, 0.18);
  color: var(--accent);
}

.calc-addon.active {
  border-color: rgba(28, 25, 23, 0.16);
  background: rgba(164, 61, 30, 0.06);
  color: var(--accent);
}

.calc-addon.active em {
  opacity: 1;
  color: var(--accent);
}

/* Addon already included in selected package */
.calc-addon.included {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
  border-color: rgba(28, 25, 23, 0.12);
  background: rgba(28, 25, 23, 0.02);
  color: var(--text-soft);
}

.calc-addon.included em {
  opacity: 1;
  color: rgba(71, 85, 105, 0.9);
}

/* Tooltip on addon pills */
.calc-addon[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--stroke);
  border-bottom: 2px solid rgba(28, 25, 23, 0.14);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 200;
  transition: opacity 0.16s ease, transform 0.16s ease;
  box-shadow: 0 18px 50px rgba(28, 25, 23, 0.12);
}
.calc-addon[data-tooltip]:hover::before,
.calc-addon[data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .calc-addon[data-tooltip]::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-addon[data-tooltip]::before { transition: none; }
}

/* Total result bar */
.calc-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 1.15rem 1.4rem;
  isolation: isolate;
  border: var(--liquid-border);
  border-radius: var(--radius);
  background: var(--liquid-surface);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  -webkit-backdrop-filter: var(--liquid-filter);
  backdrop-filter: var(--liquid-filter);
}

.calc-total-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 110px;
}

.calc-total-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(71, 85, 105, 0.9);
}

.calc-total {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 600;
  line-height: 0.9;
  color: var(--text);
  display: block;
}

@keyframes calcBump {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.07); color: var(--primary); }
  100% { transform: scale(1); }
}

.calc-total.bump {
  animation: calcBump 0.22s ease;
}

.calc-note {
  flex: 1;
  min-width: 200px;
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.55;
}

.founder-video-wrap {
  margin-top: 1.5rem;
}

.video-placeholder {
  position: relative;
  min-height: 320px;
  display: grid;
  align-content: end;
  gap: 0.9rem;
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--bg-elev), var(--surface-soft));
}

.video-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #020617;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  padding: 0.35rem 0.55rem;
}

.video-play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.12);
  background: rgba(28, 25, 23, 0.02);
  font-size: 1.4rem;
}

.compact-steps {
  grid-template-columns: 1fr;
}

@keyframes mockScroll {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}


@media (max-width: 920px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }
}

.project-hero {
  padding: 4.5rem 0 2.6rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.4rem;
  align-items: start;
}

.project-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.project-meta .card {
  padding: 0.9rem;
}

.project-meta strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.faq {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  isolation: isolate;
  border: var(--liquid-border);
  border-radius: var(--radius);
  background: var(--liquid-surface);
  box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  -webkit-backdrop-filter: var(--liquid-filter-tight);
  backdrop-filter: var(--liquid-filter-tight);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-soft);
  padding: 0 1rem 1rem;
}

form {
  display: grid;
  gap: 0.8rem;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: rgba(164, 61, 30, 0.45);
  box-shadow: 0 0 0 3px rgba(164, 61, 30, 0.12);
  outline: none;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

label {
  font-size: 0.88rem;
  color: var(--text-soft);
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.45rem;
  accent-color: var(--primary);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.45;
}

.footer {
  border-top: 1px solid var(--stroke);
  margin-top: 4rem;
  padding: 2rem 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(186, 230, 253, 0.06);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.footer-legal a {
  color: var(--text-soft);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial avatar */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(186, 230, 253, 0.08);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #020617;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-meta strong {
  color: var(--text);
  font-size: 0.92rem;
}

.testimonial-meta span {
  color: var(--text-soft);
  font-size: 0.82rem;
}

/* Floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: rgba(255, 255, 255, 0.96);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(0, 0, 0, 0.10);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 55%);
  opacity: 0.55;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
  filter: saturate(1.05) brightness(1.02);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.16), 0 6px 18px rgba(0, 0, 0, 0.10);
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.55);
  outline-offset: 4px;
}

/* Reduced motion: honor user preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .btn-primary:hover,
  .card:hover,
  .portfolio-card:hover .portfolio-image,
  .wa-float:hover {
    transform: none;
  }
}

/* =========================================================
   Editorial polish pass — "wow" layer
   ========================================================= */

/* Smooth page-to-page transitions (Chromium 111+, Safari 18+) */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 260ms;
}

/* Branded text selection */
::selection {
  background: var(--accent);
  color: #fffefb;
}

/* Branded keyboard focus ring */
:focus-visible {
  outline: 2px solid rgba(164, 61, 30, 0.45);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Branded scrollbar (WebKit/Chromium) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(28, 25, 23, 0.22), rgba(28, 25, 23, 0.12));
  border: 2px solid var(--bg);
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
}

/* Subtle grain over the dark background (on top of the grid) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Editorial accent inside display headings */
.hero h1 em,
.section-title em {
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.025em;
}

/* Cursor spotlight on hero */
.hero {
  position: relative;
  overflow: hidden;
  --mx: 50%;
  --my: 40%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(
      520px circle at var(--mx) var(--my),
      rgba(0, 113, 227, 0.14) 0%,
      rgba(0, 113, 227, 0.05) 34%,
      transparent 60%
    );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.hero.spot-on::before {
  opacity: 1;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

/* Homepage hero "wow" (no overlay): kinetic headline + glass panel reveal */
.wow-headline .wow-word {
  display: inline-block;
  vertical-align: baseline;
  will-change: transform, opacity, filter;
}

html.wow-ready:not(.wow-play) #hero-spotlight .wow-headline .wow-word {
  opacity: 0;
  transform: translateY(18px) rotateX(14deg) scale(0.985);
  filter: blur(10px);
  transform-origin: 50% 85%;
}

html.wow-ready.wow-play #hero-spotlight .wow-headline .wow-word {
  animation: wowWordIn 820ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  animation-delay: calc(70ms + (var(--i) * 44ms));
}

html.wow-ready:not(.wow-play) #hero-spotlight .hero-panel {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  filter: blur(12px);
}

html.wow-ready.wow-play #hero-spotlight .hero-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 980ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms,
    transform 980ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms,
    filter 760ms cubic-bezier(0.2, 0.9, 0.2, 1) 120ms;
}

html.wow-ready:not(.wow-play) #hero-spotlight .metrics .metric-card {
  opacity: 0;
  transform: translateY(12px);
}

html.wow-ready.wow-play #hero-spotlight .metrics .metric-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

html.wow-ready.wow-play #hero-spotlight .metrics .metric-card:nth-child(1) {
  transition-delay: 220ms;
}
html.wow-ready.wow-play #hero-spotlight .metrics .metric-card:nth-child(2) {
  transition-delay: 300ms;
}
html.wow-ready.wow-play #hero-spotlight .metrics .metric-card:nth-child(3) {
  transition-delay: 380ms;
}
html.wow-ready.wow-play #hero-spotlight .metrics .metric-card:nth-child(4) {
  transition-delay: 460ms;
}

#hero-spotlight.hero::after {
  content: "";
  position: absolute;
  inset: -35% -25%;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 62%
  );
  transform: translateX(-18%) rotate(-8deg);
  mix-blend-mode: soft-light;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

html.wow-ready.wow-play #hero-spotlight.hero.hero-spotlight::after {
  animation: wowHeroSweep 1250ms ease 180ms both;
}

@keyframes wowWordIn {
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
    filter: blur(0);
  }
}

@keyframes wowHeroSweep {
  0% {
    opacity: 0;
    transform: translateX(-22%) rotate(-8deg);
  }
  35% {
    opacity: 0.75;
  }
  100% {
    opacity: 0;
    transform: translateX(18%) rotate(-8deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.wow-ready.wow-play #hero-spotlight .wow-headline .wow-word,
  html.wow-ready.wow-play #hero-spotlight .metrics .metric-card,
  html.wow-ready.wow-play #hero-spotlight.hero.hero-spotlight::after {
    animation: none !important;
    transition: none !important;
  }

  html.wow-ready.wow-play #hero-spotlight .hero-panel {
    transition: none !important;
  }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero::before {
    display: none;
  }
}

/* Stagger reveal delays inside grids/columns */
.card-grid > .reveal:nth-child(1),
.project-meta > .reveal:nth-child(1),
.two-col > .reveal:nth-child(1) { transition-delay: 0ms; }
.card-grid > .reveal:nth-child(2),
.project-meta > .reveal:nth-child(2),
.two-col > .reveal:nth-child(2) { transition-delay: 70ms; }
.card-grid > .reveal:nth-child(3),
.project-meta > .reveal:nth-child(3) { transition-delay: 140ms; }
.card-grid > .reveal:nth-child(4),
.project-meta > .reveal:nth-child(4) { transition-delay: 210ms; }
.card-grid > .reveal:nth-child(5) { transition-delay: 280ms; }
.card-grid > .reveal:nth-child(6) { transition-delay: 350ms; }

/* Device-chrome frame for portfolio + project covers */
.device-frame {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.device-frame::before {
  content: "";
  display: block;
  height: 26px;
  background: rgba(28, 25, 23, 0.03);
  border-bottom: 1px solid var(--stroke);
}

.device-frame::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 14px 0 0 #febc2e, 28px 0 0 #28c840;
  pointer-events: none;
}

.device-frame .portfolio-image,
.device-frame .project-cover {
  border: 0;
  display: block;
  width: 100%;
}

.portfolio-card:hover .device-frame {
  box-shadow: 0 18px 44px rgba(28, 25, 23, 0.14);
}

/* Centered gold ornament at section tops */
.section {
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(28, 25, 23, 0.14), transparent);
  pointer-events: none;
  box-shadow: none;
}

/* Mobile menu entry animation */
.nav-links.open {
  animation: menuSlideIn 0.22s ease both;
}

.nav-links.open a {
  animation: menuLinkIn 0.28s ease both;
}

.nav-links.open a:nth-child(1) { animation-delay: 40ms; }
.nav-links.open a:nth-child(2) { animation-delay: 80ms; }
.nav-links.open a:nth-child(3) { animation-delay: 120ms; }
.nav-links.open a:nth-child(4) { animation-delay: 160ms; }
.nav-links.open a:nth-child(5) { animation-delay: 200ms; }
.nav-links.open a:nth-child(6) { animation-delay: 240ms; }

@keyframes menuSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes menuLinkIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Honor reduced-motion for the new additions too */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  .nav-links.open,
  .nav-links.open a {
    animation: none;
  }
}

/* =========================================================
   End editorial polish pass
   ========================================================= */

@media (max-width: 920px) {
  .hero-grid,
  .two-col,
  .process-grid,
  .compare-row,
  .project-grid,
  .project-meta {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.3rem 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links.open {
    display: grid;
    gap: 0.5rem;
    position: absolute;
    top: 100%;
    margin-top: 0.35rem;
    right: 1rem;
    isolation: isolate;
    background: var(--liquid-surface-strong);
    border: var(--liquid-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    min-width: 200px;
    -webkit-backdrop-filter: var(--liquid-filter-tight);
    backdrop-filter: var(--liquid-filter-tight);
    box-shadow: var(--liquid-rim), var(--liquid-outer-card);
  }

  .nav-item {
    display: grid;
    gap: 0.35rem;
  }

  .submenu {
    position: static;
    min-width: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--liquid-rim);
    background: rgba(255, 255, 255, 0.35);
    padding: 0.35rem;
  }

  .nav-item.has-submenu:hover .submenu,
  .nav-item.has-submenu:focus-within .submenu {
    display: none;
  }

  .nav-item.has-submenu[data-open="true"] .submenu {
    display: flex;
  }

  .nav-parent {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0.1rem;
  }

  .wa-float {
    right: 0.8rem;
    bottom: 0.8rem;
    width: 52px;
    height: 52px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .brand {
    padding: 0;
  }

  .brand img {
    height: 42px;
    max-width: min(220px, 66vw);
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    line-height: 0.98;
  }

  .hero-panel {
    margin-top: 0;
  }

  .calc-packages {
    grid-template-columns: 1fr;
  }

  .calc-result {
    flex-direction: column;
    align-items: flex-start;
  }

  .founder-video-wrap {
    grid-template-columns: 1fr;
  }

  .phone-mockup {
    width: 78px;
    height: 148px;
  }

  .site-mockup {
    min-height: 240px;
  }
}

@media (max-width: 920px) and (prefers-reduced-transparency: reduce) {
  .nav-links.open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--surface-soft);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow);
  }
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--text-soft, #a8a9b2);
  letter-spacing: 0.02em;
}
.breadcrumbs a {
  color: var(--text-soft, #a8a9b2);
  text-decoration: none;
  transition: color 0.18s ease;
}
.breadcrumbs a:hover {
  color: var(--primary);
}
.breadcrumbs span[aria-current="page"] {
  color: rgba(28, 25, 23, 0.82);
}
.breadcrumbs span[aria-hidden="true"] {
  opacity: 0.55;
}

/* Portfolio card title (when it's an h2 wrapping a link) */
.portfolio-title {
  font-family: inherit;
  font-size: 1.35rem;
  margin: 0.3rem 0 0.5rem;
  line-height: 1.25;
}
.portfolio-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.portfolio-title a:hover {
  color: var(--primary);
}

/* Make portfolio cards' h3 anchor also inherit color */
.portfolio-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}
.portfolio-card h3 a:hover {
  color: var(--accent);
}
