/*
 * ============================================================
 *  ZENTU MEDIA — SHARED STYLESHEET
 *  Used by every page on the site.
 *  Page-specific styles live in <style> inside each HTML file.
 * ============================================================
 *
 *  TABLE OF CONTENTS
 *  -----------------
 *  1.  CSS Variables (brand tokens)
 *  2.  Reset & Base
 *  3.  Global Link Styles
 *  4.  Custom Cursor
 *  5.  Film Grain Overlay
 *  6.  Progress Bar
 *  7.  Navigation (desktop)
 *  8.  Mega Menu (Services dropdown)
 *  9.  Mobile Drawer Menu
 *  10. Page Hero (inner pages)
 *  11. Section Shared Styles
 *  12. CTA Strip
 *  13. Footer
 *  14. Utility Classes
 *  15. Responsive — must be last to win the cascade
 * ============================================================
 */


/* ============================================================
   1. CSS VARIABLES — edit brand tokens here
   ============================================================ */
:root {
  /* Colours */
  --bg:      #05080f;    /* Page background (near-black) */
  --surface: #0a0f1e;    /* Card / elevated surface */
  --cyan:    #00d4d4;    /* Brand accent */
  --white:   #f0f4ff;    /* Body text */
  --muted:   rgba(240, 244, 255, 0.45);  /* Secondary text */
  --border:  rgba(240, 244, 255, 0.08);  /* Subtle borders */

  /* Fonts */
  --fd: 'Bebas Neue', sans-serif;   /* Display / headings */
  --fs: 'Syne', sans-serif;         /* Sub-headings / labels / buttons */
  --fb: 'DM Sans', sans-serif;      /* Body copy */
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--fb);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none; /* Custom cursor replaces default — see section 4 */
}


/* ============================================================
   3. GLOBAL LINK STYLES
   ============================================================ */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

/* Inline links inside body copy get an underline treatment */
p a, li a, span a {
  color: rgba(0, 212, 212, 0.8);
  border-bottom: 1px solid rgba(0, 212, 212, 0.25);
  transition: color .25s, border-color .25s;
}
p a:hover, li a:hover, span a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* Email displayed as plain text (bypasses Cloudflare rewriting) */
.email-display { cursor: text; color: inherit; }
.footer-email-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  transition: color .3s;
  cursor: default;
}
.footer-email-wrap:hover { color: var(--cyan); }
.footer-email-wrap .email-display { cursor: text; }


/* ============================================================
   4. CUSTOM CURSOR
   Dot follows instantly, ring follows with slight lag.
   - Starts hidden (opacity:0), fades in on first mouse move
   - top:-5px left:-5px centers the elements at origin
     so GSAP's x/y transforms position them correctly
   - Hidden on touch devices (JS skips init entirely)
   ============================================================ */
.cursor-dot {
  width: 10px; height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  position: fixed;
  top: -5px; left: -5px;       /* offset by half size so x/y = cursor centre */
  pointer-events: none;
  z-index: 9999;
  opacity: 0;                   /* hidden until first mousemove */
  transition: width .25s, height .25s, background .25s, border .25s, opacity .3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 212, 212, 0.5);
  border-radius: 50%;
  position: fixed;
  top: -18px; left: -18px;     /* offset by half size */
  pointer-events: none;
  z-index: 9998;
  opacity: 0;                   /* hidden until first mousemove */
  transition: opacity .3s;
}

/* Expanded state when hovering interactive elements */
body.c-hover .cursor-dot {
  width: 40px; height: 40px;
  top: -20px; left: -20px;     /* re-center at new size */
  background: rgba(0, 212, 212, 0.15);
  border: 2px solid var(--cyan);
}
body.c-hover .cursor-ring { opacity: 0.3; }


/* ============================================================
   5. FILM GRAIN OVERLAY
   Subtle texture over the entire page.
   ============================================================ */
.grain {
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 1;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(2) infinite;
}
@keyframes grain {
  0%  { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -1%); }
  75% { transform: translate(-1%, 2%); }
}


