/* -------------------------------------------------------------
   BLE LIMITED — company site
   Company frame: red / near-black / off-white / warm neutral.
   Products override to their own palettes.
------------------------------------------------------------- */

:root {
  /* Company frame */
  --ble-red:   #A6271C;
  --ble-red-2: #7E1C13;
  --ble-black: #141414;
  --ble-white: #F6F2EC;
  --ble-warm:  #E8DFD3;
  --ble-line:  #1414141F;

  /* JAD */
  --jad-navy:  #0F172A;
  --jad-blue:  #3B82F6;
  --jad-bg:    #F8FAFC;
  --jad-line:  #0F172A22;

  /* Chop Chop */
  --cc-red:    #E8472B;
  --cc-orange: #F2A03D;
  --cc-amber:  #FFD27A;
  --cc-green:  #1E7A4D;
  --cc-cream:  #FBE4C9;

  /* Type */
  --font-frame: 'Figtree', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-italic: 'Fraunces', Georgia, serif;
  --font-jad:   'Plus Jakarta Sans', system-ui, sans-serif;
  --font-cc:    'Fraunces', Georgia, serif;
  --font-cc-ui: 'DM Sans', system-ui, sans-serif;

  --wrap-w: 1240px;
  --pad-x:  24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Native scrolls (URL hash, scrollIntoView) land below the sticky header
   so the section heading is never covered. JS-driven scrolls already
   apply their own header offset. */
section[id],
.products-anchor,
#top {
  scroll-margin-top: 80px;
}
body {
  margin: 0;
  font-family: var(--font-frame);
  color: var(--ble-black);
  background: var(--ble-white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.italic {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- Section number system ---------- */
.section-num {
  font-family: var(--font-frame);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ble-red);
  display: inline-block;
}
.section-name {
  display: block;
  font-family: var(--font-frame);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ble-black);
  opacity: 0.7;
  margin-top: 6px;
}
.eyebrow {
  font-family: var(--font-frame);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ble-red);
  margin: 0 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--ble-white);
  border-bottom: 1px solid var(--ble-line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.2);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.wordmark, .footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ble-black);
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark {
  font-family: var(--font-frame);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ble-black);
  line-height: 1;
}
.wordmark-sub {
  font-family: var(--font-frame);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--ble-black);
  line-height: 1;
}
.nav { position: relative; }
.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-list a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ble-black);
  padding: 8px 0;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ble-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-list a:hover { text-decoration: none; }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 14px 12px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible {
  outline: 2px solid var(--ble-red);
  outline-offset: 4px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ble-black);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--ble-white);
  padding: 96px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--ble-line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.5;
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero-title {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ble-black);
  margin: 0 0 40px;
  max-width: 14ch;
}
.hero-title .italic {
  color: var(--ble-black);
}
.hero-rule {
  width: 80px;
  height: 2px;
  background: var(--ble-red);
  margin: 0 0 24px;
}

/* ---------- Thesis / About / Contact / Partners: shared two-column grid ---------- */
.thesis, .partners, .about, .contact {
  padding: 96px 0;
  background: var(--ble-white);
  border-top: 1px solid var(--ble-line);
}
.partners { background: var(--ble-warm); }
.about { background: var(--ble-black); color: var(--ble-white); border-top-color: var(--ble-black); }
.about .section-num { color: var(--cc-amber); opacity: 1; }
.about .section-name { color: var(--ble-white); opacity: 0.7; }

.thesis-grid, .partners-grid, .about-grid, .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.thesis-body p, .partners-body p, .about-body p, .contact-body p {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  max-width: 32ch;
}
.thesis-body p + p, .about-body p + p { margin-top: 1em; }

.partners-body h2, .contact-body h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.partners-body p {
  font-size: clamp(18px, 1.8vw, 22px);
  max-width: 44ch;
}
.partners-cta {
  margin-top: 24px;
  font-size: 18px;
}
.partners-cta a {
  color: var(--ble-red);
  border-bottom: 1px solid var(--ble-red);
  padding-bottom: 2px;
}
.partners-cta a:hover { text-decoration: none; opacity: 0.75; }

.about-body p { max-width: 40ch; }

/* ---------- Contact ---------- */
.contact-email {
  display: inline-block;
  margin-top: 32px;
  font-family: var(--font-frame);
  font-size: clamp(26px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ble-black);
  border-bottom: 2px solid var(--ble-red);
  padding-bottom: 6px;
  transition: color 150ms ease, border-color 150ms ease;
}
.contact-email:hover {
  text-decoration: none;
  color: var(--ble-red);
}

