/* Brand kit — public asset page. Linked from the footer only. */

.page-brand-kit .page-hero .hero__title { max-width: 16ch; }

.bk-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 780px) {
  .bk-grid { grid-template-columns: 1fr; }
}

.bk-frame {
  display: grid;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-panel);
}
.bk-frame__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  padding: 1.25rem 1.5rem;
}
.bk-frame__stage--dark { background: #06070a; }
.bk-frame__stage--light { background: #ffffff; border: 1px solid rgba(10 12 17 / 0.08); }
.bk-frame__stage img,
.bk-frame__stage svg {
  display: block;
  width: auto;
  max-width: 100%;
  height: 36px;
}
.bk-frame__stage--icon {
  width: 140px;
  height: 140px;
  padding: 2rem;
}
.bk-frame__stage--icon img,
.bk-frame__stage--icon svg {
  width: 72px;
  height: auto;
}
.bk-frame__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}
.bk-swatches { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bk-swatch {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.bk-swatch i {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
  border: 1px solid rgba(255 255 255 / 0.16);
}

.bk-code {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  padding: var(--s-4);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: #040508;
  color: #c9d4c9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  white-space: pre;
}
[data-theme="light"] .bk-code { background: #0a0c11; }

.bk-files {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.bk-file {
  display: grid;
  gap: var(--s-2);
  margin: 0;
}
.bk-file a {
  color: inherit;
  text-decoration: none;
}
.bk-file__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-raised);
}
.bk-file__preview--ink { background: #06070a; }
.bk-file__preview--paper { background: #ffffff; border-color: rgba(10 12 17 / 0.1); }
.bk-file__preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 56px;
}
.bk-file__preview--icon img { max-height: 48px; }
.bk-file figcaption {
  display: grid;
  gap: 0.15rem;
}
.bk-file__name {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  color: var(--text);
  word-break: break-all;
}
.bk-file__hint {
  font-size: var(--fs-micro);
  color: var(--text-faint);
}

.bk-concepts {
  display: grid;
  gap: var(--s-8);
}
.bk-concept {
  display: grid;
  gap: var(--s-4);
}
.bk-concept__copy {
  display: grid;
  gap: var(--s-2);
  max-width: 68ch;
}
.bk-comp {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1200 / 630;
  padding: 7% 6.5%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.bk-comp--ink {
  background: #06070a;
  color: #e9efe9;
}
.bk-comp--paper {
  background: #ffffff;
  color: #06070a;
}
.bk-comp__kicker {
  font-family: var(--font-mono);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #97a1a8;
}
.bk-comp--paper .bk-comp__kicker { color: #4a5560; }
.bk-comp__headline {
  margin: 0.35em 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 16ch;
}
.bk-comp--ink .bk-comp__headline { color: #e9efe9; }
.bk-comp--paper .bk-comp__headline { color: #06070a; }
.bk-comp__sub {
  margin: 0.7em 0 0;
  max-width: 36ch;
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  line-height: 1.45;
  color: #97a1a8;
}
.bk-comp--paper .bk-comp__sub { color: #4a5560; }
.bk-comp__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.bk-comp__foot img { height: 22px; width: auto; display: block; }
.bk-comp__url {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  letter-spacing: 0.02em;
  color: #97a1a8;
}
.bk-comp--paper .bk-comp__url { color: #6b767e; }
.bk-note {
  padding: 0.85rem 1rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.bk-banners {
  display: grid;
  gap: var(--s-6);
}
.bk-banner {
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.bk-banner img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #06070a;
}
.bk-banner--story { max-width: 280px; }
.bk-banner figcaption { display: grid; gap: 0.15rem; }
.bk-file__preview img[src*="/banners/"] {
  max-height: 96px;
  width: auto;
}

.bk-hero-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1200 / 630;
  padding: 5.5% 5%;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #06070a;
  color: #e9efe9;
}
.bk-hero-banner--cover {
  aspect-ratio: 1584 / 396;
  padding: 6% 4.5%;
  margin-block-start: var(--s-4);
}
.bk-hero-banner__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bk-hero-banner__scene img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 40%;
  opacity: 0.58;
  filter: saturate(0.85) contrast(1.12) brightness(0.92);
}
.bk-hero-banner__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 90% at 8% 42%, #06070a 0%, rgba(6, 7, 10, 0.82) 46%, transparent 78%),
    radial-gradient(ellipse 42% 55% at 88% 78%, rgba(10, 127, 115, 0.22) 0%, transparent 68%),
    linear-gradient(90deg, #06070a 0%, rgba(6, 7, 10, 0.78) 34%, rgba(6, 7, 10, 0.22) 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.4) 0%, transparent 36%, rgba(6, 7, 10, 0.88) 100%);
}
.bk-hero-banner__grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(201, 247, 91, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 231, 210, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 85% 75% at 74% 42%, #000 18%, transparent 80%);
}
.bk-hero-banner__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgba(6, 7, 10, 0.12) 3px 4px
  );
  opacity: 0.35;
}
.bk-hero-banner__eye {
  position: absolute;
  width: min(56%, 460px);
  height: auto;
  right: -6%;
  top: 48%;
  transform: translateY(-50%);
  opacity: 0.16;
}
.bk-hero-banner__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.72fr);
  gap: 4%;
  align-items: start;
  flex: 1;
}
.bk-hero-banner--cover .bk-hero-banner__body {
  grid-template-columns: 1fr;
  align-items: center;
}
.bk-hero-banner__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 1.05vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #97a1a8;
}
.bk-hero-banner__headline {
  margin: 0.28em 0 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: #e9efe9;
}
.bk-hero-banner--cover .bk-hero-banner__headline {
  max-width: 22ch;
  font-size: clamp(1.2rem, 2.8vw, 2.15rem);
}
.bk-hero-banner__headline em {
  font-style: normal;
  color: #c9f75b;
}
.bk-hero-banner__sub {
  margin: 0.7em 0 0;
  max-width: 42ch;
  font-size: clamp(0.72rem, 1.25vw, 0.95rem);
  line-height: 1.45;
  color: #97a1a8;
}
.bk-hero-banner__card {
  overflow: hidden;
  border: 1px solid rgba(233, 240, 236, 0.16);
  border-radius: 14px;
  background: rgba(10, 12, 17, 0.78);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.bk-hero-banner--cover .bk-hero-banner__card { display: none; }
.bk-hero-banner__card-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid rgba(233, 240, 236, 0.1);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 0.85vw, 0.62rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #97a1a8;
}
.bk-hero-banner__card-bar span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.bk-hero-banner__card-bar i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #c9f75b;
  box-shadow: 0 0 0 3px rgba(201, 247, 91, 0.18);
}
.bk-hero-banner__card-bar span:last-child { color: #c9f75b; }
.bk-hero-banner__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 2.4rem;
  padding: 0.45rem 0.75rem 0.55rem;
}
.bk-hero-banner__wave i {
  flex: 1;
  border-radius: 2px;
  background: linear-gradient(180deg, #c9f75b, #6fe7d2);
  opacity: 0.85;
}
.bk-hero-banner__card dl { margin: 0; }
.bk-hero-banner__card dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.38rem 0.75rem;
  border-top: 1px solid rgba(233, 240, 236, 0.08);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
}
.bk-hero-banner__card dt { color: #97a1a8; font-weight: 500; }
.bk-hero-banner__card dd {
  margin: 0;
  color: #c9f75b;
  font-family: var(--font-mono);
  font-size: 0.62em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bk-hero-banner__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3%;
}
.bk-hero-banner__foot img { height: 22px; width: auto; display: block; }
.bk-hero-banner__foot span {
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 1.15vw, 0.85rem);
  letter-spacing: 0.02em;
  color: #97a1a8;
}
@media (max-width: 780px) {
  .bk-hero-banner__body { grid-template-columns: 1fr; }
  .bk-hero-banner__card { display: none; }
}
