/* ============================================================
   GOOGLE FONTS — must be first import in the file
   Roboto → titles | Open Sans → body text
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,300;1,400;1,700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ============================================================
   MIMEMA COIN — Design Tokens
   ============================================================

   PRIMARY PALETTE
   --color-green      : #69AE4F  →  the brand green
   --color-white      : #F5F5F5  →  off-white — primary background color
   --color-dark       : #1A1A1A  →  aesthetic dark gray — used on TEXT only

   SUPPORTING SHADES (derived from primary palette)
   --color-green-light: #82C468  →  lighter tint of brand green
   --color-green-dark : #4D8A39  →  deeper shade of brand green
   --color-gray-muted : #8A8A8A  →  muted / secondary text

   TYPOGRAPHY
   --font-logo  : 'TimesNewNormal'  →  custom local font — logo only
   --font-title : 'Roboto'          →  Google Fonts — headings & titles
   --font-body  : 'Open Sans'       →  Google Fonts — paragraphs & UI text

   ============================================================ */

/* ============================================================
   CUSTOM FONT — Logo
   ============================================================ */

@font-face {
  font-family: 'TimesNewNormal';
  src: url('fonts/Times New Normal Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */

:root {
  /* Colors */
  --color-green:        #69AE4F;
  --color-white:        #F5F5F5;
  --color-dark:         #1A1A1A;
  --color-green-light:  #82C468;
  --color-green-dark:   #4D8A39;
  --color-gray-muted:   #8A8A8A;

  /* Fonts */
  --font-logo:          'TimesNewNormal', serif;
  --font-title:         'Roboto', sans-serif;
  --font-body:          'Open Sans', sans-serif;

  /* Layout */
  --navbar-height:      68px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--color-white);
  color: var(--color-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--navbar-height);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
}

body.is-loading {
  overflow: hidden;
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  width: min(92vw, 560px);
  text-align: center;
  padding: 0 24px;
}

.loader__brand {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  margin-bottom: 48px;
  user-select: none;
}

.loader__brand-m {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 2rem;
  color: var(--color-dark);
}

.loader__brand-rest {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.85rem;
  color: var(--color-dark);
  letter-spacing: 0.5px;
}

.loader__quote-wrap {
  position: relative;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.loader__quote {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: var(--font-logo);
  font-style: italic;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-dark);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.loader__quote.is-active {
  opacity: 1;
  transform: translateY(0);
}

.loader__quote.is-exit {
  opacity: 0;
  transform: translateY(-12px);
}

.loader__bar {
  width: 72px;
  height: 2px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--color-green);
  border-radius: 2px;
  transition: width 0.35s ease;
}

@media (max-width: 600px) {
  .loader__brand {
    margin-bottom: 40px;
  }

  .loader__quote-wrap {
    min-height: 6.2rem;
    margin-bottom: 40px;
  }
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-green);
  padding: 0 48px;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

/* --- Logo --- */

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
  user-select: none;
}

.navbar__logo-m {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.85rem;
  color: #fff;
}

.navbar__logo-rest {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.75rem;
  color: #fff;
  letter-spacing: 0.5px;
}

/* --- CTA Button --- */

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  color: var(--color-green-dark) !important;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.navbar__cta:hover {
  background-color: transparent;
  color: #fff !important;
  border-color: #fff;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes bgDrift {
  0%, 100% { transform: scale(1) translate(0, 0);    opacity: 0.7; }
  50%       { transform: scale(1.06) translate(3%, -3%); opacity: 1;   }
}

@keyframes scrollBounce {
  0%, 100% { transform: scaleY(1);   opacity: 1;   }
  50%       { transform: scaleY(0.6); opacity: 0.4; }
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px 24px 140px;
  background-color: #0d0d0d;
}

