/* =====================================================================
   Branding: /branding/ and its examples (/branding/<slug>/).
   Loaded only by those pages, via the layout's head slot. Built from
   Abi's branding board (October 2026): same palette and type as the rest
   of the site, with each example brand's own colours inside its tiles.
   ===================================================================== */

/* ---------- shared bits ---------- */

.bd-section {
  padding: clamp(64px, 8vw, 104px) var(--rd-page-inset);
}

.bd-section--stone {
  background: var(--rd-surface);
}

.bd-section--rule {
  border-top: 1px solid var(--rd-hairline);
}

.bd-section--flush {
  padding-top: 0;
}

.bd-eyebrow {
  margin: 0 0 16px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-green-deep);
}

.bd-h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--rd-font-display);
  font-size: clamp(32px, 3.6vw, 50px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--rd-ink);
  text-wrap: balance;
}

.bd-h3 {
  margin: 0 0 20px;
  font-family: var(--rd-font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bd-lede {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--rd-muted);
  text-wrap: pretty;
}

.bd-head > div .bd-lede {
  margin-top: 16px;
}

.bd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.bd-head > div {
  max-width: 640px;
}

.bd-caption {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.bd-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--rd-green-deep);
}

/* A coloured box with an image in it: logos sit inside, photos fill it. */
.bd-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
}

.bd-tile img {
  display: block;
  max-width: 82%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bd-tile img.is-cover {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

/* ---------- hero ---------- */

.bd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(116px, 13vh, 156px) var(--rd-page-inset) clamp(56px, 7vw, 96px);
}

.bd-hero .rd-h1 {
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 0.98;
}

.bd-hero--project .rd-h1 {
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.92;
}

.bd-hero .rd-cta-row {
  margin-top: 32px;
  gap: 12px 20px;
}

.bd-hero__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 28px;
  isolation: isolate;
}

.bd-hero__art img {
  position: relative;
  height: 84%;
  width: auto;
  transition: transform 600ms var(--rd-ease);
}

.bd-hero__orb {
  position: absolute;
  right: -14%;
  top: -18%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #c8c6e3;
}

.bd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-btn-ink);
}

.bd-back::before {
  content: '';
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.bd-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.bd-pills li {
  padding: 7px 14px;
  border: 1px solid var(--rd-hairline);
  border-radius: 999px;
  font-size: 14px;
}

.bd-concept {
  margin: 24px 0 0;
  max-width: 46ch;
  padding-left: 14px;
  border-left: 2px solid var(--rd-green);
  font-size: 15px;
  line-height: 1.55;
  color: var(--rd-muted);
}

/* ---------- what you get ---------- */

.bd-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--rd-hairline);
  border-radius: 18px;
  background: var(--rd-bg);
}

.bd-card h3,
.bd-steps h3 {
  margin: 0;
  font-family: var(--rd-font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bd-card p,
.bd-steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--rd-muted);
}

/* ---------- hero: the example brands fanned out like cards ---------- */

.bd-fan {
  position: relative;
  aspect-ratio: 5 / 4;
}

.bd-fan--n1 {
  aspect-ratio: 4 / 3;
}

.bd-fan--n2 {
  aspect-ratio: 4 / 3;
}

.bd-fan__card {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  box-shadow:
    0 30px 60px rgba(26, 31, 34, 0.16),
    0 6px 14px rgba(26, 31, 34, 0.08);
  transition: transform 500ms var(--rd-ease);
}

.bd-fan__card img {
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 76%;
}

.bd-fan__card:nth-child(1) {
  left: 0;
  top: 0;
  z-index: 1;
  transform: rotate(-6deg);
}

.bd-fan__card:nth-child(2) {
  right: 0;
  top: 22%;
  z-index: 2;
  transform: rotate(4deg);
}

.bd-fan__card:nth-child(3) {
  left: 14%;
  bottom: 0;
  z-index: 3;
  transform: rotate(-2deg);
}

.bd-fan--n2 .bd-fan__card:nth-child(2) {
  top: auto;
  bottom: 0;
}

.bd-fan--n1 .bd-fan__card {
  inset: 0;
  width: 100%;
  transform: none;
}

.bd-fan__card:hover,
.bd-fan__card:focus-visible {
  z-index: 5;
  transform: rotate(0deg) translateY(-6px);
}

.bd-fan__tag {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rd-ink);
}

/* ---------- example cards ---------- */

.bd-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-excard {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: inherit;
}

