/* ============================================================
   BRANVIA — Brand Scaling Agency
   Design system: ambient dark + glassmorphism
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:           #140e09;
  --bg-soft:      #1c150d;
  --bg-elev:      #241a10;

  --surface:      rgba(255, 248, 238, 0.055);
  --surface-2:    rgba(255, 248, 238, 0.09);
  --surface-3:    rgba(255, 248, 238, 0.13);
  --border:       rgba(255, 242, 228, 0.12);
  --border-2:     rgba(255, 242, 228, 0.20);

  --text:         #f9f5ed;
  --text-muted:   #bcb4a6;
  --text-dim:     #938a7b;

  --gold:         #f0cf8e;
  --gold-soft:    #f8e3b2;
  --gold-deep:    #cda259;
  --violet:       #8b7cf6;
  --violet-deep:  #5b4bd4;
  --cyan:         #6fd8c0;

  --grad-gold:    linear-gradient(135deg, #f8e3b2 0%, #f0cf8e 38%, #cda259 100%);
  --grad-text:    linear-gradient(100deg, #f9f5ed 0%, #f8e3b2 45%, #f0cf8e 70%, #f9f5ed 100%);

  --ring:         0 0 0 3px rgba(240, 207, 142, 0.40);
  --shadow-glass: 0 24px 60px -24px rgba(8, 4, 0, 0.7), inset 0 1px 0 0 rgba(255,245,232,0.07);
  --shadow-soft:  0 18px 50px -28px rgba(6, 3, 0, 0.8);

  --container:    1180px;
  --radius:       22px;
  --radius-sm:    14px;
  --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-serif:   "Playfair Display", Georgia, serif;
  --font-sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-numeric: "Space Grotesk", "Inter", system-ui, sans-serif;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }
::selection { background: rgba(240, 207, 142, 0.30); color: #fff; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ambient::after { /* grain — static overlay, no blend mode (cheaper to composite) */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.05;
}
.orb { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.55; will-change: transform; }
.orb-1 { width: 620px; height: 620px; top: -200px; left: -160px;
  background: radial-gradient(circle at 30% 30%, rgba(236,150,78,0.42), transparent 65%);
  animation: drift1 26s var(--ease) infinite; }
.orb-2 { width: 560px; height: 560px; top: 10%; right: -180px;
  background: radial-gradient(circle at 60% 40%, rgba(242,205,135,0.48), transparent 62%);
  animation: drift2 32s var(--ease) infinite; }
.orb-3 { width: 520px; height: 520px; bottom: -220px; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(220,112,84,0.32), transparent 64%);
  animation: drift3 30s var(--ease) infinite; }
.grid-overlay { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,238,214,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,238,214,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* translate-only drift — avoids re-rasterizing the blurred layer each frame */
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(80px,60px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-70px,50px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(50px,-60px); } }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: 24px; }
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(48px, 7vw, 84px) 0; }
main { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft);
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }

.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; color: var(--text); }
.display {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 6.4vw, 5.1rem);
  font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
}
.h-serif { font-family: var(--font-serif); font-weight: 500; }
h2.title { font-family: var(--font-serif); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 500; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-muted); line-height: 1.65; }
.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

