:root {
  --color-brand-primary: #0a4fd1;
  --color-brand-primary-dark: #052f8a;
  --color-brand-soft: #dde6ff;
  --color-bg: #f6f8fd;
  --color-surface: #ffffff;
  --color-text: #1b2330;
  --color-text-muted: #566074;
  --color-border: rgba(15, 35, 78, 0.12);
  --color-accent-amber: #ff8a3d;
  --color-accent-berry: #f45ca3;
  --color-accent-cream: #fff5ec;
  --color-accent-mint: #9dd7c0;
  --shadow-soft: 0 20px 44px rgba(7, 30, 86, 0.14);
  --shadow-card: 0 18px 46px rgba(6, 27, 73, 0.12);
  --radius-large: 32px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --transition-base: 260ms cubic-bezier(0.32, 0.72, 0, 1);
  --transition-soft: 360ms cubic-bezier(0.22, 0.61, 0.36, 1);
  --transition-slow: 680ms cubic-bezier(0.33, 1, 0.68, 1);
  --container-max: 1200px;
  --gradient-hero: radial-gradient(circle at 12% 18%, rgba(244, 92, 163, 0.24), transparent 62%),
    radial-gradient(circle at 86% 12%, rgba(108, 168, 255, 0.28), transparent 58%),
    radial-gradient(circle at 50% 92%, rgba(255, 205, 155, 0.22), transparent 64%),
    linear-gradient(138deg, #04163c 0%, #0a4fd1 48%, #6ca8ff 100%);
  --gradient-presence: radial-gradient(circle at 46% 28%, rgba(244, 92, 163, 0.22), transparent 58%),
    linear-gradient(160deg, #071b45, #0a4fd1 70%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: "Tajawal", system-ui, sans-serif;
  direction: rtl;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  padding-top: var(--header-offset, 110px);
}

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

  html,
  body {
    scroll-behavior: auto;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: min(92%, var(--container-max));
  margin: 0 auto;
}

.section {
  padding: clamp(70px, 10vw, 120px) 0;
}

.section__heading {
  text-align: center;
  max-width: 540px;
  margin: 0 auto clamp(38px, 5vw, 64px);
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  width: 100%;
  z-index: 99;
  backdrop-filter: blur(18px);
  background: rgba(247, 249, 252, 0.92);
  border-bottom: 1px solid rgba(11, 92, 255, 0.08);
  box-shadow: 0 14px 32px rgba(15, 42, 92, 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  transition: padding var(--transition-base);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.18rem;
  color: var(--color-brand-primary-dark);
  transition: color var(--transition-base), font-size var(--transition-base);
}

.brand-mark__logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-base);
}

.brand-mark__text {
  font-family: "Changa", sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.28rem;
  color: rgba(16, 41, 90, 0.88);
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.site-nav__list a {
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--color-text);
  position: relative;
  padding-bottom: 6px;
  transition: color var(--transition-base);
  font-size: 0.95rem;
}

.site-nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.site-nav__list a:hover {
  color: var(--color-brand-primary);
}

.site-nav__list a:hover::after {
  transform: scaleX(1);
}

.site-nav__list a.is-active {
  color: var(--color-brand-primary);
}

.site-nav__list a.is-active::after {
  transform: scaleX(1);
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.toggle-line {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header.is-condensed {
  background: rgba(247, 249, 252, 0.86);
  box-shadow: 0 12px 28px rgba(10, 34, 80, 0.14);
}

.site-header.is-condensed .header__inner {
  padding: 4px 0;
}

.site-header.is-condensed .brand-mark__logo {
  transform: scale(0.58);
}

.site-header.is-condensed .brand-mark {
  font-size: 0.82rem;
  gap: 10px;
}

.site-header.is-condensed .site-nav__list {
  gap: 12px;
}

.site-header.is-condensed .site-nav__list a {
  font-size: 0.88rem;
  padding-bottom: 4px;
}

#hero,
#brands,
#ethos,
#connect {
  scroll-margin-top: clamp(110px, 14vh, 180px);
}

.brands,
.ethos,
.connect {
  scroll-margin-top: clamp(110px, 14vh, 180px);
}

.hero {
  position: relative;
  background: transparent;
  color: #f5f7ff;
  border-radius: 0 0 clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-offset, 110px));
  padding-top: var(--header-offset, 110px);
  min-height: 85vh;
  /* Ensure tall immersive section */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

/* 1. Background Image Layer (Lighter Blur) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('images/haseen.webp') no-repeat center center / cover;
  filter: blur(3px);
  transform: scale(1.05);
  z-index: -2;
}

/* 2. Overlay Layer (Contrast) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 23, 62, 0.7), rgba(9, 39, 104, 0.6));
  z-index: -1;
}

/* 3. Hide old visual slot completely */
.hero__visual {
  display: none !important;
}

/* 4. Single Column Layout (Centered) */
.hero__layout {
  position: relative;
  z-index: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: clamp(60px, 10vh, 120px) 20px;
}

.hero__title-emblem {
  position: relative;
  width: 100%;
  text-align: center;
  font-family: "Aref Ruqaa", "Changa", cursive;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #fff2cc;
  text-shadow: none;
  margin-bottom: 24px;
  line-height: 1.2;
  z-index: 3;
  margin-inline: auto;
  padding: 0;
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__star {
  position: absolute;
  width: 3px;
  height: 160px;
  background: linear-gradient(180deg, rgba(255, 223, 142, 0.95) 0%, rgba(255, 199, 92, 0.4) 50%, rgba(255, 223, 142, 0) 92%);
  opacity: 0;
  transform: rotate(-18deg);
  filter: drop-shadow(0 0 18px rgba(255, 210, 120, 0.65));
  animation: heroMeteor 7s linear infinite;
}

.hero__star::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 238, 203, 0.95), rgba(255, 205, 130, 0.35));
  box-shadow: 0 0 26px rgba(255, 215, 140, 0.85);
}

