/* MJF Workbooks: a workbook someone is using. Cream dotted paper, four markers, one tree. */
.mj-page {
  --cream: #fff5c9;
  --dot: #f2dc80;
  --ink: #1d1d1b;
  --green: #2cb559;
  --orange: #f25e30;
  --blue: #3369b3;
  --yel: #f2b51a;
  --gap: 56px;
  --inner: 26px;
  --title: 'Libre Franklin', system-ui, sans-serif;
  --hand: 'Gochi Hand', cursive;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--title);
}

.mj-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: none;
}

.mj-page .pill-nav {
  background: #fff;
  color: var(--ink);
}

.mj {
  position: relative;
  overflow-x: clip;
  background: radial-gradient(circle, var(--dot) 1.2px, transparent 1.5px) 0 0 / 16px 16px, var(--cream);
}

.mj-wrap {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.mj h1,
.mj h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.mj h2 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.12;
}

.mj p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
}

.mj-sec {
  padding: var(--gap) 0;
}

.mj-chip {
  display: inline-block;
  margin-bottom: 14px !important;
  padding: 4px 13px;
  background: var(--green);
  color: #fff;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.4 !important;
  clip-path: polygon(1% 8%, 34% 0, 67% 7%, 100% 2%, 98% 94%, 62% 100%, 30% 92%, 0 100%);
}

.mj-chip--y { background: var(--yel); color: var(--ink); }
.mj-chip--o { background: var(--orange); }
.mj-chip--ink { background: var(--ink); }

/* ---------- hero ---------- */
.mj-hero {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.mj-hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  align-items: center;
  gap: 32px;
  padding-top: 96px;
  padding-bottom: 20px;
}

.mj-kick {
  margin-bottom: 10px !important;
  font-size: 16px !important;
  font-weight: 600;
}

.mj h1 img {
  display: block;
  width: min(100%, 560px, 62svh);
  height: auto;
  margin-left: -2%;
}

.mj-hero-art {
  position: relative;
  display: grid;
  justify-items: center;
}

.mj-hero-art img {
  display: block;
  width: min(100%, 560px, calc((100svh - 275px) * 0.86));
  height: auto;
  animation: mj-float 5.5s ease-in-out infinite alternate;
}

.mj-shade {
  position: absolute;
  bottom: -12px;
  left: 18%;
  width: 56%;
  height: 24px;
  border-radius: 50%;
  background: rgba(120, 85, 10, 0.34);
  filter: blur(14px);
  animation: mj-shade 5.5s ease-in-out infinite alternate;
}

@keyframes mj-float {
  from { transform: translateY(8px) rotate(-0.7deg); }
  to { transform: translateY(-12px) rotate(0.7deg); }
}

@keyframes mj-shade {
  from { opacity: 1; transform: scaleX(1); }
  to { opacity: 0.6; transform: scaleX(0.86); }
}

.mj-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 16px 36px;
  margin: 0 auto;
  padding-top: 14px;
  padding-bottom: 22px;
}

.mj-facts dt {
  font-size: 14px;
  font-weight: 500;
  color: rgba(29, 29, 27, 0.72);
}

.mj-facts dd {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
}

.mj-me {
  display: inline-block;
  padding: 0 8px;
  background: var(--yel);
}

.pre-motion .mj-hero-copy > *,
.pre-motion .mj-hero-art {
  opacity: 0;
}

/* ---------- brief ---------- */
.mj-brief {
  padding: 24px 0 40px;
}

.mj-brief-in {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 56px;
}

.mj-quote {
  margin: 0;
  padding: 30px 30px 26px;
  background: #fff;
  border: 2px solid var(--green);
  font-family: var(--hand);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
  rotate: -2deg;
  clip-path: polygon(0 3%, 34% 0, 70% 4%, 100% 1%, 99% 97%, 60% 100%, 28% 96%, 1% 100%);
}

.mj-quote small {
  display: block;
  margin-top: 12px;
  font-family: var(--title);
  font-size: 15px;
  font-weight: 600;
}

.mj-brief h2 {
  margin-bottom: 14px;
}

.mj-brief p + p {
  margin-top: 10px;
}

/* ---------- fill ---------- */
.mj-fill {
  padding: 40px 0;
  background: var(--blue);
  color: #fff;
}

.mj-desk {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: var(--inner);
}