/* --- Background video --- */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Soften the video itself a touch */
  filter: brightness(0.55) contrast(1.05) saturate(0.9);
  /* Helps iOS treat it as a decorative bg, not a media player */
  pointer-events: none;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero__video--backdrop {
  display: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Dark wash so text stays readable and video stays atmospheric */
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.55) 0%,
      rgba(10, 10, 10, 0.45) 45%,
      rgba(10, 10, 10, 0.7) 100%
    ),
    radial-gradient(ellipse at center, rgba(105, 174, 79, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* --- Content --- */

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
}

/* Title */
.hero__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.25rem, 6.4vw, 5.5rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -2.5px;
  margin-bottom: 28px;
  white-space: nowrap;
  opacity: 0;
  animation: fadeInUp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

.hero__title-accent {
  color: var(--color-green);
}

/* Divider line */
.hero__divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-green);
  border-radius: 2px;
  margin: 0 auto 28px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.38s;
}

/* Subtitle */
.hero__subtitle {
  font-family: var(--font-logo);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(245, 245, 245, 0.72);
  font-style: italic;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.45s;
}

/* Paragraph */
.hero__para {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: rgba(245, 245, 245, 0.62);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto 52px;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.58s;
}

/* Buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.72s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 34px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-green);
  color: #fff;
  border-color: var(--color-green);
  box-shadow: 0 4px 24px rgba(105, 174, 79, 0.32);
}

.btn--primary:hover {
  background-color: var(--color-green-dark);
  border-color: var(--color-green-dark);
  box-shadow: 0 8px 32px rgba(105, 174, 79, 0.48);
  transform: translateY(-3px);
}

.btn--secondary {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn--secondary:hover {
  border-color: var(--color-green);
  color: var(--color-green);
  transform: translateY(-3px);
}

/* --- Hero mobile polish --- */

@media (max-width: 600px) {
  .hero {
    padding: 56px 18px 110px;
    min-height: calc(100dvh - var(--navbar-height));
  }

  /* Show the full landscape video while a blurred copy fills the
     unused portrait area, so there are no empty bands. */
  .hero__video:not(.hero__video--backdrop) {
    object-fit: contain;
    transform: scale(2.35);
  }

  .hero__video--backdrop {
    display: block;
    z-index: 0;
    object-fit: cover;
    filter: blur(18px) brightness(0.32) saturate(0.75);
    transform: scale(1.08);
  }

  .hero__title {
    letter-spacing: -0.8px;
    margin-bottom: 18px;
  }

  .hero__divider {
    margin-bottom: 18px;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 14px;
    padding: 0 4px;
  }

  .hero__para {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 100%;
    padding: 0 2px;
  }

  /* Let copy wrap naturally on small screens */
  .hero__para br {
    display: none;
  }

  .hero__buttons {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }

  .hero__buttons .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }

  .hero__scroll {
    bottom: 24px;
  }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 1.0s;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
}

.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-green), transparent);
  transform-origin: top;
  animation: scrollBounce 2s ease-in-out infinite;
}

/* ============================================================
   SCROLL REVEAL — reusable across all sections
   ============================================================ */

.reveal {
  opacity: 0;
  transition:
    opacity  0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--up    { transform: translateY(48px); }
.reveal--left  { transform: translateX(-48px); }
.reveal--right { transform: translateX(48px); }

/* Stagger delays */
.reveal--d1 { transition-delay: 0.12s; }
.reveal--d2 { transition-delay: 0.24s; }
.reveal--d3 { transition-delay: 0.38s; }
.reveal--d4 { transition-delay: 0.52s; }

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   SECTION DIVIDER — replaced by clip-path on .lore directly
   (divider-to-dark div kept in HTML for fallback but hidden)
   ============================================================ */

.divider-to-dark {
  display: none;
}

/* ============================================================
   LORE SECTION
   ============================================================ */

.lore {
  position: relative;
  background-color: var(--color-dark);
  padding: 160px 48px 140px;
  overflow: hidden;
  /* Diagonal top edge — eliminates the separate divider element */
  clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
  margin-top: -82px;
}

/* Ambient green glow blobs */
.lore__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.lore__glow--left {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(105, 174, 79, 0.14) 0%, transparent 70%);
  top: -80px;
  left: -100px;
  animation: bgDrift 12s ease-in-out infinite;
}

