﻿/* =============================================================
   Kliq. - Sub-page shared styles
   ============================================================= */
@font-face{font-family:'Inter';font-style:normal;font-weight:300;font-display:swap;src:url('/assets/fonts/inter-300.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/inter-500.woff2') format('woff2');}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/inter-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/space-grotesk-500.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/space-grotesk-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/space-grotesk-700.woff2') format('woff2');}

:root {
  color-scheme: dark;
  --blue: #0F18DE;
  --yellow: #F7EB37;
  --black: #0A0A12;
  --white: #F5F5F0;
  --gray-3: rgba(245,245,240,0.45);
  --line: rgba(255,255,255,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
a, button, [role="button"], .cta, .btn-yellow { -webkit-tap-highlight-color: rgba(247, 235, 55, 0.18); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .page-mobile-menu, .modal-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(10,10,18,0.97) !important;
  }
}
body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--yellow); color: var(--black); }

img, svg { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 18, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.page-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--white);
}
.page-logo .dot { color: var(--yellow); }
.page-brand { display: inline-flex; align-items: center; gap: 10px; }
.page-section-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  padding: 3px 9px 2px;
  border: 1px solid rgba(247, 235, 55, 0.35);
  border-radius: 999px;
  line-height: 1;
}
@media (max-width: 600px) {
  .page-section-tag { font-size: 10px; padding: 2px 7px; letter-spacing: 0.1em; }
}
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(245,245,240,0.7);
  transition: color .25s, transform .25s;
}
.page-back:hover { color: var(--yellow); transform: translateX(-3px); }
.page-back svg { transition: transform .25s; }
.page-back:hover svg { transform: translateX(-4px); }

@media (max-width: 700px) {
  .page-nav { padding: 16px 22px; }
  .page-back span { display: none; }
}

/* ---------- HAMBURGER (subpages) ---------- */
.page-burger {
  display: none;
  position: relative;
  width: 48px; height: 48px;
  background: rgba(10, 10, 18, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  cursor: pointer;
  z-index: 250;
  align-items: center;
  justify-content: center;
  transition: border-color .25s;
}
.page-burger:hover { border-color: rgba(247, 235, 55, 0.5); }
.page-burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: var(--yellow);
  transition: transform .35s cubic-bezier(.65,.05,.36,1), opacity .25s, top .35s, bottom .35s;
}
.page-burger span:nth-child(1) { top: 14px; }
.page-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.page-burger span:nth-child(3) { bottom: 14px; }
.page-burger.is-open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.page-burger.is-open span:nth-child(2) { opacity: 0; transform: translateY(-50%) scaleX(0); }
.page-burger.is-open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
@media (max-width: 900px) {
  .page-burger { display: inline-flex; }
}

/* Mobile menu overlay (subpages) */
.page-mobile-menu {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 100px 28px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.page-mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .4s ease, visibility 0s linear 0s;
}
.page-mobile-menu-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.page-mobile-menu .eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--yellow);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.page-mobile-menu .eyebrow::before {
  display: none;
}
.page-mobile-menu .links {
  display: flex;
  flex-direction: column;
}
.page-mobile-menu .links a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  padding: 14px 0;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22,.61,.36,1), color .2s;
}
.page-mobile-menu .links a::after {
  content: '→';
  font-size: 0.5em;
  color: var(--yellow);
  opacity: 0.5;
  transition: transform .3s, opacity .25s;
}
.page-mobile-menu .links a:hover { color: var(--yellow); }
.page-mobile-menu.is-open .links a {
  opacity: 1;
  transform: translateX(0);
}
.page-mobile-menu.is-open .links a:nth-child(1) { transition-delay: 0.15s, 0.15s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(2) { transition-delay: 0.20s, 0.20s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(3) { transition-delay: 0.25s, 0.25s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(4) { transition-delay: 0.30s, 0.30s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(5) { transition-delay: 0.35s, 0.35s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(6) { transition-delay: 0.40s, 0.40s, 0s; }
.page-mobile-menu.is-open .links a:nth-child(7) { transition-delay: 0.45s, 0.45s, 0s; }
.page-mobile-menu .links a .dot { color: var(--yellow); }
.page-mobile-menu .foot {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: rgba(245, 245, 240, 0.6);
}
.page-mobile-menu .foot a { color: var(--yellow); }
.page-mobile-menu .foot .loc { color: rgba(245, 245, 240, 0.5); }

/* ---------- HERO ---------- */
.page-hero {
  position: relative;
  padding: 200px 40px 120px;
  background: var(--blue);
  background-image:
    radial-gradient(ellipse at 80% 20%, rgba(247,235,55,0.08), transparent 50%),
    radial-gradient(ellipse at 20% 100%, rgba(8,13,138,0.6), transparent 60%);
  overflow: hidden;
}
@media (max-width: 700px) {
  .page-hero { padding: 130px 22px 70px; }
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 75%);
}
.page-hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.page-crumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--yellow);
  margin-bottom: 26px;
  opacity: 0;
  animation: pageFadeUp .8s .1s ease forwards;
}
.page-crumbs::before {
  display: none;
}
.page-crumbs a {
  color: rgba(245,245,240,0.6);
  letter-spacing: 0.18em;
  transition: color .2s;
}
.page-crumbs a:hover { color: var(--yellow); }
.page-crumbs .sep { color: rgba(245,245,240,0.3); }

h1.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--white);
  max-width: 16ch;
  opacity: 0;
  animation: pageFadeUp 1s .2s ease forwards;
}
h1.page-title .dot { color: var(--yellow); }

