/*
Theme Name: AppsJenni
Author: AppsJenni
Description: Custom WordPress theme built from scratch.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --ink: #0A0F1C;
  --deep: #05080F;
  --bone: #F4F1EA;
  --paper: #FBF9F4;
  --gold: #F5A623;
  --goldd: #D88E13;
  --line: rgba(244, 241, 234, 0.08);
  --mute: #8A93A6;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html,
body {
  background: var(--ink);
  color: var(--bone);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body {
  font-family: "Poppins", system-ui, sans-serif;
  cursor: none;
}
@media (max-width: 768px) {
  body {
    cursor: auto;
  }
  .cursor,
  .cursor-dot,
  .cursor-trail {
    display: none !important;
  }
}
::selection {
  background: var(--gold);
  color: var(--ink);
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
}

/* ========== TYPOGRAPHY ========== */
.h-display {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3em;
}
.h-italic {
  font-style: italic;
  color: var(--gold);
}
.font-mono {
  font-family: "Poppins", sans-serif;
}
.text-balance {
  text-wrap: balance;
}
.ag-section-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.ag-section-title-dark {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--goldd);
  font-weight: 500;
}
.editorial-rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--gold) 0 80px,
    rgba(244, 241, 234, 0.12) 80px
  );
}
.editorial-rule-dark {
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--goldd) 0 80px,
    rgba(11, 18, 32, 0.15) 80px
  );
}
.num-display {
  font-family: "Poppins", sans-serif;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.preloader-num {
  font-family: "Poppins", sans-serif;
  font-size: 120px;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.04em;
}
.preloader-num span:last-child {
  color: var(--gold);
}
.preloader-bar {
  width: 240px;
  height: 1px;
  background: rgba(244, 241, 234, 0.1);
  position: relative;
  overflow: hidden;
}
.preloader-bar i {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--gold);
  width: 0%;
}
.preloader-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
}
@media (max-width: 640px) {
  .preloader {
    gap: 16px;
  }
  .preloader-num {
    font-size: 84px;
  }
  .preloader-bar {
    width: 190px;
  }
  .preloader-label {
    font-size: 10px;
  }
}

/* ========== CURSOR + IMAGE TRAIL ========== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244, 241, 234, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: width 0.25s, height 0.25s, background 0.25s, border-color 0.25s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor.hovered {
  width: 64px;
  height: 64px;
  background: rgba(245, 166, 35, 0.14);
  border-color: var(--gold);
}
.cursor.text-mode {
  width: 84px;
  height: 84px;
  background: var(--gold);
  border-color: var(--gold);
}
.cursor.text-mode::before {
  content: attr(data-cursor);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  width: 90px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform, opacity;
}
.cursor-trail.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cursor-trail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PAGE TRANSITION ========== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  transform: translateY(100%);
}
.page-transition .pt-panel {
  position: absolute;
  inset: 0;
  background: var(--deep);
}
.page-transition .pt-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-size: 80px;
  color: var(--bone);
}

/* ========== NAVIGATION ========== */
.nav-link {
  position: relative;
  display: inline-block;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active {
  color: var(--gold);
}
.nav-link.active::after {
  width: 100%;
}
.ag-mark {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 30px;
  height: 30px;
}
.ag-mark span {
  background: var(--bone);
  border-radius: 2px;
}
.ag-mark span:nth-child(3) {
  background: var(--gold);
}

/* Side dot nav (anchor scroll indicator) */
.side-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: none;
}
@media (min-width: 1280px) {
  .side-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
}
.side-nav-item {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 241, 234, 0.2);
  position: relative;
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
}
.side-nav-item:hover {
  background: var(--gold);
  transform: scale(1.4);
}
.side-nav-item.active {
  background: var(--gold);
  transform: scale(1.4);
}
.side-nav-item span {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-family: "Poppins", sans-serif;
  color: var(--bone);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.side-nav-item:hover span,
.side-nav-item.active span {
  opacity: 1;
}

/* ========== BUTTONS ========== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.35s,
    color 0.35s;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: #ffb838;
}
.btn-outline {
  border: 1px solid rgba(244, 241, 234, 0.18);
  color: var(--bone);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-outline-dark {
  border: 1px solid rgba(11, 18, 32, 0.15);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover {
  border-color: var(--goldd);
  color: var(--goldd);
}
.btn .arrow-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
}
.btn-gold:hover .arrow-circle {
  transform: rotate(-45deg);
}
.btn-outline:hover .arrow-circle,
.btn-outline-dark:hover .arrow-circle {
  transform: rotate(-45deg);
}

/* ========== PILLS ========== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(244, 241, 234, 0.18);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c8cdd8;
  font-weight: 500;
}
.pill-gold {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.45);
  color: var(--gold);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.6s infinite;
}
.pill-dark {
  border: 1px solid rgba(11, 18, 32, 0.15);
  color: var(--ink);
}
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.6);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 166, 35, 0);
  }
}

/* ========== SCROLL PROGRESS + GRAIN ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 9997;
  transition: width 0.1s linear;
}
.grain {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.04) 1px,
    transparent 1px
  );
  background-size: 4px 4px;
}
.hairline {
  border-top: 1px solid rgba(244, 241, 234, 0.08);
}
.hairline-dark {
  border-top: 1px solid rgba(11, 18, 32, 0.1);
}

/* ========== MARQUEE ========== */
.marquee-wrap {
  display: flex;
  overflow: hidden;
}
.marquee {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  flex-shrink: 0;
  animation: marquee 60s linear infinite;
}
.marquee.fast {
  animation-duration: 35s;
}
.marquee.slow {
  animation-duration: 90s;
}
.marquee.reverse {
  animation-direction: reverse;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}
.marquee-wrap:hover .marquee {
  animation-play-state: paused;
}

/* ========== TICKER ========== */
.ticker-line {
  position: relative;
  padding-left: 18px;
}
.ticker-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
  animation: pulse 1.6s ease-in-out infinite;
}