.lore__glow--right {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(105, 174, 79, 0.09) 0%, transparent 70%);
  bottom: -60px;
  right: -60px;
  animation: bgDrift 15s ease-in-out infinite reverse;
}

/* Inner layout — two columns */
.lore__inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* --- Label --- */

.lore__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 28px;
}

/* --- Headline --- */

.lore__headline {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--color-white);
  margin-bottom: 40px;
}

.lore__headline em {
  font-style: italic;
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 1.05em;
}

.lore__headline-accent {
  color: var(--color-green);
}

/* --- Body text --- */

.lore__body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.95;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 8px;
}

.lore__body--spaced {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  margin-top: 36px;
  margin-bottom: 36px;
  line-height: 1.1;
}

/* --- Rule --- */

.lore__rule {
  width: 44px;
  height: 2px;
  background-color: var(--color-green);
  border-radius: 2px;
  margin-bottom: 28px;
}

/* --- Closing --- */

.lore__closing {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.7;
  color: rgba(245, 245, 245, 0.8);
  letter-spacing: 0.2px;
}

.lore__closing-accent {
  color: var(--color-green);
  font-size: 1.35rem;
}

/* --- Tweet card --- */

.lore__tweet-wrap {
  display: flex;
  justify-content: center;
}

.lore__tweet-card {
  background-color: #1e1e1e;
  border: 1px solid rgba(105, 174, 79, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 460px;
  width: 100%;
}

.lore__tweet-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.6);
}

.lore__tweet-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.lore__tweet-source {
  display: block;
  text-align: center;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-green);
  text-decoration: none;
  border-top: 1px solid rgba(105, 174, 79, 0.15);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lore__tweet-source:hover {
  background-color: rgba(105, 174, 79, 0.08);
  color: var(--color-green-light);
}

/* --- Responsive --- */

@media (max-width: 900px) {
  .lore__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .lore__tweet-wrap {
    order: -1;
  }
}

@media (max-width: 600px) {
  .lore {
    padding: 80px 24px 100px;
  }
}

/* ============================================================
   TRADEMARK SECTION
   ============================================================ */

.trademark {
  position: relative;
  background-color: var(--color-white);
  padding: 160px 48px 140px;
  overflow: hidden;
  clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
  margin-top: -82px;
}

/* Inner container */
.trademark__inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

/* --- Header --- */

.trademark__header {
  text-align: center;
  margin-bottom: 96px;
}

.trademark__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-green-dark);
  margin-bottom: 20px;
}

.trademark__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--color-dark);
  margin-bottom: 20px;
}

.trademark__title-accent {
  color: var(--color-green);
}

.trademark__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-gray-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Certificate docs --- */

.trademark__docs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 72px;
}

.trademark__frame {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 8px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: #fff;
}

.trademark__frame:hover {
  transform: translateY(-6px);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.08),
    0 20px 56px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(105, 174, 79, 0.25);
}

/* Fixed-ratio viewport — both images live in identical boxes */
.trademark__frame-inner {
  aspect-ratio: 4 / 5;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  cursor: zoom-in;
}

.trademark__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Footer bar */
.trademark__frame-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  background: #fff;
}

.trademark__frame-num {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--color-green);
}

.trademark__frame-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-gray-muted);
}

.trademark__frame-expand {
  font-size: 0.95rem;
  color: var(--color-green);
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.trademark__frame:hover .trademark__frame-expand {
  opacity: 1;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

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

@keyframes lightboxImgIn {
  from { opacity: 0; transform: scale(0.93); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  pointer-events: all;
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(90vw, 860px);
  width: 100%;
  transform: scale(0.93);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__content {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-green);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.lightbox__close:hover {
  background-color: var(--color-green-dark);
  transform: scale(1.1);
}

.lightbox__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  align-self: flex-start;
}

.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.6);
}

/* --- Seal line --- */

.trademark__seal {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-gray-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.trademark__seal-mark {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-green);
  line-height: 1;
}

/* --- Responsive --- */

@media (max-width: 760px) {
  .trademark__docs {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .trademark {
    padding: 100px 24px 100px;
  }
}

/* ============================================================
   MEMES SECTION
   ============================================================ */

/* card = 340px + 16px margin-right = 356px
   5 cards per set = 5 × 356 = 1780px */
@keyframes marqueeLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-1780px); }
}

