/* ═══════════════════════════════════════════════════════
   FORTY9 — Style Sheet
   Light theme · Mint green palette · Barlow Condensed + DM Sans
   ═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────── */
:root {
  --bg:         #F7F4EF;
  --bg-2:       #EDE9E2;
  --bg-3:       #E4DFD7;
  --border:     rgba(26, 24, 18, 0.1);
  --text:       #1A1814;
  --text-muted: #6B6860;

  /* Mint green palette — darkest to lightest */
  --green-5:    #172F22;   /* darkest forest */
  --green-4:    #2E6B4A;   /* dark green */
  --green-3:    #4E9870;   /* mid sage — primary accent */
  --green-2:    #72C99A;   /* light mint */
  --green-1:    #8FEAB8;   /* lightest mint */

  --mint:       #4E9870;   /* primary accent */
  --mint-dark:  #2E6B4A;   /* hover / dark */
  --mint-dim:   rgba(78, 152, 112, 0.09);

  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'DM Sans', sans-serif;

  --nav-h:      72px;
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:   cubic-bezier(0.0, 0.0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--green-5); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Utility ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--green-1);
  color: var(--green-5);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
  cursor: pointer;
  border: none;
}
.btn:hover { background: #fff; color: var(--green-5); transform: translateY(-2px); }
.btn-mint {
  background: var(--mint);
  color: var(--bg);
}
.btn-mint:hover { background: var(--text); color: var(--bg); }

/* ─── Scroll Reveal ──────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── NAV ────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
#nav.scrolled {
  background: rgba(247, 244, 239, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--green-1); }
#nav.scrolled .nav-logo { color: var(--text); }
#nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.75); }
#nav:not(.scrolled) .nav-links a:hover { color: #FFFFFF; }
#nav:not(.scrolled) .nav-links .nav-cta {
  border-color: rgba(255,255,255,0.4);
  color: #FFFFFF;
}
#nav:not(.scrolled) .nav-links .nav-cta:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: var(--text);
}
#nav:not(.scrolled) .hamburger span { background: #FFFFFF; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.nav-links .nav-cta:hover {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: calc(var(--nav-h) + 40px) 40px 40px;
  flex-direction: column;
  justify-content: center;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 28px; }
.mobile-menu a {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--mint); }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 40px 80px;
  position: relative;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 14, 10, 0.52);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin-bottom: 10px;
}
.hero-headline em {
  font-style: italic;
  color: var(--green-1);  /* lightest mint over video */
}
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}
.hero-scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.6); }
}

/* ─── MARQUEE ────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  padding: 18px 0;
  background: rgba(23, 47, 34, 0.88);  /* darkest green */
}
.marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(143, 234, 184, 0.85);  /* lightest mint */
  white-space: nowrap;
}
.marquee-track .dot { color: var(--green-2); }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PROBLEM ────────────────────────────────────────── */
.problem {
  padding: 140px 0;
}

/* Stats row — 3 stats across */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 80px;
  background: var(--bg-3);
}
.stat-block {
  background: var(--bg-2);
  padding: 60px 48px;
}
.stat-block:hover { background: var(--bg-3); }
.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--green-4);   /* dark green for large numbers */
  letter-spacing: 0.01em;
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.stat-decimal {
  color: var(--green-3) !important;  /* mid green for 0.3 */
}
.stat-symbol {
  font-size: 0.45em;
  vertical-align: top;
  margin-top: 0.15em;
  display: inline-block;
  color: var(--green-3);   /* mid green for % symbol */
}
.stat-symbol-mid {
  font-size: 0.7em;
  vertical-align: baseline;
  color: var(--green-2);
}
.stat-label {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── TYPEWRITER ─────────────────────────────────────── */
.typewriter-block .tw-line {
  overflow: hidden;
  min-height: 1.2em; /* reserve space so layout doesn't jump */
}
/* blinking cursor on the active line */
.typewriter-block .tw-line.tw-active::after {
  content: '|';
  display: inline-block;
  margin-left: 2px;
  color: var(--green-3);
  animation: twBlink 0.7s step-end infinite;
}
@keyframes twBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Problem copy — full width, large and bold now stats are removed */
.problem-copy {
  max-width: 100%;
}
.problem-copy p {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.problem-closer {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  font-weight: 800 !important;
  font-style: italic;
  text-transform: uppercase;
  color: var(--green-4) !important;
  margin-top: 40px !important;
  margin-bottom: 0 !important;
  letter-spacing: 0.01em;
  line-height: 1.1 !important;
}

/* ─── SERVICES ───────────────────────────────────────── */
.services {
  padding: 140px 0;
  background: var(--bg-2);
}
.section-header {
  margin-bottom: 56px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: var(--green-4);
}
.services-copy {
  max-width: 800px;
}
.services-copy p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 20px;
}
.services-copy p:last-child { margin-bottom: 0; }

/* ─── OUR WORK (full-width carousel) ────────────────── */
.clients-full {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1C1A16;
}
.work-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.carousel-slide.active { opacity: 1; }
.work-carousel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 7, 0.70);
  z-index: 1;
}
.clients-full-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 100px 40px;
}
.clients-full-header {
  margin-bottom: 64px;
}
.clients-full-header .section-label {
  color: var(--green-2);  /* light mint label */
}
.clients-full-heading {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.work-sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.01em;
}

