/* ============================================================
   EXCELON CYBER SOLUTIONS — Design System v6
   Dark-first editorial theme. Background = deep charcoal.
   Highlights & text = warm cream/near-white. Accent = red.
   ============================================================ */

/* ---------- Base tokens ---------- */
:root {
  --cream:      #1b1f23;   /* page background (dark charcoal) */
  --cream-alt:  #20252b;   /* slightly lighter dark */
  --white:      #252c33;   /* card / alt-section surface */
  --red:        #e94f37;   /* accent */
  --red-dark:   #f26047;   /* accent hover (brighter on dark bg) */
  --charcoal:   #b4b9b2;   /* body text (warm light grey) */
  --charcoal-2: #e8ede5;   /* headings / strong text (near white) */
  --on-dark:    #e8ede5;   /* text on dark surfaces */
}

html[data-theme="ocean"] {
  --cream:      #141b24;
  --cream-alt:  #1a2332;
  --white:      #1f2c3d;
  --red:        #3b82f6;
  --red-dark:   #60a5fa;
  --charcoal:   #a0aec0;
  --charcoal-2: #e2eaf4;
  --on-dark:    #e2eaf4;
}

html[data-theme="forest"] {
  --cream:      #141a14;
  --cream-alt:  #1a231a;
  --white:      #1f2c1f;
  --red:        #4ade80;
  --red-dark:   #86efac;
  --charcoal:   #a0b5a0;
  --charcoal-2: #dff0df;
  --on-dark:    #dff0df;
}

html[data-theme="sand"] {
  --cream:      #1e1a13;
  --cream-alt:  #261f16;
  --white:      #2e261b;
  --red:        #f59e0b;
  --red-dark:   #fbbf24;
  --charcoal:   #c0b89a;
  --charcoal-2: #f0e8cc;
  --on-dark:    #f0e8cc;
}

html[data-theme="mono"] {
  --cream:      #141414;
  --cream-alt:  #1a1a1a;
  --white:      #222222;
  --red:        #e5e5e5;
  --red-dark:   #ffffff;
  --charcoal:   #a0a0a0;
  --charcoal-2: #f0f0f0;
  --on-dark:    #f0f0f0;
}

html[data-theme="plum"] {
  --cream:      #160f1c;
  --cream-alt:  #1e1427;
  --white:      #261a32;
  --red:        #a855f7;
  --red-dark:   #c084fc;
  --charcoal:   #b09ac8;
  --charcoal-2: #e8daf4;
  --on-dark:    #e8daf4;
}

