/* =========================================================================
   Sparkling — Brand Kit page
   -------------------------------------------------------------------------
   Rides on styles.css: same tokens, header, footer, badges, buttons and
   section rhythm (120px blocks, 42px/-3.36px titles, adaptive --gutter).
   Only the brand-kit-specific components live here.
   ========================================================================= */

body.brandkit-page { background: var(--brand-black); color: var(--brand-white); }

/* Shared block shell — identical geometry to the landing sections */
.bk__inner {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.bk-section { position: relative; z-index: 1; padding: 100px 0; }
.bk-section + .bk-section { padding-top: 0; }

/* Section head — left-aligned tag + title + optional note */
.bk-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;                                /* badge → title */
  margin-bottom: 40px;
}
.bk-head .badge { margin-bottom: 0; }
.bk-head__title {
  margin: 0;
  color: var(--brand-white);
  font-family: var(--subtitle-family);
  font-size: 42px;
  font-weight: 500;
  line-height: 112%;
  letter-spacing: -3.36px;
}
.bk-head__note {
  margin: 4px 0 0;
  max-width: 620px;
  color: rgba(248, 252, 255, 0.60);
  font-family: var(--subtitle-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 145%;
  letter-spacing: -0.7px;
}

/* ---- Hero --------------------------------------------------------------- */
.bk-hero {
  position: relative;
  z-index: 1;
  /* 800px tall block; the halftone keeps its natural size (full width, height
     from its own ratio ≈ 660px at the 1440 frame) and is centred, so the extra
     height reads as plain black above and below it — no stretching. */
  min-height: 800px;
  display: flex;
  align-items: center;
  padding: 100px 0;
  background:
    linear-gradient(180deg,
      rgba(0, 5, 11, 0.35) 0%,
      rgba(0, 5, 11, 0.05) 38%,
      rgba(0, 5, 11, 0.35) 76%,
      var(--brand-black) 100%),
    url("../brand-kit/brand-bg-hero.jpg") 50% 50% / 100% auto no-repeat,
    var(--brand-black);
}
.bk-hero__inner {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;                      /* hero is centred; sections stay left */
  text-align: center;
}
.bk-hero .badge { align-self: center; margin-bottom: 20px; }
.bk-hero__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--title-family);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.06em;
}
.bk-hero__lead {
  margin: 24px 0 0;
  max-width: 560px;
  color: rgba(248, 252, 255, 0.80);
  font-family: var(--subtitle-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 145%;
  letter-spacing: -1px;
}
.bk-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.bk-hero__actions .btn { height: 48px; }

/* ---- Cards (shared shell for logo / graphic tiles) ---------------------- */
.bk-card {
  margin: 0;                                /* figure UA margin — would inset cards 40px */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(248, 252, 255, 0.03);
}
.bk-card__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 32px;
  min-height: 190px;
}
.bk-card__stage--dark  { background: #0B0E12; }
.bk-card__stage--light { background: var(--brand-white); }
.bk-card__stage img { display: block; width: auto; max-width: 100%; }
.bk-card__stage--wordmark img { height: 40px; }
.bk-card__stage--icon img     { height: 64px; }

.bk-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid rgba(248, 252, 255, 0.08);
}
.bk-card__name {
  color: var(--brand-white);
  font-family: var(--subtitle-family);
  font-size: 15px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.6px;
}
.bk-card__sub {
  display: block;
  margin-top: 2px;
  color: rgba(248, 252, 255, 0.50);
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}
.bk-dl { display: flex; align-items: center; gap: 6px; flex: none; }
.bk-dl a {
  padding: 7px 11px;
  border-radius: 9px;
  background: var(--opacity-8);
  color: rgba(248, 252, 255, 0.80);
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  transition: background-color .15s ease, color .15s ease;
}
.bk-dl a:hover { background: rgba(248, 252, 255, 0.16); color: var(--brand-white); }

/* ---- Logos grid --------------------------------------------------------- */
.bk-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bk-logos--icons { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }

