/* ═══════════════════════════════════════════════
   The Marketing Consultancy — Design System
   Quirky & Fun Neo-Brutalist Editorial
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── Design Tokens ─── */
:root {
  --color-bg: #FFFFFF;
  --color-dark: #0A1628;
  --color-coral: #E91E8C;
  --color-chartreuse: #C8FF00;
  --color-lavender: #D4BBFF;
  --color-sky: #87CEEB;
  --color-peach: #FFCBA4;
  --color-text-body: #3A3A4A;
  --color-text-muted: #7A7A8A;
  --color-border: #E8E0D8;
  --font-display: "Fraunces", Georgia, serif;
  --font-label: "Syne", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --section-padding: 100px var(--content-gutter);
  --radius-fun: 20px;
}

/* ─── Noise overlay ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ─── Squiggle underline ─── */
.squiggle {
  display: inline-block;
  position: relative;
}
.squiggle::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8'%3E%3Cpath d='M0 4c10-4 20 4 30 0s20-4 30 0 20 4 30 0 20-4 30 0' fill='none' stroke='%23E91E8C' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x;
  background-size: 60px 8px;
}

/* ─── Accent text ─── */
.accent {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-coral);
  font-variation-settings: "opsz" 9;
}

/* ─── Sticker Badge ─── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2.5px solid var(--color-dark);
  background: var(--color-chartreuse);
  box-shadow: 3px 3px 0 var(--color-dark);
  transform: rotate(-2deg);
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.badge:hover {
  transform: rotate(1deg) scale(1.05);
  box-shadow: 5px 5px 0 var(--color-dark);
}
.badge--coral { background: var(--color-coral); color: #fff; }
.badge--lavender { background: var(--color-lavender); }
.badge--sky { background: var(--color-sky); }
.badge--peach { background: var(--color-peach); }

/* ─── Marquee ─── */
.marquee {
  overflow: hidden;
  border-top: 2.5px solid var(--color-dark);
  border-bottom: 2.5px solid var(--color-dark);
  background: var(--color-chartreuse);
  padding: 14px 0;
  white-space: nowrap;
}
.marquee__inner {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}
.marquee__item {
  font-family: var(--font-label);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 32px;
  color: var(--color-dark);
}
.marquee__item::after {
  content: " ✦";
  color: var(--color-coral);
  padding-left: 32px;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Navigation ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--content-gutter);
  position: relative;
}
.nav__logo { height: 90px; width: auto; }

/* ─── Content max-width (backgrounds stretch full, content capped at 1400px) ─── */
:root {
  --content-gutter: max(80px, calc((100vw - 1400px) / 2 + 80px));
}
@media (max-width: 1024px) { :root { --content-gutter: 48px; } }
@media (max-width: 768px) { :root { --content-gutter: 24px; } }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--color-coral);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__link:hover::after { width: 100%; }
.nav__link--active::after { width: 100%; }

/* ─── Mobile Menu ─── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.nav__hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--color-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-menu__link:hover {
  color: var(--color-coral);
}
.mobile-menu__cta {
  margin-top: 16px;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--color-coral);
  padding: 14px 28px;
  border-radius: 50px;
  border: 2.5px solid var(--color-dark);
  box-shadow: 4px 4px 0 var(--color-dark);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-dark);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--color-dark);
}
.btn--large { padding: 18px 36px; font-size: 15px; }
.btn--dark { background: var(--color-dark); color: #fff; }
.btn--chartreuse { background: var(--color-chartreuse); color: var(--color-dark); }

/* ─── Section Labels & Titles ─── */
.section-label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144;
}
.section-title--md {
  font-size: 44px;
  line-height: 1.18;
  max-width: 550px;
  text-align: right;
}
.section-title--lg {
  font-size: 52px;
  line-height: 1.15;
  max-width: 500px;
}
.section-title--xl {
  font-size: 64px;
  line-height: 1.08;
  max-width: 800px;
}
.section-title .accent {
  font-style: italic;
  color: var(--color-coral);
  font-variation-settings: "opsz" 9;
}