/* ============================================================
   6. PROGRESS BAR
   Thin cyan line at the very top showing scroll progress.
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--cyan);
  z-index: 9997;
  width: 0%;
}


/* ============================================================
   7. NAVIGATION (desktop)
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding .4s, background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  padding: 16px 48px;
  background: rgba(5, 8, 15, 0.6);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(240, 244, 255, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Logo */
.nav-logo {
  font-family: var(--fd);
  font-size: 26px;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
}
.nav-logo span { color: var(--cyan); }

/* Nav link list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

/* Regular nav links (pill hover style) */
.nav-links > li > a {
  display: block;
  padding: 6px 14px;
  border-radius: 99px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .25s, background .25s;
  border-bottom: none !important;
  position: relative;
}
.nav-links > li > a::after { display: none; }
.nav-links > li > a:hover  { color: var(--bg); background: rgba(240, 244, 255, 0.9); }
.nav-links > li > a.active { color: var(--bg); background: var(--white); font-weight: 400; }

/* CTA button in nav */
.nav-cta {
  font-family: var(--fs);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--cyan);
  padding: 10px 22px;
  border-radius: 2px;
  text-decoration: none;
  border-bottom: none !important;
  transition: background .3s, transform .2s;
}
.nav-cta:hover { background: #00f0f0; color: var(--bg) !important; transform: translateY(-1px); }

/* Hamburger button (hidden on desktop — shown at ≤930px) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
/* Animated X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   8. MEGA MENU (Services dropdown)
   ============================================================ */
.nav-dropdown { position: relative; }

/* Trigger button (Services) */
.nav-dropdown-toggle {
  font-family: var(--fb);
  font-size: 13px; font-weight: 400;
  color: var(--muted); letter-spacing: .5px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 99px;
  position: relative; z-index: 1;
  transition: color .25s;
  white-space: nowrap;
}
.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle,
.nav-dropdown-toggle.active { color: var(--bg) !important; }

/* Pill background that animates in on hover */
.nav-pill-bg {
  position: absolute; inset: 0;
  background: rgba(240, 244, 255, 0.9);
  border-radius: 99px;
  opacity: 0;
  transition: opacity .2s;
  z-index: -1;
  pointer-events: none;
}
.nav-dropdown-toggle:hover .nav-pill-bg,
.nav-dropdown.open .nav-dropdown-toggle .nav-pill-bg,
.nav-dropdown-toggle.active .nav-pill-bg { opacity: 1; }

/* Chevron arrow */
.nav-dd-chevron {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  flex-shrink: 0; display: block;
}
.nav-dropdown.open .nav-dd-chevron,
.nav-dropdown-toggle:hover .nav-dd-chevron { transform: rotate(180deg); }

/* Dropdown panel */
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0a0a0f;
  border: 1px solid rgba(240, 244, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  width: 580px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.4, 0, .2, 1), transform .22s cubic-bezier(.4, 0, .2, 1);
  z-index: 902;
}
.nav-dropdown.open .nav-mega-panel,
.nav-dropdown:hover .nav-mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* Transparent bridge prevents hover gap from closing the panel */
.nav-mega-panel::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
  background: transparent;
}

/* 2-column grid inside panel */
.nav-mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.nav-mega-col-title {
  font-family: var(--fs);
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240, 244, 255, 0.25);
  padding: 0 4px; margin-bottom: 10px;
}
.nav-mega-divider {
  height: 1px;
  background: rgba(240, 244, 255, 0.06);
  margin: 0 -20px 16px;
  grid-column: 1 / -1;
}

/* Individual service link inside panel */
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none; border-bottom: none !important;
  color: inherit;
  transition: background .18s;
  margin-bottom: 2px;
}
.nav-mega-item:hover { background: rgba(240, 244, 255, 0.06); }
.nav-mega-item:hover .nav-mega-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.nav-mega-item:hover .nav-mega-icon svg { stroke: var(--white); }

