/* ============================================================
   DIGIFOX STUDIO — Dark Futuristic Theme
   ============================================================ */

:root {
  --bg-0: #0b0a0f;
  --bg-1: #141117;
  --bg-2: #1b1720;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 200, 170, 0.14);
  --border-hover: rgba(245, 103, 60, 0.55);

  --text: #f1ece7;
  --text-dim: #a89f9b;
  --text-faint: #8d8481;

  --accent: #f5673c;
  --accent-2: #e93e2e;
  --amber: #eb9718;
  --gold: #ffc76b;

  --grad-primary: linear-gradient(120deg, #ffc76b 0%, #f5673c 55%, #e93e2e 100%);
  --glow-accent: 0 0 24px rgba(245, 103, 60, 0.4);
  --radius: 14px;

  --font-display: "Josefin Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background grid + glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 45% at 15% 0%, rgba(235, 151, 24, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 40% at 85% 10%, rgba(245, 103, 60, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 45% at 50% 100%, rgba(233, 62, 46, 0.08), transparent 65%),
    var(--bg-0);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 190, 160, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 190, 160, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.55));
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: rgba(245, 103, 60, 0.4); color: #fff; }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ============ Typography ============ */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "—";
  color: var(--text-faint);
  margin: 0 0.6em;
}

.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 640px; }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(245, 103, 60, 0.25));
}

.main-nav ul { display: flex; gap: 0.4rem; align-items: center; }

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover { color: #fff; background: var(--surface); }

/* ============ Services submenu ============ */
.main-nav .has-sub { position: relative; }

.main-nav .sub-caret {
  width: 12px;
  height: 12px;
  margin-left: 0.2rem;
  transition: transform 0.2s;
}

.main-nav .has-sub:hover .sub-caret { transform: rotate(180deg); }

.main-nav ul.sub-menu {
  display: block;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 190px;
  padding: 0.4rem;
  background: rgba(5, 6, 15, 0.97);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.main-nav ul.sub-menu::before {
  /* keeps the dropdown open while moving cursor to it */
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.main-nav .has-sub:hover > .sub-menu,
.main-nav .has-sub:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.main-nav .sub-menu a {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
  white-space: nowrap;
}
.main-nav a.active { color: #fff; }
.main-nav a.active:not(.nav-cta)::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  border-radius: 2px;
  background: var(--grad-primary);
}

/* .main-nav a.nav-cta outranks .main-nav a / a:hover / a.active by specificity — no !important needed */
.main-nav a.nav-cta {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--border-hover);
  color: var(--accent); /* stays accent even on its own page's .active state */
  border-radius: 999px;
  transition: all 0.25s;
}
.main-nav a.nav-cta:hover {
  background: rgba(245, 103, 60, 0.14);
  box-shadow: var(--glow-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Skip link (keyboard only) ============ */
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ============ Hero ============ */
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s;
}

.btn-primary {
  color: #2a0e05;
  background: var(--grad-primary);
  box-shadow: 0 0 28px rgba(245, 103, 60, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px rgba(245, 103, 60, 0.5);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}
.btn-ghost:hover { border-color: var(--border-hover); box-shadow: var(--glow-accent); }

.btn svg { width: 17px; height: 17px; }

/* ============ Sections ============ */
section { position: relative; padding: 5.5rem 0; }

.section-head { max-width: 680px; margin-bottom: 3.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* Split header: text + action button on one row */
.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.section-head--split .section-head-text { max-width: 680px; }

.section-head--split .section-head-btn {
  flex-shrink: 0;
  margin-bottom: 0.2rem;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .section-head--split .section-head-btn { margin-bottom: 0; }
}

/* ============ Cards / grids ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Neon gradient frame — light ribbon orbiting the card edge */
@property --frame-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1.6px;
  background: conic-gradient(
    from var(--frame-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(245, 103, 60, 0.85) 320deg,
    rgba(255, 199, 107, 1) 345deg,
    rgba(235, 151, 24, 0.9) 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: frame-orbit 8s linear infinite;
  transition: filter 0.3s;
}

@keyframes frame-orbit {
  to { --frame-angle: 360deg; }
}

.feature-card:hover::after {
  filter: brightness(1.3) drop-shadow(0 0 9px rgba(245, 103, 60, 0.6));
}

/* Desync the ribbons so the grid feels alive, not robotic */
.card-grid .feature-card:nth-child(1)::after { animation-delay: -2s; }
.card-grid .feature-card:nth-child(2)::after { animation-delay: -5s; }
.card-grid .feature-card:nth-child(3)::after { animation-delay: -7s; }
.card-grid .feature-card:nth-child(4)::after { animation-delay: -3.5s; }
.card-grid .feature-card:nth-child(5)::after { animation-delay: -6.5s; }

.feature-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mx, 50%) var(--my, 0%), rgba(245, 103, 60, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.feature-card:hover::before { opacity: 1; }

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), var(--glow-accent);
}

/* Card hover micro-animations */
.feature-card:hover .card-icon { transform: translateY(-3px) scale(1.07); box-shadow: 0 0 24px rgba(245, 103, 60, 0.28); }
.feature-card:hover .card-link svg { transform: translateX(4px); }
.feature-card:hover p { color: var(--text); }
.feature-card p { transition: color 0.3s; }

/* Services grid — smooth per-card stagger on reveal */
.card-grid > .reveal:nth-child(1) { transition-delay: 0s; }
.card-grid > .reveal:nth-child(2) { transition-delay: 0.07s; }
.card-grid > .reveal:nth-child(3) { transition-delay: 0.14s; }
.card-grid > .reveal:nth-child(4) { transition-delay: 0.21s; }
.card-grid > .reveal:nth-child(5) { transition-delay: 0.28s; }
.card-grid > .reveal:nth-child(6) { transition-delay: 0.35s; }

/* Featured (double-width) service card */
.is-featured {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.3rem;
  background:
    linear-gradient(135deg, rgba(245, 103, 60, 0.1), rgba(235, 151, 24, 0.05) 55%, transparent),
    var(--surface);
}
.is-featured .featured-body { flex: 1; }
.is-featured .card-icon { width: 62px; height: 62px; }
.is-featured .card-icon svg { width: 30px; height: 30px; }
.is-featured h3 { font-size: 1.35rem; }
.is-featured p { font-size: 1rem; max-width: 560px; }

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(245, 103, 60, 0.16), rgba(235, 151, 24, 0.12));
  border: 1px solid var(--border);
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s;
}

.card-icon svg { width: 26px; height: 26px; stroke: var(--accent); }

.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.feature-card p { color: var(--text-dim); font-size: 0.94rem; margin-bottom: 1.2rem; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1); }
.card-link:hover svg { transform: translateX(4px); }

/* Proof strip under the services grid */
.services-proof {
  margin-top: 2.8rem;
  padding-top: 2.6rem;
  border-top: 1px solid var(--border);
  text-align: center;
}
.services-proof .trusted-title {
  margin: 0 0 1.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.services-proof .proof-note {
  margin: 1.6rem auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 0.95rem;
}
.services-proof .proof-note strong { color: var(--text); font-weight: 600; }
.brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.8rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brand-row li {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0.85;
  filter: grayscale(1);
  transition: opacity 0.25s, filter 0.25s;
}
.brand-row li:hover { opacity: 1; filter: grayscale(0.4); }
.brand-row svg { height: 26px; width: auto; }

/* Text wordmarks */
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
}
.brand-word span { color: var(--accent); }
.brand-loreal {
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.14em;
}
.brand-lego {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.28);
}

