@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap");

:root {
  --tb-bg: #07080a;
  --tb-bg-2: #0d1014;
  --tb-surface: rgba(18, 18, 20, 0.9);
  --tb-surface-strong: rgba(22, 22, 26, 0.95);
  --tb-border: rgba(255, 255, 255, 0.08);
  --tb-border-strong: rgba(255, 255, 255, 0.14);
  --tb-accent: #bd1e1e;
  --tb-accent-soft: #fa6060;
  --tb-text: #f5f5f7;
  --tb-muted: #d1d5db;
  --tb-cream: #f3f1ec;
  --tb-radius: 26px;
  --tb-max: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(189, 30, 30, 0.12), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(250, 96, 96, 0.08), transparent 26%),
    linear-gradient(180deg, #050506 0%, var(--tb-bg-2) 42%, var(--tb-bg) 100%) !important;
  color: var(--tb-text);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: rgba(250, 96, 96, 0.28);
  color: #fff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 54%, transparent 100%);
  opacity: 0.22;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.035em;
}

header,
#mobileMenu {
  background: rgba(5, 5, 6, 0.78) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.24);
}

header > div {
  min-height: 76px;
}

.tb-brand {
  display: inline-flex;
  align-items: center;
  min-width: 174px;
}

.tb-brand img {
  width: 174px;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

header nav a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

header nav a:hover {
  opacity: 1;
}

header nav a[aria-current="page"] {
  color: #fff;
  position: relative;
}

header nav a[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--tb-accent-soft);
  content: "";
}

.tb-sister-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.tb-sister-link::after {
  margin-left: 0.38rem;
  content: "↗";
  color: var(--tb-accent-soft);
}

.tb-sister-link:hover {
  border-color: rgba(250, 96, 96, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.tb-sister-link--mobile {
  width: fit-content;
  padding: 0.72rem 1rem;
}

.tb-sister-link--mobile::after {
  display: none;
}

footer {
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.98), rgba(2, 2, 3, 0.98));
}

.tb-footer-sister {
  padding-top: 0.45rem;
}

.tb-footer-sister a {
  display: grid;
  width: fit-content;
  gap: 0.1rem;
  border-left: 2px solid var(--tb-accent);
  padding-left: 0.72rem;
}

.tb-footer-sister span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.tb-footer-sister strong {
  color: #fff;
  font-size: 0.88rem;
}

main > section:first-of-type {
  background:
    radial-gradient(circle at 78% 18%, rgba(189, 30, 30, 0.12), transparent 30%),
    linear-gradient(135deg, #070708 0%, #0d1014 55%, #08090b 100%) !important;
  isolation: isolate;
}

/* New editorial layout */
.tb-main {
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 7%, rgba(189, 30, 30, 0.18), transparent 25%),
    radial-gradient(circle at 12% 25%, rgba(255, 255, 255, 0.045), transparent 24%),
    linear-gradient(145deg, #07080a 0%, #111319 38%, #090a0d 74%, #07080a 100%);
}

.tb-shell {
  width: min(var(--tb-max), calc(100% - 3rem));
  margin-inline: auto;
}

.tb-hero {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: center;
  padding: 9.5rem 0 6rem;
  background: transparent !important;
  isolation: isolate;
}

.tb-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 34%, rgba(189, 30, 30, 0.16), transparent 32%),
    linear-gradient(90deg, rgba(5, 6, 8, 0.4) 0%, rgba(5, 6, 8, 0.12) 56%, transparent 100%);
  content: "";
}

.tb-hero::after {
  position: absolute !important;
  inset: 0;
  z-index: -1 !important;
  background:
    linear-gradient(180deg, transparent 55%, #08090b 100%),
    radial-gradient(circle at 76% 30%, rgba(189, 30, 30, 0.22), transparent 34%) !important;
  content: "";
}

.tb-hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.tb-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
}

.tb-hero__brand {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.tb-hero__brand img {
  width: min(100%, 520px);
  height: auto;
  opacity: 0.34;
  filter: grayscale(1) brightness(1.15);
}

.tb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.tb-eyebrow::before {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--tb-accent-soft);
  content: "";
}

