:root {
  --primary: #f7941d;
  --primary-2: #ffb347;
  --dark: #2f2f3a;
  --text: #555566;
  --bg: #ffffff;
  --soft: #fff6ea;
  --radius: 22px;
  --shadow: 0 15px 40px rgba(247, 148, 29, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.grad {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 15px;
  transition: .3s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
}
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(247,148,29,.35); }
.btn-ghost { border-color: var(--primary); color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; }
.btn-nav { background: #ffd79a; color: var(--dark); padding: 8px 22px; font-size: 14px; }
.btn-nav:hover { background: var(--primary); color: #fff; }

/* ---------- Navbar ---------- */
.nav-wrap { position: fixed; top: 18px; left: 0; right: 0; z-index: 100; }
.nav {
  width: min(1180px, 100% - 32px);
  margin: auto;
  background: rgba(240, 240, 240, .85);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 10px 14px 10px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: .3s;
}
.nav.scrolled { background: rgba(255,255,255,.95); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.logo { display: flex; align-items: center; }
.logo { gap: 10px; }
.logo img { height: 42px; width: 42px; object-fit: contain; display: block; }
.orbit-core { background: #fff !important; }
.orbit-core img { width: 62%; height: 62%; object-fit: contain; }
.logo-text { font-size: 26px; font-weight: 700; color: #2f2f3a; letter-spacing: -0.5px; white-space: nowrap; }
.logo-text b { color: var(--primary); }
.logo-text.light { color: #fff; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; color: #555; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px;
  background: var(--primary); transition: .3s;
}
.nav-links a:hover::after { width: 100%; }
.burger { display: none; background: none; border: 0; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 110px; }
.blob { position: absolute; border-radius: 50%; filter: blur(10px); z-index: -1; }
.blob-1 { width: 520px; height: 520px; right: -160px; top: -120px; background: radial-gradient(circle, #ffe2b8, #fff3e0 70%); }
.blob-2 { width: 320px; height: 320px; left: -120px; bottom: -80px; background: radial-gradient(circle, #ffedd2, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--primary); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.hero h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.15; color: var(--dark); font-weight: 700; }
/* the typed word always sits on its own line with a fixed height, so the headline stays 3 lines
   while words are typed and deleted (no jumping of the hero or the 3D banner) */
.hero h1 #typed { display: block; white-space: nowrap; min-height: 1.15em; text-align: left; }
/* where the hero text is centred, the typed word sits in a fixed-width box (the widest word, set by
   script.js) so letters appear from the left instead of the whole word re-centring on every letter */
@media (max-width: 900px) {
  .hero h1 #typed { width: var(--typed-w, auto); max-width: 100%; margin-inline: auto; }
}
.lead { font-size: 17px; margin: 20px 0 30px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.orbit { position: relative; width: 420px; height: auto; margin: auto; max-width: 100%; aspect-ratio: 1; }
.orbit-ring { position: absolute; inset: 0; border: 2px dashed #ffc98a; border-radius: 50%; animation: spin 30s linear infinite; }
.orbit-core {
  position: absolute; inset: 25%; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: grid; place-items: center; color: #fff; font-size: 90px; font-weight: 800;
  box-shadow: 0 30px 60px rgba(247,148,29,.4), inset 0 -10px 30px rgba(0,0,0,.1);
  animation: float 5s ease-in-out infinite;
}
.chip {
  position: absolute; background: #fff; padding: 10px 18px; border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,.1); font-weight: 500; color: var(--dark); font-size: 14px;
  animation: float 4s ease-in-out infinite;
}
/* 5 chips evenly spaced (72° apart) on the dashed ring */
.orbit { --r: 50%; }
.chip {
  left: calc(50% + var(--r) * cos(var(--a)));
  top: calc(50% + var(--r) * sin(var(--a)));
  translate: -50% -50%;
  white-space: nowrap;
}
.c1 { --a: -90deg; }                              /* Games    – top          */
.c2 { --a: -18deg;  animation-delay: .8s; }       /* Apps     – upper right  */
.c5 { --a: 54deg;   animation-delay: 1.6s; }      /* Web      – lower right  */
.c4 { --a: 126deg;  animation-delay: 2.4s; }      /* Design   – lower left   */
.c3 { --a: 198deg;  animation-delay: 3.2s; }      /* Software – upper left   */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.title { text-align: center; font-size: clamp(28px, 4vw, 44px); color: #6b6b78; font-weight: 700; line-height: 1.2; margin-bottom: 55px; }
.title.left { text-align: left; margin-bottom: 10px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-art { position: relative; height: 340px; display: grid; place-items: center; }
.ring-3d {
  width: 230px; height: 230px; border-radius: 50%;
  border: 34px solid #e6e6e6; position: relative;
  box-shadow: 0 25px 40px rgba(0,0,0,.12), inset 0 8px 15px rgba(0,0,0,.08);
  animation: float 5s ease-in-out infinite;
}
.ring-top {
  position: absolute; inset: -34px; border-radius: 50%;
  border: 34px solid transparent; border-top-color: var(--primary);
}
.cubes { position: absolute; bottom: 20px; display: flex; gap: 22px; }
.cubes span {
  width: 30px; height: 30px; background: linear-gradient(135deg, #f4a340, #c9741a);
  border-radius: 5px; box-shadow: 0 8px 14px rgba(0,0,0,.15); animation: float 3s ease-in-out infinite;
}
.cubes span:nth-child(2) { animation-delay: .4s; } .cubes span:nth-child(3) { animation-delay: .8s; }
.cubes span:nth-child(4) { animation-delay: 1.2s; } .cubes span:nth-child(5) { animation-delay: 1.6s; }
.about-card {
  background: linear-gradient(180deg, #fff3df, #ffd9a0);
  padding: 40px; border-radius: 30px; color: #222; font-size: 16px; text-align: justify;
}

/* ---------- Services slider ---------- */
.services { background: var(--soft); }
.slider { position: relative; display: flex; align-items: center; gap: 10px; }
.track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 20px 5px 30px; scrollbar-width: none; flex: 1; }
.track::-webkit-scrollbar { display: none; }
.svc-card {
  flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start;
  background: #fff; border-radius: var(--radius); padding: 36px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06); transition: .35s;
}
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.svc-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; font-size: 30px; margin-bottom: 20px; }
.svc-card h3 { color: var(--dark); font-size: 20px; margin-bottom: 10px; }
.more { color: var(--primary); font-weight: 600; display: inline-block; margin-top: 14px; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.1); font-size: 26px; color: var(--primary); cursor: pointer; flex-shrink: 0; transition: .3s;
}
.arrow:hover { background: var(--primary); color: #fff; }

/* ---------- Portfolio ---------- */
.tabs { display: flex; justify-content: center; gap: 10px; margin: -25px 0 40px; }
.tab { border: 0; background: #f2f2f4; padding: 9px 24px; border-radius: 30px; font-family: inherit; cursor: pointer; font-size: 14px; transition: .3s; }
.tab.active, .tab:hover { background: var(--primary); color: #fff; }
.grid-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.p-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.06); text-align: center; transition: .35s; }
.p-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow); }
.p-card.hide { display: none; }
.p-thumb { height: 190px; border-radius: 16px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; font-size: 70px; margin-bottom: 16px; }
.p-card h4 { color: var(--dark); font-size: 18px; }
.dl { color: var(--primary); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Awards ---------- */
.awards { background: var(--soft); }
.awards-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.award { background: #fff; border-radius: var(--radius); padding: 34px 20px; text-align: center; transition: .3s; }
.award:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.trophy { font-size: 52px; margin-bottom: 10px; }
.award h4 { color: var(--dark); }

/* ---------- Tech marquee ---------- */
.tech .title { margin-bottom: 40px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; animation: marquee 35s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 16px 34px; border-radius: 16px; background: #fff; border: 1px solid #f0e3d0;
  font-weight: 600; color: var(--dark); white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.04);
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee + .marquee { margin-top: 20px; }
.marquee-track { padding: 4px 0; }
.marquee-track.reverse { animation-direction: reverse; }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: center; padding: 40px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff6ea, #ffe2b8);
}
.stat h3 { font-size: 46px; color: var(--primary); font-weight: 800; }
.stat p { color: var(--dark); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Career ---------- */
.career-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.career-card { padding: 50px 40px; border-radius: 30px; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.career-card h3 { font-size: 28px; margin-bottom: 10px; }
.career-card p { margin-bottom: 24px; }
.career-card .btn-primary { background: #fff; color: var(--primary); }
.career-card.alt { background: #2f2f3a; }
.career-card.alt .btn-ghost { border-color: #fff; color: #fff; }
.career-card.alt .btn-ghost:hover { background: #fff; color: var(--dark); }

/* ---------- Contact ---------- */
.contact { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.info { list-style: none; display: grid; gap: 10px; color: var(--dark); font-weight: 500; }
.form { background: #fff; padding: 36px; border-radius: 30px; box-shadow: 0 15px 40px rgba(0,0,0,.06); display: grid; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 18px; border-radius: 14px; border: 1px solid #eee; background: #fafafa;
  font-family: inherit; font-size: 15px; outline: none; transition: .3s;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--primary); background: #fff; }
.form-msg { color: #10b981; font-weight: 500; min-height: 1em; }

/* ---------- Footer ---------- */
.footer { background: #2f2f3a; color: #c9c9d3; padding: 50px 0 20px; }
.footer .logo { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; font-weight: 600; transition: .3s; }
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 30px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 14px; }

/* ---------- Additions ---------- */
.sub { text-align: center; max-width: 720px; margin: -35px auto 40px; }
.trust { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.trust-item { background: #fff; padding: 12px 20px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.07); }
.trust-item p { font-size: 13px; margin: 0; }
.trust-item b.big { font-size: 26px; color: var(--primary); line-height: 1; }
.stars { color: #fbbf24; letter-spacing: 2px; }

.highlights { margin-top: -40px; position: relative; z-index: 2; }
.hl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hl { background: #fff; border-radius: var(--radius); padding: 22px 24px; display: flex; gap: 14px; align-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.07); }
.hl span { font-size: 28px; width: 54px; height: 54px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; flex-shrink: 0; }
.hl h4 { color: var(--dark); font-size: 16px; }

.about-card h3 { color: var(--dark); font-size: 22px; line-height: 1.35; margin-bottom: 12px; text-align: left; }
.ticks { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.ticks li::before { content: "✔"; color: var(--primary); margin-right: 10px; font-weight: 700; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 60px; }
.mission { background: #fff; border: 1px solid #f3e6d4; border-radius: var(--radius); padding: 34px; }
.mission h3 { color: var(--dark); font-size: 19px; margin-bottom: 10px; line-height: 1.4; }
.bars { display: grid; gap: 16px; margin-top: 20px; }
.bar { display: grid; grid-template-columns: 1fr auto; font-size: 14px; color: var(--dark); font-weight: 500; }
.bar i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #f2f2f4; margin-top: 6px; position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-2)); border-radius: 8px; transition: width 1.6s ease; }
.show .bar i::after { width: var(--w); }

.svc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.num { font-size: 40px; font-weight: 800; color: #f3e6d4; line-height: 1; }

.grid-portfolio .p-card { text-align: left; display: flex; flex-direction: column; }
.grid-portfolio .p-card.hide { display: none; }
.p-thumb { overflow: hidden; background: var(--soft); }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.p-card:hover .p-thumb img { transform: scale(1.08); }
.p-tag { align-self: flex-start; font-size: 12px; font-weight: 600; background: #e0f2fe; color: #0369a1; padding: 3px 12px; border-radius: 20px; margin-bottom: 8px; }
.p-tag.game { background: #fde7d2; color: #c2410c; }
.p-card p { font-size: 14px; margin: 6px 0 14px; flex: 1; }
.play { color: var(--primary); font-weight: 600; font-size: 14px; }
.award p { font-size: 14px; margin-top: 8px; }

.team-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.member { text-align: center; background: #fff; border-radius: var(--radius); padding: 24px 18px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.06); transition: .35s; }
.member:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.avatar { width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: linear-gradient(180deg, #fff6ea, #ffd9a0); margin-bottom: 16px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Leadership photos: every head is sized and placed the same way —
   top of hair ~3% from the top, chin ~69%, face centered left-to-right.
   width/left/top are % of the square avatar; each value comes from where the
   face sits in that particular photo. */
.avatar.face-fit { position: relative; }
.avatar.face-fit img { position: absolute; height: auto; max-width: none; object-fit: fill; }
.avatar img.photo-yousaf { width: 124.5%; left: -11.9%; top: -18.5%; }
.avatar img.photo-aamir  { width: 183.3%; left: -35.2%; top: -31.8%; }
.avatar img.photo-mujeeb { width: 138.7%; left: -21.4%; top: 0; }
.avatar img.photo-ahsan  { width: 106%;   left: 0;      top: -26.7%; }
.member h4 { color: var(--dark); font-size: 18px; }
.member p { color: var(--primary); font-weight: 500; font-size: 14px; }

.testimonials { background: var(--soft); }
.testi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.testi { background: #fff; border-radius: var(--radius); padding: 30px; position: relative; }
.testi::before { content: "“"; position: absolute; top: -10px; right: 24px; font-size: 90px; color: #ffe2b8; font-family: Georgia, serif; }
.testi p { font-style: italic; margin-bottom: 14px; }
.testi cite { font-style: normal; font-size: 14px; }
.testi cite b { display: block; color: var(--dark); font-size: 16px; }

.perks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.perks span { background: #fff; padding: 8px 16px; border-radius: 30px; font-size: 14px; font-weight: 500; color: var(--dark); }
.info a:hover { color: var(--primary); }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.footer .logo img { background: #fff; border-radius: 12px; padding: 5px; width: 46px; height: 46px; }
.footer h5 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--primary); }
.f-about { margin-top: 14px; font-size: 14px; }
.footer p { font-size: 14px; margin-bottom: 10px; }

@media (max-width: 992px) {
  .hl-row, .mission-grid, .testi-row { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust { justify-content: center; }
  .highlights { margin-top: 0; }
}
@media (max-width: 600px) {
  .team-row, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { text-align: center; }
  .sub { margin-top: -25px; }
}

/* ---------- Multi-page additions ---------- */
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { width: 100%; }
.mobile-only { display: none; }
.mt { margin-top: 24px; }
.center { text-align: center; }
.narrow { width: min(820px, 100% - 32px); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,.15); }

.page-hero { position: relative; overflow: hidden; padding: 170px 0 80px; text-align: center; background: linear-gradient(180deg, #fff, var(--soft)); }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); color: var(--dark); line-height: 1.2; }
.page-hero .lead { margin: 16px auto 0; max-width: 680px; }
.crumb { font-size: 14px; color: var(--primary); font-weight: 500; margin-bottom: 10px; }
.crumb a { color: #888; }
.crumb a:hover { color: var(--primary); }
.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.jump a { background: #fff; padding: 9px 20px; border-radius: 30px; font-size: 14px; font-weight: 500; color: var(--dark); box-shadow: 0 6px 18px rgba(0,0,0,.06); transition: .3s; }
.jump a:hover { background: var(--primary); color: #fff; }

/* Legal pages (Privacy / Terms) */
.legal { padding: 70px 0 100px; }
.legal h2 { font-size: clamp(20px, 2.4vw, 26px); color: var(--dark); margin: 42px 0 12px; line-height: 1.3; }
.legal h3 { font-size: 18px; color: var(--dark); margin: 24px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 0 0 16px 22px; display: grid; gap: 6px; }
.legal li { list-style: disc; }
.legal a { color: var(--primary); }
.legal a:hover { text-decoration: underline; }
.legal .meta { font-size: 14px; color: #888; margin-bottom: 20px; }
.legal .partners { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.legal .partners li { list-style: none; }
.legal .partners a { display: inline-block; background: var(--soft); padding: 6px 14px; border-radius: 30px; font-size: 13px; color: var(--dark); }
.legal .partners a:hover { background: var(--primary); color: #fff; text-decoration: none; }
.legal .contact-box { background: var(--soft); border-radius: var(--radius); padding: 26px 28px; margin-top: 16px; }
.legal .contact-box p { margin-bottom: 6px; }

.cta-band { padding: 70px 0; }
.cta-inner { background: linear-gradient(135deg, var(--primary), var(--primary-2)); border-radius: 30px; padding: 50px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: #fff; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin-bottom: 6px; }

.svc-list { display: grid; gap: 50px; }
.svc-detail { display: grid; grid-template-columns: 340px 1fr; gap: 50px; align-items: center; scroll-margin-top: 110px; }
.svc-detail.reverse { grid-template-columns: 1fr 340px; }
.svc-detail.reverse .svc-art { order: 2; }
.svc-art { position: relative; aspect-ratio: 1; border-radius: 30px; background: linear-gradient(160deg, #fff6ea, #ffd9a0); display: grid; place-items: center; }
.big-ico { font-size: 110px; animation: float 5s ease-in-out infinite; }
.big-num { position: absolute; top: 18px; left: 24px; font-size: 54px; font-weight: 800; color: rgba(255,255,255,.85); }
.svc-detail h2 { color: var(--dark); font-size: 30px; margin-bottom: 12px; }
.ticks.two { grid-template-columns: 1fr 1fr; gap: 8px 20px; }

.faq { display: grid; gap: 14px; }
.faq-item { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.05); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 56px 20px 24px; font: 600 16px "Poppins", sans-serif; color: var(--dark); cursor: pointer; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); transition: .3s; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; padding: 0 24px; transition: .35s ease; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { background: #fff; border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; transition: .3s; }
.role:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.role span { font-size: 30px; width: 60px; height: 60px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; flex-shrink: 0; }
.role h4 { color: var(--dark); }
.role p { font-size: 14px; }

.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.c-card { background: #fff; border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 4px; transition: .3s; }
.c-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.c-card span { font-size: 34px; }
.c-card h4 { color: var(--dark); margin-bottom: 4px; }
.c-card a { font-size: 14px; word-break: break-word; }
.c-card a:hover { color: var(--primary); }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; filter: grayscale(.2); }
.tabs-top { margin-top: 0; }

@media (max-width: 992px) {
  .mobile-only { display: block; }
  .svc-detail, .svc-detail.reverse { grid-template-columns: 1fr; gap: 24px; }
  .svc-detail.reverse .svc-art { order: 0; }
  .svc-art { max-width: 300px; width: 100%; margin: auto; }
  .roles, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; padding: 40px 28px; }
}
@media (max-width: 600px) {
  .page-hero { padding: 140px 0 60px; }
  .ticks.two, .roles, .contact-cards { grid-template-columns: 1fr; }
  .big-ico { font-size: 80px; }
}

/* ---------- Home page refresh (match design) ---------- */
.nav { background: rgba(255,255,255,.96); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.about-logo { width: 220px; height: 220px; object-fit: contain; filter: drop-shadow(0 25px 30px rgba(0,0,0,.15)); animation: float 5s ease-in-out infinite; }
.about-card { box-shadow: var(--shadow); border: 1px solid #ffe2b8; }
.ticks li { display: flex; align-items: flex-start; }
.ticks li::before { color: var(--dark); flex-shrink: 0; }
.hl, .svc-card, .p-card, .testi, .trust-item { border: 1.5px solid #ffe2b8; }
.hl:hover, .p-card:hover { border-color: var(--primary); }
.svc-card:hover { border-color: var(--primary); }
.svc-icon, .hl span { background: linear-gradient(135deg, #fff3df, #ffd9a0); }
.stat { border: 1px solid #ffd9a0; box-shadow: 0 12px 30px rgba(247,148,29,.12); }
.testi::before { color: #ffd59a; }
.chip { border: 1px solid #ffe2b8; }
/* keep highlight cards from overlapping the hero trust boxes */
.hero { padding-bottom: 60px; }
.highlights { margin-top: 0; }

/* ----- Home hero banner: 3D portal scene (home3d.js) ----- */
/* .hero3d is set by an inline script in index.html before the first paint when WebGL is available,
   so the banner layout (and never the old orbit art) shows from the start. While the 3D assets load
   a small spinner stands in; .has-home3d (set by home3d.js) fades the scene in. The scene has no
   backdrop of its own (transparent canvas), so the hero's page background shows through.
   If the 3D fails, .hero3d is removed again and the orbit art comes back. */
.home3d { display: none; }
.hero.hero3d .home3d { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home3d canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s ease-out; }
.hero.has-home3d .home3d canvas { opacity: 1; }
.home3d::after {                                     /* loading spinner, centred on the scene area */
  content: ""; position: absolute; left: 70%; top: 52%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 4px solid rgba(247, 148, 29, .25); border-top-color: var(--primary);
  animation: spin .9s linear infinite; transition: opacity .3s;
}
.hero.has-home3d .home3d::after { opacity: 0; animation: none; }
.hero.hero3d .hero-art { visibility: hidden; }
.hero.hero3d .hero-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, .85fr) 1.15fr; }
.hero.hero3d::before {                               /* soft fade behind the headline */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.82) 26%, rgba(255,255,255,0) 46%);
}
.hero.hero3d .hero-text { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .hero.hero3d { flex-direction: column; align-items: stretch; padding-bottom: 30px; }
  .hero.hero3d::before { display: none; }
  .hero.hero3d .hero-inner { grid-template-columns: 1fr; }
  .hero.hero3d .hero-art { display: none; }
  .hero.hero3d .home3d { position: relative; order: 2; width: 100%; height: clamp(290px, 76vw, 520px); margin-top: 12px; }
  .home3d::after { left: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .home3d canvas { transition: none; }
}
/* Home hero uses the same plain cream backdrop as the Portfolio / Services / Career heroes */
.hero { background: linear-gradient(90deg, #fff8ef, #fff3e3); }
.hero .blob { display: none; }
.hero.hero3d::before { display: none; }

/* ---------- Portfolio page ---------- */
.pf-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: linear-gradient(90deg, #fff8ef, #fff3e3); padding-top: 96px; overflow: hidden;
}
.pf-hero-text { padding: 40px 32px 60px max(32px, calc((100vw - 1180px) / 2)); align-self: center; }
.pf-crumb { font-size: 17px; color: var(--dark); margin-bottom: 14px; }
.pf-crumb b { color: var(--primary); }
.pf-hero h1 { font-size: clamp(54px, 7.5vw, 104px); line-height: .98; font-weight: 800; color: var(--dark); letter-spacing: -2px; margin-bottom: 18px; }
.pf-hero-text > p:last-child { font-size: 18px; color: #333; max-width: 560px; }
.pf-art {
  position: relative; display: grid; place-items: center; min-height: 440px;
  background: none;   /* plain cream from .pf-hero shows behind the main image (no rings / panel) */
}
.pf-stage { position: relative; width: 460px; height: 420px; }
.pf-scene { position: absolute; inset: 0; opacity: 0; transform: scale(.92) translateY(20px); transition: .55s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.pf-hero[data-scene="all"] [data-for="all"],
.pf-hero[data-scene="app"] [data-for="app"],
.pf-hero[data-scene="game"] [data-for="game"] { opacity: 1; transform: none; }

.phone { position: absolute; width: 190px; height: 370px; border-radius: 38px; padding: 9px; box-shadow: 0 35px 50px rgba(120, 60, 0, .3); }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 64px; height: 16px; border-radius: 10px; background: #15151a; z-index: 2; }
.phone-orange { background: linear-gradient(135deg, #ffb347, #e8780a); border: 3px solid #2b2b33; }
.phone-dark { background: linear-gradient(135deg, #c99a62, #5b3b17); }
.screen { height: 100%; border-radius: 30px; padding: 46px 18px 18px; }
.screen-orange { background: linear-gradient(160deg, #ffb043, #f68a12); border: 4px solid #1d1d24; }
.screen-dark { background: radial-gradient(circle at 30% 85%, rgba(255,140,0,.55), transparent 45%), linear-gradient(170deg, #2a2016, #0c0b0a); }
.screen-black { background: linear-gradient(170deg, #26262d, #0d0d10); display: grid; place-items: center; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.stack { display: grid; gap: 16px; justify-items: center; align-content: center; }
.tile {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; color: #fff;
  background: linear-gradient(145deg, #ffa733, #ee7d0b); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 8px 16px rgba(150, 70, 0, .35);
}
.tile svg { width: 58%; height: 58%; }
.tile.glow { width: 92px; background: linear-gradient(145deg, rgba(255,160,50,.95), rgba(150,70,10,.9)); border: 2px solid rgba(255,190,110,.6); box-shadow: 0 0 22px rgba(255,140,0,.45); }
.tile.float { position: absolute; width: 80px; animation: float 4s ease-in-out infinite; }
.big-pad { width: 70%; height: 40%; color: #fff; }
.pad { position: absolute; height: auto; aspect-ratio: 220 / 160; filter: drop-shadow(0 25px 25px rgba(120, 60, 0, .35)); }

/* ----- 3D diver (diver3d.js) ----- */
.diver3d { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .4s; }
.diver3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pf-art.diver3d-on .diver3d { opacity: 1; }
.pf-art.has-diver3d .diver { display: none; }   /* 3D loaded: hide the flat image version */

/* ----- 3D character typing at a desk (desk3d.js, Services hero) ----- */
.desk3d { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; }
.desk3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pf-art.has-desk3d .desk3d { opacity: 1; }
.pf-art.has-desk3d .pf-stage { display: none; }   /* 3D loaded: hide the flat CSS scene */
/* while the 3D scene loads, the flat scene stays hidden and a spinner shows (set in services.html) */
.pf-art.desk3d-wait .pf-stage { display: none; }
.pf-art.desk3d-wait::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 5;
  border-radius: 50%; border: 4px solid rgba(247, 148, 29, .25); border-top-color: var(--primary);
  animation: spin .9s linear infinite; transition: opacity .3s;
}
.pf-art.desk3d-wait.has-desk3d::after { opacity: 0; animation: none; }

/* ----- Portfolio "All" tab: the Home page's 3D scene (home3d.js) ----- */
.all3d { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .55s cubic-bezier(.2,.8,.2,1); }
.all3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pf-art.all3d-on .all3d { opacity: 1; transform: none; }
.pf-art.has-all3d [data-for="all"] { display: none; }   /* 3D loaded: replaces the flat phone + controller */
/* "All" tab while its 3D scene loads: the flat scene stays hidden and a spinner shows (set in portfolio.html) */
.pf-art.all3d-wait [data-for="all"] { display: none; }
.pf-hero[data-scene="all"] .pf-art.all3d-wait:not(.has-all3d)::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; z-index: 5;
  border-radius: 50%; border: 4px solid rgba(247, 148, 29, .25); border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.pf-hero[data-scene="all"] .pf-art.has-all3d .pf-stage::after { opacity: 0; }
/* two-column layout: the "All" scene's canvas also covers the text column, so the plane keeps flying
   behind "Our Portfolio" instead of vanishing at the edge of the picture box (home3d.js keeps the
   building, girl and Vespa framed in the right half; the headline stays above the canvas) */
@media (min-width: 993px) {
  .pf-hero-text { position: relative; z-index: 6; }
  .pf-hero[data-scene="all"] .pf-art { overflow: visible; }
  .pf-art .all3d { left: -100%; }
}

/* ----- 3D girl with phone (girl3d.js) ----- */
.girl3d { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .55s cubic-bezier(.2,.8,.2,1); }
.girl3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pf-art.girl3d-on .girl3d { opacity: 1; transform: none; }
.pf-art.has-girl3d [data-for="app"] .phone,
.pf-art.has-girl3d [data-for="app"] .tile.float { display: none; }   /* 3D loaded: the girl + big tablet replace them */

/* ----- Scuba diver on the Games tab ----- */
.pf-art { overflow: hidden; isolation: isolate; }
.pf-art .pf-stage { z-index: 1; }   /* fallback: diver swims behind the phone + controller */
.diver.cutout { z-index: 3; }       /* white background removed by script.js: swim in front */
.diver.cutout img { mix-blend-mode: normal; }
.diver {
  position: absolute; top: 24%; left: -80%; width: min(460px, 80%); z-index: 0;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.pf-hero[data-scene="game"] .diver { opacity: 1; animation: diverSwim 12s linear infinite; }
.diver-body { position: relative; animation: diverBob 3s ease-in-out infinite; filter: drop-shadow(0 18px 18px rgba(120, 60, 0, .18)); }
.diver img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

/* body parts cut from the same picture (coordinates are % of the 1798x875 image) */
.dv { position: absolute; inset: 0; }
.dv-base { position: relative; clip-path: polygon(48.4% 0, 100% 0, 100% 100%, 48.4% 100%); }
.dv-legT {
  /* cut runs a little below the seam so the leg keeps its own edge while it moves */
  clip-path: polygon(0 0, 50.33% 0, 50.33% 58.97%, 43.83% 62.74%, 38.38% 66.4%, 31.98% 57.03%, 25.64% 46.17%, 11.96% 48%, 0 48%);
  transform-origin: 51.72% 53.71%;  /* hip */
  animation: kickT 1.1s ease-in-out infinite;
}
.dv-legB {
  /* cut runs a little above the seam (hidden under the top leg when still) */
  clip-path: polygon(0 48%, 11.96% 48%, 25.64% 46.17%, 31.98% 53.83%, 38.38% 63.2%, 43.83% 59.54%, 49.22% 56.41%, 49.22% 100%, 0 100%);
  transform-origin: 51.72% 67.43%;  /* hip */
  animation: kickB 1.1s ease-in-out infinite;
}
.dv-arm {
  clip-path: polygon(87.65% 35.2%, 77.42% 36.91%, 69.91% 41.83%, 63.4% 49.6%, 55.9% 60.69%, 49.44% 64%, 48.89% 78.4%, 58.06% 77.26%, 60.18% 64%, 65.02% 56.23%, 71.52% 54.06%, 77.42% 52.34%, 84.98% 50.17%);
  transform-origin: 83.43% 43.43%;  /* shoulder */
  animation: armSweep 2.2s ease-in-out infinite;
}
@keyframes kickT { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3.5deg); } }
@keyframes kickB { 0%, 100% { transform: rotate(2.5deg); } 50% { transform: rotate(-2.5deg); } }
@keyframes armSweep { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-3deg); } }

/* Games scene: no phone, just rising sea bubbles behind the diver */
.pf-hero[data-scene="game"] .pf-stage::after { opacity: 0; }
.sea-bub {
  position: absolute; bottom: -20px; width: var(--s); height: var(--s); border-radius: 50%;
  border: 1.5px solid rgba(80, 160, 230, .55); background: radial-gradient(circle at 30% 30%, #fff, rgba(170, 215, 255, .3));
  animation: seaRise 5s ease-in var(--d) infinite;
}
@keyframes seaRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(10px, -220px); }
  100% { transform: translate(-6px, -460px); opacity: 0; }
}
.bub {
  position: absolute; left: 95%; top: 36%; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(80, 160, 230, .7); background: radial-gradient(circle at 30% 30%, #fff, rgba(170, 215, 255, .35));
  opacity: 0; animation: bubble 2.6s ease-in infinite;
}
.bub.b2 { width: 7px; height: 7px; animation-delay: .5s; left: 97%; }
.bub.b3 { width: 13px; height: 13px; animation-delay: 1.1s; left: 93%; }
.bub.b4 { width: 6px; height: 6px; animation-delay: 1.6s; left: 98%; }
.bub.b5 { width: 9px; height: 9px; animation-delay: 2.1s; left: 94%; }
@keyframes diverSwim {
  0%   { left: -85%; }
  100% { left: 105%; }
}
@keyframes diverBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-16px) rotate(2deg); }
}
@keyframes bubble {
  0%   { opacity: 0; transform: translate(0, 0) scale(.6); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-14px, -110px) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .pf-hero[data-scene="game"] .diver { animation: none; left: 20%; }
  .diver-body, .bub, .dv, .sea-bub { animation: none; }
}

/* ----- 3D look ----- */
.pf-stage { perspective: 1100px; }
.pf-stage::after { /* soft floor shadow */
  content: ""; position: absolute; left: 70px; right: 40px; bottom: 6px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(150, 75, 0, .35), transparent 70%); filter: blur(6px); z-index: -1;
}
.phone {
  transform: rotateY(-24deg) rotateX(10deg); transform-style: preserve-3d;
  animation: phone3d 6s ease-in-out infinite;
}
.phone-orange {
  background: linear-gradient(120deg, #ffcf85 0%, #ffa733 25%, #f08510 60%, #c86206 100%);
  border-color: #1d1d24;
  box-shadow:
    1px 1px 0 #d06a06, 2px 2px 0 #c86206, 3px 3px 0 #bf5d05, 4px 4px 0 #b55804,
    5px 5px 0 #ab5204, 6px 6px 0 #a14c03, 7px 7px 0 #974703, 8px 8px 0 #8c4102,
    20px 40px 50px rgba(110, 50, 0, .45);
}
.phone-dark {
  background: linear-gradient(120deg, #f2cf9c 0%, #c99a62 30%, #8a6030 65%, #4a2f12 100%);
  box-shadow:
    1px 1px 0 #6e4a20, 2px 2px 0 #66441d, 3px 3px 0 #5e3e1a, 4px 4px 0 #563817,
    5px 5px 0 #4e3214, 6px 6px 0 #462d12, 7px 7px 0 #3e2810, 8px 8px 0 #36220d,
    20px 40px 50px rgba(60, 30, 0, .5);
}
.phone::after { /* glass reflection */
  content: ""; position: absolute; inset: 9px; border-radius: 30px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.08) 32%, transparent 33%, transparent 70%, rgba(255,255,255,.07) 100%);
}
.phone .side-btn { position: absolute; right: -5px; width: 5px; border-radius: 0 3px 3px 0; background: #8c4102; }
.screen { box-shadow: inset 0 0 0 1px rgba(0,0,0,.4), inset 0 10px 25px rgba(0,0,0,.25); }
.tile {
  background: linear-gradient(150deg, #ffc06a, #f7941d 45%, #de6f05);
  box-shadow:
    inset 0 3px 0 rgba(255,255,255,.55), inset 0 -5px 0 rgba(120, 50, 0, .35),
    0 4px 0 #b35a05, 0 7px 0 #8f4603, 0 14px 18px rgba(90, 40, 0, .45);
  transform: translateZ(18px);
}
.tile svg { filter: drop-shadow(0 2px 1px rgba(110, 45, 0, .55)); }
.tile.glow {
  background: linear-gradient(150deg, rgba(255,190,100,.98), rgba(230,120,20,.95) 50%, rgba(140,60,5,.95));
  box-shadow:
    inset 0 3px 0 rgba(255,230,190,.6), inset 0 -5px 0 rgba(80,30,0,.4),
    0 4px 0 #7a3a04, 0 0 26px rgba(255,140,0,.6);
}
.tile.float { transform: rotateY(-18deg) rotateX(8deg); }
.big-pad { filter: drop-shadow(0 0 10px rgba(255,255,255,.35)); }
@keyframes phone3d {
  0%, 100% { transform: rotateY(-24deg) rotateX(10deg) translateY(0); }
  50% { transform: rotateY(-16deg) rotateX(6deg) translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) { .phone, .tile.float { animation: none; } }

/* ---------- Services page ---------- */
.sv-hero h1 { font-size: clamp(38px, 4.6vw, 68px); letter-spacing: -1px; white-space: nowrap; }
.phone-black {
  background: linear-gradient(120deg, #6a6a76 0%, #3a3a44 30%, #1f1f26 65%, #0e0e12 100%);
  box-shadow:
    1px 1px 0 #2a2a31, 2px 2px 0 #26262c, 3px 3px 0 #222228, 4px 4px 0 #1e1e23,
    5px 5px 0 #1a1a1f, 6px 6px 0 #16161a, 7px 7px 0 #121216, 8px 8px 0 #0e0e11,
    20px 40px 50px rgba(60, 30, 0, .45);
}
.phone-black .side-btn { background: #0c0c0f; }
.sv-phone-screen { display: grid; justify-items: center; align-content: center; gap: 26px; }
.sv-code { width: 110px; height: 90px; color: #f7941d; filter: drop-shadow(0 0 12px rgba(255,140,0,.6)) drop-shadow(0 3px 0 #9a4a03); }
.sv-phone-screen .tile { width: 84px; }
.gear-badge { position: absolute; width: 62px; border-radius: 50%; animation: spin 12s linear infinite; }

.laptop { position: absolute; width: 190px; transform: rotateY(-22deg) rotateX(8deg); filter: drop-shadow(18px 30px 26px rgba(70, 35, 0, .4)); }
.laptop .lid {
  height: 124px; border-radius: 14px 14px 4px 4px; padding: 9px;
  background: linear-gradient(135deg, #5c5c68, #1b1b21);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.2), 0 4px 0 #0c0c0f;
}
.laptop .lcd {
  height: 100%; border-radius: 8px; display: grid; place-items: center; color: #f7941d;
  background: radial-gradient(circle at 30% 80%, rgba(255,140,0,.35), transparent 60%), linear-gradient(170deg, #2a2016, #0c0b0a);
}
.laptop .lcd svg { width: 62%; height: 70%; filter: drop-shadow(0 0 10px rgba(255,140,0,.6)); }
.laptop .base {
  height: 20px; margin: 0 -16px; border-radius: 3px 3px 14px 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(0,0,0,.45) 9px 11px) 18px 4px / calc(100% - 36px) 8px no-repeat,
    linear-gradient(180deg, #6a6a76, #2b2b33 55%, #121216);
  box-shadow: 0 4px 0 #0a0a0c;
}

.sv-list { padding-top: 50px; }
.sv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sv-card {
  display: grid; grid-template-columns: 210px 1fr; gap: 26px; align-items: center;
  background: #fff; border: 1.5px solid #ffe2b8; border-radius: 26px; padding: 18px; scroll-margin-top: 110px;
  transition: .35s;
}
.sv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.sv-art {
  position: relative; height: 210px; border-radius: 20px; display: grid; place-items: center; perspective: 600px;
  background: linear-gradient(160deg, #fff3df, #ffd59a);
  box-shadow: inset 0 2px 0 #fff, 0 10px 24px rgba(247,148,29,.15);
}
.sv-body h2 { font-size: clamp(22px, 2.2vw, 28px); color: var(--dark); line-height: 1.2; margin-bottom: 10px; }
.sv-body p { font-size: 15px; color: #444; line-height: 1.55; }
.sv-ticks { list-style: none; display: grid; gap: 6px; margin: 12px 0 18px; font-size: 15px; color: #333; }
.sv-ticks li { display: flex; gap: 12px; }
.sv-ticks li::before { content: "✓"; color: var(--dark); font-weight: 700; }
.sv-ticks + .sv-more { margin-top: -10px; }
.sv-more { margin-bottom: 18px; }
.sv-more summary {
  list-style: none; cursor: pointer; color: var(--primary); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center;
}
.sv-more summary::-webkit-details-marker { display: none; }
.sv-more summary::before { content: "+"; font-size: 18px; line-height: 1; transition: .3s; }
.sv-more[open] summary::before { transform: rotate(45deg); }
.sv-more[open] summary { margin-bottom: -4px; }
.sv-more .sv-ticks { margin-bottom: 0; }
.sv-btn { padding: 10px 22px; font-weight: 600; }
.sv-btn span { margin-left: 6px; display: inline-block; transition: .3s; }
.sv-btn:hover span { transform: translateX(4px); }

/* mini 3D icons inside service cards */
.mini {
  width: 92px; height: 92px; border-radius: 22px; display: grid; place-items: center; color: #f7941d;
  background: linear-gradient(140deg, #5c5c68, #2b2b33 45%, #121216);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25), 0 5px 0 #0b0b0e, 0 18px 24px rgba(70, 35, 0, .35);
  transform: rotateY(-18deg) rotateX(8deg); transition: .4s;
}
.mini svg { width: 56%; height: 56%; filter: drop-shadow(0 0 8px rgba(255,140,0,.55)); }
.mini-phone { width: 76px; height: 126px; border-radius: 18px; border: 4px solid #121216; background: linear-gradient(170deg, #2a2016, #0c0b0a); }
.mini-pad { width: 140px; height: auto; aspect-ratio: 220 / 160; filter: drop-shadow(0 16px 16px rgba(70, 35, 0, .4)); transition: .4s; }
.mini-laptop { position: relative; width: 130px; }
.mini-laptop .lid { height: 84px; padding: 6px; }
.mini-laptop .base { height: 14px; margin: 0 -10px; }
.sv-art .badge {
  position: absolute; right: 44px; bottom: 44px; width: 44px; height: 44px; border-radius: 13px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(150deg, #ffc06a, #f7941d 45%, #de6f05);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 3px 0 #a14c03, 0 10px 14px rgba(90, 40, 0, .4);
}
.sv-art .badge svg { width: 60%; height: 60%; }
.sv-card:hover .mini, .sv-card:hover .mini-pad, .sv-card:hover .mini-laptop { transform: rotateY(0) rotateX(0) translateY(-6px); }

.sv-faq .title, .sv-tech .title { color: var(--dark); margin-bottom: 30px; }
.sv-faq { padding: 60px 0; }
.sv-faq .faq { gap: 10px; }
.sv-faq .faq-q { padding: 14px 56px 14px 24px; }
.sv-tech { padding: 60px 0 80px; }
.tech-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tech-chips span {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 10px; border-radius: 14px;
  background: #fff; border: 1px solid #f0e3d0; font-weight: 600; font-size: 14px; color: var(--dark);
  box-shadow: 0 6px 16px rgba(0,0,0,.04); transition: .3s;
}
.tech-chips span:hover { transform: translateY(-4px); border-color: var(--primary); }
.tech-chips i {
  font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; font-size: 12px; font-weight: 700;
}

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

/* ---------- Career page ---------- */
.cr-hero h1 { font-size: clamp(38px, 4.6vw, 68px); letter-spacing: -1px; white-space: nowrap; }
.pf-crumb a:hover { color: var(--primary); }
.cr-art { position: relative; min-height: 460px; padding: 40px 24px 30px; overflow: hidden; perspective: 1200px; }
.cr-glow {
  position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 110, .55), rgba(255, 210, 150, .2) 55%, transparent 70%);
  filter: blur(10px);
  display: none;   /* rings from .pf-art show instead, same as the Portfolio hero */
}
.cr-orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffd59a, #f7941d 60%, #d9670a); box-shadow: 0 10px 20px rgba(200, 90, 0, .3); animation: float 6s ease-in-out infinite; }
.cr-orb.o1 { width: 34px; height: 34px; left: 8%; top: 14%; }
.cr-orb.o2 { width: 18px; height: 18px; right: 10%; top: 10%; animation-delay: 1.5s; }
.cr-orb.o3 { width: 24px; height: 24px; right: 6%; bottom: 18%; animation-delay: 3s; }
.cr-tilt { position: relative; width: 100%; max-width: 720px; transition: transform .25s ease-out; transform-style: preserve-3d; }
.cr-float {
  position: relative; animation: crFloat 6s ease-in-out infinite;
  mix-blend-mode: multiply;           /* drops the white photo background onto the cream hero */
}
.cr-team { width: 100%; height: auto; display: block; }
@keyframes crFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .cr-float, .cr-orb { animation: none; } }

/* Real Fanawar logo on each MacBook lid, warped onto the lid by script.js */
.mac-lid { position: absolute; left: 0; top: 0; width: 400px; height: 260px; transform-origin: 0 0; visibility: hidden; pointer-events: none; }
.mac-lid.ready { visibility: visible; }
.lid-patch { /* silver patch that hides the AI-drawn logo, blended like the photo */
  position: absolute; left: var(--u); top: var(--v); width: 58%; height: 82%; translate: -50% -50%;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  -webkit-mask: radial-gradient(closest-side, #000 62%, transparent 100%);
          mask: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.lid-logo {
  position: absolute; left: var(--u); top: var(--v); width: 34%; translate: -50% -50%;
  filter: drop-shadow(0 2px 1px rgba(255,255,255,.55)) drop-shadow(0 -1px 1px rgba(0,0,0,.25));
}

/* Mac-style branded screens, warped onto the screens in the image by script.js */
.mac-screen {
  position: absolute; left: 0; top: 0; width: 400px; height: 250px; transform-origin: 0 0;
  border-radius: 10px; overflow: hidden; color: #fff; font-family: "Poppins", sans-serif;
  background:
    radial-gradient(120% 90% at 15% 110%, #ff9a2e 0%, rgba(255,154,46,0) 55%),
    radial-gradient(90% 80% at 95% 0%, #8b5cf6 0%, rgba(139,92,246,0) 60%),
    radial-gradient(80% 70% at 70% 100%, #f43f5e 0%, rgba(244,63,94,0) 60%),
    linear-gradient(160deg, #2b1a4a, #1a1026 60%, #3a1d0c);
  box-shadow: inset 0 0 0 5px #0d0d10, inset 0 0 0 6px #2a2a30;
  visibility: hidden;                 /* shown once positioned */
}
.mac-screen.ready { visibility: visible; }
.mac-screen::after { /* glass reflection */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.05) 35%, transparent 36%);
}
.mac-screen.notch::before {
  content: ""; position: absolute; top: 5px; left: 50%; translate: -50% 0; width: 62px; height: 13px;
  background: #0d0d10; border-radius: 0 0 8px 8px; z-index: 2;
}
.mac-bar {
  position: absolute; top: 5px; left: 5px; right: 5px; height: 16px; padding: 0 10px; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.14); backdrop-filter: blur(6px); font-size: 8px; font-weight: 500;
}
.mac-bar img { width: 10px; height: 10px; object-fit: contain; filter: brightness(0) invert(1); }
.mac-bar b { font-weight: 700; }
.mac-bar span { opacity: .85; }
.mac-bar i { font-style: normal; margin-left: auto; opacity: .9; }
.mac-center { position: absolute; inset: 24px 0 40px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.mac-logo {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.35), inset 0 -3px 0 rgba(0,0,0,.08);
}
.mac-logo img { width: 72%; height: 72%; object-fit: contain; }
.mac-center strong { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.5px; text-shadow: 0 4px 14px rgba(0,0,0,.35); }
.mac-center strong em { font-style: normal; color: #ffb347; }
.mac-center small { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; opacity: .85; }
.mac-dock {
  position: absolute; bottom: 10px; left: 50%; translate: -50% 0; display: flex; gap: 6px; padding: 5px 8px;
  border-radius: 12px; background: rgba(255,255,255,.18); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.25);
}
.mac-dock i { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(150deg, #fff6, transparent 60%), var(--c); }

.cr-values .title, .cr-roles .title { color: var(--dark); }
.value-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  text-align: center; background: #fff; border: 1.5px solid #ffe2b8; border-radius: 24px; padding: 26px 20px 30px; transition: .35s;
}
.value:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--primary); }
.value svg { width: 84px; height: 84px; margin-bottom: 8px; filter: drop-shadow(0 10px 10px rgba(180, 80, 0, .28)); transition: .4s; }
.value:hover svg { transform: scale(1.1) rotate(-6deg); }
.value h4 { color: var(--dark); font-size: 19px; margin-bottom: 6px; }
.value p { font-size: 14.5px; color: #444; line-height: 1.6; }

.cr-roles .role { border: 1.5px solid #ffe2b8; padding: 22px 26px; }
.cr-roles .role:hover { border-color: var(--primary); }
.cr-roles .role span { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(150deg, #fff3df, #ffe0b5); box-shadow: inset 0 2px 0 #fff, 0 6px 14px rgba(247,148,29,.15); }
.cr-roles .role span svg { width: 40px; height: 40px; filter: drop-shadow(0 4px 4px rgba(120, 60, 0, .25)); }
.cr-roles .role h4 { font-size: 18px; }
.cr-roles .role p { font-size: 15px; color: #444; }

.cr-apply .career-grid { gap: 22px; }
.cr-apply .career-card { padding: 40px 44px; border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.cr-apply .career-card h3 { font-size: clamp(28px, 3vw, 38px); }
.cr-apply .career-card p { font-size: 16px; opacity: .95; max-width: 440px; }
.cr-apply .btn-white { color: var(--primary); font-weight: 600; padding: 12px 34px; }
.cr-apply .career-card.alt .btn-ghost { font-weight: 600; padding: 12px 34px; }

@media (max-width: 992px) {
  .value-row { grid-template-columns: repeat(2, 1fr); }
  .cr-hero h1 { white-space: normal; }
}
@media (max-width: 600px) {
  .value-row { grid-template-columns: 1fr; }
  .cr-art { min-height: 0; padding: 10px 12px 24px; }
}
@media (max-width: 600px) {
  .sv-card { grid-template-columns: 1fr; }
  .sv-art { height: 180px; }
}

.pf-list { padding-top: 70px; }
.pf-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.pf-head h2 { font-size: clamp(30px, 4vw, 48px); color: #6b6b78; line-height: 1.2; }
.pf-head .tabs { margin: 0; }
.pf-head .tab { padding: 10px 26px; font-weight: 600; font-size: 16px; color: var(--dark); }
.pf-head .tab.active { background: linear-gradient(90deg, var(--primary), var(--primary-2)); color: #fff; }
.pf-list .p-card { padding: 20px; box-shadow: none; }
.pf-list .p-card h4 { color: #6b6b78; font-size: 22px; margin-top: 2px; }
.pf-list .p-card p { color: #333; font-size: 15px; }
.pf-list .p-thumb { height: 170px; }
.grid-portfolio[data-filter="game"] { grid-template-columns: repeat(2, 1fr); }
.grid-portfolio[data-filter="game"] .p-thumb { height: 280px; }
.grid-portfolio[data-filter="app"] .p-thumb { height: 200px; }
.ext { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #5a7fd6; color: #fff; font-size: 12px; margin-left: 2px; }

@media (max-width: 992px) {
  .pf-hero { grid-template-columns: 1fr; }
  .pf-hero-text { padding: 40px 24px 20px; text-align: center; }
  .pf-hero-text > p:last-child { margin-inline: auto; }
  .grid-portfolio[data-filter="game"] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .pf-art { min-height: 330px; }
  .pf-stage { scale: .7; }
  .pf-head { justify-content: center; text-align: center; }
  .grid-portfolio[data-filter="game"] { grid-template-columns: 1fr; }
  .grid-portfolio[data-filter="game"] .p-thumb { height: 200px; }
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-radius: 24px; padding: 10px 0; box-shadow: 0 20px 40px rgba(0,0,0,.1);
    max-height: 0; overflow: hidden; opacity: 0; transition: .35s; padding: 0;
  }
  .nav-links.open { max-height: 400px; opacity: 1; padding: 10px 0; }
  .nav-links a { display: block; padding: 12px 30px; }
  .burger { display: block; }
  .btn-nav { display: none; }
  .hero-inner, .about-grid, .contact-grid, .career-grid { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .svc-card { flex-basis: calc((100% - 24px) / 2); }
  .grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .awards-row, .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .orbit { width: 300px; }
  .orbit-core { font-size: 60px; }
  .chip { font-size: 12px; padding: 7px 12px; }
  .orbit { --r: 44%; }
  .svc-card { flex-basis: 100%; }
  .arrow { display: none; }
  .grid-portfolio, .awards-row { grid-template-columns: 1fr; }
  .stat h3 { font-size: 34px; }
  .about-card { padding: 28px; }
  .footer-inner, .footer-bottom { flex-direction: column; text-align: center; }
}