/* ========== TERMINAL ========== */
.terminal {
  background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.terminal-line {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.7;
}
.typing {
  border-right: 2px solid var(--gold);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* ========== CARDS ========== */
.card-tilt {
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.5s;
  will-change: transform;
}
.card-tilt:hover {
  border-color: rgba(245, 166, 35, 0.5);
}

/* ========== SERVICE ROW ========== */
.service-row {
  position: relative;
  transition: background 0.4s;
  cursor: pointer;
}
.service-row:hover {
  background: rgba(245, 166, 35, 0.04);
}
.service-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.service-row:hover::before {
  width: 4px;
}
.service-row .preview {
  position: absolute;
  pointer-events: none;
  width: 320px;
  height: 220px;
  opacity: 0;
  border-radius: 14px;
  overflow: hidden;
  transition: opacity 0.4s;
  z-index: 5;
}
.service-row:hover .preview {
  opacity: 1;
}
.service-row .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== INDUSTRY TILES ========== */
.industry-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.industry-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.6s, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.industry-tile:hover img {
  opacity: 0.55;
  transform: scale(1);
}
.industry-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0) 30%,
    rgba(5, 8, 15, 0.85) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.6s;
}
.industry-tile:hover::before {
  opacity: 1;
}

/* ========== CASE CARDS ========== */
.case-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.case-card .case-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  transform: scale(1.05);
}
.case-card:hover .case-img {
  transform: scale(1.12);
}
.case-card .case-overlay {
  background: linear-gradient(
    180deg,
    rgba(5, 8, 15, 0.05) 0%,
    rgba(5, 8, 15, 0.55) 50%,
    rgba(5, 8, 15, 0.95) 100%
  );
}

/* ========== TEAM CARD ========== */
.team-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3/4;
  cursor: pointer;
}
.team-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  filter: grayscale(60%) contrast(1.05);
}
.team-card:hover img {
  transform: scale(1.08);
  filter: grayscale(0%) contrast(1.05);
}
.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(5, 8, 15, 0.9) 100%
  );
  z-index: 1;
}
.team-card .info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  z-index: 2;
  transform: translateY(28px);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.team-card:hover .info {
  transform: translateY(0);
}
.team-card .info .meta {
  opacity: 0;
  transition: opacity 0.4s;
}
.team-card:hover .info .meta {
  opacity: 1;
}

/* ========== TIMELINE ========== */
.tl-step {
  position: relative;
  padding: 60px 0;
}
.tl-step .tl-num {
  font-family: "Poppins", sans-serif;
  font-size: 120px;
  color: var(--gold);
  opacity: 0.15;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ========== SCRAMBLE ========== */
[data-scramble] {
  font-feature-settings: "tnum" 1;
}

/* ========== TESTIMONIAL ========== */
.testimonial-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 12px;
}

/* ========== BLOG ========== */
.blog-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card:hover {
  transform: translateY(-4px);
}
.blog-card .blog-img {
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card:hover .blog-img {
  transform: scale(1.05);
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--mute);
  font-family: "Poppins", sans-serif;
}