/* ---------- Derived tokens ---------- */
:root {
  --red-soft:      color-mix(in srgb, var(--red) 10%, transparent);
  --red-mid:       color-mix(in srgb, var(--red) 22%, transparent);
  --red-glow:      color-mix(in srgb, var(--red) 38%, transparent);
  --muted:         color-mix(in srgb, var(--charcoal) 80%, transparent);
  --muted-2:       color-mix(in srgb, var(--charcoal) 55%, transparent);
  --border:        color-mix(in srgb, var(--charcoal) 14%, transparent);
  --border-mid:    color-mix(in srgb, var(--charcoal) 26%, transparent);
  --on-dark-mid:   color-mix(in srgb, var(--on-dark) 65%, transparent);
  --on-dark-soft:  color-mix(in srgb, var(--on-dark) 45%, transparent);
  --on-dark-faint: color-mix(in srgb, var(--on-dark) 10%, transparent);
  --on-dark-line:  color-mix(in srgb, var(--on-dark) 5%, transparent);

  --ink:    var(--charcoal-2);
  --accent: var(--red);
  --navy:   var(--charcoal-2);

  --shadow:    0 2px 20px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 60px rgba(0, 0, 0, 0.55);

  --font-heading: "Times New Roman", Times, Georgia, serif;
  --font-body:    "Times New Roman", Times, Georgia, serif;
  --font-mono:    "JetBrains Mono", "Courier New", monospace;

  --maxw:      1200px;
  --radius:    12px;
  --radius-lg: 20px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at 5% 15%, rgba(233, 79, 55, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 95% 85%, rgba(233, 79, 55, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
::selection { background: var(--red); color: var(--cream); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ---------- Layout ---------- */
.container        { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: 820px;       margin: 0 auto; padding: 0 28px; }
.section          { padding: 104px 0; position: relative; overflow: hidden; }
.section--alt     { background: var(--white); position: relative; overflow: hidden; }
.section--alt::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(233, 79, 55, 0.04) 0%, transparent 55%),
              linear-gradient(to bottom, transparent 60%, rgba(233, 79, 55, 0.02));
  pointer-events: none; z-index: 0;
}
.section--alt > * { position: relative; z-index: 1; }
.section + .section:not(.section--alt) + .section--alt,
.section--alt + .section { border-top: 1px solid var(--border); }
.text-center      { text-align: center; }

/* ---------- Typography ---------- */
h1 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--charcoal-2); }
h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--charcoal-2); }
h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; line-height: 1.25; color: var(--charcoal-2); }
p  { color: var(--muted); font-size: 1.125rem; line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.text-red { color: var(--red); }
.lead     { font-size: 1.3rem; color: var(--charcoal-2); line-height: 1.75; margin-bottom: 16px; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0f1316;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo {
  position: relative; width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.loader__logo img { width: 56px; height: 56px; object-fit: contain; position: relative; z-index: 1; }
.loader__logo .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--red);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader__lines { display: flex; flex-direction: column; gap: 6px; }
.loader__lines p {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--on-dark-soft);
  display: flex; align-items: center; gap: 10px;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
}
.loader__lines p.show { opacity: 1; transform: none; }
.loader__lines .pr { color: var(--red); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.35s;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.navbar .container {
  height: 68px;
  display: flex; align-items: center; gap: 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  color: var(--charcoal-2);
  flex-shrink: 0;
}
.nav-logo svg { width: 24px; height: 31px; flex-shrink: 0; }
.nav-logo__wm { display: flex; flex-direction: column; line-height: 1.08; }
.nav-logo__wm .wm-top {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.05em;
  color: var(--charcoal-2);
}
.nav-logo__wm .wm-sub {
  font-family: var(--font-body); font-weight: 400; font-size: 0.58rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-links a {
  font-size: 0.98rem; font-weight: 500; color: var(--muted);
  padding: 7px 13px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--charcoal-2); background: var(--red-soft); }
.nav-links a.active { color: var(--red); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; padding: 6px;
  border-radius: 8px; color: var(--charcoal-2);
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-menu {
  display: none; position: fixed; inset: 0; top: 68px; z-index: 800;
  background: var(--cream);
  flex-direction: column; padding: 24px 28px; gap: 6px;
  border-top: 1px solid var(--border);
  animation: slideDown 0.28s var(--ease);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1.25rem; font-weight: 600; color: var(--charcoal); padding: 13px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a.active,
.mobile-menu a:hover { color: var(--red); }
.mobile-menu .btn { margin-top: 20px; width: 100%; justify-content: center; }

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.03em;
  padding: 13px 24px; border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red); color: #fff;
  border: 2px solid var(--red);
}
.btn-primary:hover {
  background: var(--red-dark); border-color: var(--red-dark);
  box-shadow: 0 4px 24px rgba(233, 79, 55, 0.45), 0 0 0 4px rgba(233, 79, 55, 0.12);
}
.btn-secondary {
  background: transparent; color: var(--charcoal);
  border: 2px solid var(--border-mid);
}
.btn-secondary:hover { border-color: var(--charcoal-2); color: var(--charcoal-2); }

.btn-ghost {
  background: transparent; color: var(--red);
  border: 2px solid var(--red-mid);
}
.btn-ghost:hover { background: var(--red-soft); border-color: var(--red); }

.btn-dark {
  background: var(--charcoal-2); color: var(--cream);
  border: 2px solid var(--charcoal-2);
}
.btn-dark:hover { background: var(--charcoal); }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Section header ---------- */
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 64px;
}
.section-head p { font-size: 1.2rem; margin-top: 12px; color: var(--muted); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .container, .container-narrow { padding: 0 18px; }
  .card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .container, .container-narrow { padding: 0 14px; }
  .card { padding: 20px 16px; }
  .btn-lg { padding: 13px 20px; font-size: 0.95rem; }
  h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s, background 0.35s;
}
.card:hover {
  border-color: var(--red-mid);
  box-shadow: 0 8px 48px rgba(233, 79, 55, 0.18), 0 2px 12px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--red), var(--red-dark));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s var(--ease);
  border-radius: 0 0 0 var(--radius-lg);
}
.card:hover::before { transform: scaleY(1); }
.card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(233, 79, 55, 0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

/* Alt sections: cards get body-dark bg (inset feel) */
.section--alt .card { background: var(--cream); }

.card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft);
  border-radius: 10px;
  border: 1px solid var(--red-mid);
  margin-bottom: 20px;
  color: var(--red);
  flex-shrink: 0;
}
.card__icon svg { width: 24px; height: 24px; }

