/*
Theme Name:   GamefaceX Theme
Template:     twentytwentyone
Text Domain:  twentytwentyone-child
*/
:root {
  --brand-light: #fefefe;
  --brand-light-hover: red;
  --brand-blue: #38c18d;
  --brand-black: #111;
  --pure-white: #fff;
  --standard-transition: all 0.2s ease-in-out;
  --heading-spacing: 1rem;
}

html {
  background: var(--brand-light);
  font-size: 16px;
  min-height: 100vh;
  padding-bottom: 50px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #111;
}

html,
body {
  overflow-x: hidden;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

/* ============================= */
/* LOADING SCREEN */
/* ============================= */

#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ============================= */
/* LOADER WRAPPER */
/* ============================= */

.loader {
  position: relative;
  width: 120px;
  height: 120px;
}

/* ============================= */
/* SPINNER CORE */
/* ============================= */

.spinner {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ROTATING RING */
.spinner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  border: 2px solid rgba(0, 0, 0, 0.08);
  border-top: 2px solid #000;

  animation: spin 1s linear infinite;
}

/* PULSING OUTER RING */
.spinner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;

  border: 2px solid rgba(0, 0, 0, 0.1);

  animation: pulse 1.8s ease-in-out infinite;
}

/* ============================= */
/* WC TEXT */
/* ============================= */

.loader-text {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 28px;
  letter-spacing: 0.08em;

  color: #000;

  animation: textPulse 2s ease-in-out infinite;
}

/* ============================= */
/* ANIMATIONS */
/* ============================= */

/* SPIN */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* PULSE RING */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.2;
  }
}

/* TEXT PULSE */
@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}

body.scrolled-padding {
  padding-top: 80px; /* equal to header height */
}

ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

a,
li {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  text-decoration: none;
  font-size: 1rem;
}

/* Font Sizing */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333333;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin-top: 0;
  margin-bottom: var(--heading-spacing);
}
/* Headings */

h1 {
  font-size: clamp(2rem, 5vw + 1rem, 3.5rem);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw + 1rem, 2.75rem);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 0.9rem;
}

h3 {
  font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 0.8rem;
}

h4 {
  font-size: clamp(1.25rem, 2vw + 0.8rem, 1.75rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 0.7rem;
}

h5 {
  font-size: clamp(1.1rem, 1.5vw + 0.7rem, 1.4rem);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.6rem;
}

h6 {
  font-size: clamp(1rem, 1vw + 0.6rem, 1.2rem);
  font-weight: 300;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}

/* Paragraph */
p {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-size: 1rem;
  opacity: 0.7;
  line-height: 30px;
  padding-bottom: 1rem;
}

/* Base Container */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0px !important;
}

.container-fluid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0px;
}

.container-fluid .row {
  padding-left: clamp(12px, 2vw, 24px) !important;
  padding-right: clamp(12px, 2vw, 24px) !important;
}
/* Container Sizes */
.container-sm {
  max-width: 600px;
}
.container-md {
  max-width: 768px;
}
.container-lg {
  max-width: 1024px;
}
.container-xl {
  max-width: 1280px;
}
.container-2xl {
  max-width: 1440px;
}

/* Optional Full Container */
.container-full {
  max-width: 100%;
}

/* Media Queries - Responsive Padding Tweaks */
section.default {
  padding: 80px 0 !important;
  position: relative;
}

section.section-sm {
  padding: 40px 0 !important;
}

section.section-lg {
  padding: 120px 0 !important;
}
section.section-hero {
  padding: 140px 0 100px;
}

section.section-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

section.section-elevated {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-radius: 16px;
}

section.section-center {
  text-align: center;
}

section.section-overlay {
  position: relative;
}

section.section-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

section.section-overlay > * {
  position: relative;
  z-index: 1;
}

.image_wrapper {
  width: 100%;
  height: 100%;
  border: #ddd;
}

.image_wrapper img {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Scroll to Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;

  width: 50px;
  height: 50px;

  border: none;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-size: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

/* Visible state */
#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Hover */
#scrollTopBtn:hover {
  background: #333;
}
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;

  background: transparent;
  box-shadow: none;

  transition: all 0.3s ease;
  z-index: 999;
}

.site-header.scrolled {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 80px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header > * {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0rem 0.5rem !important;
}

.site-header a {
  z-index: 999;
}

.site-branding {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-branding a {
  position: relative;
  height: 100%;
}

.site-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 200px;
}

.cls-1 {
  fill: #111111;
}

.cls-2 {
  fill: #111111;
}

.footer-logo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 200px;
  padding-bottom: 20px;
}
.footer-logo .cls-1,
.footer-logo .cls-2 {
  fill: #fff;
}
.primary-menu-container ul {
  display: flex;
  justify-content: flex-end;
  height: 80px;
}