.mj-pg {
  display: block;
  grid-column: span 3;
  width: 100%;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 14px 30px rgba(10, 30, 70, 0.4);
}

.mj-pg1 { rotate: -1.6deg; }
.mj-pg2 { rotate: 1.2deg; margin-top: 22px; }
.mj-pg3 { rotate: -0.8deg; }
.mj-pg4 { rotate: 1.5deg; margin-top: 22px; }

.mj-rate {
  grid-column: 3 / span 8;
  margin-top: 14px;
  padding: 20px 26px;
  background: var(--cream);
  color: var(--ink);
  rotate: -0.5deg;
}

.mj-rate p {
  margin-bottom: 8px;
  color: var(--orange);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.mj-rate ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mj-rate li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.mj-rate b {
  font-weight: 600;
}

.mj-rate i {
  --on: 0;
  position: relative;
  flex: none;
  font-family: system-ui, sans-serif;
  font-size: 22px;
  font-style: normal;
  letter-spacing: 2px;
  line-height: 1.3;
  color: #d9c98a;
}

.mj-rate i::before {
  content: '★★★★★';
}

.mj-rate i::after {
  content: '★★★★★';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yel);
  clip-path: inset(0 calc(100% - var(--on) * 20%) 0 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- tree ---------- */
.mj-tree {
  position: relative;
  height: calc(100svh + 230vh);
}

.mj-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100svh;
  overflow: hidden;
}

.mj-tree-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}

.mj-tree-h {
  position: relative;
  z-index: 3;
  align-self: start;
  padding-top: 7svh;
}

.mj-tree h2 {
  font-size: clamp(32px, 3.8vw, 52px);
}

.mj-caps {
  position: relative;
  min-height: 100px;
  margin-top: 16px;
}

.mj-cap {
  position: absolute;
  inset: 0 0 auto;
  font-size: 19px !important;
  line-height: 1.45 !important;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.3s, translate 0.3s;
}

.mj-cap.is-on {
  opacity: 1;
  translate: 0 0;
}

.mj-note {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.mj-stage {
  position: relative;
  height: min(90svh, 860px);
  aspect-ratio: 482 / 490;
}

.mj-soil {
  position: absolute;
  top: 60%;
  left: -100vw;
  right: -100vw;
  bottom: -100vh;
  background: var(--yel);
  transform-origin: 50% 0;
}

.mj-soil::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: #3f2412;
}

.mj-t {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: clip-path;
}

.mj-leaf {
  opacity: 0;
  transform-origin: 46.7% 60%;
  will-change: transform, opacity;
}

.mj-box {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
}

.mj-box img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
}

.mj-box span {
  grid-area: 1 / 1;
  z-index: 1;
  padding: 0 4%;
  font-family: var(--hand);
  font-size: max(12.5px, 1.45vw);
  line-height: 1;
  color: #27345c;
  text-align: center;
  rotate: -2deg;
  clip-path: inset(-20% 100% -20% 0);
}

.mj-tag {
  position: absolute;
  z-index: 3;
  height: auto;
  opacity: 0;
}

/* ---------- colour ---------- */
.mj-colour-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.mj-colour h2 {
  margin-bottom: 14px;
}