.bd-excard__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 22px;
}

.bd-excard__art img {
  width: auto;
  height: auto;
  max-width: 76%;
  max-height: 74%;
  transition: transform 600ms var(--rd-ease);
}

.bd-excard:hover .bd-excard__art img,
.bd-excard:focus-visible .bd-excard__art img {
  transform: scale(1.04) rotate(-1.5deg);
}

.bd-excard__name {
  font-family: var(--rd-font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bd-excard__line {
  font-size: 16px;
  color: var(--rd-muted);
}

.bd-excard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.bd-excard__tags span {
  padding: 5px 12px;
  border: 1px solid var(--rd-hairline);
  border-radius: 999px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

/* ---------- website in a browser frame ---------- */

.bd-browser {
  overflow: hidden;
  border: 1px solid var(--rd-hairline);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(26, 31, 34, 0.08);
}

.bd-browser__bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rd-hairline);
  background: var(--rd-surface);
}

.bd-browser__dots {
  display: flex;
  gap: 7px;
}

.bd-browser__dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rd-hairline);
}

.bd-browser__url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 6px 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--rd-bg);
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--rd-muted);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bd-browser__screen {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: #fff6f2;
}

.bd-browser__screen iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: 1440px;
  height: 900px;
  border: 0;
  transform-origin: 0 0;
}

/* Phones: no scrolling inside the frame, tap to open it instead. */
.bd-browser__cover {
  display: none;
}

@media (max-width: 760px) {
  .bd-browser__screen iframe {
    pointer-events: none;
  }

  .bd-browser__cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    background: linear-gradient(to top, rgba(10, 22, 52, 0.35), rgba(10, 22, 52, 0) 45%);
  }
}

/* ---------- how it works ---------- */

.bd-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.bd-steps li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 2px solid var(--rd-ink);
}

/* ---------- pricing ---------- */

.bd-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bd-plan {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px 28px;
  border: 1px solid var(--rd-hairline);
  border-radius: 22px;
  background: var(--rd-bg);
}

.bd-plan--featured {
  border: 2px solid var(--rd-ink);
}

.bd-plan__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bd-kicker {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-muted);
}

.bd-plan--featured .bd-kicker {
  color: var(--rd-green-deep);
}

.bd-plan h3 {
  margin: 0;
  font-family: var(--rd-font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bd-plan__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--rd-muted);
}

.bd-plan__price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--rd-hairline);
  border-bottom: 1px solid var(--rd-hairline);
}

.bd-plan__price--rows {
  gap: 12px;
}

.bd-plan__price--rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.bd-plan__amount {
  font-family: var(--rd-font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.bd-plan__amount--sm {
  font-size: 28px;
  white-space: nowrap;
}

.bd-plan__amount small {
  font-family: var(--rd-font-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--rd-muted);
}

.bd-plan__terms {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rd-muted);
}

.bd-ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.5;
}

.bd-ticks li {
  position: relative;
  padding-left: 28px;
}

.bd-ticks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 5px;
  width: 11px;
  height: 6px;
  border-left: 2px solid var(--rd-green-deep);
  border-bottom: 2px solid var(--rd-green-deep);
  transform: rotate(-45deg);
}

.bd-plan .rd-btn {
  align-self: flex-start;
  margin-top: auto;
}

.bd-note {
  margin: 28px 0 0;
  font-size: 16px;
  color: var(--rd-muted);
}

/* ---------- closing call to action ---------- */

.bd-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--rd-ink);
  color: var(--rd-bg);
}

.bd-cta__copy {
  max-width: 600px;
}

.bd-cta h2 {
  margin: 0;
  font-family: var(--rd-font-display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--rd-bg);
}

.bd-cta p {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--rd-hairline);
}

.bd-cta .rd-cta-row {
  margin-top: 0;
  gap: 12px 24px;
}

.rd-body a.bd-cta__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--rd-bg);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- example page: logo suite ---------- */

.bd-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-logos li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-tile--logo {
  aspect-ratio: 4 / 3;
}

.bd-tile--logo.is-word img {
  max-height: 86%;
}

.bd-tile--logo.is-mark img {
  max-height: 66%;
}

/* ---------- example page: colour and type ---------- */

.bd-colour {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  gap: 24px;
}

.bd-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-swatch {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: 200px;
  padding: 22px;
  border-radius: 18px;
}