.card__tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-mid);
  padding: 3px 9px; border-radius: 4px;
  margin-bottom: 10px;
}

.card h3 { margin-bottom: 10px; }
.card p  { font-size: 1.02rem; color: var(--muted); }

/* ---------- Page hero / header ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 28px 80px;
  background: var(--cream);
}

.hero__bg-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.7;
  pointer-events: none;
}

.hero__accent-blob {
  position: absolute; top: -15%; right: -10%;
  width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.18) 0%, rgba(233, 79, 55, 0.06) 40%, transparent 68%);
  pointer-events: none;
}

.hero__accent-blob-2 {
  position: absolute; bottom: -20%; left: -10%;
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.10) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative; z-index: 2;
  max-width: 1000px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 28px;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--charcoal);
  background: var(--white);
  border: 1px solid var(--border-mid);
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 0 20px rgba(233, 79, 55, 0.1);
}
.hero__badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(233, 79, 55, 0.7);
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.4); } }

.hero h1 { margin: 0; }
.hero h1 .text-red {
  color: var(--red);
  display: block;
  text-shadow: 0 0 60px rgba(233, 79, 55, 0.3);
}

.hero__sub {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  max-width: 680px; color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.hero__type {
  font-family: var(--font-mono); font-size: 0.95rem;
  color: var(--muted); padding: 15px 26px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  min-height: 54px; display: flex; align-items: center; gap: 8px;
  max-width: 680px; width: 100%;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero__type .prompt { color: var(--red); text-shadow: 0 0 10px rgba(233,79,55,0.4); }
.hero__type .cursor { animation: blink 1s step-end infinite; color: var(--red); }
@keyframes blink { 50% { opacity: 0; } }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: center;
  padding-top: 24px; border-top: 1px solid var(--border); width: 100%; max-width: 640px;
}
.stat { text-align: center; }
.stat__num {
  font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; color: var(--red);
  text-shadow: 0 0 30px rgba(233, 79, 55, 0.35);
}
.stat__label { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 2px; }
.stat__bar { height: 2px; background: linear-gradient(90deg, var(--red), transparent); border-radius: 2px; margin: 6px auto; width: 40px; }

.scroll-ind {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2);
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-ind svg { width: 16px; height: 16px; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(6px); } }

/* ---------- Page header (inner pages) ---------- */
.page-header {
  padding: 140px 0 84px;
  background: #0f1316;
  position: relative; overflow: hidden;
}
.page-header .ph-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232, 237, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 237, 229, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.page-header .ph-accent {
  position: absolute; bottom: -20%; right: -5%;
  width: 50vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .ph-accent-2 {
  position: absolute; top: -20%; left: -5%;
  width: 35vmax; height: 35vmax;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.page-header .eyebrow { color: var(--red); }
.page-header h1 { color: var(--on-dark); font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
.page-header p  { color: var(--on-dark-mid); max-width: 620px; font-size: 1.2rem; margin-top: 14px; }

/* ---------- Split layout ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Service tiles ---------- */
.tile {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 19px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; color: var(--charcoal);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.section--alt .tile { background: var(--cream); }
.tile:hover { border-color: var(--red-mid); background: var(--red-soft); transform: translateX(3px); }
.tile .bullet {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0;
}

/* ---------- Service cards (accordion) ---------- */
.svc__head {
  display: flex; align-items: center; gap: 16px; width: 100%;
  padding: 0; background: none; cursor: pointer; text-align: left;
}
.svc__title-row { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; min-width: 0; }
.svc__title-row h3 { margin-bottom: 0; min-width: 0; word-break: break-word; }
.svc__short { font-size: 0.95rem; color: var(--muted); font-weight: 400; display: block; margin-top: 3px; }
.svc__chev { flex-shrink: 0; transition: transform 0.3s; color: var(--muted); }
.card[data-accordion-item].open .svc__chev { transform: rotate(180deg); }
.svc__body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.card[data-accordion-item].open .svc__body { max-height: 600px; }
.svc__body-inner { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 18px; }
.svc__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.95rem; font-weight: 600; color: var(--red);
  margin-top: 14px;
  transition: gap 0.2s;
}
.svc__link:hover { gap: 10px; }

.badge-mini {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
  background: var(--red); color: #fff;
  flex-shrink: 0; white-space: nowrap; align-self: center;
}

/* ---------- Team cards ---------- */
.team-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 28px;
}
.team-card > p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0;
}
.team-avatar {
  width: 88px; height: 88px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--red-mid);
  background: var(--cream-alt);
  box-shadow: 0 0 24px rgba(233, 79, 55, 0.12);
  transition: box-shadow 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.team-card:hover .team-avatar {
  border-color: var(--red);
  box-shadow: 0 0 36px rgba(233, 79, 55, 0.28);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-avatar .initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--red);
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.team-card .role {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--red); margin-bottom: 14px; line-height: 1.5;
}
/* Skill tags removed from UI — hidden */
.team-tags { display: none !important; }
.team-tag  { display: none !important; }
/* (kept for CSS completeness) */
.team-tags-x {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
}
.team-tag {
  display: inline-block;
  padding: 3px 9px;
  background: var(--red-soft);
  border: 1px solid var(--red-mid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  white-space: nowrap;
  line-height: 1.6;
}
/* Featured director card */
.team-card.featured .team-avatar {
  width: 108px; height: 108px;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px rgba(233, 79, 55, 0.22), 0 0 80px rgba(233, 79, 55, 0.07);
}
.team-card.featured h3 { font-size: 1.35rem; }
.team-card.featured::before {
  background: linear-gradient(to bottom, rgba(233, 79, 55, 0.1), transparent);
}

/* ---------- CTA panel ---------- */
.scan-panel {
  background: #0f1316;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 60px rgba(233, 79, 55, 0.12);
}
.scan-panel .eyebrow { color: var(--red); }
.scan-panel h2 { color: var(--on-dark); margin-top: 8px; }
.scan-panel p  { color: var(--on-dark-mid); max-width: 560px; margin: 14px auto 0; }
.scan-panel .hero__cta { margin-top: 32px; }
.scan-panel__lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,237,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,237,229,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.scan-panel__glow {
  position: absolute; top: -20%; right: -10%;
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(233, 79, 55, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
@media (max-width: 600px) { .scan-panel { padding: 40px 24px; } }

/* ---------- Pillar cards ---------- */
.pillar { text-align: center; }
.pnum {
  font-family: var(--font-heading); font-weight: 700; font-size: 2.6rem; color: var(--red); margin: 12px 0 4px;
  text-shadow: 0 0 30px rgba(233, 79, 55, 0.35);
}
.plabel { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--charcoal-2); }
.psub { font-size: 0.92rem; color: var(--muted); margin-top: 4px; }
.pillar .card__icon { margin: 0 auto 6px; }

/* ---------- Timeline ---------- */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before {
  content: ''; position: absolute; left: 80px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, var(--red), transparent);
}
.tl-item .yr {
  font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem;
  color: var(--red); padding-right: 20px;
}
.tl-item p { color: var(--charcoal); font-size: 1.02rem; line-height: 1.65; padding-left: 24px; }

/* ---------- Info cards (contact) ---------- */
.info-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.section--alt .info-card { background: var(--cream); }
.info-card:hover { border-color: var(--red-mid); box-shadow: 0 4px 24px rgba(233,79,55,0.1); }
.info-card .ic {
  width: 42px; height: 42px; border-radius: 8px;
  background: var(--red-soft); border: 1px solid var(--red-mid);
  color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-card .il { font-size: 0.76rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.info-card .iv { font-weight: 600; font-size: 1.05rem; color: var(--charcoal-2); margin-top: 3px; display: block; }
.info-card a.iv:hover { color: var(--red); }

/* ---------- Form ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.section--alt .form-card { background: var(--cream); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.92rem; font-weight: 600; color: var(--charcoal-2); margin-bottom: 7px; letter-spacing: 0.02em; }
.input, .select, .textarea {
  width: 100%; background: var(--cream); color: var(--charcoal-2);
  border: 1.5px solid var(--border-mid); border-radius: var(--radius);
  padding: 13px 16px; font-family: var(--font-body); font-size: 1.02rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.section--alt .input,
.section--alt .select,
.section--alt .textarea { background: var(--white); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(233, 79, 55, 0.15);
}
.input::placeholder { color: var(--muted-2); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b4b9b2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.textarea { resize: vertical; min-height: 110px; }

.radio-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 15px 17px;
  border: 1.5px solid var(--border-mid); border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-row.active { border-color: var(--red); background: var(--red-soft); }
.radio-row input { accent-color: var(--red); margin-top: 4px; }
.radio-row .rl { font-size: 1.02rem; font-weight: 600; color: var(--charcoal-2); }
.radio-row .rd { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }

.checkbox-row {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
}
.checkbox-row input { accent-color: var(--red); margin-top: 5px; flex-shrink: 0; }
.checkbox-row p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex; gap: 8px; padding: 6px; background: var(--white);
  border: 1px solid var(--border); border-radius: 10px; margin-bottom: 32px;
}
.section--alt .tabs { background: var(--cream); }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.95rem; font-weight: 600; color: var(--muted);
  padding: 10px 20px; border-radius: 7px;
  border: none; background: none; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.tab svg { width: 15px; height: 15px; }
.tab.active { background: var(--red); color: #fff; }
.tab:not(.active):hover { background: var(--red-soft); color: var(--charcoal-2); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Project shots ---------- */
.feat-list { margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.feat-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 1rem; color: var(--charcoal);
}
.feat-list li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--red); margin-top: 3px; }
.proj-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.proj-shot { aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--cream-alt); }
@media (max-width: 600px) { .proj-shots { grid-template-columns: 1fr; } }

