/* BIOS Brandbook — a focused brand resource in the canonical BIOS visual system. */

body.brandbook-page {
  --brand-ink: #101114;
  --brand-muted: #6e6e73;
  --brand-blue: #0071e3;
  --brand-signal: #087cf0;
  --brand-violet: #6342e5;
  --brand-soft: #f5f5f7;
  --brand-line: rgba(16, 17, 20, .11);
  min-width: 320px;
  color: var(--brand-ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Arial, sans-serif;
}

body.brandbook-page main { overflow: clip; }
body.brandbook-page .shell { width: min(1180px, calc(100% - 56px)); }

.brandbook-kicker {
  margin: 0 0 17px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.brandbook-hero {
  padding: clamp(70px, 8vw, 118px) 0 0;
  background:
    radial-gradient(circle at 83% 17%, rgba(99, 66, 229, .09), transparent 27%),
    radial-gradient(circle at 70% 58%, rgba(0, 113, 227, .08), transparent 31%),
    #fff;
}

.brandbook-hero-grid {
  display: grid;
  min-height: 590px;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
  align-items: center;
  gap: clamp(44px, 8vw, 110px);
}

.brandbook-hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(62px, 7vw, 102px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .89;
  text-wrap: balance;
}

.brandbook-hero-copy > p:not(.brandbook-kicker) {
  max-width: 650px;
  margin: 32px 0 0;
  color: var(--brand-muted);
  font-size: clamp(18px, 1.7vw, 22px);
  letter-spacing: -.014em;
  line-height: 1.5;
}

.brandbook-hero-actions { display: flex; margin-top: 38px; flex-wrap: wrap; gap: 10px; }

.brandbook-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.brandbook-button:hover { transform: translateY(-1px); }
.brandbook-button--primary { color: #fff; background: var(--brand-blue); }
.brandbook-button--primary:hover { color: #fff; background: #0077ed; }
.brandbook-button--secondary { border-color: rgba(0, 113, 227, .55); color: var(--brand-blue); background: rgba(255, 255, 255, .72); }
.brandbook-button--secondary:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.brandbook-hero-art {
  position: relative;
  display: grid;
  min-height: 470px;
  border-radius: 42px;
  background: linear-gradient(145deg, #edf6ff 0%, #f7f5ff 100%);
  box-shadow: 0 30px 80px rgba(44, 78, 180, .1);
  place-items: center;
  overflow: hidden;
}

.brandbook-hero-art img {
  position: relative;
  z-index: 2;
  width: clamp(170px, 17vw, 235px);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(16, 17, 20, .18));
}

.brandbook-hero-art p {
  position: absolute;
  z-index: 2;
  bottom: 31px;
  left: 34px;
  margin: 0;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
}

.brandbook-jump {
  display: flex;
  margin-top: 62px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--brand-line);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 8px;
}
.brandbook-jump::-webkit-scrollbar { display: none; }
.brandbook-jump a { display: inline-flex; min-height: 38px; padding: 0 15px; border: 1px solid var(--brand-line); border-radius: 999px; color: #5f6065; background: #fff; align-items: center; font-size: 13px; font-weight: 550; white-space: nowrap; }
.brandbook-jump a:hover { border-color: rgba(0, 113, 227, .35); color: var(--brand-blue); }

.brandbook-section { padding: clamp(96px, 10vw, 142px) 0; scroll-margin-top: 92px; }
.brandbook-section--soft { background: var(--brand-soft); }
.brandbook-section--dark { color: #f5f5f7; background: #101114; }

.brandbook-section-head {
  display: grid;
  margin-bottom: clamp(52px, 6vw, 78px);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: end;
  gap: 54px;
}

.brandbook-section-head h2,
.brandbook-contact-card h2 {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif;
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -.057em;
  line-height: .97;
  text-wrap: balance;
}

.brandbook-section-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--brand-muted);
  font-size: 17px;
  line-height: 1.58;
}

.brandbook-section--dark .brandbook-section-head > p { color: #a1a1a6; }
.brandbook-section--dark .brandbook-section-head h2 { color: #f5f5f7; }
.brandbook-section--dark .brandbook-kicker { color: #2997ff; }

.brandbook-logo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brandbook-logo-card { min-width: 0; border: 1px solid var(--brand-line); border-radius: 32px; overflow: hidden; }
.brandbook-logo-card--mark { grid-column: 1 / -1; }
.brandbook-logo-preview { display: grid; min-height: 360px; padding: 54px; place-items: center; }
.brandbook-logo-card--light .brandbook-logo-preview { background: #f7f7f9; }
.brandbook-logo-card--dark .brandbook-logo-preview { background: #101114; }
.brandbook-logo-card--mark .brandbook-logo-preview { min-height: 310px; background: linear-gradient(145deg, #edf6ff, #f7f5ff); }
.brandbook-logo-preview img { display: block; width: min(390px, 86%); height: auto; object-fit: contain; }
.brandbook-logo-card--mark .brandbook-logo-preview img { width: 164px; }
.brandbook-card-foot { display: flex; min-height: 92px; padding: 22px 26px; color: var(--brand-ink); background: #fff; align-items: center; justify-content: space-between; gap: 24px; }
.brandbook-card-foot > div { display: grid; gap: 5px; }
.brandbook-card-foot span { font-size: 15px; font-weight: 650; }
.brandbook-card-foot small { color: #86868b; font-size: 12px; }
.brandbook-card-foot > a { display: inline-flex; min-height: 36px; padding: 0 14px; border: 1px solid rgba(0,113,227,.38); border-radius: 999px; color: var(--brand-blue); align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }

.brandbook-logo-rules { display: grid; margin-top: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brandbook-logo-rules article { padding: 32px; border: 1px solid var(--brand-line); border-radius: 28px; background: #fff; }
.brandbook-rule-status { display: inline-flex; min-height: 29px; padding: 0 10px; border-radius: 999px; align-items: center; font-size: 11px; font-weight: 700; }
.brandbook-rule-status--yes { color: #006edc; background: #eaf4ff; }
.brandbook-rule-status--no { color: #7d5360; background: #f7ecef; }
.brandbook-logo-rules h3 { margin: 22px 0 0; font-size: 25px; font-weight: 600; letter-spacing: -.035em; }
.brandbook-logo-rules p { margin: 17px 0 0; color: var(--brand-muted); font-size: 15px; line-height: 1.55; }
.brandbook-clearspace,
.brandbook-misuse { position: relative; display: grid; height: 230px; margin-top: 24px; border-radius: 20px; background: var(--brand-soft); place-items: center; overflow: hidden; }
.brandbook-clearspace::before,
.brandbook-clearspace::after { position: absolute; border: 1px dashed rgba(0,113,227,.25); content: ""; }
.brandbook-clearspace::before { width: 156px; height: 156px; }
.brandbook-clearspace::after { width: 104px; height: 104px; }
.brandbook-clearspace img { position: relative; z-index: 1; width: 80px; }
.brandbook-misuse img { width: 104px; filter: grayscale(1) drop-shadow(18px 15px 0 rgba(99,66,229,.18)); transform: scaleX(1.5) rotate(-8deg); }

.brandbook-color-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.brandbook-color { display: flex; min-height: 260px; padding: 24px; border: 0; border-radius: 26px; color: #fff; cursor: pointer; flex-direction: column; align-items: flex-start; text-align: left; transition: transform .2s ease; }
.brandbook-color:hover { transform: translateY(-2px); }
.brandbook-color span { font: inherit; font-size: 14px; font-weight: 650; }
.brandbook-color strong { margin-top: auto; font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.brandbook-color small { margin-top: 7px; color: rgba(255,255,255,.67); font-size: 10px; }
.brandbook-color--blue { background: #0071e3; }
.brandbook-color--signal { background: #087cf0; }
.brandbook-color--violet { background: #6342e5; }
.brandbook-color--ink { background: #101114; }
.brandbook-color--soft { border: 1px solid var(--brand-line); color: var(--brand-ink); background: #f5f5f7; }
.brandbook-color--white { border: 1px solid var(--brand-line); color: var(--brand-ink); background: #fff; }
.brandbook-color--soft small,
.brandbook-color--white small { color: #86868b; }
.brandbook-copy-status { min-height: 18px; margin: 12px 0 0; color: var(--brand-muted); font-size: 12px; }

.brandbook-gradient-grid { display: grid; margin-top: 42px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.brandbook-gradient { display: flex; min-height: 240px; padding: 28px; border-radius: 28px; flex-direction: column; justify-content: space-between; }
.brandbook-gradient span { font-size: 14px; font-weight: 650; }
.brandbook-gradient p { margin: 0; font-size: 16px; font-weight: 550; }
.brandbook-gradient--primary { color: #fff; background: linear-gradient(110deg, #0071e3 0%, #087cf0 46%, #6342e5 100%); }
.brandbook-gradient--soft { border: 1px solid rgba(0,113,227,.08); background: linear-gradient(145deg, #edf6ff 0%, #f7f5ff 100%); }

.brandbook-type-card { border: 1px solid var(--brand-line); border-radius: 34px; overflow: hidden; }
.brandbook-type-display { padding: clamp(42px, 6vw, 76px); background: linear-gradient(145deg, #edf6ff 0%, #f7f5ff 100%); }
.brandbook-type-card span { color: #86868b; font-size: 12px; font-weight: 600; }
.brandbook-type-display p { max-width: 950px; margin: 42px 0 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Arial, sans-serif; font-size: clamp(48px, 6.3vw, 86px); font-weight: 600; letter-spacing: -.062em; line-height: .93; }
.brandbook-type-row { display: grid; grid-template-columns: 1.45fr .55fr; }
.brandbook-type-row > div { min-height: 235px; padding: 34px; }
.brandbook-type-row > div + div { border-left: 1px solid var(--brand-line); }
.brandbook-type-row p { margin: 48px 0 0; color: #2f3033; font-size: 18px; line-height: 1.65; }
.brandbook-type-row > div:last-child p { font-size: 14px; line-height: 1.5; }

.brandbook-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brandbook-photo { position: relative; min-height: 430px; margin: 0; border-radius: 30px; overflow: hidden; }
.brandbook-photo--wide { grid-column: 1 / -1; min-height: 570px; }
.brandbook-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.brandbook-photo:hover img { transform: scale(1.012); }
.brandbook-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,17,20,.68)); content: ""; }
.brandbook-photo figcaption { position: absolute; z-index: 2; right: 30px; bottom: 28px; left: 30px; display: grid; gap: 5px; }
.brandbook-photo figcaption strong { color: #fff; font-size: 20px; font-weight: 600; }
.brandbook-photo figcaption span { color: rgba(255,255,255,.7); font-size: 13px; }

.brandbook-voice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.brandbook-voice-card { min-height: 390px; padding: clamp(32px, 4vw, 50px); border: 1px solid var(--brand-line); border-radius: 30px; }
.brandbook-voice-card > span { display: inline-flex; min-height: 31px; padding: 0 11px; border-radius: 999px; align-items: center; font-size: 11px; font-weight: 700; }
.brandbook-voice-card--yes { background: linear-gradient(145deg, #edf6ff 0%, #f7f5ff 100%); }
.brandbook-voice-card--yes > span { color: #006edc; background: rgba(255,255,255,.72); }
.brandbook-voice-card--no { background: #f5f5f7; }
.brandbook-voice-card--no > span { color: #7d5360; background: #fff; }
.brandbook-voice-card h3 { max-width: 470px; margin: 96px 0 0; font-size: clamp(25px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.042em; line-height: 1.08; }
.brandbook-voice-card p { max-width: 470px; margin: 20px 0 0; color: var(--brand-muted); font-size: 15px; line-height: 1.55; }

.brandbook-download-list { border-top: 1px solid var(--brand-line); }
.brandbook-download-list > a { display: flex; min-height: 116px; padding: 25px 0; border-bottom: 1px solid var(--brand-line); color: var(--brand-ink); align-items: center; justify-content: space-between; gap: 28px; }
.brandbook-download-list > a:hover strong { color: var(--brand-blue); }
.brandbook-download-list div { display: grid; gap: 8px; }
.brandbook-download-list strong { font-size: clamp(20px, 2vw, 27px); font-weight: 600; letter-spacing: -.035em; transition: color .2s ease; }
.brandbook-download-list span { color: var(--brand-muted); font-size: 13px; }
.brandbook-download-list i { display: grid; width: 44px; height: 44px; border: 1px solid rgba(0,113,227,.42); border-radius: 50%; color: var(--brand-blue); font-size: 19px; font-style: normal; place-items: center; }

.brandbook-contact { padding: clamp(96px, 10vw, 140px) 10px; background: #fff; }
.brandbook-contact-card { display: grid; min-height: 470px; padding: clamp(54px, 7vw, 94px); border-radius: 40px; color: #f5f5f7; background: radial-gradient(circle at 80% 4%, rgba(0,113,227,.31), transparent 35%), #101114; grid-template-columns: minmax(0, 1fr) minmax(300px, 430px); align-items: center; gap: 64px; }
.brandbook-contact-card .brandbook-kicker { color: #2997ff; }
.brandbook-contact-card h2 { color: #f5f5f7; }
.brandbook-contact-copy p { margin: 0; color: #a1a1a6; font-size: 18px; line-height: 1.55; }
.brandbook-contact-copy .brandbook-button { margin-top: 28px; }

@media (max-width: 960px) {
  .brandbook-hero-grid { min-height: auto; padding-bottom: 24px; grid-template-columns: 1fr; }
  .brandbook-hero-art { min-height: 430px; }
  .brandbook-section-head { grid-template-columns: 1fr; align-items: start; gap: 26px; }
  .brandbook-section-head > p { max-width: 680px; }
  .brandbook-color-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brandbook-contact-card { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  .brandbook-logo-grid,
  .brandbook-logo-rules,
  .brandbook-gradient-grid,
  .brandbook-photo-grid,
  .brandbook-voice-grid { grid-template-columns: 1fr; }
  .brandbook-logo-card--mark,
  .brandbook-photo--wide { grid-column: auto; }
  .brandbook-photo,
  .brandbook-photo--wide { min-height: 420px; }
  .brandbook-type-row { grid-template-columns: 1fr; }
  .brandbook-type-row > div + div { border-top: 1px solid var(--brand-line); border-left: 0; }
}

@media (max-width: 580px) {
  body.brandbook-page .shell { width: min(100% - 36px, 1180px); }
  .brandbook-hero { padding-top: 58px; }
  .brandbook-hero-grid { gap: 46px; }
  .brandbook-hero-copy h1 { font-size: clamp(50px, 14vw, 68px); }
  .brandbook-hero-copy > p:not(.brandbook-kicker) { margin-top: 25px; font-size: 17px; }
  .brandbook-hero-actions { margin-top: 30px; }
  .brandbook-button { width: 100%; }
  .brandbook-hero-art { min-height: 350px; border-radius: 30px; }
  .brandbook-jump { width: calc(100% - 18px) !important; margin-left: 18px; padding-right: 18px; }
  .brandbook-section { padding: 84px 0; }
  .brandbook-section-head { margin-bottom: 42px; }
  .brandbook-section-head h2,
  .brandbook-contact-card h2 { font-size: clamp(39px, 11vw, 49px); }
  .brandbook-section-head > p { font-size: 16px; }
  .brandbook-logo-preview { min-height: 270px; padding: 34px; }
  .brandbook-logo-card--mark .brandbook-logo-preview { min-height: 260px; }
  .brandbook-card-foot { padding: 19px 20px; }
  .brandbook-logo-rules article { padding: 24px; }
  .brandbook-color-grid { grid-template-columns: 1fr; }
  .brandbook-color { min-height: 210px; }
  .brandbook-gradient { min-height: 190px; }
  .brandbook-type-display { padding: 36px 24px; }
  .brandbook-type-display p { margin-top: 38px; font-size: clamp(40px, 12vw, 55px); }
  .brandbook-type-row > div { min-height: 210px; padding: 26px 24px; }
  .brandbook-type-row p { margin-top: 38px; }
  .brandbook-photo,
  .brandbook-photo--wide { min-height: 390px; border-radius: 24px; }
  .brandbook-voice-card { min-height: 340px; padding: 28px 24px; }
  .brandbook-voice-card h3 { margin-top: 72px; }
  .brandbook-download-list > a { min-height: 105px; }
  .brandbook-contact { padding: 72px 8px; }
  .brandbook-contact-card { min-height: 470px; padding: 46px 24px; border-radius: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .brandbook-button,
  .brandbook-color,
  .brandbook-photo img { transition: none; }
}
