/* =========================================================
   Pixalot Labs — Home v2 (Hero + Craft/Category section)
   Isolated stylesheet so it's easy to tweak or roll back.
   ========================================================= */

:root {
  --plv2-bg: #0b0b0f;
  --plv2-card: #16161d;
  --plv2-card-2: #1c1c25;
  --plv2-text: #f5f5f7;
  --plv2-text-muted: #b7b7c3;
  /* Brand palette, sampled from /front/images/logo.png (grey #7a7a7a, orange #ee7f0b) */
  --plv2-3d: #a3a3a8;
  --plv2-2d: #ee7f0b;
  --plv2-anim: #e8e8ea;
}

/* The theme already makes Bootstrap's .container full-width with a uniform
   gutter site-wide (see all-B8akwwDw.css: max-width:none!important on
   .container, padding via --pl-gutter-x). Clients/Testimonials/Contact/
   Footer already follow that. The Craft/Showcase/Projects grids below use
   the SAME --pl-gutter-x variable for their own edges, so every section
   aligns to one consistent full-width gutter instead of two different
   layout systems down the page. */

/* ---------- HERO ---------- */
/* Header/body-offset for the transparent floating nav is handled natively by
   site-navbar-ClUseWWk.css via body:has(.home-banner-carousal) — that's why
   .hero-v2 also carries the .home-banner-carousal class in index.html. */
/* Compound selector (.hero-v2.home-banner-carousal) so this beats the
   higher-specificity `body section.home-banner-carousal` rule in
   site-navbar-ClUseWWk.css (display:flow-root, overflow:visible, etc.)
   which would otherwise break this section's flex layout. */
.hero-v2.home-banner-carousal {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  max-height: 980px;
  overflow: hidden;
  background: var(--plv2-bg);
  display: flex;
  align-items: flex-end;
}

.hero-v2-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-v2-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-v2-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,15,.35) 0%, rgba(11,11,15,.25) 35%, rgba(11,11,15,.75) 82%, rgba(11,11,15,.95) 100%),
    linear-gradient(90deg, rgba(11,11,15,.55) 0%, rgba(11,11,15,.05) 45%);
}

.hero-v2-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 6vw 6vh;
  color: var(--plv2-text);
}

.hero-v2-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.hero-v2-eyebrow-bar {
  width: 30px;
  height: 2px;
  background: var(--plv2-2d);
  flex-shrink: 0;
}

.hero-v2-eyebrow {
  display: inline-block;
  font-size: clamp(11px, min(.7vw, 1.3vh), 14px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--plv2-text-muted);
  font-weight: 600;
}

.hero-v2-title {
  margin: 0 0 16px;
  max-width: 20ch;
}

.hero-v2-title-lead {
  display: block;
  font-size: clamp(14px, min(1.2vw, 2vh), 21px);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--plv2-text-muted);
  margin-bottom: 4px;
}

.hero-v2-title-accent {
  display: block;
  font-size: clamp(36px, min(5.2vw, 8.6vh), 122px);
  line-height: .98;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--plv2-3d), var(--plv2-anim) 25%, var(--plv2-2d) 50%, var(--plv2-anim) 75%, var(--plv2-3d));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: plv2-title-flow 8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2-title-accent {
    animation: none;
  }
}

@keyframes plv2-title-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

.hero-v2-sub {
  font-size: clamp(14px, min(.9vw, 1.6vh), 19px);
  color: var(--plv2-text-muted);
  max-width: 46ch;
  margin: 0 0 26px;
  font-weight: 400;
  line-height: 1.5;
}

.hero-v2-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, .75vw, 18px) clamp(28px, 1.6vw, 38px);
  border-radius: 100px;
  font-size: clamp(13px, .68vw, 15px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.hero-v2-btn-primary {
  background: var(--plv2-text);
  color: #0b0b0f;
}

.hero-v2-btn-primary:hover {
  transform: translateY(-2px);
  background: var(--plv2-2d);
  color: #0b0b0f;
}

.hero-v2-btn-ghost {
  background: transparent;
  color: var(--plv2-text);
  border: 1.5px solid rgba(245,245,247,.45);
}

.hero-v2-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--plv2-text);
  background: rgba(245,245,247,.08);
}

