/* =============================================
   ELEVATION BUILT — PREMIUM DESIGN SYSTEM
   ============================================= */

/* DS Part 1 — Typography: Helvetica Neue, no Google Fonts */
/* DS Part 1 — Colours: corrected primary purple #8C52FF */
/* DS Part 1 — Spacing: strict 8pt scale */
/* DS Part 2 — Components: BTN-001, BADGE-001, ALT-001 status classes */
/* DS Part 1 — Accessibility: WCAG 2.1 AA, 44×44px touch targets */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces */
  --bg:            #060608;
  --surface:       #0d0d11;
  --card:          #111118;
  --card-hover:    #16161f;

  /* Primary purple — DS Part 1 §2.1 corrected token */
  --purple:        #8C52FF;
  --purple-mid:    #7a3df0;
  --purple-light:  #b48fff;
  --purple-glow:   rgba(140, 82, 255, 0.30);
  --purple-subtle: rgba(140, 82, 255, 0.08);

  /* Status colours — DS Part 1 §2.1 — never use as sole signal */
  --success:       #22C55E;
  --success-tint:  rgba(34, 197, 94, 0.10);
  --warning:       #F59E0B;
  --warning-tint:  rgba(245, 158, 11, 0.10);
  --critical:      #EF4444;
  --critical-tint: rgba(239, 68, 68, 0.10);
  --info:          #3B82F6;
  --info-tint:     rgba(59, 130, 246, 0.10);

  /* Neutrals */
  --white:         #ffffff;
  --off-white:     #ededf2;
  --grey-light:    #b8b8c8;
  --grey:          #6a6a7a;
  --border:        rgba(255, 255, 255, 0.06);
  --border-purple: rgba(140, 82, 255, 0.35);

  /* Typography — DS Part 1 §3: Helvetica Neue, no Google Fonts */
  --font-title:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-head:     'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:     'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Layout */
  --max-w:         1240px;
  --pad-h:         clamp(20px, 5vw, 60px);
  --section-py:    clamp(80px, 8vw, 140px);

  /* 8pt spacing scale — DS Part 1 §4 */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  40px;
  --sp-7:  48px;
  --sp-8:  56px;
  --sp-9:  64px;
  --sp-10: 80px;
  --sp-11: 96px;
  --sp-12: 120px;
  --sp-13: 160px;
}

html { font-size: 16px; scroll-behavior: smooth; }

/* DS Part 1 §7.1 — Focus ring: 2px #8C52FF, 2px offset, keyboard only */
:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Explicit title typography — prevents titles inheriting legacy display fonts. */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.page-hero-content h1,
.service-name,
.cta-title,
.stat-big,
.about-stat-num {
  font-family: var(--font-title);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ LAYOUT ============ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-h); }
.section { padding: var(--section-py) 0; }

/* ============ TYPOGRAPHY ============ */
.label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid rgba(155, 111, 240, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  background: var(--purple-subtle);
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
}

.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--grey);
  line-height: 1.75;
  max-width: 580px;
}

.section-head { margin-bottom: clamp(48px, 5vw, 80px); }
.section-head .section-title { margin: 16px 0 20px; }

/* ============ BUTTONS ============ */
/* BTN-001 — DS Part 2 §A — min 44×44px touch target, sentence case labels */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  font-family: var(--font-head);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
  text-transform: none; /* Sentence case — DS Part 1 §3.2 */
}
/* BTN-001-primary — one per screen/section */
.btn-primary, [data-component="BTN-001-primary"] {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.btn-primary:hover, [data-component="BTN-001-primary"]:hover {
  background: var(--purple-mid);
  border-color: var(--purple-mid);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--purple-glow);
}
/* BTN-001-secondary */
[data-component="BTN-001-secondary"] {
  background: var(--white);
  color: #1A1A2E;
  border-color: #1A1A2E;
}
[data-component="BTN-001-secondary"]:hover {
  background: var(--off-white);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}
/* BTN-001-ghost / tertiary */
.btn-ghost, [data-component="BTN-001-ghost"] {
  background: transparent;
  color: var(--purple-light);
  border-color: transparent;
}
.btn-ghost:hover, [data-component="BTN-001-ghost"]:hover {
  color: var(--white);
  background: var(--purple-subtle);
}
.btn-white {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* BTN-001-destructive */
[data-component="BTN-001-destructive"] {
  background: var(--critical);
  color: #fff;
  border-color: var(--critical);
}
[data-component="BTN-001-destructive"]:hover {
  background: #dc2626;
  border-color: #dc2626;
}
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(6, 6, 8, 0.88);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo img {
  height: 48px;
  width: auto;
  /* Soft fade on all edges — dissolves the rectangle */
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 55%, transparent 100%);
  transition: opacity 0.2s;
}
.nav-logo img:hover { opacity: 0.85; }
.nav-links {
  display: flex; align-items: center; gap: 22px;
}
/* DS Part 1 §7.2 — nav links min touch height */
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--purple-light);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; }

