/* Hallmark · macrostructure: Bento Grid · nav: N1b · footer: Ft3 · hero: H2 · theme: dark-hud · knobs: tiles=9, spans=irregular, accent=corner-only · pre-emit: P5 H5 E5 S5 R5 V5 · contrast: pass (40-41) · slop: pass (42-45) · mobile: pass (34,49,50-57) */

:root {
  /* OKLCH & Hex Color Palette - Dark HUD Cyan & Gold */
  --ekp-bg: #060b14;
  --ekp-bg-2: #0b1422;
  --ekp-panel: #101d30;
  --ekp-panel-hover: #16263f;
  --ekp-line: rgba(41, 163, 220, 0.22);
  --ekp-line-hi: rgba(95, 208, 255, 0.45);
  --ekp-cyan: #29A3DC;
  --ekp-cyan-hi: #5FD0FF;
  --ekp-gold: #F2B933;
  --ekp-gold-muted: rgba(242, 185, 51, 0.18);
  --ekp-text: #E6EEF7;
  --ekp-muted: #8FA6BD;
  --ekp-dim: #50677e;
  
  /* Semantic 4-Layer Surface Tokens */
  --color-paper: var(--ekp-bg);
  --color-paper-2: var(--ekp-bg-2);
  --color-panel: var(--ekp-panel);
  --color-rule: var(--ekp-line);
  --color-neutral: var(--ekp-muted);
  --color-muted: var(--ekp-dim);
  --color-ink: var(--ekp-text);
  --color-accent: var(--ekp-cyan);
  --color-accent-ink: #060b14;
  --color-gold: var(--ekp-gold);
  --color-focus: var(--ekp-cyan-hi);
  
  /* Typography Scale */
  --font-display: "Cabinet Grotesk", "Big Shoulders Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Switzer", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Spacing Scale - 4pt Based */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 9rem;
  
  /* Layout Constraints */
  --site-max-width: 1280px;
  --content-max-width: 68ch;
  --header-height: 72px;
  --banner-height: 0px;
  
  /* Z-index Scale */
  --z-base: 1;
  --z-raised: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sticky-nav: 300;
  --z-modal: 400;
  --z-toast: 500;
  
  /* Component Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-card: 16px;
  --radius-pill: 9999px;
  
  /* Motion Constants */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --dur-micro: 120ms;
  --dur-short: 200ms;
  --dur-med: 320ms;
}

/* Base Document Reset */
html, body {
  overflow-x: clip;
  margin: 0;
  padding: 0;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-short) var(--ease-out);
}

/* Headings: Uppercase, Condensed, Heavy, Strict Non-Italic */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  margin-top: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-top: 0;
  margin-bottom: var(--space-md);
}

/* Layout Utilities */
.ekp-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

@media (min-width: 768px) {
  .ekp-container {
    padding-inline: var(--space-xl);
  }
}

.ekp-section {
  padding-block-start: var(--space-2xl);
  padding-block-end: calc(var(--space-2xl) * 1.3);
  position: relative;
}

.ekp-section-alt {
  background-color: var(--color-paper-2);
  border-block: 1px solid var(--color-rule);
}

/* HUD Corner Bracket Frame */
.ekp-frame-corner {
  position: relative;
  border: 1px solid var(--color-rule);
  padding: var(--space-lg);
  background-color: var(--color-panel);
}

.ekp-frame-corner::before,
.ekp-frame-corner::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

.ekp-frame-corner::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--ekp-cyan);
  border-left: 2px solid var(--ekp-cyan);
}

.ekp-frame-corner::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid var(--ekp-cyan);
  border-right: 2px solid var(--ekp-cyan);
}

/* Section Label with Slashes //// */
.ekp-sec-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ekp-cyan);
  margin-bottom: var(--space-xs);
  line-height: 1;
}

.ekp-sec-label::after {
  content: "////";
  color: var(--ekp-gold);
  letter-spacing: -0.05em;
  font-weight: 800;
}

/* Hexagonal Number Badge: 01, 02, 03, 04 */
.ekp-badge-hex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: var(--color-panel);
  border: 1px solid var(--ekp-cyan);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  color: var(--ekp-gold);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* Card: 14-16px Radius, Hairline Border, Panel Bg */
.ekp-card {
  position: relative;
  background-color: var(--color-panel);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: border-color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}

