:root {
  --orchid: #9B6BD6;
  --orchid-deep: #7A47C0;
  --lavender: #EFE6FA;
  --aqua: #5FD1CF;
  --green: #8ED87B;
  --yellow: #FFD84D;
  --cream: #FFFBF3;
  --plum: #3B2457;
  --soft: #5B4378;
  --line: #E4D6F5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(44px, 8vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(34px, 6vw, 50px); }
h3 { font-size: 28px; }
p { margin: 0; }
a { color: var(--orchid-deep); }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
.skip:hover { color: #fff; }

.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
main > section.wrap:not(.hero) { margin-top: 88px; }
main > section.hero { margin-top: 24px; }

.eyebrow { font-weight: 800; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orchid-deep); margin-bottom: 10px; }

/* Buttons and tags */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 30px; border-radius: 999px;
  font-weight: 800; font-size: 18px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-purple { background: var(--orchid-deep); color: #fff; }
.btn-purple:hover { background: var(--plum); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--plum); }
.btn-yellow:hover { background: #FFE27A; color: var(--plum); }
.btn-dark { background: var(--plum); color: #fff; }
.btn-dark:hover { background: var(--orchid-deep); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.tag { display: inline-block; font-weight: 800; font-size: 16px; padding: 8px 18px; border-radius: 999px; color: var(--plum); }
.tag-green { background: var(--green); }
.tag-aqua { background: var(--aqua); }
.tag-yellow { background: var(--yellow); }
.tag-small { font-size: 14px; padding: 4px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }

/* Nav */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.logo { position: relative; display: inline-block; padding-right: 28px; text-decoration: none; }
.logo span { font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; color: var(--orchid-deep); }
.logo svg { position: absolute; right: 0; top: -4px; width: 24px; height: 24px; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-weight: 800; font-size: 17px; }
.nav nav a:not(.btn) { color: var(--plum); text-decoration: none; padding: 12px 0; }
.nav nav a:not(.btn):hover { color: var(--orchid-deep); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.lead { font-size: 22px; max-width: 560px; }
/* The hero photo frame is a fixed, balanced size (4:5, at most 420px wide), whatever the photo. */
.hero-photo {
  flex: 0 1 420px; max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 5; position: relative; background: var(--lavender);
  border-radius: 48px; display: flex; align-items: flex-end; padding: 28px; overflow: hidden;
}
.hero-img { flex: 0 1 420px; width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 48px; }
.dot { position: absolute; border-radius: 999px; }
.dot-yellow { top: 28px; right: 28px; width: 96px; height: 96px; background: var(--yellow); }
.dot-aqua { top: 130px; left: 28px; width: 64px; height: 64px; background: var(--aqua); }
.spark { position: absolute; top: 64px; left: 120px; width: 40px; height: 40px; }
.photo-note { position: relative; background: #fff; border-radius: 24px; padding: 14px 20px; font-weight: 800; font-size: 16px; }

.strip {
  margin-top: 88px; background: var(--aqua); padding: 22px 24px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 24px;
}

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.portrait-wrap { position: relative; flex: 1 1 320px; max-width: 440px; }
.portrait {
  aspect-ratio: 1 / 1; border-radius: 999px; background: var(--orchid); color: #fff;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 48px;
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 28px; line-height: 1.2;
}
.portrait-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 999px; display: block; }
.spark-big { right: 12px; top: 8px; left: auto; width: 64px; height: 64px; }
.about-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 22px; }
.about-text p { font-size: 20px; line-height: 1.6; }
.about-text .eyebrow { margin-bottom: 0; }

/* Videos */
.video-band { background: var(--lavender); border-radius: 56px; padding: 56px 40px; display: flex; flex-direction: column; gap: 10px; }

/* The first video is large, with its text beside it (below it on phones). */
.featured { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; margin-top: 30px; }
.featured-media { position: relative; flex: 0 1 380px; width: 100%; max-width: 380px; }
.featured-text { flex: 1 1 320px; max-width: 520px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.featured-text p { font-size: 20px; }

/* The other videos: as many columns as fit (1 on phones, 3 on desktop), with a short last row centered. */
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px 24px; margin-top: 44px; }
.video-tile { position: relative; flex: 1 1 326px; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; }

/* Uploaded videos sit in an upright 9:16 frame; a video of any other shape fits inside it without being cropped. */
.video-frame { position: relative; width: 100%; max-width: 380px; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--plum); }
.video-player { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--plum); }
.video-cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.video-play .play { width: 64px; height: 64px; }
.video-play:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }

/* Instagram embeds (the fallback) need at least 326px, and their height is whatever Instagram gives them. */
.video-tile .instagram-media, .featured-media .instagram-media { width: 100% !important; min-width: 326px !important; max-width: 540px !important; margin: 0 !important; }
.video-tile iframe, .featured-media iframe { min-width: 326px !important; max-width: 540px !important; width: 100% !important; margin: 0 !important; }

.video-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.2; }
.video-watch { font-weight: 800; font-size: 16px; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; }
.card { flex: 1 1 280px; border-radius: 36px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card p { line-height: 1.5; }
.card-aqua { background: var(--aqua); }
.card-green { background: var(--green); }
.card-yellow { background: var(--yellow); }
.card-white { background: #fff; gap: 14px; }
.step {
  width: 56px; height: 56px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 30px; color: var(--plum);
}
.step-purple { background: var(--orchid); color: #fff; }
.step-aqua { background: var(--aqua); }
.step-yellow { background: var(--yellow); }

/* CTA */
.cta {
  background: var(--yellow); border-radius: 56px; padding: 64px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.cta h2 { font-size: clamp(34px, 6vw, 56px); }
.cta p { font-size: 20px; max-width: 560px; }
.cta .ig { color: var(--plum); font-weight: 800; font-size: 17px; }
/* Until Sanity supplies a real address, these still point at #hello (themselves): hide the dead placeholders. */
.cta #email-link[href="#hello"], .cta #ig-link[href="#hello"] { display: none; }

/* Footer */
.footer {
  margin-top: 88px; padding-top: 24px; padding-bottom: 32px; border-top: 2px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 16px; color: var(--soft);
}
.footer { max-width: 1200px; }
.logo-small { position: relative; display: inline-block; padding-right: 18px; font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 28px; color: var(--orchid-deep); }
.logo-small svg { position: absolute; right: 0; top: -3px; width: 15px; height: 15px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; }
.credit { font-size: 14px; }
.credit a { display: inline-block; padding: 6px 0; color: inherit; font-weight: 700; text-underline-offset: 3px; }
.credit a:hover { color: var(--plum); }

@media (max-width: 640px) {
  /* One set of phone sizes and spacing, used everywhere below */
  :root {
    --fs-body: 16px; --fs-lead: 17px; --fs-h1: 34px; --fs-h2: 26px; --fs-h3: 20px; --fs-small: 14px;
    --gap-section: 40px; --gap-block: 24px; --gap-stack: 16px;
    --pad-card: 16px; --radius-card: 20px; --radius-band: 32px;
  }
  body { font-size: var(--fs-body); }
  h1 { font-size: var(--fs-h1); line-height: 1.1; }
  h2 { font-size: var(--fs-h2); line-height: 1.15; }
  h3 { font-size: var(--fs-h3); line-height: 1.2; }
  .btn { min-height: 44px; padding: 10px 20px; font-size: var(--fs-small); }
  .btn-row { gap: 10px; }
  .tag { font-size: var(--fs-small); padding: 6px 14px; }
  .tags { gap: 8px; }

  /* Header: a small logo over one compact row of links and the button (about 100px tall) */
  .nav { gap: 0; padding-top: 12px; }
  .logo { padding: 7px 20px 7px 0; }
  .logo span { font-size: 32px; }
  .logo svg { top: 3px; width: 18px; height: 18px; }
  .nav nav { width: 100%; justify-content: space-between; gap: 0 6px; font-size: var(--fs-small); }
  .nav nav a:not(.btn) { padding: 13px 0; }
  .nav .btn { padding: 8px 12px; }

  /* Hero */
  .hero { gap: var(--gap-block); }
  .hero-text { gap: var(--gap-stack); }
  .lead { font-size: var(--fs-lead); }
  /* The hero photo is much smaller on phones (about 42% of the screen height), centered, in the same rounded 4:5 frame */
  .hero-photo, .hero-img {
    flex: 0 0 auto; max-width: none; margin-inline: auto; border-radius: var(--radius-band);
    width: min(100%, calc(42vh * 4 / 5)); width: min(100%, calc(42svh * 4 / 5));
  }
  .hero-photo { padding: 16px; }

  /* Spacing: about 40px between sections */
  main > section.wrap:not(.hero) { margin-top: var(--gap-section); }
  .strip { margin-top: var(--gap-section); padding: 14px 20px; gap: 4px 20px; font-size: var(--fs-lead); }
  .footer { margin-top: var(--gap-section); }

  /* About: the round portrait is about 230px wide and centered */
  .about { gap: var(--gap-block); }
  .about-text { gap: var(--gap-stack); }
  .about-text p { font-size: var(--fs-body); }
  .portrait-wrap { flex: 0 0 auto; width: 230px; max-width: none; margin-inline: auto; }
  .spark-big { width: 48px; height: 48px; }

  /* Cards: compact; on the "How working together goes" cards the step number sits beside the title */
  .cards { gap: 10px; margin-top: var(--gap-stack); }
  .card { padding: var(--pad-card) 18px; border-radius: var(--radius-card); gap: 4px; }
  .card h3 { font-size: var(--fs-h3); }
  .card p { font-size: var(--fs-body); line-height: 1.45; }
  .card-white { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 4px; }
  .card-white p { grid-column: 1 / -1; }
  /* 19px bold text counts as large text, which keeps white-on-purple readable */
  .step { width: 30px; height: 30px; font-size: 19px; }

  /* Videos: the featured one is narrower and shorter (about two-thirds of the screen height); the rest sit two to a row */
  #videos.wrap { padding: 0 8px; }
  #videos h2 { font-size: 28px; }
  #videos h3 { font-size: 22px; }
  .video-band { padding: 28px 8px; border-radius: 32px; }
  .featured { gap: 20px; margin-top: 20px; }
  .featured-media .video-frame { width: min(100%, calc(66vh * 9 / 16)); width: min(100%, calc(66svh * 9 / 16)); margin-inline: auto; }
  .featured-text { gap: 10px; }
  .featured-text p { font-size: 17px; }
  .video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; margin-top: 28px; }
  .video-tile { max-width: none; gap: 6px; }
  .video-tile--embed { grid-column: 1 / -1; }
  .video-tile:last-child:nth-child(odd):not(.video-tile--embed) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
  .video-tile .video-frame { max-width: none; border-radius: 18px; }
  .video-play .play { width: 44px; height: 44px; }
  .video-title { font-size: 15px; line-height: 1.25; }
  .tag-small { font-size: 12px; padding: 3px 10px; }
  .video-watch { padding: 11px 0; margin: -5px 0; }

  /* Contact and footer */
  .cta { padding: 32px 20px; border-radius: var(--radius-band); gap: var(--gap-stack); }
  .cta h2 { font-size: var(--fs-h2); }
  .cta p { font-size: var(--fs-lead); }
  .cta .ig { display: inline-block; padding: 11px 0; }
  .footer-meta { align-items: flex-start; }
  .credit a { padding: 12px 0; margin: -6px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