/* DS Part 1 §7.2 — 44×44px min touch target */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 150;
  background: var(--bg);
  padding: 100px var(--pad-h) 40px;
  flex-direction: column; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--purple-light); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/site-open-hall.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    125deg,
    rgba(6,6,8,0.95) 0%,
    rgba(6,6,8,0.80) 45%,
    rgba(40,10,90,0.50) 80%,
    rgba(91,31,184,0.25) 100%
  );
}

/* Animated grain overlay */
.hero-bg::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 8vw, 120px);
}
.hero-eyebrow { margin-bottom: 32px; }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 7.5vw, 110px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 28px;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--purple-light) 0%, #c4a0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 72px; }

.hero-stats { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.hero-stat { padding: 0 36px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { border-right: none; }
.hs-num {
  font-family: var(--font-head);
  font-size: 26px; font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hs-lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 1; cursor: pointer;
}
.scroll-indicator span {
  font-family: var(--font-head);
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, rgba(155,111,240,0.8), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============ TRUST BAR ============ */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  position: relative;
}
.trust-bar::before,
.trust-bar::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1;
  pointer-events: none;
}
.trust-bar::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.trust-bar::after  { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
.trust-label {
  position: absolute; left: var(--pad-h); top: 50%; transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  z-index: 2; white-space: nowrap;
}
.trust-track {
  display: flex;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 40px;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
  transition: color 0.2s;
}
.trust-item::before {
  content: '';
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--purple-light);
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.04);
}

.service-card {
  position: relative; overflow: hidden;
  background: var(--card);
  aspect-ratio: 16/10;
  display: block;
}
.service-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  filter: brightness(0.75) saturate(0.8);
}
.service-card:hover .service-card-img {
  transform: scale(1.06);
  filter: brightness(0.65) saturate(0.7);
}
.service-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,6,8,0.96) 0%,
    rgba(6,6,8,0.5) 45%,
    transparent 100%
  );
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 44px);
  transition: background 0.4s ease;
}
.service-card:hover .service-card-overlay {
  background: linear-gradient(
    to top,
    rgba(6,6,8,0.97) 0%,
    rgba(6,6,8,0.6) 40%,
    rgba(91,31,184,0.18) 100%
  );
}
.service-tag {
  font-family: var(--font-head);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 10px;
  opacity: 0.8;
}
.service-name {
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700; line-height: 1.1;
  color: var(--white);
  margin-bottom: 10px;
}
.service-blurb {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.service-card:hover .service-blurb { color: rgba(255,255,255,0.6); }
.service-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  color: var(--purple-light);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.service-card:hover .service-link { opacity: 1; transform: translateY(0); }

/* Purple accent bar on hover */
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  z-index: 2;
}
.service-card:hover::before { transform: scaleX(1); }

/* ============ WHY SECTION ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.why-item {
  background: var(--card);
  padding: clamp(32px, 3.5vw, 52px) clamp(24px, 3vw, 40px);
  transition: background 0.3s;
  position: relative;
}
.why-item:hover { background: var(--card-hover); }
.why-item::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, var(--purple), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.why-item:hover::after { transform: scaleX(1); }
.why-num {
  font-family: var(--font-head);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
  opacity: 0.7;
}
.why-item h3 {
  font-family: var(--font-head);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700; line-height: 1.2;
  color: var(--white);
  margin-bottom: 12px;
}
.why-item p { font-size: 14px; color: var(--grey); line-height: 1.72; }

/* ============ STATS ============ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-cell {
  padding: clamp(44px, 5vw, 72px) clamp(24px, 3vw, 40px);
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background 0.25s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(91,31,184,0.05); }
.stat-big {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.5vw, 70px);
  font-weight: 700; line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.stat-big em { font-style: normal; color: var(--purple-light); }
.stat-lbl {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--grey);
}

/* ============ INTRO SPLIT ============ */
.split-section { padding: var(--section-py) 0; }
.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.split-img {
  position: relative; border-radius: 4px; overflow: hidden;
  aspect-ratio: 4/3;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }
.split-img::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(91,31,184,0.15), transparent 60%);
}
.split-img-border {
  position: absolute; inset: 0; z-index: 2;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(155,111,240,0.15);
  pointer-events: none;
}
.split-content {}
.split-content .label { margin-bottom: 24px; }
.split-content .section-title { margin-bottom: 24px; }
.split-content .section-sub { margin-bottom: 36px; }
.split-points { display: flex; flex-direction: column; gap: 16px; }
.split-point {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}
.split-point:hover { border-color: var(--border-purple); background: var(--card-hover); }
.split-point-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--purple-subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.split-point-icon svg { width: 16px; height: 16px; stroke: var(--purple-light); }
.split-point h4 { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.split-point p { font-size: 13px; color: var(--grey); line-height: 1.6; }

/* ============ CTA BANNER ============ */
.cta-section {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #2a0a6e 0%, var(--purple) 50%, #7b1ff0 100%);
  padding: var(--section-py) 0;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%; left: -5%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-text {}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 700; line-height: 1.12;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.cta-sub { font-size: 16px; color: rgba(255,255,255,0.6); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer {
  background: #030304;
  border-top: 1px solid var(--border);
  padding: clamp(60px, 7vw, 100px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: clamp(40px, 5vw, 80px);
  padding-bottom: clamp(48px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand {}
.footer-logo { height: 32px; margin-bottom: 20px; }
.footer-tagline { font-size: 14px; color: var(--grey); line-height: 1.7; max-width: 240px; margin-bottom: 28px; }
.footer-col h5 {
  font-family: var(--font-head);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--grey); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--grey); margin-bottom: 10px; }
.footer-contact-line svg { width: 14px; height: 14px; stroke: var(--purple-light); flex-shrink: 0; }
.footer-contact-line a { color: var(--grey); transition: color 0.2s; }
.footer-contact-line a:hover { color: var(--white); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.18); }
.footer-abn { font-size: 12px; color: rgba(255,255,255,0.18); }

/* ============ BACK LINK ============ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.2s, gap 0.2s;
  min-height: 44px;
}
.back-link svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.back-link:hover {
  color: var(--purple-light);
  gap: 12px;
}
.back-link:hover svg {
  transform: translateX(-4px);
}

/* ============ PAGE HERO (inner pages) ============ */
.page-hero {
  position: relative;
  padding: clamp(130px, 14vw, 180px) 0 clamp(60px, 6vw, 90px);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image: var(--bg-img);
  background-size: cover; background-position: center;
  z-index: 0;
}
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(6,6,8,0.95) 0%, rgba(6,6,8,0.75) 60%, rgba(91,31,184,0.2) 100%);
}
.page-hero-content { position: relative; z-index: 1; max-width: 700px; }
.page-hero-content .label { margin-bottom: 24px; }
.page-hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 20px;
}
.page-hero-content p {
  font-size: clamp(15px, 1.5vw, 18px);
  color: rgba(255,255,255,0.5);
  line-height: 1.7; max-width: 520px;
}

/* ============ SERVICE DETAIL PAGE ============ */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.service-detail-img { border-radius: 4px; overflow: hidden; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); }
.feature-item { background: var(--card); padding: 32px 28px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--purple-subtle); border: 1px solid var(--border-purple); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 18px; height: 18px; stroke: var(--purple-light); }
.feature-item h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.feature-item p { font-size: 13.5px; color: var(--grey); line-height: 1.65; }

/* ============ CONTACT PAGE ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info {}
.contact-info p { font-size: 16px; color: var(--grey); line-height: 1.75; margin-bottom: 36px; }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-icon { width: 40px; height: 40px; background: var(--purple-subtle); border: 1px solid var(--border-purple); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; stroke: var(--purple-light); }
.contact-detail-text span { display: block; font-size: 11px; font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); margin-bottom: 4px; }
.contact-detail-text a, .contact-detail-text p { font-size: 15px; color: var(--off-white); }
.contact-form { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: clamp(28px, 3vw, 48px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 13px 16px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--off-white);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--purple-light); background: rgba(91,31,184,0.06); }
.form-group textarea { height: 130px; resize: vertical; }
.form-group select option { background: var(--card); }

/* ============ TEAM GRID ============ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--border); }
.team-card {
  background: var(--card);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.5vw, 32px);
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.team-card:hover { background: var(--card-hover); border-color: var(--border-purple); }
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--purple-subtle);
  border: 1px solid var(--border-purple);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 14px; font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 16px;
}
.team-card h4 { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.team-card .role { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--purple-light); opacity: 0.8; margin-bottom: 14px; }
.team-card p { font-size: 13.5px; color: var(--grey); line-height: 1.68; }

/* ============ ABOUT STATS ============ */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); margin: var(--section-py) 0; }
.about-stat-item { background: var(--card); padding: 40px 32px; text-align: center; }
.about-stat-num { font-family: var(--font-head); font-size: clamp(36px, 4vw, 56px); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.about-stat-num em { font-style: normal; color: var(--purple-light); }
.about-stat-lbl { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }

/* ============ PROJECTS (coming soon) ============ */
.projects-placeholder {
  text-align: center;
  padding: clamp(80px, 10vw, 140px) 0;
}
.projects-placeholder p { font-size: 16px; color: var(--grey); }

/* ============ TAGS ============ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-family: var(--font-head); font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  background: var(--purple-subtle);
  color: var(--purple-light);
  border: 1px solid rgba(155,111,240,0.2);
}

/* ============ VMV — VISION / MISSION / VALUES ============ */
.vmv-vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  margin-top: 56px;
  margin-bottom: 2px;
}