.tb-hero h1,
.tb-page-hero h1 {
  max-width: 880px;
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 7.2vw, 6.35rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
}

.tb-hero h1 span,
.tb-page-hero h1 span {
  color: var(--tb-accent-soft);
}

.tb-lead {
  max-width: 690px;
  margin-top: 1.75rem;
  color: rgba(229, 231, 235, 0.84);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.75;
}

.tb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.tb-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.tb-button:hover {
  transform: translateY(-2px);
}

.tb-button--primary {
  background: linear-gradient(135deg, #a81717, #df3030 64%, #f15f5f);
  box-shadow: 0 16px 36px rgba(189, 30, 30, 0.28);
  color: #fff;
}

.tb-button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(6, 7, 9, 0.38);
  color: #fff;
  backdrop-filter: blur(12px);
}

.tb-button--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.tb-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.7rem;
  margin: 2.4rem 0 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.tb-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.52rem;
}

.tb-proof li::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tb-accent-soft);
  box-shadow: 0 0 0 5px rgba(250, 96, 96, 0.09);
  content: "";
}

.tb-section {
  position: relative;
  padding: 7rem 0;
}

.tb-section--muted {
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.018);
}

.tb-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.45fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.8rem;
}

.tb-section-head h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.tb-section-head p {
  margin: 0;
  color: rgba(209, 213, 219, 0.74);
  line-height: 1.75;
}

.tb-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tb-service-card {
  position: relative;
  min-height: 455px;
  overflow: hidden;
  display: flex;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--tb-radius);
  background: #101216;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.tb-service-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(5, 6, 8, 0.95) 88%);
  content: "";
}

.tb-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.tb-service-card:hover img {
  transform: scale(1.045);
  filter: saturate(0.95) contrast(1.04);
}

.tb-service-card__body {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
}

.tb-service-card__body small {
  color: var(--tb-accent-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.tb-service-card__body h3 {
  margin: 0.65rem 0 0;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.08;
}

.tb-service-card__body p {
  margin: 0.8rem 0 0;
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.9rem;
  line-height: 1.6;
}

.tb-process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: process;
}

.tb-step {
  counter-increment: process;
  min-height: 245px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tb-radius);
  padding: 1.8rem;
  background: linear-gradient(145deg, rgba(23, 25, 30, 0.94), rgba(12, 13, 16, 0.94));
}

.tb-step::before {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(250, 96, 96, 0.26);
  border-radius: 50%;
  background: rgba(189, 30, 30, 0.1);
  color: var(--tb-accent-soft);
  font-size: 0.78rem;
  font-weight: 900;
  content: "0" counter(process);
}

.tb-step h3 {
  margin: 1.9rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 900;
}

.tb-step p {
  margin: 0;
  color: rgba(209, 213, 219, 0.7);
  line-height: 1.65;
}

.tb-sister-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
  border-radius: 34px;
  padding: clamp(2rem, 5vw, 4.3rem);
  background: var(--tb-cream);
  color: #111318;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.tb-sister-card::after {
  position: absolute;
  top: -80%;
  right: -12%;
  width: 460px;
  height: 460px;
  border: 70px solid rgba(189, 30, 30, 0.07);
  border-radius: 50%;
  content: "";
}

.tb-sister-card .tb-eyebrow {
  color: rgba(17, 19, 24, 0.6);
}

.tb-sister-card h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.tb-sister-card p {
  max-width: 680px;
  margin: 1.2rem 0 0;
  color: rgba(17, 19, 24, 0.68);
  line-height: 1.7;
}

.tb-sister-card .tb-button {
  position: relative;
  z-index: 2;
  min-width: 172px;
  background: #111318;
  color: #fff;
}

.tb-page-hero {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: end;
  padding: 9.5rem 0 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 78% 30%, rgba(189, 30, 30, 0.2), transparent 30%),
    linear-gradient(135deg, #07080a 0%, #111319 65%, #090a0d 100%) !important;
}

.tb-page-hero h1 {
  font-size: clamp(3rem, 6.4vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.tb-page-hero .tb-lead {
  max-width: 760px;
}

.tb-career-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.45fr);
  gap: 2.5rem;
  align-items: start;
}