/* ─── Cards (bordered, shadowed) ─── */
.cards { display: flex; gap: 24px; width: 100%; }
.card {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 40px 32px;
  gap: 16px;
  background: #fff;
  border: 2.5px solid var(--color-dark);
  border-radius: var(--radius-fun);
  box-shadow: 6px 6px 0 var(--color-dark);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--color-dark);
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}
.card:nth-child(1)::before { background: var(--color-coral); }
.card:nth-child(2)::before { background: var(--color-chartreuse); }
.card:nth-child(3)::before { background: var(--color-lavender); }
.card:nth-child(4)::before { background: var(--color-peach); }
.card__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 48px;
  color: var(--color-border);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 26px;
}
.card__link {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-coral);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.3s;
}
.card__link:hover { gap: 12px; }
.card__link::after { content: "→"; }

/* ─── Service cards (dark bg) ─── */
.service-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 40px 32px;
  gap: 16px;
  border: 2px solid #2A3448;
  border-radius: var(--radius-fun);
  background: rgba(255,255,255,0.03);
  transition: background 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--color-coral);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 4px;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: #F0F0F4;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.service-card__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  color: #B0B0BC;
  line-height: 25px;
}
.service-card__tag {
  font-family: var(--font-label);
  font-size: 11px;
  color: #8A8A9E;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 8px;
}

/* ─── Stat cards ─── */
.stats { display: flex; gap: 24px; width: 100%; }
.stat {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 36px;
  background: #fff;
  border: 2.5px solid var(--color-dark);
  border-radius: var(--radius-fun);
  box-shadow: 5px 5px 0 var(--color-dark);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.stat:hover {
  transform: translate(-2px, -2px) rotate(-1deg);
  box-shadow: 7px 7px 0 var(--color-dark);
}
.stat:nth-child(1) { background: var(--color-chartreuse); }
.stat:nth-child(2) { background: var(--color-lavender); }
.stat:nth-child(3) { background: var(--color-peach); }
.stat__number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  color: var(--color-dark);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: "opsz" 144;
}
.stat__change {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--color-dark);
  line-height: 1.2;
  opacity: 0.6;
  font-variation-settings: "opsz" 9;
}
.stat__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-dark);
  line-height: 22px;
  opacity: 0.7;
}

/* ─── Testimonial ─── */
.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px var(--content-gutter);
  gap: 28px;
  position: relative;
  background: var(--color-dark);
  overflow: hidden;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 320px;
  color: var(--color-coral);
  opacity: 0.08;
  position: absolute;
  top: -60px;
  left: 60px;
  line-height: 1;
  pointer-events: none;
}
.testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: #F0F0F4;
  line-height: 1.5;
  text-align: center;
  max-width: 860px;
  font-variation-settings: "opsz" 30;
}
.testimonial__attribution {
  font-family: var(--font-label);
  font-size: 13px;
  color: #9A9AAA;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── CTA Section ─── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px var(--content-gutter);
  gap: 32px;
  background: var(--color-chartreuse);
  border-top: 2.5px solid var(--color-dark);
  border-bottom: 2.5px solid var(--color-dark);
  position: relative;
  overflow: hidden;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
  max-width: 700px;
  font-variation-settings: "opsz" 144;
}
.cta__title .accent {
  font-style: italic;
  color: var(--color-coral);
  font-variation-settings: "opsz" 9;
}
.cta__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  color: var(--color-dark);
  line-height: 28px;
  text-align: center;
  max-width: 560px;
  opacity: 0.7;
}
.cta__buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}
.cta__email {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-dark);
  opacity: 0.6;
}
.cta__email a {
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta__email a:hover { color: var(--color-coral); }

/* ─── Footer ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px var(--content-gutter);
  background: var(--color-dark);
}
.footer__logo { height: 48px; width: auto; filter: brightness(0) saturate(100%) invert(24%) sepia(96%) saturate(5828%) hue-rotate(316deg) brightness(96%) contrast(97%); }
.footer__links { display: flex; gap: 36px; }
.footer__link {
  font-family: var(--font-label);
  font-size: 12px;
  color: #B0B0BC;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer__link:hover { color: var(--color-coral); }

/* ─── Hero (shared structure) ─── */
.hero {
  display: flex;
  flex-direction: column;
  padding: 60px var(--content-gutter) 80px;
  gap: 48px;
  position: relative;
}
.hero .shape { display: none; }

/* ─── Page hero (detail pages) ─── */
.page-hero {
  display: flex;
  flex-direction: column;
  padding: 60px var(--content-gutter) 80px;
  gap: 32px;
  position: relative;
}
.page-hero__eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.page-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  color: var(--color-dark);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 800px;
  font-variation-settings: "opsz" 144;
}
.page-hero__desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 19px;
  color: var(--color-text-body);
  line-height: 32px;
  max-width: 640px;
}

