@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── Area Normal (self-hosted) ─── */
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_Regular_Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_ExtraBold_Italic.otf') format('opentype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Area Normal';
  src: url('../fonts/fonnts.com-Area_Normal_Black.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ─── Variables ─── */
:root {
  /* Light (primary) */
  --bg:           #FFFFFF;
  --bg-2:         #F4F4F4;
  --surface:      #ede7de;
  --border:       rgba(25, 98, 70, 0.12);
  --border-md:    rgba(25, 98, 70, 0.22);
  --text:         #000000;
  --text-60:      rgba(0, 0, 0, 0.6);
  --text-35:      rgba(0, 0, 0, 0.35);

  /* Dark */
  --dark:         #0c0c0c;
  --dark-2:       #111111;

  /* Brand exact */
  --green:        #196246;
  --green-dark:   #196246;
  --green-dim:    rgba(171, 211, 173, 0.18);

  /* Shared */
  --white:        #FFFFFF;
  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-heading: 'Area Normal', sans-serif;
  --font-ui:      'Syne', sans-serif;
  --max-w:        1420px;
  --px:           clamp(1.25rem, 4vw, 5rem);
  --section-py:   clamp(5rem, 9vw, 10rem);
  --radius:       0px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ─── Base ─── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: auto;
}

/* ─── Custom cursor ─── */
.cursor {
  display: none;
}
.cursor-ring {
  display: none;
}
.cursor.hover  { width: 14px; height: 14px; background: var(--green-dark); }
.cursor-ring.hover { width: 50px; height: 50px; border-color: rgba(61, 122, 58, 0.35); }

/* ─── On dark sections — invert cursor ─── */
.hero .cursor,
.section--dark .cursor,
.footer-wordmark-wrap .cursor { background: var(--white); }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark {
  background: var(--green-dark);
  color: var(--white);
}
.btn--dark:hover { background: #0f3d2a; }
.btn--green {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 4px 20px rgba(25,98,70,0.3);
}
.btn--green:hover { background: #0f4a2e; box-shadow: 0 8px 32px rgba(25,98,70,0.45); }
.btn--ghost-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.2);
}
.btn--ghost-dark:hover { background: var(--text); color: #fff; border-color: var(--text); }
.btn--ghost-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.btn--outline:hover { background: #000; color: #fff; border-color: #000; }
.btn--large { padding: 0.9rem 2.25rem; font-size: 0.88rem; }

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem var(--px);
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Hero is dark — nav text white by default */
.nav { color: var(--white); }
.nav.scrolled {
  padding: 1rem var(--px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: var(--border);
  color: var(--text);
}
.nav.scrolled .nav__links a { color: var(--text-60); }
.nav.scrolled .nav__links a:hover { color: var(--text); }
.nav.scrolled .nav__hamburger span { background: var(--text); }

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.4s;
}
.nav.scrolled .nav__logo img { filter: none; }
.nav__logo-fallback { display: none; }

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.65);
  text-decoration: none;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--white); }

.nav__right { display: flex; align-items: center; gap: 1rem; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: all 0.35s var(--ease);
  transform-origin: center;
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem var(--px) 4rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu__nav {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
}
.mobile-menu__nav li {
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu__nav a {
  display: block;
  padding: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.5px;
  text-transform: none;
  transition: color 0.3s, padding-left 0.3s;
}
.mobile-menu__nav a:hover {
  color: var(--green-dark);
  padding-left: 0.5rem;
}
.mobile-menu__cta {
  padding-top: 2rem;
}
.mobile-menu__footer {
  margin-top: auto;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* ─── Hero (always dark) ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1.13); }
}
.hero__bg-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(61,122,58,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(141,207,138,0.05) 0%, transparent 50%),
    #0a0a0a;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10,10,10,0.5) 0%,
    rgba(10,10,10,0.2) 35%,
    rgba(10,10,10,0.45) 65%,
    rgba(10,10,10,0.97) 100%
  );
}
/* ─── Hero center (outline.global style) ─── */
.hero__center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero__logo-img {
  width: clamp(180px, 28vw, 340px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.hero__logo-glitch {
  position: relative;
  animation: glitchIdle 9s infinite;
}

@keyframes glitchIdle {
  0%, 88%, 100% {
    transform: translate(0);
    filter: brightness(0) invert(1);
    opacity: 1;
  }
  89% {
    transform: translate(-4px, 0) skewX(-1deg);
    filter: brightness(0) invert(1) hue-rotate(90deg) saturate(2);
    opacity: 0.85;
  }
  90% {
    transform: translate(4px, 0) skewX(1deg);
    filter: brightness(0) invert(1) hue-rotate(-90deg) saturate(3);
    opacity: 0.9;
  }
  91% {
    transform: translate(-2px, 1px);
    filter: brightness(0) invert(1) hue-rotate(0deg);
    opacity: 1;
  }
  92% {
    transform: translate(2px, -1px);
    filter: brightness(0.8) invert(1) hue-rotate(200deg);
    opacity: 0.8;
  }
  93% {
    transform: translate(0);
    filter: brightness(0) invert(1);
    opacity: 1;
  }
}

.hero__agency-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 235, 227, 0.45);
  margin-top: 1.5rem;
  font-weight: 400;
}

.hero__explore {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(240, 235, 227, 0.4);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s var(--ease) forwards 2s;
  transition: color 0.3s;
}
.hero__explore:hover { color: rgba(240, 235, 227, 0.8); }

/* Scanlines overlay */
.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}
/* ─── Glass nav button ─── */
.nav .btn--green {
  background: rgba(25, 98, 70, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(171, 211, 173, 0.3);
}
.nav.scrolled .btn--green {
  background: var(--green-dark);
  border: none;
}
/* ─── Nav scrolled state: true glass ─── */
.nav.scrolled {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav.scrolled .nav__links a { color: #000; }
.nav.scrolled .nav__logo img { filter: none; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}
