/* THINKBA LTD — ThinkBA Insights. Dark data/consulting theme. All classes tbi- namespaced. */
:root {
  --tbi-navy-900: #070b16;
  --tbi-navy-800: #0b1120;
  --tbi-navy-700: #111a2e;
  --tbi-navy-600: #17233c;
  --tbi-line: #223354;
  --tbi-cyan: #2fd3e1;
  --tbi-cyan-deep: #17a8bd;
  --tbi-ink: #eef3fb;
  --tbi-grey: #a9b6cc;
  --tbi-grey-dim: #7686a0;
  --tbi-shell: 1120px;
  --tbi-unit: 8px;
  --tbi-radius: 12px;
  --tbi-head: "IBM Plex Sans", system-ui, sans-serif;
  --tbi-mono: "IBM Plex Mono", ui-monospace, monospace;
  --tbi-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--tbi-navy-900);
  color: var(--tbi-grey);
  font-family: var(--tbi-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--tbi-head); color: var(--tbi-ink); line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--tbi-cyan); text-decoration: none; }
a:hover { color: var(--tbi-ink); }

:focus-visible { outline: 2px solid var(--tbi-cyan); outline-offset: 3px; border-radius: 4px; }

.tbi-shell { width: 100%; max-width: var(--tbi-shell); margin: 0 auto; padding: 0 calc(var(--tbi-unit) * 2.5); }

.tbi-skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--tbi-cyan); color: var(--tbi-navy-900);
  padding: 10px 16px; border-radius: 8px; font-family: var(--tbi-mono); font-weight: 500;
}
.tbi-skip:focus { left: 12px; }

/* ---- header ---- */
.tbi-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tbi-line);
}
.tbi-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.tbi-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tbi-cyan); }
.tbi-brand__mark { flex: none; }
.tbi-brand__text { font-family: var(--tbi-head); font-weight: 700; font-size: 1.1rem; color: var(--tbi-ink); letter-spacing: -0.01em; }
.tbi-brand__sub { color: var(--tbi-cyan); font-weight: 500; margin-left: 3px; }

.tbi-nav__list { list-style: none; display: flex; gap: calc(var(--tbi-unit) * 3.5); margin: 0; padding: 0; }
.tbi-nav__list a {
  font-family: var(--tbi-mono); font-size: 0.86rem; color: var(--tbi-grey);
  letter-spacing: 0.02em; padding: 6px 2px; position: relative;
}
.tbi-nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--tbi-cyan); transition: width 0.22s ease;
}
.tbi-nav__list a:hover { color: var(--tbi-ink); }
.tbi-nav__list a:hover::after { width: 100%; }

.tbi-navtoggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 42px; height: 42px; background: transparent; border: 1px solid var(--tbi-line);
  border-radius: 9px; cursor: pointer; padding: 0;
}
.tbi-navtoggle__bar { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--tbi-ink); transition: transform 0.25s ease, opacity 0.2s ease; }
.tbi-navtoggle[aria-expanded="true"] .tbi-navtoggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tbi-navtoggle[aria-expanded="true"] .tbi-navtoggle__bar:nth-child(2) { opacity: 0; }
.tbi-navtoggle[aria-expanded="true"] .tbi-navtoggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- buttons ---- */
.tbi-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--tbi-mono); font-size: 0.9rem; letter-spacing: 0.01em;
  padding: 13px 22px; border-radius: 9px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tbi-btn--primary { background: var(--tbi-cyan); color: var(--tbi-navy-900); font-weight: 500; }
.tbi-btn--primary:hover { background: var(--tbi-ink); color: var(--tbi-navy-900); transform: translateY(-2px); }
.tbi-btn--ghost { border-color: var(--tbi-line); color: var(--tbi-ink); }
.tbi-btn--ghost:hover { border-color: var(--tbi-cyan); color: var(--tbi-cyan); transform: translateY(-2px); }

/* ---- shared section heads ---- */
.tbi-tag {
  display: inline-block; font-family: var(--tbi-mono); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--tbi-cyan);
  border: 1px solid var(--tbi-line); border-radius: 40px; padding: 5px 13px; margin-bottom: 18px;
}
.tbi-sechead { max-width: 640px; margin-bottom: calc(var(--tbi-unit) * 5); }
.tbi-sechead h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); margin-bottom: 14px; letter-spacing: -0.015em; }
.tbi-sechead p { color: var(--tbi-grey); }