.bd-swatch__name {
  font-family: var(--rd-font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.bd-swatch__values {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 13px;
}

.bd-type {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: 18px;
  background: var(--rd-surface);
}

.bd-type__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--rd-hairline);
}

.bd-type__row:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.bd-type__row img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.bd-type__row:first-of-type img {
  height: 72px;
}

.bd-type__row:last-of-type img {
  height: 24px;
}

.bd-type__row strong {
  font-size: 16px;
}

.bd-type__row span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--rd-muted);
}

/* ---------- example page: packaging, graphics ---------- */

.bd-tile--photo {
  aspect-ratio: 2200 / 1180;
  border-radius: 24px;
}

.bd-graphics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.bd-tile--pattern {
  min-height: 100%;
}

.bd-graphics__kit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-graphics__kit li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-tile--item {
  aspect-ratio: 1;
}

.bd-tile--item img {
  max-height: 66%;
}

.bd-tile--item.is-tall img {
  max-height: 80%;
}

.bd-tile--item.is-wide img {
  max-width: 72%;
}

/* ---------- example page: business cards ---------- */

.bd-cardscene {
  position: relative;
  aspect-ratio: 1456 / 760;
  overflow: hidden;
  border-radius: 24px;
  background: #e2dcd0;
}

.bd-bizcard {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40.9%;
  aspect-ratio: 85 / 55;
  border-radius: 14px;
}

.bd-bizcard--back {
  left: 13%;
  top: 12%;
  transform: rotate(-7deg);
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.18), 0 6px 14px rgba(0, 0, 0, 0.1);
}

.bd-bizcard--front {
  left: 44%;
  top: 22%;
  transform: rotate(5deg);
  box-shadow: 0 46px 80px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(0, 0, 0, 0.12);
}

.bd-bizcard--back img {
  height: 78%;
  width: auto;
}

.bd-bizcard--front img {
  height: 60%;
  width: auto;
}

.bd-cardscene__label {
  position: absolute;
  right: 24px;
  bottom: 20px;
}

/* ---------- example page: social ---------- */

.bd-social {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.bd-social__profile {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bd-social__avatar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 14vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
}

.bd-social__avatar img {
  width: 70%;
  height: auto;
  margin-left: 5%;
}

.bd-social__profile > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 38ch;
}

.bd-social__profile strong {
  font-family: var(--rd-font-display);
  font-size: 24px;
  font-weight: 600;
}

.bd-social__profile span span {
  font-size: 16px;
  line-height: 1.5;
  color: var(--rd-muted);
}

.bd-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-tile--post {
  aspect-ratio: 1;
  border-radius: 14px;
}

.bd-tile--post img {
  max-height: 78%;
}

.bd-tile--post.is-mark img {
  max-width: 64%;
}

/* ---------- smaller screens ---------- */

@media (max-width: 1080px) {
  .bd-plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }

  .bd-colour {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bd-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-graphics {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-tile--pattern {
    aspect-ratio: 1;
  }
}

@media (max-width: 600px) {
  .bd-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The cards are too small for a label; the example grid names them anyway. */
  .bd-fan__tag {
    display: none;
  }

  .bd-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-posts > :first-child {
    grid-column: 1 / -1;
    aspect-ratio: 2 / 1;
  }

  .bd-swatches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-swatch {
    min-height: 150px;
    gap: 20px;
    padding: 18px;
  }

  .bd-graphics__kit {
    gap: 12px;
  }


  .bd-social__profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .bd-cardscene {
    aspect-ratio: 1;
  }

  .bd-bizcard {
    width: 64%;
  }

  .bd-bizcard--back {
    left: 6%;
    top: 9%;
  }

  .bd-bizcard--front {
    left: 30%;
    top: 49%;
  }

  /* The lede already says front and back; on a phone the label lands on a card. */
  .bd-cardscene__label {
    display: none;
  }
}

/* =====================================================================
   Pieces added for Nana's (and any brand with a wide logo, textures,
   illustrations, posts or a logo animation).
   ===================================================================== */

.bd-hero__art--wide img {
  width: 78%;
  height: auto;
}

/* ---------- the brief ---------- */

.bd-brief {
  max-width: 880px;
}

.bd-brief blockquote {
  margin: 0 0 24px;
}

.bd-brief blockquote p {
  margin: 0;
  font-family: var(--rd-font-display);
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--rd-ink);
  text-wrap: balance;
}

.bd-brief blockquote p::before {
  content: '\201C';
}