.ekp-card:hover {
  border-color: var(--ekp-line-hi);
  background-color: var(--ekp-panel-hover);
}

/* Buttons: Primary Pill + Ghost */
.ekp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  min-height: 42px;
  border: 1px solid transparent;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}

.ekp-btn:active {
  transform: scale(0.98);
}

.ekp-btn:disabled,
.ekp-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.ekp-btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  min-height: 34px;
}

.ekp-btn-primary {
  background-color: var(--ekp-cyan);
  color: var(--color-accent-ink);
  border-color: var(--ekp-cyan);
}

.ekp-btn-primary:hover {
  background-color: var(--ekp-cyan-hi);
  border-color: var(--ekp-cyan-hi);
  color: var(--color-accent-ink);
}

.ekp-btn-ghost {
  background-color: transparent;
  color: var(--color-ink);
  border-color: var(--color-rule);
}

.ekp-btn-ghost:hover {
  border-color: var(--ekp-cyan);
  color: var(--ekp-cyan-hi);
  background-color: rgba(41, 163, 220, 0.08);
}

.ekp-btn-gold {
  background-color: var(--ekp-gold);
  color: var(--color-accent-ink);
  border-color: var(--ekp-gold);
}

.ekp-btn-gold:hover {
  background-color: #ffd257;
  border-color: #ffd257;
  color: var(--color-accent-ink);
}

.ekp-btn-arrow {
  display: inline-block;
  font-size: 1.1em;
  transition: transform var(--dur-short) var(--ease-out);
}

.ekp-btn:hover .ekp-btn-arrow {
  transform: translate(2px, -2px);
}

/* Focus Visible Compliance */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.ekp-btn:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* Horizontal Rail for Mobile Scrolling */
.ekp-rail {
  width: 100%;
}

@media (max-width: 768px) {
  .ekp-rail {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--ekp-line) transparent;
  }
  
  .ekp-rail-track {
    display: flex;
    gap: var(--space-md);
    width: max-content;
  }
  
  .ekp-rail-item {
    scroll-snap-align: start;
    flex: 0 0 280px;
  }
}

/* Tables: Self-Scrolling without overflow-x:hidden */
table.ekp-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  border: 1px solid var(--color-rule);
  background-color: var(--color-panel);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  margin: var(--space-lg) 0;
}

table.ekp-table thead,
table.ekp-table tbody {
  min-width: 600px;
  display: table;
  width: 100%;
}

table.ekp-table th,
table.ekp-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-rule);
  font-variant-numeric: tabular-nums;
}

table.ekp-table th {
  background-color: var(--ekp-bg-2);
  color: var(--ekp-cyan);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

table.ekp-table tr:last-child td {
  border-bottom: none;
}

/* Collapsible Read-More Block (SEO Safe) */
.ekp-more {
  position: relative;
  margin-top: var(--space-xl);
}

.ekp-more-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ekp-more-content {
  position: relative;
  max-height: 280px;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}

.ekp-more-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(6, 11, 20, 0) 0%, var(--ekp-bg) 100%);
  pointer-events: none;
  transition: opacity var(--dur-short) var(--ease-out);
}

.ekp-more-input:checked ~ .ekp-more-content,
.ekp-more.is-expanded .ekp-more-content {
  max-height: 8000px;
}

.ekp-more-input:checked ~ .ekp-more-content::after,
.ekp-more.is-expanded .ekp-more-content::after {
  opacity: 0;
  pointer-events: none;
}

.ekp-more-actions {
  text-align: center;
  margin-top: var(--space-md);
  position: relative;
  z-index: var(--z-raised);
}

.ekp-more-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ekp-cyan);
  background-color: var(--color-panel);
  border: 1px solid var(--ekp-line-hi);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}

.ekp-more-btn:hover {
  background-color: var(--ekp-panel-hover);
  color: var(--ekp-cyan-hi);
}

.ekp-more-input:checked ~ .ekp-more-actions .ekp-more-btn-text-more {
  display: none;
}

.ekp-more-input:checked ~ .ekp-more-actions .ekp-more-btn-text-less {
  display: inline;
}

.ekp-more-input:not(:checked) ~ .ekp-more-actions .ekp-more-btn-text-more {
  display: inline;
}

