/* FONTS — self-hosted (latin subset) so no request goes to Google and nothing blocks the first paint */
@font-face { font-family: 'Fredoka'; src: url('/assets/fonts/fredoka-var.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/assets/fonts/poppins-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
/* client wordmarks only (SootheSciatica, SignalPost); browsers download these just on pages that use them */
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-800.woff2') format('woff2'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFCF6;
  --ink: #201A2E;
  --ink-soft: #3A3250;
  --muted: #767084;
  --muted-2: #5B546B;
  --border: #EFE9DC;

  --coral: #FF6B4A;
  --coral-dark: #E2502F;
  --sun: #FFC93C;
  --sun-dark: #E0A800;
  --sky: #3FB6E8;
  --sky-dark: #1F93C4;
  --mint: #3FBF8F;
  --mint-dark: #269C6F;
  --grape: #A87EE0;
  --pink: #FF6FA0;
  --pink-dark: #E14C81;

  --coral-tint: #FFE4DA;
  --sun-tint: #FFF3CF;
  --sky-tint: #DBF1FB;
  --mint-tint: #DBF6EB;
  --grape-tint: #EEE2FB;
  --pink-tint: #FFE0EC;

  /* TEXT SHADES — the accents above are too light to read as small text. Use these for
     any text, or for a background behind light text. Each passes WCAG AA (4.5:1) on cream. */
  --coral-text: #CC4429;
  --grape-text: #8464B1;
  --sun-text: #916E13;
  --sky-text: #1F7BA7;
  --mint-text: #24795E;
  /* for large text only (24px+, or 19px+ bold): passes 3:1 */
  --coral-large: #EA6347;
  --sun-large: #B3870B;

  --ink-dark: #1A1626;
  --cream: #FFFCF6;
}

* { box-sizing: border-box; }

/* MOTION — first-screen content (.intro) rises in with pure CSS so it never waits on JavaScript;
   everything further down (.reveal) is revealed on scroll by reveal.js. Without JS, nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .intro { animation: rise-in 0.7s ease both; }
}
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
}

h1, h2, h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
figure, blockquote { margin: 0; }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--coral-text); }

/* height:auto keeps images in proportion now that the build adds width/height attributes */
img { max-width: 100%; height: auto; display: block; }

.eyebrow {
  display: inline-flex;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--ink);
  background: var(--sun-tint);
  padding: 6px 16px;
  border-radius: 999px;
}