/* Icon box */
.nav-mega-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(240, 244, 255, 0.05);
  border: 1px solid rgba(240, 244, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
}
.nav-mega-icon svg {
  width: 16px; height: 16px;
  stroke: rgba(240, 244, 255, 0.6); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .18s;
}

/* Service label + description */
.nav-mega-label {
  font-family: var(--fs); font-size: 13px; font-weight: 700;
  color: var(--white); line-height: 1.2; margin-bottom: 2px;
}
.nav-mega-desc {
  font-family: var(--fb); font-size: 11px; font-weight: 300;
  color: rgba(240, 244, 255, 0.4); line-height: 1.4;
  transition: color .18s;
}
.nav-mega-item:hover .nav-mega-desc { color: rgba(240, 244, 255, 0.65); }


/* ============================================================
   9. MOBILE DRAWER MENU
   Slides in from the right on tablets and phones.
   ============================================================ */

/* Dark overlay behind the drawer */
.nav-mobile-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s;
}
.nav-mobile-overlay.open { opacity: 1; }

/* The drawer panel */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #0d1120;
  border-left: 1px solid rgba(240, 244, 255, 0.07);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.6);
  z-index: 1000;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
  transition: opacity .3s ease, transform .35s cubic-bezier(.4, 0, .2, 1);
}
.nav-mobile-menu.open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Drawer header: logo + close button */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(240, 244, 255, 0.07);
  flex-shrink: 0;
}
.nav-mobile-logo {
  font-family: var(--fd);
  font-size: 20px; letter-spacing: 3px;
  color: var(--white); text-decoration: none;
  border-bottom: none !important;
}
.nav-mobile-logo span { color: var(--cyan); }

/* X close button */
.nav-mobile-close {
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: rgba(240, 244, 255, 0.5);
  transition: color .2s; padding: 0;
}
.nav-mobile-close:hover { color: var(--white); }
.nav-mobile-close svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* List of nav items */
.nav-mobile-list {
  display: flex; flex-direction: column;
  padding: 12px 0;
  flex: 1;
}

/* Regular link */
.nav-mobile-link {
  font-family: var(--fs);
  font-size: 15px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(240, 244, 255, 0.65);
  text-decoration: none;
  padding: 14px 24px;
  display: block;
  transition: color .2s, background .2s;
  border-bottom: none !important;
  border-left: 3px solid transparent;
}
.nav-mobile-link:hover  { color: var(--white); background: rgba(240, 244, 255, 0.04); border-left-color: var(--cyan); }
.nav-mobile-link.active { color: var(--white); background: rgba(0, 212, 212, 0.07); border-left-color: var(--cyan); }

/* Services accordion toggle (the "Services" row with arrow) */
.nav-mobile-svc-toggle {
  width: 100%;
  font-family: var(--fs);
  font-size: 15px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(240, 244, 255, 0.65);
  background: none; border: none; cursor: pointer;
  padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  transition: color .2s, background .2s;
  border-left: 3px solid transparent;
}
.nav-mobile-svc-toggle:hover,
.nav-mobile-svc-toggle.active { color: var(--white); background: rgba(240, 244, 255, 0.04); border-left-color: var(--cyan); }
.nav-mobile-svc-toggle svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s;
}
.nav-mobile-svc-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Accordion submenu */
.nav-mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  background: rgba(0, 0, 0, 0.2);
}
.nav-mobile-submenu.open { max-height: 400px; }

/* Sub-items inside accordion */
.nav-mobile-sub-item {
  display: block;
  font-family: var(--fb);
  font-size: 13px; font-weight: 300;
  color: rgba(240, 244, 255, 0.5);
  text-decoration: none;
  padding: 10px 24px 10px 36px;
  border-bottom: none !important;
  transition: color .2s;
}
.nav-mobile-sub-item:hover { color: var(--cyan); }

