/* BTCENT R289 — source-bound in-house system proof, layered over the accepted R288 home. */
:root {
  --r289-ink: #101218;
  --r289-paper: #f4f5f2;
  --r289-muted: #656b75;
  --r289-night: #0c0e13;
  --r289-night-soft: #151821;
  --r289-violet: #7b82ff;
  --r289-lime: #d8ff73;
  --r289-edge: clamp(1rem, 4.2vw, 4.75rem);
  --r289-section: clamp(5rem, 10vw, 9rem);
}

body[data-r289-system] * { box-sizing: border-box; }

body[data-r289-system] :is(.r289-systems, .r289-case-hero, .r289-case-system, .r289-case-boundary, .r289-case-next) {
  width: 100%;
  padding-inline: var(--r289-edge);
}

body[data-r289-system] :is(.r289-systems, .r289-case-hero, .r289-case-system, .r289-case-boundary, .r289-case-next) > * {
  width: min(100%, 86rem);
  margin-inline: auto;
}

body[data-r289-system] .r289-kicker {
  margin: 0;
  color: currentColor;
  font-size: .8125rem;
  font-weight: 720;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

body[data-r289-system] .r289-systems {
  padding-block: var(--r289-section);
  scroll-margin-top: 5.5rem;
  color: var(--r289-ink);
  background: #fff;
}

body[data-r289-system] .r289-systems-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, .52fr);
  grid-template-areas: "kicker intro" "title intro";
  align-items: end;
  gap: .8rem clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

body[data-r289-system] .r289-systems-head .r289-kicker { grid-area: kicker; color: #575d69; }

body[data-r289-system] .r289-systems-head h2 {
  grid-area: title;
  max-width: 11ch;
  margin: 0;
  color: var(--r289-ink);
  font-size: clamp(3rem, 6.6vw, 6.8rem);
  font-weight: 560;
  letter-spacing: -.062em;
  line-height: .9;
  text-wrap: balance;
}

body[data-r289-system] .r289-systems-head > div {
  grid-area: intro;
  align-self: end;
}

body[data-r289-system] .r289-systems-head > div p {
  max-width: 38rem;
  margin: 0;
  color: var(--r289-muted);
  font-size: 1rem;
  line-height: 1.7;
}

body[data-r289-system] .r289-systems-head > div p + p {
  margin-top: 1rem;
  color: #3b414a;
  font-size: .875rem;
}

body[data-r289-system] .r289-selector {
  overflow: hidden;
  border-radius: clamp(1.4rem, 2.5vw, 2.25rem);
  color: #fff;
  background: var(--r289-night);
  box-shadow: 0 2.2rem 5.5rem rgb(15 18 26 / 15%);
}

body[data-r289-system] .r289-selector-tabs {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: .6rem;
  background: #11141a;
}

body[data-r289-system] .r289-selector-tabs button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  min-width: 0;
  min-height: 4.75rem;
  padding: .75rem 1rem;
  border: 0;
  border-radius: 1rem;
  color: #969da9;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease;
}

body[data-r289-system] .r289-selector-tabs button img {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
  filter: grayscale(1) brightness(2.4);
  opacity: .72;
}

body[data-r289-system] .r289-selector-tabs button span {
  min-width: 0;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 670;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-r289-system] .r289-selector-tabs button small {
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .07em;
}

body[data-r289-system] .r289-selector-tabs button[aria-selected="true"] {
  color: #fff;
  background: #20242d;
}

body[data-r289-system] .r289-selector-tabs button[aria-selected="true"] img {
  filter: none;
  opacity: 1;
}

body[data-r289-system] .r289-selector-panels { display: grid; }

body[data-r289-system] .r289-system-panel {
  position: relative;
  display: grid;
  min-height: clamp(41rem, 66vw, 56rem);
  overflow: hidden;
  isolation: isolate;
}

body[data-r289-system].r289-is-enhanced .r289-system-panel { grid-area: 1 / 1; }
body[data-r289-system].r289-is-enhanced .r289-system-panel[hidden] { display: none !important; }

body[data-r289-system] .r289-system-media,
body[data-r289-system] .r289-system-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body[data-r289-system] .r289-system-media img,
body[data-r289-system] .r289-system-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--r289-focal-x, 50%) var(--r289-focal-y, 50%);
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.2,.75,.2,1), object-position .8s ease;
}

body[data-r289-system] .r289-system-panel:hover .r289-system-media img { transform: scale(1.035); }
body[data-r289-system] .r289-system-panel:hover .r289-system-media video { transform: scale(1.035); }

