/* ============================================
   KONEKO AGENCY — Global Stylesheet
   ============================================ */

/* --- VARIABLES --- */
:root {
  --bg: #FAFAFA;
  --bg-soft: #FFF5F7;
  --bg-cream: #FFF9E8;
  --ink: #0A0A0A;
  --ink-soft: #4A4A4A;
  --pink: #FF2E6C;
  --pink-light: #FFB3C8;
  --purple: #A020F0;
  --gradient: linear-gradient(135deg, #FF2E6C 0%, #A020F0 100%);
  --gradient-soft: linear-gradient(135deg, #FFE5EE 0%, #F0E0FF 100%);
  --yellow: #FFED4A;
  --yellow-soft: #FFF5B3;
  --lavender: #EFE5FF;
  --peach: #FFE0D0;
  --radius: 24px;
  --radius-sm: 12px;
  --max-w: 1240px;
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

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

/* --- TYPOGRAPHY --- */
.font-display { font-family: 'Fraunces', serif; }
.font-heading { font-family: 'Space Grotesk', sans-serif; }

/* --- NAV (C neo-brutalist → A minimalist on scroll) --- */
.site-nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 10px 10px 10px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: background 0.4s ease, border 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
  padding: 12px 12px 12px 24px;
}
.site-nav:hover { transform: translateX(-50%); }
.site-nav.scrolled:hover { transform: translateX(-50%); }

.site-nav .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
}
.site-nav .logo-cat {
  width: 30px;
  height: 30px;
  animation: wiggle 5s ease-in-out infinite;
  margin-right: -2px;
}

.site-nav ul { display: flex; gap: 28px; list-style: none; }
.site-nav ul a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.site-nav ul a:hover { color: var(--pink); }
.site-nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.site-nav ul a:hover::after { transform: scaleX(1); transform-origin: left; }

.site-nav .cta {
  background: var(--ink);
  color: var(--yellow);
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: 2px solid var(--ink);
  transition: all 0.3s;
}
.site-nav.scrolled .cta {
  color: white;
  border-color: transparent;
  font-weight: 600;
  padding: 10px 20px;
}
.site-nav .cta:hover {
  background: var(--pink);
  color: white;
}

/* CTA arrow no-wrap */
.site-nav .cta { white-space: nowrap; }

/* Mobile nav toggle */
.site-nav .nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.site-nav .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: all 0.3s; border-radius: 2px; }

/* --- BUTTONS --- */
.btn {
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 46, 108, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255, 46, 108, 0.4);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.btn-secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Neo-brutalist button variant (used in hero) */
.btn-brutal {
  padding: 20px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 16px;
  border: 3px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: 'Inter', sans-serif;
  background: var(--pink);
  color: white;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-brutal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 10px 10px 0 var(--ink);
}
.btn-brutal:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* --- SECTION DEFAULTS --- */
section { padding: 120px 0; position: relative; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink);
  margin-bottom: 24px;
}
.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 800px;
  margin-bottom: 24px;
}
.section-title em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  color: var(--pink);
}
.section-lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 620px;
  margin-bottom: 60px;
}

/* --- SERVICE CARDS (colorful) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  border-radius: var(--radius);
  padding: 36px;
  transition: all 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: block;
}
a.service-card {
  text-decoration: none;
  color: inherit;
}
a.case-card {
  text-decoration: none;
  color: inherit;
}
.service-card.c-yellow  { background: var(--yellow-soft); }
.service-card.c-white   { background: white; }
.service-card.c-peach   { background: var(--peach); }
.service-card.c-lavender{ background: var(--lavender); }
.service-card.c-pink    { background: #FFE5EE; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}
.service-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.service-card p {
  color: var(--ink-soft);
  font-size: 15px;
}
.service-card .arrow {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--pink);
  transition: gap 0.3s;
}
.service-card:hover .arrow { gap: 14px; }

/* --- METRICS (gradient block) --- */
.metrics-section {
  background: var(--gradient);
  color: white;
  border-radius: 40px;
  padding: 72px 60px;
  margin: 80px auto;
  max-width: var(--max-w);
  position: relative;
  overflow: hidden;
}
.metrics-section::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  top: -160px;
  right: -160px;
}
.metrics-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  bottom: -120px;
  left: -120px;
}
.metrics-inner { position: relative; z-index: 1; }
.metrics-section .section-title { color: white; }
.metrics-section .section-title em { color: var(--yellow); }
.metrics-section .section-lede { color: rgba(255, 255, 255, 0.85); }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.metric .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, white 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.metric .label { font-size: 14px; opacity: 0.85; margin-top: 8px; }

