/* The Happy Humans Project. The look comes from logo A7-A4: a sun-yellow rounded square with a navy smile,
   tilted as if it is bobbing. Navy ink and one yellow on warm paper; tilted rounded squares are the only motif. */

:root {
  --sun: #FDC330;
  --sun-soft: #FFE9B0;
  --ink: #1D2234;
  --navy: #242A3B;
  --muted: #5C6274;
  --paper: #FBFAF6;
  --tint: #F4F1E8;
  --line: rgba(36, 42, 59, 0.1);
  --radius: 22px;
  --tilt: 12deg;
  --shadow: 0 1px 2px rgba(29, 34, 52, 0.04), 0 12px 32px -12px rgba(29, 34, 52, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.03em; line-height: 1.08; font-weight: 750; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: min(1180px, 100% - 48px); margin: 0 auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 250, 246, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; transform: rotate(var(--tilt)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand-mark { transform: rotate(0deg) translateY(-2px); }
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.brand-name b { color: #E5A800; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 550; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 24px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 650; font-size: 16px; text-decoration: none; letter-spacing: -0.01em;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(29, 34, 52, .5); }
.btn-small { padding: 10px 18px; font-size: 14px; color: #fff !important; }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 8px; }
.btn-ghost:hover { box-shadow: none; }
.btn-ghost span { transition: transform .2s; }
.btn-ghost:hover span { transform: translateX(3px); }
.btn-dark { background: var(--ink); color: #fff; }

/* Type helpers */
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .32em;
  background: var(--sun); border-radius: 6px; z-index: -1; transform: rotate(-1.5deg);
}
.hl-dark { color: var(--sun); }

/* Hero */
.hero { padding: 96px 0 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); position: relative; z-index: 0; }
.lede { margin-top: 28px; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: end; width: 100%; }
.tile { position: absolute; border-radius: 22%; }
.tile-main {
  inset: 14% 12% 12% 14%;
  transform: rotate(var(--tilt));
  animation: bob 6s ease-in-out infinite;
  border-radius: 20.9%;
  box-shadow: 0 40px 70px -30px rgba(201, 148, 0, .55);
}
.tile-main svg { width: 100%; height: 100%; display: block; }
.tile-a { width: 16%; aspect-ratio: 1; top: 0; left: 0; background: var(--ink); transform: rotate(-10deg); animation: bob-a 7s ease-in-out infinite; }
.tile-b { width: 11%; aspect-ratio: 1; bottom: 4%; left: 6%; background: var(--sun-soft); transform: rotate(18deg); animation: bob-b 8s ease-in-out infinite; }
.tile-c { width: 13%; aspect-ratio: 1; top: 6%; right: 0; border: 3px solid var(--navy); transform: rotate(24deg); animation: bob-b 9s ease-in-out infinite reverse; }

@keyframes bob { 0%, 100% { transform: rotate(var(--tilt)) translateY(0); } 50% { transform: rotate(calc(var(--tilt) - 4deg)) translateY(-14px); } }
@keyframes bob-a { 0%, 100% { transform: rotate(-10deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(10px); } }
@keyframes bob-b { 0%, 100% { transform: rotate(18deg) translateY(0); } 50% { transform: rotate(26deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .tile, .brand-mark { animation: none !important; transition: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 120px 0; }
.section-tint { background: var(--tint); }
#contact { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-lede { margin-top: 20px; font-size: 19px; color: var(--muted); max-width: 36em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(29, 34, 52, .04), 0 24px 48px -20px rgba(29, 34, 52, .22); }
.card:hover .chip { transform: rotate(0deg); }
.chip {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--c); color: var(--navy); font-weight: 800; font-size: 20px;
  transform: rotate(var(--tilt)); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
  margin-bottom: 28px;
}
.card h3 { font-size: 22px; }
.card-wide { grid-column: span 2; }
.card-wide h3 { font-size: 26px; }
.card-wide p { font-size: 17px; max-width: 32em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.principles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.principles li { border-top: 2px solid var(--ink); padding-top: 28px; }
.num { display: block; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #C99400; margin-bottom: 18px; }
.principles h3 { font-size: 24px; }
.principles p { margin-top: 12px; color: var(--muted); }

.mission { background: var(--ink); color: #fff; padding: 140px 0; overflow: hidden; }
.mission-inner { position: relative; }
.mission p { font-size: clamp(32px, 4.6vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; max-width: 16em; }
.mission-mark { position: absolute; right: 0; top: 50%; width: 220px; height: 220px; transform: translateY(-50%) rotate(var(--tilt)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.services { list-style: none; margin: 0; padding: 0; }
.services li { padding: 28px 0; border-bottom: 1px solid var(--line); }
.services li:first-child { padding-top: 0; }
.services h3 { font-size: 21px; }
.services p { margin-top: 8px; color: var(--muted); }

.cta {
  position: relative; overflow: hidden;
  background: var(--sun); border-radius: 32px; padding: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { font-size: clamp(32px, 4vw, 48px); color: var(--navy); }
.cta p { margin-top: 12px; font-size: 19px; color: var(--navy); opacity: .8; }
.cta .btn { position: relative; z-index: 1; }

.footer { padding: 48px 0 64px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 40px; }

/* Smaller screens */
@media (max-width: 960px) {
  .hero { padding: 48px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { justify-self: center; max-width: 360px; order: -1; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .principles { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .mission-mark { position: static; display: block; width: 88px; height: 88px; margin: 0 0 36px 6px; transform: rotate(var(--tilt)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { padding-bottom: 32px; }
  .hero-art { max-width: 260px; }
  .lede { font-size: 18px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .mission { padding: 96px 0; }
  .cta { padding: 40px 28px; border-radius: 24px; }
  .cta .btn { font-size: 14px; padding: 14px 18px; }
}