/* ---------- Patent cards ---------- */
.patent__head {
  display: flex; align-items: flex-start; gap: 16px; width: 100%;
  padding: 0; background: none; cursor: pointer; text-align: left;
}
.patent__body { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.card[data-accordion-item].open .patent__body { max-height: 1000px; }
.patent__body-inner { padding-top: 20px; border-top: 1px solid var(--border); margin-top: 16px; }
.inv-card {
  padding: 14px 16px; background: var(--cream-alt);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.section--alt .inv-card { background: var(--white); }
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red);
  border: 1px solid var(--red-mid);
}
.kv { font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

/* ---------- Market rates table (patents) ---------- */
.market-table {
  width: 100%; min-width: 480px; border-collapse: collapse; margin-top: 16px; font-size: 0.88rem;
}
.market-table th {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); background: var(--cream); padding: 10px 16px; text-align: left;
  border-bottom: 1px solid var(--border);
}
.market-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  color: var(--charcoal); vertical-align: top;
}
.market-table tr:last-child td { border-bottom: none; }
.market-table tr:hover td { background: var(--red-soft); }
.market-table .ecs-row td { color: var(--red); font-weight: 700; background: var(--red-soft); }
.market-table .ecs-row:hover td { background: var(--red-mid); }

/* ---------- Footer ---------- */
.footer {
  background: #080a0d;
  color: color-mix(in srgb, var(--on-dark) 85%, transparent);
  padding: 72px 0 0;
  position: relative;
  border-top: 1px solid var(--border);
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px;
  padding-bottom: 56px;
}
.footer__logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__logo svg { flex-shrink: 0; }
.footer__wm { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.footer__wm .wm-top {
  font-family: "Times New Roman", Times, serif;
  font-weight: 700; font-size: 1.45rem; letter-spacing: 0.05em;
  color: var(--on-dark);
}
.footer__wm .wm-sub {
  font-size: 0.64rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: color-mix(in srgb, var(--on-dark) 50%, transparent);
}
.footer__brand .quote {
  font-style: italic; font-size: 0.98rem; color: color-mix(in srgb, var(--on-dark) 55%, transparent);
  border-left: 2px solid var(--red); padding-left: 14px;
  line-height: 1.6; margin-bottom: 12px;
}
.footer h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--red); margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a, .footer__contact li { font-size: 0.98rem; color: var(--on-dark-mid); transition: color 0.2s; }
.footer__links a:hover { color: var(--on-dark); }
.footer__contact { display: flex; flex-direction: column; gap: 14px; }
.footer__contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer__contact .ic { color: var(--red); flex-shrink: 0; margin-top: 4px; }
.footer__contact a:hover { color: var(--on-dark); }
.footer__bottom {
  border-top: 1px solid var(--on-dark-faint);
  padding: 20px 28px;
  font-size: 0.84rem; color: color-mix(in srgb, var(--on-dark) 35%, transparent);
  font-family: var(--font-mono);
  text-align: center;
}
@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- WhatsApp badge (brand green — never themed) ---------- */
.wa-badge {
  position: fixed; bottom: 24px; right: 24px; z-index: 800;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #25D366, #1db954);
  color: #fff;
  padding: 12px 20px 12px 14px; border-radius: 999px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 230px;
  animation: wa-ring 3s ease-in-out infinite;
}
@keyframes wa-ring {
  0%   { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.3); }
  70%  { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-badge:hover { transform: scale(1.05); box-shadow: 0 6px 36px rgba(37, 211, 102, 0.55); }
.wa-badge__icon { width: 28px; height: 28px; flex-shrink: 0; }
.wa-badge__icon svg { width: 100%; height: 100%; }
.wa-badge__text { display: flex; flex-direction: column; gap: 1px; }
.wa-t1 { font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.wa-t2 { font-size: 0.72rem; opacity: 0.85; white-space: nowrap; }
@media (max-width: 440px) { .wa-badge__text { display: none; } .wa-badge { padding: 12px; } }

/* ---------- Theme switcher ---------- */
.theme-fab {
  position: fixed; bottom: 24px; left: 24px; z-index: 850;
}
.theme-fab__btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--white); color: var(--charcoal-2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-mid);
  transition: transform 0.2s, box-shadow 0.2s;
}
.theme-fab__btn:hover { transform: scale(1.07); box-shadow: var(--shadow-lg); }
.theme-fab__btn svg { width: 24px; height: 24px; }