.tb-career-intro h2,
.tb-empty h2,
.tb-faq-intro h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.65rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.tb-career-intro p,
.tb-faq-intro p {
  margin: 1.15rem 0 0;
  color: rgba(209, 213, 219, 0.72);
  line-height: 1.75;
}

.tb-value-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb-value-list li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 700;
}

.tb-jobs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.tb-job {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--tb-radius);
  padding: 1.7rem;
  background: linear-gradient(145deg, rgba(25, 27, 32, 0.95), rgba(13, 14, 17, 0.95));
}

.tb-job__tag {
  width: fit-content;
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  background: rgba(189, 30, 30, 0.12);
  color: var(--tb-accent-soft);
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.tb-job h3 {
  margin: 1.4rem 0 0.75rem;
  font-size: 1.8rem;
  font-weight: 900;
}

.tb-job p {
  margin: 0;
  color: rgba(209, 213, 219, 0.7);
  line-height: 1.65;
}

.tb-job ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  list-style: none;
}

.tb-job li::before {
  margin-right: 0.55rem;
  color: var(--tb-accent-soft);
  content: "—";
}

.tb-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tb-radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background:
    radial-gradient(circle at 86% 20%, rgba(189, 30, 30, 0.16), transparent 32%),
    rgba(255, 255, 255, 0.025);
}

.tb-cta h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
}

.tb-cta p {
  margin: 0.6rem 0 0;
  color: rgba(209, 213, 219, 0.68);
}

.tb-empty {
  position: relative;
  min-height: 440px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  padding: 3rem;
  background:
    linear-gradient(145deg, rgba(25, 27, 32, 0.9), rgba(10, 11, 14, 0.94));
  text-align: center;
}

.tb-empty::before {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(250, 96, 96, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 50px rgba(250, 96, 96, 0.025),
    0 0 0 100px rgba(250, 96, 96, 0.015);
  content: "";
}

.tb-empty__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.tb-empty__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 1.6rem;
  border: 1px solid rgba(250, 96, 96, 0.25);
  border-radius: 18px;
  background: rgba(189, 30, 30, 0.1);
  color: var(--tb-accent-soft);
  font-size: 1.35rem;
}

.tb-empty p {
  margin: 1rem auto 0;
  color: rgba(209, 213, 219, 0.7);
  line-height: 1.7;
}

.tb-blog-hero {
  min-height: 560px;
}

.tb-blog-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.tb-blog-stats span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(209, 213, 219, 0.75);
  font-size: 0.8rem;
}

.tb-blog-stats strong {
  margin-right: 0.3rem;
  color: #fff;
  font-size: 1rem;
}

.tb-blog-tools {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.tb-blog-search {
  display: grid;
  gap: 0.6rem;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.tb-blog-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tb-blog-search input:focus {
  border-color: rgba(250, 96, 96, 0.55);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 0 4px rgba(189, 30, 30, 0.12);
}

.tb-blog-search input::placeholder {
  color: rgba(209, 213, 219, 0.45);
}

.tb-blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tb-blog-categories button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0.62rem 0.9rem;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.tb-blog-categories button:hover,
.tb-blog-categories button.is-active {
  border-color: rgba(250, 96, 96, 0.38);
  background: rgba(189, 30, 30, 0.14);
  color: #fff;
}

.tb-blog-result {
  margin: 0 0 1.5rem;
  color: rgba(209, 213, 219, 0.56);
  font-size: 0.82rem;
}

.tb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.tb-blog-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--tb-radius);
  padding: 1.55rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(189, 30, 30, 0.1), transparent 36%),
    linear-gradient(145deg, rgba(25, 27, 32, 0.92), rgba(12, 13, 16, 0.95));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-blog-card:hover {
  border-color: rgba(250, 96, 96, 0.2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.24);
  transform: translateY(-4px);
}

.tb-blog-card[hidden] {
  display: none;
}