/* ---- Colors ------------------------------------------------------------- */
.bk-palette { display: flex; flex-direction: column; gap: 32px; }
.bk-group {
  padding: 24px;
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.03);   /* 6) same fill as every other card */
}
.bk-group__label {
  display: inline-block;
  margin-bottom: 20px;
  /* Same look as the site's section tags (.badge + .badge__text), minus the
     perimeter glint — these are labels, not section headings. */
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--opacity-8);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  color: rgba(248, 252, 255, 0.80);
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: 112%;
  letter-spacing: 0.56px;
  text-transform: uppercase;
}
.bk-swatches {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 16px;
}
.bk-swatch {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.bk-swatch__chip {
  display: block;
  position: relative;
  height: 168px;
  border-radius: 14px;
  transition: transform .15s ease;
}
.bk-swatch:hover .bk-swatch__chip { transform: translateY(-2px); }
.bk-swatch:focus-visible { outline: 2px solid rgba(248, 252, 255, 0.5); outline-offset: 4px; border-radius: 16px; }
.bk-swatch__chip::after {
  content: "Copied";
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 5, 11, 0.72);
  color: #F8FCFF;
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.44px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.bk-swatch.is-copied .bk-swatch__chip::after { opacity: 1; }
.bk-swatch__meta { display: block; margin-top: 10px; }
.bk-swatch__name {
  display: block;
  color: var(--brand-white);
  font-family: var(--subtitle-family);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.bk-swatch__hex {
  display: block;
  margin-top: 2px;
  color: rgba(248, 252, 255, 0.50);
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.52px;
  text-transform: uppercase;
}

/* ---- Typography --------------------------------------------------------- */
.bk-type { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bk-type__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(248, 252, 255, 0.03);
}
.bk-type__specimen {
  margin: 0;
  color: var(--brand-white);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.05em;
}
.bk-type__specimen--mono {
  font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace;
  font-size: clamp(40px, 4.2vw, 60px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bk-type__glyphs {
  margin: 0;
  color: rgba(248, 252, 255, 0.50);
  font-size: 18px;
  line-height: 150%;
  letter-spacing: -0.4px;
  word-break: break-word;
}
.bk-type__glyphs--mono { font-family: "GT Standard Mono Trial", ui-monospace, "SF Mono", monospace; font-size: 16px; }
.bk-type__name {
  margin: 0;
  color: var(--brand-white);
  font-family: var(--subtitle-family);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1.2px;
}
.bk-type__role {
  margin: 6px 0 0;
  color: rgba(248, 252, 255, 0.60);
  font-family: var(--subtitle-family);
  font-size: 15px;
  line-height: 145%;
  letter-spacing: -0.6px;
}
.bk-type__foot { margin-top: auto; padding-top: 8px; }
.bk-type__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-white);
  font-family: var(--subtitle-family);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.5px;
  border-bottom: 1px solid rgba(248, 252, 255, 0.30);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.bk-type__link:hover { border-bottom-color: var(--brand-white); }
.bk-type__link svg { width: 15px; height: 15px; flex: none; }

/* ---- Graphics ----------------------------------------------------------- */
.bk-graphics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bk-graphic__stage { padding: 0; min-height: 0; background: #0B0E12; }
.bk-graphic__stage img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2592 / 1470;
  object-fit: cover;
}

/* ---- Contact ------------------------------------------------------------ */
/* Reuses the landing's .cta / .cta-card banner. Two local overrides: the button
   height (48px, as elsewhere outside the header) and a tighter intro → button gap
   (the landing's 40px is meant for the partner grid, not a single button). */
.brandkit-page .cta-card { gap: 12px; }   /* = the badge → title → desc rhythm */
.bk-cta__btn { height: 48px; margin-top: 8px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 1024px) {
  .bk-logos--icons,
  .bk-graphics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-swatches { --cols: 4 !important; }
}

@media (max-width: 768px) {
  .bk-hero {
    min-height: 0;
    padding: 116px 0 40px;
    /* Narrow column = copy sits right on top of the halftone, so darken more. */
    background:
      linear-gradient(180deg,
        rgba(0, 5, 11, 0.70) 0%,
        rgba(0, 5, 11, 0.45) 32%,
        rgba(0, 5, 11, 0.70) 74%,
        var(--brand-black) 100%),
      url("../brand-kit/brand-bg-hero.jpg") 50% 58% / cover no-repeat,
      var(--brand-black);
  }
  .bk-hero__inner,
  .bk__inner { padding: 0 16px; }
  .bk-hero__title { max-width: none; font-size: 40px; letter-spacing: -0.05em; }
  .bk-hero__lead { margin-top: 20px; }
  .bk-hero__lead { font-size: 16px; }
  .bk-hero__actions { width: 100%; }
  .bk-hero__actions .btn { flex: 1 1 auto; justify-content: center; }

  .bk-section { padding: 72px 0; }
  .bk-head { margin-bottom: 28px; }
  .bk-head__title { font-size: 32px; line-height: 112%; letter-spacing: -2.56px; }

  .bk-logos,
  .bk-logos--icons,
  .bk-graphics,
  .bk-type { grid-template-columns: minmax(0, 1fr); }
  .bk-card__stage { padding: 32px 24px; min-height: 150px; }
  .bk-card__stage--wordmark img { height: 32px; }
  /* Name over the download buttons — at 375 the two sit side by side only by
     wrapping the label onto three lines. */
  .bk-card__foot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 16px; }

  .bk-group { padding: 16px; border-radius: 20px; }
  .bk-swatches { --cols: 2 !important; gap: 12px; }
  .bk-swatch__chip { height: 120px; }

  .bk-type__card { padding: 24px; }

  .bk-cta__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-swatch:hover .bk-swatch__chip { transform: none; }
}
