
/* ========================================
   KARAM NEXUS — DESIGN SYSTEM
======================================== */

:root {
  --navy: #102640;
  --navy-deep: #071829;
  --ivory: #F4F1EB;
  --white: #FFFFFF;
  --muted: #C5CDD6;
  --line: rgba(244, 241, 235, 0.22);

  --font-main: 'DM Sans', sans-serif;

  --container: 1320px;
  --header-height: 96px;
}

/* GLOBAL RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-main);
  background: var(--ivory);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: 5px;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ========================================
   NAVIGATION
======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  transition:
    background 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(7, 24, 41, 0.96);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.navbar {
  max-width: var(--container);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-logo .logo {
  width: 185px;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .logo {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link {
  position: relative;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ivory);

  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;

  width: 0;
  height: 1px;
  background: var(--ivory);

  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* NAVIGATION CTA */

.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;

  padding: 14px 23px;

  background: var(--ivory);
  color: var(--navy);

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;

  border: 1px solid var(--ivory);
  border-radius: 3px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.nav-contact:hover {
  background: transparent;
  color: var(--ivory);
  transform: translateY(-2px);
}

.nav-contact span {
  font-size: 17px;
  font-weight: 400;
}

/* MOBILE MENU BUTTON */

.menu-toggle {
  display: none;

  width: 38px;
  height: 38px;

  border: none;
  background: transparent;
  cursor: pointer;

  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  position: relative;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;

  background: var(--ivory);

  transition: transform 0.35s ease, opacity 0.35s ease;
}

/* ========================================
   HERO SECTION
======================================== */

.hero {
  position: relative;

  width: 100%;
  min-height: 700px;
  height: 100vh;
  height: 100svh;

  display: flex;
  align-items: center;

  isolation: isolate;
  overflow: hidden;

  background: var(--navy-deep);
  color: var(--ivory);
}

/* VIDEO */

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: -3;

  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;
}

/* CINEMATIC DARK OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 41, 0.88) 0%,
      rgba(7, 24, 41, 0.68) 35%,
      rgba(7, 24, 41, 0.30) 70%,
      rgba(7, 24, 41, 0.18) 100%
    ),
    linear-gradient(
      0deg,
      rgba(7, 24, 41, 0.62) 0%,
      transparent 24%,
      transparent 72%,
      rgba(7, 24, 41, 0.28) 100%
    );
}

/* ========================================
   HERO CONTENT
======================================== */

.hero-content {
  position: relative;

  width: 100%;
  max-width: var(--container);

  margin: 0 auto;
  padding: 110px 40px 80px;

  z-index: 2;
}

/* EYEBROW */

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;

  margin-bottom: 28px;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ivory);

  animation: fadeUp 1s ease 0.15s both;
}

.eyebrow-line {
  width: 33px;
  height: 1px;
  background: var(--ivory);
}

/* MAIN HEADING */

.hero-title {
  font-size: clamp(64px, 7.5vw, 118px);
  font-weight: 300;

  letter-spacing: -0.065em;
  line-height: 1.05;

  max-width: 950px;
  margin-bottom: 32px;

  animation: fadeUp 1.2s ease 0.3s both;
}

.hero-title span {
  font-weight: 500;
}

/* DESCRIPTION */

.hero-description {
  max-width: 440px;

  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.005em;

  color: var(--muted);

  margin-bottom: 42px;

  animation: fadeUp 1.2s ease 0.5s both;
}

/* BUTTONS */

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;

  animation: fadeUp 1.2s ease 0.7s both;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;

  min-height: 54px;
  gap: 38px;

  padding: 0 24px;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;

  border-radius: 3px;

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.btn-primary {
  background: var(--ivory);
  color: var(--navy);
  border: 1px solid var(--ivory);
}

.btn-primary:hover {
  background: transparent;
  color: var(--ivory);
  transform: translateY(-3px);
}

.btn-secondary {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(244, 241, 235, 0.48);
}

.btn-secondary:hover {
  background: var(--ivory);
  color: var(--navy);
  transform: translateY(-3px);
}

.btn-primary span,
.btn-secondary span {
  font-size: 18px;
  font-weight: 400;
}

/* ========================================
   SCROLL INDICATOR
======================================== */

.scroll-indicator {
  position: absolute;
  bottom: 42px;
  left: 50%;

  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;

  z-index: 2;

  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;

  color: var(--ivory);

  opacity: 0.75;
}

.scroll-line {
  position: relative;

  width: 1px;
  height: 45px;

  background: rgba(244, 241, 235, 0.3);
  overflow: hidden;
}

.scroll-line::after {
  content: "";

  position: absolute;
  top: -50%;
  left: 0;

  width: 1px;
  height: 50%;

  background: var(--ivory);
  animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scrollLine {
  0% {
    top: -50%;
  }

  100% {
    top: 100%;
  }
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {

  :root {
    --header-height: 82px;
  }

  .navbar {
    padding: 0 28px;
  }

  .nav-logo .logo {
    width: 155px;
  }

  .nav-links {
    gap: 22px;
  }

  .nav-link {
    font-size: 11px;
  }

  .nav-contact {
    padding: 12px 16px;
    gap: 12px;
  }

  .hero-content {
    padding-left: 45px;
    padding-right: 45px;
  }

  .hero-title {
    font-size: clamp(62px, 8vw, 90px);
  }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  :root {
    --header-height: 74px;
  }

  .navbar {
    padding: 0 22px;
  }

  .nav-logo .logo {
    width: 143px;
  }

  .nav-contact {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* MOBILE DROPDOWN */

  .nav-links {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 12px 25px 25px;

    background: rgba(7, 24, 41, 0.98);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  .site-header.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
    padding: 17px 0;

    font-size: 14px;

    border-bottom: 1px solid var(--line);
  }

  .nav-link::after {
    display: none;
  }

  .menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }

  .menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }

  /* HERO */

  .hero {
    min-height: 640px;
    height: 100svh;
  }

  .hero-video {
    object-position: center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(7,24,41,0.87),
        rgba(7,24,41,0.48)
      ),
      linear-gradient(
        0deg,
        rgba(7,24,41,0.65),
        transparent 40%
      );
  }

  .hero-content {
    padding: 105px 24px 80px;
  }

  .hero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(49px, 11vw, 76px);
    line-height: 1.1;
    letter-spacing: -0.055em;
    margin-bottom: 23px;
  }

  .hero-description {
    max-width: 335px;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .hero-actions {
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    min-height: 49px;
    padding: 0 17px;
    gap: 15px;
    font-size: 11px;
  }

  .scroll-indicator {
    bottom: 23px;
    font-size: 8px;
  }

  .scroll-line {
    height: 28px;
  }
}

