/* =====================================================================
   MentionShare — site styles
   Ported from the Engram (Next.js/Tailwind) build into plain static CSS.
   Structure, header, footer, typography and section backgrounds are kept
   1:1; animations and page content were removed for a clean HTML base.
   ===================================================================== */

/* ---- Fonts (same families as the original) ---------------------------- */

/* ---- Base ------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 48px;
}
html, body {
  background-color: #f5f1ea;
  color: #1a1a1f;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
* { box-sizing: border-box; }

/* a11y utility: visually hidden but available to screen readers and crawlers */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- Shared container (single source of horizontal alignment) --------- */
:root {
  --engram-max: 1280px;
  --engram-gutter: clamp(20px, 4vw, 48px);
}
.engram-container {
  width: 100%;
  max-width: var(--engram-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--engram-gutter);
  padding-right: var(--engram-gutter);
}

/* Content wrapper sits below the fixed 48px nav (was Tailwind `pt-12`). */
.engram-main {
  min-height: 100vh;
  background-color: #f5f1ea;
  padding-top: 48px;
}

/* =====================================================================
   NAV  (ported verbatim from components/Nav.jsx)
   ===================================================================== */
.engram-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: 48px;
  background-color: #f5f1ea;
  border-bottom: 0.5px solid rgba(26,26,31,0.1);
}
.engram-nav-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.engram-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.engram-nav-home {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.engram-nav-logo-mark { height: 26px; display: block; }
.engram-nav-logo-text {
  font-family: "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1a1a1f;
  line-height: 1;
  white-space: nowrap;
}
.engram-desktop-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
}
.engram-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}
.engram-link {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1f;
  text-decoration: none;
  /* Symmetric 4px top/bottom so the glyphs sit at the link's true vertical center,
     matching the boxed CTA next to it. The bottom 4px still spaces the hover
     underline (::after at bottom:0); the top 4px only re-centers the text. */
  padding: 4px 0;
  transition: color 200ms ease, border-color 200ms ease;
}
.engram-link:not(.engram-join)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}
.engram-link:not(.engram-join):hover::after { transform: scaleX(1); }
.engram-link:hover { color: #000; }
.engram-join {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 16px;
  background: #1a1a1f;
  color: #f5f1ea;
  border: 1px solid #1a1a1f;
  border-radius: 20px;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.engram-join:hover { background: #000; border-color: #000; color: #f5f1ea; }
.engram-join .arrow { display: inline-flex; transition: transform 200ms ease; }
.engram-join .arrow svg { width: 13px; height: 13px; display: block; }
.engram-join:hover .arrow { transform: translateX(3px); }

.engram-burger {
  display: none;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.engram-burger span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: #1a1a1f;
  transition: transform 200ms ease, opacity 200ms ease;
}
.engram-burger span:nth-child(1) { top: 11px; }
.engram-burger span:nth-child(2) { top: 16px; }
.engram-burger span:nth-child(3) { top: 21px; }
.engram-burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.engram-burger.open span:nth-child(2) { opacity: 0; }
.engram-burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.engram-mobile-menu { display: none; }

@media (max-width: 767px) {
  .engram-nav-row { gap: 12px; }
  .engram-nav-logo { gap: 6px; }
  .engram-nav-home { gap: 6px; }
  .engram-nav-logo-mark { height: 22px; }
  .engram-nav-logo-text { font-size: 18px; }
  .engram-desktop-links { display: none !important; }
  .engram-nav-right .engram-join { display: none !important; }
  .engram-burger { display: block; }
  .engram-mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 48px; left: 0; right: 0;
    background: #f5f1ea;
    border-bottom: 0.5px solid rgba(26,26,31,0.1);
    padding: 24px 20px 32px 20px;
    gap: 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  .engram-mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .engram-mobile-menu .engram-link { font-size: 18px; padding: 8px 0; }
  .engram-mobile-menu .engram-join {
    align-self: flex-start;
    margin-top: 8px;
    padding: 10px 22px;
    font-size: 16px;
  }
}

/* =====================================================================
   VIDEO  (was components/DiscoveryCanvas.jsx — canvas fully removed).
   Dark band #0a0a0f holding a single centered 16:9 video slot.
   ===================================================================== */
.engram-discovery {
  background-color: #ebe3d0;
  padding: 72px 0;
}
.engram-video {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #15151b;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
/* When you embed a real video, an <iframe> fills the frame edge to edge. */
.engram-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.engram-video .play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245,241,234,0.1);
  border: 1px solid rgba(245,241,234,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.engram-video .play::after {
  content: "";
  display: block;
  width: 0; height: 0;
  border-left: 18px solid rgba(245,241,234,0.85);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.engram-video .vlabel {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.5);
}
@media (max-width: 767px) {
  .engram-discovery { padding: 48px 0; }
  .engram-video { border-radius: 12px; }
  .engram-video .play { width: 56px; height: 56px; }
}

/* =====================================================================
   CTA button (dark pill) — primary call-to-action used across all pages.
   Restored after a debugging pass removed it; without .arrow svg sizing the
   inline chevron (viewBox, no width/height) blew up to the browser default.
   ===================================================================== */
.engram-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background-color: #1a1a1f;
  color: #f5f1ea;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid #1a1a1f;
  transition: background-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 2px 16px rgba(26,26,31,0.14);
}
.engram-cta:hover {
  background-color: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(26,26,31,0.22);
}
/* Chevron (arrow tip only): inline SVG sized here so it inherits the button
   colour via currentColor. Ghost/outline CTA variants set their colour inline. */
.engram-cta .arrow { display: inline-flex; transition: transform 200ms ease; }
.engram-cta .arrow svg { width: 15px; height: 15px; display: block; }
.engram-cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 1279px) {
  .engram-cta { padding: 11px 22px; font-size: 14px; }
}

/* =====================================================================
   FOOTER  (ported from components/Footer.jsx) — section bg #100e0b
   The animated "tally" strip is kept as a STATIC band (animation removed).
   ===================================================================== */
.engram-footer {
  position: relative;
  background: #100e0b;
}
.engram-footer-tally {
  background: #f5f1ea;
  height: 64px;
  border-bottom: 1px solid rgba(16,14,11,0.92);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  position: relative;
}
.engram-footer-tally-track {
  display: flex;
  align-items: flex-end;
  width: max-content;
  height: 100%;
  animation: engram-tally-slide 90s linear infinite;
  will-change: transform;
}
.engram-footer-tally-run {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}
.engram-footer-tally-run span {
  display: block;
  width: 1.4px;
  background: #100e0b;
  flex-shrink: 0;
  transform-origin: bottom center;
  animation: engram-tally-wave 2.8s cubic-bezier(0.445,0.05,0.55,0.95) infinite;
}
/* Pause a strip's wave + slide while it is scrolled out of view (tally.js toggles
   .is-paused via IntersectionObserver). Otherwise ~1000 bars per strip keep
   animating off-screen and starve scroll frames elsewhere on the page.
   will-change was removed from the span above: it forced a compositor layer per
   bar (thousands of layers), which is exactly what MDN warns against. */
.engram-footer-tally.is-paused .engram-footer-tally-track,
.engram-footer-tally.is-paused .engram-footer-tally-run span { animation-play-state: paused; }
@keyframes engram-tally-slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes engram-tally-wave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50%      { transform: scaleY(1.25); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .engram-footer-tally-track { animation: none; }
  .engram-footer-tally-run span { animation: none; }
}
.engram-footer-main {
  color: #f5f1ea;
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
}
.engram-footer-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 96px;
  align-items: start;
}
.engram-footer-heading {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.engram-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  column-gap: 72px;
  row-gap: 40px;
}
.engram-footer-col h4 {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232,184,115,0.78);
  margin: 0 0 22px 0;
  position: relative;
  padding-bottom: 14px;
}
.engram-footer-col h4::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 1px;
  background: rgba(232,184,115,0.35);
}
.engram-footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.engram-footer-link {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(245,241,234,0.82);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 220ms ease, transform 300ms cubic-bezier(0.22,1,0.36,1);
  display: inline-block;
  position: relative;
}
.engram-footer-link::before {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: rgba(232,184,115,0.9);
  transition: width 260ms cubic-bezier(0.22,1,0.36,1);
}
.engram-footer-link:hover { color: #f5f1ea; transform: translateX(2px); }
.engram-footer-link:hover::before { width: 100%; }
.engram-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding-top: 4px;
}
.engram-footer-logo {
  height: 68px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}