@keyframes marqueeRight {
  from { transform: translateX(-1780px); }
  to   { transform: translateX(0); }
}

.memes {
  position: relative;
  background-color: var(--color-dark);
  padding: 140px 0 130px;
  overflow: hidden;
  clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
  margin-top: -82px;
}

/* Ambient glow */
.memes::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(105, 174, 79, 0.07) 0%, transparent 70%);
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Header --- */

.memes__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
  text-align: center;
  margin-bottom: 80px;
}

.memes__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 24px;
}

.memes__title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -2px;
  color: var(--color-white);
  margin-bottom: 20px;
}

.memes__accent {
  color: var(--color-green);
}

.memes__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-gray-muted);
  line-height: 1.8;
}

/* --- Marquee gallery --- */

.memes__gallery {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  /* prevent layout shift during animation */
  will-change: transform;
}

.memes__row {
  overflow: hidden;
}

.memes__reel {
  display: flex;
  gap: 0; /* margin-right on cards instead — makes -50% land exactly at the seam */
  width: max-content;
}

.memes__reel--left {
  animation: marqueeLeft 22s linear infinite;
}

.memes__reel--right {
  animation: marqueeRight 28s linear infinite;
}

/* Pause entire gallery on hover */
.memes__gallery:hover .memes__reel {
  animation-play-state: paused;
}

/* --- Cards --- */

.memes__card {
  width: 340px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: #2a2a2a;
  margin-right: 16px; /* trailing space included in every card → -50% is always exact */
}

.memes__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.memes__card:hover img {
  transform: scale(1.06);
}

/* Subtle green tint overlay on hover */
.memes__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(105, 174, 79, 0.18);
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 14px;
}

.memes__card:hover::after {
  opacity: 1;
}

@media (max-width: 600px) {
  .memes {
    padding: 100px 0 100px;
  }

  .memes__inner {
    padding: 0 24px;
  }

  /* Smaller cards on mobile: 200px + 12px margin = 212px
     5 cards × 212px = 1060px per set                      */
  .memes__card {
    width: 200px;
    margin-right: 12px;
  }

  @keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-1060px); }
  }

  @keyframes marqueeRight {
    from { transform: translateX(-1060px); }
    to   { transform: translateX(0); }
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: #0d0d0d;
  border-top: 1px solid rgba(105, 174, 79, 0.25);
  padding: 56px 48px 36px;
  position: relative;
  z-index: 2;
  /* Kill any phantom space below the page end on iOS */
  margin-bottom: 0;
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

.footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- Wordmark --- */

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  user-select: none;
  margin-bottom: 10px;
}

.footer__logo-m {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1;
}

.footer__logo-rest {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
  letter-spacing: 0.5px;
}

/* --- Tagline --- */

.footer__tagline {
  font-family: var(--font-logo);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.35);
  letter-spacing: 0.5px;
  margin-bottom: 36px;
}

/* --- Social links --- */

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(245, 245, 245, 0.7);
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.04);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer__link:hover {
  color: #fff;
  border-color: rgba(105, 174, 79, 0.5);
  background-color: rgba(105, 174, 79, 0.08);
  transform: translateY(-3px);
}

.footer__link--pump:hover {
  border-color: rgba(255, 140, 50, 0.5);
  background-color: rgba(255, 140, 50, 0.08);
}

.footer__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- Divider --- */

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 20px;
}

/* --- Bottom bar --- */

.footer__bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy,
.footer__made {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(245, 245, 245, 0.22);
  letter-spacing: 0.3px;
}

.footer__made {
  font-style: italic;
}

@media (max-width: 600px) {
  .footer {
    padding: 44px 24px 28px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .footer__logo-m  { font-size: 1.9rem; }
  .footer__logo-rest { font-size: 1.7rem; }
}