.hero-v2-scroll {
  position: absolute;
  right: 6vw;
  bottom: 6vh;
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(245,245,247,.5);
  border-radius: 100px;
  display: none;
}

.hero-v2-scroll-line {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  background: var(--plv2-text);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: plv2-scroll 1.6s ease-in-out infinite;
}

@keyframes plv2-scroll {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 16px); opacity: 0; }
  100% { transform: translate(-50%, 16px); opacity: 0; }
}

@media (min-width: 768px) {
  .hero-v2-scroll { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2-scroll-line { animation: none; }
}

/* ---------- LEGACY SECTIONS: match the unified body background ----------
   Both had their own hardcoded backgrounds (contact form: the old pirate-
   ship photo; footer: flat #221f1f) that broke the seamless gradient every
   other section on this page relies on. Clearing them lets body's own
   gradient (all-B8akwwDw.css) show through consistently end to end. */
.production-team-section,
.production-team-section-contact-us {
  background: transparent;
}

.footer_section {
  background: transparent;
}

/* ---------- CRAFT / CATEGORY SECTION ---------- */
/* No background here — body's own gradient (all-B8akwwDw.css) shows through,
   same as the legacy Clients/Testimonials sections, so the whole page reads
   as one continuous background instead of a flat panel breaking the flow. */
.craft-section {
  padding: 56px 0 60px;
}

.craft-heading {
  text-align: center;
  max-width: min(46vw, 720px);
  margin: 0 auto 32px;
  padding: 0 20px;
}

/* The old decorative heading markup carried real visual height, so the
   legacy CSS gives .carousal-wrapper a 60px margin-top to compensate.
   Now that #client uses the compact craft-heading instead, that legacy
   margin stacks on top of ours and creates an oversized gap — tighten it
   here without touching .carousal-wrapper site-wide. */
#client .carousal-wrapper {
  margin-top: 8px !important;
}

.craft-kicker {
  display: inline-block;
  font-size: clamp(12px, .65vw, 14px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--plv2-2d);
  font-weight: 700;
  margin-bottom: 14px;
}

.craft-title {
  font-size: clamp(30px, 2.6vw, 52px);
  font-weight: 800;
  color: var(--plv2-text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.craft-desc {
  color: var(--plv2-text-muted);
  font-size: clamp(15px, .85vw, 17px);
  line-height: 1.6;
  margin: 0;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  width: 100%;
  padding: 0 var(--pl-gutter-x, clamp(14px, 4vw, 40px));
}

.craft-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  min-height: clamp(320px, 20vw, 400px);
  isolation: isolate;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}

.craft-card-3d {
  grid-column: 1 / -1;
  min-height: clamp(420px, 26vw, 520px);
}

.craft-card-img,
.craft-card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .6s cubic-bezier(.19,1,.22,1);
}

.craft-card:hover .craft-card-img,
.craft-card:hover .craft-card-video {
  transform: scale(1.06);
}

.craft-card-3d .craft-card-video { object-position: 78% 45%; }
.craft-card-2d .craft-card-img { object-position: center 42%; }

.craft-card-model {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
  transform: translateX(4%);
}

/* "360°" pano hint chip — same visual language as .pl-gallery-mv-hint in
   gallery.html, so the interactive-3D affordance reads identically on both
   the homepage teaser and the real gallery. */
.craft-card-mv-hint {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  pointer-events: none;
}

.craft-card-mv-hint__icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  padding: 6px 4px 5px;
  border-radius: 12px;
  background: rgba(0,0,0,.78);
  box-shadow: 0 2px 12px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.craft-card-mv-hint__icon-box i {
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255,255,255,.95);
}

.craft-card-mv-hint__deg {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: rgba(255,255,255,.98);
}
.craft-card-anim .craft-card-video { object-position: center 30%; }

.craft-card-live {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--plv2-text);
  background: rgba(11,11,15,.55);
  border: 1px solid rgba(245,245,247,.25);
  backdrop-filter: blur(6px);
}

.craft-card-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.craft-card-3d .craft-card-live { color: var(--plv2-3d); }
.craft-card-anim .craft-card-live { color: var(--plv2-anim); }

.craft-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,15,.15) 0%, rgba(11,11,15,.35) 45%, rgba(11,11,15,.92) 100%);
  transition: background .35s ease;
}