.engram-footer-logo-fallback {
  font-family: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  font-size: 56px;
  line-height: 1;
  color: #f5f1ea;
  letter-spacing: -0.02em;
}
/* Sitewide entity definition — the "MentionShare is a ___" sentence an AI engine
   can lift when asked what this company is. Identical on every page, and its first
   sentence matches Organization.description in the homepage JSON-LD. Reads as a
   statement, not a slogan, so it is set upright rather than italic; the block hangs
   right with the brand column but the text itself is left-aligned to stay readable
   at this length. */
.engram-footer-tagline {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(245,241,234,0.62);
  margin: 0;
  text-align: left;
  max-width: 420px;
  letter-spacing: 0.005em;
}
.engram-footer-rule {
  margin: 80px 0 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(245,241,234,0) 0%,
    rgba(245,241,234,0.12) 18%,
    rgba(245,241,234,0.12) 82%,
    rgba(245,241,234,0) 100%
  );
}
.engram-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.engram-footer-copyright {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,241,234,0.38);
  margin: 0;
}
@media (max-width: 1599px) and (min-width: 1280px) {
  .engram-footer-main { padding-top: 112px; padding-bottom: 40px; }
}
@media (max-width: 1279px) {
  .engram-footer-main { padding-top: 96px; padding-bottom: 36px; }
  .engram-footer-inner { gap: 64px; }
  .engram-footer-cols { column-gap: 56px; }
}
@media (max-width: 1023px) {
  .engram-footer-main { padding-top: 80px; padding-bottom: 32px; }
  .engram-footer-inner { grid-template-columns: 1fr; gap: 64px; }
  .engram-footer-brand { align-items: flex-start; order: 2; }
  .engram-footer-rule { margin-top: 56px; }
  .engram-footer-tally { height: 52px; }
}
@media (max-width: 640px) {
  .engram-footer-main { padding-top: 64px; padding-bottom: 28px; }
  .engram-footer-cols { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 32px; }
  .engram-footer-logo, .engram-footer-logo-fallback { height: 44px; font-size: 36px; }
  .engram-footer-bottom { gap: 14px; }
  .engram-footer-tally { height: 40px; }
  .engram-footer-copyright { font-size: 10px; letter-spacing: 0.16em; }
}