.bd-brief blockquote p::after {
  content: '\201D';
}

.bd-brief .bd-lede {
  max-width: 62ch;
}

/* ---------- logo suite with wide logos ---------- */

.bd-nlogos {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 28px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-nlogos li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-tile--nlogo {
  flex: 1;
  min-height: 300px;
}

.bd-tile--nlogo img {
  width: 78%;
  max-height: none;
}

.bd-tile--nlogo.is-icon img {
  width: min(58%, 220px);
}

.bd-minis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.bd-mini {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: 20px;
  background: var(--rd-surface);
}

.bd-mini p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rd-muted);
}

.bd-mini__row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bd-mini__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.bd-mini__dot img {
  width: 66%;
  height: auto;
}

.bd-mini__dot.is-96 { width: 96px; height: 96px; }
.bd-mini__dot.is-64 { width: 64px; height: 64px; }
.bd-mini__dot.is-40 { width: 40px; height: 40px; border-radius: 10px; }

.bd-mini__kiss {
  width: 72px;
  height: auto;
}

.bd-mini__square {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

.bd-mini__square img {
  width: 56px;
  height: auto;
}

/* ---------- swatches with a use line ---------- */

.bd-swatch--line {
  box-shadow: inset 0 0 0 1px rgba(104, 8, 42, 0.22);
}

.bd-swatch__use {
  margin-top: 6px;
  font-family: var(--rd-font-body);
  font-size: 13px;
  line-height: 1.4;
}

.bd-type__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 14px;
}

.bd-type--nanas .bd-type__row .bd-type__logo img,
.bd-type--nanas .bd-type__row:first-of-type .bd-type__logo img {
  width: 80%;
  height: auto;
}

.bd-type--nanas .bd-type__row img {
  height: 40px;
}

.bd-type--nanas .bd-type__row:last-of-type img {
  height: 40px;
}

/* ---------- illustrations and pattern ---------- */

.bd-illos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bd-illos li {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-tile--illo {
  aspect-ratio: 4 / 5;
}

.bd-tile--illo img {
  max-width: 78%;
  max-height: 72%;
  transition: transform 500ms var(--rd-ease);
}

.bd-tile--illo:hover img {
  transform: rotate(-4deg) scale(1.04);
}

.bd-patternrow {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.bd-pattern {
  position: relative;
  min-height: 360px;
  border-radius: 20px;
  background-color: #fbcdc7;
  background-repeat: repeat;
  background-size: 300px;
}

.bd-pattern__tag {
  position: absolute;
  left: 20px;
  top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff6f4;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #68082a;
}

.bd-inuse {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 20px;
}

.bd-inuse .bd-caption {
  color: #fbcdc7;
}

.bd-inuse img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* ---------- social: a story beside a grid of posts ---------- */

.bd-nsocial {
  display: grid;
  grid-template-columns: minmax(0, 518fr) minmax(0, 920fr);
  gap: 24px;
  align-items: start;
}

.bd-nsocial img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.bd-nsocial__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bd-nsocial__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: #fff6f4;
}

.bd-nsocial__profile .bd-social__avatar img {
  width: 64%;
  margin: 0;
  border-radius: 0;
}

/* ---------- printed cards ---------- */

.bd-ncards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  margin: 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: #fff6f4;
  list-style: none;
}

.bd-ncards li {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bd-ncards img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(104, 8, 42, 0.2);
}

/* ---------- logo animation ---------- */

.bd-video {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 1040px;
  margin: 0;
}

.bd-video video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  background: var(--rd-ink);
}

.bd-video--tall {
  width: 100%;
  max-width: 360px;
}

/* Copy on one side, a tall piece (a Reel) on the other. */
.bd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}

.bd-split__copy {
  max-width: 560px;
}

.bd-split__copy .bd-lede {
  margin-top: 16px;
}