.tb-blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: rgba(209, 213, 219, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tb-blog-card__meta span:first-child {
  color: var(--tb-accent-soft);
}

.tb-blog-card h2 {
  margin: 1.25rem 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.tb-blog-card h2 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.tb-blog-card {
  position: relative;
}

.tb-blog-card > p {
  margin: 1rem 0 0;
  color: rgba(209, 213, 219, 0.68);
  font-size: 0.9rem;
  line-height: 1.68;
}

.tb-blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.5rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.tb-blog-card__link span {
  color: var(--tb-accent-soft);
  transition: transform 0.2s ease;
}

.tb-blog-card:hover .tb-blog-card__link span {
  transform: translateX(4px);
}

.tb-blog-empty {
  margin-top: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--tb-radius);
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(209, 213, 219, 0.7);
  text-align: center;
}

.tb-article__header {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(circle at 82% 22%, rgba(189, 30, 30, 0.22), transparent 30%),
    linear-gradient(135deg, #07080a 0%, #111319 65%, #090a0d 100%);
}

.tb-article__shell {
  width: min(920px, calc(100% - 3rem));
  margin-inline: auto;
}

.tb-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: rgba(209, 213, 219, 0.55);
  font-size: 0.75rem;
}

.tb-breadcrumbs a:hover {
  color: #fff;
}

.tb-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  margin-top: 2.25rem;
  color: rgba(209, 213, 219, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.tb-article__meta span:first-child {
  color: var(--tb-accent-soft);
}

.tb-article__header h1 {
  max-width: 900px;
  margin: 1.15rem 0 0;
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.tb-article__header p {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: rgba(209, 213, 219, 0.76);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
}

.tb-article__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 4.5rem;
  width: min(1120px, calc(100% - 3rem));
  padding: 5rem 0 7rem;
}

.tb-article__body {
  min-width: 0;
  color: rgba(235, 237, 240, 0.86);
  font-size: 1.04rem;
  line-height: 1.85;
}

.tb-article__body > * + * {
  margin-top: 1.35rem;
}

.tb-article__body h2,
.tb-article__body h3,
.tb-article__body h4 {
  margin-top: 2.8rem;
  color: #fff;
  font-weight: 900;
  line-height: 1.12;
}

.tb-article__body h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.tb-article__body h3 {
  font-size: 1.45rem;
}

.tb-article__body ul,
.tb-article__body ol {
  display: grid;
  gap: 0.7rem;
  padding-left: 1.4rem;
}

.tb-article__body ul {
  list-style: disc;
}

.tb-article__body ol {
  list-style: decimal;
}

.tb-article__body strong {
  color: #fff;
}

.tb-article__body a {
  color: var(--tb-accent-soft);
  text-decoration: underline;
  text-decoration-color: rgba(250, 96, 96, 0.4);
  text-underline-offset: 0.2em;
}

.tb-article__body blockquote {
  border-left: 3px solid var(--tb-accent-soft);
  padding: 0.2rem 0 0.2rem 1.25rem;
  color: rgba(255, 255, 255, 0.78);
}

.tb-article__body table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.tb-article__body th,
.tb-article__body td {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem;
  text-align: left;
}

.tb-article__aside {
  position: sticky;
  top: 115px;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(189, 30, 30, 0.14), transparent 42%),
    rgba(17, 19, 24, 0.94);
}

.tb-article__aside .tb-eyebrow {
  margin-bottom: 0.8rem;
  font-size: 0.62rem;
}

.tb-article__aside h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.08;
}

.tb-article__aside > p:not(.tb-eyebrow) {
  margin: 1rem 0 0;
  color: rgba(209, 213, 219, 0.65);
  font-size: 0.86rem;
  line-height: 1.65;
}

.tb-article__aside .tb-button {
  width: 100%;
  margin-top: 1rem;
}

.tb-blog-grid--related {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tb-related .tb-blog-card {
  min-height: 300px;
}

.tb-faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 0.82fr);
  gap: 4rem;
  align-items: start;
}

.tb-faq-intro {
  position: sticky;
  top: 120px;
}

.tb-faq-list {
  display: grid;
  gap: 0.75rem;
}

.tb-faq-list details {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 27, 32, 0.9), rgba(14, 15, 18, 0.94));
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tb-faq-list details[open] {
  border-color: rgba(250, 96, 96, 0.3);
  background: linear-gradient(145deg, rgba(30, 27, 31, 0.95), rgba(15, 15, 18, 0.98));
}