@media (max-width: 720px) {
  .brand-row { gap: 1.2rem 1.8rem; }
  .brand-row svg { height: 22px; }
  .brand-word { font-size: 1.05rem; }
  .brand-loreal { font-size: 0.92rem; }
}

/* Services variation accents */
.accent-magenta { --accent: #e93e2e; }
.accent-violet { --accent: #eb9718; }
.accent-lime { --accent: #ffc76b; }

/* ============ Latest banner (Jelly Arena) — glassmorphic ============ */
.latest-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem 3rem 0;
}

.banner-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* flat dark left third that opens onto the art for the rest */
.banner-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(17, 11, 8, 1) 0%,
    rgba(17, 11, 8, 1) 26%,
    rgba(17, 11, 8, 0.82) 36%,
    rgba(17, 11, 8, 0.3) 50%,
    rgba(17, 11, 8, 0) 66%
  );
}

.banner-content {
  position: relative;
  z-index: 2;
}

/* content occupies only the left third — video gets the rest */
.banner-panel { max-width: 360px; }
.banner-panel .hero-actions {
  margin-top: 2rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.banner-panel .hero-actions .btn {
  width: 85%;
  justify-content: center;
}

/* social row — facebook, instagram, share */
.banner-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover,
.social-btn:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}

.social-share { width: auto; padding: 0 1.1rem; }

.game-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }

.game-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  transition: all 0.2s;
}
.game-tags span:hover { color: var(--accent); border-color: var(--border-hover); }