/* Blog content (long-form article) */
.article-body {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(244, 241, 234, 0.85);
  max-width: 720px;
}
.article-body p {
  margin: 0 0 1.5em;
}
.article-body h2 {
  font-family: "Poppins", sans-serif;
  font-size: 40px;
  line-height: 1.05;
  color: var(--bone);
  margin: 2.5em 0 0.8em;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--bone);
  margin: 2em 0 0.6em;
}
.article-body strong {
  color: var(--bone);
  font-weight: 600;
}
.article-body em {
  color: var(--gold);
  font-style: italic;
}
.article-body a {
  color: var(--gold);
  border-bottom: 1px solid rgba(245, 166, 35, 0.4);
}
.article-body a:hover {
  border-color: var(--gold);
}
.article-body blockquote {
  border-left: 2px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 2em 0;
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  line-height: 1.25;
  color: var(--bone);
  font-style: italic;
}
.article-body ul {
  padding-left: 0;
  margin: 1.5em 0;
  list-style: none;
}
.article-body ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.8em;
}
.article-body ul li::before {
  content: "\00B7";
  position: absolute;
  left: 6px;
  top: -8px;
  color: var(--gold);
  font-size: 28px;
}
.article-body ol {
  padding-left: 24px;
  margin: 1.5em 0;
}
.article-body ol li {
  margin-bottom: 0.8em;
  padding-left: 8px;
}
.article-body ol li::marker {
  color: var(--gold);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
}
.article-body code {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold);
  padding: 2px 6px;
  border-radius: 4px;
}
.article-body pre {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 2em 0;
  font-size: 14px;
  line-height: 1.6;
}
.article-body pre code {
  background: transparent;
  color: var(--bone);
  padding: 0;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}
.article-body th,
.article-body td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body th {
  color: var(--gold);
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.article-body figure {
  margin: 2.5em 0;
}
.article-body figure img {
  border-radius: 12px;
}
.article-body figcaption {
  font-size: 13px;
  color: var(--mute);
  margin-top: 12px;
  font-style: italic;
  text-align: center;
}
.callout {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 14px;
  padding: 24px 28px;
  margin: 2em 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bone);
}
.callout strong {
  color: var(--gold);
}