.page-lede {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.8);
  max-width: 640px;
  opacity: 0;
  animation: pageFadeUp 1s .35s ease forwards;
}

.page-meta {
  margin-top: 48px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(247,235,55,0.18);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: rgba(245,245,240,0.7);
  opacity: 0;
  animation: pageFadeUp 1s .5s ease forwards;
  max-width: 100%;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .page-meta { font-size: 11px; padding: 12px 16px; gap: 10px; }
}
.page-meta strong { color: var(--yellow); font-weight: 600; }
.page-meta .pip {
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
}

@keyframes pageFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- BODY CONTENT ---------- */
.page-body {
  position: relative;
  background: var(--black);
  padding: 110px 40px 140px;
  overflow: hidden;
}
.page-body-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}
.page-toc {
  position: sticky;
  top: 110px;
  padding-top: 4px;
}
.page-toc h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 16px;
}
.page-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.page-toc li { counter-increment: toc; }
.page-toc a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(245,245,240,0.55);
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 14px;
  transition: color .25s, border-color .25s, padding-left .25s;
}
.page-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: rgba(245,245,240,0.35);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 11px;
  flex-shrink: 0;
}
.page-toc a:hover {
  color: var(--white);
  border-left-color: var(--yellow);
  padding-left: 18px;
}

.page-content section + section { margin-top: 80px; }
.page-content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: var(--white);
  display: flex;
  align-items: baseline;
  gap: 18px;
}
.page-content h2 .num {
  font-size: 0.5em;
  color: var(--yellow);
  font-weight: 500;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--white);
  letter-spacing: -0.005em;
}
.page-content p {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(245,245,240,0.78);
  margin-bottom: 18px;
  max-width: 68ch;
}
.page-content a {
  color: var(--yellow);
  border-bottom: 1px solid rgba(247,235,55,0.4);
  transition: border-color .2s;
}
.page-content a:hover { border-bottom-color: var(--yellow); }
.page-content strong { color: var(--white); font-weight: 600; }
.page-content ul,
.page-content ol {
  margin: 16px 0 24px 0;
  padding-left: 24px;
}
.page-content ul li,
.page-content ol li {
  font-size: 15.5px;
  line-height: 1.7;
  color: rgba(245,245,240,0.78);
  margin-bottom: 10px;
  max-width: 66ch;
}
.page-content ul li::marker { color: var(--yellow); }
.page-content blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 2px solid var(--yellow);
  background: rgba(247, 235, 55, 0.04);
  border-radius: 4px;
  font-size: 16px;
  color: rgba(245,245,240,0.9);
  font-style: italic;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 32px;
  font-size: 14.5px;
}
.page-content th,
.page-content td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.page-content th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--yellow);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.page-content td { color: rgba(245,245,240,0.78); }