body[data-r289-system] .r289-system-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(7 9 13 / 96%) 0%, rgb(7 9 13 / 80%) 44%, rgb(7 9 13 / 18%) 82%),
    linear-gradient(0deg, rgb(7 9 13 / 92%) 0%, transparent 58%);
}

body[data-r289-system] .r289-system-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 63rem);
  min-height: inherit;
  padding: clamp(2rem, 5.5vw, 5.25rem);
}

body[data-r289-system] .r289-system-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: auto;
}

body[data-r289-system] .r289-system-identity img {
  width: auto;
  max-width: 8.5rem;
  height: 3rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

body[data-r289-system] .r289-system-identity img[src*="george-lee-law"] { filter: none; }

body[data-r289-system] .r289-system-identity span {
  color: #c5cad4;
  font-size: .8125rem;
  font-weight: 680;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

body[data-r289-system] .r289-system-copy h3 {
  max-width: 13ch;
  margin: clamp(5rem, 12vw, 12rem) 0 1.25rem;
  color: #fff;
  font-size: clamp(2.8rem, 6vw, 6.25rem);
  font-weight: 560;
  letter-spacing: -.058em;
  line-height: .92;
  text-wrap: balance;
}

body[data-r289-system] .r289-system-copy > p {
  max-width: 46rem;
  margin: 0;
  color: #cdd1d8;
  font-size: 1rem;
  line-height: 1.68;
}

body[data-r289-system] .r289-system-proof {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.15rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

body[data-r289-system] .r289-system-proof li {
  position: relative;
  color: #f4f5f7;
  font-size: .8125rem;
  font-weight: 670;
  letter-spacing: .035em;
  line-height: 1.5;
}

body[data-r289-system] .r289-system-proof li:not(:last-child)::after {
  margin-left: 1.15rem;
  color: var(--r289-violet);
  content: "•";
}

body[data-r289-system] .r289-system-boundary {
  max-width: 48rem;
  margin-top: 1.4rem;
  color: #9ea5af;
  font-size: .8125rem;
  line-height: 1.58;
}

body[data-r289-system] .r289-system-link {
  align-self: flex-start;
  min-height: 2.9rem;
  margin-top: 1.6rem;
  color: #fff;
  font-size: .875rem;
  font-weight: 720;
  line-height: 2.9rem;
  text-decoration: none;
}

body[data-r289-system] .r289-system-link span { margin-left: .4rem; }

/* Case pages use one media-led system instead of generic cards or comparison tables. */
body[data-r289-case] {
  color: var(--r289-ink);
  background: var(--r289-paper);
}

body[data-r289-case] main { overflow: clip; }

body[data-r289-case] .r289-case-hero {
  padding-block: clamp(7.5rem, 12vw, 11rem) clamp(4.75rem, 9vw, 8rem);
  color: #fff;
  background: var(--r289-night);
}

body[data-r289-case] .r289-case-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(19rem, .62fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: end;
}

body[data-r289-case] .r289-case-hero-copy > .r289-kicker { color: #aeb4c0; }

body[data-r289-case] .r289-case-hero h1 {
  max-width: 12ch;
  margin: 1.2rem 0 1.5rem;
  color: #fff;
  font-size: clamp(3.35rem, 7.3vw, 7.5rem);
  font-weight: 560;
  letter-spacing: -.068em;
  line-height: .88;
  text-wrap: balance;
}

body[data-r289-case] .r289-case-hero-copy > p:last-of-type {
  max-width: 47rem;
  margin: 0;
  color: #bcc1ca;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.65;
}

body[data-r289-case] .r289-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2.1rem;
}

body[data-r289-case] .r289-case-actions :is(a, button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: .8rem 1.15rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .875rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}

body[data-r289-case] .r289-case-actions a { color: var(--r289-ink); background: #fff; }
body[data-r289-case] .r289-case-actions button { color: #fff; background: #252936; }

body[data-r289-case] .r289-case-brand {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.5rem;
  color: #fff;
  background: #171a22;
  isolation: isolate;
  overflow: hidden;
}

body[data-r289-case] .r289-case-brand-media,
body[data-r289-case] .r289-case-brand-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body[data-r289-case] .r289-case-brand-media {
  overflow: hidden;
}

body[data-r289-case] .r289-case-brand-media :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

body[data-r289-case] .r289-case-brand-shade {
  z-index: -1;
  background: linear-gradient(0deg, rgb(8 10 14 / 90%) 0%, rgb(8 10 14 / 20%) 100%);
}

body[data-r289-case] .r289-case-brand-logo {
  width: auto;
  max-width: 11rem;
  height: 4.2rem;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}

body[data-r289-case] .r289-case-brand-logo[src*="george-lee-law"] { filter: none; }

body[data-r289-case] .r289-case-brand-label {
  max-width: 19rem;
  color: #aeb4be;
  font-size: .8125rem;
  font-weight: 680;
  letter-spacing: .09em;
  line-height: 1.5;
  text-transform: uppercase;
}

body[data-r289-case] .r289-case-system {
  padding-block: var(--r289-section);
  background: #fff;
}

body[data-r289-case] .r289-case-system-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .48fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.8rem, 6vw, 5rem);
}

body[data-r289-case] .r289-case-system-head h2 {
  max-width: 12ch;
  margin: .8rem 0 0;
  color: var(--r289-ink);
  font-size: clamp(2.8rem, 6vw, 6rem);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: .92;
  text-wrap: balance;
}

body[data-r289-case] .r289-case-system-head > p {
  margin: 0;
  color: var(--r289-muted);
  font-size: 1rem;
  line-height: 1.7;
}

body[data-r289-case] .r289-case-stage {
  overflow: hidden;
  border-radius: clamp(1.4rem, 2.5vw, 2.25rem);
  color: #fff;
  background: var(--r289-night);
  box-shadow: 0 2rem 5rem rgb(15 18 26 / 14%);
}

body[data-r289-case] .r289-case-panels { display: grid; }

body[data-r289-case] .r289-case-panel {
  position: relative;
  display: grid;
  min-height: clamp(37rem, 58vw, 50rem);
  isolation: isolate;
}

body[data-r289-case].r289-is-enhanced .r289-case-panel { grid-area: 1 / 1; }
body[data-r289-case].r289-is-enhanced .r289-case-panel[hidden] { display: none !important; }

body[data-r289-case] :is(.r289-case-media, .r289-case-media-shade) {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

body[data-r289-case] .r289-case-media :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.2,.75,.2,1);
}

body[data-r289-case] .r289-case-panel:hover .r289-case-media img { transform: scale(1.035); }
body[data-r289-case] .r289-case-panel:hover .r289-case-media video { transform: scale(1.035); }

body[data-r289-case] .r289-case-media-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(5 7 11 / 96%) 0%, rgb(5 7 11 / 77%) 50%, rgb(5 7 11 / 18%) 100%),
    linear-gradient(0deg, rgb(5 7 11 / 92%) 0%, transparent 62%);
}