.hero__star--one {
  top: 6%;
  inset-inline-start: 12%;
  animation-duration: 6.5s;
  animation-delay: -1.2s;
}

.hero__star--two {
  top: -4%;
  inset-inline-start: 48%;
  animation-duration: 7.8s;
  animation-delay: -3s;
}

.hero__star--three {
  top: 10%;
  inset-inline-start: 76%;
  animation-duration: 6.2s;
  animation-delay: -4.6s;
}

.hero__star--four {
  top: -2%;
  inset-inline-start: 28%;
  animation-duration: 8.4s;
  animation-delay: -2.4s;
}

.hero__content {
  background: linear-gradient(145deg, #041632, #09295b 55%, #0f3a84);
  border-radius: clamp(26px, 4.5vw, 42px);
  padding: clamp(36px, 5.5vw, 52px);
  box-shadow: 0 44px 88px rgba(4, 18, 52, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  position: relative;
  overflow: hidden;
  max-width: min(100%, 520px);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero__quote-icon {
  font-family: "Changa", sans-serif;
  font-size: clamp(3rem, 6vw, 4rem);
  color: rgba(255, 219, 173, 0.92);
  line-height: 1;
}

.hero__content p {
  margin: 0;
  color: rgba(239, 245, 255, 0.9);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  line-height: 1.9;
}

.hero__visual {
  position: relative;
  min-height: initial;
  display: grid;
  place-items: center;
}

.hero__frame {
  position: relative;
  z-index: 2;
  display: inline-block;
  max-width: min(100%, 540px);
  border-radius: calc(var(--radius-large) - 10px);
  border: 6px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 38px 70px rgba(6, 23, 68, 0.35);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  animation: orbit 14s ease-in-out infinite;
}

.hero__halo--one {
  width: clamp(240px, 32vw, 360px);
  height: clamp(240px, 32vw, 360px);
  background: radial-gradient(circle, rgba(255, 211, 174, 0.4), transparent 72%);
}

.hero__halo--two {
  width: clamp(200px, 28vw, 320px);
  height: clamp(200px, 28vw, 320px);
  background: radial-gradient(circle, rgba(126, 205, 255, 0.4), transparent 70%);
  animation-delay: -5s;
}

.hero__spark {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.7), rgba(244, 92, 163, 0.6));
  opacity: 0.5;
  filter: blur(0);
  animation: glowPulse 6s ease-in-out infinite;
}

.hero__spark--north {
  inset-inline-start: 12%;
  top: 18%;
}

.hero__spark--south {
  inset-inline-end: 6%;
  bottom: 14%;
  animation-delay: -2.4s;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.button--primary {
  background: linear-gradient(135deg, #fff, rgba(255, 138, 61, 0.16));
  color: var(--color-brand-primary-dark);
  box-shadow: 0 16px 44px rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 46px rgba(255, 255, 255, 0.3);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #f6f9ff;
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
}

.hero__metrics div {
  background: rgba(7, 31, 86, 0.58);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 191, 0.18);
}

.hero__metrics dt {
  font-family: "Changa", sans-serif;
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.hero__metrics dd {
  margin: 0;
  color: #ffd7bb;
  font-size: 0.95rem;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
  animation: float 10s ease-in-out infinite;
}

.hero__orb--main {
  width: clamp(180px, 26vw, 260px);
  height: clamp(180px, 26vw, 260px);
  inset-inline-start: 14%;
  top: 16%;
  background: radial-gradient(circle, rgba(89, 195, 255, 0.65), rgba(11, 92, 255, 0.1));
}

.hero__orb--accent {
  width: clamp(140px, 20vw, 190px);
  height: clamp(140px, 20vw, 190px);
  inset-inline-end: 12%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(255, 137, 137, 0.7), transparent 70%);
  animation-delay: -4s;
}

.hero__card {
  position: absolute;
  inset-inline-start: 26%;
  bottom: 12%;
  padding: 24px;
  border-radius: var(--radius-medium);
  background: rgba(17, 35, 58, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  max-width: 280px;
}

.hero__card h2 {
  font-family: "Changa", sans-serif;
  margin: 8px 0 12px;
  font-size: 1.5rem;
  color: #fff;
}

.hero__card p {
  margin: 0;
  color: #d5e7ff;
  font-size: 0.96rem;
}

.hero__card-label {
  font-size: 0.85rem;
  color: #7fb4ff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.hero__card--secondary {
  inset-inline-end: 14%;
  top: 18%;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fbff;
  max-width: 220px;
}

@keyframes heroMeteor {
  0% {
    transform: translate3d(0, -40%, 0) rotate(-18deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  100% {
    transform: translate3d(160%, 160%, 0) rotate(-18deg);
    opacity: 0;
  }
}

@keyframes emblemFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(-1.5deg);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(130deg, rgba(10, 79, 209, 0.1), rgba(255, 138, 61, 0.15));
  color: var(--color-brand-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* signature section removed */

.brands__intro {
  max-width: 700px;
  margin: 0 auto clamp(40px, 5vw, 70px);
  text-align: center;
}

.brand-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 28vw, 360px), 1fr));
  gap: clamp(26px, 4vw, 48px);
}

.brand-card-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(18px, 2.8vw, 26px);
}

.brand-card-item:nth-of-type(1) {
  --reveal-delay: 0s;
}

.brand-card-item:nth-of-type(2) {
  --reveal-delay: 0.08s;
}

.brand-card-item:nth-of-type(3) {
  --reveal-delay: 0.14s;
}

.brand-card-item:nth-of-type(4) {
  --reveal-delay: 0.18s;
}

.brand-card-item:nth-of-type(5) {
  --reveal-delay: 0.22s;
}

.brand-card-item:nth-of-type(6) {
  --reveal-delay: 0.26s;
}

.brand-card-item:nth-of-type(7) {
  --reveal-delay: 0.3s;
}

.brand-card-item:nth-of-type(8) {
  --reveal-delay: 0.34s;
}

.brand-card-item:nth-of-type(9) {
  --reveal-delay: 0.38s;
}

.brand-card-item:nth-of-type(10) {
  --reveal-delay: 0.42s;
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  height: auto !important;
  aspect-ratio: auto !important;
  text-decoration: none;
  transform: translateZ(0);
  /* Force hardware accel but keep layout flow */
  transition: transform 240ms ease;
  will-change: transform;
}

/* The Visual Box */
.brand-card__image {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: clamp(280px, 32vw, 360px);
  padding: clamp(28px, 4vw, 42px);
  border-radius: clamp(26px, 3.8vw, 36px);
  background: linear-gradient(160deg,
      rgba(12, 35, 80, 0.9),
      color-mix(in srgb, var(--brand-color, #f45ca3) 25%, rgba(6, 20, 58, 0.95)));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 32px rgba(6, 20, 58, 0.18);
  overflow: hidden;
  isolation: isolate;
  gap: clamp(14px, 3vw, 26px);
  transition: box-shadow 260ms ease, transform 240ms ease;
  /* Added transform here for inner scaling if needed */
  content-visibility: auto;
  contain: paint layout;
  contain-intrinsic-size: 360px 360px;
}

.brand-card__image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(4, 15, 38, 0) 0%,
      color-mix(in srgb, var(--brand-color, #f45ca3) 40%, transparent) 100%);
  opacity: 0.6;
  z-index: 0;
  transition: opacity var(--transition-soft);
  pointer-events: none;
}

.brand-card__backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.brand-card__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08);
}

.brand-card__image::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--brand-color, #f45ca3) 40%, transparent) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%);
  opacity: 0.8;
  z-index: -1;
  pointer-events: none;
}


.brand-card:hover {
  transform: translateY(-8px);
}

.brand-card:hover .brand-card__image {
  box-shadow: 0 38px 68px rgba(5, 22, 64, 0.28);
}

.brand-card:hover .brand-card__image::before {
  opacity: 1;
}

.brand-card__logo {
  position: relative;
  z-index: 1;
  width: clamp(58px, 9vw, 78px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand-card-tint, rgba(46, 97, 208, 0.54)) 82%, rgba(4, 15, 38, 0.12));
  display: grid;
  place-items: center;
  box-shadow: 0 16px 28px rgba(6, 18, 52, 0.2);
  border: 1px solid color-mix(in srgb, var(--brand-card-tint, rgba(46, 97, 208, 0.54)) 70%, rgba(255, 255, 255, 0.45));
}

.brand-card__logo img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.brand-card__socials {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: clamp(10px, 2vw, 20px);
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.4vw, 20px);
  width: 100%;
}