.mj-mark {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mj-mark li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px 22px;
  background: var(--c);
  color: var(--t, #fff);
  clip-path: polygon(0 12%, 26% 0, 58% 10%, 100% 2%, 98% 90%, 70% 100%, 32% 90%, 2% 100%);
}

.mj-mark li:nth-child(even) {
  margin-left: 6%;
}

.mj-mark b {
  font-size: 24px;
  font-weight: 900;
}

.mj-mark span {
  font-size: 15px;
  font-weight: 600;
}

/* ---------- media ---------- */
.mj-media {
  padding-bottom: 0;
  background: #efefef;
}

.mj-media-in {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 48px;
}

.mj-media h2 {
  margin-bottom: 14px;
}

.mj-fan {
  display: flex;
  justify-content: center;
  padding: 14px 0;
}

.mj-fan img {
  display: block;
  width: 31%;
  height: auto;
  margin-left: -6%;
  border-radius: 2px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.mj-f1 { rotate: -7deg; margin-left: 0 !important; translate: 0 8px; }
.mj-f2 { rotate: -2.5deg; }
.mj-f3 { rotate: 2.5deg; }
.mj-f4 { rotate: 7deg; translate: 0 8px; }

.mj-lca {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.32em;
  margin-top: 44px !important;
  padding: 24px 16px 22px;
  background: var(--ink);
  color: #fff;
  font-size: clamp(30px, 6.2vw, 92px) !important;
  font-weight: 900;
  line-height: 1.12 !important;
}

.mj-lca span:nth-child(1) { color: var(--yel); }
.mj-lca span:nth-child(2) { color: #fff; }
.mj-lca span:nth-child(3) { color: var(--orange); }

/* ---------- end ---------- */
.mj-ctas {
  display: flex;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 24px;
}

.mj-btn {
  display: inline-block;
  padding: 12px 26px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(0 10%, 34% 0, 68% 8%, 100% 2%, 98% 92%, 62% 100%, 30% 90%, 2% 100%);
  transition: translate 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mj-btn:hover {
  translate: 0 -3px;
}

.mj-page .site-footer {
  position: relative;
  margin-top: 0;
  padding-top: 32px;
  padding-bottom: 64px;
  background: none;
}

.mj-page .site-footer .copyright {
  margin-top: 28px;
  color: rgba(29, 29, 27, 0.7);
}

.mj-page .footer-links a {
  color: var(--ink);
}

.mj-page .footer-studio img {
  mix-blend-mode: multiply;
}

.mj-page .footer-row {
  flex-wrap: wrap;
  gap: 16px;
  height: auto;
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .mj-tree-in {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .mj-pin {
    align-items: flex-start;
    padding-top: 56px;
  }

  .mj-tree-h {
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  .mj-tree .mj-chip {
    display: none;
  }

  .mj-note {
    font-size: 13px;
  }

  .mj-tree h2 {
    font-size: clamp(26px, 6vw, 40px);
  }

  .mj-caps {
    min-height: 54px;
    margin-top: 4px;
  }

  .mj-cap {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .mj-stage {
    height: min(calc(100svh - 150px), calc(100vw - 16px));
  }

  .mj-box span {
    font-size: max(12px, 1.7vw);
  }
}

@media (max-width: 900px) {
  .mj-wrap.mj-hero-in {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding-top: 128px;
    padding-bottom: 8px;
    text-align: center;
    gap: 16px;
  }

  .mj-hero-art img {
    width: min(92%, 520px);
  }

  .mj-facts {
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
    text-align: left;
  }
  .mj-box span {
    font-size: max(12px, 2.2vw);
  }
}

@media (max-width: 760px) {
  .mj {
    --gap: 40px;
    --inner: 20px;
  }

  .mj-wrap {
    padding: 0 16px;
  }

  .mj-brief {
    padding: 16px 0 28px;
  }

  .mj-fill {
    padding: 30px 0;
  }

  .mj-ctas {
    padding-top: 40px;
    padding-bottom: 16px;
  }

  .mj-page .site-footer {
    padding-top: 20px;
    padding-bottom: 44px;
  }

  .mj p {
    font-size: 17px;
  }

  .mj-wrap.mj-hero-in {
    padding-top: 84px;
  }

  .mj-kick {
    font-size: 14px !important;
  }

  .mj-facts dd {
    font-size: 17px;
  }

  .mj h1 img {
    width: 100%;
    margin: 0 auto;
  }

  .mj-brief-in,
  .mj-colour-in,
  .mj-media-in {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .mj-desk {
    gap: 12px;
  }

  .mj-pg {
    grid-column: span 6;
  }

  .mj-rate {
    grid-column: 1 / -1;
    padding: 16px;
  }

  .mj-rate ul {
    grid-template-columns: 1fr;
  }

  .mj-tree {
    height: calc(100svh + 190vh);
  }

  .mj-box span {
    font-size: 12px;
  }

  .mj-mark b {
    font-size: 21px;
  }

  .mj-fan {
    padding: 14px 8px;
  }

  .mj-fan img {
    width: 29%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mj-hero-art img,
  .mj-shade {
    animation: none;
  }

  .mj-tree {
    height: auto;
    padding: 30px 0;
  }

  .mj-pin {
    position: static;
    height: auto;
    overflow: hidden;
  }

  .mj-cap {
    position: static;
    opacity: 1;
    translate: 0 0;
  }

  .mj-caps {
    min-height: 0;
  }

  .mj-rate i {
    --on: var(--n);
  }
}