/* ---------- Products framing ---------- */
.products-anchor { display: block; height: 0; }

.product {
  padding: 112px 0 120px;
  position: relative;
  border-top: 1px solid transparent;
}
.product-wrap { position: relative; }

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid currentColor;
}
.product-index { flex-shrink: 0; }

.product-mark {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 48px;
  padding: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.product-mark-jad {
  font-family: var(--font-jad);
  color: var(--jad-blue);
  font-size: clamp(72px, 15vw, 200px);
}
.product-mark-cc {
  font-family: var(--font-cc);
  color: var(--cc-red);
  font-size: clamp(56px, 12vw, 156px);
}

.product-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 18ch;
  margin: 0 0 48px;
}
.product-title em { font-style: italic; font-weight: 500; }

.product-body {
  max-width: 62ch;
  margin: 0 0 72px;
}
.product-lede {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.product-body p:not(.product-lede) {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
  opacity: 0.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 64px;
}
.feature {
  border-top: 1px solid currentColor;
  padding-top: 20px;
}
.feature-num {
  font-family: var(--font-frame);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
  opacity: 0.55;
}
.feature h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  font-weight: 800;
}
.feature p {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
  margin: 0;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid currentColor;
  font-family: var(--font-frame);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  user-select: none;
}
.badge-icon { width: 14px; height: 14px; }

/* ---------- PRODUCT: JAD ---------- */
.product-jad {
  background: var(--jad-bg);
  color: var(--jad-navy);
  font-family: var(--font-jad);
}
.product-jad .product-head { border-bottom-color: var(--jad-line); }
.product-jad .feature { border-top-color: var(--jad-line); }
.product-jad .section-num { color: var(--jad-blue); opacity: 1; }
.product-jad .section-name { color: var(--jad-navy); opacity: 0.7; }
.product-jad .product-title {
  color: var(--jad-navy);
  font-weight: 600;
  letter-spacing: -0.035em;
}
.product-jad .product-title em { color: var(--jad-blue); }
.product-jad .feature h3 { font-weight: 600; }
.badge-jad { color: var(--jad-blue); border-color: var(--jad-blue); }

/* JAD background: subtle blueprint grid */
.product-jad {
  position: relative;
  overflow: hidden;
}
.product-jad::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--jad-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--jad-line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}
.product-jad .wrap { position: relative; z-index: 1; }

