/* =============================================================
   beehavioral.ai — single shared stylesheet.

   Pages identify themselves via a body class:
     <body class="home">            index.html
     <body class="sub stealth">     about.html, customers.html
     <body class="sub privacy">     privacy.html

   "sub" = dark themed sub-page chrome (default for sub-pages).
   "stealth" = giant centered display text (about/customers).
   "privacy" = scrollable policy content with header hierarchy.
   ============================================================= */

/* -------- @font-face: Barlow Condensed (4 weights × 2 styles) -- */

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/barlow-100.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/barlow-200.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/barlow-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 100;
  font-display: swap;
  src: url('fonts/barlow-100-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 200;
  font-display: swap;
  src: url('fonts/barlow-200-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/barlow-300-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-italic.woff2') format('woff2');
}

/* -------- design tokens -------------------------------------- */

:root {
  --bee-yellow: rgb(251, 206, 0);
  --bee-dark: #1a1a1a;
  --bee-dark-2: #262626;
  --bee-darker: #0f0f0f;
  --bee-text-on-yellow: #1a1a1a;
}

/* -------- reset + base --------------------------------------- */

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

html, body {
  font-family: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 100;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

/* -------- nav (shared structure; colors per body class) ------ */

nav {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  padding: 1.5rem 2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

/* -------- footer (shared structure; colors per body class) --- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1rem;
  flex-shrink: 0;
}

.privacy-link {
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* -------- images (shared sizing) ----------------------------- */

.feynman {
  max-width: clamp(207px, 73.6vw, 696px);
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.logo-full {
  max-width: clamp(129px, 46vw, 435px);
  max-height: 100%;
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
}

/* -------- overlay (Creating animation) — shared ------------- */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transform: translateY(10px);
  transition: transform 0.35s ease;
}

.overlay.active .overlay-content {
  transform: translateY(0);
}

.builder {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  height: 48px;
}

.builder span {
  display: block;
  width: 10px;
  background: var(--bee-yellow);
  border-radius: 2px;
  animation: build 1.2s ease-in-out infinite;
}

.builder span:nth-child(1) { animation-delay: 0s; }
.builder span:nth-child(2) { animation-delay: 0.15s; }
.builder span:nth-child(3) { animation-delay: 0.3s; }
.builder span:nth-child(4) { animation-delay: 0.45s; }
.builder span:nth-child(5) { animation-delay: 0.6s; }

@keyframes build {
  0%, 100% { height: 10px; opacity: 0.4; }
  50%      { height: 48px; opacity: 1; }
}

.building-text {
  font-size: 1.1rem;
  font-weight: 100;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bee-yellow);
}

@keyframes glow {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.home main::before,
  body.home .logo-strip::before {
    animation: none;
  }
}

/* =============================================================
   HOME page — index.html — body.home
   ============================================================= */

body.home {
  height: 100vh;
  background-color: var(--bee-dark);
  color: var(--bee-text-on-yellow);
}

body.home .nav-links a {
  color: var(--bee-yellow);
  background: var(--bee-dark);
}

body.home .nav-links a:hover {
  background: var(--bee-yellow);
  color: var(--bee-dark);
}

body.home main {
  position: relative;
  overflow: hidden;
  flex: 0 0 50vh;
  height: 50vh;
  background-color: var(--bee-yellow);
  background-image: url('images/bg-pattern.svg');
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.home main::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(255, 255, 235, 0.95) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(140, 85, 0, 0.7) 0%, transparent 60%);
  animation: glow 8s ease-in-out infinite alternate;
}

body.home main > * {
  position: relative;
}

body.home .feynman-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  min-height: 0;
}

body.home .logo-strip {
  position: relative;
  overflow: hidden;
  flex: 0 0 50vh;
  height: 50vh;
  width: 100%;
  background-color: var(--bee-dark-2);
  background-image: url('images/bg-pattern-dark.svg');
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.home .logo-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 25% 35%, rgba(255, 220, 100, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(0, 0, 0, 0.55) 0%, transparent 60%);
  animation: glow 8s ease-in-out infinite alternate;
}