/* frosted bottom tag strip — full width, dot separators */
.banner-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.6rem -3rem 0;
  padding: 1.6rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(17, 11, 8, 0.55);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  flex-wrap: wrap;
  row-gap: 0.9rem;
}

.banner-footer span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.banner-footer i {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ Stats ============ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  text-align: center;
}

.stat-item {
  padding: 2.2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  margin-top: 0.3rem;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}

/* ============ Work showcase ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s, border-color 0.3s;
}

.work-card:hover { transform: translateY(-6px); border-color: var(--border-hover); }

/* anchor targets (deep-linked from the homepage grid) clear the sticky header */
.work-card[id] { scroll-margin-top: 90px; }

.work-card .work-bg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.work-card .work-bg svg {
  width: 46%;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.4s;
}
.work-card:hover .work-bg svg { opacity: 0.85; transform: scale(1.08); }

.work-bg.tone-immersive { background: linear-gradient(140deg, #2a1408, #572a12); }
.work-bg.tone-2d { background: linear-gradient(140deg, #241a05, #4d350a); }
.work-bg.tone-ar { background: linear-gradient(140deg, #2e0d06, #5e2010); }
.work-bg.tone-3d { background: linear-gradient(140deg, #221605, #4a2e08); }
.work-bg.tone-vr { background: linear-gradient(140deg, #260d09, #4e1e14); }
.work-bg.tone-game { background: linear-gradient(140deg, #241105, #572a05); }

.work-card .work-info {
  position: relative;
  width: 100%;
  padding: 1.3rem 1.5rem;
  background: linear-gradient(to top, rgba(5, 6, 15, 0.92), transparent);
}

.work-card .work-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.work-card h3 { font-size: 1.1rem; margin-top: 0.25rem; }

.work-card .work-sub { color: var(--text-dim); font-size: 0.85rem; margin-top: 0.25rem; }

/* ---- Media variant (homepage portfolio cards) ---- */
.work-card--media .work-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
  transform: scale(1.02);
  transition: transform 0.6s ease, opacity 0.4s ease;
  opacity: 0.92;
}

.work-card--media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 15, 0.95) 0%, rgba(5, 6, 15, 0.4) 45%, transparent 70%);
  pointer-events: none;
}

.work-card--media:hover .work-bg video { transform: scale(1.07); opacity: 1; }

.work-card--media .work-info {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  padding: 1.6rem 1.4rem 1.2rem;
}

.work-card--media .work-info h3 {
  font-size: 1.15rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.work-card--media .work-info .work-sub { color: var(--text-dim); text-shadow: 0 1px 8px rgba(5, 6, 15, 0.8); }

.work-tag--chip {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffd8a8;
  background: rgba(10, 8, 14, 0.55);
  border: 1px solid rgba(255, 199, 107, 0.3);
  backdrop-filter: blur(6px);
}

.work-badge {
  position: absolute;
  z-index: 2;
  top: 0.9rem;
  right: 0.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #140a05;
  background: var(--grad-primary);
  box-shadow: 0 4px 14px rgba(245, 103, 60, 0.4);
}

/* Featured work card (Jelly Arena) — the class used on the homepage grid */
.work-card--featured {
  border-color: var(--border-hover);
  box-shadow: var(--glow-accent);
}
.work-card--featured:hover { box-shadow: 0 0 34px rgba(245, 103, 60, 0.55); }

.work-go {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(10, 8, 14, 0.55);
  border: 1px solid rgba(255, 199, 107, 0.3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translate(6px, 6px);
  transition: opacity 0.3s, transform 0.3s;
}

.work-go svg { width: 1rem; height: 1rem; }

.work-card--media:hover .work-go { opacity: 1; transform: translate(0, 0); }

/* ============ Page hero (inner pages) ============ */
.page-hero {
  padding: 5.5rem 0 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 1rem; }

.breadcrumb {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 1.4rem;
}

.page-hero .breadcrumb {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb .current { color: var(--accent); }

/* ============ Content split ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 1.1rem; }
.split p { color: var(--text-dim); margin-bottom: 1rem; }

.check-list { margin: 1.4rem 0 2rem; }

.check-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.5rem 0;
  color: var(--text-dim);
  font-size: 0.96rem;
}

.check-list svg { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; stroke: var(--amber); }

/* ============ Steps / process ============ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 2rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: var(--border-hover); transform: translateY(-4px); }

.step-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.step-card h3 { font-size: 1.05rem; margin: 0.7rem 0 0.55rem; }
.step-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ============ Contact ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-info-card {
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: 0; }

.contact-item .icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(245, 103, 60, 0.16), rgba(235, 151, 24, 0.12));
  border: 1px solid var(--border);
}

.contact-item .icon svg { width: 20px; height: 20px; stroke: var(--accent); }

.contact-item h3 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--text-dim); font-size: 0.92rem; }
.contact-item a:hover { color: var(--accent); }

.contact-form {
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-dim);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select { appearance: none; }
.form-group option { background: var(--bg-2); color: var(--text); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--border-hover);
  box-shadow: var(--glow-accent);
}

.form-group textarea { min-height: 130px; resize: vertical; }

.form-note { font-size: 0.8rem; color: var(--text-faint); margin-top: 0.9rem; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.form-status[data-kind="ok"] { border-color: rgba(92, 214, 140, 0.5); }
.form-status[data-kind="error"] { border-color: var(--border-hover); }
.contact-form button[disabled] { opacity: 0.6; cursor: wait; }

/* ============ Socials ============ */
.socials { display: flex; gap: 0.8rem; }

.socials a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
}

.socials a:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-accent);
  transform: translateY(-3px);
}

.socials svg { width: 18px; height: 18px; fill: var(--text-dim); }
.socials a:hover svg { fill: var(--accent); }

/* ============ CTA strip ============ */
.cta-strip {
  text-align: center;
  padding: 4.5rem 3rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 10%, rgba(245, 103, 60, 0.14), transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(235, 151, 24, 0.12), transparent 50%),
    var(--bg-2);
}

.cta-strip h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 0.8rem; }
.cta-strip p { color: var(--text-dim); max-width: 560px; margin: 0 auto 2rem; }

/* Stats merged into the CTA strip — flips above the CTA content */
.cta-stats {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.cta-stats .stat-item {
  padding: 0;
  background: none;
  border: none;
}

/* ============ Footer ============ */
.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(5, 6, 15, 0.65);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: var(--text-dim); font-size: 0.92rem; margin: 1rem 0 1.4rem; max-width: 300px; }

.footer-grid h3 {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.2rem;
}

.footer-grid ul li { margin-bottom: 0.65rem; }

.footer-grid ul a {
  color: var(--text-dim);
  font-size: 0.93rem;
  transition: color 0.2s, padding-left 0.2s;
}
.footer-grid ul a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-contact .icon svg { width: 16px; height: 16px; stroke: var(--accent); flex-shrink: 0; margin-top: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-bottom a:hover { color: var(--accent); }

/* ============ Reveal animation ============ */
/* Scoped to .js (set by an inline head script) so content stays visible without JS */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .card-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .latest-banner { min-height: 0; padding: 2.6rem 2rem 0; }
  .banner-panel { max-width: none; }
  .banner-footer { margin: 2rem -2rem 0; padding: 1.3rem 2rem; justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(5, 6, 15, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0.35s;
  }

  .main-nav.open {
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    visibility: visible;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 5%;
  }

  .main-nav a { padding: 0.8rem 1rem; }
  .main-nav a.active:not(.nav-cta)::after { width: 40px; }
  .nav-cta { text-align: center; }

  /* submenu flows inline in the mobile panel */
  .main-nav ul.sub-menu {
    position: static;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 0.4rem 1.6rem;
  }
  .main-nav ul.sub-menu::before { display: none; }
  .main-nav .sub-menu a { padding: 0.5rem 1rem; }
  .main-nav .sub-caret { display: none; }
}

@media (max-width: 720px) {
  .card-grid, .card-grid.cols-2, .work-grid, .steps-grid { grid-template-columns: 1fr; }
  .is-featured { grid-column: auto; padding: 2rem 1.6rem; }
  .stats-bar { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .latest-banner { padding: 2.2rem 1.6rem 0; }
  .banner-footer { margin: 1.6rem -1.6rem 0; padding: 1.2rem 1.6rem; }
  .banner-footer span { font-size: 0.68rem; letter-spacing: 0.18em; }
  section { padding: 4rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================================
   ENHANCEMENTS - scroll progress, cursor glow, marquee, tilt
   ============================================================ */

/* --- Scroll progress bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  box-shadow: 0 0 12px rgba(245, 103, 60, 0.55);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* --- Cursor glow (desktop pointers only) --- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000;
  background: radial-gradient(circle, rgba(245, 103, 60, 0.1), rgba(235, 151, 24, 0.05) 42%, transparent 66%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
}
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* --- Card tilt --- */
.tilt {
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) { }