/* ========== INSIGHTS GRID ========== */
.insight-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.insight-card .insight-img {
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.insight-card:hover .insight-img {
  transform: scale(1.08);
}

/* ========== TECH STACK ========== */
.tech-tile {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
}
.tech-tile:hover {
  background: rgba(245, 166, 35, 0.08);
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateY(-3px);
}
.tech-tile .tech-name {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: var(--mute);
  font-family: "Poppins", sans-serif;
  opacity: 0;
  transition: opacity 0.3s;
}
.tech-tile:hover .tech-name {
  opacity: 1;
}
.tech-tile svg,
.tech-tile .tech-icon {
  transition: transform 0.4s;
}
.tech-tile:hover svg,
.tech-tile:hover .tech-icon {
  transform: translateY(-6px) scale(1.1);
}

/* ========== MAP PINS ========== */
.map-pin {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
  animation: pulse 2s ease-in-out infinite;
  cursor: pointer;
}
.map-pin::after {
  content: attr(data-label);
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-family: "Poppins", sans-serif;
  color: var(--bone);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
}
.map-pin:hover::after,
.map-pin.active::after {
  opacity: 1;
}

/* ========== REVEAL UTILS ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
}
.split-char {
  display: inline-block;
}

/* ========== HOVER CARD MAGNETIC ========== */
.magnetic {
  will-change: transform;
}

/* ========== FOOTER BIG MARK ========== */
.footer-mark {
  font-family: "Poppins", sans-serif;
  font-size: 80px;
  line-height: 0.85;
  color: rgba(244, 241, 234, 0.95);
}
@media (max-width: 639px) {
  .footer-mark {
    font-size: 48px;
    line-height: 0.95;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 640px) {
  .footer-mark {
    font-size: 120px;
  }
}
@media (min-width: 1024px) {
  .footer-mark {
    font-size: 180px;
  }
}
@media (min-width: 1280px) {
  .footer-mark {
    font-size: 180px;
  }
}

/* ========== AWARDS BENTO ========== */
.bento-cell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  transition: border-color 0.4s, transform 0.4s;
}
.bento-cell:hover {
  border-color: rgba(245, 166, 35, 0.4);
  transform: translateY(-3px);
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.site-header .btn {
  padding: 10px 10px 10px 16px;
}

/* ========== MOBILE MENU ========== */
.mobile-toggle {
  display: none;
}
@media (max-width: 1023px) {
  .mobile-toggle {
    display: inline-flex;
  }
  .nav-desktop {
    display: none !important;
  }
  .industry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
  }
  .site-header .header-cta {
    display: none;
  }
  .site_logo {
    width: 155px !important;
    height: auto;
  }
  .hero-title {
    font-size: clamp(44px, 13vw, 56px) !important;
    line-height: 0.98 !important;
  }
  #wedge-section {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #wedge-section::-webkit-scrollbar {
    display: none;
  }
  #wedge-track {
    width: max-content;
    transform: none !important;
    touch-action: pan-x;
  }
  .agentic-terminal-header {
    gap: 12px;
    padding: 12px 16px;
    align-items: flex-start;
  }
  .agentic-terminal-header > div:first-child {
    min-width: 0;
  }
  .agentic-terminal-header .terminal-status-dot {
    width: 12px;
    min-width: 12px;
    height: 12px;
    flex: 0 0 12px;
  }
  .agentic-terminal-header > div:first-child > span.ml-4 {
    display: block;
    min-width: 0;
    max-width: 150px;
    margin-left: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .agentic-terminal-header > div:last-child {
    flex: 0 0 auto;
    font-size: 10px;
  }
  .agentic-terminal-body {
    padding: 20px;
    gap: 24px;
  }
  .agentic-terminal-output {
    font-size: 11px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }
  .agentic-metrics {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .agentic-metrics > .col-span-2 {
    grid-column: span 1;
  }
  .industry-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .mobile-menu {
    padding: 64px 24px 28px;
  }
  .mobile-menu a {
    padding: 13px 0;
    font-size: 28px;
    line-height: 1.15;
  }
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 60;
  width: min(calc(100vw - 90px), 320px);
  height: 100dvh;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--deep);
  padding: 80px 32px 40px;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0.6s;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-toggle {
  position: relative;
  z-index: 70;
}
.mobile-menu a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: "Poppins", sans-serif;
  font-size: 36px;
}
@media (max-width: 640px) {
  .mobile-menu {
    padding: 24px 20px 24px;
  }
  .mobile-menu a {
    padding: 10px 0;
    font-size: 25px;
    line-height: 1.15;
  }
}
body.menu-open {
  overflow: hidden;
}

/* ========== UTILITIES ========== */
.text-bone-65 {
  color: rgba(244, 241, 234, 0.65);
}
.text-bone-75 {
  color: rgba(244, 241, 234, 0.75);
}
.text-bone-85 {
  color: rgba(244, 241, 234, 0.85);
}
.text-ink-60 {
  color: rgba(11, 18, 32, 0.6);
}
.text-ink-70 {
  color: rgba(11, 18, 32, 0.7);
}
.bg-gold-soft {
  background: rgba(245, 166, 35, 0.06);
}

/* ========== FOOTER ========== */
.footer-grid{
  display:flex;
  justify-content:space-between;
  gap:80px;
  flex-wrap:wrap;
}

.footer-about{
  flex:1 1 315px;
  max-width:520px;
}

.footer-text{
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,0.65);
}

.footer-col h4{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8f98b3;
  margin-bottom:24px;
}

.footer-col ul{
  padding:0;
  margin:0;
  list-style:none;
}

.footer-col ul li{
  margin-bottom:16px;
  color:#fff;
  font-size:15px;
}

.footer-col ul li a{
  color:#fff;
  text-decoration:none;
  transition:.3s;
}

.footer-col ul li a:hover{
  color:#f5a623;
}

.hq{
  color:#f5a623;
  font-size:11px;
  margin-left:4px;
}

.footer-social{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:35px;
  flex-wrap:wrap;
}

.social-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:#000;
  position:relative;
  overflow:hidden;
  transition:.35s ease;
}

.social-icon svg{
  width:22px;
  height:22px;
  position:relative;
  z-index:2;
  transition:.35s ease;
}

.social-icon::before{
  content:'';
  position:absolute;
  inset:0;
  background:#f5a623;
  border-radius:50%;
  transform:scale(0);
  transition:.35s ease;
}

.social-icon:hover::before{
  transform:scale(1);
}

.social-icon:hover{
  color:#000;
  border-color:#f5a623;
  transform:translateY(-6px);
}