.craft-card-3d .craft-card-overlay {
  background:
    linear-gradient(180deg, rgba(11,11,15,.1) 0%, rgba(11,11,15,.25) 40%, rgba(11,11,15,.93) 100%),
    linear-gradient(90deg, rgba(163,163,168,.24), transparent 55%);
}

.craft-card-2d .craft-card-overlay {
  background:
    linear-gradient(180deg, rgba(11,11,15,.1) 0%, rgba(11,11,15,.3) 45%, rgba(11,11,15,.93) 100%),
    linear-gradient(90deg, rgba(238,127,11,.26), transparent 55%);
}

.craft-card-anim .craft-card-overlay {
  background:
    linear-gradient(180deg, rgba(11,11,15,.1) 0%, rgba(11,11,15,.3) 45%, rgba(11,11,15,.93) 100%),
    linear-gradient(90deg, rgba(232,232,234,.18), transparent 55%);
}

.craft-card-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(22px, 1.8vw, 32px);
  z-index: 2;
}

.craft-card-3d .craft-card-body {
  padding: clamp(26px, 2.4vw, 44px);
  max-width: min(46vw, 620px);
}

.craft-card-tag {
  display: inline-block;
  font-size: clamp(11px, .58vw, 12px);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--plv2-text-muted);
  margin-bottom: 10px;
}

.craft-card-3d .craft-card-tag { color: var(--plv2-3d); }
.craft-card-2d .craft-card-tag { color: var(--plv2-2d); }
.craft-card-anim .craft-card-tag { color: var(--plv2-anim); }

.craft-card-title {
  font-size: clamp(22px, 1.7vw, 32px);
  font-weight: 800;
  color: var(--plv2-text);
  margin: 0 0 10px;
}

.craft-card-3d .craft-card-title {
  font-size: clamp(28px, 2.4vw, 44px);
}

.craft-card-text {
  color: var(--plv2-text-muted);
  font-size: clamp(14px, .78vw, 15.5px);
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 18px;
  opacity: .9;
}

.craft-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(12px, .68vw, 13px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--plv2-text);
  transition: gap .25s ease;
}

.craft-card:hover .craft-card-link { gap: 16px; }

.craft-card-link i { font-size: .9em; }

@media (max-width: 900px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }
  .craft-card-3d { min-height: 400px; }
  .craft-card { min-height: 300px; }
  .craft-card-body, .craft-card-3d .craft-card-body { padding: 26px; }
}

@media (max-width: 480px) {
  .hero-v2-cta { flex-direction: column; align-items: stretch; }
  .hero-v2-btn { padding: 14px 24px; }
}

/* ---------- EGYPTIAN GUARD BANNER (was the hidden pirate-ship section) ---------- */
/* .testimonials_section already provides height:90vh, position:relative,
   overflow:hidden — reused as-is. .testamonial-character keeps its original
   position:absolute;width:24%;bottom:0;left:120px;z-index:1 so the
   data-aos="fade-up" reveal behaves exactly like the original pirate
   character did. Only the background layer and new title layer are custom. */
.egb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.egb-title {
  position: absolute;
  right: clamp(24px, 8vw, 140px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 24vw, 460px);
  height: auto;
  z-index: 1;
}

@media (max-width: 700px) {
  #egyptian-guard-banner { height: 62vh; min-height: 380px; }
  #egyptian-guard-banner .testamonial-character {
    left: 50%;
    transform: translateX(-50%);
    width: clamp(180px, 55vw, 300px);
  }
  .egb-title {
    left: 50%;
    right: auto;
    top: 10%;
    transform: translateX(-50%);
    width: clamp(180px, 68vw, 320px);
  }
}

/* ---------- MARQUEE SHOWCASES (3D Showcase / Featured Projects) ---------- */
.marquee-section {
  padding: clamp(32px, 4vw, 52px) 0;
  overflow: hidden;
}

.marquee-section + .marquee-section {
  padding-top: 0;
}

/* Not zero: needs just enough clearance that the fixed transparent header
   doesn't sit flush on top of "Featured Projects" + its View All link when
   scrolled to align at this section's top. */
.marquee-section + .proj-grid-section {
  padding-top: clamp(64px, 7vw, 96px);
}