/* ---- hero ---- */
.tbi-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--tbi-navy-800) 0%, var(--tbi-navy-900) 100%); border-bottom: 1px solid var(--tbi-line); }
.tbi-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--tbi-line) 1px, transparent 1px), linear-gradient(90deg, var(--tbi-line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.28;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 0%, transparent 75%);
}
.tbi-hero__chart { position: absolute; top: 0; right: 0; width: 62%; max-width: 640px; height: 100%; color: var(--tbi-cyan); opacity: 0.55; pointer-events: none; }

/* columns rise from the baseline, staggered left-to-right */
.tbi-chart__bar { transform-box: fill-box; transform-origin: bottom; animation: tbi-bar-rise 1.05s cubic-bezier(0.22, 0.8, 0.28, 1) both; }
.tbi-chart__bar:nth-child(1) { animation-delay: 0.05s; }
.tbi-chart__bar:nth-child(2) { animation-delay: 0.13s; }
.tbi-chart__bar:nth-child(3) { animation-delay: 0.21s; }
.tbi-chart__bar:nth-child(4) { animation-delay: 0.29s; }
.tbi-chart__bar:nth-child(5) { animation-delay: 0.37s; }
.tbi-chart__bar:nth-child(6) { animation-delay: 0.45s; }
.tbi-chart__bar:nth-child(7) { animation-delay: 0.53s; }
.tbi-chart__bar:nth-child(8) { animation-delay: 0.61s; }
.tbi-chart__bar:nth-child(9) { animation-delay: 0.69s; }
@keyframes tbi-bar-rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

/* trend line draws itself in after the bars settle */
.tbi-chart__trend { stroke-dasharray: 600; stroke-dashoffset: 600; animation: tbi-trend-draw 1.7s 0.6s ease forwards; }
@keyframes tbi-trend-draw { to { stroke-dashoffset: 0; } }

/* latest-value marker keeps a slow beat */
.tbi-chart__area { opacity: 0; animation: tbi-area-in 1.4s 0.9s ease forwards; }
@keyframes tbi-area-in { to { opacity: 0.09; } }
.tbi-chart__tip { transform-box: fill-box; transform-origin: center; opacity: 0; animation: tbi-tip-in 0.4s 2s ease forwards, tbi-tip-beat 2.8s 2.4s ease-in-out infinite; }
@keyframes tbi-tip-in { to { opacity: 1; } }
@keyframes tbi-tip-beat { 0%, 100% { transform: scale(1); opacity: 0.55; } 50% { transform: scale(1.55); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .tbi-chart__bar { animation: none; }
  .tbi-chart__trend { stroke-dashoffset: 0; animation: none; }
  .tbi-chart__area { opacity: 0.09; animation: none; }
  .tbi-chart__tip { opacity: 1; animation: none; }
}

.tbi-hero__inner { position: relative; z-index: 2; padding: clamp(64px, 11vw, 120px) 0 clamp(56px, 9vw, 96px); }
.tbi-eyebrow { font-family: var(--tbi-mono); font-size: 0.82rem; letter-spacing: 0.06em; color: var(--tbi-cyan); text-transform: uppercase; margin-bottom: 20px; }
.tbi-hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); max-width: 15ch; letter-spacing: -0.02em; margin-bottom: 22px; }
.tbi-hero__lede { font-size: clamp(1.02rem, 2.1vw, 1.22rem); color: var(--tbi-grey); max-width: 56ch; margin-bottom: 30px; }
.tbi-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 48px; }
.tbi-hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; max-width: 720px; border-top: 1px solid var(--tbi-line); padding-top: 26px; }
.tbi-stat dt { font-family: var(--tbi-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tbi-grey-dim); margin-bottom: 6px; }
.tbi-stat dd { margin: 0; color: var(--tbi-ink); font-weight: 500; font-family: var(--tbi-head); font-size: 0.98rem; }

/* ---- capabilities ---- */
.tbi-capabilities { padding: clamp(64px, 10vw, 110px) 0; }
.tbi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; }
.tbi-tile {
  position: relative; background: var(--tbi-navy-800); border: 1px solid var(--tbi-line);
  border-radius: var(--tbi-radius); padding: 30px 26px 28px; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.tbi-tile::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--tbi-cyan), transparent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.tbi-tile:hover { transform: translateY(-4px); border-color: var(--tbi-cyan-deep); background: var(--tbi-navy-700); }
.tbi-tile:hover::before { transform: scaleX(1); }
.tbi-tile__idx { font-family: var(--tbi-mono); font-size: 0.8rem; color: var(--tbi-cyan); letter-spacing: 0.1em; }
.tbi-tile h3 { font-size: 1.18rem; margin: 12px 0 10px; }
.tbi-tile p { color: var(--tbi-grey); font-size: 0.96rem; }