.theme-panel {
  position: absolute; bottom: 64px; left: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.97);
  transform-origin: bottom left;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.theme-panel.open { opacity: 1; visibility: visible; transform: none; }
.theme-panel__title {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  padding: 4px 10px 10px;
}
.theme-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px 10px;
  border-radius: 10px; text-align: left;
  font-size: 0.98rem; font-weight: 600; color: var(--charcoal);
  transition: background 0.15s;
}
.theme-opt:hover { background: var(--cream-alt); }
.theme-opt.active { background: var(--red-soft); color: var(--charcoal-2); }
.theme-opt__dots { display: flex; flex-shrink: 0; }
.theme-opt__dots span {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--on-dark-faint);
  box-shadow: 0 0 0 1px var(--border-mid);
}
.theme-opt__dots span + span { margin-left: -6px; }
.theme-opt .check {
  margin-left: auto; color: var(--red); opacity: 0;
  width: 16px; height: 16px; flex-shrink: 0;
}
.theme-opt.active .check { opacity: 1; }
@media (max-width: 440px) { .theme-panel { width: 210px; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 1; transform: none; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
body.js-ready .reveal { opacity: 0; transform: translateY(28px); }
body.js-ready .reveal[data-delay="1"] { transition-delay: 0.1s; }
body.js-ready .reveal[data-delay="2"] { transition-delay: 0.2s; }
body.js-ready .reveal[data-delay="3"] { transition-delay: 0.3s; }
body.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  body.js-ready .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero entrance ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero__badge,
.hero__inner h1,
.hero__sub,
.hero__type,
.hero__cta,
.hero__stats { animation: rise-in 0.7s var(--ease) backwards; }
.hero__inner h1 { animation-delay: 0.12s; }
.hero__sub      { animation-delay: 0.24s; }
.hero__type     { animation-delay: 0.34s; }
.hero__cta      { animation-delay: 0.44s; }
.hero__stats    { animation-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  .hero__badge, .hero__inner h1, .hero__sub, .hero__type, .hero__cta, .hero__stats { animation: none; }
}

/* ---------- Why-ECS split section ---------- */
.ecs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
@media (max-width: 900px) { .ecs-split { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   ADMIN — login + dashboard
   ============================================================ */

.admin-login {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: #0f1316;
  position: relative; overflow: hidden;
  padding: 40px 20px;
}
.admin-login .grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(232,237,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,237,229,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.admin-login .ambient-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(233, 79, 55, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(233, 79, 55, 0.10) 0%, transparent 40%);
  pointer-events: none;
}
.admin-login__card {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px;
  animation: rise-in 0.55s var(--ease) backwards;
}
.admin-login__box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-mid);
  position: relative; overflow: hidden;
}
.admin-login__box::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--red-dark));
}
.admin-login__head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.admin-login__head .ic {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red);
  border: 1px solid var(--red-mid);
}
.admin-login__head h3 { font-size: 1.35rem; color: var(--charcoal-2); }
.admin-login__head p {
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 2px;
}
.admin-login__err {
  display: none;
  color: #f87171; font-size: 0.92rem;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
  padding: 10px 14px; border-radius: 10px; margin-bottom: 16px;
}
.admin-login__foot {
  text-align: center;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--on-dark-soft);
  margin-top: 26px;
}