.primary-menu-container ul li {
  margin-left: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.primary-menu-container ul li a {
  display: flex;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: var(--brand-black);
  transition: color 0.25s ease;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

/* When hero is dark + and scroll is top */
.site-header.unscrolled.header-light .primary-menu-container ul li a,
.site-header.unscrolled.header-light .sub-menu-toggle {
  color: var(--pure-white);
}

.site-header.unscrolled.header-light li:hover {
  border-bottom: 2px solid #fff;
}

/* Keep scrolled state clean */
.site-header.scrolled .primary-menu-container ul li a {
  color: var(--brand-black);
}

.site-header.unscrolled.header-light .cls-1,
.site-header.unscrolled.header-light .cls-2 {
  fill: #fff;
}

.primary-menu-container ul li:hover {
  border-bottom-color: var(--brand-black);
}

/* Parent item */
.primary-navigation .menu > .menu-item {
  position: relative;
}

/* Submenu base */
.primary-navigation .sub-menu {
  position: absolute;
  top: 100%;
  right: 0;

  min-width: 220px;

  background: #fff;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s ease;

  z-index: 999;
}

.site-header.unscrolled .primary-navigation .sub-menu {
  background: transparent !important;
}
.site-header.unscrolled .primary-navigation .sub-menu li:hover a {
  background: transparent !important;
}

.primary-navigation .menu-item-has-children {
  border-bottom: 2px solid transparent !important;
}
/* Show on hover */
.primary-navigation .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-navigation .menu-item-has-children:hover {
  border-bottom: 1px solid var(--brand-light);
}

.primary-navigation .menu-item-has-children > a,
.footer-menu-wrapper .menu-item-has-children > a {
  pointer-events: none;
}

/* Submenu items */
.primary-navigation .sub-menu .menu-item {
  padding: 0;
}

/* Links */
.primary-navigation .sub-menu a {
  display: block;
  font-size: 0.9rem;
  color: #111;
  text-decoration: none;
  width: 100%;
  transition: 0.2s ease;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0px 20px;
}

.primary-menu-container ul.sub-menu li {
  margin: 0 !important;
}
/* Hover */
.primary-navigation .sub-menu a:hover {
  background: #f5f5f5;
}

/* Hide default icon */
.primary-navigation .sub-menu-toggle button,
.footer-menu-wrapper .sub-menu-toggle button {
  display: none;
}
/* 1. Hide default + / - icons */
.primary-navigation .sub-menu-toggle .icon-plus,
.primary-navigation .sub-menu-toggle .icon-minus,
.footer-menu-wrapper .sub-menu-toggle .icon-plus,
.footer-menu-wrapper .sub-menu-toggle .icon-minus {
  display: none;
}

/* 2. Style button */
.primary-navigation .sub-menu-toggle,
.footer-menu-wrapper .sub-menu-toggle {
  background: none;
  border: none;
  padding: 0;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-menu-wrapper .sub-menu .menu-item {
  padding-left: 20px;
}

/* 3. Add chevron */
.primary-navigation .sub-menu-toggle::after {
  content: "\f282"; /* Bootstrap chevron-down */
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
  transition: transform 0.25s ease;
  display: inline-block;
  margin-left: 7px;
}

/* 4. Rotate when open */
.primary-navigation .sub-menu-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.align-container-left {
  padding-left: calc((100% - 1320px) / 2);
}

.align-container-right {
  padding-right: calc((100% - 1320px) / 2);
}

.site-socials ul {
  height: 100%;
  display: flex;
}

.site-socials ul li {
  height: 80px;
  padding: 0 clamp(0px, 5vw, 20px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.site-socials ul li a {
  width: 100%;
  height: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  color: rgba(255, 255, 255, 0.65);
  transition: var(--standard-transition);
}

.site-socials ul li:hover a {
  color: var(--pure-white);
}

.site-socials ul li a i {
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.cta-footer {
  background: #111111;
  color: #fff;
  padding: 100px 0px;
  border-bottom: 1px solid #222;
}

.cta-footer :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
  font-weight: 500;
}

.site-footer {
  background: #000;
  color: #fff;
}

.site-footer h6 {
  color: #fff !important;
  font-weight: 500;
}

.site-footer li {
  padding: 8px 0px;
}

.footer-desc {
  color: #fff;
  opacity: 0.7;
  max-width: 320px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 2px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-divider {
  border-color: #777;
  margin: 40px 0;
}

.footer-social a {
  color: #aaa;
  margin-left: 15px;
  text-decoration: none;
}

.footer-social a:hover {
  color: #fff;
}

.footer-menu-container a {
  color: #aaa !important;
  transform: var(--standard-transition);
}

.footer-menu-container a:hover {
  color: #fff !important;
}

.index-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: calc(100vh);
  flex-direction: column;
  margin-top: -100px;
  background: linear-gradient(to bottom, #f0f7f6, #ffffff);
}

.index-wrapper h1 {
  font-size: clamp(6rem, 6vw + 1rem, 8rem);
  letter-spacing: -3px !important;
}

.index-wrapper h1 .font-fancy {
  display: inline-block;
  font-weight: 300;
  transition: all 0.4s ease;
}

.index-wrapper .btns-wrapper {
  display: flex;
  padding-top: 40px;
}

.index-wrapper .btns-wrapper .btn:first-child {
  margin-right: 10px;
}

.btn,
.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 160px;
  max-width: max-content;

  padding: 16px 26px;

  border: 1px solid var(--brand-black);
  border-radius: 0 !important;

  font-family: "Montserrat", sans-serif !important;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;

  cursor: pointer;
  overflow: hidden;

  background-color: var(--brand-black);
  color: var(--pure-white) !important;
  border-color: var(--brand-black);

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.btn.reveal-up {
  transition: all 0.2 ease-in-out !important;
}

.btn:hover,
.btn-submit:hover {
  background-color: transparent !important;
  color: var(--brand-black) !important;
  border-color: var(--brand-black) !important;
  transform: translateY(-2px);
}

/* Button links */
.btn a {
  color: inherit !important;
  text-decoration: none;
}

/* ============================= */
/* ALT BUTTON */
/* ============================= */

.btn.btn-alt {
  background-color: var(--pure-white);
  color: var(--brand-black) !important;
  border-color: var(--pure-white);
}

.btn.btn-alt a {
  color: inherit !important;
}

.btn.btn-alt:hover {
  background-color: transparent !important;
  color: var(--pure-white) !important;
  border-color: var(--pure-white) !important;
}
/* ============================= */
/* LIGHT BUTTON VARIANT */
/* ============================= */

.btn.case-study-preview-actionalt {
  background: var(--pure-white);
  border-color: var(--pure-white);
  color: var(--brand-black) !important;
}

.btn.case-study-preview-actionalt:hover {
  background: transparent !important;
  color: var(--pure-white) !important;
  border-color: var(--pure-white) !important;
}

/* ============================= */
/* SUBMIT BUTTON */
/* ============================= */

.btn-submit {
  width: 100% !important;
  max-width: 100%;
}

/* ============================= */
/* OPTIONAL ICON SUPPORT */
/* ============================= */

.btn i,
.btn-submit i {
  margin-left: 10px;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.btn:hover i,
.btn-submit:hover i {
  transform: translateX(4px);
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 575px) {
  .btn,
  .btn-submit {
    width: max-content;
    min-width: 150px;
    padding: 15px 22px;
    font-size: 0.78rem;
  }

  .btn-submit {
    width: 100% !important;
  }
}

/* ============================= */
/* CONTACT PAGE */
/* ============================= */

.contact-page-section {
  background: var(--brand-black);
}

/* Top content/form area */
.contact-top-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
  padding: clamp(90px, 10vw, 140px) 0;
}

/* Content */
.contact-content-panel {
  padding: 0;
  color: var(--pure-white);
}

.contact-intro {
  max-width: 620px;
}

.contact-eyebrow {
  padding-bottom: 1rem;
  color: var(--pure-white);
  opacity: 0.45;
  text-transform: uppercase;
}

.contact-intro h2 {
  margin-bottom: 1.5rem;
  color: var(--pure-white);
}

.contact-intro p {
  max-width: 560px;
  color: var(--pure-white);
  opacity: 0.6;
}

.contact-intro p:last-child {
  padding-bottom: 0;
}

/* Meta */
.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-meta span {
  display: block;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--pure-white);
  opacity: 0.45;
}

.contact-meta a,
.contact-meta p {
  color: var(--pure-white);
  opacity: 0.7;
  padding-bottom: 0;
}

.contact-meta a:hover {
  color: var(--brand-blue);
  opacity: 1;
}

/* Socials */
.contact-socials {
  display: flex;
  gap: 14px;
}

.contact-socials a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--standard-transition);
}

.contact-socials a:hover {
  background: var(--pure-white);
  color: var(--brand-black);
  border-color: var(--pure-white);
}

/* Full width map */
.contact-map-full {
  width: 100%;
  height: clamp(360px, 45vw, 620px);
  overflow: hidden;
  background: #111;
}

.contact-map-full iframe {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(100%) invert(90%) contrast(1.05) brightness(0.75);
}

/* ============================= */
/* CONTACT FORM DARK UNDERLINE STYLE */
/* ============================= */

.contact-form-handler {
  width: 100%;
}

.contact-form-handler div.wpforms-container-full {
  margin: 0 !important;
}

.contact-form-handler .wpforms-form {
  width: 100%;
}

.contact-form-handler .wpforms-field {
  padding: 0 0 28px !important;
}

/* Labels */
.contact-form-handler .wpforms-field-label {
  color: var(--pure-white) !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 300 !important;
  margin-bottom: 8px !important;
  opacity: 0.65;
}

/* Inputs, textarea, select */
.contact-form-handler
  .wpforms-container
  input:not([type="checkbox"]):not([type="radio"]),
.contact-form-handler .wpforms-container textarea,
.contact-form-handler .wpforms-container select,
.contact-form-handler
  div.wpforms-container-full
  input:not([type="checkbox"]):not([type="radio"]),
.contact-form-handler div.wpforms-container-full textarea,
.contact-form-handler div.wpforms-container-full select {
  width: 100% !important;

  background: transparent !important;
  color: var(--pure-white) !important;

  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 0 !important;

  padding: 12px 0 !important;

  font-family: "Inter", sans-serif !important;
  font-weight: 300 !important;

  box-shadow: none !important;
  outline: none !important;

  transition: var(--standard-transition);
}

/* Focus */
.contact-form-handler .wpforms-container input:focus,
.contact-form-handler .wpforms-container textarea:focus,
.contact-form-handler .wpforms-container select:focus,
.contact-form-handler div.wpforms-container-full input:focus,
.contact-form-handler div.wpforms-container-full textarea:focus,
.contact-form-handler div.wpforms-container-full select:focus {
  border-bottom-color: var(--pure-white) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Placeholder */
.contact-form-handler input::placeholder,
.contact-form-handler textarea::placeholder {
  color: rgba(255, 255, 255, 0.35) !important;
}

/* Textarea */
.contact-form-handler textarea {
  min-height: 120px !important;
  resize: vertical;
}

/* Required */
.contact-form-handler .wpforms-required-label {
  color: var(--brand-blue) !important;
}

/* Checkbox / radio */
.contact-form-handler div.wpforms-container-full input[type="checkbox"]:before,
.contact-form-handler div.wpforms-container-full input[type="checkbox"]:after,
.contact-form-handler div.wpforms-container-full input[type="radio"]:before,
.contact-form-handler div.wpforms-container-full input[type="radio"]:after {
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
}

/* Inline checkbox/radio labels */
.contact-form-handler label.wpforms-field-label-inline,
.wpforms-field-sublabel {
  color: var(--pure-white) !important;
  opacity: 0.65;
  font-family: "Montserrat", sans-serif;
}

/* Submit */
.contact-form-handler .wpforms-submit,
.contact-form-handler button[type="submit"] {
  background: var(--pure-white) !important;
  color: var(--brand-black) !important;
  border: 1px solid var(--pure-white) !important;
  border-radius: 0 !important;

  min-width: 180px;

  font-family: "Montserrat", sans-serif !important;
  font-weight: 400 !important;
  text-transform: uppercase;

  transition: var(--standard-transition);
}

.contact-form-handler .wpforms-submit:hover,
.contact-form-handler button[type="submit"]:hover {
  background: transparent !important;
  color: var(--pure-white) !important;
  border-color: var(--pure-white) !important;
}

/* Errors */
.contact-form-handler em.wpforms-error {
  margin-top: 8px !important;
  font-family: "Inter", sans-serif;
  color: #ff6b6b !important;
}

/* Success */
.contact-form-handler .wpforms-confirmation-container-full {
  color: #b7f7cf !important;
  background: rgba(26, 127, 55, 0.14) !important;
  border: 1px solid rgba(183, 247, 207, 0.24) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 16px 20px !important;
}

.contact-form-handler .wpforms-confirmation-container-full p {
  color: #b7f7cf !important;
  padding-bottom: 0;
  opacity: 1;
}

/* ============================= */
/* CONTACT PAGE RESPONSIVE */
/* ============================= */

@media (max-width: 991px) {
  .contact-page-section .container-xl {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-top-wrapper {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 130px 0 90px;
  }

  .contact-content-panel {
    max-width: 720px;
  }

  .contact-intro h2 {
    max-width: 680px;
  }

  .contact-intro p {
    max-width: 640px;
  }

  .contact-form-handler {
    width: 100%;
  }

  .contact-map-full {
    height: 420px;
  }
}

@media (max-width: 575px) {
  .contact-page-section .container-xl {
    padding-left: 18px;
    padding-right: 18px;
  }

  .contact-top-wrapper {
    gap: 44px;
    padding: 115px 0 70px;
  }

  .contact-meta {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 34px 0;
    padding: 26px 0;
  }

  .contact-socials {
    flex-wrap: wrap;
  }

  .contact-map-full {
    height: 340px;
  }
}

/* CAROUSEL LAYOUT */
.carousel-wrapper {
  position: relative;
  background-color: var(--brand-light);
  height: 600px;
  width: 100%;
  z-index: 3;
}

.carousel-item {
  transition-duration: 3000ms;
  -webkit-transition-duration: 3000ms;
}

.carousel-item [class*="col-"] {
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-item .inner-card {
  background: var(--brand-light);
  max-width: 350px;
  height: 350px;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  color: var(--brand-black);
}

/* CASE STUDY CARD */
.case-study-preview {
  position: relative;
  min-width: 100%;
  height: 600px;
  background-size: cover;
  background-color: var(--brand-black);
  box-shadow: 1px 14px 22px 1px rgba(66, 69, 70, 0.1);
  border-radius: 10px;
}

.case-study-preview-inner .image_wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.case-study-preview-inner .image_wrapper img {
  width: 100%;
}

.case-study-preview-inner .row {
  position: relative;
  height: 600px;
}

.case-desc h5 {
  padding-top: 10px;
  padding-bottom: 30px;
  color: var(--brand-black);
  font-weight: 500;
}

.case-study-preview-action .bi {
  color: #000;
  font-weight: 700;
  font-size: 24px;
}

/* MOBILE NAME */
.mobile-name {
  display: none;
  color: #fff;
  text-transform: uppercase;
  font-size: 35px !important;
  font-weight: 700 !important;
}

.case-study-preview-action {
  padding-top: 30px;
}

/* LOADING BAR */
.loading-bar-wrapper {
  position: relative;
  bottom: 40px;
  width: 500px;
  min-width: 300px;
  height: 5px;
  background-color: var(--brand-light);
  overflow: hidden;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.loading-bar-wrapper .loading-bar-animate {
  width: 100%;
  height: 100%;
  background: var(--brand-black);
  transform: translate3d(-100%, 0, 0);
  transition-property: transform;
  border-radius: 5px;
}

/* Work Grid */
.work-col {
  padding: 0;
}

.work-card {
  position: relative;
  display: block;
  width: 100%;
  height: 520px;
  overflow: hidden;
  color: #000;
  text-decoration: none;
  background: #eee;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hidden hover layer */
.work-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 56px;
  background: rgba(255, 255, 255, 0.88);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Show overlay on hover */
.work-card:hover .work-overlay {
  opacity: 1;
}

/* Button top right */
.work-card .btn-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  right: 0px;
  top: 0px;
  background: var(--brand-light);
}

/* Text placement */
.work-copy {
  position: absolute;
  left: 56px;
  bottom: 56px;
  max-width: 70%;
}

.work-copy h3 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 72px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.work-copy p {
  margin: 0;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.5;
}

/* Optional slight image movement */
.work-card img {
  transition: transform 0.5s ease;
}

.work-card:hover img {
  transform: scale(1.04);
}

/* ============================= */
/* WEBCHEMY CASE STUDY TEMPLATE */
/* ============================= */

.wc-case-page {
  width: 100%;
  overflow-x: hidden;
  background: var(--brand-light);
}

/* ============================= */
/* HERO */
/* ============================= */

.wc-case-hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: flex-end;
  padding: 120px 0;
  background-image:
    linear-gradient(
      0deg,
      #111 0%,
      rgba(17, 17, 17, 0.95) 12%,
      rgba(17, 17, 17, 0.78) 28%,
      rgba(17, 17, 17, 0.48) 52%,
      rgba(17, 17, 17, 0.18) 78%,
      rgba(17, 17, 17, 0.04) 100%
    ),
    var(--case-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.wc-case-hero-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.wc-case-hero-content h1 {
  color: var(--pure-white);
  text-transform: uppercase;
}

.wc-case-hero-content p {
  margin: 24px 0 0;
  padding-bottom: 0;
  color: var(--pure-white);
  opacity: 0.65;
}

/* ============================= */
/* BRIEF */
/* ============================= */

.wc-case-brief {
  position: relative;
  padding: 110px 0;
  background: var(--brand-black);
  color: var(--pure-white);
}

.wc-case-brief p {
  max-width: 850px;
  margin: 0;
  padding-bottom: 0;
  color: var(--pure-white);
  opacity: 0.55;
}

.wc-case-section-heading h3 {
  color: var(--pure-white);
}

.wc-case-mobile-title {
  display: none;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--pure-white);
  text-transform: uppercase;
}

/* ============================= */
/* SERVICES */
/* ============================= */

.wc-case-services {
  max-width: 280px;
  margin-left: auto;
}

.wc-case-services h5 {
  color: var(--pure-white);
  text-transform: uppercase;
}

.wc-case-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc-case-services li {
  margin: 0;
  padding: 0 0 10px;
  color: var(--pure-white);
  opacity: 0.55;
}

/* ============================= */
/* CONTENT */
/* ============================= */

.wc-case-content {
  position: relative;
  padding: 120px 0;
  background: var(--brand-light);
}

.wc-case-subsection {
  max-width: 900px;
  margin-bottom: 56px;
}

.wc-case-subsection h5 {
  color: var(--brand-black);
  text-transform: uppercase;
}

.wc-case-subsection hr {
  width: 100%;
  height: 1px;
  margin: 24px 0 28px;
  border: 0;
  background: rgba(0, 0, 0, 0.14);
}

.wc-case-subsection p {
  margin: 0 0 20px;
  padding-bottom: 0;
  color: var(--brand-black);
  opacity: 0.7;
}

.wc-case-subsection p:last-child {
  margin-bottom: 0;
}

/* ============================= */
/* IMAGE GRID */
/* ============================= */

.wc-case-image-grid {
  row-gap: 24px;
  margin-bottom: 90px;
}

.wc-case-image-grid:last-child {
  margin-bottom: 0;
}

.wc-case-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f2f2f2;
}

.wc-case-image img {
  display: block;
  width: 100%;
  height: auto;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}

.wc-case-image:hover img {
  transform: scale(1.025);
}

/* Optional cropped image style */
.wc-case-image.is-cropped {
  height: 520px;
}

.wc-case-image.is-cropped img {
  height: 100%;
  object-fit: cover;
}

/* ============================= */
/* OPTIONAL DARK CONTENT SECTION */
/* ============================= */

.wc-case-content.is-dark {
  background: var(--brand-black);
}

.wc-case-content.is-dark .wc-case-subsection h5 {
  color: var(--pure-white);
}

.wc-case-content.is-dark .wc-case-subsection hr {
  background: rgba(255, 255, 255, 0.18);
}

.wc-case-content.is-dark .wc-case-subsection p {
  color: var(--pure-white);
  opacity: 0.55;
}

/* ============================= */
/* ABOUT PAGE */
/* ============================= */

.about-page {
  background: var(--brand-light);
  color: var(--brand-black);
}

/* ============================= */
/* HERO */
/* ============================= */

.about-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  background: linear-gradient(to bottom, #f0f7f6, var(--brand-light));
}

.about-hero-inner {
  max-width: 1050px;
}

.about-eyebrow {
  padding-bottom: 1rem;
  color: var(--brand-black);
  opacity: 0.5;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 1050px;
  margin-bottom: 2rem;
}

.about-hero-copy {
  max-width: 720px;
  padding-bottom: 0;
}

/* ============================= */
/* INTRO */
/* ============================= */

.about-intro {
  background: var(--brand-light);
}

.about-image-card {
  position: relative;
  width: 100%;
  min-height: 620px;
  overflow: hidden;
  background: #eee;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  display: block;
}

.about-intro-copy {
  padding-left: 70px;
  padding-bottom: 30px;
}

.about-intro-copy p:last-child {
  padding-bottom: 0;
}

/* ============================= */
/* STATEMENT */
/* ============================= */

.about-statement {
  padding: 140px 0;
  background: var(--brand-black);
  color: var(--pure-white);
}

.about-statement .about-eyebrow,
.about-statement h2 {
  color: var(--pure-white);
}

.about-statement .about-eyebrow {
  opacity: 0.55;
}

.about-statement-inner {
  max-width: 950px;
}

/* ============================= */
/* VALUES */
/* ============================= */

.about-values {
  background: var(--brand-light);
}

.about-value-card {
  min-height: 360px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-value-card span {
  display: block;
  margin-bottom: 70px;
  font-family: "Montserrat", sans-serif;
  opacity: 0.35;
}

.about-value-card h3 {
  margin-bottom: 1rem;
}

.about-value-card p {
  padding-bottom: 0;
}

/* ============================= */
/* STATS */
/* ============================= */

.about-stats {
  padding: 90px 0;
  background: var(--brand-black);
}

.about-stat {
  color: var(--pure-white);
  padding: 30px 0;
}

.about-stat h2 {
  color: var(--pure-white);
  margin-bottom: 1rem;
}

.about-stat p {
  max-width: 280px;
  padding-bottom: 0;
  color: var(--pure-white);
  opacity: 0.55;
}

/* ============================= */
/* APPROACH */
/* ============================= */

.about-approach {
  background: var(--brand-light);
}

.about-section-heading {
  max-width: 420px;
  position: sticky;
  top: 120px;
}

.about-process-list {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.about-process-item {
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.about-process-item h3 {
  margin-bottom: 1rem;
}

.about-process-item p {
  max-width: 680px;
  padding-bottom: 0;
}

/* ============================= */
/* CONTACT PLACEHOLDER */
/* ============================= */

.about-contact-section {
  padding: 120px 0;
  background: #fff;
}

.about-contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.about-contact-inner > div:first-child p:last-child {
  max-width: 460px;
  padding-bottom: 0;
}

.about-contact-placeholder {
  min-height: 420px;
  padding: 40px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-contact-placeholder p {
  padding-bottom: 0;
  opacity: 0.45;
}
/* ============================= */
/* WEBCHEMY CAPABILITY TABS */
/* ============================= */

.gfx-capability-tabs-section {
  background: var(--brand-black);
  color: var(--pure-white);
}

.gfx-capability-tabs {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Sidebar */

.gfx-capability-sidebar {
  position: sticky;
  top: 120px;
}

.gfx-capability-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.gfx-capability-tab {
  position: relative;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  cursor: pointer;
  transition: var(--standard-transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
}

.gfx-capability-tab:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.gfx-capability-tab::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: #fff;
  transition: var(--standard-transition);
}

.gfx-capability-tab:hover {
  color: var(--pure-white);
  background: transparent;
}

.gfx-capability-tab:hover::before {
  width: 100%;
}

.gfx-capability-tab.active {
  color: var(--pure-white);
  background: transparent;
}

.gfx-capability-tab.active::before {
  width: 100%;
}

/* Content */

.gfx-capability-content-wrapper {
  min-width: 0;
}

.gfx-capability-panel {
  display: none;
  opacity: 0;
  transform: translateY(24px);
}

.gfx-capability-panel.active {
  display: block;
  animation: gfxCapabilityFade 0.45s ease forwards;
}

.gfx-capability-panel .row {
  align-items: center;
}

/* Copy */

.gfx-capability-kicker,
.gfx-capability-relevant-work > span {
  display: block;
  margin-bottom: 14px;
  color: #999;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gfx-capability-copy h2 {
  color: var(--pure-white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.gfx-capability-copy p {
  color: rgba(255, 255, 255, 0.6);
  padding-bottom: 0;
}

/* Main image */

.gfx-capability-content-wrapper .image_wrapper {
  position: relative;
  width: 100%;
  min-height: 380px;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
}

.gfx-capability-content-wrapper .image_wrapper img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: block;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}

.gfx-capability-content-wrapper .image_wrapper:hover img {
  transform: scale(1.025);
}

@keyframes gfxCapabilityFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 991px) {
  .gfx-capability-tabs {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gfx-capability-sidebar {
    position: relative;
    top: auto;
  }

  .gfx-capability-nav {
    display: flex;
    overflow-x: auto;
    gap: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .gfx-capability-tab {
    min-width: max-content;
    padding: 0 0 16px 0;
    border-bottom: 0;
    border-right: 0;
  }

  .gfx-capability-tab:last-child {
    border-bottom: 0;
    border-right: 0;
  }

  .gfx-capability-tab::before {
    bottom: 0;
    height: 2px;
  }

  .gfx-capability-tab.active::before,
  .gfx-capability-tab:hover::before {
    width: 100%;
  }

  .gfx-capability-copy {
    margin-bottom: 30px;
  }

  .gfx-capability-content-wrapper .image_wrapper,
  .gfx-capability-content-wrapper .image_wrapper img {
    min-height: 300px;
  }

  .gfx-capability-relevant-work {
    margin-top: 50px;
  }

  .gfx-portfolio-grid-preview {
    grid-template-columns: 1fr;
  }
}

/* Fade up base */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: opacity, transform;
}

/* Active state */
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Optional slower version */
.reveal-up.reveal-slow {
  transition-duration: 1.1s;
}

/* Optional delay classes */
.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ============================= */
/* 404 PAGE */
/* ============================= */

.error-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(56, 193, 141, 0.12),
      transparent 32%
    ),
    linear-gradient(to bottom, #111, #050505);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 100px;
  color: var(--pure-white);
}

.error-page-inner {
  max-width: 860px;
}

.error-eyebrow {
  color: var(--pure-white);
  opacity: 0.45;
  text-transform: uppercase;
  padding-bottom: 1rem;
}

.error-page h1 {
  color: var(--pure-white);
  max-width: 760px;
}

.error-copy {
  max-width: 620px;
  color: var(--pure-white);
  opacity: 0.65;
  padding-bottom: 0;
}

.error-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.error-actions .btn {
  margin: 0;
}

.error-actions .btn-alt {
  background: transparent;
  border: 1px solid var(--pure-white);
  color: var(--pure-white);
}

.error-actions .btn-alt:hover {
  background: var(--pure-white);
  color: var(--brand-black) !important;
}

@media (max-width: 768px) {
  .error-page {
    min-height: 90vh;
    padding: 130px 0 80px;
  }

  .error-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .error-actions .btn {
    width: max-content;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================= */
/* RESPONSIVE / MOBILE */
/* ============================= */

@media (max-width: 479px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-2xl {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (min-width: 480px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1152px;
  } /* Slightly wider than Bootstrap */
}

@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1360px;
  }
}

@media (max-width: 575.98px) {
  .site-socials ul li {
    padding: 0px 10px;
  }
}

@media (max-width: 768px) {
  .work-card {
    height: 420px;
  }

  .work-overlay {
    padding: 32px;
  }

  .work-card .btn-icon {
    top: 24px;
    right: 24px;
  }

  .work-copy {
    left: 32px;
    bottom: 32px;
    max-width: 85%;
  }
}

@media (max-width: 993px) {
  .case-study-preview {
    height: 300px;
  }
}

@media (max-width: 798px) {
  .carousel-wrapper {
    height: 300px;
  }

  .case-study-preview-inner {
    padding: 20px 0px !important;
  }
}

@media (max-width: 991px) {
  .wc-case-hero {
    min-height: 620px;
    padding: 90px 0;
  }

  .wc-case-services {
    margin-left: 0;
    margin-top: 56px;
  }

  .loading-bar-wrapper {
    bottom: 5px;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .wc-case-hero {
    display: none;
  }

  .wc-case-brief {
    padding: 90px 0 70px;
  }

  .wc-case-mobile-title {
    display: block;
  }

  .wc-case-content {
    padding: 80px 0;
  }

  .wc-case-subsection {
    margin-bottom: 40px;
  }

  .wc-case-image-grid {
    row-gap: 16px;
    margin-bottom: 64px;
  }

  .wc-case-image.is-cropped {
    height: 340px;
  }
}

@media (max-width: 991px) {
  .about-hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .about-intro-copy {
    padding-left: 0;
    padding-top: 50px;
  }

  .about-image-card,
  .about-image-card img {
    min-height: 460px;
  }

  .about-section-heading {
    position: relative;
    top: auto;
    max-width: 100%;
    margin-bottom: 50px;
  }

  .about-contact-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 120px 0 70px;
  }

  .about-statement {
    padding: 90px 0;
  }

  .about-value-card {
    min-height: auto;
    margin-bottom: 20px;
  }

  .about-value-card span {
    margin-bottom: 50px;
  }

  .about-stats {
    padding: 70px 0;
  }

  .about-contact-section {
    padding: 80px 0;
  }

  .about-contact-placeholder {
    min-height: 300px;
  }
}

@media (max-width: 991px) {
  .carousel-wrapper {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    margin-bottom: 80px;
  }

  .carousel-wrapper .carousel,
  .carousel-wrapper .carousel-inner {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
  }

  /* Do NOT force display none/block here.
     Bootstrap needs its own carousel classes for the fade. */
  .carousel-wrapper .carousel-item {
    height: auto !important;
    min-height: 0 !important;
  }

  .case-study-preview {
    height: auto !important;
    min-height: 0 !important;
    padding: 24px;
  }

  .case-study-preview-inner {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .case-study-preview-inner .row {
    height: auto !important;
    min-height: 0 !important;
    row-gap: 24px;
  }

  .case-study-preview-inner .image_wrapper {
    height: 320px !important;
  }

  .case-study-preview-inner .image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-item .inner-card {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 240px;
    padding: 28px;
  }

  .loading-bar-wrapper {
    bottom: 5px;
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575px) {
  .carousel-wrapper {
    margin-bottom: 64px;
  }

  .case-study-preview {
    padding: 18px;
  }

  .case-study-preview-inner .image_wrapper {
    height: 260px !important;
  }

  .carousel-item .inner-card {
    min-height: 220px;
    padding: 24px;
  }
}
/* ============================= */
/* PREMIUM MOBILE HEADER */
/* ============================= */

.header-inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile */
@media (max-width: 991px) {
  body.no-scroll {
    overflow: hidden;
  }

  .site-header {
    height: 80px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .site-header.unscrolled.header-light {
    background: transparent;
  }

  .site-header.mobile-menu-open {
    background: var(--brand-black) !important;
  }

  .site-header .container {
    max-width: 100%;
    padding: 0 24px !important;
  }

  .site-logo {
    width: 170px;
  }

  .header-right {
    position: fixed;
    inset: 80px 0 0 0;
    width: 100%;
    height: calc(100vh - 80px);

    background: var(--brand-black);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-12px);
    transition: all 0.35s ease;

    z-index: 998;
  }

  .site-header.mobile-menu-open .header-right {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-menu-container ul {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .primary-menu-container ul li {
    margin-left: 0;
    padding: 0;
    border-bottom: none;
  }

  .primary-menu-container ul li a {
    color: var(--pure-white) !important;
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 1.1;
    font-weight: 400;
    padding: 10px 0;
  }

  .primary-menu-container ul li:hover {
    border-bottom-color: transparent;
  }

  .primary-navigation .sub-menu {
    position: relative;
    top: auto;
    right: auto;
    min-width: auto;
    background: transparent !important;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 8px;
  }

  .primary-navigation .sub-menu a {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 1rem;
    padding: 6px 0;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 1000;
    width: 44px;
    height: 44px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--brand-black);
    transition: all 0.3s ease;
    margin-left: auto;
  }

  .site-header.unscrolled.header-light .mobile-menu-toggle span,
  .site-header.mobile-menu-open .mobile-menu-toggle span {
    background: var(--pure-white);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .site-header.mobile-menu-open .mobile-menu-toggle span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-header.mobile-menu-open .cls-1,
  .site-header.mobile-menu-open .cls-2 {
    fill: var(--pure-white);
  }
}

footer .menu-item-has-children {
  display: none;
}

/* ============================= */
/* MOBILE MENU SUBMENU FIX */
/* ============================= */

@media (max-width: 991px) {
  .primary-navigation .menu-item-has-children {
    width: 100%;
    text-align: center;
    flex-direction: column;
  }

  .primary-navigation .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    pointer-events: auto;
  }

  .primary-navigation .menu-item-has-children > a::after {
    content: "\f282";
    font-family: "bootstrap-icons";
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  .primary-navigation .menu-item-has-children.submenu-open > a::after {
    transform: rotate(180deg);
  }

  .primary-navigation .sub-menu {
    position: relative !important;
    top: auto !important;
    right: auto !important;

    width: 100%;
    min-width: 0;

    display: block;
    max-height: 0;
    overflow: hidden;

    margin: 0;
    padding: 0;

    opacity: 1;
    visibility: visible;
    transform: none;

    background: transparent !important;
    transition:
      max-height 0.35s ease,
      padding 0.35s ease;
  }

  .primary-navigation .menu-item-has-children.submenu-open > .sub-menu {
    max-height: 320px;
    padding: 14px 0 20px;
  }

  .primary-navigation .sub-menu li {
    margin: 0 !important;
    padding: 0;
    width: 100%;
  }

  .primary-navigation .sub-menu a {
    display: block;
    width: 100%;

    padding: 8px 0 !important;

    color: rgba(255, 255, 255, 0.55) !important;
    font-size: clamp(1.2rem, 5vw, 1.8rem) !important;
    line-height: 1.25;
    text-align: center;
  }

  .primary-navigation .sub-menu a:hover {
    color: var(--pure-white) !important;
    background: transparent !important;
  }

  .primary-navigation .sub-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .carousel-wrapper {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
    margin-bottom: 80px;
  }

  .carousel-wrapper .carousel,
  .carousel-wrapper .carousel-inner {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible;
  }

  .carousel-wrapper .carousel-item {
    position: relative !important;
    float: none !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin-right: 0 !important;
  }

  .case-study-preview {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    padding: 24px;
    overflow: visible;
  }

  .case-study-preview-inner {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .case-study-preview-inner .row {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    row-gap: 24px;
  }

  .case-study-preview-inner .image_wrapper {
    height: 320px !important;
  }

  .case-study-preview-inner .image_wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .carousel-item .inner-card {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 240px;
    padding: 28px;
  }
}

@media (max-width: 575px) {
  .carousel-wrapper {
    margin-bottom: 64px;
  }

  .case-study-preview {
    padding: 18px;
  }

  .case-study-preview-inner .image_wrapper {
    height: 260px !important;
  }

  .carousel-item .inner-card {
    min-height: 220px;
    padding: 24px;
  }
}

@media (max-width: 991px) {
  .index-wrapper {
    height: 85vh;
    min-height: 620px;
    margin-top: 0;
    padding: 0 24px;
  }

  .index-wrapper h1 {
    font-size: clamp(4rem, 16vw, 7rem);
    line-height: 0.95;
    letter-spacing: -4px !important;
  }

  .index-wrapper .btns-wrapper {
    padding-top: 32px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .index-wrapper .btns-wrapper .btn:first-child {
    margin-right: 0;
  }
}

@media (max-width: 575px) {
  .index-wrapper {
    height: 78vh;
    min-height: 520px;
    padding: 0 18px;
  }

  .index-wrapper h1 {
    font-size: clamp(3.5rem, 18vw, 5.5rem);
    letter-spacing: -3px !important;
  }

  .index-wrapper .btns-wrapper {
    flex-direction: column;
    align-items: center;
    padding-top: 28px;
  }
}