.marquee-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 0 var(--pl-gutter-x, clamp(14px, 4vw, 40px)) 20px;
}

.marquee-head-text .craft-kicker,
.marquee-head-text .craft-title {
  margin-bottom: 0;
}

.marquee-head-text .craft-title {
  margin-top: 6px;
}

.marquee-viewall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: clamp(12px, .7vw, 14px);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--plv2-text-muted);
  text-decoration: none;
  padding-bottom: 3px;
  transition: color .2s ease, gap .2s ease;
}

.marquee-viewall:hover {
  color: var(--plv2-text);
  gap: 13px;
}

.marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 18px;
  padding: 0 18px;
  animation: marquee-left 42s linear infinite;
}

.marquee-track.is-reverse {
  animation-name: marquee-right;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.marquee-tile {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 265px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.65);
  text-decoration: none;
  cursor: pointer;
}

.marquee-tile-proj {
  width: 230px;
  aspect-ratio: 1 / 1;
}

.marquee-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.marquee-tile:hover .marquee-tile-img {
  transform: scale(1.07);
}

.marquee-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,15,0) 45%, rgba(11,11,15,.88) 100%);
}

.marquee-tile-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  z-index: 2;
}

.marquee-tile-tag {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.marquee-tile-3d .marquee-tile-tag { color: var(--plv2-3d); }
.marquee-tile-2d .marquee-tile-tag { color: var(--plv2-2d); }

.marquee-tile-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--plv2-text);
}

@media (max-width: 640px) {
  .marquee-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .marquee-tile { width: 195px; }
  .marquee-tile-proj { width: 205px; }
}

/* ---------- FEATURED PROJECTS (static grid) ---------- */
.proj-grid-section {
  padding: clamp(28px, 3.5vw, 44px) 0 clamp(48px, 5.5vw, 70px);
}

/* Bento layout: a 4-col grid where the feature tile spans 2x2 (half width,
   not two-thirds — the source art is ~1:1 square, so a narrower feature
   tile crops far less of each image) + 4 singles fill the other half
   exactly, then "See More" closes the grid as a full-width strip so there's
   no leftover gap cell. Same masonry language as the per-project galleries
   in projects-v2.css. */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(200px, 20vw, 320px);
  grid-auto-flow: dense;
  gap: 18px;
  width: 100%;
  margin: 18px 0 0;
  padding: 0 var(--pl-gutter-x, clamp(14px, 4vw, 40px));
}

.proj-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 14px 30px -16px rgba(0,0,0,.65);
  transition: transform .3s ease;
}

.proj-tile-feature {
  grid-column: span 2;
  grid-row: span 2;
}

.proj-tile-feature .proj-tile-name {
  font-size: clamp(16px, 1.4vw, 22px);
}

.proj-tile:hover {
  transform: translateY(-4px);
}

.proj-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.proj-tile:hover .proj-tile-img {
  transform: scale(1.07);
}

.proj-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,15,0) 50%, rgba(11,11,15,.88) 100%);
}

.proj-tile-name {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  font-size: clamp(12px, .78vw, 14.5px);
  font-weight: 700;
  color: var(--plv2-text);
}

.proj-tile-more {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: rgba(245,245,247,.03);
  border: 1.5px dashed rgba(245,245,247,.22);
  color: var(--plv2-text);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.proj-tile-more:hover {
  border-color: var(--plv2-2d);
  background: rgba(238,127,11,.08);
  transform: translateY(-4px);
}

.proj-tile-more-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(245,245,247,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color .25s ease, transform .25s ease;
}

.proj-tile-more:hover .proj-tile-more-icon {
  border-color: var(--plv2-anim);
  transform: translateX(3px);
}

.proj-tile-more-text {
  font-size: clamp(12px, .75vw, 14px);
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 640px) {
  /* 6 items don't divide evenly into a 2-col grid with one 2x2 feature
     (5 leftover cells, one orphan) — drop the feature span here so it's a
     clean uniform 2x3 grid instead. */
  .proj-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(130px, 40vw, 190px);
    gap: 12px;
  }
  .proj-tile-feature {
    grid-column: span 1;
    grid-row: span 1;
  }
  .proj-tile-feature .proj-tile-name {
    font-size: clamp(12px, .78vw, 14.5px);
  }
}
