/* BI JAViN Home Section */
.bjh {
  --red: #71160e; --ink: #002b2b; --soft: #4d5f5f; --line: #ece4e2;
  position: relative; width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background: #fff; color: var(--ink); font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif; text-align: left; overflow: hidden;
}
.bjh *, .bjh *::before { box-sizing: border-box; }
.bjh a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.bjh :where(h2, p) { margin: 0; padding: 0; letter-spacing: normal; text-transform: none; }
.bjh-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(40px, 6vw, 88px); align-items: center;
  max-width: 1300px; margin: 0 auto; padding: clamp(64px, 8vw, 104px) max(20px, env(safe-area-inset-right, 0px)) clamp(64px, 8vw, 104px) max(20px, env(safe-area-inset-left, 0px));
}
.bjh .bjh-lead { font-size: 17px; line-height: 1.3; color: var(--red); }
.bjh h2.bjh-mark { margin-top: 12px; font: 400 clamp(68px, 8.4vw, 112px)/.95 "Oranienbaum", Cambria, Georgia, serif; color: var(--red); letter-spacing: .01em; }
.bjh .bjh-line { margin-top: 14px; font: 400 clamp(25px, 2.6vw, 34px)/1.14 "Oranienbaum", Cambria, Georgia, serif; color: var(--ink); text-wrap: balance; }
.bjh .bjh-text { max-width: 46ch; margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--soft); }
.bjh .bjh-stat { display: flex; align-items: center; gap: 16px; max-width: 460px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bjh-stat b { font: 400 clamp(46px, 4.6vw, 60px)/1 "Oranienbaum", Cambria, Georgia, serif; color: var(--red); flex: none; }
.bjh-stat span { font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.bjh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.bjh a.bjh-btn, .bjh a.bjh-btn:hover, .bjh a.bjh-btn:focus, .bjh a.bjh-btn:visited { display: inline-block; padding: 14px 32px; color: #fff; background: var(--red); border-radius: 25px; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; }
.bjh a.bjh-btn { transition: background .25s; }
.bjh a.bjh-btn:hover { background: #51000c; }
.bjh a.bjh-more, .bjh a.bjh-more:visited { color: var(--red); font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.bjh .bjh-note { margin-top: 16px; font-size: 14px; color: var(--soft); }

.bjh-stage { position: relative; perspective: 1400px; min-width: 0; }
.bjh-stage::before { content: ""; position: absolute; inset: -14% -10%; background: radial-gradient(closest-side, rgba(180, 87, 74, .13), rgba(180, 87, 74, 0)); pointer-events: none; }
.bjh-tilt { position: relative; transform: rotateY(-7deg) rotateX(3deg); }
.bjh-sheet { position: absolute; inset: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 26px rgba(46, 7, 4, .08); transform: translate(14px, 14px) rotate(1.1deg); }
.bjh-sheet + .bjh-sheet { transform: translate(7px, 7px) rotate(.5deg); }
.bjh-card {
  position: relative; padding: clamp(18px, 2.4vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 24px 56px rgba(46, 7, 4, .18), 0 6px 18px rgba(46, 7, 4, .08);
}
.bjh-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bjh-card__brand { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--soft); min-width: 0; }
.bjh-card__brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.bjh-card__brand b { font: 400 16px/1 "Oranienbaum", Cambria, Georgia, serif; color: var(--ink); }
.bjh-badge { padding: 6px 12px; border-radius: 20px; background: #e7f1ec; color: #24624a; font-size: 12px; font-weight: 500; white-space: nowrap; }
.bjh-card__body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding: 24px 0; }
.bjh-score { text-align: center; }
.bjh-score svg { display: block; width: min(100%, 150px); margin: 0 auto; transform: none; }
.bjh-score circle { fill: none; stroke-width: 9; }
.bjh-ring-bg { stroke: #efe9e7; }
.bjh-ring { stroke: url(#bjh-ring); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 81.7; transform: rotate(-90deg); transform-origin: 60px 60px; }
.bjh-score text { font: 400 34px "Oranienbaum", Cambria, Georgia, serif; fill: var(--ink); }
.bjh-score small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--soft); }
.bjh-bars { display: grid; gap: 14px; min-width: 0; }
.bjh-bars span { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--ink); }
.bjh-bars u { display: block; height: 7px; border-radius: 4px; background: #efe9e7; text-decoration: none; overflow: hidden; }
.bjh-bars i { display: block; width: var(--w); height: 100%; border-radius: 4px; background: linear-gradient(90deg, #71160e, #b4574a); }
.bjh-card__foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.bjh-card__foot span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 12.5px; color: var(--soft); }

.bjh-tag { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px rgba(46, 7, 4, .16); font-size: 12.5px; line-height: 1.3; color: var(--soft); transition: opacity .5s ease 1.1s, transform .5s ease 1.1s; }
.bjh-tag b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.bjh-tag svg { width: 22px; height: 22px; flex: none; fill: none; stroke: #24624a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bjh-tag--kpi svg { stroke: var(--red); }
.bjh-tag--review { right: -14px; top: -48px; }
.bjh-tag--kpi { left: -22px; bottom: -30px; transition-delay: 1.35s; }

/* One reveal: the score fills when the section comes into view */
.bjh.is-waiting .bjh-ring { stroke-dashoffset: 326.7; }
.bjh.is-waiting .bjh-bars i { width: 0; }
.bjh.is-waiting .bjh-tag { opacity: 0; transform: translateY(10px); }
.bjh-ring { transition: stroke-dashoffset 1.3s cubic-bezier(.2, .7, .2, 1); }
.bjh-bars i { transition: width 1.1s cubic-bezier(.2, .7, .2, 1) .15s; }

@media (min-width: 901px) and (max-width: 1200px) {
  .bjh-tag--kpi { bottom: -48px; } /* the card chips wrap to two rows here */
}
@media (max-width: 900px) {
  .bjh-tag--review { right: 0; }
  .bjh-tag--kpi { left: 0; }
  .bjh-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bjh-tilt { transform: none; }
  .bjh-card { box-shadow: 0 20px 44px rgba(46, 7, 4, .16), 0 4px 12px rgba(46, 7, 4, .08); }
}
@media (max-width: 460px) {
  .bjh-wrap { gap: 28px; padding-top: 48px; padding-bottom: 52px; }
  .bjh h2.bjh-mark { margin-top: 6px; font-size: 64px; }
  .bjh .bjh-line { margin-top: 8px; font-size: 24px; }
  .bjh .bjh-text { margin-top: 10px; font-size: 16px; line-height: 1.5; }
  .bjh-actions { gap: 12px 18px; margin-top: 18px; }
  .bjh a.bjh-btn, .bjh a.bjh-btn:hover, .bjh a.bjh-btn:focus, .bjh a.bjh-btn:visited { padding: 13px 24px; }
  .bjh .bjh-note { margin-top: 12px; font-size: 13px; }
  .bjh-card { padding: 14px; border-radius: 14px; }
  .bjh-card__head { padding-bottom: 10px; }
  .bjh-card__brand { gap: 5px; font-size: 10.5px; white-space: nowrap; }
  .bjh-card__brand b { font-size: 14px; }
  .bjh-badge { font-size: 10px; padding: 4px 7px; }
  .bjh-card__body { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 12px 0 2px; }
  .bjh-score small { font-size: 10.5px; margin-top: 4px; }
  .bjh-bars { gap: 7px; }
  .bjh-bars span { margin-bottom: 3px; font-size: 11.5px; }
  .bjh-bars u { height: 5px; }
  .bjh-card__foot { display: none; }
  .bjh .bjh-stat { gap: 12px; margin-top: 14px; padding: 10px 0; }
  .bjh-stat b { font-size: 42px; }
  .bjh-stat span { font-size: 14px; }
  .bjh-tag, .bjh-sheet { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bjh-ring, .bjh-bars i, .bjh-tag { transition: none; }
}
