/* Brand kit poster — identity split, Azoth as the face. Loaded after theme. */

.brand-poster {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--zoth-header-h, 54px));
  display: grid;
  grid-template-columns: minmax(18rem, 38rem) minmax(0, 1fr);
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 48px) clamp(40px, 7vw, 80px);
  background: var(--bg, #03050a);
  overflow: hidden;
}

.brand-poster-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 38rem;
  padding-bottom: 8px;
}

.brand-kicker {
  margin: 0;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
}

.brand-poster h1 {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-display, "Syne", sans-serif);
  font-weight: 800;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--text-primary, #fff);
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary, #fff) !important;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
  text-shadow: none;
}

.brand-lede {
  margin: 0;
  max-width: 34rem;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--text-subhead, #cbd5e1);
}

.brand-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.brand-cta,
.brand-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.brand-cta:hover,
.brand-cta-ghost:hover {
  text-decoration: none;
}

.brand-cta {
  background: var(--gold, #fbbf24);
  color: #050508 !important;
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.28);
}

.brand-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  color: #050508 !important;
}

.brand-cta-ghost {
  background: transparent;
  color: var(--text-primary, #fff) !important;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.16));
}

.brand-cta-ghost:hover {
  border-color: var(--gold, #fbbf24);
  color: var(--gold, #fbbf24) !important;
}

.brand-poster-figure {
  position: relative;
  z-index: 1;
  min-height: min(78vh, 820px);
  align-self: stretch;
  overflow: hidden;
  background: #050508;
  margin-right: calc(-1 * clamp(20px, 4vw, 48px));
  margin-top: calc(-1 * clamp(28px, 5vw, 64px));
  margin-bottom: calc(-1 * clamp(40px, 7vw, 80px));
}

.brand-poster-figure img.brand-poster-azoth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% 10%;
  display: block;
}

.brand-poster-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bg, #03050a) 0%, transparent 28%, transparent 100%);
}

.brand-poster-seal {
  position: absolute;
  right: 5%;
  bottom: 8%;
  z-index: 2;
  width: min(22%, 148px);
  height: auto;
  opacity: 0.78;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

.brand-poster-credit {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 3;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #fbbf24);
}

/* Kit body — editorial, not a boxed banner + chip grid */
.brand-kit.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(20px, 4vw, 48px) 120px;
}

.ambient-mesh {
  opacity: 0.35;
}

.quick-jump-bar,
.brand-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 0 0 clamp(36px, 5vw, 56px);
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 0;
}