/* CTA at the bottom of the drawer */
.nav-mobile-cta-wrap { padding: 20px 24px; margin-top: auto; }
.nav-mobile-cta {
  display: block;
  font-family: var(--fs);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--cyan);
  text-align: center;
  padding: 14px;
  border-radius: 2px;
  text-decoration: none; border-bottom: none !important;
  transition: background .3s;
}
.nav-mobile-cta:hover { background: #00f0f0; }


/* ============================================================
   10. PAGE HERO (inner pages — about, contact, portfolio, etc.)
   ============================================================ */
.page-hero {
  padding: 180px 48px 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #05080f 0%, #0e1525 100%);
}
.page-hero-eyebrow {
  font-family: var(--fs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
}
.page-hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.page-hero-title {
  font-family: var(--fd);
  font-size: clamp(64px, 10vw, 140px);
  letter-spacing: 4px; color: var(--white);
  line-height: .9; margin-bottom: 32px;
}
.page-hero-title em {
  display: block; font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 212, 212, 0.4);
}
.page-hero-sub {
  font-family: var(--fb);
  font-size: 16px; font-weight: 300;
  color: var(--muted); line-height: 1.75;
  max-width: 560px;
}
/* Ghost text watermark behind hero title */
.page-hero-bg {
  position: absolute; top: 50%; right: -5%;
  transform: translateY(-50%);
  font-family: var(--fd);
  font-size: clamp(100px, 20vw, 280px);
  letter-spacing: 8px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 244, 255, 0.025);
  pointer-events: none; user-select: none;
  white-space: nowrap;
}


/* ============================================================
   11. SECTION SHARED STYLES
   ============================================================ */
.section { padding: 88px 48px; position: relative; z-index: 2; }
.section.alt { background: #0e1525; }

/* Section header: eyebrow + title + optional subtitle */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(240, 244, 255, 0.07);
  gap: 24px;
}
.sec-eyebrow {
  font-family: var(--fs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--cyan);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.sec-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.sec-title {
  font-family: var(--fd);
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: 3px; color: var(--white); line-height: 1;
}
.sec-sub {
  font-family: var(--fb);
  font-size: 13px; font-weight: 300;
  color: var(--muted); line-height: 1.6;
  max-width: 220px; text-align: right;
}


/* ============================================================
   12. CTA STRIP
   Full-width cyan band at the bottom of most pages.
   ============================================================ */
.cta-strip {
  padding: 80px 48px;
  background: var(--cyan);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip-title {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 3px; color: var(--bg); line-height: 1;
}
.cta-strip-btn {
  font-family: var(--fs);
  font-size: 12px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--cyan); background: var(--bg);
  padding: 16px 40px; border-radius: 2px;
  text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
.cta-strip-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }


/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: #030508;
  padding: 64px 48px 40px;
  border-top: 1px solid rgba(240, 244, 255, 0.06);
  z-index: 2;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(240, 244, 255, 0.06);
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--fd);
  font-size: 28px; letter-spacing: 3px;
  color: var(--white); text-decoration: none;
  display: inline-block; margin-bottom: 12px;
}
.footer-logo span { color: var(--cyan); }
.footer-tagline {
  font-family: var(--fs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(240, 244, 255, 0.2);
}
.footer-col-title {
  font-family: var(--fs);
  font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: rgba(240, 244, 255, 0.25);
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-family: var(--fb); font-size: 13px; font-weight: 300;
  color: var(--muted); text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a {
  font-family: var(--fb); font-size: 13px; font-weight: 300;
  color: var(--muted); text-decoration: none;
  border-bottom: none; transition: color .3s;
  display: flex; align-items: center; gap: 8px;
}
.footer-contact a:hover { color: var(--cyan); border-bottom: none; }
.footer-contact-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-family: var(--fb);
  font-size: 11px; font-weight: 300;
  color: rgba(240, 244, 255, 0.18); letter-spacing: .3px;
}
.footer-copy span { color: rgba(0, 212, 212, 0.5); }

/* Spinning compass in footer */
.footer-compass { width: 36px; height: 36px; opacity: 0.3; animation: cwspin 20s linear infinite; flex-shrink: 0; }
@keyframes cwspin { to { transform: rotate(360deg); } }



/* ============================================================
   FOOTER — new layout (row1 + contact strip + bottom grid)
   ============================================================ */
.footer-row1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }

/* Social icon buttons */
.footer-socials { display: flex; align-items: center; gap: 10px; list-style: none; }
.footer-social-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(240,244,255,0.04);
  border: 1px solid rgba(240,244,255,0.09);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: var(--muted);
  transition: background .25s, border-color .25s, color .25s;
  border-bottom: none !important;
}
.footer-social-btn:hover {
  background: rgba(0,212,212,0.09);
  border-color: rgba(0,212,212,0.3);
  color: var(--cyan);
}
.footer-social-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Divider line */
.footer-divider { height: 1px; background: rgba(240,244,255,0.06); margin: 0; }

/* Contact strip: phone, email, address */
.footer-contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(240,244,255,0.04);
  border-bottom: 1px solid rgba(240,244,255,0.04);
  margin-bottom: 24px;
}
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--fb); font-size: 12px; font-weight: 300;
  color: rgba(240,244,255,0.28);
  text-decoration: none; border-bottom: none !important;
  transition: color .25s;
}
.footer-contact-item:hover { color: var(--cyan); }
.footer-contact-item svg {
  width: 13px; height: 13px;
  stroke: rgba(0,212,212,0.45); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* Bottom grid: copyright left, nav links + legal right */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 48px;
  align-items: start;
}
.footer-copy { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 3px; }
.footer-copy-main { font-family: var(--fb); font-size: 12px; font-weight: 300; color: rgba(240,244,255,0.2); }
.footer-copy-main span { color: rgba(0,212,212,0.45); }
.footer-copy-sub   { font-family: var(--fb); font-size: 11px; font-weight: 300; color: rgba(240,244,255,0.1); }

.footer-nav {
  grid-column: 2; grid-row: 1;
  display: flex; flex-wrap: wrap; gap: 2px;
  justify-content: flex-end; list-style: none;
}
.footer-nav li a {
  font-family: var(--fb); font-size: 13px; font-weight: 300;
  color: var(--muted); text-decoration: none; border-bottom: none !important;
  padding: 3px 10px; border-radius: 2px;
  transition: color .25s, background .25s;
}
.footer-nav li a:hover { color: var(--white); background: rgba(240,244,255,0.04); }

.footer-legal {
  grid-column: 2; grid-row: 2;
  display: flex; flex-wrap: wrap; gap: 2px;
  justify-content: flex-end; list-style: none;
}
.footer-legal li a {
  font-family: var(--fb); font-size: 11px; font-weight: 300;
  color: rgba(240,244,255,0.2); text-decoration: none; border-bottom: none !important;
  padding: 2px 10px; transition: color .25s;
}
.footer-legal li a:hover { color: var(--muted); }