.brand-card__social-link {
  width: clamp(38px, 5vw, 48px);
  height: clamp(38px, 5vw, 48px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  /* Glassy background with brand tint */
  background: color-mix(in srgb, var(--brand-color, #f45ca3) 20%, rgba(255, 255, 255, 0.1));
  border: 1px solid color-mix(in srgb, var(--brand-color, #f45ca3) 40%, rgba(255, 255, 255, 0.2));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  transition: transform var(--transition-soft), background var(--transition-soft), box-shadow var(--transition-soft);
}

.brand-card__social-link:hover {
  transform: translateY(-4px) scale(1.05);
  background: var(--brand-color, #f45ca3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-color, #f45ca3) 40%, rgba(0, 0, 0, 0.2));
  color: #ffffff;
}

.brand-card__social-link svg {
  width: clamp(17px, 2.5vw, 23px);
  height: clamp(17px, 2.5vw, 23px);
  display: block;
}

.brand-card__social-link--snapchat svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-card__social-link--tiktok svg {
  transform: translateX(0.8px) translateY(0.4px);
}

.brand-card__name {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  text-align: center;
  color: var(--brand-color, #fefcff);
  /* Unified Color */
  font-family: "Changa", sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  /* Bold as per image */
  opacity: 0.9;
  letter-spacing: 0.08rem;
  text-align: center;
  text-shadow: 0 12px 24px rgba(4, 16, 44, 0.22);
}

.ethos {
  background: linear-gradient(180deg, #f9fbff, rgba(255, 245, 236, 0.65));
}

.ethos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 32px);
}

.ethos-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(221, 230, 255, 0.75));
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(10, 79, 209, 0.08);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.ethos-card h3 {
  margin: 0 0 12px;
  font-family: "Changa", sans-serif;
  color: var(--color-brand-primary-dark);
  font-size: 1.4rem;
}

.ethos-card p {
  margin: 0 0 16px;
  color: rgba(46, 56, 74, 0.82);
  font-size: 1.02rem;
}

.ethos-card ul {
  margin: 0;
  padding: 0 20px 0 0;
  color: var(--color-text);
  font-weight: 500;
}

.ethos-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 48px rgba(12, 32, 82, 0.16);
}

.alliances__wrap {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.alliances__intro h2 {
  font-family: "Changa", sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin: 16px 0 14px;
}

.alliances__intro p {
  color: var(--color-text-muted);
  margin: 0;
}

.alliances__logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  /* Changed to auto-fill to keep column sizes fixed even if few items */
  gap: 20px;
  margin-top: 32px;
}

.alliance-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.alliance-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(6, 20, 58, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.alliance-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.alliance-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.connect {
  background: linear-gradient(128deg, rgba(5, 32, 94, 0.95), rgba(10, 79, 209, 0.88) 48%, rgba(244, 92, 163, 0.85));
  color: #f3f6ff;
  border-radius: clamp(40px, 6vw, 70px) clamp(40px, 6vw, 70px) 0 0;
  margin-top: clamp(60px, 10vw, 120px);
}



.connect__layout {
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.connect-form {
  background: rgba(7, 28, 82, 0.58);
  padding: clamp(30px, 4.8vw, 44px);
  border-radius: var(--radius-large);
  box-shadow: 0 42px 84px rgba(4, 18, 58, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: min(100%, 860px);
  margin: 0 auto;
}

.connect-form h2 {
  font-family: "Changa", sans-serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 18px 0 16px;
  color: #fff;
}


.connect-form p {
  color: rgba(243, 246, 255, 0.85);
  margin-bottom: clamp(16px, 2vw, 24px);
}

.form-field {
  position: relative;
  margin-bottom: clamp(18px, 2.6vw, 26px);
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(157, 215, 192, 0.18);
  border-radius: var(--radius-small);
  padding: 16px;
  font-family: inherit;
  font-size: 1rem;
  background: rgba(255, 245, 236, 0.28);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}


.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-brand-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(244, 92, 163, 0.16);
}

.form-field label {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform var(--transition-base), color var(--transition-base), top var(--transition-base);
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  background: transparent;
}

.form-field--textarea label {
  top: 20px;
  transform: translateY(0);
}

.form-field input:focus+label,
.form-field input:not(:placeholder-shown)+label,
.form-field textarea:focus+label,
.form-field textarea:not(:placeholder-shown)+label {
  top: -8px;
  background: rgba(5, 32, 94, 0.92);
  padding: 0 6px;
  transform: translateY(0);
  font-size: 0.8rem;
  color: var(--color-accent-mint);
}

.form-field textarea:focus+label,
.form-field textarea:not(:placeholder-shown)+label {
  top: -10px;
}

.form-status {
  margin-top: 12px;
  font-size: 0.94rem;
  font-weight: 600;
  text-align: center;
  min-height: 20px;
}

.connect-form .button {
  width: 100%;
  margin-top: 4px;
}

.form-status.is-pending {
  color: rgba(255, 255, 255, 0.78);
}

.form-status.is-success {
  color: #9ff7d8;
}

.connect__actions {
  background: rgba(17, 41, 102, 0.55);
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(28px, 4.5vw, 44px);
  box-shadow: 0 36px 76px rgba(3, 14, 46, 0.28);
  width: min(100%, 860px);
  margin: 0 auto;
}

.connect__actions-card {
  background: rgba(7, 20, 64, 0.8);
  border-radius: var(--radius-large);
  padding: clamp(22px, 3.2vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.connect__actions-card h3 {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.7rem);
}

.connect__actions-card p {
  margin: 0;
  color: rgba(243, 246, 255, 0.82);
  line-height: 1.7;
}

.connect__contact {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.connect__contact a {
  color: #fff;
  transition: opacity var(--transition-base);
}

.connect__contact a:hover {
  opacity: 0.75;
}

.button--outline {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-weight: 600;
  transition: background var(--transition-base), transform var(--transition-base);
}


.button--outline:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-3px);
}

/* removed image slot */


.site-footer {
  background: #061d42;
  color: #d9e6ff;
  padding: clamp(60px, 8vw, 80px) 0 clamp(40px, 5vw, 60px);
  margin-top: 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 48px);
}

/* RESTORED FOOTER LAYOUT FOR 3 COLUMNS */
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

/* Middle Column for Form */
.footer__center {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Form Integration (Dark Theme) */
.contact-form--footer {
  background: transparent;
  padding: 0 !important;
  border: none;
  display: grid;
  gap: 8px;
  /* Tighter gap */
  width: 100%;
}

.contact-form--footer .form-group {
  margin: 0;
}

/* Inputs Blended with Footer */
.contact-form--footer input,
.contact-form--footer textarea {
  width: 100%;
  background: rgba(10, 26, 60, 0.4) !important;
  /* Deep dark blend */
  border: 1px solid rgba(219, 230, 255, 0.15) !important;
  color: #f7f1ff !important;
  font-size: 0.9rem !important;
  padding: 10px 14px !important;
  /* Smaller padding */
  border-radius: 10px !important;
  height: auto;
  transition: all 0.2s ease;
}

.contact-form--footer textarea {
  min-height: 80px;
  /* Reduced height */
  resize: vertical;
}

/* Focus: Slightly lighter border, glow */
.contact-form--footer input:focus,
.contact-form--footer textarea:focus {
  background: rgba(15, 35, 80, 0.6) !important;
  border-color: var(--color-brand-primary) !important;
  box-shadow: 0 0 0 4px rgba(10, 79, 209, 0.2);
  outline: none;
}

.contact-form--footer input::placeholder,
.contact-form--footer textarea::placeholder {
  color: rgba(219, 230, 255, 0.5);
  /* Muted blue-grey */
}

/* Submit Button Integration */
.contact-form--footer .submit-btn {
  background: linear-gradient(135deg, #0a4fd1, #073b9e);
  /* Footer-safe blue */
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  font-size: 0.9rem;
}

.contact-form--footer .submit-btn:hover {
  background: linear-gradient(135deg, #0f5be0, #0a4fd1);
  transform: translateY(-2px);
}

.footer__form-title {
  font-family: "Changa", sans-serif;
  font-size: 1.1rem;
  color: #f7f1ff;
  margin-bottom: 2px;
  text-align: center;
}

/* Footer Responsive Stack */
@media (max-width: 1024px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__brand-block {
    justify-content: center;
    max-width: none;
    text-align: center;
  }

  .footer__brand-text {
    text-align: right;
  }

  .footer__social {
    justify-content: center;
    /* Center socials on mobile too */
  }

  .footer__center {
    order: 2;
    /* Keep form in flow */
  }
}

.footer__brand-block img {
  width: 82px;
  object-fit: contain;
}

.footer__brand-text h3 {
  margin: 0;
  font-family: "Changa", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.28rem;
  color: #f7f1ff;
}

.footer__brand-text p {
  margin: 0;
  color: rgba(231, 237, 255, 0.78);
  line-height: 1.8;
}

.footer__columns {
  display: flex;
  gap: clamp(34px, 6vw, 80px);
}

.footer__column h4 {
  margin: 0 0 16px;
  font-family: "Changa", sans-serif;
  font-size: 1.25rem;
  color: #f7f1ff;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.footer__column ul a {
  color: rgba(219, 230, 255, 0.88);
  font-weight: 600;
  transition: color var(--transition-base);
}

.footer__column ul a:hover {
  color: #fff;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(219, 230, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color var(--transition-base);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: center;
  /* Centered Copyright */
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.footer__rights {
  margin: 0;
  color: rgba(219, 230, 255, 0.72);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #d9e6ff;
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}

.footer__social a:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  transform: translateY(-4px);
}

.footer__social svg {
  width: 22px;
  height: 22px;
}

.footer__credit {
  margin: 0;
  color: rgba(217, 230, 255, 0.72);
  font-weight: 600;
}

.footer__credit-link {
  color: #9dd7c0;
  text-decoration: none;
}

.footer__credit-link:hover {
  color: #c0f0df;
}

.scroll-top {
  position: fixed;
  inset-inline-end: clamp(18px, 3vw, 32px);
  bottom: clamp(22px, 4vw, 38px);
  width: clamp(48px, 9vw, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(97, 221, 173, 0.94), rgba(76, 181, 252, 0.94));
  color: #052f8a;
  box-shadow: 0 18px 36px rgba(4, 27, 64, 0.28);
  transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  pointer-events: none;
  z-index: 98;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 48px rgba(4, 27, 64, 0.3);
}

/* Page Transition Overlay REMOVED */

.reveal {
  /* progressive enhancement: default visible */
  opacity: 1;
  transform: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {

  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(0.95);
    opacity: 0.4;
  }

  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

@media (max-width: 1024px) {

  .hero__layout,
  .alliances__wrap,
  .connect__grid {
    grid-template-columns: 1fr;
  }

  .hero__layout {
    text-align: center;
    justify-items: center;
    min-height: clamp(640px, 100vh, 780px);
  }

  .hero__title-emblem {
    position: absolute;
    inset: auto;
    left: 50%;
    top: clamp(18%, 20vh, 26%);
    transform: translateX(-50%);
    font-size: clamp(2.7rem, 9.2vw, 4rem);
    letter-spacing: clamp(2px, 0.7vw, 4.8px);
    white-space: normal;
    text-align: center;
    padding: 0 clamp(14px, 3vw, 26px);
    max-width: min(76vw, 420px);
    line-height: 1.22;
    margin: 0;
    display: block;
  }

  .hero__content {
    padding-top: clamp(200px, 36vh, 280px);
  }

  .ethos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .alliances__wrap,
  .connect__grid {
    gap: 40px;
  }

  .connect__info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav__toggle {
    display: flex;
  }

  .site-nav__list {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 16px);
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
    padding: 20px;
    gap: 16px;
    min-width: 220px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .site-nav__list.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list a {
    padding-inline-end: 8px;
  }
}

@media (max-width: 640px) {
  .hero__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__title-emblem {
    top: clamp(22%, 24vh, 30%);
    font-size: clamp(2.3rem, 10.8vw, 3.1rem);
    letter-spacing: clamp(1px, 0.6vw, 3px);
    max-width: min(82vw, 320px);
    padding-inline: clamp(10px, 5vw, 20px);
  }

  .hero__content {
    padding-top: clamp(190px, 44vh, 260px);
  }

  .connect__image-slot {
    min-height: 180px;
  }

  .brand-gallery {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .brand-card__footer {
    flex-direction: column;
    text-align: center;
  }

  .brand-card__footer .logo-slot {
    width: 100%;
  }

  .hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {

  .hero__metrics,
  .hero__stats {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
  }

  .brand-gallery {
    grid-template-columns: 1fr;
  }
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Layout Stability Fixes */
.brand-card {
  aspect-ratio: 1 / 1;
  /* Force square ratio before image loads */
}

.brand-card__backdrop {
  aspect-ratio: 1 / 1;
}

/* Mobile Layout Fixes */
@media (max-width: 900px) {
  .ethos__grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
    /* More space between cards */
  }

  .ethos-card {
    aspect-ratio: 1 / 1;
    /* Force Square */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
  }
}