@media (max-width: 900px) {
  .page-body { padding: 70px 24px 100px; }
  .page-body-inner { grid-template-columns: 1fr; gap: 40px; }
  .page-toc { position: static; padding: 22px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); border-radius: 16px; }
  .page-toc h4 { margin-bottom: 12px; }
  .page-toc ol { gap: 0; }
  .page-toc a { padding: 8px 0 8px 12px; border-left-width: 1px; }
}
@media (max-width: 700px) {
  .page-content h2 { font-size: clamp(1.5rem, 5.5vw, 2rem); gap: 12px; flex-wrap: wrap; }
  .page-content h3 { font-size: 17px; }
  .page-content p,
  .page-content ul li,
  .page-content ol li { font-size: 14.5px; }
  .page-content table { font-size: 13px; }
  .page-content th, .page-content td { padding: 10px 8px; }
  .page-content blockquote { padding: 18px 20px; font-size: 14.5px; }
  .kv-row { padding: 22px 0; gap: 18px; }
  .kv-val { font-size: 19px; }
  .tile-grid { gap: 14px; }
  .tile { padding: 22px 20px; }
}

/* ---------- CARDS / TILES ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 24px 0 32px;
}
.tile {
  padding: 26px 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .3s, background .3s, transform .3s;
}
.tile:hover {
  border-color: rgba(247,235,55,0.3);
  background: rgba(255,255,255,0.035);
  transform: translateY(-3px);
}
.tile-num {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--yellow);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.tile h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.tile p {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(245,245,240,0.6);
  margin: 0;
}

/* ---------- INLINE CTA STRIP ---------- */
.page-cta {
  margin-top: 80px;
  padding: 50px 40px;
  background: rgba(247,235,55,0.04);
  border: 1px solid rgba(247,235,55,0.18);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
@media (max-width: 700px) {
  .page-cta {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .page-cta .btn-yellow { width: 100%; justify-content: center; padding: 16px 24px; }
}
.page-cta-text h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 6px;
}
.page-cta-text p {
  font-size: 14px;
  color: rgba(245,245,240,0.7);
  margin: 0;
}
.btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform .3s, background .25s;
  border: none;
  cursor: pointer;
}
.btn-yellow:hover { background: #fff; transform: translateY(-2px); }
.btn-yellow .arrow { transition: transform .3s; }
.btn-yellow:hover .arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.btn-outline:hover { border-color: var(--yellow); background: rgba(247,235,55,0.04); }

/* Force btn colors when nested inside .page-content (which sets links yellow) */
.page-content a.btn-yellow {
  color: var(--black);
  border-bottom: none;
}
.page-content a.btn-yellow:hover { color: var(--black); }
.page-content a.btn-outline {
  color: var(--white);
  border-bottom: none;
}
.page-content a.btn-outline:hover { color: var(--white); }

/* ---------- FOOTER ---------- */
.page-footer {
  background: var(--black);
  padding: 80px 40px 36px;
  border-top: 1px solid var(--line);
}
.page-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.page-footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.page-footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  color: var(--white);
}
.page-footer-logo .dot { color: var(--yellow); }
.page-footer-tag {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(245,245,240,0.5);
  max-width: 280px;
  line-height: 1.5;
}
.page-footer-col h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yellow);
  margin-bottom: 18px;
  font-weight: 600;
}
.page-footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(245,245,240,0.65);
  transition: color .25s;
}
.page-footer-col a:hover { color: var(--yellow); }

.page-footer-col.is-stack-2 {
  column-count: 2;
  column-gap: 32px;
  column-fill: balance;
}
.page-footer-col.is-stack-2 h5 {
  column-span: all;
}
.page-footer-col.is-stack-2 a {
  break-inside: avoid;
}

.page-footer-bottom {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12px;
  color: rgba(245,245,240,0.5);
  letter-spacing: 0.04em;
}
@media (max-width: 800px) {
  .page-footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-footer-col.is-stack-2 { column-count: 1; }
  .page-footer { padding: 60px 24px 28px; }
}

/* ---------- DIVIDER ---------- */
.page-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(247,235,55,0.3), transparent);
  margin: 60px 0;
}

/* ---------- KV STATS ROW ---------- */
.kv-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 32px 0 12px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.kv {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kv-key {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-3);
}
.kv-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
}
.kv-val em { color: var(--yellow); font-style: normal; }

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-form {
  display: grid;
  gap: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 32px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(245,245,240,0.55);
}
.field input,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .25s, background .25s, box-shadow .25s;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 150px; }
.field input:focus,
.field textarea:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(247, 235, 55, 0.08);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(245,245,240,0.55); }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.form-actions .hint {
  font-size: 12px;
  color: rgba(245,245,240,0.5);
}
.contact-info dl {
  display: grid;
  gap: 28px;
}
.contact-info dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 6px;
}
.contact-info dd {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  color: var(--white);
  letter-spacing: -0.005em;
  font-weight: 500;
}
.contact-info dd a {
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: border-color .25s;
}
.contact-info dd a:hover { border-bottom-color: var(--yellow); }
.contact-card {
  margin-top: 32px;
  padding: 24px;
  background: rgba(247, 235, 55, 0.04);
  border: 1px solid rgba(247, 235, 55, 0.18);
  border-radius: 16px;
}
.contact-card .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-card p {
  font-size: 14px;
  color: rgba(245,245,240,0.78);
  margin: 0;
  line-height: 1.55;
}

