.brand-page {
  background: #fffbea;
  color: #38362e;
}

.brand-page main {
  overflow: clip;
}

.brand-page button,
.brand-page a {
  -webkit-tap-highlight-color: transparent;
}

.brand-hero {
  min-height: 576px;
  padding: 152px 32px 80px;
  display: grid;
  place-items: center;
  background: #fffbea;
}

.brand-hero__inner {
  width: min(100%, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.brand-hero__badge {
  min-height: 40px;
  padding: 7px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #fff2bd;
  border-radius: 16px;
  box-shadow: 0 6px 12px rgba(255, 213, 43, 0.05), 0 6px 12px rgba(0, 0, 0, 0.03);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-hero__badge > span {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 50%;
  background: #ffd52b;
}

.brand-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-hero h1 {
  font-family: var(--font-heading);
  font-size: 60px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: 0;
  color: #151411;
}

.brand-hero__copy p {
  font-size: 20px;
  line-height: 32px;
  color: #38362e;
}

.brand-button {
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #b5971f;
  border-radius: 16px;
  background: #ffd52b;
  box-shadow: 0 1px 3px 1px rgba(170, 119, 5, 0.3), inset 0 -5px 2px #bd8915, inset 0 0 3px 3px #fff5df;
  color: #473c0c;
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.brand-button:hover { transform: translateY(-1px); filter: brightness(1.02); }
.brand-button:active { transform: translateY(2px); }
.brand-button svg,
.asset-download svg,
.mascot-card__download svg,
.visual-card a svg,
.other-card a svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-library {
  width: min(100%, 1312px);
  margin: 0 auto;
  padding: 80px 0 96px;
  display: grid;
  grid-template-columns: 313px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.brand-sidebar {
  position: sticky;
  top: 112px;
  z-index: 30;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: calc(100vh - 128px);
}

.brand-sidebar__title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  color: #38362e;
}

.brand-toc {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
}

.brand-toc::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: #e8e7e2;
}

.brand-toc__progress-marker {
  position: absolute;
  left: 1px;
  top: 0;
  z-index: 2;
  width: 18px;
  height: 19px;
  pointer-events: none;
  will-change: transform;
}

.brand-toc__progress-marker img {
  width: 18px;
  height: 19px;
}

.brand-toc__link {
  position: relative;
  min-height: 44px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  color: #38362e;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  transition: color 150ms ease, font-weight 150ms ease;
}

.brand-toc__link:hover,
.brand-toc__link.is-active {
  color: #151411;
  font-weight: 600;
}

.brand-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.brand-section {
  scroll-margin-top: 145px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.has-brand-reveals .brand-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1), transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.has-brand-reveals .brand-section.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.brand-section h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: 0;
  color: #151411;
}

.brand-section__intro {
  margin-top: -16px;
  font-size: 16px;
  line-height: 24px;
  color: #706c5c;
}

.asset-grid {
  display: grid;
  gap: 16px;
}

.asset-grid--logo { grid-template-columns: repeat(3, minmax(0, 216px)); }
.asset-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.asset-grid--icons { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.asset-card {
  position: relative;
  min-width: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 20px rgba(255, 241, 184, 0.49), 0 10px 28px rgba(0, 0, 0, 0.06);
  isolation: isolate;
}

.asset-card--square { width: 216px; height: 264px; }
.asset-card--wide { height: 164px; }
.asset-card--icon { height: 124px; border-radius: 24px; }

.asset-card__preview {
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.asset-card__preview--black { background: #000; }
.asset-card__preview--muted { background: #e8e7e2; }
.asset-card--square .asset-card__preview img { width: 100%; height: 100%; object-fit: contain; }
.asset-card--wide .asset-card__preview img { width: min(76%, 260px); max-height: 64px; object-fit: contain; }
.asset-card--icon .asset-card__preview img { width: 56px; height: 56px; object-fit: contain; image-rendering: auto; }
.asset-card__preview img,
.mascot-card__visual img,
.visual-card > img,
.other-card__visual img {
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.asset-card:hover .asset-card__preview img,
.asset-card:focus-within .asset-card__preview img,
.mascot-card:hover .mascot-card__visual img,
.mascot-card:focus-within .mascot-card__visual img,
.visual-card:hover > img,
.visual-card:focus-within > img,
.other-card:hover .other-card__visual img,
.other-card:focus-within .other-card__visual img {
  transform: scale(1.045);
}

.asset-card__footer {
  min-height: 32px;
  padding: 0 8px 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #706c5c;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}

.asset-card--icon .asset-card__footer { min-height: 24px; padding: 0 4px 4px; font-size: 14px; line-height: 20px; }
.asset-card__footer > span { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.asset-download {
  width: 32px;
  height: 32px;
  margin: -4px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #555245;
  cursor: pointer;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease, background 150ms ease;
}

.asset-download svg { width: 22px; height: 22px; }
.asset-card:hover .asset-download,
.asset-card:focus-within .asset-download,
.asset-card.is-menu-open .asset-download { opacity: 1; transform: translateY(0); }
.asset-download:hover { background: #f3f3f1; }
.asset-download:focus-visible { opacity: 1; outline: 2px solid #151411; outline-offset: 2px; }

.download-menu {
  position: absolute;
  right: 8px;
  bottom: 44px;
  z-index: 10;
  width: 162px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: right bottom;
  background: #fff;
  border: 1px solid #dad9d2;
  border-radius: 16px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.1);
  transition: visibility 0s linear 160ms, opacity 160ms ease, transform 160ms ease;
}

.asset-card.is-menu-open .download-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.download-menu > a {
  min-height: 40px;
  padding: 8px;
  display: flex;
  align-items: center;
  color: #151411;
  border-radius: 8px;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
}

.download-menu > a:hover,
.download-menu > a:focus-visible { background: #f3f3f1; outline: none; }

.download-menu__sizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.download-menu__sizes a {
  min-width: 0;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #e8e7e2;
  border-radius: 8px;
  color: #706c5c;
  font-size: 14px;
  line-height: 20px;
  text-decoration: none;
}

.download-menu__sizes a:first-child { background: #ffd52b; border-color: #f6ca62; color: #151411; }
.download-menu__sizes a:hover { border-color: #b5971f; color: #151411; }
.download-menu__all { margin-top: 4px; }

.color-group { display: flex; flex-direction: column; gap: 8px; }
.color-group h3 { font-size: 16px; line-height: 24px; font-weight: 500; color: #38362e; }
.color-grid { display: grid; gap: 16px; }
.color-grid--core { grid-template-columns: repeat(4, 1fr); }
.color-grid--five { grid-template-columns: repeat(5, 1fr); }
.color-grid--scale { grid-template-columns: repeat(10, 1fr); gap: 8px; }

.color-card,
.scale-card {
  min-width: 0;
  font: inherit;
  text-align: left;
  border: 0;
  cursor: pointer;
  background: #fff;
  color: #38362e;
  box-shadow: 0 12px 20px rgba(255, 241, 184, 0.49), 0 10px 28px rgba(0, 0, 0, 0.05);
}

.color-card {
  position: relative;
  height: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 20px;
  text-align: center;
}

.color-card__swatch { grid-column: 1 / -1; height: 84px; width: 100%; border-radius: 16px; background: var(--swatch); }
.color-card__swatch--border { border: 1px solid #ffe49a; }
.color-card__name { font-size: 16px; line-height: 24px; font-weight: 500; }
.color-card__value { font-size: 14px; line-height: 20px; color: #706c5c; }
.color-card__copy { grid-column: 2; grid-row: 2 / 4; align-self: center; width: 18px; height: 18px; border: 1.5px solid #706c5c; border-radius: 4px; }
.color-card__copy::after { content: ""; display: block; width: 12px; height: 12px; margin: 5px 0 0 5px; border: 1.5px solid #706c5c; border-radius: 3px; background: #fff; }
.color-card:hover,
.scale-card:hover { transform: translateY(-4px); transition: transform 150ms ease; }
.color-card:focus-visible,
.scale-card:focus-visible { outline: 2px solid #151411; outline-offset: 3px; }

.scale-card {
  height: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 24px;
  text-align: center;
  transition: transform 150ms ease;
}

.scale-card > span { position: relative; width: 100%; aspect-ratio: 1.15; max-height: 68px; border-radius: 14px; background: var(--swatch); }
.scale-card__core::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff; }
.scale-card strong { font-size: 14px; line-height: 18px; font-weight: 500; color: #151411; }
.scale-card small { max-width: 100%; font-size: 10px; line-height: 12px; color: #706c5c; overflow: hidden; text-overflow: ellipsis; }
.copy-status { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 9999; padding: 10px 16px; border-radius: 8px; background: #151411; color: #fff; opacity: 0; transform: translate3d(-50%, 12px, 0); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.copy-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.type-card { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: 24px; box-shadow: 0 12px 20px rgba(255, 241, 184, 0.49), 0 10px 28px rgba(0, 0, 0, 0.06); color: #151411; }
.type-card--figtree { font-family: var(--font-heading); }
.type-card--dm { font-family: var(--font-body); }
.type-card__label { color: #f2a50c; font-size: 14px; line-height: 20px; font-weight: 600; text-transform: uppercase; }
.type-card__family { margin-top: 8px; color: #38362e; font-size: 16px; line-height: 24px; }
.type-card strong { margin-top: 8px; font-size: 72px; line-height: 72px; font-weight: 500; }
.type-card__alphabet { margin-top: 8px; font-size: 11px; line-height: 17px; letter-spacing: 0.18em; }
.type-card__use { margin-top: auto; font-size: 14px; line-height: 20px; color: #706c5c; }

.brand-assets-label { margin-bottom: -48px; font-family: var(--font-heading); font-size: 20px; line-height: 24px; font-weight: 500; color: #706c5c; }
.mascot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
.mascot-card { position: relative; height: auto; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; background: #fff; border-radius: 24px; box-shadow: 0 12px 20px rgba(255, 241, 184, 0.49), 0 10px 28px rgba(0, 0, 0, 0.06); }
.mascot-card__visual { position: relative; width: 100%; aspect-ratio: 4 / 5; flex: none; overflow: hidden; }
.mascot-card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.mascot-card__title-row { position: relative; z-index: 1; width: 100%; min-height: 32px; margin-top: 8px; display: flex; align-items: center; background: #fff; }
.mascot-card h3 { padding-right: 40px; font-family: var(--font-body); font-size: 16px; line-height: 24px; font-weight: 500; color: #38362e; }
.mascot-card__tags { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.mascot-card__tags span { padding: 1px 7px; border-radius: 8px; background: #fff4b8; color: #8c6e00; font-size: 11px; line-height: 18px; }
.mascot-card__tags--red span { background: #fff0f0; color: #bc3b3b; }
.mascot-card__tags--green span { background: #eefaf1; color: #33744b; }
.mascot-card__tags--blue span { background: #edf4ff; color: #3367b8; }
.mascot-card__tags--gold span { background: #fff7cf; color: #96720a; }
.mascot-card p { margin-top: 8px; font-size: 12px; line-height: 18px; color: #555245; }
.mascot-card__download { position: absolute; right: 0; top: 50%; width: 32px; height: 32px; display: grid; place-items: center; transform: translateY(calc(-50% + 5px)); color: #706c5c; border-radius: 8px; }
.mascot-card__download,
.visual-card a,
.other-card a {
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease, background 150ms ease;
}
.visual-card a,
.other-card a { transform: translateY(5px); }
.mascot-card:hover .mascot-card__download,
.mascot-card:focus-within .mascot-card__download {
  opacity: 1;
  transform: translateY(-50%);
}
.visual-card:hover a,
.visual-card:focus-within a,
.other-card:hover a,
.other-card:focus-within a {
  opacity: 1;
  transform: translateY(0);
}
.mascot-card__download:hover { background: #f3f3f1; }
.mascot-card__download svg { width: 20px; height: 20px; }

.visual-grid,
.other-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.visual-card,
.other-card { min-width: 0; overflow: hidden; background: #fff; border-radius: 16px; box-shadow: 0 12px 20px rgba(255, 241, 184, 0.49), 0 10px 28px rgba(0, 0, 0, 0.05); }
.visual-card > img { width: 100%; aspect-ratio: 600 / 948; object-fit: cover; object-position: top; }
.visual-card > div { min-height: 48px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; color: #555245; font-size: 14px; }
.visual-card > div span { flex: 1; }
.visual-card a,
.other-card a { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 8px; color: #706c5c; }
.visual-card a:hover,
.other-card a:hover { background: #f3f3f1; }
.visual-card a svg,
.other-card a svg { width: 20px; height: 20px; }

.other-card__visual { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 180px; padding: 12px; overflow: hidden; }
.other-card__visual img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; }
.other-card > div:last-child { position: relative; min-height: 76px; padding: 8px 44px 12px 12px; display: flex; flex-direction: column; }
.other-card strong { font-size: 14px; line-height: 20px; font-weight: 500; color: #38362e; }
.other-card span { font-size: 12px; line-height: 18px; color: #8d8873; }
.other-card a { position: absolute; right: 8px; bottom: 8px; }

.brand-submit { min-height: 96px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #ffe49a; border-radius: 16px; }
.brand-submit > div { display: flex; flex-direction: column; gap: 2px; }
.brand-submit strong { font-family: var(--font-heading); font-size: 20px; line-height: 24px; color: #38362e; }
.brand-submit span { font-size: 14px; line-height: 20px; color: #555245; }
.brand-submit a { min-width: 88px; height: 44px; padding: 0 16px; display: inline-grid; place-items: center; border: 1px solid #b5971f; border-radius: 12px; background: #ffd52b; box-shadow: 0 1px 3px rgba(170,119,5,.25), inset 0 -3px 1px #bd8915; color: #473c0c; font-weight: 600; text-decoration: none; }

@media (max-width: 1376px) {
  .brand-library { width: calc(100% - 64px); grid-template-columns: 240px minmax(0, 1fr); }
  .asset-grid--icons { grid-template-columns: repeat(3, 1fr); }
  .color-grid--scale { grid-template-columns: repeat(5, 1fr); }
  .mascot-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .brand-hero { min-height: 520px; padding-top: 136px; }
  .brand-hero h1 { font-size: 48px; line-height: 56px; }
  .brand-library { width: 100%; padding: 0 24px 80px; display: flex; flex-direction: column; gap: 40px; }
  .brand-sidebar { top: 96px; width: calc(100% + 48px); max-height: none; margin: 0 -24px; padding: 12px 24px; gap: 8px; background: rgba(255, 251, 234, 0.96); border-top: 1px solid #fff2bd; border-bottom: 1px solid #ffe49a; backdrop-filter: blur(12px); }
  .brand-sidebar__title { font-size: 16px; line-height: 20px; }
  .brand-toc { padding: 0; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; scroll-padding-inline: 24px; }
  .brand-toc::-webkit-scrollbar { display: none; }
  .brand-toc::before { display: none; }
  .brand-toc__link { min-height: 40px; padding: 8px 12px; flex: none; border-radius: 8px; white-space: nowrap; }
  .brand-toc__link::before { display: none; }
  .brand-toc__progress-marker { display: none; }
  .brand-toc__link.is-active { background: #ffd52b; }
  .brand-section { scroll-margin-top: 205px; }
  .asset-grid--logo { grid-template-columns: repeat(3, 1fr); }
  .asset-card--square { width: 100%; }
  .asset-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .color-grid--core { grid-template-columns: repeat(2, 1fr); }
  .mascot-grid { grid-template-columns: repeat(2, 1fr); }
  .visual-grid,
  .other-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-hero { min-height: 460px; padding: 124px 20px 56px; }
  .brand-hero__inner { gap: 20px; }
  .brand-hero h1 { font-size: 40px; line-height: 48px; }
  .brand-hero__copy p { font-size: 16px; line-height: 24px; }
  .brand-button { width: 100%; min-height: 52px; font-size: 16px; line-height: 24px; }
  .brand-library { padding: 0 20px 64px; }
  .brand-sidebar { width: calc(100% + 40px); margin: 0 -20px; padding: 10px 20px; }
  .brand-content { gap: 56px; }
  .brand-section { gap: 20px; }
  .brand-section h2 { font-size: 22px; line-height: 28px; }
  .asset-grid--logo,
  .asset-grid--wide { grid-template-columns: 1fr; }
  .asset-card--square { height: 300px; }
  .asset-card--wide { height: 180px; }
  .asset-grid--icons { grid-template-columns: repeat(2, 1fr); }
  .asset-download { opacity: 1; transform: none; }
  .color-grid--five { grid-template-columns: repeat(2, 1fr); }
  .color-grid--scale { grid-template-columns: repeat(2, 1fr); }
  .type-grid,
  .mascot-grid,
  .visual-grid,
  .other-grid { grid-template-columns: 1fr; }
  .mascot-card { min-height: 0; }
  .mascot-card__visual { aspect-ratio: 1 / 1; }
  .mascot-card__download { position: relative; right: auto; top: auto; margin-left: auto; opacity: 1; transform: translateY(0); }
  .mascot-card:hover .mascot-card__download,
  .mascot-card:focus-within .mascot-card__download { transform: translateY(0); }
  .visual-card > img { aspect-ratio: 3 / 4; object-fit: contain; }
  .other-card__visual { aspect-ratio: 4 / 3; min-height: 0; }
  .brand-submit { align-items: stretch; flex-direction: column; }
  .brand-submit a { width: 100%; }
}

@media (hover: none) {
  .asset-download,
  .mascot-card__download,
  .visual-card a,
  .other-card a { opacity: 1; transform: none; }
}