.gold-text {
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
.gold-plain { color: var(--gold); }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(155deg, rgba(255,248,238,0.075), rgba(255,248,238,0.028));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
}
.glass-strong { background: var(--surface-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  padding: 14px 26px; border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn-primary {
  background: var(--grad-gold); color: #1a1306;
  box-shadow: 0 10px 30px -10px rgba(233,200,133,0.55), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(233,200,133,0.7), inset 0 1px 0 rgba(255,255,255,0.5); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--gold); font-size: 15px; transition: gap 0.25s var(--ease); }
.link-arrow svg { width: 17px; height: 17px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { gap: 12px; }

/* ---------- Navbar ---------- */
@keyframes navDrop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px 24px; transition: padding 0.3s var(--ease); animation: navDrop 0.7s var(--ease) both; }
.nav-wrap.scrolled { padding: 10px 24px; }
.nav {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 22px; border-radius: 999px;
  background: rgba(10, 10, 18, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-soft);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav-wrap.scrolled .nav { background: rgba(8, 8, 14, 0.78); box-shadow: 0 20px 50px -24px rgba(0,0,0,0.9); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-family: var(--font-serif); font-weight: 600; font-size: 21px; }
.brand-logo { height: clamp(24px, 3.4vw, 30px); width: auto; max-width: none; flex: none; display: block; }
.foot-brand .brand-logo { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  padding: 9px 16px; border-radius: 999px; transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); background: var(--surface-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .x { display: none; }
.nav-toggle[aria-expanded="true"] .menu { display: none; }
.nav-toggle[aria-expanded="true"] .x { display: block; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 108px 26px 40px;
  background: rgba(12, 8, 4, 0.4);
  backdrop-filter: blur(0px) saturate(100%); -webkit-backdrop-filter: blur(0px) saturate(100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease),
              background 0.5s var(--ease), backdrop-filter 0.55s var(--ease), -webkit-backdrop-filter 0.55s var(--ease);
}
.mobile-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  background: rgba(9, 6, 3, 0.88);
  backdrop-filter: blur(26px) saturate(150%); -webkit-backdrop-filter: blur(26px) saturate(150%);
}
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 6px; border-bottom: 1px solid var(--border);
  font-family: var(--font-serif); font-size: clamp(1.9rem, 8.5vw, 2.5rem); font-weight: 500; color: var(--text);
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.25s var(--ease);
}
.mm-links a svg { width: 22px; height: 22px; flex: none; color: var(--text-dim); transition: transform 0.3s var(--ease), color 0.25s var(--ease); }
.mm-links a.active { color: var(--gold); }
.mm-links a.active svg { color: var(--gold); transform: translateX(5px); }
.mobile-menu.open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.open .mm-links a:nth-child(1) { transition-delay: 0.12s, 0.12s, 0s; }
.mobile-menu.open .mm-links a:nth-child(2) { transition-delay: 0.18s, 0.18s, 0s; }
.mobile-menu.open .mm-links a:nth-child(3) { transition-delay: 0.24s, 0.24s, 0s; }
.mobile-menu.open .mm-links a:nth-child(4) { transition-delay: 0.30s, 0.30s, 0s; }
.mobile-menu.open .mm-links a:nth-child(5) { transition-delay: 0.36s, 0.36s, 0s; }
.mm-foot { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease) 0.42s, transform 0.55s var(--ease) 0.42s; }
.mobile-menu.open .mm-foot { opacity: 1; transform: none; }
.mm-foot .btn { width: 100%; }
.mm-contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; }
.mm-contact .mail { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color 0.2s var(--ease); }
.mm-contact .mail:hover { color: var(--gold); }
.mobile-menu a.btn-primary { color: #1a1306; font-family: var(--font-sans); font-weight: 600; font-size: 16px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(130px, 18vw, 180px); padding-bottom: clamp(60px, 9vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { margin: 22px 0; }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
  width: 38px; height: 38px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--bg-soft); display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #1a1306;
}
.avatars span:first-child { margin-left: 0; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* Hero visual: glass dashboard */
.hero-visual { position: relative; }
.dash {
  border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden;
}
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dash-head h4 { font-size: 14px; color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.dash-badge { font-size: 12px; font-weight: 700; color: var(--cyan); display: inline-flex; align-items: center; gap: 6px; }
.dash-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.dash-value { font-family: var(--font-numeric); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; }
.dash-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.dash-sub b { color: var(--cyan); }
.chart { width: 100%; height: 130px; display: block; margin-top: 4px; }
.chart path.line { fill: none; stroke: url(#goldLine); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s var(--ease) forwards 0.4s; }
.chart path.area { fill: url(#goldArea); opacity: 0; animation: fadein 1.6s ease forwards 1.6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }

.chip {
  position: absolute; display: flex; align-items: center; gap: 11px;
  padding: 12px 16px; border-radius: 16px; z-index: 3;
  background: rgba(22,16,10,0.82); border: 1px solid var(--border-2);
  box-shadow: var(--shadow-soft);
}
.chip .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 19px; height: 19px; }
.chip small { display: block; font-size: 11px; color: var(--text-dim); letter-spacing: 0.03em; }
.chip strong { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.chip-1 { top: 26%; right: -8%; animation: float 6s var(--ease) infinite; }
.chip-2 { bottom: 6%; left: -10%; animation: float 7s var(--ease) infinite 0.6s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Logo marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 500; color: var(--text-dim); white-space: nowrap; opacity: 0.7; transition: color 0.3s; letter-spacing: 0.02em; }
.marquee-track span:hover { color: var(--text-muted); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Platform strip (Meta ecosystem) ---------- */
.platforms { display: flex; align-items: center; justify-content: space-between; gap: 30px 44px; flex-wrap: wrap; padding: clamp(26px,3vw,38px) clamp(26px,3.5vw,44px); border-radius: var(--radius); }
.platforms .plabel { max-width: 400px; }
.platforms .plabel p { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 14px; }
.platform-logos { display: flex; gap: 14px; flex-wrap: wrap; }
.plogo { display: inline-flex; align-items: center; gap: 11px; padding: 13px 20px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.3s var(--ease), transform 0.25s var(--ease); }
.plogo:hover { border-color: rgba(255,255,255,0.3); background: var(--surface-3); transform: translateY(-2px);
  box-shadow: 0 0 30px -2px rgba(255,255,255,0.22), 0 0 0 1px rgba(255,255,255,0.07) inset; }
.plogo svg { width: 24px; height: 24px; flex: none; }
.plogo b { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--text); }
.card-logos { display: flex; align-items: center; gap: 14px; margin: 18px 0 2px; }
.card-logos svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 560px) {
  .platform-logos { width: 100%; }
  .plogo { flex: 1 1 auto; justify-content: center; }
}

/* ---------- Cards / grids ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); padding: 30px;
  background: linear-gradient(155deg, rgba(255,248,238,0.07), rgba(255,248,238,0.025)); border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-2); background: var(--surface-2); }
/* pointer spotlight */
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(233,200,133,0.14), transparent 60%);
}
.spotlight:hover::before { opacity: 1; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }

.ic-box { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(160deg, rgba(233,200,133,0.18), rgba(233,200,133,0.04));
  border: 1px solid rgba(233,200,133,0.22); }
.ic-box svg { width: 24px; height: 24px; color: var(--gold-soft); }
.ic-box.violet { background: linear-gradient(160deg, rgba(232,138,104,0.22), rgba(232,138,104,0.05)); border-color: rgba(232,138,104,0.30); }
.ic-box.violet svg { color: #f2a98c; }
.ic-box.cyan { background: linear-gradient(160deg, rgba(238,176,96,0.20), rgba(238,176,96,0.05)); border-color: rgba(238,176,96,0.28); }
.ic-box.cyan svg { color: #f3c98f; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.card .num { position: absolute; top: 24px; right: 28px; font-family: var(--font-serif); font-size: 1.1rem; color: var(--text-dim); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.stat { padding: 40px 30px; text-align: center; border-right: 1px solid var(--border); position: relative; }
.stat:last-child { border-right: none; }
.stat .v { font-family: var(--font-numeric); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.02em; background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.stat .l { font-size: 13.5px; color: var(--text-muted); margin-top: 8px; letter-spacing: 0.04em; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: start; padding: 28px 30px; }
.step-n { font-family: var(--font-serif); font-size: 1.5rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--gold-soft); flex: none; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Work / case studies ---------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease);
}
.case:hover { transform: translateY(-6px); border-color: var(--border-2); }
.case-cover { aspect-ratio: 16 / 10; position: relative; overflow: hidden; display: grid; place-items: center; }
.case-cover .label { font-family: var(--font-serif); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; color: #fff; mix-blend-mode: overlay; letter-spacing: 0.04em; z-index: 2; }
.case-cover .tag { position: absolute; top: 16px; left: 16px; z-index: 3; font-size: 12px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.case-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.18), transparent 55%); }
.cover-a { background: linear-gradient(135deg, #2a2350, #5b4bd4 60%, #8b7cf6); }
.cover-b { background: linear-gradient(135deg, #3a2c12, #c79a52 55%, #e9c885); }
.cover-c { background: linear-gradient(135deg, #0e3b36, #1f8a7c 55%, #6fe0d4); }
.cover-d { background: linear-gradient(135deg, #3b1230, #a8327f 55%, #f06fc0); }
.cover-e { background: linear-gradient(135deg, #12233b, #2f6fb0 55%, #6fb8e0); }
.cover-f { background: linear-gradient(135deg, #2d2d33, #6b6b78 55%, #b8b8c4); }
.case-body { padding: 24px 26px 28px; }
.case-body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.case-body .cat { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.case-metrics { display: flex; gap: 26px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metrics .m b { font-family: var(--font-numeric); font-size: 1.5rem; font-weight: 600; color: var(--gold); display: block; line-height: 1.1; }
.case-metrics .m small { font-size: 12px; color: var(--text-dim); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 30px; border-radius: var(--radius); }
.quote .mark { font-family: var(--font-serif); font-size: 3.2rem; line-height: 0.6; color: var(--gold); opacity: 0.5; height: 26px; }
.quote p { font-size: 15.5px; color: var(--text); line-height: 1.65; margin: 14px 0 22px; }
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #1a1306; flex: none; }
.quote .who b { font-size: 15px; display: block; }
.quote .who small { font-size: 13px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.price { padding: 34px 30px; border-radius: var(--radius); position: relative; }
.price.featured { border-color: rgba(233,200,133,0.4); background: linear-gradient(180deg, rgba(233,200,133,0.07), var(--surface)); }
.price .pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; background: var(--grad-gold); color: #1a1306; }
.price h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price .desc { font-size: 13.5px; color: var(--text-dim); min-height: 38px; }
.price .amt { font-family: var(--font-numeric); font-size: 2.7rem; font-weight: 600; margin: 14px 0 4px; letter-spacing: -0.02em; }
.price .amt span { font-family: var(--font-sans); font-size: 0.95rem; color: var(--text-dim); font-weight: 400; }
.price ul { margin: 22px 0 26px; display: grid; gap: 13px; }
.price li { display: flex; gap: 11px; font-size: 14.5px; color: var(--text-muted); align-items: flex-start; }
.price li svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 30px; padding: clamp(48px, 7vw, 80px); text-align: center; overflow: hidden;
  background: linear-gradient(160deg, rgba(20,18,32,0.9), rgba(10,10,18,0.9)); border: 1px solid var(--border-2); }
.cta-band::before { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; top: -250px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(233,200,133,0.3), transparent 60%); filter: blur(40px); }
.cta-band > * { position: relative; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-muted); margin-bottom: 9px; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 17px; border-radius: 14px; font-size: 15px; font-family: inherit;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: rgba(233,200,133,0.5); background: var(--surface-2);
  box-shadow: 0 0 0 4px rgba(233,200,133,0.12);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23a6a6b2' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Inline validity check (e.g. Work email) */
.input-check { position: relative; }
.input-check input { padding-right: 48px; }
.input-check.valid input { border-color: rgba(61, 220, 132, 0.45); }
.check-icon {
  position: absolute; right: 16px; top: 50%; width: 20px; height: 20px;
  color: #3ddc84; pointer-events: none;
  opacity: 0; transform: translateY(-50%) scale(0.5);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  filter: drop-shadow(0 0 6px rgba(61, 220, 132, 0.45));
}
.input-check.valid .check-icon {
  opacity: 1; transform: translateY(-50%) scale(1);
  animation: checkPop 0.45s var(--ease) both;
}
@keyframes checkPop {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.2) rotate(-12deg); }
  55%  { opacity: 1; transform: translateY(-50%) scale(1.3) rotate(4deg); }
  100% { opacity: 1; transform: translateY(-50%) scale(1) rotate(0); }
}
/* Spinner shown while the email domain is being verified */
.check-spinner {
  position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; border: 2px solid rgba(255, 242, 228, 0.2); border-top-color: var(--gold);
  opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease);
}
.input-check.checking .check-spinner { opacity: 1; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .input-check.valid .check-icon { animation: none; }
}

/* Required-field validation */
.field-error {
  display: none; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: #f4868a; margin-top: 8px;
}
.field-error svg { width: 15px; height: 15px; flex: none; }
.field.error .field-error { display: flex; animation: errIn 0.3s var(--ease) both; }
.field.error input, .field.error textarea {
  border-color: rgba(244, 134, 138, 0.6);
  background: rgba(244, 134, 138, 0.06);
}
.field.error input:focus, .field.error textarea:focus {
  border-color: rgba(244, 134, 138, 0.85);
  box-shadow: 0 0 0 4px rgba(244, 134, 138, 0.13);
}
.field.shake { animation: shake 0.4s var(--ease); }
@keyframes errIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-5px); }
  40%, 60% { transform: translateX(5px); }
}
.form-error {
  display: none; align-items: center; gap: 11px;
  padding: 14px 18px; border-radius: 14px; margin-bottom: 16px;
  background: rgba(244, 134, 138, 0.1); border: 1px solid rgba(244, 134, 138, 0.32);
  color: #f5a3a6; font-size: 14.5px; font-weight: 500;
}
.form-error.show { display: flex; animation: errIn 0.3s var(--ease) both; }
.form-error svg { width: 20px; height: 20px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .field.shake, .field.error .field-error, .form-error.show { animation: none; }
}
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.form-success { display: none; padding: 18px 20px; border-radius: 14px; background: rgba(111,224,212,0.1); border: 1px solid rgba(111,224,212,0.3); color: var(--cyan); font-size: 14.5px; font-weight: 500; align-items: center; gap: 10px; }
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex: none; }

/* ---------- Page header ---------- */
.page-head { padding-top: clamp(140px, 18vw, 190px); padding-bottom: clamp(40px, 6vw, 70px); text-align: center; }
.page-head .lead { margin: 20px auto 0; max-width: 620px; }
.breadcrumb { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Values / about ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { text-align: center; padding: 28px 22px; border-radius: var(--radius); }
.member .ph { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-family: var(--font-serif); font-size: 2rem; font-weight: 600; color: #1a1306; }
.member h4 { font-size: 1.05rem; }
.member small { color: var(--gold); font-size: 13px; font-weight: 500; }
.member p { font-size: 13px; color: var(--text-dim); margin-top: 10px; }

/* ---------- Footer ---------- */
footer { position: relative; z-index: 1; border-top: 1px solid var(--border); margin-top: 40px; padding: 70px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--text-muted); font-size: 14.5px; margin: 18px 0 24px; max-width: 300px; }
.foot-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 18px; font-weight: 600; }
.foot-col a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 6px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); transition: background 0.25s, border-color 0.25s, transform 0.25s; }
.socials a:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-2px); }
.socials a svg { width: 19px; height: 19px; color: var(--text-muted); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 54px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }

/* gradient avatar helpers */
.g1 { background: linear-gradient(135deg, #f5dfae, #c79a52); }
.g2 { background: linear-gradient(135deg, #b6acff, #5b4bd4); }
.g3 { background: linear-gradient(135deg, #9cefe5, #1f8a7c); }
.g4 { background: linear-gradient(135deg, #f06fc0, #a8327f); }
.g5 { background: linear-gradient(135deg, #6fb8e0, #2f6fb0); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 10px auto 0; }
  .chip-1 { right: 0; } .chip-2 { left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 1; }
  .col-wide { grid-column: span 2 !important; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .work-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .prices { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .orb { filter: blur(46px); opacity: 0.4; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
  .col-wide { grid-column: span 1 !important; }
  .team-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .container { padding-inline: 18px; }
  .card { padding: 24px; }
  .foot-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .chart path.line { stroke-dashoffset: 0 !important; }
  .chart path.area { opacity: 1 !important; }
  .orb { animation: none !important; }
  .marquee-track { animation: none !important; }
}

/* ---------- Method sidebar: sticky on desktop, static on mobile (prevents overlap) ---------- */
.method-sticky { position: sticky; top: 120px; }
@media (max-width: 980px) { .method-sticky { position: static; top: auto; } }

/* ---------- Hero trust: avatar + star load-in (stars appear one by one with a slow glow) ---------- */
.avatars span { opacity: 0; animation: avPop 0.55s var(--ease) both; }
.avatars span:nth-child(1) { animation-delay: 0.45s; }
.avatars span:nth-child(2) { animation-delay: 0.55s; }
.avatars span:nth-child(3) { animation-delay: 0.65s; }
.avatars span:nth-child(4) { animation-delay: 0.75s; }
@keyframes avPop { 0% { opacity: 0; transform: scale(0.3); } 60% { opacity: 1; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
.stars span { display: inline-block; opacity: 0; animation: starGlow 0.9s var(--ease) both; }
.stars span:nth-child(1) { animation-delay: 0.90s; }
.stars span:nth-child(2) { animation-delay: 1.14s; }
.stars span:nth-child(3) { animation-delay: 1.38s; }
.stars span:nth-child(4) { animation-delay: 1.62s; }
.stars span:nth-child(5) { animation-delay: 1.86s; }
@keyframes starGlow {
  0%   { opacity: 0; transform: scale(0.4); text-shadow: 0 0 0 rgba(248,227,178,0); }
  55%  { opacity: 1; transform: scale(1.35); text-shadow: 0 0 16px rgba(248,227,178,0.95), 0 0 30px rgba(240,207,142,0.55); }
  100% { opacity: 1; transform: scale(1); text-shadow: 0 0 7px rgba(240,207,142,0.4); }
}
.hero-trust small { display: inline-block; opacity: 0; animation: softIn 0.6s var(--ease) 0.65s both; }
@keyframes softIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Mobile menu: refined hover (kept subtle vs the gold CTA) ---------- */
.mm-links a > span { display: inline-block; transition: transform 0.3s var(--ease), color 0.25s var(--ease); }
.mm-links a:hover > span { transform: translateX(8px); color: var(--gold-soft); }
.mm-links a:hover svg { color: var(--gold); transform: translateX(5px); }