.tb-faq-list summary {
  position: relative;
  padding: 1.35rem 4rem 1.35rem 1.4rem;
  color: #fff;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.tb-faq-list summary::-webkit-details-marker {
  display: none;
}

.tb-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 1.3rem;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--tb-accent-soft);
  content: "+";
}

.tb-faq-list details[open] summary::after {
  content: "−";
}

.tb-faq-list details p {
  margin: 0;
  padding: 0 4rem 1.45rem 1.4rem;
  color: rgba(209, 213, 219, 0.72);
  line-height: 1.7;
}

/* Shared redesign for pages exported from the original Astro layout */
.tb-legacy-main {
  min-height: 100vh;
}

.tb-legacy-main > .tb-legacy-hero {
  position: relative;
  min-height: 510px !important;
  display: flex;
  align-items: flex-end !important;
  padding: 9.5rem 0 5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent !important;
  isolation: isolate;
}

.tb-legacy-main > .tb-legacy-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 28%, rgba(189, 30, 30, 0.18), transparent 30%),
    radial-gradient(circle at 14% 70%, rgba(255, 255, 255, 0.04), transparent 24%);
  content: "";
}

.tb-legacy-main > .tb-legacy-hero > .absolute {
  display: none !important;
}

.tb-legacy-hero > div[class*="max-w"] {
  width: min(var(--tb-max), calc(100% - 3rem));
  padding-inline: 0 !important;
}

.tb-legacy-hero .grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
}

.tb-legacy-hero .max-w-2xl {
  max-width: 790px;
}

.tb-legacy-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.4vw, 5.75rem) !important;
  font-weight: 900 !important;
  line-height: 1.02 !important;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.tb-legacy-hero .tb-eyebrow {
  margin-bottom: 1.25rem;
}

.tb-legacy-hero h1 + div {
  max-width: 720px;
  margin-top: 1.25rem !important;
  color: rgba(229, 231, 235, 0.74) !important;
  font-size: clamp(1rem, 1.5vw, 1.15rem) !important;
  line-height: 1.7 !important;
}

.tb-legacy-hero img[alt="TopBuilders"] {
  width: min(100%, 470px) !important;
  max-width: 470px !important;
  opacity: 0.2 !important;
  filter: grayscale(1) brightness(1.12) !important;
}

.tb-legacy-content {
  position: relative;
  padding-top: 7rem !important;
  padding-bottom: 7rem !important;
}

.tb-legacy-content > div[class*="max-w"],
.tb-page-services .tb-legacy-content {
  width: min(var(--tb-max), calc(100% - 3rem));
  margin-inline: auto;
  padding-inline: 0 !important;
}

.tb-page-about .tb-legacy-content > div,
.tb-page-privacy .tb-legacy-content > div,
.tb-page-terms .tb-legacy-content > div {
  max-width: 1040px;
}

.tb-legacy-main .tb-legacy-content section[class*="bg-[#"],
.tb-legacy-main .tb-legacy-content form[class*="bg-[#"],
.tb-legacy-main .tb-legacy-content div[class*="bg-[#"] {
  border-color: rgba(255, 255, 255, 0.085) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(25, 27, 32, 0.94), rgba(13, 14, 17, 0.96)) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
}

