/* =========================================================
   DT AI Solution — Global Stylesheet
   ========================================================= */

:root {
  --bg: #060509;
  --bg-2: #0b0912;
  --surface: #110e1a;
  --surface-2: #161223;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2fa;
  --muted: #a39fb4;
  --dim: #6e6a80;
  --purple: #8b3dff;
  --purple-2: #a464ff;
  --purple-3: #c9a3ff;
  --purple-glow: rgba(139, 61, 255, 0.45);
  --grad: linear-gradient(135deg, #7b2ff7 0%, #a855f7 55%, #c084fc 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* Body text: neat, justified edges across the public site (not the admin dashboard) */
body:not(.admin) p, body:not(.admin) blockquote {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
}
/* Blocks that are designed to be centred stay centred */
body:not(.admin) :is(.goal, .projects-empty, .form-success, .modal-box, .hero-center, .about-statement, .tech-orbit, .portfolio-fan) p { text-align: center; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

::selection { background: var(--purple); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-purple { color: var(--purple-2); }

/* ---------- Page loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-logo {
  font-size: 44px; font-weight: 800; letter-spacing: -2px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .4; transform: scale(.96);} 50% { opacity: 1; transform: scale(1);} }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 420px; height: 420px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(139,61,255,.12), transparent 65%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 0;
  transition: padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
/* The frosted background lives on a pseudo-element: a backdrop-filter on the
   header itself would trap the fixed full-screen mobile menu inside the header. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 5, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .4s;
}
.header.scrolled { padding: 14px 0; border-bottom-color: var(--border); }
.header.scrolled::before { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  font-size: 30px; font-weight: 800; letter-spacing: -2px; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-text { font-size: 11px; font-weight: 600; letter-spacing: 4px; color: var(--text); }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 14px; color: var(--muted); position: relative; padding: 4px 0;
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--purple-2); border-radius: 2px; transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { color: var(--purple-2); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text);
  transition: transform .35s var(--ease), opacity .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 100px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translate(3px, -3px); }
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px var(--purple-glow);
}
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px var(--purple-glow); }
.btn-outline { border-color: var(--border-strong); background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: var(--purple-2); background: rgba(139,61,255,.08); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
.nav-cta { border-color: rgba(164,100,255,.5); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--purple-2); font-weight: 500;
}
.link-arrow svg { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }
.link-arrow.white { color: var(--text); }

/* ---------- Section basics ---------- */
section { position: relative; z-index: 1; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 2.5px; font-weight: 600;
  color: var(--purple-2); text-transform: uppercase; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--purple-2); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.h-xl { font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -2px; }
.h-lg { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; font-weight: 500; letter-spacing: -1px; }
.h-md { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 500; }
.lead { font-size: 17px; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
/* Heading on top, supporting text directly underneath */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 56px; }
.section-head .side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: 100%; }
.section-head .side .link-arrow { align-self: flex-start; }
.section-head .side p { align-self: stretch; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; padding: 150px 0 60px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 75% 40%, rgba(123,47,247,.18), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(123,47,247,.08), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .lead { margin: 28px 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero-title .line:nth-child(2) span { animation-delay: .12s; }
.hero-title .line:nth-child(3) span { animation-delay: .24s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-visual { position: relative; height: 560px; }
.hero-side-list {
  position: absolute; right: 0; top: 30px; z-index: 3;
  display: flex; flex-direction: column; gap: 14px; text-align: right;
}
.hero-side-list li {
  font-size: 10px; letter-spacing: 2px; color: var(--dim); text-transform: uppercase;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  transition: color .3s;
}
.hero-side-list li::after { content: ""; width: 0; height: 1px; background: var(--purple-2); transition: width .4s var(--ease); }
.hero-side-list li.on { color: var(--text); }
.hero-side-list li.on::after { width: 22px; }

.watch {
  position: absolute; right: 0; bottom: 40px; z-index: 3;
  display: flex; align-items: center; gap: 14px; cursor: pointer; background: none; border: 0;
}
.watch-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--border-strong); display: grid; place-items: center;
  position: relative; transition: border-color .3s, background .3s;
}
.watch-btn::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(164,100,255,.35); animation: ripple 2.4s ease-out infinite;
}
@keyframes ripple { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.watch:hover .watch-btn { border-color: var(--purple-2); background: rgba(139,61,255,.15); }
.watch-btn svg { width: 14px; height: 14px; margin-left: 2px; }
.watch-label { font-size: 10px; letter-spacing: 2px; line-height: 1.6; text-align: left; color: var(--muted); text-transform: uppercase; }

/* 3D ring visual (pure CSS) */
.orb-wrap {
  position: absolute; inset: 0; display: grid; place-items: center;
  perspective: 1200px;
}
.orb {
  position: relative; width: 420px; height: 420px;
  transform-style: preserve-3d;
  animation: orbSpin 18s linear infinite;
}
.orb .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 46px solid transparent;
  background:
    conic-gradient(from 0deg, #2a0a6b, #7b2ff7, #e3c9ff, #9d4dff, #1e0650, #6d28d9, #f0e0ff, #7b2ff7, #2a0a6b) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  filter: drop-shadow(0 0 40px rgba(139,61,255,.55));
  opacity: .95;
}
.orb .ring.r1 { transform: rotateX(68deg) rotateY(-18deg); }
.orb .ring.r2 { transform: rotateY(62deg) rotateX(14deg) scale(.86); border-width: 38px; }
.orb .ring.r3 { transform: rotateX(20deg) rotateY(30deg) scale(.66); border-width: 26px; opacity: .7; }
@keyframes orbSpin { from { transform: rotateY(0) rotateZ(-12deg); } to { transform: rotateY(360deg) rotateZ(-12deg); } }
.orb-core {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(164,100,255,.55), rgba(123,47,247,.1) 55%, transparent 70%);
  filter: blur(30px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.orb-arc {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(164,100,255,.25);
  border-left-color: transparent; border-bottom-color: transparent;
  animation: spin 30s linear infinite;
}
.orb-arc.a2 { width: 520px; height: 520px; animation-duration: 22s; animation-direction: reverse; border-color: rgba(164,100,255,.15); border-top-color: transparent; border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

.particles { position: absolute; inset: 0; pointer-events: none; }
.particles i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: var(--purple-3); box-shadow: 0 0 10px var(--purple-2);
  animation: float 8s ease-in-out infinite; opacity: .7;
}
@keyframes float { 0%,100% { transform: translate(0,0); opacity: .2; } 50% { transform: translate(14px,-30px); opacity: .9; } }

/* ---------- 3D Robot (hero) ---------- */
.robot-stage { position: absolute; inset: 0; perspective: 1400px; perspective-origin: 50% 40%; }
.robot-glow {
  position: absolute; left: 50%; top: 46%; width: 440px; height: 440px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139,61,255,.32), rgba(123,47,247,.08) 45%, transparent 70%);
  filter: blur(20px); animation: breathe 6s ease-in-out infinite;
}
.robot-shadow { margin-left: -4%;
  position: absolute; left: 50%; top: 77%; width: 380px; height: 70px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(0,0,0,.85), rgba(80,30,160,.18) 55%, transparent 72%);
  filter: blur(8px);
}
.robot-word {
  position: absolute; z-index: 0; font-size: 64px; font-weight: 500; letter-spacing: -1px; line-height: 1;
  pointer-events: none; transition: transform .2s linear;
}
.robot-word.w1 {
  left: -10%; top: 18%;
  background: linear-gradient(180deg, #e9e7ee, #8d8a96 70%, #5d5a66);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,.6);
}
.robot-word.w2 {
  right: 6%; top: 44%; font-size: 72px; font-weight: 600;
  background: linear-gradient(180deg, #7c3aed, #3b1a78);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1px rgba(164,100,255,.35);
}

.robot-fit { position: absolute; left: 46%; top: 50%; transform-style: preserve-3d; scale: .9; }
.robot-scene {
  position: absolute; left: 0; top: 0; transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(-26deg);
}
/* Generic cuboid: --w width, --h height, --d depth. Faces injected by JS. */
.box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.box .f { position: absolute; left: 0; top: 0; backface-visibility: hidden; }
.f-front, .f-back { width: var(--w); height: var(--h); }
.f-left, .f-right { width: var(--d); height: var(--h); }
.f-top, .f-bottom { width: var(--w); height: var(--d); }
.f-front  { transform: translate(-50%, -50%) translateZ(calc(var(--d) / 2)); }
.f-back   { transform: translate(-50%, -50%) rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.f-right  { transform: translate(-50%, -50%) rotateY(90deg) translateZ(calc(var(--w) / 2)); }
.f-left   { transform: translate(-50%, -50%) rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.f-top    { transform: translate(-50%, -50%) rotateX(90deg) translateZ(calc(var(--h) / 2)); }
.f-bottom { transform: translate(-50%, -50%) rotateX(-90deg) translateZ(calc(var(--h) / 2)); }

/* Pedestal tiers — glossy black with purple reflections */
.base  { --w: 300px; --h: 74px; --d: 300px; transform: translate3d(0, 118px, 0); }
.tier2 { --w: 206px; --h: 30px; --d: 206px; transform: translate3d(0, 66px, 0); }
.tier3 { --w: 134px; --h: 22px; --d: 134px; transform: translate3d(0, 40px, 0); }
.base .f, .tier2 .f, .tier3 .f { border-radius: 6px; }
.base .f-top, .tier2 .f-top, .tier3 .f-top {
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(139,61,255,.35), transparent 70%),
    linear-gradient(135deg, #2a2335, #0f0c15 55%, #241938);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
}
.base .f-front, .tier2 .f-front, .tier3 .f-front,
.base .f-back, .tier2 .f-back, .tier3 .f-back {
  background: linear-gradient(180deg, #2b2338 0, #110e17 18%, #060509 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.base .f-left, .tier2 .f-left, .tier3 .f-left,
.base .f-right, .tier2 .f-right, .tier3 .f-right {
  background:
    linear-gradient(90deg, transparent 20%, rgba(139,61,255,.4) 55%, transparent 80%),
    linear-gradient(180deg, #1f1a29 0, #0b0910 25%, #050407 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.base .f-bottom, .tier2 .f-bottom, .tier3 .f-bottom { background: #030205; }

/* Neck — drawn flat and counter-rotated so it always faces the camera */
.neck {
  position: absolute; left: 0; top: 0; width: 60px; height: 90px;
  display: flex; flex-direction: column; align-items: center;
  transform: translate3d(-50%, -60px, 0) rotateY(26deg) rotateX(18deg) translateZ(30px);
}
.neck .collar {
  width: 54px; height: 26px; clip-path: polygon(0 0, 100% 0, 68% 100%, 32% 100%);
  background: linear-gradient(90deg, #0a0810, #3a2a5c 35%, #9b7cd6 48%, #3a2a5c 60%, #0a0810);
}
.neck .joint {
  width: 22px; height: 22px; border-radius: 50%; margin-top: -3px;
  background: radial-gradient(circle at 35% 30%, #c8b4ee, #4b3478 40%, #0d0a14 75%);
}
.neck .stem { width: 9px; flex: 1; margin-top: -2px; background: linear-gradient(90deg, #08070b, #4a3a6a 50%, #08070b); }

/* Head */
.head-pivot { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate3d(0, -66px, 0); will-change: transform; }
.head { --w: 176px; --h: 132px; --d: 150px; transform: translate3d(0, -68px, 0); }
.head .f { border-radius: 20px; }
.head .f-front {
  background: linear-gradient(160deg, #2a2434 0, #0e0c13 35%, #060509 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 2px 0 rgba(255,255,255,.12);
  display: grid; place-items: center;
}
.head .f-top { background: linear-gradient(180deg, #3a3346, #17131f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.head .f-left, .head .f-right, .head .f-back {
  background:
    radial-gradient(ellipse 60% 60% at 30% 30%, rgba(139,61,255,.28), transparent 70%),
    linear-gradient(180deg, #221c2c, #08070b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  display: grid; place-items: center;
}
.head .f-left::after, .head .f-right::after {
  content: ""; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #6f6680; box-shadow: 0 0 10px rgba(139,61,255,.3), inset 0 0 6px rgba(0,0,0,.8);
}
.head .f-bottom { background: #050407; border-radius: 20px; }
.head-screen {
  width: calc(100% - 26px); height: calc(100% - 26px); border-radius: 14px;
  background: radial-gradient(ellipse at 50% 40%, #0f0c16, #020203 80%);
  box-shadow: inset 0 3px 12px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05);
  display: grid; place-items: center; overflow: hidden;
}
.eyes { display: flex; gap: 26px; will-change: transform; animation: blink 5.5s infinite; }
.eye {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe0ea 0, #f08bb0 30%, #b9406f 65%, #5a1834 100%);
  box-shadow: 0 0 14px rgba(255,120,175,.75), 0 0 34px rgba(255,90,160,.35);
}
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }


/* ---------- About / stats ---------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.about-grid p strong { color: var(--text); font-weight: 600; }
.about-grid .btn { margin-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; }
.stat { padding: 6px 28px; border-left: 1px solid var(--border-strong); }
.stat-num { font-size: 34px; font-weight: 600; color: var(--purple-2); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* Five services: 3 cards on the first row, 2 wider cards on the second */
.cards-5 { grid-template-columns: repeat(6, 1fr); }
.cards-5 .card { grid-column: span 2; }
.cards-5 .card:nth-child(n+4) { grid-column: span 3; }
.card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139,61,255,.22), transparent 45%);
  transition: opacity .4s;
}
.card:hover { transform: translateY(-8px); border-color: rgba(164,100,255,.45); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(139,61,255,.1); border: 1px solid rgba(139,61,255,.25); margin-bottom: 26px;
  transition: transform .5s var(--ease), background .4s;
}
.card:hover .card-icon { transform: rotate(-8deg) scale(1.06); background: rgba(139,61,255,.22); }
.card-icon svg { width: 26px; height: 26px; stroke: var(--purple-2); }
.card h3 { font-size: 19px; font-weight: 500; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 26px; }

/* ---------- Projects ---------- */
.projects { display: flex; flex-direction: column; gap: 22px; }
.project {
  position: relative; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center;
  min-height: 300px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, #0d0a15 0%, #0d0a15 40%, #1c0d3d 100%);
  transition: border-color .4s, transform .6s var(--ease);
}
.project:hover { border-color: rgba(164,100,255,.4); }
.project.reverse { grid-template-columns: 1.25fr 1fr; background: linear-gradient(240deg, #0d0a15 0%, #0d0a15 40%, #1c0d3d 100%); }
.project.reverse .project-info { order: 2; }
.project-info { padding: 44px 48px; position: relative; z-index: 2; }
.project-num { font-size: 15px; color: var(--dim); margin-bottom: 18px; display: block; }
.project h3 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; margin-bottom: 14px; }
.project p { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 11px; padding: 5px 12px; border-radius: 100px; border: 1px solid var(--border-strong); color: var(--muted); }
/* One-word project outcome, highlighted ahead of the category tags */
.tag-outcome {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fff; font-weight: 600; border-color: rgba(164,100,255,.6);
  background: linear-gradient(135deg, rgba(123,47,247,.45), rgba(192,132,252,.2));
  box-shadow: 0 0 18px -4px var(--purple-glow);
}
.tag-outcome svg { width: 12px; height: 12px; color: var(--purple-3); }
.project-visual { position: relative; height: 100%; min-height: 300px; overflow: hidden; }
.project-visual::after {
  content: ""; position: absolute; width: 140%; height: 120px; bottom: -40px; right: -20%;
  background: linear-gradient(90deg, transparent, rgba(139,61,255,.6), rgba(196,140,255,.4));
  filter: blur(40px); transform: rotate(-8deg); pointer-events: none;
}

/* Project screenshots */
.project-visual.has-image { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
.project-visual.has-image::after { display: none; }
.project-visual.has-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .8s var(--ease);
}
.project-visual.has-image img[src*="website-seo-solar"] { object-position: 50% 45%; }
.project:hover .project-visual.has-image img { transform: scale(1.03); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid var(--border);
  background: #0c0914;
  padding: 56px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-wave { position: absolute; inset: 0; pointer-events: none; opacity: .9; }
.cta-wave path { fill: none; stroke-width: 1.2; }
.cta > *:not(.cta-wave) { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 500; line-height: 1.15; margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 420px; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-section { padding: 24px 0 80px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 72px 0 32px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
.footer p { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 300px; }
.footer h4 { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 18px; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--muted); transition: color .3s, padding .3s; }
.footer ul a:hover { color: var(--purple-2); padding-left: 4px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong);
  display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s;
}
.socials a:hover { background: var(--purple); border-color: var(--purple); transform: translateY(-3px); }
.socials svg { width: 15px; height: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--dim);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 190px 0 100px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 55% 60% at 80% 20%, rgba(123,47,247,.2), transparent 70%);
}
.page-hero .lead { margin-top: 24px; }
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb { font-size: 13px; color: var(--dim); margin-bottom: 26px; display: flex; gap: 8px; }
.breadcrumb a:hover { color: var(--purple-2); }

/* ---------- About page ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.panel {
  border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 36px;
}
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values-2 { grid-template-columns: repeat(2, 1fr); }
.goal {
  position: relative; overflow: hidden; text-align: center; padding: 72px 48px; border-radius: 24px;
  border: 1px solid rgba(164,100,255,.35);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(139,61,255,.28), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 30px 80px -40px var(--purple-glow);
}
.goal .h-lg { max-width: 920px; margin: 0 auto; }
.goal .lead { margin: 24px auto 0; max-width: 680px; }
.goal-pillars { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.goal-pillars span {
  padding: 10px 22px; border-radius: 100px; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(164,100,255,.5); background: rgba(139,61,255,.12); color: #fff;
}
.value h3 { font-size: 20px; font-weight: 500; margin: 18px 0 10px; }
.value p { color: var(--muted); font-size: 14px; }
.value .num { font-size: 13px; color: var(--purple-2); font-weight: 600; letter-spacing: 1px; }



/* ---------- Services page ---------- */
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1fr; gap: 40px; padding: 44px 0;
  border-top: 1px solid var(--border); align-items: start;
  transition: background .4s;
}
.service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row .idx { font-size: 15px; color: var(--dim); }
.service-row h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; line-height: 1.15; display: flex; gap: 16px; align-items: center; }
.service-row h3 .card-icon { margin: 0; flex-shrink: 0; }
.service-row p { color: var(--muted); margin-bottom: 18px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.checks li { font-size: 14px; display: flex; gap: 10px; align-items: center; color: #d6d2e2; }
.checks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(139,61,255,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23b47cff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: 54px; font-weight: 700; line-height: 1;
  background: linear-gradient(180deg, rgba(164,100,255,.6), transparent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 16px;
}
.step h4 { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Portfolio page ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter {
  padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border-strong);
  background: transparent; cursor: pointer; font-size: 13px; color: var(--muted);
  transition: all .3s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--purple-2); }
.filter.active { background: var(--grad); border-color: transparent; color: #fff; }
.project.is-hidden { display: none; }
.projects-empty {
  text-align: center; padding: 56px 24px; border: 1px dashed var(--border-strong); border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 20px; animation: fadeUp .6s var(--ease) both;
}
.projects-empty[hidden] { display: none; }
.project.fade-in { animation: fadeUp .6s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { font-size: 16px; color: #dcd8e8; line-height: 1.7; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 54px; line-height: .6; color: var(--purple-2); margin-bottom: 10px; font-family: Georgia, serif; }
.quote cite { font-style: normal; font-size: 14px; display: flex; align-items: center; gap: 12px; }
.quote cite b { display: block; font-weight: 500; }
.quote cite small { color: var(--dim); font-size: 12px; }
.quote .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.info-item {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .3s, transform .4s var(--ease);
}
.info-item:hover { border-color: rgba(164,100,255,.4); transform: translateX(4px); }
.info-item .card-icon { margin: 0; width: 46px; height: 46px; }
.info-item .card-icon svg { width: 20px; height: 20px; }
.info-item small { display: block; font-size: 12px; color: var(--dim); letter-spacing: 1px; text-transform: uppercase; }
.info-item span { font-size: 15px; }
.info-item .phones { display: flex; flex-direction: column; gap: 2px; }
.info-item .phones a { transition: color .3s; }
.info-item .phones a:hover { color: var(--purple-2); }

.form { 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: 13px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-strong);
  outline: none; transition: border-color .3s, box-shadow .3s, background .3s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%23a39fb4' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
.field select option { background: var(--surface); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--purple-2); background: rgba(139,61,255,.06);
  box-shadow: 0 0 0 4px rgba(139,61,255,.15);
}
.field.error input, .field.error textarea, .field.error select { border-color: #ff5c7a; }
.field .err { font-size: 12px; color: #ff7a93; min-height: 0; display: none; }
.field.error .err { display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 16px; border-radius: 100px; font-size: 13px;
  border: 1px solid var(--border-strong); color: var(--muted); transition: all .3s;
}
.chips input:checked + span { background: rgba(139,61,255,.2); border-color: var(--purple-2); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--purple-2); outline-offset: 2px; }
.form-error { margin-top: 12px; font-size: 13px; color: #ff7a93; }
.form-error a { text-decoration: underline; }
.form-error[hidden] { display: none; }
/* Honeypot field: off-screen for people, still present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success {
  display: none; text-align: center; padding: 48px 20px;
}
.form-success.show { display: block; animation: fadeUp .6s var(--ease); }
.form-success .card-icon { margin: 0 auto 20px; width: 64px; height: 64px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: rgba(164,100,255,.4); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; background: none; border: 0; cursor: pointer; text-align: left; font-size: 16px;
}
.faq-q i { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; transition: transform .4s var(--ease), background .3s; }
.faq-q i::before, .faq-q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--text); transform: translate(-50%, -50%); }
.faq-q i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq-item.open .faq-q i { background: var(--purple); border-color: var(--purple); }
.faq-item.open .faq-q i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }
.fade { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.fade.d1 { animation-delay: .35s; } .fade.d2 { animation-delay: .5s; } .fade.d3 { animation-delay: .65s; } .fade.d4 { animation-delay: .8s; }

/* Back to top */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(17,14,26,.8); backdrop-filter: blur(10px); cursor: pointer;
  display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--purple); }
.to-top svg { width: 16px; height: 16px; position: relative; z-index: 1; }
.to-top .progress { position: absolute; inset: -1px; transform: rotate(-90deg); width: 50px; height: 50px; }
.to-top .progress circle { fill: none; stroke: var(--purple-2); stroke-width: 2; stroke-dasharray: 150.8; stroke-dashoffset: 150.8; }

/* Video modal */
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px;
  background: rgba(3,2,6,.85); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  width: min(860px, 100%); aspect-ratio: 16/9; border-radius: 20px; position: relative;
  border: 1px solid var(--border-strong); overflow: hidden;
  background: radial-gradient(circle at 50% 50%, rgba(139,61,255,.35), #0b0912 70%);
  display: grid; place-items: center; text-align: center;
  transform: scale(.94); transition: transform .5s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--border-strong); cursor: pointer; font-size: 20px; line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-5 { grid-template-columns: repeat(2, 1fr); }
  .cards-5 .card, .cards-5 .card:nth-child(n+4) { grid-column: auto; }
  .cards-5 .card:last-child { grid-column: 1 / -1; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { height: 460px; }
  .robot-fit { scale: .74; }
  .robot-word { font-size: 48px; } .robot-word.w2 { font-size: 56px; }
  .orb { width: 340px; height: 340px; }
  .orb .ring { border-width: 38px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; z-index: 101; }
  .logo { position: relative; z-index: 101; }
  .nav-open .header { border-bottom-color: transparent; }
  .nav-links {
    position: fixed; inset: 0; z-index: 100;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: rgba(6,5,9,.97); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav-links a { font-size: 26px; transform: translateY(20px); transition: transform .5s var(--ease), color .3s; }
  .nav-open .nav-links { opacity: 1; visibility: visible; }
  .nav-open .nav-links a { transform: none; }
  .nav .nav-cta { display: none; }
  .hero-grid, .about-grid, .section-head, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-visual { height: 380px; order: -1; margin: -20px 0 -40px; }
  .robot-fit { scale: .68; left: 50%; top: 54%; }
  .robot-shadow { margin-left: 0; }
  .robot-glow { width: 320px; height: 320px; }
  .robot-shadow { width: 260px; top: 78%; }
  .robot-word { font-size: 40px; } .robot-word.w1 { left: 2%; top: 18%; } .robot-word.w2 { font-size: 46px; right: 4%; top: 40%; }
  .orb { width: 260px; height: 260px; }
  .orb .ring { border-width: 30px; }
  .orb-arc { width: 380px; height: 380px; } .orb-arc.a2 { width: 320px; height: 320px; }
  .hero-side-list, .watch { display: none; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .project, .project.reverse { grid-template-columns: 1fr; }
  .project.reverse .project-info { order: 0; }
  .project-info { padding: 32px 28px 8px; }
  .project-visual { min-height: 260px; }
  .values, .testimonials { grid-template-columns: 1fr; }
  .goal { padding: 48px 22px; }
  .service-row { grid-template-columns: 1fr; gap: 18px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .page-hero { padding: 150px 0 70px; }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .cards, .process, .footer-grid, .form, .checks { grid-template-columns: 1fr; }
  .stat { padding: 4px 16px; }
  .stat-num { font-size: 28px; }
  .hero-actions .btn { flex: 1; justify-content: center; }
  .project-info { padding: 28px 20px 4px; }
}

@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 { opacity: 1; transform: none; }
}


/* Header right-hand group (Let's Talk + mobile menu button) */
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Smooth colour change when the theme switches at 6 AM / 6 PM (added briefly by main.js) */
.theme-switching *, .theme-switching *::before, .theme-switching *::after {
  transition: background-color .4s ease, border-color .4s ease, color .4s ease, box-shadow .4s ease, fill .4s ease !important;
}

/* =========================================================
   Light theme
   ========================================================= */
:root { color-scheme: dark; }
[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f6fd;
  --bg-2: #f1edfb;
  --surface: #ffffff;
  --surface-2: #fcfbff;
  --border: rgba(76, 29, 149, 0.09);
  --border-strong: rgba(76, 29, 149, 0.18);
  --text: #1b0f3b;
  --muted: #5d5678;
  --dim: #8a84a3;
  --purple: #7c3aed;
  --purple-2: #7c3aed;
  --purple-3: #a78bfa;
  --purple-glow: rgba(124, 58, 237, 0.32);
  --shadow-soft: 0 18px 40px -24px rgba(76, 29, 149, 0.28);
}
[data-theme="light"] body {
  background:
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(167, 139, 250, 0.20), transparent 65%),
    radial-gradient(ellipse 45% 40% at 0% 35%, rgba(196, 181, 253, 0.18), transparent 70%),
    var(--bg);
}

/* Header + navigation */
[data-theme="light"] .header::before { background: rgba(255, 255, 255, 0.8); }
[data-theme="light"] .header.scrolled { box-shadow: 0 8px 30px -20px rgba(76, 29, 149, 0.35); }
[data-theme="light"] .btn.nav-cta { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -10px var(--purple-glow); }
@media (max-width: 900px) {
  [data-theme="light"] .nav-links { background: rgba(250, 248, 255, 0.97); }
}

/* Hero */
[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
  background:
    radial-gradient(ellipse 55% 55% at 78% 40%, rgba(167, 139, 250, 0.30), transparent 70%),
    radial-gradient(ellipse 40% 45% at 0% 100%, rgba(196, 181, 253, 0.25), transparent 70%);
}

/* Buttons, cards, panels */
[data-theme="light"] .btn-outline { background: #fff; }
[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .info-item,
[data-theme="light"] .faq-item { box-shadow: var(--shadow-soft); }
[data-theme="light"] .card:hover { box-shadow: 0 24px 50px -24px rgba(124, 58, 237, 0.35); }
[data-theme="light"] .card-icon { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.18); }
[data-theme="light"] .goal { box-shadow: 0 30px 70px -40px rgba(124, 58, 237, 0.45); }
[data-theme="light"] .goal-pillars span { color: var(--purple); background: rgba(124, 58, 237, 0.08); }
[data-theme="light"] .checks li { color: var(--text); }
[data-theme="light"] .quote blockquote { color: var(--text); }
[data-theme="light"] .tag-outcome { background: var(--grad); border-color: transparent; }
[data-theme="light"] .tag-outcome svg { color: #fff; }

/* Projects */
[data-theme="light"] .project { background: linear-gradient(120deg, #ffffff 0%, #ffffff 42%, #efe7ff 100%); box-shadow: var(--shadow-soft); }
[data-theme="light"] .project.reverse { background: linear-gradient(240deg, #ffffff 0%, #ffffff 42%, #efe7ff 100%); }

/* CTA banner */
[data-theme="light"] .cta {
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(167, 139, 250, 0.25), transparent 60%), #ffffff;
  box-shadow: var(--shadow-soft);
}

/* Forms */
[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select { background-color: #fff; }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus,
[data-theme="light"] .field select:focus { background-color: #fff; }
[data-theme="light"] .chips input:checked + span { color: var(--purple); background: rgba(124, 58, 237, 0.1); }
[data-theme="light"] .faq-item.open .faq-q i::before,
[data-theme="light"] .faq-item.open .faq-q i::after { background: #fff; }

/* Floating UI */
[data-theme="light"] .to-top { background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-soft); }
[data-theme="light"] .to-top:hover { color: #fff; }
[data-theme="light"] .watch-btn { background: #fff; }

/* ---------- Robot: white body, dark visor, glowing purple eyes ---------- */
[data-theme="light"] .robot-glow { background: radial-gradient(circle, rgba(167, 139, 250, 0.45), rgba(196, 181, 253, 0.15) 45%, transparent 70%); }
[data-theme="light"] .robot-shadow { background: radial-gradient(ellipse, rgba(76, 29, 149, 0.35), rgba(167, 139, 250, 0.18) 55%, transparent 72%); }
[data-theme="light"] .robot-word.w1 { background: linear-gradient(180deg, #2a1a52, #6b5f8c); -webkit-background-clip: text; background-clip: text; text-shadow: none; }

[data-theme="light"] .base .f-top,
[data-theme="light"] .tier2 .f-top,
[data-theme="light"] .tier3 .f-top {
  background:
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(167, 139, 250, 0.35), transparent 70%),
    linear-gradient(135deg, #ffffff, #f1ecfb 55%, #e6dcfa);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}
[data-theme="light"] .base .f-front, [data-theme="light"] .tier2 .f-front, [data-theme="light"] .tier3 .f-front,
[data-theme="light"] .base .f-back, [data-theme="light"] .tier2 .f-back, [data-theme="light"] .tier3 .f-back {
  background: linear-gradient(180deg, #ffffff 0, #efe9fa 30%, #dcd1f2 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(124, 58, 237, 0.10);
}
[data-theme="light"] .base .f-left, [data-theme="light"] .tier2 .f-left, [data-theme="light"] .tier3 .f-left,
[data-theme="light"] .base .f-right, [data-theme="light"] .tier2 .f-right, [data-theme="light"] .tier3 .f-right {
  background:
    linear-gradient(90deg, transparent 20%, rgba(167, 139, 250, 0.45) 55%, transparent 80%),
    linear-gradient(180deg, #f6f2fd 0, #e4dbf6 40%, #cfc2ec 100%);
  box-shadow: inset 0 1px 0 #fff;
}
[data-theme="light"] .base .f-bottom, [data-theme="light"] .tier2 .f-bottom, [data-theme="light"] .tier3 .f-bottom { background: #cbbfe6; }

[data-theme="light"] .neck .collar { background: linear-gradient(90deg, #d9cff0, #ffffff 40%, #f3eefc 55%, #d9cff0); }
[data-theme="light"] .neck .joint { background: radial-gradient(circle at 35% 30%, #ffffff, #c9b8f0 45%, #7c5cc4 85%); }
[data-theme="light"] .neck .stem { background: linear-gradient(90deg, #cfc3ea, #ffffff 50%, #cfc3ea); }

[data-theme="light"] .head .f-front {
  background: linear-gradient(160deg, #ffffff 0, #f3effc 45%, #e2d8f6 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12), inset 0 2px 0 #fff;
}
[data-theme="light"] .head .f-top { background: linear-gradient(180deg, #ffffff, #ece5fa); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12); }
[data-theme="light"] .head .f-left,
[data-theme="light"] .head .f-right,
[data-theme="light"] .head .f-back {
  background:
    radial-gradient(ellipse 60% 60% at 30% 30%, rgba(167, 139, 250, 0.35), transparent 70%),
    linear-gradient(180deg, #faf8ff, #ddd2f3);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.10);
}
[data-theme="light"] .head .f-left::after,
[data-theme="light"] .head .f-right::after {
  border-color: #8b5cf6; background: radial-gradient(circle, #ede6ff, #c4b5fd);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6), inset 0 0 6px rgba(76, 29, 149, 0.3);
}
[data-theme="light"] .head .f-bottom { background: #d4c8ee; }
[data-theme="light"] .head-screen {
  background: radial-gradient(ellipse at 50% 35%, #2a1d4f, #120a26 80%);
  box-shadow: inset 0 3px 12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(124, 58, 237, 0.25);
}
/* Happy arc-shaped eyes, like the mockup */
[data-theme="light"] .eye {
  background: transparent; border-radius: 50%;
  border: 5px solid transparent; border-top-color: #c4a8ff;
  box-shadow: none; filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.95));
}

/* =========================================================
   Home hero — centred text with the robot behind it
   ========================================================= */
.hero-center { position: relative; overflow: hidden; text-align: center; padding: 140px 0 90px; }
.hero-center .hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; margin-bottom: 30px;
  border-radius: 100px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.hero-badge b { padding: 4px 12px; border-radius: 100px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; }
.hero-center .hero-title { font-size: clamp(48px, 8vw, 112px); line-height: 1; letter-spacing: -2.5px; text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45); }
.hero-center .lead { max-width: 640px; margin: 28px auto 36px; font-size: 18px; }
.hero-center .hero-actions { justify-content: center; }

/* Backdrop layers: horizon glow → robot → soft shade under the text */
.hero-backdrop { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-horizon {
  position: absolute; left: 50%; top: 66%; width: 2000px; height: 2000px; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, rgba(139, 61, 255, 0.55), rgba(76, 29, 149, 0.32) 18%, rgba(12, 6, 26, 0.95) 42%, var(--bg) 60%);
  border-top: 1px solid rgba(201, 163, 255, 0.55);
  box-shadow: 0 -40px 140px rgba(139, 61, 255, 0.45);
}
.hero-backdrop .robot-stage { opacity: 1; }
.hero-backdrop .robot-fit { left: 50%; top: 58%; scale: 1.25; }
.hero-backdrop .robot-glow { top: 50%; width: 620px; height: 620px; }
.hero-backdrop .robot-shadow { top: 80%; width: 460px; }
.hero-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 48% 42% at 50% 46%, rgba(6, 5, 9, 0.35), transparent 72%);
}

[data-theme="light"] .hero-badge { background: rgba(255, 255, 255, 0.75); }
/* Keep dark headline text readable over the robot's dark visor */
[data-theme="light"] .hero-backdrop .robot-stage { opacity: 0.5; }
[data-theme="light"] .hero-center .hero-title { text-shadow: 0 8px 40px rgba(255, 255, 255, 0.7); }
[data-theme="light"] .hero-horizon {
  background: radial-gradient(circle at 50% 0%, rgba(167, 139, 250, 0.55), rgba(196, 181, 253, 0.35) 18%, rgba(248, 246, 253, 0.95) 42%, var(--bg) 60%);
  border-top-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 -40px 140px rgba(167, 139, 250, 0.45);
}
[data-theme="light"] .hero-scrim { background: radial-gradient(ellipse 48% 42% at 50% 46%, rgba(248, 246, 253, 0.45), transparent 72%); }

@media (max-width: 900px) {
  .hero-center { padding: 120px 0 70px; min-height: 92vh; }
  .hero-backdrop .robot-fit { scale: 0.85; top: 60%; }
  .hero-horizon { top: 72%; width: 1400px; height: 1400px; }
}
@media (max-width: 560px) {
  .hero-center .hero-title { letter-spacing: -1.5px; }
  .hero-center .lead { font-size: 16px; }
  .hero-backdrop .robot-fit { scale: 0.62; }
  .hero-backdrop .robot-shadow { width: 260px; }
}

/* Inner pages (About, Services, Work, Contact): same centred hero, a little shorter */
.page-hero.hero-center { min-height: 84vh; display: flex; align-items: center; padding: 150px 0 90px; }
.page-hero.hero-center .hero-content { width: 100%; }
.page-hero.hero-center h1 { font-size: clamp(42px, 6.6vw, 92px); line-height: 1.05; letter-spacing: -2px; text-shadow: 0 8px 40px rgba(0, 0, 0, 0.45); }
.page-hero.hero-center .robot-fit { scale: 1.1; top: 60%; }
[data-theme="light"] .page-hero.hero-center h1 { text-shadow: 0 8px 40px rgba(255, 255, 255, 0.7); }
@media (max-width: 900px) {
  .page-hero.hero-center { min-height: 78vh; padding: 120px 0 70px; }
  .page-hero.hero-center .robot-fit { scale: 0.8; }
}
@media (max-width: 560px) {
  .page-hero.hero-center h1 { letter-spacing: -1px; }
  .page-hero.hero-center .robot-fit { scale: 0.6; }
}

/* =========================================================
   Home "About Us" statement — words light up while scrolling
   ========================================================= */
.about-statement { text-align: center; padding: 80px 0; }
.about-statement .container { display: flex; flex-direction: column; align-items: center; }
.about-statement .hero-badge { margin-bottom: 34px; }
.hero-badge .badge-icon { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; }
.hero-badge .badge-icon svg { width: 15px; height: 15px; }
.statement {
  max-width: 1120px; margin: 0 auto 44px;
  font-size: clamp(28px, 4vw, 54px); line-height: 1.28; font-weight: 400; letter-spacing: -0.6px;
  color: var(--text); hyphens: manual;
}
.statement .w { opacity: 0.22; transition: opacity 0.35s ease; }
/* Pure white on the dark theme, pure black on the light theme */
.statement { color: #ffffff; }
[data-theme="light"] .statement { color: #000000; }
.statement .w.on { opacity: 1; }
.btn-glow { padding: 16px 30px; font-size: 15px; box-shadow: 0 0 0 1px rgba(201, 163, 255, 0.25), 0 12px 40px -6px var(--purple-glow), 0 0 60px -10px var(--purple-glow); }
.btn-glow:hover { box-shadow: 0 0 0 1px rgba(201, 163, 255, 0.4), 0 16px 50px -6px var(--purple-glow), 0 0 80px -10px var(--purple-glow); }
.btn-glow svg { width: 17px; height: 17px; }
.btn-glow:hover svg { transform: none; }
@media (max-width: 900px) { .about-statement { padding: 60px 0; } }

/* =========================================================
   Booking calendar pop-up ("Book A Strategy Call")
   ========================================================= */
.booking-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px;
  background: rgba(3, 2, 6, 0.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s;
}
.booking-modal.open { opacity: 1; visibility: visible; }
.booking-panel {
  width: min(1180px, 100%); height: min(760px, calc(100vh - 48px)); display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden; background: var(--surface);
  border: 1px solid rgba(164, 100, 255, 0.35); box-shadow: 0 40px 120px -30px var(--purple-glow);
  transform: translateY(16px) scale(.98); transition: transform .45s var(--ease);
}
.booking-modal.open .booking-panel { transform: none; }
.booking-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 24px; border-bottom: 1px solid var(--border); }
.booking-title { font-weight: 600; margin-right: auto; }
.booking-newtab { font-size: 13px; color: var(--purple-2); }
.booking-newtab:hover { text-decoration: underline; }
.booking-close {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.booking-close:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.booking-body { position: relative; flex: 1; background: var(--bg-2); }
.booking-body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s; }
.booking-modal.loaded .booking-body iframe { opacity: 1; }
.booking-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center !important; }
.booking-modal.loaded .booking-loading { display: none; }
@media (max-width: 700px) {
  .booking-modal { padding: 0; }
  .booking-panel { height: 100%; border-radius: 0; border: 0; }
  .booking-newtab { display: none; }
}

/* =========================================================
   "Our Tech Foundation" — logos orbiting the heading
   ========================================================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tech-orbit {
  --r: 640px; --tile: 108px; --logo: none;
  position: relative; height: 780px; overflow: hidden; text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 45% 55% at 50% 100%, rgba(123, 47, 247, 0.16), transparent 70%);
}
.orbit-wrap { position: absolute; inset: 0; pointer-events: none; }
/* Zero-size ring at the bottom-centre; tiles sit on a circle around it and the ring turns slowly */
.orbit-ring {
  position: absolute; left: 50%; top: 100%; width: 0; height: 0; margin: 0; padding: 0; list-style: none;
  animation: spin 90s linear infinite;
}
.tech-tile {
  position: absolute; left: calc(var(--tile) / -2); top: calc(var(--tile) / -2);
  width: var(--tile); height: var(--tile); border-radius: 26px; display: grid; place-items: center;
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
  background: linear-gradient(160deg, #1a1426, #0b0912);
  border: 1px solid rgba(164, 100, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 46px -8px rgba(139, 61, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  pointer-events: auto;
}
.tech-logo {
  width: 46%; height: 46%; display: block;
  background: linear-gradient(135deg, #c9a3ff, #8b3dff);
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
}
.tech-orbit:hover .orbit-ring { animation-play-state: paused; }

.orbit-content {
  position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 760px;
}
.orbit-content::before {   /* soft shade so the heading stays readable over the logos */
  content: ""; position: absolute; inset: -60px -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--bg) 35%, transparent 72%);
}
.orbit-content .hero-badge { margin-bottom: 26px; }
.orbit-content h2 { font-size: clamp(40px, 6vw, 80px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 600; }
.orbit-content p { margin-top: 22px; max-width: 640px; color: var(--muted); font-size: 18px; }

[data-theme="light"] .tech-tile {
  background: linear-gradient(160deg, #ffffff, #f3eefc);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 18px 40px -16px rgba(124, 58, 237, 0.45), 0 0 36px -10px rgba(167, 139, 250, 0.7);
}
[data-theme="light"] .tech-logo { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }

@media (max-width: 900px) {
  /* Bigger circle relative to the screen: logos orbit across the top, above the heading */
  .tech-orbit { --r: 620px; --tile: 80px; height: 720px; }
  .orbit-content { top: 62%; }
  .orbit-content p { font-size: 16px; }
}
@media (max-width: 560px) {
  .tech-orbit { --r: 470px; --tile: 64px; height: 560px; }
  .tech-tile { border-radius: 18px; }
  .orbit-content { top: 62%; padding: 0 16px; }
  .orbit-content::before { inset: -30px -10px; }
}

/* =========================================================
   Work page — case-study cards (highlights + screenshot)
   ========================================================= */
.project.case {
  grid-template-columns: 1fr 1.05fr; gap: 24px; padding: 24px; min-height: 0; align-items: stretch;
  border-radius: 30px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.008));
}
.case-info {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 44px 44px 36px; border-radius: 22px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
}
.case-info::before {            /* glowing accent line along the top */
  content: ""; position: absolute; top: 0; left: 8%; right: 8%; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--grad); box-shadow: 0 0 18px var(--purple-glow);
}
.case-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.case-pill {
  padding: 8px 18px; border-radius: 100px; font-size: 15px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.6), rgba(192, 132, 252, 0.35));
  border: 1px solid rgba(201, 163, 255, 0.35);
}
.case-head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.2; }
.project.case .case-sub { margin: 16px 0 28px; font-size: 18px; color: var(--muted); }
.case-points { list-style: none; display: flex; flex-direction: column; gap: 20px; margin: 0 0 32px; }
.case-points li { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; line-height: 1.6; color: var(--text); }
.case-check {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; margin-top: -3px;
  background: var(--grad); color: #fff; box-shadow: 0 6px 18px -6px var(--purple-glow);
}
.case-check svg { width: 16px; height: 16px; }
.case-info .tags { margin-top: auto; }
.case-visual { position: relative; min-height: 460px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(ellipse at 70% 30%, #e9defc, transparent 60%), linear-gradient(180deg, #f7f4fd, #ece6fa); }
/* Show the whole screenshot (laptop + phone), never cropped */
.case-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.project.case:hover .case-visual img { transform: scale(1.03); }
.case-caption {
  position: absolute; left: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 9, 20, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.case-caption b { color: #fff; font-size: 17px; font-weight: 600; }
.case-caption span { color: rgba(255, 255, 255, 0.72); font-size: 13px; }
/* On devices with a mouse, the caption appears on hover (or keyboard focus) */
@media (hover: hover) {
  .case-caption { opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
  .project.case:hover .case-caption, .project.case:focus-within .case-caption { opacity: 1; transform: none; }
}

[data-theme="light"] .project.case { background: rgba(255, 255, 255, 0.6); box-shadow: var(--shadow-soft); }
[data-theme="light"] .case-info { background: linear-gradient(180deg, #ffffff, #faf8ff); }
[data-theme="light"] .case-pill { background: var(--grad); border-color: transparent; }

@media (max-width: 900px) {
  .project.case { grid-template-columns: 1fr; padding: 16px; border-radius: 24px; }
  .case-info { padding: 34px 26px 28px; }
  .case-visual { min-height: 320px; }
}
@media (max-width: 560px) {
  .case-points li { font-size: 15px; gap: 12px; }
  .case-check { width: 28px; height: 28px; }
  .case-check svg { width: 14px; height: 14px; }
  .project.case .case-sub { font-size: 16px; }
  .case-visual { min-height: 260px; }
  .case-caption { left: 10px; bottom: 10px; padding: 7px 12px; border-radius: 12px; }
  .case-caption b { font-size: 13px; }
  .case-caption span { font-size: 11px; }
}

/* =========================================================
   Services page — moving strip of service cards
   ========================================================= */
.page-hero.hero-center.has-marquee { flex-direction: column; justify-content: center; gap: 56px; }
.svc-marquee {
  position: relative; z-index: 2; width: 100%; overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.svc-track { display: flex; gap: 20px; width: max-content; animation: svcScroll 40s linear infinite; }
.svc-marquee:hover .svc-track { animation-play-state: paused; }
@keyframes svcScroll { to { transform: translateX(calc(-50% - 10px)); } }   /* half the track = one full set */

.svc-card {
  position: relative; flex: 0 0 260px; height: 190px; overflow: hidden; display: block;
  border-radius: 18px; border: 1px solid rgba(164, 100, 255, 0.22);
  background: linear-gradient(160deg, #15101f, #09070e);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.svc-card::before, .svc-card::after {          /* diagonal stripes on both edges */
  content: ""; position: absolute; top: 0; bottom: 0; width: 20px; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(164, 100, 255, 0.28) 0 2px, transparent 2px 9px);
}
.svc-card::before { left: 0; }
.svc-card::after { right: 0; }
.svc-ghost {
  position: absolute; top: 12px; left: 26px; right: 26px; text-align: left;
  font-size: 27px; line-height: 1.05; font-weight: 500; letter-spacing: -0.5px;
  color: rgba(164, 100, 255, 0.26); transition: color .35s;
}
.svc-name {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 78%;
  text-align: center; font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--text);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8); transition: color .35s;
}
.svc-icon { position: absolute; right: 30px; bottom: 16px; width: 52px; height: 52px; }
.svc-icon svg { width: 100%; height: 100%; stroke: var(--purple-2); fill: none; }
.svc-card:hover, .svc-card:focus-visible {
  border-color: var(--purple-2); transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(164, 100, 255, 0.35), 0 0 36px -6px var(--purple-glow), inset 0 0 30px -12px var(--purple-glow);
}
.svc-card:hover .svc-name, .svc-card:focus-visible .svc-name { color: var(--purple-3); }
.svc-card:hover .svc-ghost { color: rgba(164, 100, 255, 0.42); }

[data-theme="light"] .svc-card { background: linear-gradient(160deg, #ffffff, #f4effd); border-color: rgba(124, 58, 237, 0.2); box-shadow: var(--shadow-soft); }
[data-theme="light"] .svc-ghost { color: rgba(124, 58, 237, 0.18); }
[data-theme="light"] .svc-name { text-shadow: 0 2px 10px rgba(255, 255, 255, 0.9); }
[data-theme="light"] .svc-card:hover .svc-name { color: var(--purple); }

@media (max-width: 560px) {
  .page-hero.hero-center.has-marquee { gap: 36px; }
  .svc-card { flex-basis: 210px; height: 160px; }
  .svc-ghost { font-size: 22px; left: 22px; }
  .svc-icon { width: 42px; height: 42px; right: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-marquee { overflow-x: auto; }   /* no auto-scroll: let people swipe instead */
}

/* =========================================================
   Home "Portfolio" — fanned project cards
   ========================================================= */
.portfolio-fan {
  text-align: center; overflow: hidden; padding-bottom: 60px;
  background: radial-gradient(ellipse 50% 45% at 50% 100%, rgba(123, 47, 247, 0.18), transparent 70%);
}
.fan-head { display: flex; flex-direction: column; align-items: center; }
.fan-head .hero-badge { margin-bottom: 26px; }
.fan-head h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -1px; font-weight: 600; }
.fan-head p { max-width: 620px; margin: 20px auto 32px; color: var(--muted); font-size: 18px; }

/* Sized by the cards themselves (no fixed height), so the fan sits right under the button */
.fan { display: flex; justify-content: center; align-items: center; margin-top: 28px; padding: 10px 16px 46px; }
.fan-card {
  position: relative; flex-shrink: 0; display: block; width: 340px; height: 265px; margin: 0 -30px;
  border-radius: 28px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.75);
  transition: transform .6s var(--ease), box-shadow .4s, filter .4s;
}
.fan-card img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.fan-card.c1 { background: linear-gradient(160deg, #a78bfa 0%, #ede9fe 72%); transform: rotate(-10deg) translateY(34px); z-index: 1; }
.fan-card.c2 { background: linear-gradient(160deg, #60a5fa 0%, #e0f2fe 72%); transform: translateY(0); z-index: 2; }
.fan-card.c3 { background: linear-gradient(160deg, #f472b6 0%, #fde2ef 72%); transform: rotate(10deg) translateY(34px); z-index: 1; }
/* Hovering the fan spreads the cards; the hovered card straightens and lifts */
.fan:hover .fan-card.c1 { transform: rotate(-13deg) translate(-56px, 40px); }
.fan:hover .fan-card.c3 { transform: rotate(13deg) translate(56px, 40px); }
.fan:hover .fan-card:hover, .fan .fan-card:focus-visible.fan-card {   /* outranks the 'spread' rule above */
  transform: rotate(0) translateY(-18px) scale(1.04); z-index: 3;
  box-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--purple-glow);
}
.fan-label {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); white-space: nowrap;
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 600; color: #fff;
  background: rgba(12, 9, 20, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .35s, transform .4s var(--ease);
}
.fan-card:hover .fan-label, .fan-card:focus-visible .fan-label { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .fan-label { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 900px) {
  .fan-card { width: 260px; height: 205px; margin: 0 -36px; }
}
@media (max-width: 560px) {
  .fan { margin-top: 20px; padding-bottom: 30px; }
  .fan-card { width: 175px; height: 140px; margin: 0 -30px; border-radius: 20px; }
  .fan-card img { padding: 8px; }
  .fan-label { font-size: 10px; padding: 5px 10px; bottom: 8px; }
  .fan-head p { font-size: 16px; }
}