/* SECTION TITLE — badge (with a sticker doodle) centered above the heading */
.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.section-badge-wrap { position: relative; display: inline-flex; }
.section-badge-wrap .eyebrow { transform: rotate(-6deg); }
.section-sticker { position: absolute; top: -12px; right: -16px; transform: rotate(12deg); }

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 28px 96px;
}
.nav-back-group { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.nav-home { font-size: 14px; color: var(--muted-2); }
.wordmark {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a.current { color: var(--coral-text); }
.btn-contact-nav {
  padding: 12px 24px;
  background: var(--ink-dark);
  color: var(--cream) !important;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(32,26,46,0.1);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* BUTTONS + LINKS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(32,26,46,0.1);
}
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-primary { background: var(--coral-text); color: var(--cream) !important; }
.btn-invert { background: var(--cream); color: var(--coral-text) !important; }
.btn-white { background: #fff; color: var(--coral-text) !important; }
.link-underline {
  font-size: 15px;
  font-weight: 600;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

/* LAYOUT */
.section { padding: 96px; }
.container { max-width: 1440px; margin: 0 auto; }
.flex { display: flex; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* HERO */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 72px 96px 96px;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 780px; }
.hero h1 { font-size: 64px; line-height: 1.08; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--coral-large); }
.hero p.lede { font-size: 18px; line-height: 1.6; color: var(--muted-2); max-width: 620px; margin: 0 auto; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 12px; }

/* HERO DOODLES */
.hero-doodle { position: absolute; z-index: 0; transition: transform 0.5s ease; }
.hero-doodle-squiggle { top: 6%; left: 8%; transform: rotate(-8deg); }
.hero-doodle-squiggle:hover { transform: rotate(calc(-8deg + 360deg)); }
.hero-doodle-blob { top: 42%; right: 7%; transform: rotate(6deg); }
.hero-doodle-blob:hover { transform: rotate(6deg) scale(1.3); }
.hero-doodle-plus { bottom: 12%; left: 13%; transform: rotate(-10deg); }
.hero-doodle-plus:hover { transform: rotate(calc(-10deg + 360deg)); }
.hero-doodle-heart { top: 16%; right: 17%; transform: rotate(-6deg); }
.hero-doodle-heart:hover { transform: rotate(-6deg) scale(1.35); }
@media (prefers-reduced-motion: reduce) {
  .hero-doodle { transition: none; }
}
.hero-copy { position: relative; z-index: 1; }

/* WORK GRID */
.work-section { padding: 40px 96px 60px; }
.work-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 40px; }
.work-header h2 { font-size: 38px; }

.work-card-logo {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 100%;
}
.client-logo-img { height: 76px; width: auto; display: block; }
.client-logo-mark { height: 46px; width: auto; display: block; }
.client-logo-signalpost-text {
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 32px;
  letter-spacing: -0.02em; color: #1A1A17;
}
.client-logo-soothe-text {
  font-family: 'Figtree', sans-serif; font-weight: 400; font-size: 38px;
  letter-spacing: -0.01em; color: #4F5D31;
}
.client-logo-soothe-text span { font-weight: 600; }

.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-card-title-row { display: contents; }
.work-card-img {
  height: 220px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(32, 26, 46, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.work-card:hover .work-card-img { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(32, 26, 46, 0.14); }
.work-card :is(h2, h3) { font-size: 22px; }
.work-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* LOCKED / COMING SOON WORK CARD */
.work-card--locked { cursor: default; }
.work-card--locked:hover .work-card-img { transform: none; box-shadow: 0 10px 24px rgba(32, 26, 46, 0.08); }
.work-card--locked .work-card-img { position: relative; overflow: hidden; }
.work-card--locked .work-card-logo { filter: blur(3px); opacity: 0.5; transform: scale(1.04); }
.work-card-lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(1px);
}
.lock-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  box-shadow: 0 6px 16px rgba(32, 26, 46, 0.14);
  color: var(--muted-2);
}
.work-card-lock-overlay span {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft);
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(32, 26, 46, 0.08);
}
.tag-muted { background: var(--border); color: var(--muted-2); }
.work-card--locked :is(h2, h3) { color: var(--muted-2); }
.tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 6px 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(32,26,46,0.1);
}

/* PROCESS */
.process-section { padding: 60px 96px 60px; }
.process-section-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.process-section-header h2 { font-size: 38px; }
/* PROCESS STEPS — blob icons with number badge + arrow connectors */
.process-steps { display: flex; align-items: flex-start; gap: 0; }
.process-step { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; min-width: 0; }
.step-arrow { flex: 0 0 auto; align-self: center; margin-top: 40px; color: var(--border); }
.step-visual { position: relative; width: fit-content; margin-bottom: 8px; }
.step-blob {
  width: 96px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 42% 58% 65% 35% / 45% 45% 55% 55%;
}
.step-num {
  position: absolute; top: -10px; left: -10px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 15px;
}
.process-step h3 { font-size: 18px; font-family: 'Fredoka', sans-serif; font-weight: 600; }
.process-step p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 240px; }