/* Responsive footer */
@media (max-width: 768px) {
  .footer-row1 { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-contact-strip { gap: 10px 16px; }
  .footer-bottom { grid-template-columns: 1fr; grid-template-rows: auto auto auto; gap: 12px; }
  .footer-copy { grid-row: 3; grid-column: 1; }
  .footer-nav  { grid-column: 1; grid-row: 1; justify-content: flex-start; }
  .footer-legal{ grid-column: 1; grid-row: 2; justify-content: flex-start; }
}
/* ============================================================
   14. UTILITY CLASSES
   ============================================================ */

/* About page: story + team + stats + values */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.story-text p { font-family: var(--fb); font-size: 15px; font-weight: 300; color: rgba(240, 244, 255, 0.65); line-height: 1.85; margin-bottom: 20px; }
.story-text p strong { font-weight: 500; color: rgba(240, 244, 255, 0.9); }
.story-text p:last-child { margin-bottom: 0; }
.story-quote { border-left: 2px solid var(--cyan); padding: 24px 28px; margin-bottom: 32px; background: rgba(0, 212, 212, 0.04); }
.story-quote p { font-family: var(--fd); font-size: clamp(22px, 3vw, 32px); letter-spacing: 1px; color: var(--white); line-height: 1.2; }
.story-quote cite { display: block; margin-top: 12px; font-family: var(--fs); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); font-style: normal; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 28px 24px; border: 1px solid rgba(240, 244, 255, 0.09); border-radius: 8px; background: rgba(10, 15, 30, 0.45); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.value-card:hover { border-color: rgba(0, 212, 212, 0.25); }
.value-num { font-family: var(--fd); font-size: 48px; color: rgba(0, 212, 212, 0.12); line-height: 1; margin-bottom: 16px; display: block; transition: color .3s; }
.value-card:hover .value-num { color: rgba(0, 212, 212, 0.25); }
.value-title { font-family: var(--fs); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.value-desc { font-family: var(--fb); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }

.team-card { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 48px; border: 1px solid rgba(240, 244, 255, 0.09); border-radius: 8px; background: rgba(10, 15, 30, 0.45); }
.team-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #00c8e0 0%, #0080ff 55%, #0050cc 100%); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 40px; color: #fff; flex-shrink: 0; letter-spacing: 2px; }
.team-name { font-family: var(--fd); font-size: clamp(32px, 4vw, 48px); letter-spacing: 2px; color: var(--white); line-height: 1; margin-bottom: 6px; }
.team-role { font-family: var(--fs); font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.team-bio { font-family: var(--fb); font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.75; max-width: 540px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(240, 244, 255, 0.07); border: 1px solid rgba(240, 244, 255, 0.07); border-radius: 8px; overflow: hidden; }
.stat-block { padding: 40px 32px; background: rgba(10, 15, 30, 0.5); text-align: center; }
.stat-block-val { font-family: var(--fd); font-size: clamp(48px, 6vw, 72px); letter-spacing: 2px; color: var(--white); line-height: 1; }
.stat-block-val span { color: var(--cyan); }
.stat-block-label { font-family: var(--fs); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-top: 8px; }


/* ============================================================
   15. RESPONSIVE
   IMPORTANT: These rules must stay last in the file so they
   override any earlier declarations without needing !important.
   ============================================================ */

/* ── Tablet (≤930px) ── */
@media (max-width: 930px) {
  .section { padding: 72px 32px; }
  .sec-header { flex-wrap: wrap; }
  .sec-sub { text-align: left; max-width: 100%; }
  .page-hero { padding: 160px 32px 80px; }
  .story-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card { grid-template-columns: 1fr; gap: 24px; }
  .team-avatar { width: 80px; height: 80px; font-size: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .footer { padding: 56px 32px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-strip { padding: 64px 32px; }
  .nav-mega-panel { width: 480px; }
}

/* ── Mobile landscape / large phone (≤768px) ── */
@media (max-width: 768px) {
  .section { padding: 60px 24px; }
  .page-hero { padding: 140px 24px 64px; }
  .values-grid { grid-template-columns: 1fr; }
  .cta-strip { padding: 56px 24px; flex-direction: column; align-items: flex-start; }
  .footer { padding: 48px 24px 32px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
  .section { padding: 48px 20px; }
  .page-hero { padding: 120px 20px 52px; }
  .stats-row { grid-template-columns: 1fr; }
  .footer { padding: 40px 20px 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   MOBILE / TABLET NAV — MUST BE LAST
   Keeps nav elements hidden on small screens despite any
   earlier rules that may set display to something else.
   ============================================================ */
@media (max-width: 930px) {
  .nav-links           { display: none !important; }
  .nav-cta             { display: none !important; }
  .nav-dropdown        { display: none !important; }
  .nav-dropdown-toggle { display: none !important; }
  .nav-hamburger       { display: flex  !important; }
  nav          { padding: 18px 32px; }
  nav.scrolled { padding: 14px 32px; }
}
@media (max-width: 480px) {
  nav          { padding: 16px 20px !important; }
  nav.scrolled { padding: 12px 20px !important; }
}