/* ---- approach band ---- */
.tbi-approach { background: linear-gradient(180deg, var(--tbi-navy-800), var(--tbi-navy-700)); border-top: 1px solid var(--tbi-line); border-bottom: 1px solid var(--tbi-line); padding: clamp(64px, 10vw, 110px) 0; }
.tbi-sechead--light h2 { color: var(--tbi-ink); }
.tbi-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.tbi-step { display: flex; gap: 16px; align-items: flex-start; border-left: 2px solid var(--tbi-line); padding-left: 18px; transition: border-color 0.25s ease; }
.tbi-step:hover { border-left-color: var(--tbi-cyan); }
.tbi-step__num { font-family: var(--tbi-mono); font-size: 1.1rem; color: var(--tbi-cyan); flex: none; }
.tbi-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.tbi-step p { color: var(--tbi-grey); font-size: 0.94rem; }

/* ---- methods ---- */
.tbi-methods { padding: clamp(64px, 10vw, 110px) 0; }
.tbi-methodlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; border: 1px solid var(--tbi-line); border-radius: var(--tbi-radius); overflow: hidden; background: var(--tbi-line); }
.tbi-methodlist li { background: var(--tbi-navy-800); padding: 24px 24px; display: flex; flex-direction: column; gap: 8px; transition: background 0.22s ease; }
.tbi-methodlist li:hover { background: var(--tbi-navy-700); }
.tbi-methodlist__k { font-family: var(--tbi-head); font-weight: 600; color: var(--tbi-ink); font-size: 1.02rem; }
.tbi-methodlist__k::before { content: "▸ "; color: var(--tbi-cyan); }
.tbi-methodlist__v { color: var(--tbi-grey); font-size: 0.94rem; }

/* ---- contact ---- */
.tbi-contact { padding: clamp(64px, 10vw, 110px) 0; background: linear-gradient(180deg, var(--tbi-navy-900), var(--tbi-navy-800)); }
.tbi-contact__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.tbi-contact__lead h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 14px 0 16px; letter-spacing: -0.015em; }
.tbi-contact__lead p { color: var(--tbi-grey); margin-bottom: 26px; max-width: 46ch; }
.tbi-contact__card { background: var(--tbi-navy-700); border: 1px solid var(--tbi-line); border-radius: var(--tbi-radius); padding: 28px 26px; }
.tbi-contact__row { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--tbi-line); font-size: 0.96rem; color: var(--tbi-ink); }
.tbi-contact__row:last-child { border-bottom: 0; }
.tbi-contact__k { font-family: var(--tbi-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tbi-grey-dim); }

/* ---- footer ---- */
.tbi-footer { background: var(--tbi-navy-900); border-top: 1px solid var(--tbi-line); padding: 48px 0 40px; }
.tbi-footer__inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 30px; align-items: start; }
.tbi-brand__text--foot { font-size: 1.2rem; display: inline-block; margin-bottom: 10px; }
.tbi-footer__note { color: var(--tbi-grey-dim); font-size: 0.9rem; max-width: 34ch; }
.tbi-footer__addr { font-style: normal; color: var(--tbi-grey); font-size: 0.92rem; line-height: 1.8; }
.tbi-footer__legal { grid-column: 1 / -1; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--tbi-line); font-family: var(--tbi-mono); font-size: 0.8rem; color: var(--tbi-grey-dim); letter-spacing: 0.03em; }

/* ---- reveal ---- */
[data-tbi-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-tbi-reveal].tbi-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-tbi-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---- responsive ---- */
@media (max-width: 760px) {
  .tbi-navtoggle { display: flex; }
  .tbi-nav {
    position: absolute; top: 66px; left: 0; right: 0; background: var(--tbi-navy-800);
    border-bottom: 1px solid var(--tbi-line); max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .tbi-nav.tbi-nav--open { max-height: 320px; }
  .tbi-nav__list { flex-direction: column; gap: 0; padding: 8px 0; }
  .tbi-nav__list li { border-top: 1px solid var(--tbi-line); }
  .tbi-nav__list a { display: block; padding: 14px calc(var(--tbi-unit) * 2.5); }
  .tbi-nav__list a::after { display: none; }
  .tbi-hero__chart { width: 100%; opacity: 0.3; }
  .tbi-hero__stats { grid-template-columns: 1fr; gap: 14px; }
  .tbi-contact__inner { grid-template-columns: 1fr; gap: 28px; }
  .tbi-footer__inner { grid-template-columns: 1fr; }
}