/* TESTIMONIALS */
.testimonials-section { padding: 40px 96px 120px; }
.testimonials-section-header { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: 56px; }
.testimonials-section h2 { font-size: 38px; }
.testimonial-grid { display: flex; gap: 32px; align-items: stretch; }
.testimonial-card {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(32, 26, 46, 0.06);
  transform: none;
}
.testimonial-card blockquote { flex: 1 1 auto; }
.testimonial-quote { display: block; }
.testimonial-card p { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.testimonial-person { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
  object-fit: cover;
}
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.testimonial-title { font-size: 13px; color: var(--muted); }

/* CTA BAND */
.cta-band {
  margin: 0 96px 96px;
  padding: 80px 72px;
  background: var(--coral-large);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 { font-size: 38px; color: var(--cream); max-width: 560px; line-height: 1.25; }
/* cream on coral only passes contrast as large text, so this link is sized up to 19px bold */
.cta-band .link-underline { font-size: 19px; font-weight: 700; }

/* FOOTER */
.footer {
  padding: 56px 96px 32px;
  background: var(--ink-dark);
  border-top: none;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.footer-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 16px;
}
.footer .wordmark { color: var(--cream); }
.footer-tagline { font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.footer-col { display: flex; flex-direction: column; gap: 14px; min-width: 120px; }
.footer-col-title { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.footer-col a { font-size: 15px; font-weight: 600; color: var(--cream); }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.6);
}

/* WORK DETAIL PAGE */
.wd-header { padding: 64px 96px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1180px; }
.wd-header h1 { font-size: 46px; line-height: 1.2; }
.wd-header p.lede { font-size: 18px; line-height: 1.6; color: var(--muted-2); }
.wd-hero-img {
  margin: 0 96px 64px; height: 520px; background: var(--sky-tint);
  border-radius: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500; color: var(--sky-dark);
}
.meta-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  padding: 0 96px 64px; margin: 0 96px 64px; border-bottom: 2px solid var(--border);
}
.meta-item { display: flex; flex-direction: column; gap: 8px; }
.meta-item .value { font-size: 16px; font-weight: 500; overflow-wrap: break-word; }
.meta-label {
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.wd-body-group { padding: 0 96px 80px; display: flex; flex-direction: column; gap: 40px; }
.wd-body { display: flex; gap: 80px; }
.wd-body-label { flex: 0 0 240px; }
.wd-section-label { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 20px; color: var(--ink); }
.wd-body-content { flex: 1 1 0; max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.wd-body-content p, .wd-body-content li { font-size: 17px; line-height: 1.75; color: var(--ink-soft); }
.wd-body-content ul { margin: 16px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.6; }
.ad-wall {
  margin: 0 96px 64px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.ad-tile {
  display: block; width: 100%; aspect-ratio: 1 / 1; overflow: hidden;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.ad-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.ad-tile:hover img { transform: scale(1.04); }
.ad-tile:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }

/* AD LIGHTBOX — built by lightbox.js on case study pages */
.lightbox {
  width: min(92vw, 700px); max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(26, 22, 38, 0.88); }
.lightbox-img { width: 100%; height: auto; max-height: 86vh; object-fit: contain; border-radius: 18px; }
.lightbox-btn {
  position: fixed; width: 48px; height: 48px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); color: var(--ink); cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.lightbox-btn:hover { color: var(--coral-text); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

.pull-quote { margin: 0 96px 80px; padding: 56px; background: var(--mint-tint); border-radius: 32px; }
.pull-quote p { font-family: 'Fredoka', sans-serif; font-weight: 500; font-size: 26px; line-height: 1.5; max-width: 800px; color: var(--mint-text); }
.pull-quote .attribution { margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--mint-text); }
.results-section { padding: 0 96px 100px; }
.results-section h2 { font-size: 28px; margin-bottom: 40px; }

/* COMING SOON PANEL — locked case-study placeholder */
.coming-soon-panel {
  margin: 0 96px 120px;
  padding: 72px 48px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.coming-soon-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--border); color: var(--muted-2);
  margin-bottom: 8px;
}
.coming-soon-panel h2 { font-size: 26px; }
.coming-soon-panel p { font-size: 15px; color: var(--muted); max-width: 420px; line-height: 1.6; margin-bottom: 8px; }
.result-stat { display: flex; flex-direction: column; gap: 8px; }
.result-stat .figure { font-family: 'Fredoka', sans-serif; font-size: 44px; font-weight: 600; }
.result-stat .label { font-size: 14px; color: var(--muted); }
.results-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.next-project {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 96px 96px; padding: 48px 56px; background: var(--ink-dark); border-radius: 32px; text-decoration: none;
}
.next-project .eyebrow-invert { font-size: 13px; font-weight: 600; color: var(--sun); text-transform: uppercase; letter-spacing: 0.08em; }
.next-project .title { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 600; color: var(--cream); }

/* ABOUT PAGE */
.about-header { padding: 64px 96px 72px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 980px; margin: 0 auto; }
.about-header h1 { font-size: 46px; line-height: 1.2; }
.about-header p { font-size: 17px; line-height: 1.65; color: var(--muted-2); }
.about-intro { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.about-intro p { font-size: 18px !important; line-height: 1.6 !important; }
.about-intro-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: 16px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  color: var(--ink);
  animation: about-arrow-bob 1.8s ease-in-out infinite;
}
.about-intro-arrow:hover { color: var(--coral-text); border-color: var(--coral-text); }
@keyframes about-arrow-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .about-intro-arrow { animation: none; }
}

/* ROADMAP */
.roadmap-section { padding: 40px 96px 120px; }
.roadmap-track { position: relative; max-width: 880px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 90px; }
.roadmap-line { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 100%; z-index: 0; opacity: 0.5; }
.roadmap-stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
}
.roadmap-stop:nth-of-type(even) { flex-direction: row-reverse; text-align: right; }
.roadmap-stop:nth-of-type(even) .roadmap-copy { align-items: flex-end; }
.roadmap-visual { position: relative; flex: 0 0 240px; width: 240px; height: 240px; display: flex; align-items: center; justify-content: center; }

/* pre-made sticker collages — transparent PNGs, no extra frame needed */
.roadmap-sticker-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.roadmap-copy { display: flex; flex-direction: column; gap: 8px; flex: 1 1 0; }
.roadmap-year { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; }
.roadmap-copy h3 { font-size: 21px; }
.roadmap-copy p { font-size: 17px; color: var(--muted); line-height: 1.65; max-width: 380px; }
.roadmap-stop:nth-of-type(even) .roadmap-copy p { margin-left: auto; }
.roadmap-quote {
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-align: center;
  max-width: 760px;
  margin: 80px auto 0;
}

/* STUDIES (SCHOOL PROJECTS) SECTION — full-width collage per project */
.studies-section { padding: 40px 96px 120px; }
.study-grid { display: flex; flex-direction: column; margin-top: 48px; }
.study-project { padding: 64px 0; border-top: 2px solid var(--border); }
.study-project:first-child { padding-top: 0; border-top: none; }

.study-project-header {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 14px; margin-bottom: 14px;
}
.study-name { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 30px; }
.study-tag { font-size: 13px; font-weight: 600; color: #fff; border-radius: 999px; padding: 6px 16px; }
.study-description { font-size: 16px; line-height: 1.6; color: var(--muted-2); max-width: 1180px; margin: 0 0 28px; }


/* BRAND COLLAGE — desktop keeps the exact hand-placed moodboard layout (per-tile
   position/size below); mobile shows a separately designed flat collage image instead.
   All of these images are lazy-loaded, so the hidden version is never downloaded. */
.brand-collage { position: relative; width: 100%; }
.brand-collage-mobile { display: none; }
.brand-collage--beens { aspect-ratio: 3954 / 3089; }
.brand-collage--papa { aspect-ratio: 4942 / 3762; }
.brand-tile {
  position: absolute; overflow: hidden; border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-tile:hover { transform: translateY(-6px); box-shadow: 0 16px 28px rgba(32, 26, 46, 0.20); z-index: 2; }
.brand-tile img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.brand-tile:hover img { transform: scale(1.06); }
.tile-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 6px; text-align: center;
  background: var(--sky-tint); border: 2px dashed var(--border);
  font-size: 12px; font-weight: 500; color: var(--muted-2);
}
.color-swatch {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px; box-sizing: border-box;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 18px;
}

/* Beens tile positions */
.beens-tile--swatch-1 { left: 0.0000%; top: 0.0324%; width: 12.5190%; height: 12.1075%; }
.beens-tile--swatch-2 { left: 13.9605%; top: 0.0000%; width: 16.7678%; height: 12.1075%; }
.beens-tile--swatch-3 { left: 32.2964%; top: 0.0324%; width: 12.5190%; height: 12.1075%; }
.beens-tile--swatch-4 { left: 46.3834%; top: 0.0000%; width: 14.7951%; height: 12.1075%; }
.beens-tile--swatch-5 { left: 62.6454%; top: 0.0324%; width: 10.3440%; height: 12.1075%; }
.beens-tile--interior { left: 74.1022%; top: 0.0000%; width: 25.8978%; height: 49.7572%; }
.beens-tile--bag { left: 0.0000%; top: 14.0822%; width: 36.5200%; height: 35.0599%; }
.beens-tile--cups { left: 37.6328%; top: 13.4024%; width: 35.4578%; height: 36.3548%; }
.beens-tile--loyalty { left: 4.1224%; top: 51.0521%; width: 36.6211%; height: 26.0278%; }
.beens-tile--menu { left: 42.0334%; top: 51.0521%; width: 28.3763%; height: 45.3869%; }
.beens-tile--storefront { left: 71.6237%; top: 51.0521%; width: 28.3763%; height: 45.3869%; }
.beens-tile--logo-cream { left: 4.1224%; top: 78.4073%; width: 17.7036%; height: 12.4636%; }
.beens-tile--logo-green { left: 23.0400%; top: 78.4073%; width: 17.7036%; height: 12.4636%; }

/* Papagalce tile positions */
.papa-tile--swatch-1 { left: 0.0000%; top: 0.0000%; width: 8.4176%; height: 11.0579%; }
.papa-tile--swatch-2 { left: 0.0000%; top: 12.8655%; width: 8.4176%; height: 11.0579%; }
.papa-tile--swatch-3 { left: 0.0000%; top: 25.7310%; width: 8.4176%; height: 11.0579%; }
.papa-tile--swatch-4 { left: 0.0000%; top: 38.5965%; width: 8.4176%; height: 11.0579%; }
.papa-tile--phone-hand { left: 9.5508%; top: 0.0000%; width: 30.3318%; height: 49.7873%; }
.papa-tile--phone-home { left: 41.0158%; top: 0.0000%; width: 32.5577%; height: 42.7698%; }
.papa-tile--logo-cream { left: 74.7066%; top: 0.0000%; width: 25.2934%; height: 24.9070%; }
.papa-tile--logo-purple { left: 74.6864%; top: 27.3791%; width: 25.3136%; height: 24.9070%; }
.papa-tile--phone-onboarding { left: 40.9955%; top: 45.0292%; width: 32.2137%; height: 52.8708%; }
.papa-tile--phone-lock { left: 0.0000%; top: 52.1265%; width: 39.8826%; height: 47.8735%; }
.papa-tile--shop-sign { left: 74.3221%; top: 54.7315%; width: 21.9749%; height: 38.4902%; }

/* CONTACT PAGE */
.contact-header { padding: 72px 96px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; max-width: 720px; margin: 0 auto; }
.contact-header h1 { font-size: 52px; line-height: 1.15; }
.contact-header p { font-size: 17px; line-height: 1.6; color: var(--muted-2); }
.contact-body {
  display: flex; align-items: flex-start; justify-content: center; gap: 80px;
  padding: 64px 96px 120px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; width: 100%; }
.form-row { display: flex; gap: 20px; }
.form-field { flex: 1 1 0; display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--muted-2); }
input, textarea {
  font-family: 'Poppins', sans-serif; font-size: 15px; border: 2px solid var(--border);
  border-radius: 16px; padding: 14px 18px; background: #FFFFFF; color: var(--ink);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 4px; }
.form-note:empty { display: none; }

/* CONTACT ENVELOPE */
.envelope-wrap { position: relative; flex: 1 1 0; max-width: 620px; }
.envelope-stage { position: relative; width: 100%; aspect-ratio: 1087 / 758; }
.envelope-wrap:not(.is-open) .envelope-stage {
  animation: envelope-shake 1.7s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes envelope-shake {
  0%, 65%, 100% { transform: rotate(0deg); }
  72% { transform: rotate(-1.8deg); }
  79% { transform: rotate(1.8deg); }
  86% { transform: rotate(-1deg); }
  93% { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .envelope-wrap:not(.is-open) .envelope-stage { animation: none; }
}
.envelope-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; z-index: 1;
  transition: opacity 0.9s ease, transform 0.9s ease;
  filter: hue-rotate(204deg) saturate(1.3) brightness(0.92);
}
.envelope-img-closed { opacity: 1; }
.envelope-img-open { opacity: 0; transform: translateY(0); }
.envelope-wrap.is-open .envelope-img-closed { opacity: 0; }
.envelope-wrap.is-open .envelope-img-open { opacity: 1; transform: translateY(16%); }

.envelope-seal-btn {
  position: absolute; left: 50%; top: 68%; width: 15%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%); z-index: 3;
  background: none; border: none; padding: 0; cursor: pointer;
  transition: transform 0.25s ease, opacity 0.4s ease;
  filter: drop-shadow(0 6px 10px rgba(32, 26, 46, 0.25));
}
.envelope-seal-btn img { width: 100%; height: 100%; display: block; object-fit: contain; }
.envelope-seal-btn:hover { transform: translate(-50%, -50%) scale(1.08) rotate(-4deg); }
.envelope-wrap.is-open .envelope-seal-btn {
  opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.6);
}

.envelope-doodle {
  position: absolute; top: -150px; left: -16%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink); pointer-events: none;
  transition: opacity 0.4s ease;
}
.envelope-doodle-text {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px;
  transform: rotate(6deg);
  white-space: nowrap;
}
.envelope-doodle-arrow { transform: rotate(-4deg); }
.envelope-wrap.is-open .envelope-doodle { opacity: 0; }

