/* ==========================================================
   Trendy Minds – Digital Marketing Agency
   Main stylesheet
   ========================================================== */

:root {
  --yellow: #FFD000;
  --yellow-2: #FFE45C;
  --yellow-dim: rgba(255, 208, 0, .14);
  --black: #050505;
  --ink: #0B0B0C;
  --card: #111113;
  --card-2: #17171A;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --muted-2: #71717A;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1220px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: #000; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #D4D4D8; }
.y { color: var(--yellow); }
.outline-text { background: linear-gradient(100deg, var(--yellow) 0%, #fff6c2 45%, var(--yellow) 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 5s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-sm { padding: clamp(56px, 7vw, 90px) 0; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--yellow); color: #000; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--yellow); border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--yellow); border-radius: 2px; }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.split-head .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: #000;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .98rem; line-height: 1;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 18px 40px -12px rgba(255, 208, 0, .55); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px) rotate(-45deg); }
.btn-ghost { --bg: transparent; --fg: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); box-shadow: none; }
.btn-dark { --bg: #000; --fg: #fff; }
.btn-sm { padding: 12px 20px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s, transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(5, 5, 5, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; padding: 10px 16px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: #D4D4D8; transition: color .3s, background .3s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-links a.active { color: var(--yellow); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--yellow); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(5,5,5,.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px;
  opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.m-link { font-family: var(--font-head); font-size: clamp(2rem, 9vw, 3rem); font-weight: 700; padding: 6px 0; display: block; color: #fff; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s, color .3s; }
.mobile-menu a.m-link.active, .mobile-menu a.m-link:hover { color: var(--yellow); }
.menu-open .mobile-menu a.m-link { transform: none; opacity: 1; }
.mobile-menu .m-meta { margin-top: 36px; color: var(--muted); font-size: .95rem; display: grid; gap: 6px; }
.mobile-menu .m-meta a { color: var(--yellow); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 90px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-fallback {
  position: absolute; right: -10%; top: 50%; width: min(70vw, 720px); aspect-ratio: 1; transform: translateY(-50%);
  border-radius: 50%; z-index: 0;
  background: radial-gradient(circle at 35% 30%, #fff3a3 0%, var(--yellow) 22%, #8a6f00 50%, #000 72%);
  filter: blur(2px); opacity: .55; animation: floaty 9s ease-in-out infinite;
}
.webgl-on .hero-fallback { display: none; }
@keyframes floaty { 50% { transform: translateY(-53%) scale(1.03); } }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(to top, var(--black), transparent); z-index: 1; pointer-events: none; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
}
.hero .container { position: relative; z-index: 2; pointer-events: none; }
.hero .container a, .hero .container button { pointer-events: auto; }
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); font-size: .88rem; color: #D4D4D8; margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-badge b { background: var(--yellow); color: #000; padding: 4px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: lineUp 1.1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: none; } }
.hero .lead { max-width: 580px; margin-bottom: 36px; opacity: 0; animation: fadeUp 1s .5s var(--ease) forwards; }
.hero .btn-row { opacity: 0; animation: fadeUp 1s .65s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s .8s var(--ease) forwards; }
.hero-stats div { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.hero-stats strong { display: block; font-family: var(--font-head); font-size: 2rem; color: #fff; letter-spacing: -.02em; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-2); border-radius: 20px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 4px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Inner page hero */
.page-hero { position: relative; padding: 180px 0 90px; overflow: hidden; }
.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 70%); }
.page-hero .orb { position: absolute; width: 520px; height: 520px; right: -140px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,0,.35), transparent 65%); filter: blur(30px); pointer-events: none; animation: floaty 10s ease-in-out infinite; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 900px; }
.page-hero .lead { max-width: 640px; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--yellow); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; position: relative; background: #070707; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 64px; font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; color: #3F3F46; white-space: nowrap; letter-spacing: -.02em; transition: color .3s; }
.marquee-item:hover { color: #fff; }
.marquee-item::after { content: "✦"; color: var(--yellow); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee.yellow { background: var(--yellow); border: 0; transform: rotate(-2deg); margin: 0 -20px; }
.marquee.yellow .marquee-item { color: #000; }
.marquee.yellow .marquee-item::after { color: #000; }

/* ---------- Cards / Services ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; padding: 34px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease), box-shadow .5s var(--ease);
  overflow: hidden; isolation: isolate; transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255,208,0,.16), transparent 45%);
}
.card:hover { border-color: rgba(255,208,0,.35); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card p:last-child { margin-bottom: 0; }

.icon-box {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(255,208,0,.25);
  transition: transform .5s var(--ease), background .4s, color .4s;
}
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { background: var(--yellow); color: #000; transform: translateZ(30px) rotate(-8deg) scale(1.05); }

.service-card { min-height: 340px; display: flex; flex-direction: column; }
.service-card .num { position: absolute; top: 28px; right: 30px; font-family: var(--font-head); font-size: .9rem; color: var(--muted-2); }
.service-card h3 { margin-bottom: 12px; }
.service-card .more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); font-weight: 600; font-size: .92rem; }
.service-card .more svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service-card:hover .more svg { transform: translateX(5px); }
.service-card.feature { grid-column: span 2; background: radial-gradient(circle at 100% 0%, rgba(255,208,0,.18), transparent 50%), linear-gradient(180deg, var(--card-2), var(--card)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: .78rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #D4D4D8; }

/* ---------- Stats ---------- */
.stats-band { position: relative; border-radius: 32px; padding: clamp(40px, 6vw, 72px); background: var(--yellow); color: #000; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(0,0,0,.07); }
.stats-band::before { content: ""; position: absolute; left: 30%; bottom: -160px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.25); filter: blur(40px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; z-index: 1; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.stat span { display: block; margin-top: 10px; font-weight: 500; font-size: .95rem; color: rgba(0,0,0,.7); }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.visual-stack { position: relative; aspect-ratio: 1/1.05; }
.visual-stack .vs-main {
  position: absolute; inset: 0 12% 12% 0; border-radius: 28px; overflow: hidden;
  background: radial-gradient(circle at 70% 25%, rgba(255,208,0,.5), transparent 45%), linear-gradient(135deg, #1a1a1d, #0a0a0a);
  border: 1px solid var(--line-2); display: grid; place-items: center;
}
.visual-stack .vs-main img { width: 46%; opacity: .95; filter: drop-shadow(0 20px 40px rgba(0,0,0,.6)); }
.visual-stack .vs-card {
  position: absolute; right: 0; bottom: 0; width: 56%; padding: 26px; border-radius: 22px; background: rgba(17,17,19,.86);
  backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: var(--shadow);
}
.visual-stack .vs-card strong { font-family: var(--font-head); font-size: 2.6rem; color: var(--yellow); display: block; line-height: 1; }
.visual-stack .vs-chip { position: absolute; left: -14px; top: 12%; padding: 12px 18px; border-radius: 14px; background: var(--yellow); color: #000; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.check-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; color: #D4D4D8; }
.check-list li::before { content: ""; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/14px no-repeat; margin-top: 1px; }

/* ---------- Process ---------- */
.process { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process::before { content: ""; position: absolute; top: 44px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); opacity: .4; }
.step { position: relative; padding: 0 6px; }
.step .dot { position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); border: 1px solid var(--line-2); margin-bottom: 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--yellow); transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .4s; }
.step:hover .dot { background: var(--yellow); color: #000; transform: scale(1.08); box-shadow: 0 0 0 10px rgba(255,208,0,.08); }

/* ---------- Testimonials ---------- */
.t-slider { position: relative; }
.t-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; }
.t-card .stars { color: var(--yellow); letter-spacing: 3px; margin-bottom: 18px; }
.t-card blockquote { margin: 0 0 26px; color: #E4E4E7; font-size: 1.04rem; line-height: 1.7; }
.t-person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #000; font-weight: 700; font-family: var(--font-head); flex-shrink: 0; }
.t-person strong { display: block; color: #fff; font-size: .98rem; }
.t-person span { font-size: .85rem; color: var(--muted-2); }
.t-nav { display: flex; gap: 10px; }
.t-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.t-nav button:hover { background: var(--yellow); border-color: var(--yellow); color: #000; }
.t-nav svg { width: 20px; height: 20px; }

/* ---------- Clients ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-cell { aspect-ratio: 16/9; display: grid; place-items: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; color: #52525B; font-size: 1.05rem; letter-spacing: -.01em; transition: color .3s, background .3s; padding: 12px; text-align: center; }
.logo-cell img { max-height: 44px; width: auto; filter: grayscale(1) brightness(1.6); opacity: .6; transition: filter .3s, opacity .3s; }
.logo-cell:hover { color: var(--yellow); background: rgba(255,208,0,.04); }
.logo-cell:hover img { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta-box { position: relative; border-radius: 36px; padding: clamp(48px, 8vw, 100px) clamp(28px, 6vw, 80px); overflow: hidden; border: 1px solid var(--line-2); background: radial-gradient(circle at 85% 20%, rgba(255,208,0,.28), transparent 45%), radial-gradient(circle at 10% 110%, rgba(255,208,0,.14), transparent 40%), #0c0c0d; text-align: center; }
.cta-box h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.cta-box p { max-width: 560px; margin: 0 auto 34px; }
.cta-box .btn-row { justify-content: center; }
.cta-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,208,0,.18); pointer-events: none; }
.cta-ring.r1 { width: 600px; height: 600px; right: -200px; top: -300px; animation: spin 40s linear infinite; border-style: dashed; }
.cta-ring.r2 { width: 380px; height: 380px; left: -160px; bottom: -200px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Service detail (services page) ---------- */
.svc-nav { position: sticky; top: 84px; z-index: 20; background: rgba(5,5,5,.85); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.svc-nav .container { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.svc-nav .container::-webkit-scrollbar { display: none; }
.svc-nav a { padding: 9px 16px; border-radius: 999px; font-size: .88rem; color: var(--muted); border: 1px solid var(--line); white-space: nowrap; transition: all .3s; }
.svc-nav a:hover, .svc-nav a.active { color: #000; background: var(--yellow); border-color: var(--yellow); }
.svc-block { scroll-margin-top: 160px; padding: clamp(70px, 9vw, 110px) 0; border-bottom: 1px solid var(--line); }
.svc-block .split { align-items: start; }
.svc-visual { position: sticky; top: 180px; aspect-ratio: 4/3.2; border-radius: 28px; border: 1px solid var(--line-2); overflow: hidden; background: linear-gradient(135deg, #18181b, #0a0a0a); display: grid; place-items: center; }
.svc-visual .big-icon { width: 38%; color: var(--yellow); filter: drop-shadow(0 20px 60px rgba(255,208,0,.35)); animation: bob 6s ease-in-out infinite; }
.svc-visual .big-icon svg { width: 100%; height: auto; stroke-width: 1.2; }
.svc-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%); }
.svc-visual .svc-num { position: absolute; left: 26px; top: 20px; font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.05); line-height: 1; }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 34px; }
.feature-list div { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); font-size: .95rem; color: #E4E4E7; transition: border-color .3s, transform .3s var(--ease); }
.feature-list div:hover { border-color: rgba(255,208,0,.4); transform: translateY(-3px); }
.feature-list b { display: block; color: #fff; margin-bottom: 4px; font-family: var(--font-head); font-size: 1rem; }
.feature-list span { color: var(--muted); font-size: .88rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filters button { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; font-size: .92rem; transition: all .3s; }
.filters button:hover { color: #fff; border-color: #fff; }
.filters button.active { background: var(--yellow); color: #000; border-color: var(--yellow); }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.work-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .4s, opacity .4s; }
.work-card.is-hidden { display: none; }
.work-media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: linear-gradient(135deg, #1c1c1f, #0b0b0c); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #3F3F46; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); text-align: center; padding: 20px; }
.work-media .ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--px, 70%) var(--py, 30%), rgba(255,208,0,.22), transparent 50%); }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-body { padding: 26px 28px 30px; }
.work-body .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .82rem; color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.work-body h3 { margin-bottom: 8px; }
.work-results { display: flex; gap: 26px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.work-results strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: #fff; line-height: 1.1; }
.work-results span { font-size: .8rem; color: var(--muted-2); }
.work-card .arrow { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; background: var(--yellow); color: #000; display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .5s var(--ease); z-index: 2; }
.work-card .arrow svg { width: 20px; height: 20px; }
.work-card:hover .arrow { transform: scale(1) rotate(0); }
.work-card:hover { border-color: rgba(255,208,0,.35); }

/* ---------- Values / Team ---------- */
.value-card h3 { display: flex; align-items: center; gap: 12px; }
.team-card { padding: 0; }
.team-photo { aspect-ratio: 1/1.1; background: linear-gradient(160deg, #222226, #0e0e10); display: grid; place-items: center; position: relative; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo .initials { font-family: var(--font-head); font-size: 3.2rem; font-weight: 800; color: var(--yellow); opacity: .9; }
.team-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); }
.team-info { padding: 22px 24px 26px; }
.team-info h3 { margin-bottom: 4px; font-size: 1.15rem; }
.team-info span { color: var(--yellow); font-size: .88rem; }

.timeline { position: relative; display: grid; gap: 24px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--yellow), transparent); }
.timeline .t-item { position: relative; }
.timeline .t-item::before { content: ""; position: absolute; left: -34px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--black); border: 3px solid var(--yellow); }
.timeline .t-item b { color: var(--yellow); font-family: var(--font-head); }
.timeline .t-item h3 { margin: 4px 0 6px; font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: border-color .3s; }
.faq details[open] { border-color: rgba(255,208,0,.35); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 600; font-family: var(--font-head); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--yellow); line-height: 1; transition: transform .35s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.info-item { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.info-item:hover { border-color: rgba(255,208,0,.4); transform: translateX(6px); }
.info-item .icon-box { width: 52px; height: 52px; margin: 0; border-radius: 14px; flex-shrink: 0; }
.info-item .icon-box svg { width: 22px; height: 22px; }
.info-item small { display: block; color: var(--muted-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.info-item strong { color: #fff; font-weight: 600; word-break: break-word; }
.form-card { padding: clamp(28px, 4vw, 46px); border-radius: 28px; background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 500; color: #D4D4D8; }
.field label i { color: var(--yellow); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; background: #0A0A0B; border: 1px solid var(--line-2); color: #fff; outline: none;
  transition: border-color .3s, box-shadow .3s; font-size: 1rem;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFD000' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: #111; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255,208,0,.12); }
.field input::placeholder, .field textarea::placeholder { color: #52525B; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--muted-2); margin: 16px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 16px 18px; border-radius: 14px; font-size: .95rem; }
.form-status.error { display: block; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.4); color: #fca5a5; }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); color: #000; display: grid; place-items: center; margin: 0 auto 24px; animation: pop .6s var(--ease); }
.form-success .tick svg { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(0); } }
.form-card.sent form { display: none; }
.form-card.sent .form-success { display: block; }
.btn[disabled] { opacity: .65; pointer-events: none; }
.map-wrap { border-radius: 28px; overflow: hidden; border: 1px solid var(--line-2); aspect-ratio: 21/8; min-height: 320px; filter: grayscale(1) invert(.92) contrast(.9); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Legal ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.5rem; margin-top: 2.2em; }
.legal p, .legal li { color: #C4C4CC; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .5em; }
.legal a { color: var(--yellow); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { color: var(--muted-2); font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 90px 0 30px; background: #030303; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 70px; }
.footer-top h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 20px; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-top ul a { color: var(--muted); transition: color .3s, padding .3s; }
.footer-top ul a:hover { color: var(--yellow); padding-left: 4px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .3s; }
.socials a:hover { background: var(--yellow); color: #000; border-color: var(--yellow); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-big { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 11vw, 10.5rem); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.09); white-space: nowrap; text-align: center; margin: 0 0 30px; user-select: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted-2); }
.footer-bottom a:hover { color: var(--yellow); }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite; z-index: -1; }
@keyframes ping { 75%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float .wa-tip { position: absolute; right: 74px; white-space: nowrap; background: #fff; color: #000; font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 10px; opacity: 0; transform: translateX(10px); transition: all .3s; pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
.consult-float { position: fixed; left: 22px; bottom: 22px; z-index: 80; box-shadow: 0 14px 34px -10px rgba(255,208,0,.6); transform: translateY(220%); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.consult-float.show { transform: none; opacity: 1; }

/* ---------- Cursor glow ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-dot { width: 7px; height: 7px; background: var(--yellow); }
.cursor-ring { width: 38px; height: 38px; border: 1.5px solid rgba(255,208,0,.55); transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-color .3s; }
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(255,208,0,.08); border-color: var(--yellow); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.no-js .reveal, .no-js .reveal-scale { opacity: 1; transform: none; }

/* Page loader */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--black); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.loader img { width: 90px; animation: pulse 1.2s ease-in-out infinite; }
.loaded .loader { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.95); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process::before { display: none; }
  .t-card { flex-basis: calc((100% - 22px) / 2); }
}
@media (max-width: 960px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-toggle { display: block; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-card.feature { grid-column: span 2; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .svc-visual { position: relative; top: 0; max-width: 560px; }
  .visual-stack { max-width: 520px; }
}
@media (max-width: 680px) {
  body { font-size: 15.5px; }
  .container { padding: 0 18px; }
  .nav { height: 72px; }
  .brand img { height: 32px; }
  .grid-2, .grid-3, .work-grid, .form-grid, .feature-list { grid-template-columns: 1fr; }
  .service-card.feature { grid-column: auto; }
  .service-card { min-height: 0; }
  .card { padding: 26px; }
  .hero { padding: 110px 0 80px; align-items: flex-end; }
  .hero-stats { gap: 26px; margin-top: 40px; }
  .hero-stats strong { font-size: 1.6rem; }
  .stats-grid { gap: 30px 16px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .t-card { flex-basis: 88%; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .page-hero { padding: 140px 0 60px; }
  .map-wrap { aspect-ratio: auto; height: 340px; min-height: 0; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .consult-float { left: 16px; bottom: 20px; padding: 13px 18px; font-size: .88rem; }
  .split-head { margin-bottom: 36px; }
  .section-head { margin-bottom: 40px; }
  .scroll-cue { display: none; }
  /* Phone hero: 3D orb sits on top, text below it (keeps text readable) */
  .hero { display: block; min-height: 0; padding: 330px 0 70px; }
  #hero-canvas { height: 380px; bottom: auto; }
  .hero-fallback { top: 60px; right: 50%; width: 260px; transform: translateX(50%); animation: none; }
  .hero-badge { font-size: .78rem; padding-right: 12px; }
  .hero-stats { gap: 22px; flex-wrap: nowrap; }
  .hero-stats div { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; }
  .hero h1 .line > span { transform: none; }
}

/* Grid children may shrink below their content width (prevents mobile overflow) */
.split > *, .contact-grid > *, .form-grid > *, .grid > * { min-width: 0; }
.field select { text-overflow: ellipsis; }
@media (max-width: 680px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -18px; padding-right: 18px; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; flex-shrink: 0; }
}