.quick-jump-label {
  color: var(--gold, #fbbf24);
  margin-right: 4px;
}

.quick-jump-link,
.brand-jump a {
  color: var(--text-dim, #8b949e);
  text-decoration: none;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.quick-jump-link:hover,
.quick-jump-link:focus-visible,
.brand-jump a:hover,
.brand-jump a:focus-visible {
  color: var(--gold, #fbbf24);
  background: transparent;
  border-color: transparent;
  outline: none;
}

.hero-banner {
  display: none !important;
}

.section-block {
  margin-bottom: clamp(60px, 8vw, 100px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  scroll-margin-top: calc(var(--zoth-header-h, 54px) + 16px);
}

.section-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.section-title {
  font-family: var(--font-display, "Syne", sans-serif);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text-primary, #f0f6fc);
}

.section-desc {
  color: var(--text-dim, #8b949e);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 42rem;
  margin-bottom: var(--fib-34, 34px);
}

/* Downloadable objects keep cards; everything else is quieter */
.typo-scale-card,
.persona-card,
.doctrine-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.typo-scale-card {
  padding: 0;
  margin-bottom: 0;
}

.typo-row {
  border-bottom-color: var(--line, rgba(255, 255, 255, 0.08));
}

.persona-card {
  padding: 0 0 24px;
  border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  gap: 10px;
}

.persona-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line, rgba(255, 255, 255, 0.08));
}

.personas-grid {
  gap: 0 40px;
}

.persona-quote {
  background: transparent;
  border-left-color: var(--gold, #fbbf24);
  color: var(--text-subhead, #cbd5e1);
}

.doctrine-grid {
  gap: 40px;
}

.doctrine-card {
  padding: 0;
}

.doctrine-card.do,
.doctrine-card.dont {
  border-left: 0;
  border-top: 2px solid var(--gold, #fbbf24);
  padding-top: 16px;
}

.doctrine-card.dont {
  border-top-color: var(--magenta, #ff007a);
}

.doctrine-list li {
  display: block;
}

.spacing-box {
  background: transparent;
  border-color: var(--line, rgba(255, 255, 255, 0.1));
}

.spacing-box:hover {
  transform: none;
}

.table-wrap {
  background: transparent;
  box-shadow: none;
}

.seal-card,
.asset-card,
.color-card {
  background: var(--bg-surface, rgba(9, 13, 24, 0.92));
}

.seal-card-featured {
  grid-column: 1 / -1;
  border-color: rgba(251, 191, 36, 0.35);
}

.seal-featured-inner {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: var(--fib-21, 21px);
  align-items: center;
  padding: 20px;
}

.seal-card-featured .seal-preview-stage {
  height: 280px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12), #040711);
  border-radius: 16px;
}

.seal-card-featured .seal-title {
  font-size: 1.35rem;
  color: var(--text-primary, #fff) !important;
}

.asset-filters {
  margin-bottom: 18px;
}

.asset-filter-btn {
  background: transparent;
}

/* Footer full-bleed — never trapped in .container */
body > footer.site {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  box-sizing: border-box;
  border-top: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  padding: var(--fib-34, 34px) clamp(20px, 4vw, 48px) 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--fib-21, 21px);
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 0.76rem;
  color: var(--text-dim, #8b949e);
  background: var(--bg, #03050a);
}

body > footer.site a {
  color: inherit;
  text-decoration: none;
}

body > footer.site a:hover {
  color: var(--gold, #fbbf24);
  text-decoration: none;
}

body > footer.site span:last-child {
  margin-right: 200px;
}

@media (max-width: 720px) {
  body > footer.site span:last-child {
    margin-right: 0;
  }
}

@media (max-width: 900px) {
  .brand-poster {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
    align-items: stretch;
  }

  .brand-poster-figure {
    min-height: 52vh;
    order: -1;
    margin: 0 calc(-1 * clamp(20px, 4vw, 48px)) 8px;
  }

  .brand-poster-figure::after {
    background: linear-gradient(180deg, transparent 42%, var(--bg, #03050a) 100%);
  }

  .brand-poster h1 {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .brand-poster-copy {
    padding-bottom: 24px;
  }

  .seal-featured-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand-kit.container {
    padding: 28px 16px 80px;
    max-width: 100%;
  }

  .typo-row {
    grid-template-columns: 1fr;
  }
}

/* Light: dark ink, no clipped-gradient white titles */
html[data-theme="light"] .brand-poster,
html.theme-light .brand-poster {
  background: var(--bg, #f7f9fc);
}

html[data-theme="light"] .brand-poster h1,
html.theme-light .brand-poster h1,
html[data-theme="light"] h1,
html.theme-light h1 {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
  text-shadow: none !important;
}

html[data-theme="light"] .brand-lede,
html.theme-light .brand-lede {
  color: #374151 !important;
}

html[data-theme="light"] .brand-kicker,
html.theme-light .brand-kicker,
html[data-theme="light"] .brand-poster-credit,
html.theme-light .brand-poster-credit,
html[data-theme="light"] .quick-jump-label,
html.theme-light .quick-jump-label {
  color: #92400e !important;
}

html[data-theme="light"] .brand-cta,
html.theme-light .brand-cta {
  background: #fbbf24 !important;
  color: #050508 !important;
  box-shadow: none;
}

html[data-theme="light"] .brand-cta-ghost,
html.theme-light .brand-cta-ghost {
  color: #111827 !important;
  background: #ffffff;
  border: 1px solid rgba(17, 24, 39, 0.28);
}

html[data-theme="light"] .brand-cta-ghost:hover,
html.theme-light .brand-cta-ghost:hover {
  color: #92400e !important;
  border-color: #92400e;
}

html[data-theme="light"] .brand-poster-figure,
html.theme-light .brand-poster-figure {
  background: #111827;
}

html[data-theme="light"] .brand-poster-figure::after,
html.theme-light .brand-poster-figure::after {
  background: linear-gradient(90deg, var(--bg, #f7f9fc) 0%, transparent 32%, transparent 100%);
}

html[data-theme="light"] .section-title,
html.theme-light .section-title,
html[data-theme="light"] .seal-title,
html.theme-light .seal-title,
html[data-theme="light"] .persona-name,
html.theme-light .persona-name,
html[data-theme="light"] .doctrine-card h3,
html.theme-light .doctrine-card h3,
html[data-theme="light"] .typo-preview-hero,
html.theme-light .typo-preview-hero,
html[data-theme="light"] .typo-preview-title,
html.theme-light .typo-preview-title,
html[data-theme="light"] .color-name,
html.theme-light .color-name,
html[data-theme="light"] .spacing-name,
html.theme-light .spacing-name {
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
}

html[data-theme="light"] .section-desc,
html.theme-light .section-desc,
html[data-theme="light"] .seal-desc,
html.theme-light .seal-desc,
html[data-theme="light"] .persona-body,
html.theme-light .persona-body,
html[data-theme="light"] .doctrine-list li,
html.theme-light .doctrine-list li,
html[data-theme="light"] .typo-preview-body,
html.theme-light .typo-preview-body,
html[data-theme="light"] .typo-preview-subhead,
html.theme-light .typo-preview-subhead,
html[data-theme="light"] td,
html.theme-light td {
  color: #1f2937 !important;
}

html[data-theme="light"] .quick-jump-link,
html.theme-light .quick-jump-link,
html[data-theme="light"] .brand-jump a,
html.theme-light .brand-jump a,
html[data-theme="light"] .seal-meta-specs,
html.theme-light .seal-meta-specs,
html[data-theme="light"] .color-hex,
html.theme-light .color-hex,
html[data-theme="light"] .typo-meta,
html.theme-light .typo-meta,
html[data-theme="light"] .spacing-val,
html.theme-light .spacing-val {
  color: #4b5563 !important;
}

html[data-theme="light"] .seal-card,
html.theme-light .seal-card,
html[data-theme="light"] .asset-card,
html.theme-light .asset-card,
html[data-theme="light"] .color-card,
html.theme-light .color-card,
html[data-theme="light"] .table-wrap,
html.theme-light .table-wrap {
  background: #ffffff !important;
  border-color: rgba(17, 24, 39, 0.12) !important;
}

html[data-theme="light"] .btn-action,
html.theme-light .btn-action,
html[data-theme="light"] .asset-filter-btn,
html.theme-light .asset-filter-btn {
  background: #ffffff;
  color: #111827;
  border-color: rgba(17, 24, 39, 0.16);
}

html[data-theme="light"] .seal-spec-tag,
html.theme-light .seal-spec-tag,
html[data-theme="light"] .persona-tag,
html.theme-light .persona-tag {
  background: rgba(17, 24, 39, 0.05);
  border-color: rgba(17, 24, 39, 0.1);
  color: #374151;
}

html[data-theme="light"] th,
html.theme-light th {
  background: #f3f4f6 !important;
  color: #92400e !important;
}

html[data-theme="light"] body > footer.site,
html.theme-light body > footer.site {
  background: #f7f9fc;
  color: #374151 !important;
  border-top-color: rgba(17, 24, 39, 0.1);
}

html[data-theme="light"] .ambient-mesh,
html.theme-light .ambient-mesh {
  opacity: 0.18;
}

html[data-theme="light"] .seal-card-featured,
html.theme-light .seal-card-featured {
  background: #ffffff !important;
}

@media (max-width: 900px) {
  html[data-theme="light"] .brand-poster-figure::after,
  html.theme-light .brand-poster-figure::after {
    background: linear-gradient(180deg, transparent 40%, var(--bg, #f7f9fc) 100%);
  }
}