.ekp-more-input:not(:checked) ~ .ekp-more-actions .ekp-more-btn-text-less {
  display: none;
}

/* Bento Grid System */
.ekp-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-md);
}

.ekp-span-3 { grid-column: span 12; }
.ekp-span-4 { grid-column: span 12; }
.ekp-span-6 { grid-column: span 12; }
.ekp-span-8 { grid-column: span 12; }
.ekp-span-12 { grid-column: span 12; }

@media (min-width: 768px) {
  .ekp-span-3 { grid-column: span 6; }
  .ekp-span-4 { grid-column: span 6; }
  .ekp-span-6 { grid-column: span 6; }
  .ekp-span-8 { grid-column: span 8; }
}

@media (min-width: 1024px) {
  .ekp-span-3 { grid-column: span 3; }
  .ekp-span-4 { grid-column: span 4; }
  .ekp-span-6 { grid-column: span 6; }
  .ekp-span-8 { grid-column: span 8; }
  .ekp-span-12 { grid-column: span 12; }
}

/* Header & Navigation */
.ekp-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  background-color: rgba(6, 11, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
  height: var(--header-height);
}

.ekp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-md);
}

.ekp-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ekp-logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.ekp-nav-desktop {
  display: none;
}

.ekp-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ekp-nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-neutral);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  line-height: 1;
}

.ekp-nav-link:hover {
  color: var(--color-ink);
  background-color: rgba(41, 163, 220, 0.08);
}

.ekp-nav-link.is-active,
.ekp-nav-link[aria-current="page"] {
  color: var(--ekp-cyan);
  font-weight: 600;
}

.ekp-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

/* Mobile Drawer Elements */
.ekp-drawer-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.ekp-drawer-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-sm);
  background-color: var(--color-panel);
  color: var(--color-ink);
  cursor: pointer;
  padding: 0;
}

.ekp-hamburger-icon {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ekp-hamburger-line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-ink);
  border-radius: 1px;
}

.ekp-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 11, 20, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: var(--z-modal);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
}

.ekp-drawer-checkbox:checked ~ .ekp-drawer {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.ekp-drawer-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ekp-drawer-link {
  display: flex;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-ink);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--color-rule);
  min-height: 44px;
}

.ekp-drawer-link:hover,
.ekp-drawer-link:focus-visible {
  color: var(--ekp-cyan);
  background-color: rgba(41, 163, 220, 0.08);
}

.ekp-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: auto;
  padding-top: var(--space-md);
}

@media (min-width: 1024px) {
  .ekp-nav-desktop {
    display: block;
  }
  
  .ekp-drawer-toggle,
  .ekp-drawer,
  .ekp-drawer-checkbox {
    display: none;
  }
}

/* Footer Styling */
.ekp-footer {
  background-color: var(--color-paper-2);
  border-top: 1px solid var(--color-rule);
  padding-block-start: var(--space-3xl);
  padding-block-end: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.ekp-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 640px) {
  .ekp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ekp-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ekp-footer-col {
  display: flex;
  flex-direction: column;
}

.ekp-footer-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ekp-cyan);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-2xs);
  border-bottom: 1px solid var(--color-rule);
}

.ekp-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.ekp-footer-link {
  font-size: 0.875rem;
  color: var(--color-neutral);
  line-height: 1.4;
  display: inline-block;
}

.ekp-footer-link:hover {
  color: var(--ekp-cyan-hi);
}

.ekp-footer-audit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-xl);
  text-align: center;
}

.ekp-footer-audit-badges {
  width: 300px;
  height: 85px;
  object-fit: contain;
  filter: brightness(0.95);
}

.ekp-footer-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  font-size: 0.8125rem;
  color: var(--color-neutral);
  text-align: center;
}

.ekp-badge-18plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--ekp-gold);
  border-radius: 50%;
  color: var(--ekp-gold);
  font-weight: 800;
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  line-height: 1;
}

.ekp-trust-link {
  color: var(--color-neutral);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ekp-trust-link:hover {
  color: var(--ekp-cyan-hi);
}

.ekp-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-rule);
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.ekp-footer-support-link {
  color: var(--ekp-cyan);
  font-weight: 600;
}

.ekp-footer-support-link:hover {
  color: var(--ekp-cyan-hi);
  text-decoration: underline;
}

/* Reduced Motion Fallbacks */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}