/* ---------- CONTACT INVITE (remplace le formulaire - contact par e-mail) ---------- */
.contact-invite {
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 38px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
}
.contact-invite-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
  margin-bottom: 18px;
}
.contact-invite-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 16px;
}
.contact-invite-text {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(245,245,240,0.72);
  margin: 0 0 30px;
  max-width: 46ch;
}
.contact-invite .btn-yellow { margin-bottom: 18px; }
.contact-invite-mail {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: rgba(245,245,240,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  transition: color .25s, border-color .25s;
}
.contact-invite-mail:hover { color: var(--yellow); border-bottom-color: var(--yellow); }
@media (max-width: 700px) {
  .contact-invite { padding: 30px 24px; align-items: center; text-align: center; }
  .contact-invite-text { text-align: center; }
  .contact-invite .btn-yellow { width: 100%; justify-content: center; }
}

/* ---------- REVEAL ---------- */
/* Focus visible global (a11y WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* iOS no-zoom on input focus : font-size 16px+ obligatoire */
.field input, .field select, .field textarea,
.scan-fields input, .scan-fields select, .scan-fields textarea,
.field-input { font-size: 16px !important; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   AMBIENT DECORATION LAYER (drifting marks)
   ============================================================= */
.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.ambient + * { position: relative; z-index: 1; }
.ambient-shape {
  position: absolute;
  will-change: transform, opacity;
}
/* Variants */
.ambient.dark .ambient-shape   { --col: 247, 235, 55; --col2: 255, 255, 255; }
.ambient.blue .ambient-shape   { --col: 247, 235, 55; --col2: 255, 255, 255; }
.ambient.yellow .ambient-shape { --col: 15, 24, 222; --col2: 10, 10, 18; }

/* Shapes */
.ambient-shape.diamond {
  width: 12px; height: 12px;
  background: rgba(var(--col), 0.25);
  animation: amDiamondDrift ease-in-out infinite;
}
.ambient-shape.diamond-outline {
  width: 16px; height: 16px;
  border: 1px solid rgba(var(--col), 0.28);
  animation: amDiamondDrift ease-in-out infinite;
}
.ambient-shape.dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(var(--col), 0.35);
  animation: amDotDrift ease-in-out infinite;
}
.ambient-shape.dot-white {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: rgba(var(--col2), 0.25);
  animation: amDotDrift ease-in-out infinite;
}
.ambient-shape.ring {
  width: 28px; height: 28px;
  border: 1px solid rgba(var(--col2), 0.10);
  border-radius: 50%;
  animation: amRingDrift ease-in-out infinite;
}
.ambient-shape.ring-yellow {
  width: 22px; height: 22px;
  border: 1px solid rgba(var(--col), 0.20);
  border-radius: 50%;
  animation: amRingDrift ease-in-out infinite;
}
.ambient-shape.dash {
  width: 24px; height: 1px;
  background: rgba(var(--col), 0.30);
  animation: amDashDrift ease-in-out infinite;
}
.ambient-shape.plus {
  width: 14px; height: 14px;
  animation: amPlusDrift ease-in-out infinite;
}
.ambient-shape.plus::before,
.ambient-shape.plus::after {
  content: '';
  position: absolute;
  background: rgba(var(--col), 0.4);
}
.ambient-shape.plus::before {
  top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%);
}
.ambient-shape.plus::after {
  left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%);
}