/* ---------- Admin layout ---------- */
.admin-wrap {
  display: flex; min-height: 100vh;
  background: var(--cream);
}

.admin-side {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 950;
  width: 250px;
  background: #0f1316;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  transition: transform 0.3s var(--ease);
}
.admin-side__top {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--on-dark-faint);
}
.admin-side__top p {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-dark-mid);
}

.admin-nav {
  flex: 1; padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto;
}
.admin-nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.98rem; font-weight: 600;
  color: var(--on-dark-mid);
  position: relative;
  transition: background 0.18s, color 0.18s;
}
.admin-nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav button:hover { background: var(--on-dark-faint); color: var(--on-dark); }
.admin-nav button.active {
  background: color-mix(in srgb, var(--red) 18%, transparent);
  color: var(--on-dark);
}
.admin-nav button.active::before {
  content: '';
  position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px;
  border-radius: 3px; background: var(--red);
}

.admin-side .logout {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px; border-radius: 10px;
  font-size: 0.92rem; font-weight: 600;
  color: color-mix(in srgb, var(--on-dark) 55%, transparent);
  transition: background 0.18s, color 0.18s;
}
.admin-side .logout:hover { background: rgba(233, 79, 55, 0.16); color: #f87171; }
.admin-side > div:last-child { border-top-color: var(--on-dark-faint) !important; }

.admin-main {
  flex: 1; min-width: 0;
  margin-left: 250px;
  display: flex; flex-direction: column;
}
.admin-topbar {
  position: sticky; top: 0; z-index: 700;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.14em; color: var(--muted);
}
.admin-content {
  padding: 32px 28px 64px;
  max-width: 1240px; width: 100%;
}
.admin-content h2 { font-size: 1.9rem; }

/* ---------- Stat cards ---------- */
.stat-card {
  display: flex; align-items: center; gap: 16px;
  padding: 24px;
}
.stat-card .num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 2.2rem; line-height: 1; color: var(--charcoal-2);
}
.stat-card .lbl {
  font-family: var(--font-mono); font-size: 0.74rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}