@media (max-width: 1080px) {
  .bd-illos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bd-ncards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bd-nlogos,
  .bd-patternrow,
  .bd-nsocial {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-tile--nlogo {
    min-height: 220px;
  }

  .bd-nsocial__story {
    max-width: 420px;
  }

  .bd-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .bd-illos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-minis,
  .bd-ncards {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-nsocial__grid {
    gap: 12px;
  }

  .bd-tile--nlogo {
    min-height: 180px;
  }

  .bd-pattern {
    min-height: 260px;
  }

  .bd-video--tall {
    max-width: 300px;
  }
}

/* =====================================================================
   Pieces added for Fennick & Daughters (a two-line name, a photo in the
   hero, horizontal logos, a badge row, headline type as artwork and a
   pair of logo animations).
   ===================================================================== */

@font-face {
  font-family: 'Work Sans';
  src: url('/assets/branding/fennick/fonts/work-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.bd-fk-sans {
  font-family: 'Work Sans', var(--rd-font-body);
  font-weight: 600;
}

.bd-hero--project .rd-h1.bd-h1--long {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.98;
}

.bd-hero__art--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- the paper finish ---------- */

/* Grain lifted from the photo of the embossed logo, blended so it reads on any colour. */
.bd-fk-paper {
  position: relative;
  isolation: isolate;
}

.bd-fk-paper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url('/assets/branding/fennick/paper-grain.webp') 0 0 / 352px repeat;
  mix-blend-mode: overlay;
  opacity: 0.8;
  pointer-events: none;
}

/* Behind the content, for panels with text on them. */
.bd-fk-paper--back::after {
  z-index: -1;
}

.bd-fk-paper > .bd-pattern__tag {
  z-index: 1;
}

/* Lettering pressed up out of the paper: a soft shadow below and to the right. */
.bd-fk-raised {
  filter: drop-shadow(1px 1.5px 1px rgba(20, 28, 6, 0.45)) drop-shadow(0 3px 6px rgba(20, 28, 6, 0.2));
}

.bd-fk-raised--light {
  filter: drop-shadow(1px 1.5px 1px rgba(65, 82, 31, 0.24)) drop-shadow(0 3px 6px rgba(65, 82, 31, 0.12));
}

/* Any example whose cover sets emboss: true. */
.bd-excard__art img.is-embossed,
.bd-fan__card img.is-embossed {
  filter: drop-shadow(1px 1.5px 1px rgba(0, 0, 0, 0.35)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

/* ---------- horizontal logos ---------- */

.bd-hlogos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.bd-hlogos li {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bd-tile--hlogo {
  aspect-ratio: 5 / 2;
}

.bd-tile--hlogo img {
  width: 80%;
  max-width: 80%;
}

/* ---------- the badge: a photo beside small sizes and the badge itself ---------- */

.bd-fk-badges {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.bd-fk-badges__photo {
  min-height: 360px;
}

.bd-fk-badges__minis {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bd-mini__dot.is-112 { width: 112px; height: 112px; }
.bd-mini__dot.is-badge img { width: 92%; }

/* ---------- colour: the lead colour as a tall swatch ---------- */

.bd-swatch.is-tall {
  grid-row: span 2;
}

/* ---------- type: headline artwork on a panel, the sans set live ---------- */

.bd-type .bd-type__panel {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 26px 22px;
  border-radius: 14px;
}

.bd-type .bd-type__panel img {
  width: 100%;
  height: auto;
  max-width: 300px;
}

.bd-type .bd-type__sample {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #41521f;
}

/* ---------- four illustrations, a pattern pair and a card in use ---------- */

.bd-illos--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bd-patternrow--3 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 2fr);
}

.bd-fk-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 18px;
  color: #41521f;
}

.bd-inuse .bd-fk-card img {
  width: 62%;
  border-radius: 0;
}

.bd-inuse .bd-fk-card img.bd-fk-card__title {
  width: 86%;
  max-width: 220px;
  margin-top: 4px;
}

.bd-fk-card__line {
  font-size: 16px;
}

/* ---------- logo animation in two shapes, the same height side by side ---------- */

.bd-motion {
  display: grid;
  /* 256:81 makes a 16:9 and a 9:16 video the same height. */
  grid-template-columns: minmax(0, 256fr) minmax(0, 81fr);
  gap: 20px;
  align-items: start;
}

.bd-motion .bd-video {
  max-width: none;
}

@media (max-width: 1080px) {
  .bd-illos--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bd-illos--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-fk-badges,
  .bd-patternrow--3,
  .bd-motion {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-fk-badges__photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .bd-fk-badges__minis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bd-motion .bd-video--tall {
    max-width: 300px;
  }
}

@media (max-width: 600px) {
  .bd-hlogos,
  .bd-fk-badges__minis {
    grid-template-columns: minmax(0, 1fr);
  }

  .bd-tile--hlogo {
    aspect-ratio: 3 / 1;
  }

  .bd-mini__dot.is-112 {
    width: 96px;
    height: 96px;
  }
}