body[data-r289-case] .r289-case-panel-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100%, 55rem);
  min-height: inherit;
  padding: clamp(2rem, 5.5vw, 5rem);
}

body[data-r289-case] .r289-case-panel-copy > span {
  margin-bottom: auto;
  color: #b9bec8;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body[data-r289-case] .r289-case-panel-copy h3 {
  max-width: 12ch;
  margin: clamp(4rem, 11vw, 10rem) 0 1.15rem;
  color: #fff;
  font-size: clamp(2.8rem, 5.7vw, 5.8rem);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: .92;
  text-wrap: balance;
}

body[data-r289-case] .r289-case-panel-copy p {
  max-width: 44rem;
  margin: 0;
  color: #c8ccd3;
  font-size: 1rem;
  line-height: 1.67;
}

body[data-r289-case] .r289-case-panel-copy strong {
  align-self: flex-start;
  margin-top: 1.45rem;
  color: var(--r289-lime);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .065em;
  line-height: 1.5;
  text-transform: uppercase;
}

body[data-r289-case] .r289-case-tabs {
  display: grid;
  grid-template-columns: repeat(var(--r289-tab-count, 4), minmax(0, 1fr));
  gap: .35rem;
  padding: .55rem;
  background: #11141a;
}

body[data-r289-case] .r289-case-tabs button {
  min-width: 0;
  min-height: 4.35rem;
  padding: .8rem .85rem;
  border: 0;
  border-radius: .9rem;
  color: #9299a5;
  background: transparent;
  font: inherit;
  font-size: .8125rem;
  font-weight: 690;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

body[data-r289-case] .r289-case-tabs button span {
  display: block;
  margin-bottom: .35rem;
  color: #686f7c;
  font-size: .8125rem;
  letter-spacing: .08em;
}

body[data-r289-case] .r289-case-tabs button[aria-selected="true"] {
  color: #fff;
  background: #242833;
}

body[data-r289-case] .r289-case-tabs button[aria-selected="true"] span { color: var(--r289-violet); }

body[data-r289-case] .r289-case-boundary {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  color: var(--r289-ink);
  background: var(--r289-paper);
}

body[data-r289-case] .r289-case-boundary-inner {
  display: grid;
  grid-template-columns: minmax(0, .45fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

body[data-r289-case] .r289-case-boundary p:last-child {
  max-width: 62rem;
  margin: 0;
  color: #363b44;
  font-size: clamp(1.3rem, 2.25vw, 2.15rem);
  font-weight: 520;
  letter-spacing: -.028em;
  line-height: 1.28;
}

body[data-r289-case] .r289-case-next {
  padding-block: clamp(4rem, 7vw, 6rem);
  color: #fff;
  background: var(--r289-night);
}

body[data-r289-case] .r289-case-next-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

body[data-r289-case] .r289-case-next p {
  max-width: 24ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 550;
  letter-spacing: -.05em;
  line-height: .98;
}

body[data-r289-case] .r289-case-next button {
  flex: 0 0 auto;
  min-height: 3.4rem;
  padding: .85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  color: var(--r289-ink);
  background: #fff;
  font: inherit;
  font-size: .875rem;
  font-weight: 720;
  cursor: pointer;
}

body[data-r289-system] :is(.r289-selector-tabs button, .r289-system-link, .r289-case-actions a, .r289-case-actions button, .r289-case-tabs button, .r289-case-next button):focus-visible {
  outline: .16rem solid var(--r289-lime);
  outline-offset: .14rem;
}

@media (max-width: 62rem) {
  body[data-r289-system] .r289-systems-head {
    grid-template-columns: 1fr;
    grid-template-areas: "kicker" "title" "intro";
    gap: 1.25rem;
  }
  body[data-r289-case] .r289-case-system-head { grid-template-columns: 1fr; gap: 1.25rem; }
  body[data-r289-system] .r289-systems-head h2 { max-width: 13ch; }
  body[data-r289-case] .r289-case-hero-inner { grid-template-columns: 1fr; }
  body[data-r289-case] .r289-case-brand { min-height: 10rem; }
  body[data-r289-case] .r289-case-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  body[data-r289-system] .r289-selector-tabs { grid-template-columns: 1fr 1fr; }
  body[data-r289-system] .r289-selector-tabs button { grid-template-columns: minmax(0, 1fr); gap: .3rem; min-height: 5.8rem; }
  body[data-r289-system] .r289-selector-tabs button img { width: 1.9rem; height: 1.9rem; }
  body[data-r289-system] .r289-selector-tabs button small { display: none; }
  body[data-r289-system] .r289-system-panel { min-height: 43rem; }
  body[data-r289-system] .r289-system-shade { background: linear-gradient(0deg, rgb(7 9 13 / 98%) 0%, rgb(7 9 13 / 78%) 60%, rgb(7 9 13 / 24%) 100%); }
  body[data-r289-system] .r289-system-copy h3 { margin-top: 7rem; }
  body[data-r289-system] .r289-system-proof { display: grid; gap: .45rem; }
  body[data-r289-system] .r289-system-proof li::after { display: none; }
  body[data-r289-case] .r289-case-brand { min-height: 9rem; }
  body[data-r289-case] .r289-case-media-shade { background: linear-gradient(0deg, rgb(5 7 11 / 98%) 0%, rgb(5 7 11 / 78%) 64%, rgb(5 7 11 / 22%) 100%); }
  body[data-r289-case] .r289-case-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-r289-case] .r289-case-boundary-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  body[data-r289-case] .r289-case-next-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 23.5rem) {
  body[data-r289-system] .r289-selector-tabs button { padding-inline: .65rem; }
  body[data-r289-system] .r289-selector-tabs button span { font-size: .8125rem; }
  body[data-r289-case] .r289-case-tabs { grid-template-columns: 1fr 1fr; }
  body[data-r289-case] .r289-case-tabs button { padding-inline: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-r289-system] .r289-system-media img,
  body[data-r289-system] .r289-system-media video,
  body[data-r289-case] .r289-case-media img,
  body[data-r289-case] .r289-case-media video,
  body[data-r289-system] .r289-selector-tabs button { transition: none; }
  body[data-r289-system] .r289-system-panel:hover .r289-system-media img,
  body[data-r289-system] .r289-system-panel:hover .r289-system-media video,
  body[data-r289-case] .r289-case-panel:hover .r289-case-media img { transform: none; }
  body[data-r289-case] .r289-case-panel:hover .r289-case-media video { transform: none; }
}