@keyframes amDiamondDrift {
  0%, 100% { transform: translate(0, 0) rotate(45deg); opacity: 0.45; }
  50%      { transform: translate(-14px, -34px) rotate(225deg); opacity: 0.9; }
}
@keyframes amDotDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50%      { transform: translate(12px, -28px); opacity: 1; }
}
@keyframes amRingDrift {
  0%, 100% { transform: translate(0, 0) rotate(0); opacity: 0.55; }
  50%      { transform: translate(-8px, -22px) rotate(180deg); opacity: 0.95; }
}
@keyframes amDashDrift {
  0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); opacity: 0.4; }
  50%      { transform: translate(16px, -18px) rotate(calc(var(--r, 0deg) + 25deg)); opacity: 0.85; }
}
@keyframes amPlusDrift {
  0%, 100% { transform: translate(0, 0) rotate(0); opacity: 0.5; }
  50%      { transform: translate(-10px, -26px) rotate(90deg); opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-shape { animation: none !important; opacity: 0.5 !important; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .page-crumbs, .page-title, .page-lede, .page-meta { opacity: 1 !important; animation: none !important; }
}

/* ============================================================
   404 PAGE
   ============================================================ */
.notfound-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 60px;
  position: relative;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(247, 235, 55, 0.06), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(15, 24, 222, 0.4), transparent 60%),
    var(--black);
  overflow: hidden;
}
.notfound-card {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}
.notfound-code {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(7rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--yellow);
  margin-bottom: 14px;
  display: inline-flex;
}
.notfound-code .digit { display: inline-block; }
.notfound-code .zero {
  animation: notfoundEyeRoll 6s ease-in-out infinite;
  color: var(--white);
}
@keyframes notfoundEyeRoll {
  0%, 100% { transform: translate(0, 0); }
  20%      { transform: translate(8px, -4px); }
  40%      { transform: translate(-6px, 6px); }
  60%      { transform: translate(7px, 7px); }
  80%      { transform: translate(-7px, -3px); }
}
.notfound-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 245, 240, 0.5);
  margin-bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.notfound-eyebrow::before,
.notfound-eyebrow::after {
  display: none;
}
.notfound-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 18px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.notfound-title .dot { color: var(--yellow); }
.notfound-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 245, 240, 0.65);
  max-width: 440px;
  margin: 0 auto 36px;
}
.notfound-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.notfound-owl {
  position: absolute;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  width: 70vmin;
  height: 70vmin;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: notfoundOwlFloat 8s ease-in-out infinite;
}
@keyframes notfoundOwlFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -52%) scale(1.04); }
}

/* ----------- Skip to content (a11y) ----------- */
.skip-to-content {
  position: absolute;
  top: -200px;
  left: 16px;
  background: var(--yellow);
  color: var(--black);
  padding: 12px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-to-content:focus {
  top: 16px;
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* ----------- Scan pitch (encart audit gratuit dans le body) ----------- */
.scan-pitch {
  margin: 36px 0 32px 0;
  padding: 32px 28px;
  background:
    linear-gradient(135deg, rgba(247, 235, 55, 0.06) 0%, rgba(247, 235, 55, 0.015) 100%),
    rgba(20, 20, 30, 0.4);
  border: 1px solid rgba(247, 235, 55, 0.22);
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.scan-pitch::before {
  content: '+';
  position: absolute;
  top: 18px;
  left: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  color: var(--yellow);
  opacity: 0.35;
  line-height: 1;
}
.scan-pitch::after {
  content: '+';
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  color: var(--yellow);
  opacity: 0.28;
  line-height: 1;
}
.scan-pitch-badge {
  display: inline-block;
  padding: 5px 11px;
  background: var(--yellow);
  color: var(--black);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.2;
}
.scan-pitch h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.022em;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 14px 0;
}
.scan-pitch h3 .dot { color: var(--yellow); }
.scan-pitch p {
  color: rgba(245, 245, 240, 0.7);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 auto 22px auto;
  max-width: 58ch;
}
.scan-pitch .btn-yellow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--yellow);
  color: var(--black);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.scan-pitch .btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 235, 55, 0.22);
}
.scan-pitch .btn-yellow .arrow { transition: transform .25s ease; }
.scan-pitch .btn-yellow:hover .arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .scan-pitch { padding: 26px 20px; margin: 28px 0; }
  .scan-pitch::before, .scan-pitch::after { font-size: 18px; }
  .scan-pitch p { font-size: 14px; }
}

/* =============================================================
   PRINT - version imprimable propre
   ============================================================= */