.tb-legacy-main .tb-legacy-content section[class*="bg-[#"] {
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.tb-legacy-main .tb-legacy-content h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important;
  font-weight: 900 !important;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.tb-legacy-main .tb-legacy-content h3 {
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
  font-weight: 850 !important;
  line-height: 1.22;
  letter-spacing: -0.028em;
}

.tb-legacy-main .tb-legacy-content p,
.tb-legacy-main .tb-legacy-content li {
  color: rgba(209, 213, 219, 0.74);
  line-height: 1.72;
}

.tb-legacy-main .tb-legacy-content a[class*="bg-red-600"],
.tb-legacy-main .tb-legacy-content button[class*="bg-red-600"] {
  border-radius: 999px !important;
  padding: 0.85rem 1.35rem !important;
}

/* About */
.tb-page-about .tb-legacy-content .space-y-6 {
  display: grid;
  gap: 1rem;
}

.tb-page-about .tb-legacy-content .space-y-6 > * {
  margin-top: 0 !important;
}

.tb-page-about .tb-legacy-content .grid section > div,
.tb-page-about .tb-legacy-content .grid > div {
  min-height: 210px;
}

/* Services */
.tb-page-services .tb-legacy-content > .grid {
  counter-reset: service;
  gap: 1rem !important;
}

.tb-page-services .tb-legacy-content > .grid > section {
  position: relative;
  min-height: 245px;
  overflow: hidden;
  counter-increment: service;
  padding-top: 5.5rem !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tb-page-services .tb-legacy-content > .grid > section::before {
  position: absolute;
  top: 1.7rem;
  left: 2rem;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(250, 96, 96, 0.24);
  border-radius: 50%;
  background: rgba(189, 30, 30, 0.1);
  color: var(--tb-accent-soft);
  font-size: 0.72rem;
  font-weight: 900;
  content: "0" counter(service);
}

.tb-page-services .tb-legacy-content > .grid > section::after {
  position: absolute;
  top: -75px;
  right: -75px;
  width: 180px;
  height: 180px;
  border: 34px solid rgba(189, 30, 30, 0.035);
  border-radius: 50%;
  content: "";
}

.tb-page-services .tb-legacy-content > .grid > section:hover {
  transform: translateY(-4px);
  border-color: rgba(250, 96, 96, 0.22) !important;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.3);
}

.tb-page-services .tb-legacy-content > div:last-child {
  margin-top: 1rem !important;
  padding: clamp(1.5rem, 3vw, 2.25rem) !important;
}

/* Projects */
.tb-page-projects .tb-legacy-content > div {
  width: min(var(--tb-max), calc(100% - 3rem));
  padding-inline: 0 !important;
}

.tb-page-projects .tb-legacy-content .grid {
  gap: 1rem !important;
}

.tb-page-projects .proj-card {
  border-radius: 24px;
}

.tb-page-projects .proj-card__img {
  height: 285px;
}

.tb-page-projects .proj-card__body {
  padding: 1.4rem;
}

.tb-page-projects .proj-card__title {
  font-size: 1.2rem !important;
}

/* Contact */
.tb-page-contact .tb-legacy-content > div {
  align-items: start;
  gap: 1rem !important;
}

.tb-page-contact #contactForm {
  padding: clamp(1.5rem, 3vw, 2.4rem) !important;
}

.tb-page-contact #contactForm h2 {
  margin-bottom: 1.6rem;
}

.tb-page-contact #contactForm input:not([type="checkbox"]),
.tb-page-contact #contactForm textarea,
.tb-page-contact #contactForm select {
  min-height: 52px;
  border-radius: 13px !important;
  background: rgba(5, 6, 8, 0.55) !important;
}

.tb-page-contact #contactForm textarea {
  min-height: 180px;
}

.tb-page-contact iframe {
  height: 360px;
  filter: grayscale(1) contrast(1.05) brightness(0.76) !important;
}

.tb-page-contact .tb-legacy-content .overflow-hidden {
  border-radius: 24px !important;
}

/* Legal pages */
.tb-page-privacy .tb-legacy-content .space-y-6,
.tb-page-terms .tb-legacy-content .space-y-6 {
  display: grid;
  gap: 0.85rem;
}

.tb-page-privacy .tb-legacy-content .space-y-6 > *,
.tb-page-terms .tb-legacy-content .space-y-6 > * {
  margin-top: 0 !important;
}

.tb-page-privacy .tb-legacy-content section,
.tb-page-terms .tb-legacy-content section {
  position: relative;
  padding-left: clamp(1.5rem, 4vw, 2.75rem) !important;
}

.tb-page-privacy .tb-legacy-content section::before,
.tb-page-terms .tb-legacy-content section::before {
  position: absolute;
  top: 1.5rem;
  bottom: 1.5rem;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tb-accent), transparent);
  content: "";
}

@media (max-width: 1100px) {
  header nav {
    gap: 1rem !important;
  }

  .tb-brand {
    min-width: 138px;
  }

  .tb-brand img {
    width: 138px;
  }
}