/* Logo grid — 4 logos, room to grow */
.clients-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-left: 1px solid rgba(255,255,255,0.1);
}
.client-logo-cell {
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 52px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  transition: background 0.25s var(--ease);
}
.client-logo-cell:hover { background: rgba(255,255,255,0.06); }
.client-logo {
  max-height: 56px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.25s;
}
.client-logo-cell:hover .client-logo { opacity: 1; }
/* Per-logo sizing */
.client-logo-f45      { max-height: 60px; max-width: 130px; }
.client-logo-circle   { max-height: 72px; max-width: 72px; }
.client-logo-nespresso{ max-height: 70px; max-width: 200px; }
.client-logo-ferrero  { max-height: 44px; max-width: 180px; }

/* ─── CLIENTS ROLLING BANNER ────────────────────────── */
.clients-marquee-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(143, 234, 184, 0.2);
  padding: 28px 0;
  background: var(--green-5);
  z-index: 3;
}
.clients-marquee-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: clientsMarquee 35s linear infinite;
}
.clients-marquee-track span {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-2);
  white-space: nowrap;
}
.clients-marquee-track .cdot {
  color: var(--green-2);
  font-size: 1rem;
  font-style: normal;
}
.clients-marquee-wrap:hover .clients-marquee-track {
  animation-play-state: paused;
}
@keyframes clientsMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── BELIEFS ────────────────────────────────────────── */
.beliefs {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}
.beliefs-header { margin-bottom: 64px; }
.beliefs-heading {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--text);
  line-height: 1;
  margin-top: 16px;
  margin-bottom: 0;
}
.beliefs-list { display: flex; flex-direction: column; }
.belief-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.belief-item:first-of-type { border-top: 1px solid var(--border); }
.belief-num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-3);
  padding-top: 2px;
}
.belief-body h3 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
.belief-body p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
}

/* ─── VIDEO REEL ─────────────────────────────────────── */
.video-reel {
  background: #000;
  overflow: hidden;
  line-height: 0;
}
.yt-player-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}
.yt-player-wrap iframe,
.yt-player-wrap #yt-player {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

/* ─── CONTACT ────────────────────────────────────────── */
.contact {
  padding: 160px 0;
  border-top: 1px solid var(--border);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-left h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: 0.01em;
}
.contact-right p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}
.contact-email {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--green-3);
  margin-bottom: 12px;
  transition: opacity 0.2s;
  word-break: break-all;
}
.contact-email:hover { opacity: 0.7; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
}
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  #nav { padding: 0 24px; }
  .hero { padding: calc(var(--nav-h) + 40px) 24px 80px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .problem { padding: 80px 0; }
  .services { padding: 80px 0; }
  .beliefs { padding: 80px 0; }
  .contact { padding: 80px 0; }

  .clients-full-inner { padding: 60px 24px; }
  .clients-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .client-logo-cell { padding: 36px 24px; min-height: 120px; }

  .belief-item { grid-template-columns: 40px 1fr; gap: 24px; padding: 36px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-scroll-hint { display: none; }
}

/* ─── Hamburger open state ───────────────────────────── */
.hamburger.open span:first-child {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.open span:last-child {
  transform: translateY(-7.5px) rotate(-45deg);
}