/* ---------- PRODUCT: CHOP CHOP ---------- */
.product-cc {
  background: var(--cc-cream);
  color: #2A1A0E;
  font-family: var(--font-cc-ui);
  overflow: hidden;
  position: relative;
}
.product-cc .product-head { border-bottom-color: #2A1A0E33; }
.product-cc .feature { border-top-color: #2A1A0E33; }
.product-cc .section-num { color: var(--cc-red); }
.product-cc .section-name { color: #2A1A0E; opacity: 0.75; }
.product-cc .product-title {
  font-family: var(--font-cc);
  font-weight: 700;
  color: var(--cc-red);
  letter-spacing: -0.03em;
}
.product-cc .product-title em {
  color: var(--cc-green);
  font-family: var(--font-cc);
  font-style: italic;
  font-weight: 500;
}
.product-cc .feature h3 {
  font-family: var(--font-cc);
  font-weight: 700;
  color: var(--cc-red);
}
.cc-feature-grid { gap: 32px; }
.badge-cc {
  color: var(--cc-green);
  border-color: var(--cc-green);
  background: transparent;
}
/* Chop chop: warm colour bands as background flourish */
.product-cc::before {
  content: "";
  position: absolute;
  top: 0; right: -4%; width: 40vw; height: 100%;
  background-image:
    repeating-linear-gradient(
      -30deg,
      var(--cc-orange) 0 24px,
      var(--cc-amber) 24px 48px,
      var(--cc-cream) 48px 90px
    );
  opacity: 0.18;
  pointer-events: none;
}
.product-cc .wrap { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ble-black);
  color: var(--ble-white);
  padding: 72px 0 40px;
}
.footer-wrap {
  display: grid;
  gap: 48px;
}
.footer-brand .wordmark-mark,
.footer-brand .wordmark-sub {
  color: var(--ble-white);
  opacity: 1;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.footer-key {
  font-family: var(--font-frame);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ble-white);
  opacity: 0.55;
  margin-bottom: 4px;
}
.footer-col a { color: var(--ble-white); opacity: 0.9; }
.footer-col a:hover { opacity: 1; }
.footer-legal {
  border-top: 1px solid #ffffff1a;
  padding-top: 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ble-white);
  opacity: 0.6;
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .thesis-grid, .partners-grid, .about-grid, .contact-grid {
    grid-template-columns: 220px 1fr;
    gap: 64px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-wrap {
    grid-template-columns: 200px 1fr;
    align-items: start;
    gap: 64px;
  }
  .footer-legal { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  :root { --pad-x: 40px; }
  .hero { padding: 140px 0 180px; }
  .thesis, .partners, .about, .contact { padding: 128px 0; }
  .product { padding: 140px 0 160px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .cc-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .cc-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile nav */
@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; }
  .header-wrap { min-height: 64px; }
  .product-head { flex-direction: column; }
  .product-mark { margin-bottom: 40px; }
}

/* ---------- Mobile full-screen menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--ble-white);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0ms linear 400ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0ms linear 0ms;
}
.mobile-menu-inner {
  min-height: 100dvh;
  max-width: var(--wrap-w);
  margin: 0 auto;
  padding: 96px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
}
.mobile-menu-list {
  list-style: none;
  padding: 24px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.mobile-menu-item {
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open .mobile-menu-item {
  opacity: 1;
  transform: none;
}
.mobile-menu.is-open .mobile-menu-item:nth-child(1) { transition-delay: 80ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(2) { transition-delay: 140ms; }
.mobile-menu.is-open .mobile-menu-item:nth-child(3) { transition-delay: 200ms; }
.mobile-menu-num {
  display: block;
  font-family: var(--font-frame);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ble-red);
  margin-bottom: 6px;
}
.mobile-menu-list a {
  display: inline-block;
  font-family: var(--font-frame);
  font-weight: 800;
  font-size: clamp(38px, 11vw, 60px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ble-black);
  text-decoration: none;
  transition: color 200ms ease;
}
.mobile-menu-list a:hover,
.mobile-menu-list a:focus-visible {
  color: var(--ble-red);
  text-decoration: none;
}
.mobile-menu-foot {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--ble-red);
  font-family: var(--font-frame);
  font-size: 14px;
  color: var(--ble-black);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.is-open .mobile-menu-foot {
  opacity: 0.55;
  transform: none;
  transition-delay: 260ms;
}
.mobile-menu-foot a {
  color: inherit;
  text-decoration: none;
}
.mobile-menu-foot a:hover { color: var(--ble-red); opacity: 1; }
@media (min-width: 720px) {
  .mobile-menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu.is-open,
  .mobile-menu-item,
  .mobile-menu.is-open .mobile-menu-item,
  .mobile-menu-foot,
  .mobile-menu.is-open .mobile-menu-foot {
    transition: none;
    transform: none;
  }
  .mobile-menu.is-open .mobile-menu-item,
  .mobile-menu.is-open .mobile-menu-foot {
    opacity: 1;
  }
  .mobile-menu.is-open .mobile-menu-foot { opacity: 0.55; }
}

/* ---------- Privacy pages ---------- */
.privacy-page {
  background: var(--ble-white);
  color: var(--ble-black);
  min-height: 100vh;
  padding: 64px 0 96px;
}
.privacy-page .wrap { max-width: 760px; }
.privacy-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ble-line);
  margin-bottom: 56px;
  font-family: var(--font-frame);
  font-size: 14px;
}
.privacy-nav a {
  color: var(--ble-red);
  border-bottom: 1px solid transparent;
}
.privacy-nav a:hover { text-decoration: none; border-bottom-color: var(--ble-red); }
.privacy-page h1 {
  font-family: var(--font-frame);
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: var(--ble-black);
}
.privacy-page .privacy-sub {
  font-family: var(--font-frame);
  font-weight: 600;
  font-size: 12px;
  color: var(--ble-red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 40px;
}
.privacy-page h2 {
  font-family: var(--font-frame);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 48px 0 12px;
  color: var(--ble-black);
}
.privacy-page p, .privacy-page li {
  font-family: var(--font-frame);
  font-size: 17px;
  line-height: 1.65;
}
.privacy-page ul {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 1em;
}
.privacy-page li { margin-bottom: 8px; }
.privacy-page a {
  color: var(--ble-red);
  border-bottom: 1px solid var(--ble-red);
}
.privacy-page a:hover { text-decoration: none; opacity: 0.75; }
.privacy-effective {
  font-family: var(--font-frame);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ble-black);
  opacity: 0.7;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--ble-line);
}

/* ---------- Scroll reveal ----------
   The .reveal class is applied by script.js; if JS never runs,
   elements stay at their natural visible state. */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