.letter {
  position: absolute; z-index: 2; left: 6%; right: 6%; top: 0;
  background: var(--cream);
  border-radius: 22px;
  padding: 40px 36px 36px;
  opacity: 0;
  transform: translateY(-14px);
  pointer-events: none;
  transition: opacity 1.1s ease 0.35s, transform 1.1s ease 0.35s;
  box-shadow: 0 10px 24px rgba(32, 26, 46, 0.10);
}
.envelope-wrap.is-open .letter { opacity: 1; transform: translateY(0); pointer-events: auto; }
.contact-details {
  flex: 0 0 340px; display: flex; flex-direction: column; gap: 0; padding: 40px 32px;
  background: var(--sun-tint); color: var(--ink); border-radius: 32px; height: fit-content;
  position: relative; overflow: hidden;
  box-shadow: 0 14px 30px rgba(32, 26, 46, 0.14);
}
.contact-details-sticker { position: absolute; top: 28px; right: 28px; opacity: 0.9; }
.contact-details-block { display: flex; flex-direction: column; gap: 12px; padding: 22px 0; }
.contact-details-block:first-child { padding-top: 0; }
.contact-details-block + .contact-details-block { border-top: 2px solid rgba(32, 26, 46, 0.12); }
.contact-details-label {
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: rgba(32, 26, 46, 0.7);
}
.contact-email-link {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 19px; color: var(--ink);
  line-height: 1.4; word-break: break-word; transition: opacity 0.15s ease;
}
.contact-email-link:hover { opacity: 0.7; }
.contact-elsewhere { display: flex; flex-direction: column; gap: 10px; }
.contact-elsewhere a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500;
  color: var(--ink); width: fit-content; transition: transform 0.15s ease, opacity 0.15s ease;
}
.contact-elsewhere a:hover { transform: translateX(4px); opacity: 0.7; }
.contact-elsewhere a span { transition: transform 0.15s ease; }
.contact-elsewhere a:hover span { transform: translate(2px, -2px); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav, .hero, .work-section, .process-section, .testimonials-section,
  .footer, .wd-header, .wd-hero-img, .meta-row, .wd-body-group, .results-section,
  .about-header,
  .contact-header, .contact-body {
    padding-left: 24px;
    padding-right: 24px;
  }
  .cta-band, .pull-quote, .next-project, .coming-soon-panel { margin-left: 24px; margin-right: 24px; }
  .process-section { padding-left: 40px; padding-right: 32px; }
  .coming-soon-panel { padding: 48px 28px; }
  .ad-wall { grid-template-columns: repeat(3, 1fr); margin-left: 24px; margin-right: 24px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .meta-row, .wd-hero-img { margin-left: 24px; margin-right: 24px; }
  .meta-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .hero {
    padding-top: 24px; padding-bottom: 80px;
    justify-content: flex-start;
  }
  .hero h1 { font-size: 42px; }
  .contact-header h1 { font-size: 42px; }
  .work-header h2, .process-section-header h2, .testimonials-section h2 { font-size: 32px; }
  .wd-header h1 { font-size: 28px; line-height: 1.25; }
  .hero-doodle { display: none; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  /* Brand collage — mobile swaps the desktop moodboard for a purpose-built
     flat collage image (designed separately for mobile), instead of trying
     to reflow the same absolutely-positioned tiles into a small screen. */
  .brand-collage { display: none; }
  .brand-collage-mobile { display: block; width: 100%; border-radius: 14px; overflow: hidden; }
  .work-card-title-row { display: flex; align-items: center; gap: 10px; order: 1; }
  .work-card-title-row :is(h2, h3) { order: 1; }
  .work-card-title-row .tag { order: 2; }
  .work-card p { order: 2; }
  .work-card-img { order: 3; }
  .process-steps { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
  .process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 20px;
    padding: 0;
  }
  .step-visual { grid-column: 1; grid-row: 1 / 3; margin-bottom: 0; }
  .process-step h3 { grid-column: 2; grid-row: 1; align-self: end; }
  .process-step p { grid-column: 2; grid-row: 2; max-width: none; }
  .testimonial-grid { flex-direction: column; }
  .testimonial-card { transform: none !important; margin-top: 0 !important; }
  .wd-body { flex-direction: column; gap: 16px; }
  .wd-body-label { flex: 0 0 auto; }
  .roadmap-section { padding-left: 24px; padding-right: 24px; }
  .roadmap-line { display: none; }
  .roadmap-quote { font-size: 20px; margin-top: 48px; }
  .studies-section { padding-left: 24px; padding-right: 24px; }
  .study-project { padding: 40px 0; }
  .study-name { font-size: 24px; }
  .roadmap-stop, .roadmap-stop:nth-of-type(even) {
    flex-direction: column; text-align: center; gap: 20px;
  }
  .roadmap-stop:nth-of-type(even) .roadmap-copy,
  .roadmap-copy { align-items: center; }
  .roadmap-copy p, .roadmap-stop:nth-of-type(even) .roadmap-copy p { max-width: none; margin-left: 0; }
  .contact-body { flex-direction: column; align-items: stretch; }
  .contact-details { flex: none; }
  .envelope-wrap { max-width: none; }
  .letter { padding: 32px 22px 28px; }
  .envelope-doodle { left: 21%; top: -78px; transform: translateX(-50%); }
  .envelope-doodle-arrow { width: 30px; height: 33px; }
  .nav-links { gap: 16px; font-size: 14px; }
  .nav-back-group { gap: 16px; order: 2; }
  .nav:has(.nav-back-group) .wordmark { order: 1; }
  .cta-band { padding: 56px 24px; border-radius: 28px; }
  .next-project { border-radius: 24px; }
  .footer-top { flex-direction: column; gap: 32px; }
}

@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .letter { padding: 26px 18px 24px; left: 6%; right: 6%; }
  .envelope-doodle-text { font-size: 16px; }
}