/* SMALL MOBILE */

@media (max-width: 380px) {

  .hero-title {
    font-size: 46px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 210px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   KARAM NEXUS — LOGO & LEFT ALIGNMENT
======================================== */

/* Consistent left alignment across the site */

:root {
  --page-gutter: clamp(24px, 4vw, 76px);
}

/* Move navigation closer to screen edges */

.navbar {
  max-width: none;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Move hero heading and buttons to the left */

.hero-content {
  max-width: none;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}

/* Logo and brand name side by side */

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

/* KN signature mark */

.nav-logo .logo {
  width: 76px;
  height: auto;
  flex-shrink: 0;
}

/* Typography beside the logo */

.logo-wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;

  color: var(--ivory);
  white-space: nowrap;
}

/* KARAM */

.logo-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 23px;
  font-weight: 300;
  letter-spacing: 0.38em;
  line-height: 1;
}

/* NEXUS */

.logo-subname {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.72em;
  line-height: 1;
}

/* Tablet */

@media (max-width: 1024px) {
  .nav-logo .logo {
    width: 65px;
  }

  .logo-name {
    font-size: 19px;
  }

  .logo-subname {
    font-size: 9px;
  }

  .nav-logo {
    gap: 12px;
  }
}

/* Mobile */

@media (max-width: 767px) {
  .nav-logo .logo {
    width: 53px;
  }

  .logo-name {
    font-size: 17px;
    letter-spacing: 0.3em;
  }

  .logo-subname {
    font-size: 8px;
    letter-spacing: 0.58em;
  }

  .logo-wordmark {
    gap: 6px;
  }

  .nav-logo {
    gap: 10px;
  }
}

/* ========================================
   LOGO SIZE & POSITION REFINEMENT
======================================== */

/* Move entire logo slightly downward */
.nav-logo {
  transform: translateY(9px);
  gap: 15px;
}

/* Enlarge KN symbol */
.nav-logo .logo {
  width: 96px;
  height: auto;
}

/* Enlarge KARAM lettering */
.logo-name {
  font-size: 25px;
  letter-spacing: 0.38em;
}

/* Enlarge NEXUS lettering */
.logo-subname {
  font-size: 12px;
  letter-spacing: 0.72em;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .nav-logo {
    transform: translateY(5px);
    gap: 10px;
  }

  .nav-logo .logo {
    width: 65px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-subname {
    font-size: 9px;
  }
}

/* ========================================
   KARAM NEXUS — CINEMATIC TYPEWRITER
======================================== */

/* Hide hero content until JavaScript reveals it */

.js-enabled .hero-eyebrow,
.js-enabled .hero-title,
.js-enabled .hero-description,
.js-enabled .hero-actions {
  opacity: 0;
  animation: none;
}

/* Allow each element to become visible */

.js-enabled .hero-title.is-visible,
.js-enabled .hero-description.is-visible {
  opacity: 1;
}

/* Eyebrow entrance */

.js-enabled .hero-eyebrow.is-visible {
  opacity: 1;
  animation: introReveal 0.7s ease both;
}

/* Preserve original heading typography */

.hero-title .typing-regular {
  font-weight: 300;
}

.hero-title .typing-bold {
  font-weight: 500;
}

/* Elegant blinking typewriter cursor */

.typing-active::after {
  content: "";
  display: inline-block;

  width: 2px;
  height: 0.82em;
  margin-left: 5px;

  background: var(--ivory);
  vertical-align: -0.04em;

  animation: typingBlink 0.75s step-end infinite;
}

/* Button entrance */

.js-enabled .hero-actions.is-visible {
  opacity: 1;
  animation: buttonsReveal 0.85s
             cubic-bezier(0.22, 1, 0.36, 1)
             both;
}

/* Animations */

@keyframes typingBlink {
  0%, 49% {
    opacity: 1;
  }

  50%, 100% {
    opacity: 0;
  }
}

@keyframes introReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes buttonsReveal {
  from {
    opacity: 0;
    transform: translateY(25px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================
   KARAM NEXUS — CONNECTION NAVIGATION
====================================== */

.nexus-menu {
  position: relative;
  margin-left: auto;
  z-index: 20;
}

/* The network icon */

.nexus-trigger {
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(244,241,235,0.35);
  border-radius: 50%;

  background: rgba(16,38,64,0.35);
  color: var(--ivory);

  cursor: pointer;

  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.nexus-trigger svg {
  width: 34px;
  height: 34px;

  transition: transform 0.5s ease;
}

.nexus-trigger circle {
  fill: currentColor;
}

/* Icon reacts when menu opens */

.nexus-menu.is-open .nexus-trigger {
  border-color: var(--ivory);
  background: rgba(244,241,235,0.12);
}

.nexus-menu.is-open .nexus-trigger svg {
  transform: rotate(25deg);
}

/* Invisible bridge prevents hover flicker */

.nexus-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  height: 14px;
  width: 260px;
}

/* Floating dropdown */

.nexus-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 260px;
  padding: 24px 20px;

  border: 1px solid rgba(244,241,235,0.15);
  border-radius: 12px;

  background: rgba(7,24,41,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 18px 50px rgba(0,0,0,0.25);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-10px) scale(0.97);
  transform-origin: top right;

  transition:
    opacity 0.25s ease,
    transform 0.35s ease,
    visibility 0.25s ease;
}

/* Show menu */

.nexus-menu.is-open .nexus-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}

/* Small title */

.nexus-menu-label {
  color: rgba(244,241,235,0.55);

  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;

  margin-bottom: 15px;
}

/* Network connections */

.nexus-menu-links {
  position: relative;
}

/* Main connecting line */

.nexus-menu-links::before {
  content: "";

  position: absolute;
  left: 12px;
  top: 18px;
  bottom: 18px;

  width: 1px;

  background: rgba(244,241,235,0.45);

  transform: scaleY(0);
  transform-origin: top;

  transition: transform 0.35s ease 0.08s;
}

.nexus-menu.is-open .nexus-menu-links::before {
  transform: scaleY(1);
}

/* Individual links */

.nexus-menu-links a {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 48px;
  padding: 12px 12px 12px 44px;

  color: var(--ivory);
  font-size: 13px;
  font-weight: 400;

  border-radius: 5px;

  opacity: 0;
  transform: translateX(-12px) translateY(5px);

  transition:
    opacity 0.22s ease,
    transform 0.3s ease,
    background 0.25s ease;
}

/* Circular network nodes */

.nexus-menu-links a::before {
  content: "";

  position: absolute;
  left: 8px;
  top: 50%;

  width: 9px;
  height: 9px;

  transform: translateY(-50%);

  background: var(--ivory);
  border-radius: 50%;

  box-shadow: 0 0 9px rgba(244,241,235,0.35);
}

/* Small branches connecting nodes to text */

.nexus-menu-links a::after {
  content: "";

  position: absolute;
  left: 13px;
  top: 50%;

  width: 19px;
  height: 1px;

  background: rgba(244,241,235,0.45);
}

/* Reveal nodes and links */

.nexus-menu.is-open .nexus-menu-links a {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* Fast staggered appearance */

.nexus-menu.is-open .nexus-menu-links a:nth-child(1) {
  transition-delay: 0.07s;
}

.nexus-menu.is-open .nexus-menu-links a:nth-child(2) {
  transition-delay: 0.13s;
}

.nexus-menu.is-open .nexus-menu-links a:nth-child(3) {
  transition-delay: 0.19s;
}

.nexus-menu.is-open .nexus-menu-links a:nth-child(4) {
  transition-delay: 0.25s;
}

/* Link hover */

.nexus-menu-links a:hover,
.nexus-menu-links a:focus-visible {
  background: rgba(244,241,235,0.1);
}

.nexus-menu-links a:hover::before {
  box-shadow: 0 0 16px rgba(244,241,235,0.9);
}

/* Mobile */

@media (max-width: 767px) {
  .nexus-trigger {
    width: 47px;
    height: 47px;
  }

  .nexus-trigger svg {
    width: 29px;
    height: 29px;
  }

  .nexus-dropdown {
    width: min(260px, calc(100vw - 30px));
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .nexus-dropdown,
  .nexus-menu-links::before,
  .nexus-menu-links a,
  .nexus-trigger svg {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

/* KARAM NEXUS — ANIMATED LOGO SIZE */

.nav-logo .logo-video {
  width: 160px;
  height: 90px;
  max-width: none;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  background: transparent;
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-logo .logo-video {
    width: 125px;
    height: 75px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-logo .logo-video {
    width: 105px;
    height: 65px;
  }
}

/* ========================================
   KARAM NEXUS — STATIC HEADER LOGO
======================================== */

.nav-logo .logo-static {
  width: 78px;
  height: auto;
  max-width: none;
  object-fit: contain;
  flex-shrink: 0;
}

/* Tablet */
@media (max-width: 1024px) {
  .nav-logo .logo-static {
    width: 68px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav-logo .logo-static {
    width: 55px;
  }
}

/* FIX HEADER LOGO ALIGNMENT */

.nav-logo {
  display: flex;
  align-items: center;
  gap: 20px;
  transform: translateY(9px);
}

.nav-logo .logo-static {
  display: block;
  position: static;
  width: 78px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.nav-logo .logo-wordmark {
  position: static;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

/* MOBILE */
@media (max-width: 767px) {
  .nav-logo {
    gap: 12px;
    transform: translateY(5px);
  }

  .nav-logo .logo-static {
    width: 55px;
  }
}

/* ========================================
   KARAM NEXUS — LOGO ENTRANCE ANIMATION
======================================== */

/* Hide logo initially when JavaScript is enabled */

.js-enabled .nav-logo .logo-static {
  opacity: 0;

  animation: nexusLogoReveal 1s
    cubic-bezier(0.22, 1, 0.36, 1)
    0.1s both;
}

/* Premium Nexus logo reveal */

@keyframes nexusLogoReveal {

  0% {
    opacity: 0;
    transform: scale(0.75) rotate(-5deg);
    filter: blur(7px)
      drop-shadow(0 0 0 transparent);
  }

  55% {
    opacity: 1;
    transform: scale(1.07) rotate(0deg);
    filter: blur(0)
      drop-shadow(0 0 14px rgba(244, 241, 235, 0.5));
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0)
      drop-shadow(0 0 0 transparent);
  }

}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

  .js-enabled .nav-logo .logo-static {
    opacity: 1;
    animation: none;
  }

}

/* ========================================
   KARAM NEXUS — ELEGANT WORDMARK REVEAL
======================================== */

/* KARAM and NEXUS reveal as complete words */

.js-enabled .nav-logo .logo-name,
.js-enabled .nav-logo .logo-subname {
  display: block;
  visibility: visible;
  opacity: 0;

  animation: elegantWordReveal 1.1s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

/* KARAM appears first */

.js-enabled .nav-logo .logo-name {
  animation-delay: 0.5s;
}

/* NEXUS follows */

.js-enabled .nav-logo .logo-subname {
  animation-delay: 1.05s;
}

/* Cinematic lettering entrance */

@keyframes elegantWordReveal {

  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
    clip-path: inset(0 0 100% 0);
  }

  60% {
    opacity: 0.85;
    filter: blur(1px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
  }

}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

  .js-enabled .nav-logo .logo-name,
  .js-enabled .nav-logo .logo-subname {
    opacity: 1;
    animation: none;
    filter: none;
    clip-path: none;
  }

}

/* =========================================
   KARAM NEXUS — UNIVERSAL ADAPTIVE HEADER
========================================= */

/* Fixed transparent header */

.site-header,
.site-header.scrolled,
body.about-page .site-header,
body.about-page .site-header.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  box-shadow: none;

  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Default: ivory elements over dark backgrounds */

.site-header {
  --header-color: #F4F1EB;
}

/* Switch to navy over light backgrounds */

.site-header.header-on-light {
  --header-color: #102640;
}

/* =========================================
   ADAPTIVE KN SYMBOL
========================================= */

.nav-logo .adaptive-logo {
  position: relative;
  display: block;

  width: 78px;
  height: 78px;

  flex-shrink: 0;
}

/* Both logos occupy the same position */

.adaptive-logo img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: contain;

  transition: opacity 0.45s ease;
}

/* Default: ivory logo visible */

.adaptive-logo-light {
  opacity: 1;
}

.adaptive-logo-dark {
  opacity: 0;
}

/* On light sections: navy logo visible */

.site-header.header-on-light .adaptive-logo-light {
  opacity: 0;
}

.site-header.header-on-light .adaptive-logo-dark {
  opacity: 1;
}

/* =========================================
   ADAPTIVE KARAM NEXUS LETTERING
========================================= */

.site-header .logo-wordmark {
  color: var(--header-color);

  transition: color 0.45s ease;
}

/* =========================================
   ADAPTIVE NEXUS MENU ICON
========================================= */

.site-header .nexus-trigger {
  color: var(--header-color);
  border-color: currentColor;
  background: transparent;

  transition:
    color 0.45s ease,
    border-color 0.45s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.site-header .nexus-menu.is-open .nexus-trigger {
  border-color: var(--header-color);
  background: rgba(128, 128, 128, 0.12);
}

/* The dropdown stays navy regardless of section */

.site-header .nexus-dropdown {
  color: #F4F1EB;
  background: rgba(7, 24, 41, 0.97);
}

/* =========================================
   RESPONSIVE LOGO SIZES
========================================= */

@media (max-width: 1024px) {
  .nav-logo .adaptive-logo {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 767px) {
  .nav-logo .adaptive-logo {
    width: 55px;
    height: 55px;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

.site-header.header-on-light a:focus-visible,
.site-header.header-on-light button:focus-visible {
  outline-color: #102640;
}

@media (prefers-reduced-motion: reduce) {
  .adaptive-logo img,
  .site-header .logo-wordmark,
  .site-header .nexus-trigger {
    transition: none;
  }
}

/* ==========================================
   KARAM NEXUS — DIGITAL GLITCH MENU REVEAL
========================================== */

/* PANEL */

.nexus-dropdown {
  overflow: hidden;
  isolation: isolate;
  transform-origin: top right;
}

/* One-time digital materialization */

.nexus-menu.is-open .nexus-dropdown {
  animation: nexusDigitalOpen 0.55s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

@keyframes nexusDigitalOpen {

  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    clip-path: inset(0 0 100% 0);
    filter: brightness(1.4);
  }

  22% {
    opacity: 0.65;
    transform: translateX(3px) translateY(-5px);
    clip-path: inset(0 0 58% 0);
  }

  33% {
    opacity: 0.85;
    transform: translateX(-2px) translateY(0);
    clip-path: inset(0 0 35% 0);
  }

  48% {
    opacity: 1;
    transform: translateX(1px);
    clip-path: inset(0 0 8% 0);
    filter: brightness(1.15);
  }

  70% {
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
    filter: brightness(1);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0 0);
    filter: brightness(1);
  }
}

/* ==========================================
   DIGITAL SCAN LINE
========================================== */

.nexus-dropdown::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;
  right: 0;

  height: 75px;

  background: linear-gradient(
    to bottom,
    transparent,
    rgba(129, 190, 229, 0.04),
    rgba(173, 222, 255, 0.20),
    transparent
  );

  border-bottom: 1px solid
    rgba(173, 222, 255, 0.4);

  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.nexus-menu.is-open .nexus-dropdown::before {
  animation: nexusScan 0.7s ease-out
    0.05s both;
}

@keyframes nexusScan {

  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  25% {
    opacity: 0.9;
  }

  75% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: translateY(450%);
  }
}

/* ==========================================
   DIGITAL EDGE FLICKER
========================================== */

.nexus-dropdown::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  box-shadow:
    inset 2px 0 0 rgba(85, 190, 255, 0.5),
    inset -2px 0 0 rgba(244, 241, 235, 0.4);

  opacity: 0;
  pointer-events: none;
  z-index: 4;
}

.nexus-menu.is-open .nexus-dropdown::after {
  animation: nexusEdgeFlash 0.5s
    step-end both;
}

@keyframes nexusEdgeFlash {

  0%, 18%, 38%, 100% {
    opacity: 0;
  }

  12%, 28% {
    opacity: 0.8;
  }

  45% {
    opacity: 0.25;
  }
}

/* ==========================================
   NETWORK LINKS — STAGGERED CONNECTIONS
========================================== */

.nexus-menu.is-open .nexus-menu-links a {
  animation: nexusLinkReveal 0.38s
    cubic-bezier(0.22, 1, 0.36, 1)
    both;
}

/* Fast sequential reveal */

.nexus-menu.is-open
.nexus-menu-links a:nth-child(1) {
  animation-delay: 0.16s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(2) {
  animation-delay: 0.23s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(3) {
  animation-delay: 0.30s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(4) {
  animation-delay: 0.37s;
}

/* Each link resolves from distortion */

@keyframes nexusLinkReveal {

  0% {
    opacity: 0;
    transform: translateX(-14px);
    filter: blur(4px);
  }

  45% {
    opacity: 0.7;
    transform: translateX(2px);
    filter: blur(1px);
  }

  65% {
    opacity: 1;
    transform: translateX(-1px);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* ==========================================
   CONNECTION NODES — BRIEF LIGHT PULSE
========================================== */

.nexus-menu.is-open
.nexus-menu-links a::before {
  animation: nexusNodeActivate 0.45s
    ease-out both;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(1)::before {
  animation-delay: 0.18s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(2)::before {
  animation-delay: 0.25s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(3)::before {
  animation-delay: 0.32s;
}

.nexus-menu.is-open
.nexus-menu-links a:nth-child(4)::before {
  animation-delay: 0.39s;
}

@keyframes nexusNodeActivate {

  0% {
    opacity: 0;
    box-shadow: 0 0 0 transparent;
  }

  45% {
    opacity: 1;
    box-shadow:
      0 0 13px rgba(175, 224, 255, 0.95),
      0 0 24px rgba(100, 183, 245, 0.4);
  }

  100% {
    opacity: 1;
    box-shadow:
      0 0 7px rgba(244, 241, 235, 0.35);
  }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  .nexus-menu.is-open .nexus-dropdown,
  .nexus-menu.is-open .nexus-dropdown::before,
  .nexus-menu.is-open .nexus-dropdown::after,
  .nexus-menu.is-open .nexus-menu-links a,
  .nexus-menu.is-open .nexus-menu-links a::before {
    animation: none !important;
  }

  .nexus-menu.is-open .nexus-menu-links a {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ========================================
   KARAM NEXUS — CONNECTION TRAIL CURSOR
======================================== */

/* Custom cursor overlay */

.nexus-cursor-trail {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;

  z-index: 2147483647;
  pointer-events: none;

  mix-blend-mode: difference;

  opacity: 0;
  transition: opacity 0.2s ease;
}

.nexus-cursor-trail.is-visible {
  opacity: 1;
}

/* Hide default mouse pointer only
   after custom cursor is initialized */

@media (hover: hover) and (pointer: fine) {

  html.nexus-cursor-ready,
  html.nexus-cursor-ready body,
  html.nexus-cursor-ready a,
  html.nexus-cursor-ready button {
    cursor: none;
  }

}

/* Keep normal cursors on touch devices
   and for reduced motion preferences */

@media (hover: none), (pointer: coarse),
       (prefers-reduced-motion: reduce) {

  .nexus-cursor-trail {
    display: none !important;
  }

}

/* REMOVE EXTRA MOBILE HAMBURGER */

@media (max-width: 767px) {
  .menu-toggle {
    display: none !important;
  }

  /* Keep the Nexus navigation icon */
  .nexus-trigger {
    display: flex !important;
  }
}

/* ==========================================
   KARAM NEXUS — HOMEPAGE EXPERIENCE
========================================== */

:root {
  --kn-ivory: #F4F1EB;
  --kn-navy: #102640;
  --kn-black: #000000;
}

/* Shared homepage layout */

.kn-home-container {
  width: min(1240px, calc(100% - 100px));
  margin-inline: auto;
}

.kn-home-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.kn-home-intro,
.kn-home-ecosystem,
.kn-home-worlds,
.kn-home-final {
  position: relative;
  box-sizing: border-box;
}

.kn-home-intro *,
.kn-home-ecosystem *,
.kn-home-worlds *,
.kn-home-final * {
  box-sizing: border-box;
}

/* ==========================================
   01 — IVORY INTRODUCTION
========================================== */

.kn-home-intro {
  background: #F4F1EB;
  color: #102640;
  padding: 160px 0 170px;
}

.kn-home-intro-layout {
  display: grid;
  grid-template-columns: 0.38fr 1fr;
  gap: 80px;
}

.kn-home-intro-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;

  padding-top: 15px;
}

.kn-home-intro-label .kn-home-eyebrow {
  color: #64758A;
}

.kn-home-vertical-line {
  display: block;
  width: 1px;
  height: 105px;
  background: rgba(16,38,64,0.3);
}

.kn-home-intro-index {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #78889A;
}

.kn-home-intro-content h2 {
  font-size: clamp(48px, 5.8vw, 86px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.kn-home-intro-content h2 span {
  font-weight: 500;
}

.kn-home-intro-content p {
  max-width: 660px;
  margin-top: 30px;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.95;
  color: #52657A;
}

.kn-home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 45px;

  margin-top: 42px;
  padding-bottom: 13px;

  border-bottom: 1px solid #102640;

  color: #102640;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.kn-home-text-link span {
  font-size: 20px;
  transition: transform 0.35s ease;
}

.kn-home-text-link:hover span {
  transform: translate(4px, -4px);
}

/* ==========================================
   02 — INTERACTIVE NEXUS SECTION
========================================== */

.kn-home-ecosystem {
  padding: 145px 0 105px;

  color: #F4F1EB;

  background:
    radial-gradient(
      ellipse at 45% 53%,
      rgba(50,86,119,0.38),
      transparent 60%
    ),
    #102640;

  overflow: hidden;
}

/* Subtle technological grid */

.kn-home-ecosystem::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    linear-gradient(
      rgba(244,241,235,0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(244,241,235,0.025) 1px,
      transparent 1px
    );

  background-size: 85px 85px;
  pointer-events: none;
}

.kn-home-ecosystem > .kn-home-container {
  position: relative;
  z-index: 1;
}

/* Section heading */

.kn-home-section-heading {
  max-width: 800px;
}

.kn-home-section-heading .kn-home-eyebrow {
  color: #B9C5D1;
}

.kn-home-section-heading h2 {
  margin-top: 28px;

  font-size: clamp(55px, 7vw, 105px);
  font-weight: 300;
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.kn-home-section-heading h2 span {
  font-weight: 500;
}

.kn-home-section-heading > p:last-child {
  max-width: 550px;
  margin-top: 27px;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: #B9C5D1;
}

/* Network + summary panel */

.kn-home-ecosystem-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.6fr)
    minmax(280px, 0.8fr);

  align-items: center;
  gap: 45px;

  margin-top: 100px;
}

/* ==========================================
   NEXUS NETWORK DIAGRAM
========================================== */

.kn-home-network {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  isolation: isolate;
}

/* Connection lines */

.kn-home-network-lines {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: visible;
  pointer-events: none;
}

.kn-home-network-lines path {
  fill: none;
  stroke: rgba(244,241,235,0.45);
  stroke-width: 1.6;
  stroke-dasharray: 3 11;

  animation: knHomeSignal 8s linear infinite;

  transition:
    stroke 0.4s ease,
    stroke-width 0.4s ease;
}

@keyframes knHomeSignal {
  to {
    stroke-dashoffset: -84;
  }
}

/* Selected connection */

.kn-home-network[data-active="hotels"]
[data-line="hotels"],

.kn-home-network[data-active="travel"]
[data-line="travel"],

.kn-home-network[data-active="aviation"]
[data-line="aviation"],

.kn-home-network[data-active="restaurant"]
[data-line="restaurant"],

.kn-home-network[data-active="pilgrimage"]
[data-line="pilgrimage"],

.kn-home-network[data-active="cargo"]
[data-line="cargo"] {
  stroke: #FFFFFF;
  stroke-width: 2.8;
  stroke-dasharray: 12 9;

  filter: drop-shadow(
    0 0 5px rgba(255,255,255,0.65)
  );

  animation: knHomeActiveSignal 2.1s linear infinite;
}

@keyframes knHomeActiveSignal {
  to {
    stroke-dashoffset: -84;
  }
}

/* ==========================================
   CENTRAL NEXUS CORE
========================================== */

.kn-home-network-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: clamp(100px, 12vw, 150px);
  aspect-ratio: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  background: #000000;
  border: 1px solid rgba(244,241,235,0.8);
  border-radius: 50%;

  z-index: 3;

  box-shadow:
    0 0 35px rgba(244,241,235,0.08);
}

.kn-home-network-core img {
  width: 43%;
  height: 43%;
  object-fit: contain;
}

.kn-home-network-core > span {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

/* Rotating orbit */

.kn-home-network-core::before {
  content: "";
  position: absolute;
  inset: -13px;

  border: 1px dashed
    rgba(244,241,235,0.32);
  border-radius: 50%;

  animation: knHomeOrbit 24s linear infinite;
  pointer-events: none;
}

@keyframes knHomeOrbit {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================
   SIX INTERACTIVE NODES
========================================== */

.kn-home-network-node {
  position: absolute;
  z-index: 4;

  width: clamp(90px, 17%, 132px);
  min-height: 53px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px 8px;

  transform: translate(-50%, -50%);

  background: #000000;
  color: #F4F1EB;

  border: 1px solid rgba(244,241,235,0.5);
  border-radius: 8px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;

  cursor: pointer;

  transition:
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    background 0.3s ease;
}

/* Positions match SVG paths */

.kn-home-node-hotels {
  left: 30%;
  top: 20.833%;
}

.kn-home-node-travel {
  left: 70%;
  top: 20.833%;
}

.kn-home-node-aviation {
  left: 85%;
  top: 50%;
}

.kn-home-node-restaurant {
  left: 70%;
  top: 79.167%;
}

.kn-home-node-pilgrimage {
  left: 30%;
  top: 79.167%;
}

.kn-home-node-cargo {
  left: 15%;
  top: 50%;
}

/* Node interaction */

.kn-home-network-node:hover,
.kn-home-network-node:focus-visible {
  border-color: #FFFFFF;

  box-shadow:
    0 0 19px rgba(255,255,255,0.2);
}

.kn-home-network-node.is-active {
  border-color: #FFFFFF;

  box-shadow:
    0 0 15px rgba(255,255,255,0.18),
    inset 0 0 10px rgba(255,255,255,0.04);
}

.kn-home-network-node:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 4px;
}

/* ==========================================
   DYNAMIC INFORMATION PANEL
========================================== */

.kn-home-network-detail {
  min-width: 0;
  min-height: 360px;

  display: flex;
  flex-direction: column;

  padding: 38px 34px;

  background: rgba(0,0,0,0.72);

  border: 1px solid rgba(244,241,235,0.23);
  border-radius: 12px;

  box-shadow:
    0 25px 60px rgba(0,0,0,0.12);
}

.kn-home-detail-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #B9C5D1;
}

.kn-home-detail-index {
  margin-top: 35px;

  font-size: 12px;
  letter-spacing: 0.2em;
  color: #A5B8C9;
}

.kn-home-network-detail h3 {
  margin-top: 18px;

  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.kn-home-network-detail > p:not(
  .kn-home-detail-eyebrow
) {
  margin-top: 18px;

  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: #C1CEDA;
}

.kn-home-explore-division {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  align-self: flex-start;

  margin-top: 30px;
  padding-bottom: 11px;

  border-bottom: 1px solid #F4F1EB;

  color: #F4F1EB;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.kn-home-explore-division span {
  font-size: 19px;
  transition: transform 0.3s ease;
}

.kn-home-explore-division:hover span {
  transform: translate(3px,-3px);
}

.kn-home-detail-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-top: auto;
  padding-top: 30px;

  font-size: 9px;
  letter-spacing: 0.16em;
  color: #93A8BB;
}

.kn-home-detail-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: #F4F1EB;
  box-shadow: 0 0 10px #F4F1EB;
}

/* Section bottom navigation */

.kn-home-network-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-top: 90px;
  padding-top: 28px;

  border-top: 1px solid rgba(244,241,235,0.2);
}

.kn-home-network-footer > span {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #AABBCB;
}

.kn-home-network-footer a {
  display: inline-flex;
  align-items: center;
  gap: 17px;

  color: #F4F1EB;
  text-decoration: none;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* ==========================================
   03 — FEATURED WORLDS
========================================== */

.kn-home-worlds {
  padding: 145px 0 155px;
  background: #F4F1EB;
  color: #102640;
}

.kn-home-worlds-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 55px;
}

.kn-home-worlds-heading .kn-home-eyebrow {
  color: #64758A;
}

.kn-home-worlds-heading h2 {
  margin-top: 27px;

  font-size: clamp(50px, 6.2vw, 90px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.kn-home-worlds-heading h2 span {
  font-weight: 500;
}

.kn-home-worlds-heading > p {
  max-width: 310px;

  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: #52657A;
}

/* Editorial photo grid */

.kn-home-feature-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;

  margin-top: 65px;
}

.kn-home-feature {
  position: relative;
  display: block;

  min-width: 0;
  height: 510px;

  overflow: hidden;
  border-radius: 9px;

  background: #102640;
  color: #FFFFFF;
  text-decoration: none;

  isolation: isolate;
}

.kn-home-feature img {
  display: block;
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform 0.9s cubic-bezier(0.22,1,0.36,1);
}

.kn-home-feature:hover img {
  transform: scale(1.055);
}

.kn-home-feature-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 34px;

  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.4),
    transparent 45%,
    rgba(0,0,0,0.8)
  );
}

.kn-home-feature-overlay > span {
  font-size: 11px;
  letter-spacing: 0.19em;
}

.kn-home-feature-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
}

.kn-home-feature-bottom h3 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

.kn-home-feature-bottom > span {
  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 48px;
  height: 48px;

  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 50%;

  font-size: 23px;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.kn-home-feature:hover
.kn-home-feature-bottom > span {
  background: #F4F1EB;
  color: #102640;
  transform: rotate(45deg);
}

/* ==========================================
   04 — BLACK CLOSING STATEMENT
========================================== */

.kn-home-final {
  padding: 165px 0 75px;

  background:
    radial-gradient(
      ellipse at 85% 38%,
      rgba(16,38,64,0.38),
      transparent 50%
    ),
    #000000;

  color: #F4F1EB;
}

.kn-home-final .kn-home-eyebrow {
  color: #B9C5D1;
}

.kn-home-final h2 {
  margin-top: 33px;

  font-size: clamp(55px, 7.6vw, 112px);
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -0.065em;
}

.kn-home-final h2 span {
  font-weight: 500;
}

.kn-home-final > .kn-home-container > p:not(
  .kn-home-eyebrow
) {
  max-width: 600px;
  margin-top: 34px;

  font-size: 17px;
  font-weight: 300;
  line-height: 1.85;
  color: #B9C5D1;
}

.kn-home-final-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;

  margin-top: 45px;
}

.kn-home-final-primary,
.kn-home-final-secondary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 38px;

  padding: 18px 23px;
  border-radius: 3px;

  font-size: 12px;
  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.kn-home-final-primary {
  background: #F4F1EB;
  border: 1px solid #F4F1EB;
  color: #102640;
}

.kn-home-final-secondary {
  border: 1px solid rgba(244,241,235,0.6);
  color: #F4F1EB;
}

.kn-home-final-primary:hover {
  background: transparent;
  color: #F4F1EB;
  transform: translateY(-3px);
}

.kn-home-final-secondary:hover {
  background: #F4F1EB;
  color: #102640;
  transform: translateY(-3px);
}

.kn-home-final-signature {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-top: 150px;
  padding-top: 25px;

  border-top: 1px solid rgba(244,241,235,0.18);

  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.kn-home-final-signature span {
  font-size: 10px;
  color: #AABBCB;
}

/* ==========================================
   RESPONSIVE — TABLET
========================================== */

@media (max-width: 1100px) {

  .kn-home-container {
    width: calc(100% - 64px);
  }

  .kn-home-intro-layout {
    gap: 40px;
  }

  .kn-home-ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .kn-home-network {
    max-width: 740px;
    margin-inline: auto;
  }

  .kn-home-network-detail {
    width: 100%;
    max-width: 740px;
    min-height: 0;
    margin-inline: auto;
  }

  .kn-home-feature {
    height: 430px;
  }

}

/* ==========================================
   RESPONSIVE — MOBILE
========================================== */

@media (max-width: 767px) {

  .kn-home-container {
    width: calc(100% - 40px);
  }

  /* Introduction */

  .kn-home-intro {
    padding: 90px 0 100px;
  }

  .kn-home-intro-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .kn-home-intro-label {
    gap: 15px;
    padding-top: 0;
  }

  .kn-home-vertical-line {
    height: 35px;
  }

  .kn-home-intro-content h2 {
    font-size: clamp(42px, 9vw, 65px);
  }

  .kn-home-intro-content p {
    font-size: 15px;
  }

  /* Ecosystem */

  .kn-home-ecosystem {
    padding: 90px 0 80px;
  }

  .kn-home-section-heading h2 {
    font-size: clamp(46px, 10vw, 68px);
  }

  .kn-home-section-heading > p:last-child {
    font-size: 15px;
  }

  .kn-home-ecosystem-layout {
    gap: 45px;
    margin-top: 65px;
  }

  /* Preserve radial network on phones */

  .kn-home-network {
    height: clamp(355px, 105vw, 480px);
    aspect-ratio: auto;
  }

  .kn-home-network-core {
    width: clamp(84px, 25vw, 112px);
  }

  .kn-home-network-core > span {
    font-size: 6px;
  }

  .kn-home-network-node {
    width: 32%;
    min-height: 49px;

    padding: 8px 4px;

    font-size: clamp(9px, 2.5vw, 12px);
    border-radius: 7px;
  }

  .kn-home-node-aviation,
  .kn-home-node-cargo {
    width: 26%;
  }

  .kn-home-network-detail {
    padding: 30px 25px;
  }

  .kn-home-network-detail h3 {
    font-size: 32px;
  }

  .kn-home-network-footer {
    margin-top: 60px;
  }

  .kn-home-network-footer > span {
    display: none;
  }

  /* Featured experiences */

  .kn-home-worlds {
    padding: 90px 0 100px;
  }

  .kn-home-worlds-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }

  .kn-home-worlds-heading h2 {
    font-size: clamp(44px, 9vw, 67px);
  }

  .kn-home-feature-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 45px;
  }

  .kn-home-feature {
    height: 390px;
  }

  .kn-home-feature-overlay {
    padding: 25px;
  }

  /* Closing */

  .kn-home-final {
    padding: 105px 0 50px;
  }

  .kn-home-final h2 {
    font-size: clamp(47px, 9.6vw, 72px);
  }

  .kn-home-final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kn-home-final-primary,
  .kn-home-final-secondary {
    width: 100%;
  }

  .kn-home-final-signature {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 100px;
  }

}

/* ==========================================
   ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {

  .kn-home-network-lines path,
  .kn-home-network-core::before {
    animation: none !important;
  }

  .kn-home-network-node,
  .kn-home-feature img,
  .kn-home-feature-bottom > span,
  .kn-home-final-primary,
  .kn-home-final-secondary {
    transition: none !important;
  }

}

/* ========================================
   HOMEPAGE — HEADER STAYS AT PAGE TOP
======================================== */

body.home-page .site-header,
body.home-page .site-header.scrolled {
  position: absolute !important;

  top: 0 !important;
  left: 0 !important;
  right: 0 !important;

  width: 100%;
  z-index: 9999;

  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;

  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;

  --header-color: #F4F1EB;
}

/* Keep the light KN logo visible */

body.home-page .adaptive-logo-light {
  opacity: 1 !important;
  visibility: visible !important;
}

body.home-page .adaptive-logo-dark {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ==========================================
   KARAM NEXUS — GLOBAL DESCRIPTION TEXT
   Applies across all pages
========================================== */

body section p:not([class*="eyebrow"])
              :not([class*="label"])
              :not([class*="index"])
              :not([class*="instruction"])
              :not([class*="caption"])
              :not([class*="meta"]) {
  font-size: 19px !important;
  line-height: 1.85 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  body section p:not([class*="eyebrow"])
                :not([class*="label"])
                :not([class*="index"])
                :not([class*="instruction"])
                :not([class*="caption"])
                :not([class*="meta"]) {
    font-size: 18px !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body section p:not([class*="eyebrow"])
                :not([class*="label"])
                :not([class*="index"])
                :not([class*="instruction"])
                :not([class*="caption"])
                :not([class*="meta"]) {
    font-size: 17px !important;
    line-height: 1.8 !important;
  }
}

/* ==========================================
   KARAM NEXUS — HOMEPAGE CORPORATE FOOTER
========================================== */

/* Replace old closing signature with footer */

body.home-page .kn-home-final-signature {
  display: none;
}

/* FOOTER BACKGROUND */

body.home-page .business-footer {
  position: relative;
  z-index: 2;

  width: 100%;
  padding: 85px 0 25px;

  background: #000000;
  color: #F4F1EB;

  font-family: "DM Sans", Arial, sans-serif;
}

/* CONTAINER */

body.home-page .business-footer .business-container {
  width: min(1300px, calc(100% - 100px));
  max-width: none;
  margin: 0 auto;
}

/* MAIN LAYOUT */

body.home-page .business-footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 60px;
  padding-bottom: 85px;
}

/* BRAND */

body.home-page .business-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* LOGO ROW */

body.home-page .business-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  color: #F4F1EB;
  text-decoration: none;
}

body.home-page .business-footer-logo img {
  display: block;
  width: 62px;
  height: 62px;

  object-fit: contain;

  transition: transform 0.4s ease;
}

body.home-page .business-footer-logo:hover img {
  transform: scale(1.07);
}

/* KARAM NEXUS WORDMARK */

body.home-page .business-footer .footer-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

body.home-page .footer-wordmark > span {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1.2;

  color: #F4F1EB;
}

body.home-page .footer-wordmark > small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.56em;
  line-height: 1.3;

  color: #C0CEDB;
}

/* TAGLINE */

body.home-page .business-footer-brand > p {
  margin: 24px 0 0;

  font-size: 16px !important;
  font-weight: 300;
  line-height: 1.7;

  color: #AABBCB;
}

/* ==========================================
   NAVIGATION
========================================== */

body.home-page .business-footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
}

body.home-page .business-footer-links a {
  position: relative;
  display: inline-block;

  padding-bottom: 5px;

  color: #D6E0E9;
  text-decoration: none;

  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* LINK HOVER ANIMATION */

body.home-page .business-footer-links a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;

  background: #F4F1EB;

  transition: width 0.35s ease;
}

body.home-page .business-footer-links a:hover {
  color: #FFFFFF;
  transform: translateX(5px);
}

body.home-page .business-footer-links a:hover::after {
  width: 100%;
}

/* ==========================================
   COPYRIGHT
========================================== */

body.home-page .business-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 25px;

  border-top: 1px solid rgba(244,241,235,0.18);
}

body.home-page .business-footer-bottom span {
  color: #95A7B7;

  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

  body.home-page .business-footer .business-container {
    width: calc(100% - 64px);
  }

  body.home-page .business-footer-main {
    gap: 45px;
  }

}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

  body.home-page .business-footer {
    padding: 65px 0 25px;
  }

  body.home-page .business-footer .business-container {
    width: calc(100% - 40px);
  }

  body.home-page .business-footer-main {
    flex-direction: column;
    align-items: flex-start;

    gap: 55px;
    padding-bottom: 65px;
  }

  body.home-page .business-footer-logo img {
    width: 52px;
    height: 52px;
  }

  body.home-page .footer-wordmark > span {
    font-size: 19px;
  }

  body.home-page .footer-wordmark > small {
    font-size: 10px;
  }

  body.home-page .business-footer-brand > p {
    font-size: 15px !important;
  }

  body.home-page .business-footer-links {
    gap: 22px;
  }

  body.home-page .business-footer-links a {
    font-size: 15px;
  }

  body.home-page .business-footer-bottom {
    padding-top: 22px;
  }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  body.home-page .business-footer *,
  body.home-page .business-footer *::after {
    animation: none !important;
    transition: none !important;
  }

}

/* ==========================================
   KARAM NEXUS — CIRCUIT SCROLL SYSTEM
   SHARED ACROSS ALL PAGES
========================================== */

/* Main circuit canvas */

#knScrollCircuit {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 1px;

  z-index: 20;
  pointer-events: none;
  overflow: visible;
}

/* Faint circuit route */

.kn-circuit-track {
  fill: none;

  stroke: rgba(120, 170, 210, 0.22);
  stroke-width: 1.3;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;
}

/* Illuminated route following scroll */

.kn-circuit-progress {
  fill: none;

  stroke: #B7DFFF;
  stroke-width: 2;

  stroke-linecap: round;
  stroke-linejoin: round;

  vector-effect: non-scaling-stroke;

  filter: drop-shadow(
    0 0 5px rgba(95, 185, 255, 0.7)
  );
}

/* Heading connection points */

.kn-circuit-node {
  fill: #102640;
  stroke: #89BBDD;
  stroke-width: 1.5;

  opacity: 0.5;

  transition:
    opacity 0.4s ease,
    fill 0.4s ease,
    filter 0.4s ease;
}

/* Activated heading connection */

.kn-circuit-node.is-active {
  fill: #F4F1EB;
  stroke: #B7DFFF;

  opacity: 1;

  filter: drop-shadow(
    0 0 7px rgba(130, 200, 255, 0.9)
  );
}

/* Pulse at activated connection */

.kn-circuit-pulse {
  fill: none;
  stroke: #A5D7FF;
  stroke-width: 1.5;

  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.kn-circuit-pulse.is-active {
  animation: knCircuitPulse 1s ease-out both;
}

@keyframes knCircuitPulse {
  0% {
    opacity: 0.9;
    transform: scale(0.5);
  }

  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* Mobile: softer visual presence */

@media (max-width: 767px) {
  #knScrollCircuit {
    opacity: 0.7;
  }

  .kn-circuit-progress {
    stroke-width: 1.5;
  }

  .kn-circuit-track {
    stroke-width: 1;
  }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
  .kn-circuit-node,
  .kn-circuit-pulse {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================
   KARAM NEXUS — ADAPTIVE CIRCUIT COLORS
========================================== */

/* Circuit changes color using SVG gradient */

#knScrollCircuit .kn-circuit-track {
  stroke: url(#knCircuitTheme) !important;
  stroke-width: 1.4;
  opacity: 0.3;
}

#knScrollCircuit .kn-circuit-progress {
  stroke: url(#knCircuitTheme) !important;
  stroke-width: 2.3;

  filter: drop-shadow(
    0 0 3px rgba(120, 190, 245, 0.3)
  );
}

/* Light blue connection points */

#knScrollCircuit .kn-circuit-node {
  fill: #A8DDFF;
  stroke: #102640;
  stroke-width: 1.5;
  opacity: 0.75;
}

/* Active glowing circle */

#knScrollCircuit .kn-circuit-node.is-active {
  fill: #BDE8FF;
  stroke: #FFFFFF;
  stroke-width: 2;
  opacity: 1;

  filter: drop-shadow(
    0 0 7px rgba(105, 190, 255, 0.85)
  );
}

/* Light blue activation pulse */

#knScrollCircuit .kn-circuit-pulse {
  stroke: #A8DDFF;
  stroke-width: 2;
}

@media (max-width: 767px) {
  #knScrollCircuit .kn-circuit-progress {
    stroke-width: 1.8;
  }
}

/* ==========================================
   KARAM NEXUS — SCROLL-REVEALED CIRCUIT
========================================== */

/* Never show the complete route in advance */

#knScrollCircuit .kn-circuit-track {
  display: none !important;
}

/* Only the scroll-revealed circuit is visible */

#knScrollCircuit .kn-circuit-progress {
  stroke: url(#knCircuitTheme) !important;
  stroke-width: 1.35 !important;
  opacity: 0.65 !important;
  filter: none !important;

  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hide heading circles until reached */

#knScrollCircuit .kn-circuit-node {
  opacity: 0 !important;
}

/* Activate light-blue connection points */

#knScrollCircuit .kn-circuit-node.is-active {
  opacity: 1 !important;
  fill: #A8DDFF !important;
  stroke: #BDE8FF !important;
  stroke-width: 1.5 !important;

  filter: drop-shadow(
    0 0 5px rgba(100, 190, 255, 0.6)
  );
}

/* Smaller, softer connection pulse */

#knScrollCircuit .kn-circuit-pulse {
  stroke: #A8DDFF;
  stroke-width: 1.2;
}

/* Mobile */

@media (max-width: 767px) {
  #knScrollCircuit .kn-circuit-progress {
    stroke-width: 1.1 !important;
    opacity: 0.6 !important;
  }
}

/* ==========================================
   HOMEPAGE — FULL WIDTH INTRODUCTION
========================================== */

body.home-page .kn-home-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.home-page .kn-home-intro-content {
  width: 100%;
  max-width: 1100px;
  margin: 0;
  padding: 0;
}

body.home-page .kn-home-intro-content h2 {
  margin-top: 0;
  text-align: left;
}

body.home-page .kn-home-intro-content p {
  max-width: 750px;
}

@media (max-width: 767px) {
  body.home-page .kn-home-intro-content {
    max-width: 100%;
  }
}
