
/* ==========================================
   KARAM NEXUS — CONTACT PAGE
   Brand: Black / Deep Navy / Ivory
========================================== */

body.contact-page {
  margin: 0;
  background: #000;
  color: #F4F1EB;
  font-family: "DM Sans", Arial, sans-serif;
  overflow-x: hidden;
}

body.contact-page,
body.contact-page * {
  box-sizing: border-box;
}

/* ==========================================
   FULL PAGE VIDEO BACKGROUND
========================================== */

.contact-main {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  background: #071829;
}

.contact-video-background,
.contact-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-video-background {
  z-index: -2;
}

.contact-video-background video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.contact-video-overlay {
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 8, 20, 0.68) 0%,
      rgba(0, 12, 28, 0.43) 52%,
      rgba(0, 14, 32, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2),
      transparent 40%,
      rgba(0, 0, 0, 0.4)
    );
}

/* ==========================================
   MINIMAL HEADER
========================================== */

.contact-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
}

.contact-header-inner {
  width: min(1400px, calc(100% - 100px));
  height: 110px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.contact-navigation {
  position: relative;
}

.contact-menu-toggle {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  border-radius: 50%;
  border: 1px solid rgba(244,241,235,0.6);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);

  transition:
    transform 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.contact-menu-toggle img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.contact-menu-toggle:hover {
  transform: rotate(12deg);
  background: rgba(16,38,64,0.9);
  box-shadow: 0 0 25px rgba(244,241,235,0.16);
}

/* ==========================================
   HEADER NEXUS DROPDOWN
========================================== */

.contact-menu-panel {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;

  width: 265px;
  padding: 26px 21px;

  border: 1px solid rgba(244,241,235,0.16);
  border-radius: 13px;

  background: rgba(3,16,32,0.97);
  backdrop-filter: blur(20px);

  box-shadow: 0 25px 70px rgba(0,0,0,0.4);

  transform-origin: top right;

  animation: contactMenuReveal 0.4s
    cubic-bezier(0.22,1,0.36,1) both;
}

.contact-menu-panel[hidden] {
  display: none;
}

@keyframes contactMenuReveal {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.contact-menu-eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #9DACBD;
}

.contact-menu-panel a {
  position: relative;
  display: block;
  padding: 14px 16px 14px 26px;

  border-radius: 6px;
  color: #F4F1EB;
  font-size: 13px;
  text-decoration: none;

  opacity: 0;
  animation: contactLinkReveal 0.45s ease forwards;

  transition: background 0.25s ease;
}

.contact-menu-panel a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10px;
  width: 5px;
  height: 5px;

  transform: translateY(-50%);
  border-radius: 50%;
  background: #F4F1EB;
  box-shadow: 0 0 8px #F4F1EB;
}

.contact-menu-panel a:nth-of-type(1) {
  animation-delay: 0.08s;
}
.contact-menu-panel a:nth-of-type(2) {
  animation-delay: 0.15s;
}
.contact-menu-panel a:nth-of-type(3) {
  animation-delay: 0.22s;
}
.contact-menu-panel a:nth-of-type(4) {
  animation-delay: 0.29s;
}

@keyframes contactLinkReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-menu-panel a:hover,
.contact-menu-panel a[aria-current="page"] {
  background: rgba(244,241,235,0.1);
}

/* ==========================================
   CONTACT HERO
========================================== */

.contact-hero {
  position: relative;
  flex: 1;
  width: min(1400px, calc(100% - 100px));
  min-height: 760px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 155px 0 105px;
}

.contact-hero-content {
  position: relative;
  max-width: 850px;
}

/* ==========================================
   ANIMATED EYEBROW BRANDING
========================================== */

.contact-brand-eyebrow {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;

  animation: contactBrandEnter 1s ease both;
}