.vmv-card {
  background: var(--card);
  padding: clamp(36px, 4vw, 56px);
  position: relative;
  transition: background 0.3s;
}
.vmv-card:hover { background: var(--card-hover); }

.vmv-vision { border-left: 3px solid var(--purple); }
.vmv-mission { border-left: 3px solid var(--border-purple); }

.vmv-card-tag {
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
}

.vmv-card-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--white);
  margin-bottom: 16px;
}

.vmv-card-body {
  font-size: 14.5px;
  color: var(--grey);
  line-height: 1.75;
}

/* QATCO values block */
.vmv-values-wrap {
  background: var(--card);
  padding: clamp(36px, 4vw, 56px);
  margin-bottom: 0;
}

.vmv-values-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.vmv-values-word {
  font-family: var(--font-head);
  font-size: clamp(32px, 3.5vw, 52px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  line-height: 1;
}

.vmv-values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: var(--border);
}

.vmv-value-card {
  background: var(--card);
  padding: 32px 24px;
  transition: background 0.3s;
  position: relative;
}
.vmv-value-card:hover { background: var(--card-hover); }
.vmv-value-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.vmv-value-card:hover::after { transform: scaleX(1); }

.vmv-letter {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.85;
}

.vmv-value-card h4 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.vmv-value-card p {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.7;
}

@media (max-width: 900px) {
  .vmv-vm-grid { grid-template-columns: 1fr; }
  .vmv-values-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .vmv-values-grid { grid-template-columns: repeat(2, 1fr); }
  .vmv-values-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 400px) {
  .vmv-values-grid { grid-template-columns: 1fr; }
}

/* ============ STATUS BADGES — BADGE-001 DS Part 2 §B ============ */
/* Rule: colour is NEVER the sole signal — always pair with label/icon */
.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.badge-success {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-warning {
  background: var(--warning-tint);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-critical {
  background: var(--critical-tint);
  color: var(--critical);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-info {
  background: var(--info-tint);
  color: var(--info);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-neutral {
  background: rgba(255,255,255,0.06);
  color: var(--grey-light);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ALT-001 — Inline alert banners */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: 8px;
  border-left: 3px solid;
  font-size: 14px; line-height: 1.6;
  margin-bottom: var(--sp-4);
}
.alert-critical  { background: var(--critical-tint); border-color: var(--critical);  color: var(--off-white); }
.alert-warning   { background: var(--warning-tint);  border-color: var(--warning);   color: var(--off-white); }
.alert-success   { background: var(--success-tint);  border-color: var(--success);   color: var(--off-white); }
.alert-info      { background: var(--info-tint);     border-color: var(--info);      color: var(--off-white); }

/* ============ RICH TEXT ============ */
.prose h2 { font-family: var(--font-head); font-size: 28px; font-weight: 700; color: var(--white); margin: 40px 0 16px; }
.prose h3 { font-family: var(--font-head); font-size: 20px; font-weight: 600; color: var(--white); margin: 32px 0 12px; }
.prose p { font-size: 16px; color: var(--grey-light); line-height: 1.78; margin-bottom: 20px; }
.prose ul { padding-left: 20px; margin-bottom: 20px; }
.prose li { font-size: 15px; color: var(--grey-light); line-height: 1.7; margin-bottom: 8px; list-style: disc; }
.prose li::marker { color: var(--purple-light); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  .split-inner { gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/9; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid var(--border); border-right: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .split-inner { grid-template-columns: 1fr; }
  .split-img { order: -1; max-height: 320px; }
  .split-img img { height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(44px, 10vw, 64px); }
  .hero-stats { gap: 0; }
  .hero-stat { padding: 0 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; }
  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .hero-stat { padding: 0 14px; }
  .hs-num { font-size: 20px; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-top: 1px solid var(--border); }
  .stat-cell:first-child { border-top: none; }
}