body.home .logo-strip > * {
  position: relative;
}

body.home .logo-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem;
  min-height: 0;
}

body.home .site-footer {
  background: transparent;
  padding: 1.25rem 1rem;
  position: relative;
  z-index: 2;
}

body.home .privacy-link {
  color: var(--bee-yellow);
  background: var(--bee-darker);
  font-size: 0.65rem;
  font-weight: 100;
  letter-spacing: 0.05em;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}

body.home .privacy-link:hover {
  background: var(--bee-yellow);
  color: var(--bee-dark);
}

/* =============================================================
   SUB pages — body.sub — about, customers, privacy
   ============================================================= */

body.sub {
  min-height: 100vh;
  background-color: var(--bee-dark-2);
  background-image: url('images/bg-pattern-dark.svg');
  background-repeat: repeat;
  color: var(--bee-yellow);
}

body.sub .nav-links a {
  color: var(--bee-dark);
  background: var(--bee-yellow);
}

body.sub .nav-links a:hover {
  background: var(--bee-dark);
  color: var(--bee-yellow);
}

body.sub main {
  flex: 1;
  position: relative;
  padding: 3rem 1.75rem 10rem;
}

body.sub .logo-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1;
  pointer-events: none;
}

body.sub .logo-full {
  /* On sub-pages the overlay logo is smaller than the home strip's logo. */
  max-width: min(160px, 50%);
}

body.sub .site-footer {
  margin-top: auto;
  background: var(--bee-dark);
}

body.sub .privacy-link {
  color: var(--bee-yellow);
  opacity: 0.65;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
}

body.sub .privacy-link:hover {
  opacity: 1;
}

/* =============================================================
   STEALTH pages — about, customers — body.sub.stealth
   ============================================================= */

body.stealth main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stealth {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  color: var(--bee-yellow);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.stealth a {
  color: var(--bee-yellow);
  text-decoration: none;
  font-style: italic;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.stealth a:hover {
  opacity: 1;
}

/* =============================================================
   PRIVACY page — body.privacy — long policy content
   ============================================================= */

body.privacy main {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3.5rem 1.75rem 12rem;
  line-height: 1.55;
  text-align: left;
  color: var(--bee-yellow);
}

body.privacy h1 {
  font-size: 6rem;
  font-weight: 100;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
}

body.privacy .effective {
  font-size: 2.55rem;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

body.privacy h2 {
  font-size: 3.15rem;
  font-weight: 100;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

body.privacy h3 {
  font-size: 2.85rem;
  font-weight: 100;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
}

body.privacy p,
body.privacy ul,
body.privacy ol {
  font-size: 2.85rem;
  margin-bottom: 0.85rem;
}

body.privacy ul,
body.privacy ol {
  padding-left: 1.4rem;
}

body.privacy li {
  margin-bottom: 0.3rem;
}

body.privacy main a {
  color: var(--bee-yellow);
  text-decoration: none;
  font-style: italic;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

body.privacy main a:hover {
  opacity: 1;
}

/* =============================================================
   Mobile overrides (< 640 px)
   ============================================================= */

@media (max-width: 640px) {
  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    font-size: 0.85rem;
    padding: 0.45rem 0.95rem;
  }

  body.home .feynman-area,
  body.home .logo-area {
    padding: 1rem;
  }

  body.home .site-footer {
    padding: 1rem;
  }

  body.stealth main {
    padding: 2rem 1.25rem;
  }

  body.stealth .stealth {
    font-size: 1.85rem;
    line-height: 1.3;
  }

  body.privacy main {
    padding: 2.5rem 1.25rem 3rem;
  }

  body.privacy h1 {
    font-size: 1.5rem;
  }
}