@media(max-width:991px){
  .footer-grid{
    gap:50px;
  }

  .footer-about{
    max-width:100%;
    flex:100%;
  }
}

@media(max-width:767px){
  .footer-grid{
    flex-direction:column;
    gap:40px;
  }

  .footer-col{
    width:100%;
  }

  .footer-social{
    gap:14px;
  }

  .social-icon{
    width:48px;
    height:48px;
  }
}

/* ========== GLOBAL TYPOGRAPHY OVERRIDE (SAFE FOR WP ADMIN BAR) ========== */
:root {
  --main-font: "Poppins", sans-serif;
}

body:not(.wp-admin) *:not(#wpadminbar):not(#wpadminbar *) {
  font-family: var(--main-font);
}

h1 {
  font-size: 80px !important;
}

/* Preserve Admin Bar Icons */
#wpadminbar,
#wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}

#wpadminbar .ab-icon::before,
#wpadminbar .ab-item::before,
#wpadminbar .dashicons {
  font-family: "dashicons" !important;
}

/* Footer */
  .footer-grid{
  display:flex;
  justify-content:space-between;
  gap:80px;
  flex-wrap:wrap;
}

.footer-about{
  flex:1 1 315px;
  max-width:520px;
}

/* .footer-col{
    flex:1 1 180px;
    min-width:180px;
} */

.footer-text{
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,0.65);
}

.footer-col h4{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8f98b3;
  margin-bottom:24px;
}

.footer-col ul{
  padding:0;
  margin:0;
  list-style:none;
}

.footer-col ul li{
  margin-bottom:16px;
  color:#fff;
  font-size:15px;
}

.footer-col ul li a{
  color:#fff;
  text-decoration:none;
  transition:.3s;
}

.footer-col ul li a:hover{
  color:#f5a623;
}

.hq{
  color:#f5a623;
  font-size:11px;
  margin-left:4px;
}

.footer-social{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:35px;
  flex-wrap:wrap;
}

.social-icon{
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.15);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background:#000;
  position:relative;
  overflow:hidden;
  transition:.35s ease;
}

.social-icon svg{
  width:22px;
  height:22px;
  position:relative;
  z-index:2;
  transition:.35s ease;
}

.social-icon::before{
  content:'';
  position:absolute;
  inset:0;
  background:#f5a623;
  border-radius:50%;
  transform:scale(0);
  transition:.35s ease;
}

.social-icon:hover::before{
  transform:scale(1);
}

.social-icon:hover{
  color:#000;
  border-color:#f5a623;
  transform:translateY(-6px);
}

@media(max-width:991px){

  .footer-grid{
    gap:50px;
  }

  .footer-about{
    max-width:100%;
    flex:100%;
  }

}

@media(max-width:767px){

  .footer-grid{
    flex-direction:column;
    gap:40px;
  }

  .footer-col{
    width:100%;
  }

  .footer-social{
    gap:14px;
  }

  .social-icon{
    width:48px;
    height:48px;
  }

}

/* Form */
.cf7-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cf7-form-grid .full-width {
  grid-column: span 2;
}

.cf7-form-grid label {
  font-family: var(--main-font);
  --tw-text-opacity: 1;
  color: rgb(138 147 166 / var(--tw-text-opacity, 1));
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 11px;
  display: block;
  margin-bottom: 0.5rem;
}

.wpcf7-form-control {
  font-family: var(--main-font);
  font-size: 14px;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  --tw-bg-opacity: 1;
  background-color: rgb(10 15 28 / var(--tw-bg-opacity, 1));
  border-color: rgba(244, 241, 234, 0.08);
  border-width: 1px;
  border-radius: 9999px;
  width: 100%;
}

.wpcf7-form-control.wpcf7-textarea {
  border-radius: 1rem;
  height: 118px;
  resize: vertical;
}

.wpcf7-form-control.wpcf7-submit {
  will-change: transform;
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 18px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background 0.35s, color 0.35s;
  cursor: pointer;
  text-transform: none;
  width: unset;
}

.cf7-form-grid p br {
    display: none;
}

.cf7-form-grid .wpcf7-not-valid {
    border-color: red;
    background: #ff00001a;
}

.cf7-form-grid .wpcf7-not-valid-tip {
  text-align: center;
  display: none;
}

@media (max-width: 768px) {
  .cf7-form-grid {
    grid-template-columns: 1fr;
  }
  .cf7-form-grid .full-width {
    grid-column: span 1;
  }
}