/* --- CASE CARDS --- */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.case-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s;
  cursor: pointer;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}
.case-image {
  height: 260px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.case-image.alt { background: linear-gradient(135deg, #FFF5B3 0%, #FFE5EE 100%); }
.case-body { padding: 32px; }
.case-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--gradient-soft);
  color: var(--pink);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  margin-bottom: 16px;
}
.case-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.case-body p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.case-stats {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.case-stats .stat {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--pink);
}
.case-stats .stat span {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* --- HOMEPAGE HERO (C neo-brutalist centered, full viewport) --- */
.hero {
  padding: 90px 0 0;
  position: relative;
  overflow: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.hero > .container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
.hero-bg-shape {
  position: absolute;
  width: 520px;
  height: 520px;
  background: var(--yellow);
  border-radius: 50%;
  top: 140px;
  right: -220px;
  z-index: 0;
  animation: floatSlow 16s ease-in-out infinite;
  opacity: 0.55;
}
.hero-bg-shape.two {
  width: 340px;
  height: 340px;
  background: var(--lavender);
  top: auto;
  bottom: -120px;
  left: -120px;
  animation: floatSlow 18s ease-in-out infinite reverse;
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  background: var(--ink);
  color: var(--yellow);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 32px;
  transform: rotate(-2deg);
  letter-spacing: 0.02em;
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(54px, 7.8vw, 122px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
}
.hero h1 .h1-line {
  display: block;
}
.hero h1 .h1-line + .h1-line {
  margin-top: 14px;
}
.hero h1 .serif-italic {
  font-style: italic;
  font-weight: 900;
  color: var(--pink);
}
.hero h1 .stroke {
  -webkit-text-stroke: 3px var(--ink);
  color: transparent;
}
.hero h1 .highlight-box {
  display: inline-block;
  background: var(--yellow);
  padding: 0.04em 0.2em 0.2em;
  border: 3px solid var(--ink);
  border-radius: 22px;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 var(--ink);
  line-height: 0.9;
  vertical-align: baseline;
}
.hero p.lede {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.5;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* --- MARQUEE --- */
.marquee {
  padding: 32px 0;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  margin-top: auto;
  flex-shrink: 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 16px;
}
.marquee-item::after {
  content: '✺';
  color: var(--pink);
  font-size: 22px;
}

/* --- CTA SECTION --- */
.cta-section {
  padding: 140px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--gradient-soft);
  filter: blur(120px);
  opacity: 0.5;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.cta-inner { position: relative; z-index: 1; }
.cta-section .cat-big-wrap {
  display: inline-block;
  margin: 0 auto 20px;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.cta-section .cat-big {
  width: 200px;
  height: 200px;
  display: block;
  animation: bounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(255, 46, 108, 0.25));
}
.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.cta-section h2 .highlight {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 600;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-section p {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 40px;
}

/* --- FOOTER --- */
footer {
  padding: 50px 0 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: var(--ink-soft);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner .logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.footer-inner .logo-cat { width: 24px; height: 24px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); transition: color 0.2s; font-size: 13px; }
.footer-links a:hover { color: var(--pink); }

/* --- PAGE HERO (generic for inner pages) --- */
.page-hero {
  padding: 180px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--gradient-soft);
  filter: blur(100px);
  top: -200px;
  right: -200px;
  z-index: 0;
  opacity: 0.6;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1,
.page-hero h1.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 auto 24px;
  max-width: 900px;
}
.page-hero h1 em,
.page-hero h1.section-title em {
  font-style: italic;
  color: var(--pink);
  font-weight: 900;
}
.page-hero .lede,
.page-hero .section-lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Table of contents on pillar/resource pages */
.toc ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc ol li a {
  color: var(--pink);
  font-weight: 500;
  font-size: 15px;
}
.toc ol li a:hover {
  text-decoration: underline;
}

/* --- CONTENT BLOCKS (for service/resource pages) --- */
.content-section { padding: 100px 0; }
.content-section:nth-child(even) { background: white; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.content-grid.reverse { direction: rtl; }
.content-grid.reverse > * { direction: ltr; }
.content-block h2,
.content-grid h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.content-block h2 em,
.content-grid h2 em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--pink);
}
.content-block p,
.content-grid > div > p {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.content-visual {
  background: var(--gradient-soft);
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

/* Feature list for service pages */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-top: 32px;
  list-style: none;
  padding: 0;
}
.feature-list li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.feature-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-size: 12px;
  top: 3px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.feature-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* Testimonial card */
.testimonial {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 40px;
}
.testimonial blockquote {
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 20px;
}
.testimonial cite {
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  color: var(--pink);
}

/* --- TESTIMONIAL CARDS (floating) --- */
.testimonial-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.testimonial-card:nth-child(1) { animation: floatCard 6s ease-in-out infinite; }
.testimonial-card:nth-child(2) { animation: floatCard 6s ease-in-out infinite 1s; }
.testimonial-card:nth-child(3) { animation: floatCard 6s ease-in-out infinite 2s; }

/* --- ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-24px) rotate(3deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- ANIMATION ENHANCEMENTS --- */

/* Staggered card grid reveal */
.services-grid > *,
.stagger-grid > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.services-grid.visible > *,
.stagger-grid.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Card tilt effect (3D perspective) */
.service-card {
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
}
.service-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Cursor cat follower */
#cursor-cat {
  filter: drop-shadow(0 4px 12px rgba(255, 46, 108, 0.2));
}

/* Metrics counter animation */
.metric .number {
  font-variant-numeric: tabular-nums;
}

/* --- RESPONSIVE --- */

/* Tablet & small desktop */
@media (max-width: 960px) {
  .hero { padding: 120px 0 0; }
  .hero > .container { padding-top: 20px; }
  .hero h1 { font-size: clamp(40px, 10vw, 64px); }
  .hero-buttons { margin-bottom: 40px; }
  .marquee { margin-top: auto; }
  .services-grid { grid-template-columns: 1fr !important; }
  .service-card { max-width: 100%; overflow: hidden; }
  .cases-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .content-grid.reverse { direction: ltr; }
  .content-grid h2 { word-wrap: break-word; word-break: break-word; }
  .content-visual { height: 280px; }
  .feature-list { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 60px; }
  .page-hero .section-lede { max-width: 100%; }
  .marquee-item { font-size: 22px; }
  .cta-section .cat-big { width: 150px; height: 150px; }
  .cta-section h2 { font-size: clamp(36px, 5vw, 60px); }
  .cta-section { padding: 100px 20px; }
  section { padding: 80px 0; }

  /* Override inline grid styles with 3 columns to 1 column */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"] { grid-template-columns: 1fr !important; }

  /* Override inline grid styles with 2 columns to 1 column on tablet */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Force single column for services grid on tablet (handles 7th card grid-column:2 issue) */
  .services-grid > * { grid-column: auto !important; }

  /* Handle justify-items and other grid alignment issues */
  [style*="justify-items:center"] { justify-items: start !important; }

  /* Catch all other multi-column repeat patterns */
  [style*="repeat(2,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(2, "] { grid-template-columns: 1fr !important; }
  [style*="repeat(4,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(4, "] { grid-template-columns: 1fr !important; }

  /* Mobile nav: show hamburger, hide links */
  .site-nav ul { display: none; }
  .site-nav .nav-toggle { display: block; }
  .site-nav { padding: 8px 12px 8px 16px; gap: 12px; max-width: 100vw; overflow: hidden; }
  .site-nav.scrolled { padding: 8px 12px 8px 16px; }
  .site-nav .cta { padding: 9px 16px; font-size: 13px; white-space: nowrap; }

  /* Improve tablet nav overflow on very small screens */
  .site-nav .logo { font-size: 16px; }
  .site-nav .logo-cat { width: 24px; height: 24px; }

  /* Open state: full-screen overlay */
  .site-nav.nav-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 32px 40px;
    gap: 0;
    z-index: 200;
  }
  .site-nav.nav-open:hover { transform: none; }
  .site-nav.nav-open .logo {
    position: absolute;
    top: 24px;
    left: 24px;
  }
  .site-nav.nav-open .nav-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
  }
  .site-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .site-nav.nav-open ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .site-nav.nav-open ul a {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--ink);
  }
  .site-nav.nav-open .cta {
    margin-top: 40px;
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  section { padding: 60px 0; }
  .page-hero { padding: 120px 0 48px; }
  .page-hero h1,
  .page-hero h1.section-title { font-size: clamp(32px, 8vw, 48px); }
  .page-hero .lede,
  .page-hero .section-lede { font-size: 17px; max-width: 100%; }
  .hero { min-height: 100dvh; padding: 70px 0 0; }
  .hero > .container { padding-top: 0; flex: 1; display: flex; align-items: center; }
  .hero-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 100%; }
  .hero-tag { font-size: 12px; margin-bottom: 0; }
  .hero h1 { font-size: clamp(36px, 10vw, 52px); margin-bottom: 0; }
  .hero p.lede { font-size: 18px; margin-bottom: 0; }
  .hero-buttons { flex-direction: column; align-items: center; margin-bottom: 0; }
  .hero-bg-shape { display: none; }
  .marquee { margin-top: 0; padding: 24px 0; flex-shrink: 0; }

  /* Override inline grid styles to 1 column - comprehensive coverage */
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="repeat(2,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(2, "] { grid-template-columns: 1fr !important; }
  [style*="repeat(4,"] { grid-template-columns: 1fr !important; }
  [style*="repeat(4, "] { grid-template-columns: 1fr !important; }
  .services-grid > * { grid-column: auto !important; }
  [style*="justify-items"] { justify-items: start !important; }
  .metrics-section { padding: 48px 24px; border-radius: 20px; margin: 40px 20px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .metric .number { font-size: 42px; }
  .section-title { font-size: clamp(32px, 7vw, 48px); margin-bottom: 16px; }
  .section-lede { font-size: 16px; margin-bottom: 40px; max-width: 100%; }
  .service-card { padding: 28px; max-width: 100%; overflow: hidden; }
  .service-card h3 { font-size: 20px; }
  .content-visual { height: 200px; font-size: 48px; }
  .content-grid { gap: 32px; grid-template-columns: 1fr; }
  .content-grid h2 { font-size: clamp(24px, 5vw, 32px); word-wrap: break-word; word-break: break-word; }
  .testimonial-card { padding: 24px; }
  .cta-section { padding: 80px 20px; }
  .cta-section h2 { font-size: clamp(32px, 7vw, 48px); }
  .cta-section p { font-size: 17px; }
  .cta-section .cat-big { width: 120px; height: 120px; }
  .btn { padding: 14px 24px; font-size: 14px; }
  .btn-brutal { padding: 16px 28px; font-size: 15px; }
  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { justify-content: center; flex-direction: column; gap: 12px; }
  .footer-links a { display: inline-block; }

  /* Pillar/resource page content improvements */
  .content-block p,
  .content-grid > div > p { font-size: 16px; line-height: 1.7; }
  .toc ol { padding-left: 16px; }
  .toc ol li a { font-size: 14px; }

  /* Contact form grid to single column on mobile */
  .content-grid input,
  .content-grid select,
  .content-grid textarea { font-size: 16px !important; /* prevents iOS zoom */ }

  /* Form 2-column grids to single column */
  .content-grid > form,
  .content-grid form { display: grid; grid-template-columns: 1fr; gap: 20px; }

  /* Override inline 2-column form grids */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* Small phones (320px+) */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: clamp(30px, 9vw, 42px); }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric .number { font-size: 36px; }
  .site-nav .logo { font-size: 15px; }
  .site-nav .logo-cat { width: 22px; height: 22px; }
  .site-nav .cta { padding: 8px 14px; font-size: 12px; }
  .site-nav { padding: 8px 10px 8px 14px; }

  /* Ensure nav doesn't overflow on very small screens */
  .site-nav .nav-toggle { padding: 6px; }
  .site-nav .nav-toggle span { width: 18px; margin: 4px 0; }
}