@media print {
  *, *::before, *::after { background: transparent !important; color: black !important; box-shadow: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  .page-nav, .page-mobile-menu, .page-burger, .page-footer-shapes, .ambient, canvas, .hero-canvas, .narrative-canvas, [data-ambient], .nf-nav, .skip-to-content, .cta, .btn-yellow, .magnetic, .scan-pitch { display: none !important; }
  a { text-decoration: underline; color: black !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  img, picture, table { break-inside: avoid; page-break-inside: avoid; max-width: 100% !important; }
  .page-hero { padding: 20px 0 !important; }
  .page-body { padding: 20px 0 !important; }
}

/* =============================================================
   PORTFOLIO / RÉALISATIONS - grille de cards
   Dupliquer .realisation-card pour ajouter un projet.
   ============================================================= */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 900px) {
  .realisations-grid { grid-template-columns: 1fr; gap: 24px; }
}
.realisation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s ease, box-shadow .35s ease;
}
.realisation-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247,235,55,0.22);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.6);
}
.realisation-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--blue);
}
.realisation-card-media img,
.realisation-card-media picture {
  width: 100%;
  height: 100%;
  display: block;
}
.realisation-card-media img {
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.realisation-card:hover .realisation-card-media img { transform: scale(1.04); }
.realisation-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,10,18,0.65));
  pointer-events: none;
}
.realisation-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(10,10,18,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(247,235,55,0.32);
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
}
.realisation-card-body {
  padding: 28px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
@media (max-width: 600px) {
  .realisation-card-body { padding: 22px 22px 26px; }
}
.realisation-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(245,245,240,0.55);
}
.realisation-card-meta .pip {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
}
.realisation-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
}
.realisation-card-title .dot { color: var(--yellow); }
.realisation-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245,245,240,0.72);
}
.realisation-card-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0 0;
  margin: 4px 0 0;
  border-top: 1px dashed rgba(255,255,255,0.08);
  list-style: none;
}
.realisation-card-points li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245,245,240,0.7);
}
.realisation-card-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--yellow);
}
.realisation-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--yellow);
  transition: gap .25s ease;
}
.realisation-card-link:hover { gap: 16px; }
.realisation-card-link .arrow { transition: transform .25s ease; }
.realisation-card:hover .realisation-card-link .arrow { transform: translateX(3px); }

/* Card "à venir" (placeholder) */
.realisation-card.is-placeholder {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 14px, transparent 14px 28px);
  border-style: dashed;
  border-color: rgba(255,255,255,0.12);
}
.realisation-card.is-placeholder .realisation-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(15,24,222,0.18), rgba(247,235,55,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.realisation-card.is-placeholder .realisation-card-media::after { display: none; }
.realisation-card.is-placeholder .placeholder-mark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(247,235,55,0.35);
  line-height: 1;
}
.realisation-card.is-placeholder:hover {
  transform: none;
  border-color: rgba(247,235,55,0.22);
  box-shadow: none;
}

/* WCAG : visuellement masque, accessible aux lecteurs d'ecran */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Mobile defaults : img responsive + tap-delay neutralise */
img, picture, video, svg { max-width: 100%; height: auto; }
a, button, [role="button"], .cta, .btn-yellow, .scan-mode { touch-action: manipulation; }

/* Footer NAP - adresse + horaires */
.footer-nap, .page-footer-nap { font-style: normal; line-height: 1.5; color: rgba(245,245,240,0.6); font-size: 13px; margin-top: 4px; }
.footer-hours, .page-footer-hours { display: inline-block; margin-top: 4px; color: rgba(245,245,240,0.5); font-size: 12px; }

/* 404 - liens utiles + NAP */
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px 22px; justify-content: center; margin-top: 28px; }
.notfound-links a { color: rgba(245,245,240,0.7); text-decoration: none; font-size: 14px; padding: 6px 12px; border: 1px solid rgba(247,235,55,0.18); border-radius: 999px; transition: background .2s, color .2s; }
.notfound-links a:hover { background: rgba(247,235,55,0.12); color: var(--yellow); }
.notfound-nap { font-style: normal; text-align: center; margin-top: 22px; color: rgba(245,245,240,0.5); font-size: 13px; line-height: 1.6; }
.notfound-nap a { color: var(--yellow); }

/* ============================================================
   MOBILE FALLBACK - anti-sections-invisibles
   Sur mobile (≤ 768px), l'IntersectionObserver avec rootMargin
   '-60px' peut ne jamais déclencher sur les sections basses des
   pages longues (Tarifs, Services, etc.), laissant des sections
   à opacity:0 indéfiniment. On force la visibilité par défaut :
   l'animation .reveal → .reveal.in continue de fonctionner si
   JS tourne, mais si elle rate, rien ne reste caché.
   ============================================================ */
@media (max-width: 768px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none;
  }
}