/* ─── Content blocks ─── */
.content-section {
  padding: var(--section-padding);
}
.content-section--dark {
  background: var(--color-dark);
  color: #F0F0F4;
}
.content-section--dark .content__body { color: #B0B0BC; }
.content-section--dark .section-label { color: #9A9AAA; }

.content__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  color: var(--color-text-body);
  line-height: 30px;
  max-width: 680px;
}
.content__body + .content__body { margin-top: 20px; }

/* ─── Feature image ─── */
.feature-img {
  width: 100%;
  max-width: 720px;
  border-radius: var(--radius-fun);
  border: 2.5px solid var(--color-dark);
  box-shadow: 8px 8px 0 var(--color-dark);
}

/* ─── Two-column layout ─── */
.two-col {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.two-col__left { flex: 1; }
.two-col__right { flex: 1; }

/* ─── Checklist ─── */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}
.checklist li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 26px;
  padding-left: 32px;
  position: relative;
}
.checklist li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--color-coral);
  font-size: 14px;
}
.checklist--light li { color: #B0B0BC; }
.checklist--light li::before { color: var(--color-chartreuse); }

/* ─── Case study block ─── */
.case-study-block {
  background: #fff;
  border: 2.5px solid var(--color-dark);
  border-radius: var(--radius-fun);
  box-shadow: 8px 8px 0 var(--color-dark);
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.case-study-block__label {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral);
}
.case-study-block__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-variation-settings: "opsz" 144;
}
.case-study-block__body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--color-text-body);
  line-height: 28px;
}

/* ─── Scroll animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-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; }

/* ─── Case study CTA row ─── */
.case-study-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
@media (max-width: 768px) {
  .case-study-cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}

/* ─── Cursor dot ─── */
.cursor-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-coral);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: multiply;
}
body:hover .cursor-dot { opacity: 0.5; }

/* ─── SVG doodles ─── */
.doodle {
  position: absolute;
  pointer-events: none;
}
.doodle--spin { animation: spin 12s linear infinite; }
.doodle--float { animation: float 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  :root { --section-padding: 80px var(--content-gutter); }
  .nav { padding: 24px var(--content-gutter); }
  .hero, .page-hero { padding: 48px var(--content-gutter) 64px; }
  .page-hero__title { font-size: 48px; }
  .section-title--md { font-size: 36px; }
  .section-title--lg { font-size: 44px; }
  .section-title--xl { font-size: 48px; }
  .stat__number { font-size: 42px; }
  .cta { padding: 80px var(--content-gutter); }
  .cta__title { font-size: 48px; }
  .footer { padding: 36px var(--content-gutter); }
  .two-col { gap: 48px; }
  .testimonial { padding: 80px var(--content-gutter); }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px var(--content-gutter); }
  .nav { padding: 20px var(--content-gutter); }
  .nav__logo { height: 60px; }
  .hero, .page-hero { padding: 40px var(--content-gutter) 48px; }
  .page-hero__title { font-size: 36px; }
  .page-hero__desc { font-size: 17px; }
  .cards { flex-direction: column; }
  .stats { flex-direction: column; }
  .section-header { flex-direction: column; gap: 16px; }
  .section-title--md { text-align: left; font-size: 30px; }
  .section-title--lg { font-size: 34px; }
  .section-title--xl { font-size: 34px; }
  .two-col { flex-direction: column; gap: 32px; }
  .testimonial { padding: 64px var(--content-gutter); }
  .testimonial__quote { font-size: 20px; line-height: 1.5; }
  .cta { padding: 64px var(--content-gutter); }
  .cta__title { font-size: 36px; }
  .footer { padding: 28px var(--content-gutter); flex-direction: column; gap: 24px; }
  .footer__links { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .cursor-dot { display: none; }
  .marquee__item { font-size: 13px; }
  .doodle { display: none; }
  .case-study-block { padding: 32px var(--content-gutter); }
  .feature-img { box-shadow: 5px 5px 0 var(--color-dark); }
}