.contact-brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.contact-brand-words {
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

.contact-brand-karam,
.contact-brand-nexus {
  display: block;
  color: #F4F1EB;
  font-weight: 400;
  white-space: nowrap;

  animation: contactWordReveal 1s
    cubic-bezier(0.22,1,0.36,1) both;
}

.contact-brand-karam {
  font-size: 23px;
  letter-spacing: 0.35em;
  animation-delay: 0.25s;
}

.contact-brand-nexus {
  font-size: 12px;
  letter-spacing: 0.55em;
  animation-delay: 0.45s;
}

@keyframes contactBrandEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes contactWordReveal {
  from {
    opacity: 0;
    transform: translateX(-25px);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* ==========================================
   HERO TYPOGRAPHY
========================================== */

.contact-section-label {
  margin: 0 0 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: #B9C9D8;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(54px, 6.5vw, 102px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.065em;

  animation: contactHeadingReveal 1.1s
    0.3s both;
}

.contact-hero h1 span {
  color: #F4F1EB;
  font-weight: 500;
}

@keyframes contactHeadingReveal {
  from {
    opacity: 0;
    transform: translateY(35px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.contact-hero-description {
  max-width: 640px;
  margin: 32px 0 0;

  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  color: #C6D2DC;

  animation: contactBrandEnter 0.9s
    0.65s both;
}

/* ==========================================
   EMAIL BUTTON
========================================== */

.contact-email-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;

  margin-top: 45px;
  padding: 22px 28px;

  background: #F4F1EB;
  color: #102640;

  border: 1px solid #F4F1EB;
  border-radius: 4px;

  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;

  cursor: pointer;

  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.35s ease;

  animation: contactBrandEnter 0.9s
    0.8s both;
}

.contact-email-button > span:last-child {
  font-size: 24px;
  transition: transform 0.3s ease;
}

.contact-email-button:hover {
  background: transparent;
  color: #F4F1EB;
  transform: translateY(-4px);
}

.contact-email-button:hover > span:last-child {
  transform: translate(4px,-4px);
}

.contact-email-caption {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #B5C6D5;
}

/* ==========================================
   HERO BOTTOM SIGNATURE
========================================== */

.contact-hero-bottom {
  position: absolute;
  bottom: 38px;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  padding-top: 22px;
  border-top: 1px solid rgba(244,241,235,0.23);

  color: #C2D0DD;
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* ==========================================
   CONTACT DRAWER BACKDROP
========================================== */

.contact-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;

  background: rgba(0,0,0,0.68);
  backdrop-filter: blur(0);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.45s ease,
    visibility 0.45s ease,
    backdrop-filter 0.45s ease;
}

.contact-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

/* ==========================================
   RIGHT SIDE CONTACT DRAWER
========================================== */

.contact-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;

  width: min(570px, 100%);
  height: 100vh;
  height: 100dvh;

  display: flex;
  flex-direction: column;

  background: #F4F1EB;
  color: #102640;

  box-shadow: -35px 0 85px rgba(0,0,0,0.4);

  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.65s cubic-bezier(0.22,1,0.36,1),
    visibility 0.65s ease;
}

.contact-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* Drawer top bar */

.contact-drawer-header {
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 26px 35px;
  border-bottom: 1px solid rgba(16,38,64,0.16);
}

.contact-drawer-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
}

.contact-drawer-close {
  width: 42px;
  height: 42px;

  border: 1px solid rgba(16,38,64,0.25);
  border-radius: 50%;

  background: transparent;
  color: #102640;

  font-size: 26px;
  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.contact-drawer-close:hover {
  background: #102640;
  color: #F4F1EB;
  transform: rotate(90deg);
}

/* Scrollable content */

.contact-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 55px 45px 45px;
}

.contact-drawer-label {
  margin: 0 0 22px;
  color: #667A8F;

  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
}

.contact-drawer-body h2 {
  margin: 0;
  font-size: clamp(42px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.contact-drawer-body h2 span {
  font-weight: 500;
}

.contact-drawer-description {
  margin: 24px 0 36px;
  font-size: 16px;
  line-height: 1.8;
  color: #62758A;
}

/* ==========================================
   FORM FIELD DESIGN
========================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form-field label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  display: block;
  width: 100%;
  max-width: 100%;

  padding: 15px 0;

  border: none;
  border-bottom: 1px solid rgba(16,38,64,0.25);
  border-radius: 0;

  background: transparent;
  color: #102640;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;

  outline: none;
  box-shadow: none;

  transition: border-color 0.3s ease;
}

.contact-form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  border-color: #102640;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #8595A5;
}

.contact-form-field select {
  cursor: pointer;
}

.contact-form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 15px;
  padding: 21px 25px;

  border: none;
  border-radius: 4px;

  background: #102640;
  color: #F4F1EB;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.contact-form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.contact-form-notice {
  margin: -12px 0 0;
  font-size: 12px;
  color: #74869A;
}

/* Sequential drawer animation */

.contact-drawer.is-open
.contact-drawer-body > * {
  animation: contactDrawerReveal
    0.65s cubic-bezier(0.22,1,0.36,1) both;
}

.contact-drawer.is-open
.contact-drawer-body > :nth-child(1) {
  animation-delay: 0.15s;
}

.contact-drawer.is-open
.contact-drawer-body > :nth-child(2) {
  animation-delay: 0.22s;
}

.contact-drawer.is-open
.contact-drawer-body > :nth-child(3) {
  animation-delay: 0.29s;
}

.contact-drawer.is-open
.contact-drawer-body > :nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes contactDrawerReveal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Drawer footer */

.contact-drawer-footer {
  flex-shrink: 0;

  display: flex;
  justify-content: space-between;
  gap: 15px;

  padding: 22px 35px;

  border-top: 1px solid rgba(16,38,64,0.16);

  font-size: 10px;
  letter-spacing: 0.07em;
}

/* ==========================================
   FOOTER — OUTSIDE VIDEO
========================================== */

.contact-footer {
  position: relative;
  background: #000000;
  color: #F4F1EB;
  padding: 70px 0 25px;
}

.contact-footer-inner {
  width: min(1400px, calc(100% - 100px));
  margin: auto;
}

.contact-footer-brand {
  display: flex;
  align-items: center;
  gap: 17px;

  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.contact-footer-brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.contact-footer-inner > p {
  margin: 22px 0 70px;
  color: #B6C6D5;
  font-size: 16px;
}

.contact-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;

  padding-top: 24px;

  border-top: 1px solid rgba(244,241,235,0.18);
  font-size: 12px;
  color: #B6C6D5;
}

.contact-footer-bottom a {
  color: #F4F1EB;
  text-decoration: none;
}

/* ==========================================
   MOBILE RESPONSIVE DESIGN
========================================== */

@media (max-width: 767px) {

  .contact-header-inner,
  .contact-hero,
  .contact-footer-inner {
    width: calc(100% - 40px);
  }

  .contact-header-inner {
    height: 85px;
  }

  .contact-menu-toggle {
    width: 48px;
    height: 48px;
  }

  .contact-hero {
    min-height: 760px;
    padding: 145px 0 110px;
  }

  .contact-brand-eyebrow {
    gap: 14px;
    margin-bottom: 44px;
  }

  .contact-brand-logo {
    width: 49px;
    height: 49px;
  }

  .contact-brand-karam {
    font-size: 17px;
  }

  .contact-brand-nexus {
    font-size: 10px;
  }

  .contact-hero h1 {
    font-size: clamp(43px, 10vw, 67px);
  }

  .contact-hero-description {
    margin-top: 28px;
    font-size: 18px;
    line-height: 1.75;
  }

  .contact-email-button {
    width: 100%;
    gap: 15px;
    padding: 19px 20px;
    font-size: 14px;
  }

  .contact-hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    bottom: 24px;
    font-size: 9px;
  }

  .contact-video-background video {
    object-position: 63% center;
  }

  .contact-drawer-header {
    padding: 20px;
  }

  .contact-drawer-body {
    padding: 38px 25px 35px;
  }

  .contact-drawer-body h2 {
    font-size: 45px;
  }

  .contact-drawer-footer {
    padding: 18px 20px;
    font-size: 9px;
  }

  .contact-footer {
    padding: 55px 0 25px;
  }

  .contact-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.contact-menu-toggle:focus-visible,
.contact-email-button:focus-visible,
.contact-drawer-close:focus-visible,
.contact-menu-panel a:focus-visible,
.contact-footer a:focus-visible {
  outline: 2px solid #F4F1EB;
  outline-offset: 4px;
}

.contact-drawer input:focus-visible,
.contact-drawer select:focus-visible,
.contact-drawer textarea:focus-visible {
  outline: 2px solid #102640;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   CONTACT PAGE — SHARED NEXUS HEADER
========================================== */

body.contact-page .site-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

  width: 100%;
  z-index: 100;

  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header stays at the page top, not fixed */

body.contact-page .site-header.scrolled {
  position: absolute !important;
  top: 0 !important;
  transform: none !important;
}

/* Keep navigation above the video */

body.contact-page .contact-main {
  isolation: isolate;
}

body.contact-page .site-header nav {
  position: relative;
  z-index: 101;
}

/* ==========================================
   CONTACT — ANIMATED FLOATING FORM POPUP
========================================== */

body.contact-page .contact-drawer {
  position: fixed !important;

  top: clamp(24px, 7vh, 75px) !important;
  right: clamp(20px, 6vw, 100px) !important;
  left: auto !important;
  bottom: auto !important;

  width: min(550px, calc(100vw - 40px)) !important;
  height: min(790px, calc(100dvh - 48px)) !important;

  max-height: calc(100dvh - 48px);

  background: #F4F1EB;
  border: 1px solid rgba(16, 38, 64, 0.15);
  border-radius: 16px;

  overflow: hidden;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.55);

  transform-origin: top right;

  transform:
    translateY(-18px)
    scale(0.94) !important;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease,
    visibility 0.55s ease;
}

/* Open animation */

body.contact-page .contact-drawer.is-open {
  transform:
    translateY(0)
    scale(1) !important;

  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Softer background blur */

body.contact-page .contact-drawer-backdrop.is-open {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(9px);
}

/* Form content reveal */

body.contact-page
.contact-drawer.is-open
.contact-form-field {
  animation: contactFieldAppear
    0.55s cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

body.contact-page
.contact-form-field:nth-child(1) {
  animation-delay: 0.16s;
}

body.contact-page
.contact-form-field:nth-child(2) {
  animation-delay: 0.22s;
}

body.contact-page
.contact-form-field:nth-child(3) {
  animation-delay: 0.28s;
}

body.contact-page
.contact-form-field:nth-child(4) {
  animation-delay: 0.34s;
}

body.contact-page
.contact-form-field:nth-child(5) {
  animation-delay: 0.40s;
}

@keyframes contactFieldAppear {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep form scrollable inside popup */

body.contact-page .contact-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mobile: centered floating popup */

@media (max-width: 767px) {

  body.contact-page .contact-drawer {
    top: 50% !important;
    right: 50% !important;

    width: calc(100vw - 24px) !important;
    height: min(
      760px,
      calc(100dvh - 32px)
    ) !important;

    border-radius: 14px;

    transform-origin: center;

    transform:
      translate(50%, -47%)
      scale(0.95) !important;
  }

  body.contact-page .contact-drawer.is-open {
    transform:
      translate(50%, -50%)
      scale(1) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.contact-page .contact-drawer,
  body.contact-page .contact-form-field {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================
   KARAM NEXUS — CONTACT FORM REFINEMENTS
========================================== */

/* More refined field spacing */

body.contact-page .contact-form {
  gap: 30px;
}

body.contact-page .contact-form-field label {
  color: #102640;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* Animated underline on field focus */

body.contact-page .contact-form-field input,
body.contact-page .contact-form-field textarea,
body.contact-page .contact-form-field select {
  border-bottom: 1px solid rgba(16,38,64,0.25);
  transition:
    border-color 0.35s ease,
    background-color 0.35s ease;
}

body.contact-page .contact-form-field input:focus,
body.contact-page .contact-form-field textarea:focus,
body.contact-page .contact-form-field select:focus {
  border-bottom-color: #102640;
}

/* ==========================================
   DIVISION SELECTOR
========================================== */

body.contact-page
.contact-form-field:has(#contactDivision) {
  position: relative;
}

body.contact-page #contactDivision {
  appearance: none;
  -webkit-appearance: none;

  width: 100%;
  padding: 17px 40px 17px 0;

  background: transparent;
  color: #102640;

  border-radius: 0;

  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

/* Custom dropdown arrow */

body.contact-page
.contact-form-field:has(#contactDivision)::after {
  content: "";

  position: absolute;
  right: 7px;
  bottom: 24px;

  width: 9px;
  height: 9px;

  border-right: 1.7px solid #102640;
  border-bottom: 1.7px solid #102640;

  transform: rotate(45deg);

  pointer-events: none;

  transition: transform 0.3s ease;
}

body.contact-page
.contact-form-field:has(#contactDivision):focus-within::after {
  transform: rotate(225deg);
}

/* Dropdown option colors */

body.contact-page #contactDivision option {
  background: #F4F1EB;
  color: #102640;
  padding: 12px;
}

/* ==========================================
   POPUP DETAIL POLISH
========================================== */

body.contact-page .contact-drawer-header {
  background: rgba(244,241,235,0.96);
}

body.contact-page .contact-drawer-close {
  transition:
    transform 0.45s cubic-bezier(0.22,1,0.36,1),
    background 0.3s ease,
    color 0.3s ease;
}

body.contact-page .contact-drawer.is-open
.contact-drawer-header {
  animation: contactPopupHeader 0.5s ease both;
}

@keyframes contactPopupHeader {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.contact-page .contact-drawer-header {
    animation: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — ANIMATED DIVISION SELECTOR
========================================== */

/* Hide native selector only when custom menu is ready */

body.contact-page
.contact-division-enhanced #contactDivision {
  display: none;
}

/* Remove the previous native dropdown arrow */

body.contact-page
.contact-form-field.contact-division-enhanced::after {
  display: none;
}

/* Custom selector wrapper */

.contact-division-picker {
  width: 100%;
}

/* Selector trigger */

.contact-division-trigger {
  width: 100%;
  min-height: 58px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 15px 4px 15px 0;

  background: transparent;
  color: #102640;

  border: none;
  border-bottom: 1px solid rgba(16,38,64,0.3);
  border-radius: 0;

  font-family: inherit;
  font-size: 16px;
  text-align: left;

  cursor: pointer;

  transition: border-color 0.3s ease;
}

.contact-division-trigger:hover,
.contact-division-trigger[aria-expanded="true"] {
  border-bottom-color: #102640;
}

.contact-division-trigger:focus-visible {
  outline: 2px solid #102640;
  outline-offset: 4px;
}

/* Animated arrow */

.contact-division-chevron {
  width: 9px;
  height: 9px;
  flex-shrink: 0;

  border-right: 1.7px solid #102640;
  border-bottom: 1.7px solid #102640;

  transform: rotate(45deg);

  transition: transform 0.35s ease;
}

.contact-division-trigger[aria-expanded="true"]
.contact-division-chevron {
  transform: rotate(225deg);
}

/* Expandable menu */

.contact-division-options {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;

  transform: translateY(-8px);

  background: #102640;
  border-radius: 0 0 10px 10px;

  transition:
    max-height 0.55s cubic-bezier(0.22,1,0.36,1),
    opacity 0.35s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}

.contact-division-options.is-open {
  max-height: 450px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  overflow-y: auto;
}

/* Division option */

.contact-division-option {
  display: flex;
  align-items: center;
  gap: 13px;

  width: 100%;
  min-height: 44px;

  padding: 13px 17px;

  background: transparent;
  color: #F4F1EB;

  border: none;
  border-bottom: 1px solid rgba(244,241,235,0.08);

  font-family: inherit;
  font-size: 13px;
  text-align: left;

  cursor: pointer;

  transition: background 0.25s ease;
}

.contact-division-option::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;

  background: #F4F1EB;
  border-radius: 50%;

  box-shadow: 0 0 7px rgba(244,241,235,0.6);
}

.contact-division-option:hover,
.contact-division-option:focus-visible {
  background: rgba(244,241,235,0.13);
  outline-offset: -2px;
}

.contact-division-option.is-selected {
  background: rgba(244,241,235,0.18);
}

/* Sequential Nexus-style reveal */

.contact-division-options.is-open
.contact-division-option {
  animation: contactDivisionReveal
    0.45s cubic-bezier(0.22,1,0.36,1) both;

  animation-delay:
    calc(var(--division-index, 0) * 55ms);
}

@keyframes contactDivisionReveal {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile adjustments */

@media (max-width: 767px) {
  .contact-division-options.is-open {
    max-height: 290px;
  }

  .contact-division-option {
    font-size: 12px;
    padding: 13px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .contact-division-options,
  .contact-division-option,
  .contact-division-chevron {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — TECH CONTACT POPUP
========================================== */

/* DARK NAVY POPUP */

body.contact-page .contact-drawer {
  background:
    radial-gradient(
      ellipse at 90% 10%,
      rgba(48, 95, 142, 0.26),
      transparent 55%
    ),
    linear-gradient(145deg, #102640, #071829 75%) !important;

  color: #F4F1EB !important;

  border: 1px solid rgba(180, 210, 235, 0.35);

  box-shadow:
    0 35px 100px rgba(0,0,0,0.6),
    0 0 35px rgba(75,145,210,0.13),
    inset 0 0 30px rgba(120,180,230,0.03);

  isolation: isolate;
}

/* ==========================================
   ANIMATED DIGITAL GRID
========================================== */

body.contact-page .contact-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(190,220,245,0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(190,220,245,0.055) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  opacity: 0.5;

  animation: contactGridDrift 22s linear infinite;
}

@keyframes contactGridDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 48px 48px;
  }
}

/* ==========================================
   SOFT MOVING LIGHT SCAN
========================================== */

body.contact-page .contact-drawer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 43%,
    rgba(120,190,245,0.10) 50%,
    transparent 57%,
    transparent 100%
  );

  background-size: 100% 220%;
  opacity: 0.7;

  animation: contactTechScan 11s ease-in-out infinite;
}

@keyframes contactTechScan {
  0% {
    background-position: 0 -220%;
  }

  100% {
    background-position: 0 220%;
  }
}

/* Keep content above the animated background */

body.contact-page .contact-drawer-header,
body.contact-page .contact-drawer-body,
body.contact-page .contact-drawer-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================
   HEADER — NEXUS STYLE
========================================== */

body.contact-page .contact-drawer-header {
  background: rgba(0, 0, 0, 0.18) !important;

  border-bottom:
    1px solid rgba(244,241,235,0.18);
}

body.contact-page .contact-drawer-eyebrow {
  color: #D5E4F1;
  letter-spacing: 0.19em;
}

body.contact-page .contact-drawer-close {
  color: #F4F1EB;

  border: 1px solid rgba(244,241,235,0.45);

  background: rgba(255,255,255,0.04);
}

body.contact-page .contact-drawer-close:hover {
  background: #F4F1EB;
  color: #102640;
}

/* ==========================================
   HEADINGS AND DESCRIPTIONS
========================================== */

body.contact-page .contact-drawer-label {
  color: #A7C6DE;
}

body.contact-page .contact-drawer-body h2 {
  color: #F4F1EB;
}

body.contact-page .contact-drawer-body h2 span {
  color: #FFFFFF;
}

body.contact-page .contact-drawer-description {
  color: #B8CCDD;
}

/* ==========================================
   FORM INPUTS — LIGHT ON NAVY
========================================== */

body.contact-page .contact-form-field label {
  color: #D7E5F0;
}

body.contact-page .contact-form-field input,
body.contact-page .contact-form-field select,
body.contact-page .contact-form-field textarea {
  color: #F4F1EB;

  background: transparent;

  border-bottom:
    1px solid rgba(244,241,235,0.30);
}

body.contact-page .contact-form-field input::placeholder,
body.contact-page .contact-form-field textarea::placeholder {
  color: #91A9BD;
}

body.contact-page .contact-form-field input:focus,
body.contact-page .contact-form-field textarea:focus,
body.contact-page .contact-form-field select:focus {
  border-bottom-color: #F4F1EB;

  box-shadow:
    0 1px 0 rgba(244,241,235,0.4);
}

body.contact-page .contact-drawer input:focus-visible,
body.contact-page .contact-drawer textarea:focus-visible,
body.contact-page .contact-drawer select:focus-visible {
  outline-color: #B9D5EA;
}

/* ==========================================
   ANIMATED DIVISION SELECTOR
========================================== */

body.contact-page .contact-division-trigger {
  color: #F4F1EB;

  border-bottom:
    1px solid rgba(244,241,235,0.3);
}

body.contact-page .contact-division-trigger:hover,
body.contact-page
.contact-division-trigger[aria-expanded="true"] {
  border-bottom-color: #F4F1EB;
}

body.contact-page .contact-division-trigger:focus-visible {
  outline-color: #F4F1EB;
}

body.contact-page .contact-division-chevron {
  border-color: #F4F1EB;
}

body.contact-page .contact-division-options {
  background: #030F20;

  border: 1px solid rgba(244,241,235,0.2);
  border-top: none;
}

body.contact-page .contact-division-option {
  color: #F4F1EB;
}

body.contact-page .contact-division-option:hover,
body.contact-page .contact-division-option:focus-visible {
  background: rgba(120,180,235,0.18);
}

body.contact-page .contact-division-option.is-selected {
  background: rgba(120,180,235,0.25);
}

/* ==========================================
   FORM BUTTON + FOOTER
========================================== */

body.contact-page .contact-form-submit {
  background: #F4F1EB;
  color: #102640;
  border: 1px solid #F4F1EB;
}

body.contact-page .contact-form-submit:disabled {
  opacity: 0.55;
}

body.contact-page .contact-form-notice {
  color: #A2B7CA;
}

body.contact-page .contact-drawer-footer {
  background: rgba(0,0,0,0.19);
  color: #CBDCE9;

  border-top:
    1px solid rgba(244,241,235,0.17);
}

/* Dark-theme scrollbar */

body.contact-page .contact-drawer-body {
  scrollbar-color:
    rgba(180,210,235,0.45)
    transparent;
  scrollbar-width: thin;
}

/* ==========================================
   NEXUS-STYLE SEQUENTIAL FORM REVEAL
========================================== */

body.contact-page
.contact-drawer.is-open
.contact-form-field {
  animation-name: contactTechFieldReveal;
  animation-duration: 0.6s;
  animation-timing-function:
    cubic-bezier(0.22,1,0.36,1);
  animation-fill-mode: both;
}

@keyframes contactTechFieldReveal {
  from {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Accessibility and performance */

@media (prefers-reduced-motion: reduce) {

  body.contact-page .contact-drawer::before,
  body.contact-page .contact-drawer::after,
  body.contact-page .contact-form-field {
    animation: none !important;
  }

}

/* ==========================================
   KARAM NEXUS — VISIBLE TECH ANIMATIONS
========================================== */

/* 1. Animated network grid */

body.contact-page .contact-drawer::before {
  content: "";
  position: absolute;
  inset: -48px;
  z-index: 0;
  pointer-events: none;

  background-image:
    radial-gradient(
      circle,
      rgba(151, 210, 255, 0.7) 1.5px,
      transparent 3px
    ),
    linear-gradient(
      rgba(135, 185, 225, 0.12) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(135, 185, 225, 0.12) 1px,
      transparent 1px
    );

  background-size:
    96px 96px,
    48px 48px,
    48px 48px;

  opacity: 0.55;

  animation: nexusGridMove 12s linear infinite;
}

@keyframes nexusGridMove {
  from {
    transform: translate3d(-48px, -48px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

/* 2. Travelling blue light beam */

body.contact-page .contact-drawer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    transparent 45%,
    rgba(95, 185, 255, 0.04) 48%,
    rgba(140, 215, 255, 0.36) 50%,
    rgba(95, 185, 255, 0.04) 52%,
    transparent 55%
  );

  opacity: 1;

  animation: nexusLightSweep 7s linear infinite;
}

@keyframes nexusLightSweep {
  from {
    transform: translateY(-110%);
  }

  to {
    transform: translateY(110%);
  }
}

/* 3. Glowing popup border */

body.contact-page .contact-drawer.is-open {
  animation: nexusPopupGlow 4s ease-in-out infinite;
}

@keyframes nexusPopupGlow {
  0%, 100% {
    box-shadow:
      0 30px 85px rgba(0, 0, 0, 0.6),
      0 0 12px rgba(100, 185, 255, 0.12);
  }

  50% {
    box-shadow:
      0 30px 85px rgba(0, 0, 0, 0.6),
      0 0 32px rgba(100, 185, 255, 0.32);
  }
}

/* 4. Sequential form field reveal */

body.contact-page
.contact-drawer.is-open .contact-form-field {
  animation: nexusFieldEnter
    0.65s cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

body.contact-page
.contact-drawer.is-open .contact-form-field:nth-child(1) {
  animation-delay: 0.18s;
}

body.contact-page
.contact-drawer.is-open .contact-form-field:nth-child(2) {
  animation-delay: 0.28s;
}

body.contact-page
.contact-drawer.is-open .contact-form-field:nth-child(3) {
  animation-delay: 0.38s;
}

body.contact-page
.contact-drawer.is-open .contact-form-field:nth-child(4) {
  animation-delay: 0.48s;
}

body.contact-page
.contact-drawer.is-open .contact-form-field:nth-child(5) {
  animation-delay: 0.58s;
}

@keyframes nexusFieldEnter {
  from {
    opacity: 0;
    transform: translateX(-22px);
    filter: blur(5px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* 5. Keep content above moving graphics */

body.contact-page .contact-drawer-header,
body.contact-page .contact-drawer-body,
body.contact-page .contact-drawer-footer {
  position: relative;
  z-index: 2;
}

/* Respect reduced motion settings */

@media (prefers-reduced-motion: reduce) {
  body.contact-page .contact-drawer::before,
  body.contact-page .contact-drawer::after,
  body.contact-page .contact-drawer.is-open,
  body.contact-page .contact-drawer.is-open
  .contact-form-field {
    animation: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — CONTACT PAGE FOOTER
========================================== */

body.contact-page .about-footer {
  position: relative;
  z-index: 2;

  width: 100%;
  padding: 75px 0 25px;

  background: #000000;
  color: #F4F1EB;
}

/* Footer container */

body.contact-page .about-footer .about-container {
  width: min(1300px, calc(100% - 100px));
  margin: 0 auto;
}

/* Main footer layout */

body.contact-page .about-footer .footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;

  padding-bottom: 85px;
}

/* ==========================================
   FOOTER BRAND IDENTITY
========================================== */

body.contact-page .about-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body.contact-page .about-footer .footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 17px;

  color: #F4F1EB;
  text-decoration: none;
}

/* KN logo */

body.contact-page .about-footer .footer-kn-logo {
  display: block;
  width: 62px;
  height: 62px;

  object-fit: contain;

  transition: transform 0.45s ease;
}

body.contact-page .about-footer
.footer-logo-link:hover .footer-kn-logo {
  transform: scale(1.08);
}

/* Karam Nexus wordmark */

body.contact-page .about-footer .footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

body.contact-page .about-footer .footer-karam {
  display: block;

  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.2;

  color: #F4F1EB;
}

body.contact-page .about-footer .footer-nexus {
  display: block;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.56em;

  color: #C0CEDB;
}

/* Wordmark reveal */

body.contact-page .about-footer .footer-brand-text span {
  animation: contactFooterWordReveal
    1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.contact-page .about-footer .footer-nexus {
  animation-delay: 0.2s !important;
}

@keyframes contactFooterWordReveal {
  from {
    opacity: 0;
    transform: translateY(15px);
    filter: blur(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Footer tagline */

body.contact-page .about-footer .footer-tagline {
  margin: 24px 0 0;

  font-size: 16px !important;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.7;

  color: #AABBCB;
}

/* ==========================================
   FOOTER NAVIGATION
========================================== */

body.contact-page .about-footer .footer-navigation {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
}

body.contact-page .about-footer .footer-navigation a {
  position: relative;
  display: inline-block;

  padding-bottom: 5px;

  color: #D6E0E9;
  text-decoration: none;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* Animated navigation underline */

body.contact-page .about-footer
.footer-navigation a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: #F4F1EB;

  transition: width 0.4s
    cubic-bezier(0.22, 1, 0.36, 1);
}

body.contact-page .about-footer
.footer-navigation a:hover {
  color: #FFFFFF;
  transform: translateX(5px);
}

body.contact-page .about-footer
.footer-navigation a:hover::after {
  width: 100%;
}

/* ==========================================
   FOOTER COPYRIGHT
========================================== */

body.contact-page .about-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 24px;

  border-top: 1px solid rgba(244, 241, 235, 0.18);
}

body.contact-page .about-footer .footer-bottom p {
  margin: 0;

  font-size: 12px !important;
  font-weight: 400;
  letter-spacing: 0.08em;

  color: #95A7B7;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {
  body.contact-page .about-footer .about-container {
    width: calc(100% - 64px);
  }

  body.contact-page .about-footer .footer-content {
    gap: 40px;
  }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {
  body.contact-page .about-footer {
    padding: 65px 0 25px;
  }

  body.contact-page .about-footer .about-container {
    width: calc(100% - 40px);
  }

  body.contact-page .about-footer .footer-content {
    flex-direction: column;
    gap: 55px;
    padding-bottom: 65px;
  }

  body.contact-page .about-footer .footer-kn-logo {
    width: 52px;
    height: 52px;
  }

  body.contact-page .about-footer .footer-karam {
    font-size: 19px;
  }

  body.contact-page .about-footer .footer-nexus {
    font-size: 10px;
  }

  body.contact-page .about-footer .footer-navigation {
    gap: 22px;
  }

  body.contact-page .about-footer .footer-navigation a {
    font-size: 15px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  body.contact-page .about-footer *,
  body.contact-page .about-footer *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — CONTACT US TITLE REVEAL
========================================== */

/* Space between logo and title */

body.contact-page .contact-brand-eyebrow {
  margin-bottom: 30px;
}

/* Animated CONTACT US heading */

body.contact-page .contact-page-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;

  margin-bottom: 30px;
  overflow: hidden;

  color: #F4F1EB;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  letter-spacing: 0.13em;
  line-height: 1.25;
}

/* Individual word animation */

body.contact-page .contact-title-word {
  display: inline-block;

  opacity: 0;
  filter: blur(10px);
  transform: translateY(35px);

  animation: contactTitleReveal
    1s cubic-bezier(0.22, 1, 0.36, 1)
    forwards;
}

body.contact-page .contact-title-word:nth-child(1) {
  animation-delay: 0.35s;
}

body.contact-page .contact-title-word:nth-child(2) {
  animation-delay: 0.65s;
}

@keyframes contactTitleReveal {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* Connecting line grows from left to right */

body.contact-page .contact-title-line {
  display: block;
  width: clamp(40px, 9vw, 150px);
  height: 1px;
  flex-shrink: 0;

  background: linear-gradient(
    90deg,
    #F4F1EB,
    rgba(143, 201, 245, 0.15)
  );

  transform: scaleX(0);
  transform-origin: left;

  animation: contactLineReveal
    1.2s cubic-bezier(0.22, 1, 0.36, 1)
    1s forwards;
}

@keyframes contactLineReveal {
  to {
    transform: scaleX(1);
  }
}

/* Main headline appears after CONTACT US */

body.contact-page .contact-hero h1 {
  animation-delay: 0.9s;
}

/* Mobile refinement */

@media (max-width: 767px) {
  body.contact-page .contact-page-title {
    font-size: clamp(27px, 7vw, 38px);
    gap: 10px;
    margin-bottom: 25px;
  }

  body.contact-page .contact-title-line {
    width: 40px;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  body.contact-page .contact-title-word,
  body.contact-page .contact-title-line {
    animation: none !important;
    opacity: 1;
    filter: none;
    transform: none;
  }
}