@media (max-width: 900px) {
  .tb-hero {
    min-height: 660px;
  }

  .tb-hero::before {
    background:
      radial-gradient(circle at 78% 28%, rgba(189, 30, 30, 0.18), transparent 32%),
      linear-gradient(90deg, rgba(5, 6, 8, 0.34), transparent);
  }

  .tb-hero__layout {
    grid-template-columns: 1fr;
  }

  .tb-hero__brand {
    position: absolute;
    right: 1rem;
    bottom: 2.5rem;
    width: min(56vw, 360px);
    z-index: 0;
    opacity: 0.28;
    pointer-events: none;
  }

  .tb-section-head,
  .tb-career-intro,
  .tb-faq-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tb-service-grid,
  .tb-jobs {
    grid-template-columns: 1fr;
  }

  .tb-service-card {
    min-height: 390px;
  }

  .tb-process {
    grid-template-columns: 1fr;
  }

  .tb-step {
    min-height: auto;
  }

  .tb-sister-card {
    grid-template-columns: 1fr;
  }

  .tb-sister-card .tb-button {
    width: fit-content;
  }

  .tb-faq-intro {
    position: static;
  }

  .tb-legacy-hero .grid {
    grid-template-columns: 1fr;
  }

  .tb-legacy-hero .grid > div:last-child {
    position: absolute;
    top: 7rem;
    right: 2rem;
    bottom: auto;
    display: flex !important;
    width: min(38vw, 280px);
    opacity: 0.35;
    pointer-events: none;
  }
}

@media (max-width: 640px) {
  header > div {
    min-height: 68px;
    padding-block: 0.65rem !important;
  }

  .tb-brand img {
    width: 126px;
    height: 40px;
  }

  .tb-shell {
    width: min(100% - 2rem, var(--tb-max));
  }

  .tb-hero {
    min-height: 690px;
    padding: 8rem 0 4rem;
  }

  .tb-hero h1,
  .tb-page-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .tb-page-hero {
    min-height: 450px;
    padding: 8rem 0 3.5rem;
  }

  .tb-hero__brand {
    right: -2rem;
    bottom: 2rem;
    width: min(72vw, 330px);
    opacity: 0.16;
  }

  .tb-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tb-actions .tb-button {
    width: 100%;
  }

  .tb-proof {
    display: grid;
    gap: 0.75rem;
  }

  .tb-section {
    padding: 5rem 0;
  }

  .tb-section-head {
    margin-bottom: 2rem;
  }

  .tb-service-card {
    min-height: 360px;
    border-radius: 22px;
  }

  .tb-sister-card,
  .tb-empty {
    border-radius: 24px;
  }

  .tb-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .tb-cta .tb-button,
  .tb-sister-card .tb-button {
    width: 100%;
  }

  .tb-faq-list summary {
    padding-right: 3.5rem;
  }

  .tb-faq-list details p {
    padding-right: 1.4rem;
  }

  .tb-legacy-main > .tb-legacy-hero {
    min-height: 450px !important;
    padding: 8rem 0 3.5rem !important;
  }

  .tb-legacy-hero > div[class*="max-w"],
  .tb-legacy-content > div[class*="max-w"],
  .tb-page-services .tb-legacy-content,
  .tb-page-projects .tb-legacy-content > div {
    width: min(100% - 2rem, var(--tb-max));
  }

  .tb-legacy-hero h1 {
    font-size: clamp(2.75rem, 14vw, 4rem) !important;
  }

  .tb-legacy-hero .grid > div:last-child {
    display: none !important;
  }

  .tb-legacy-content {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  .tb-page-services .tb-legacy-content > .grid > section {
    min-height: 220px;
  }

  .tb-page-contact iframe {
    height: 300px;
  }
}

main > section:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(189, 30, 30, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18));
  z-index: 1;
}

main > section:first-of-type img[alt="TopBuilders"] {
  opacity: 0.32 !important;
  filter: brightness(1.03) saturate(0.9) !important;
}

main > section:first-of-type > div.absolute.inset-y-0.right-0 > div {
  width: 100%;
  opacity: 0.18;
  filter: blur(22px) saturate(0.75);
}

main > section:first-of-type > div.absolute.inset-y-0.right-0 {
  display: none !important;
}