/* ---------- Tables ---------- */
.table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table-wrap__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.table-wrap__head h3 { font-size: 1.3rem; }
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap thead th {
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; color: var(--muted);
  background: var(--cream);
  padding: 12px 24px;
  white-space: nowrap;
}
.table-wrap tbody td {
  padding: 15px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.98rem;
  color: var(--charcoal);
  vertical-align: top;
}
.table-wrap tbody tr { transition: background 0.15s; }
.table-wrap tbody tr:hover { background: var(--red-soft); }

@media (max-width: 900px) {
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 640px; }
}

/* ---------- Upload drop zone (admin team photos) ---------- */
.upload-zone {
  border: 2px dashed var(--border-mid); border-radius: var(--radius);
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--cream);
  min-height: 100px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--red); background: var(--red-soft);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.upload-zone svg { color: var(--muted); }
.upload-zone span { font-size: 0.88rem; color: var(--muted); }
.upload-zone img { max-height: 80px; max-width: 100%; border-radius: 8px; object-fit: cover; }
.upload-zone .upload-fn { font-size: 0.78rem; color: var(--muted-2); margin-top: 4px; }
.upload-zone .uploading { font-family: var(--font-mono); font-size: 0.8rem; color: var(--red); animation: pulse 1.5s ease-in-out infinite; }

/* ---------- Admin responsive ---------- */
@media (max-width: 768px) {
  .admin-side { transform: translateX(-100%); box-shadow: none; }
  .admin-side.open { transform: none; box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5); }
  .admin-main { margin-left: 0; }
  .admin-content { padding: 24px 18px 56px; }
  .admin-content h2 { font-size: 1.6rem; }
}

/* ---------- Utility ---------- */
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