main article,
main section[class*="rounded-"] {
  border-color: var(--tb-border) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
}

main article {
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.26s ease,
    border-color 0.26s ease;
}

main article:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.28);
  border-color: var(--tb-border-strong) !important;
}

main article img {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
}

main article:hover img {
  transform: scale(1.015);
  filter: saturate(1.03) contrast(1.02);
}

main [class*="bg-[#141414]"],
main [class*="bg-[#121212]"],
main [class*="bg-[#181818]"],
main [class*="bg-[#101010]"] {
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(18, 18, 20, 0.96)) !important;
}

main [class*="border-white/10"],
main [class*="border-white/15"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

a[class*="bg-red-600"],
a[class*="bg-[#bd1e1e]"],
button[class*="bg-red-600"],
button[class*="bg-[#bd1e1e]"] {
  background: linear-gradient(135deg, var(--tb-accent) 0%, #e82a2a 58%, var(--tb-accent-soft) 100%);
  box-shadow: 0 14px 30px rgba(189, 30, 30, 0.24);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    opacity 0.2s ease;
}

a[class*="bg-red-600"]:hover,
a[class*="bg-[#bd1e1e]"]:hover,
button[class*="bg-red-600"]:hover,
button[class*="bg-[#bd1e1e]"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

a[class*="border-white/10"],
a[class*="border-white/15"],
button[class*="border-white/10"],
button[class*="border-white/15"] {
  background: rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

a[class*="border-white/10"]:hover,
a[class*="border-white/15"]:hover,
button[class*="border-white/10"]:hover,
button[class*="border-white/15"]:hover {
  background: rgba(255, 255, 255, 0.05);
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--tb-text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(250, 96, 96, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(189, 30, 30, 0.18);
}

select option {
  background: #fff;
  color: #111318;
}

select option:checked {
  background: #d6d6d6;
  color: #111318;
}

#tb-cookie-banner > div {
  background: rgba(4, 4, 5, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#tb-cookie-banner p {
  color: rgba(229, 231, 235, 0.95);
}

#tb-cookie-banner button {
  border-radius: 9999px;
}

.proj-card {
  text-align: left;
  background: linear-gradient(180deg, rgba(24, 24, 27, 0.96), rgba(17, 17, 19, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  display: block;
  transition:
    transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.26s ease,
    box-shadow 0.26s ease;
}

.proj-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.3);
}

.proj-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.proj-card:hover .proj-card__img {
  transform: scale(1.015);
}

.proj-card__body {
  padding: 18px;
}

.proj-card__line {
  margin-top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(185, 28, 28, 0.75), rgba(255, 255, 255, 0.1), transparent);
}

.proj-card__hint {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.36);
}

.proj-modal__backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.proj-modal__panel {
  border-radius: 22px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.72);
}

.proj-modal__close,
.proj-zoom-btn {
  background: rgba(18, 18, 18, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.proj-modal__btn {
  background: linear-gradient(135deg, var(--tb-accent) 0%, #e82a2a 58%, var(--tb-accent-soft) 100%);
  box-shadow: 0 14px 30px rgba(189, 30, 30, 0.24);
}

.proj-modal__btn2 {
  background: rgba(255, 255, 255, 0.02);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) {
  .tb-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tb-article__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .tb-article__aside {
    position: static;
  }

  .tb-article__aside .tb-button {
    width: auto;
    margin-right: 0.5rem;
  }
}

@media (max-width: 640px) {
  .tb-blog-hero {
    min-height: 500px;
  }

  .tb-blog-grid,
  .tb-blog-grid--related {
    grid-template-columns: 1fr;
  }

  .tb-blog-card {
    min-height: 0;
  }

  .tb-article__header {
    padding: 8.5rem 0 3.5rem;
  }

  .tb-article__shell,
  .tb-article__layout {
    width: min(100% - 2rem, 920px);
  }

  .tb-article__layout {
    padding: 3.5rem 0 5rem;
  }

  .tb-article__body {
    font-size: 1rem;
    line-height: 1.78;
  }

  .tb-article__aside .tb-button {
    width: 100%;
    margin-right: 0;
  }
}
